@duetds/components 7.0.8 → 7.0.10

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 (546) hide show
  1. package/hydrate/index.js +4 -4
  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 +2 -2
  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 +2 -2
  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 +3 -3
  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-4399ca11.js → focus-utils-f819de70.js} +1 -1
  80. package/lib/cjs/{index-9a8a666a.js → index-0da1d389.js} +1 -1
  81. package/lib/cjs/loader.cjs.js +1 -1
  82. package/lib/collection/components/duet-badge/duet-badge.css +19 -0
  83. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  84. package/lib/collection/components/duet-hero/duet-hero.css +28 -21
  85. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +7 -3
  86. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +1 -1
  87. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  88. package/lib/dist-custom-elements/duet-alert.js +1 -1
  89. package/lib/dist-custom-elements/duet-badge.js +1 -1
  90. package/lib/dist-custom-elements/duet-banner.js +4 -4
  91. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  92. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  93. package/lib/dist-custom-elements/duet-button.js +1 -1
  94. package/lib/dist-custom-elements/duet-callout.js +3 -3
  95. package/lib/dist-custom-elements/duet-caption.js +1 -1
  96. package/lib/dist-custom-elements/duet-card.js +3 -3
  97. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  98. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  99. package/lib/dist-custom-elements/duet-chip.js +2 -2
  100. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  101. package/lib/dist-custom-elements/duet-choice.js +5 -5
  102. package/lib/dist-custom-elements/duet-collapsible.js +2 -2
  103. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  104. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  105. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  106. package/lib/dist-custom-elements/duet-date-picker.js +12 -12
  107. package/lib/dist-custom-elements/duet-divider.js +1 -1
  108. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  109. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  110. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  111. package/lib/dist-custom-elements/duet-footer.js +4 -4
  112. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  113. package/lib/dist-custom-elements/duet-grid.js +1 -1
  114. package/lib/dist-custom-elements/duet-header.js +8 -8
  115. package/lib/dist-custom-elements/duet-heading.js +1 -1
  116. package/lib/dist-custom-elements/duet-hero.js +10 -10
  117. package/lib/dist-custom-elements/duet-icon.js +1 -1
  118. package/lib/dist-custom-elements/duet-input.js +1 -1
  119. package/lib/dist-custom-elements/duet-label.js +1 -1
  120. package/lib/dist-custom-elements/duet-layout.js +1 -1
  121. package/lib/dist-custom-elements/duet-link.js +1 -1
  122. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  123. package/lib/dist-custom-elements/duet-list.js +1 -1
  124. package/lib/dist-custom-elements/duet-logo.js +1 -1
  125. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  126. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  127. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  128. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  129. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  130. package/lib/dist-custom-elements/duet-modal.js +7 -7
  131. package/lib/dist-custom-elements/duet-multiselect.js +10 -10
  132. package/lib/dist-custom-elements/duet-nav.js +1 -1
  133. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  134. package/lib/dist-custom-elements/duet-notification.js +2 -2
  135. package/lib/dist-custom-elements/duet-number-input.js +11 -11
  136. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  137. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  138. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  139. package/lib/dist-custom-elements/duet-popup-menu-item.js +2 -2
  140. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  141. package/lib/dist-custom-elements/duet-progress.js +1 -1
  142. package/lib/dist-custom-elements/duet-promo-card.js +3 -3
  143. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  144. package/lib/dist-custom-elements/duet-radio.js +1 -1
  145. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  146. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  147. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  148. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  149. package/lib/dist-custom-elements/duet-select.js +1 -1
  150. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  151. package/lib/dist-custom-elements/duet-show-more.js +5 -5
  152. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  153. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  154. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  155. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  156. package/lib/dist-custom-elements/duet-slideout.js +2 -2
  157. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  158. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  159. package/lib/dist-custom-elements/duet-step.js +4 -4
  160. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  161. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  162. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  163. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  164. package/lib/dist-custom-elements/duet-submenu-bar.js +4 -4
  165. package/lib/dist-custom-elements/duet-tab-group.js +13 -13
  166. package/lib/dist-custom-elements/duet-tab.js +1 -1
  167. package/lib/dist-custom-elements/duet-table.js +1 -1
  168. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  169. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  170. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  171. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  172. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  173. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  174. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  175. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  176. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  177. package/lib/dist-custom-elements/duet-tray.js +3 -3
  178. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  179. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  180. package/lib/dist-custom-elements/duet-upload.js +18 -18
  181. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  182. package/lib/dist-custom-elements/index.js +1 -1
  183. package/lib/dist-custom-elements/{p-e31665dd.js → p-020981f3.js} +2 -2
  184. package/lib/dist-custom-elements/{p-403b5930.js → p-0235657b.js} +2 -2
  185. package/lib/dist-custom-elements/{p-3cf9279e.js → p-163fcdbb.js} +5 -5
  186. package/lib/dist-custom-elements/{p-50f2dfcb.js → p-18b82843.js} +5 -5
  187. package/lib/dist-custom-elements/{p-039237ee.js → p-28ac1c89.js} +4 -4
  188. package/lib/dist-custom-elements/{p-9ef18b91.js → p-2e774732.js} +3 -3
  189. package/lib/dist-custom-elements/{p-e72a6457.js → p-2f0560b2.js} +1 -1
  190. package/lib/dist-custom-elements/{p-e135afb5.js → p-40d68c33.js} +10 -10
  191. package/lib/dist-custom-elements/{p-9e91399b.js → p-4a179227.js} +2 -2
  192. package/lib/dist-custom-elements/{p-40d52d9d.js → p-544c2468.js} +1 -1
  193. package/lib/dist-custom-elements/{p-3f5b9e4e.js → p-59866ec4.js} +2 -2
  194. package/lib/dist-custom-elements/{p-92faa973.js → p-5ab3aa7e.js} +10 -10
  195. package/lib/dist-custom-elements/{p-be8a0833.js → p-5da97911.js} +3 -3
  196. package/lib/dist-custom-elements/{p-5a9d4dcd.js → p-63afd881.js} +1 -1
  197. package/lib/dist-custom-elements/{p-1fb1ba25.js → p-641f26f0.js} +1 -1
  198. package/lib/dist-custom-elements/{p-e5d090f6.js → p-646c1073.js} +1 -1
  199. package/lib/dist-custom-elements/{p-de28c596.js → p-6c661974.js} +1 -1
  200. package/lib/dist-custom-elements/{p-4a7988f6.js → p-6c7e40b7.js} +1 -1
  201. package/lib/dist-custom-elements/{p-1382c754.js → p-6d15ae64.js} +5 -5
  202. package/lib/dist-custom-elements/{p-f6346b8d.js → p-93f0dc64.js} +1 -1
  203. package/lib/dist-custom-elements/{p-a59860f5.js → p-9813ba38.js} +1 -1
  204. package/lib/dist-custom-elements/{p-1ef29810.js → p-98a1192e.js} +2 -2
  205. package/lib/dist-custom-elements/{p-3745642b.js → p-9991c742.js} +1 -1
  206. package/lib/dist-custom-elements/{p-9c58d82c.js → p-a27e59c7.js} +2 -2
  207. package/lib/dist-custom-elements/{p-1dcaa238.js → p-aa1734c0.js} +8 -8
  208. package/lib/dist-custom-elements/{p-b8279f4f.js → p-bb23679c.js} +1 -1
  209. package/lib/dist-custom-elements/{p-2cc0af83.js → p-c75d0764.js} +1 -1
  210. package/lib/dist-custom-elements/{p-8c086d3a.js → p-d115f8c4.js} +1 -1
  211. package/lib/dist-custom-elements/{p-baf9c46a.js → p-d1c5ad0c.js} +1 -1
  212. package/lib/dist-custom-elements/{p-d383f9c9.js → p-db6d3937.js} +1 -1
  213. package/lib/dist-custom-elements/{p-76ee7944.js → p-e619b416.js} +1 -1
  214. package/lib/dist-custom-elements/{p-23b6082f.js → p-eef59051.js} +1 -1
  215. package/lib/dist-custom-elements/{p-4cf5a677.js → p-f4277d58.js} +1 -1
  216. package/lib/dist-custom-elements/{p-5b62fb39.js → p-ffaf9be2.js} +3 -3
  217. package/lib/duet/duet.esm.js +1 -1
  218. package/lib/duet/duet.js +1 -1
  219. package/lib/duet/{p-159b924d.system.entry.js → p-004e93f9.system.entry.js} +1 -1
  220. package/lib/duet/{p-e9b2c7e4.system.entry.js → p-0129cb8f.system.entry.js} +1 -1
  221. package/lib/duet/{p-f585d7b5.system.entry.js → p-013b39fc.system.entry.js} +2 -2
  222. package/lib/duet/{p-97cbde30.entry.js → p-03e50791.entry.js} +1 -1
  223. package/lib/duet/p-07067450.entry.js +4 -0
  224. package/lib/duet/{p-9f0dd687.system.entry.js → p-071e0dd1.system.entry.js} +1 -1
  225. package/lib/duet/{p-69a94f2d.entry.js → p-085dd685.entry.js} +1 -1
  226. package/lib/duet/{p-40598b80.entry.js → p-087f1a26.entry.js} +1 -1
  227. package/lib/duet/{p-e385796b.system.entry.js → p-095e369e.system.entry.js} +1 -1
  228. package/lib/duet/{p-952be9d4.js → p-09822b6f.js} +1 -1
  229. package/lib/duet/{p-348cc541.entry.js → p-0b2284c1.entry.js} +1 -1
  230. package/lib/duet/{p-06414246.system.entry.js → p-0b58263e.system.entry.js} +1 -1
  231. package/lib/duet/{p-85f1532a.system.entry.js → p-0c049754.system.entry.js} +1 -1
  232. package/lib/duet/{p-734b89b5.system.entry.js → p-0cc2bc70.system.entry.js} +1 -1
  233. package/lib/duet/{p-d4c1b1de.system.entry.js → p-0d9f8aed.system.entry.js} +1 -1
  234. package/lib/duet/{p-4b1a6342.entry.js → p-102486d0.entry.js} +1 -1
  235. package/lib/duet/{p-6b92ba66.entry.js → p-125a5fa7.entry.js} +1 -1
  236. package/lib/duet/{p-b296ee8d.system.entry.js → p-12f9bd0e.system.entry.js} +1 -1
  237. package/lib/duet/{p-4ce838d3.system.entry.js → p-14ea141d.system.entry.js} +1 -1
  238. package/lib/duet/{p-cfb86754.entry.js → p-150e565b.entry.js} +1 -1
  239. package/lib/duet/{p-3dd9cd51.entry.js → p-15bf31f1.entry.js} +1 -1
  240. package/lib/duet/{p-98170be6.system.entry.js → p-1661eee5.system.entry.js} +1 -1
  241. package/lib/duet/{p-2e606fbd.entry.js → p-16904cfe.entry.js} +1 -1
  242. package/lib/duet/{p-e81d7759.entry.js → p-199e90c1.entry.js} +1 -1
  243. package/lib/duet/{p-7aa93437.entry.js → p-1b249ec1.entry.js} +1 -1
  244. package/lib/duet/{p-6eb22a05.system.entry.js → p-1cf0c69a.system.entry.js} +1 -1
  245. package/lib/duet/{p-6b57d5f1.system.entry.js → p-1d33edc3.system.entry.js} +1 -1
  246. package/lib/duet/{p-7ba971ba.system.entry.js → p-1defcf72.system.entry.js} +1 -1
  247. package/lib/duet/{p-912f2845.system.entry.js → p-1f993dad.system.entry.js} +1 -1
  248. package/lib/duet/{p-c4e0b710.entry.js → p-267922ed.entry.js} +1 -1
  249. package/lib/duet/{p-7b6ad23a.system.js → p-273c17c5.system.js} +1 -1
  250. package/lib/duet/{p-6f047bd0.entry.js → p-2958c680.entry.js} +1 -1
  251. package/lib/duet/{p-f566bdd0.system.entry.js → p-2aac0002.system.entry.js} +1 -1
  252. package/lib/duet/{p-947eb7f7.system.entry.js → p-2c4fd5bb.system.entry.js} +1 -1
  253. package/lib/duet/{p-512bb800.entry.js → p-2cd892f5.entry.js} +1 -1
  254. package/lib/duet/{p-66f1acfb.entry.js → p-319f4737.entry.js} +1 -1
  255. package/lib/duet/{p-df3875f6.system.entry.js → p-32158986.system.entry.js} +1 -1
  256. package/lib/duet/{p-3bbb72c3.entry.js → p-33987397.entry.js} +1 -1
  257. package/lib/duet/{p-453db452.system.entry.js → p-35e6de08.system.entry.js} +1 -1
  258. package/lib/duet/{p-3520c3c5.entry.js → p-35e7f63f.entry.js} +1 -1
  259. package/lib/duet/{p-b17e3805.system.entry.js → p-384a4393.system.entry.js} +1 -1
  260. package/lib/duet/{p-c812f711.entry.js → p-3a79efb6.entry.js} +1 -1
  261. package/lib/duet/{p-c333e0be.entry.js → p-3aa42780.entry.js} +1 -1
  262. package/lib/duet/p-3c014ca1.system.entry.js +4 -0
  263. package/lib/duet/{p-66698db5.system.entry.js → p-3cc0331b.system.entry.js} +1 -1
  264. package/lib/duet/{p-705b7fce.entry.js → p-3d4ac830.entry.js} +1 -1
  265. package/lib/duet/{p-f8f81402.system.entry.js → p-4139531b.system.entry.js} +1 -1
  266. package/lib/duet/{p-27aede8d.entry.js → p-443236a1.entry.js} +1 -1
  267. package/lib/duet/{p-34f2f57a.entry.js → p-472616f6.entry.js} +1 -1
  268. package/lib/duet/{p-088651cc.entry.js → p-49b2a8ae.entry.js} +1 -1
  269. package/lib/duet/{p-41500e3f.system.entry.js → p-4c05a0da.system.entry.js} +1 -1
  270. package/lib/duet/{p-0c6ced25.entry.js → p-4ead41a9.entry.js} +1 -1
  271. package/lib/duet/{p-c18074a4.entry.js → p-4ec32c74.entry.js} +1 -1
  272. package/lib/duet/{p-2fb8aa4f.system.entry.js → p-51932229.system.entry.js} +1 -1
  273. package/lib/duet/{p-d3c29c46.system.entry.js → p-53aec3e5.system.entry.js} +1 -1
  274. package/lib/duet/{p-379a4e23.entry.js → p-53b294db.entry.js} +1 -1
  275. package/lib/duet/{p-aeb25c6c.system.entry.js → p-54c3618b.system.entry.js} +1 -1
  276. package/lib/duet/{p-26d46cbe.system.entry.js → p-5590e72b.system.entry.js} +1 -1
  277. package/lib/duet/{p-2134a433.entry.js → p-55a567ab.entry.js} +1 -1
  278. package/lib/duet/{p-9d05f40d.entry.js → p-55d5384b.entry.js} +1 -1
  279. package/lib/duet/{p-e6af5b0e.system.entry.js → p-588feb0b.system.entry.js} +1 -1
  280. package/lib/duet/{p-5e2693ca.entry.js → p-5ae91a1a.entry.js} +1 -1
  281. package/lib/duet/{p-687d9a07.entry.js → p-5b562f86.entry.js} +1 -1
  282. package/lib/duet/{p-61ba59d8.system.entry.js → p-5f82caf9.system.entry.js} +1 -1
  283. package/lib/duet/{p-ee34eea7.entry.js → p-615a51f4.entry.js} +1 -1
  284. package/lib/duet/{p-6a973118.entry.js → p-61a2e4b4.entry.js} +1 -1
  285. package/lib/duet/{p-8f4574a3.entry.js → p-63e9128b.entry.js} +1 -1
  286. package/lib/duet/{p-0da2f971.system.entry.js → p-63eaa2b0.system.entry.js} +1 -1
  287. package/lib/duet/{p-f4a0fb90.system.entry.js → p-6715414e.system.entry.js} +1 -1
  288. package/lib/duet/{p-7f484e7d.system.entry.js → p-68071b63.system.entry.js} +1 -1
  289. package/lib/duet/p-69e3df63.system.entry.js +4 -0
  290. package/lib/duet/{p-a23a61e8.entry.js → p-6c0809d8.entry.js} +1 -1
  291. package/lib/duet/{p-7ea09436.system.entry.js → p-6d39f293.system.entry.js} +1 -1
  292. package/lib/duet/{p-0696ef4e.system.entry.js → p-6e3c77da.system.entry.js} +1 -1
  293. package/lib/duet/{p-d069dcb8.system.entry.js → p-6fcbf406.system.entry.js} +1 -1
  294. package/lib/duet/{p-c580e0da.system.entry.js → p-708d72ff.system.entry.js} +1 -1
  295. package/lib/duet/{p-e60717c4.entry.js → p-71004cdc.entry.js} +1 -1
  296. package/lib/duet/{p-c9a65132.entry.js → p-71c0c5dd.entry.js} +1 -1
  297. package/lib/duet/{p-d2ed19e5.system.entry.js → p-73536fca.system.entry.js} +1 -1
  298. package/lib/duet/{p-b9866fcf.entry.js → p-74c05983.entry.js} +1 -1
  299. package/lib/duet/{p-d67c4d73.system.entry.js → p-75db4b7f.system.entry.js} +2 -2
  300. package/lib/duet/{p-8fdf0978.entry.js → p-79f659d0.entry.js} +1 -1
  301. package/lib/duet/{p-2698a2a7.entry.js → p-7a5d5f31.entry.js} +1 -1
  302. package/lib/duet/{p-a78ac116.system.entry.js → p-7ac807c1.system.entry.js} +1 -1
  303. package/lib/duet/{p-ebe86eab.system.js → p-7bc398f4.system.js} +1 -1
  304. package/lib/duet/{p-c1486227.entry.js → p-7bfa34e8.entry.js} +1 -1
  305. package/lib/duet/{p-0cea5e71.system.entry.js → p-7daf67f9.system.entry.js} +1 -1
  306. package/lib/duet/{p-d5141a46.entry.js → p-7fe7dfe0.entry.js} +1 -1
  307. package/lib/duet/{p-4aec36f4.entry.js → p-8183a9ab.entry.js} +1 -1
  308. package/lib/duet/p-825b9fff.entry.js +4 -0
  309. package/lib/duet/{p-8f3c8686.entry.js → p-8299c898.entry.js} +1 -1
  310. package/lib/duet/{p-32a915b6.system.entry.js → p-859d58c7.system.entry.js} +1 -1
  311. package/lib/duet/{p-6694fb8d.entry.js → p-87a6fa20.entry.js} +1 -1
  312. package/lib/duet/{p-3da3549d.system.entry.js → p-87a97a11.system.entry.js} +1 -1
  313. package/lib/duet/{p-a909c491.system.entry.js → p-88a5df69.system.entry.js} +1 -1
  314. package/lib/duet/{p-da325307.system.entry.js → p-8bf76ff4.system.entry.js} +1 -1
  315. package/lib/duet/{p-08e57bfb.entry.js → p-8f0d3e27.entry.js} +1 -1
  316. package/lib/duet/{p-3f15931d.entry.js → p-91613823.entry.js} +1 -1
  317. package/lib/duet/{p-37cb6e4b.entry.js → p-91fb66e8.entry.js} +1 -1
  318. package/lib/duet/{p-d5ca6d01.system.entry.js → p-93422612.system.entry.js} +1 -1
  319. package/lib/duet/{p-a234d3ae.entry.js → p-957eeb84.entry.js} +1 -1
  320. package/lib/duet/{p-8f7b7fed.system.js → p-9612326c.system.js} +1 -1
  321. package/lib/duet/{p-273a8e22.system.entry.js → p-98da0cad.system.entry.js} +1 -1
  322. package/lib/duet/{p-a46b458a.entry.js → p-9a48ccad.entry.js} +1 -1
  323. package/lib/duet/{p-fb5fd372.entry.js → p-9bd46a56.entry.js} +1 -1
  324. package/lib/duet/{p-4e36d3b8.system.entry.js → p-9d15b0ce.system.entry.js} +1 -1
  325. package/lib/duet/{p-8740d6b0.system.entry.js → p-9f55caf5.system.entry.js} +1 -1
  326. package/lib/duet/{p-4a24162b.system.entry.js → p-a20413e7.system.entry.js} +1 -1
  327. package/lib/duet/{p-a6e420c4.entry.js → p-a23d858f.entry.js} +1 -1
  328. package/lib/duet/{p-20d1537f.entry.js → p-a65050e0.entry.js} +1 -1
  329. package/lib/duet/{p-66db00c7.entry.js → p-a6f576c7.entry.js} +1 -1
  330. package/lib/duet/p-a89163ea.js +4 -0
  331. package/lib/duet/{p-cc97bedc.entry.js → p-a8f64133.entry.js} +1 -1
  332. package/lib/duet/{p-9351cec6.entry.js → p-ab948224.entry.js} +1 -1
  333. package/lib/duet/{p-67ee5600.system.entry.js → p-ac1409be.system.entry.js} +1 -1
  334. package/lib/duet/{p-54cc0a31.system.entry.js → p-acf0ecbf.system.entry.js} +1 -1
  335. package/lib/duet/{p-fb8dc99e.entry.js → p-af4f739c.entry.js} +1 -1
  336. package/lib/duet/{p-2fd91995.system.entry.js → p-af728064.system.entry.js} +1 -1
  337. package/lib/duet/{p-f9260800.entry.js → p-b14dff8b.entry.js} +1 -1
  338. package/lib/duet/p-b7a29a7a.entry.js +4 -0
  339. package/lib/duet/{p-3f1fb161.system.entry.js → p-b91cfa37.system.entry.js} +1 -1
  340. package/lib/duet/{p-e3a9189d.system.entry.js → p-b9808683.system.entry.js} +1 -1
  341. package/lib/duet/{p-c6f5ad03.system.entry.js → p-bdbea745.system.entry.js} +1 -1
  342. package/lib/duet/{p-5fbb8871.entry.js → p-c306cd8b.entry.js} +1 -1
  343. package/lib/duet/{p-80d685b3.entry.js → p-c410e83b.entry.js} +1 -1
  344. package/lib/duet/{p-5f8a31f6.entry.js → p-c7888e86.entry.js} +1 -1
  345. package/lib/duet/{p-2badccdf.entry.js → p-c9a72a1c.entry.js} +1 -1
  346. package/lib/duet/{p-6b6f40c2.system.entry.js → p-cde3810f.system.entry.js} +1 -1
  347. package/lib/duet/{p-2a693a3d.system.entry.js → p-d0cebc0f.system.entry.js} +1 -1
  348. package/lib/duet/{p-f823532e.entry.js → p-d15454ba.entry.js} +1 -1
  349. package/lib/duet/{p-5e655cb3.entry.js → p-d1f09a1b.entry.js} +1 -1
  350. package/lib/duet/{p-fc3b2332.system.entry.js → p-d2b0c9b2.system.entry.js} +1 -1
  351. package/lib/duet/{p-580784b0.system.entry.js → p-d2c0a339.system.entry.js} +1 -1
  352. package/lib/duet/{p-94ac55df.system.entry.js → p-d3a33b68.system.entry.js} +1 -1
  353. package/lib/duet/{p-514b17cb.entry.js → p-d5bc3742.entry.js} +1 -1
  354. package/lib/duet/{p-751f948a.entry.js → p-d6224ef6.entry.js} +1 -1
  355. package/lib/duet/{p-df8e02cd.entry.js → p-d6b794ff.entry.js} +1 -1
  356. package/lib/duet/{p-dbedc3d7.entry.js → p-d6bd6b21.entry.js} +1 -1
  357. package/lib/duet/{p-3e762a62.system.entry.js → p-d6ef38f6.system.entry.js} +1 -1
  358. package/lib/duet/{p-ec6b5887.entry.js → p-d7edfa8b.entry.js} +1 -1
  359. package/lib/duet/p-d809eeef.system.entry.js +4 -0
  360. package/lib/duet/{p-3455e6bd.system.entry.js → p-d8cc3e33.system.entry.js} +1 -1
  361. package/lib/duet/{p-28287593.system.entry.js → p-d8f9b66a.system.entry.js} +1 -1
  362. package/lib/duet/{p-a7de0021.system.entry.js → p-db2646d9.system.entry.js} +1 -1
  363. package/lib/duet/{p-817387b9.entry.js → p-deb762ba.entry.js} +1 -1
  364. package/lib/duet/{p-43c83324.system.entry.js → p-e0d61dd2.system.entry.js} +1 -1
  365. package/lib/duet/{p-0449cc87.system.entry.js → p-e1991ce1.system.entry.js} +1 -1
  366. package/lib/duet/{p-bbd58f90.system.entry.js → p-e29085ac.system.entry.js} +1 -1
  367. package/lib/duet/{p-4491e3a2.system.entry.js → p-e9c852e2.system.entry.js} +1 -1
  368. package/lib/duet/{p-f275b0a5.system.entry.js → p-ebc416ed.system.entry.js} +1 -1
  369. package/lib/duet/{p-2f0257a3.system.entry.js → p-f0dadf8b.system.entry.js} +1 -1
  370. package/lib/duet/{p-8475fb24.system.entry.js → p-f36508e4.system.entry.js} +1 -1
  371. package/lib/duet/{p-070cfaad.entry.js → p-f40d8d4f.entry.js} +1 -1
  372. package/lib/duet/{p-2dbf7b13.entry.js → p-f4ffe080.entry.js} +1 -1
  373. package/lib/duet/{p-c59470ed.entry.js → p-f7711547.entry.js} +1 -1
  374. package/lib/duet/{p-025af8f7.system.entry.js → p-febb27db.system.entry.js} +1 -1
  375. package/lib/duet/{p-6ecd5a48.entry.js → p-ff4413e1.entry.js} +1 -1
  376. package/lib/esm/duet-action-button.entry.js +1 -1
  377. package/lib/esm/duet-alert.entry.js +1 -1
  378. package/lib/esm/duet-badge.entry.js +2 -2
  379. package/lib/esm/duet-banner.entry.js +1 -1
  380. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  381. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  382. package/lib/esm/duet-button_2.entry.js +1 -1
  383. package/lib/esm/duet-callout.entry.js +1 -1
  384. package/lib/esm/duet-caption_4.entry.js +1 -1
  385. package/lib/esm/duet-card.entry.js +1 -1
  386. package/lib/esm/duet-checkbox.entry.js +1 -1
  387. package/lib/esm/duet-checkmark.entry.js +1 -1
  388. package/lib/esm/duet-chip.entry.js +1 -1
  389. package/lib/esm/duet-choice_2.entry.js +2 -2
  390. package/lib/esm/duet-collapsible.entry.js +1 -1
  391. package/lib/esm/duet-combobox.entry.js +1 -1
  392. package/lib/esm/duet-contact-card.entry.js +1 -1
  393. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  394. package/lib/esm/duet-date-picker.entry.js +2 -2
  395. package/lib/esm/duet-divider_2.entry.js +1 -1
  396. package/lib/esm/duet-editable-table_3.entry.js +1 -1
  397. package/lib/esm/duet-empty-state.entry.js +1 -1
  398. package/lib/esm/duet-fieldset.entry.js +1 -1
  399. package/lib/esm/duet-footer.entry.js +1 -1
  400. package/lib/esm/duet-grid_2.entry.js +1 -1
  401. package/lib/esm/duet-header_2.entry.js +1 -1
  402. package/lib/esm/duet-hero.entry.js +2 -2
  403. package/lib/esm/duet-icon.entry.js +1 -1
  404. package/lib/esm/duet-input_2.entry.js +1 -1
  405. package/lib/esm/duet-layout.entry.js +1 -1
  406. package/lib/esm/duet-list_2.entry.js +1 -1
  407. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  408. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  409. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  410. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  411. package/lib/esm/duet-menu-bar.entry.js +1 -1
  412. package/lib/esm/duet-modal.entry.js +2 -2
  413. package/lib/esm/duet-multiselect.entry.js +1 -1
  414. package/lib/esm/duet-nav.entry.js +1 -1
  415. package/lib/esm/duet-notification_2.entry.js +1 -1
  416. package/lib/esm/duet-number-input.entry.js +1 -1
  417. package/lib/esm/duet-page-heading.entry.js +1 -1
  418. package/lib/esm/duet-pagination_2.entry.js +1 -1
  419. package/lib/esm/duet-popup-menu-item.entry.js +1 -1
  420. package/lib/esm/duet-popup-menu.entry.js +1 -1
  421. package/lib/esm/duet-progress.entry.js +1 -1
  422. package/lib/esm/duet-promo-card.entry.js +1 -1
  423. package/lib/esm/duet-radio_2.entry.js +1 -1
  424. package/lib/esm/duet-range-slider.entry.js +1 -1
  425. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  426. package/lib/esm/duet-section-layout.entry.js +1 -1
  427. package/lib/esm/duet-select.entry.js +1 -1
  428. package/lib/esm/duet-shaped-image.entry.js +1 -1
  429. package/lib/esm/duet-show-more.entry.js +1 -1
  430. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  431. package/lib/esm/duet-slideout-link.entry.js +1 -1
  432. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  433. package/lib/esm/duet-slideout-panel.entry.js +2 -2
  434. package/lib/esm/duet-slideout.entry.js +2 -2
  435. package/lib/esm/duet-step_2.entry.js +1 -1
  436. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  437. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  438. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  439. package/lib/esm/duet-submenu-bar.entry.js +3 -3
  440. package/lib/esm/duet-textarea.entry.js +1 -1
  441. package/lib/esm/duet-toggle.entry.js +1 -1
  442. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  443. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  444. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  445. package/lib/esm/duet-toolbar.entry.js +1 -1
  446. package/lib/esm/duet-tooltip-button_2.entry.js +2 -2
  447. package/lib/esm/duet-tooltip.entry.js +1 -1
  448. package/lib/esm/duet-tray.entry.js +1 -1
  449. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  450. package/lib/esm/duet-upload-item.entry.js +1 -1
  451. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  452. package/lib/esm/duet.js +2 -2
  453. package/lib/esm/{focus-utils-383e1d77.js → focus-utils-cec4482a.js} +1 -1
  454. package/lib/esm/{index-a223aee0.js → index-5e6959fa.js} +1 -1
  455. package/lib/esm/loader.js +2 -2
  456. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  457. package/lib/esm-es5/duet-alert.entry.js +1 -1
  458. package/lib/esm-es5/duet-badge.entry.js +1 -1
  459. package/lib/esm-es5/duet-banner.entry.js +1 -1
  460. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  461. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  462. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  463. package/lib/esm-es5/duet-callout.entry.js +1 -1
  464. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  465. package/lib/esm-es5/duet-card.entry.js +1 -1
  466. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  467. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  468. package/lib/esm-es5/duet-chip.entry.js +1 -1
  469. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  470. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  471. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  472. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  473. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  474. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  475. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  476. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  477. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  478. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  479. package/lib/esm-es5/duet-footer.entry.js +1 -1
  480. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  481. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  482. package/lib/esm-es5/duet-hero.entry.js +1 -1
  483. package/lib/esm-es5/duet-icon.entry.js +1 -1
  484. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  485. package/lib/esm-es5/duet-layout.entry.js +1 -1
  486. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  487. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  488. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  489. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  490. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  491. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  492. package/lib/esm-es5/duet-modal.entry.js +1 -1
  493. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  494. package/lib/esm-es5/duet-nav.entry.js +1 -1
  495. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  496. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  497. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  498. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  499. package/lib/esm-es5/duet-popup-menu-item.entry.js +1 -1
  500. package/lib/esm-es5/duet-popup-menu.entry.js +1 -1
  501. package/lib/esm-es5/duet-progress.entry.js +1 -1
  502. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  503. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  504. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  505. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  506. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  507. package/lib/esm-es5/duet-select.entry.js +1 -1
  508. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  509. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  510. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  511. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  512. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  513. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  514. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  515. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  516. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  517. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  518. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  519. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  520. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  521. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  522. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  523. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +2 -2
  524. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  525. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  526. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  527. package/lib/esm-es5/duet-tooltip.entry.js +2 -2
  528. package/lib/esm-es5/duet-tray.entry.js +1 -1
  529. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  530. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  531. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  532. package/lib/esm-es5/duet.js +1 -1
  533. package/lib/esm-es5/focus-utils-cec4482a.js +4 -0
  534. package/lib/esm-es5/{index-a223aee0.js → index-5e6959fa.js} +1 -1
  535. package/lib/esm-es5/loader.js +1 -1
  536. package/lib/types/components/duet-badge/duet-badge.d.ts +1 -1
  537. package/lib/types/components.d.ts +2 -2
  538. package/package.json +5 -5
  539. package/lib/duet/p-048b9a43.entry.js +0 -4
  540. package/lib/duet/p-26388853.entry.js +0 -4
  541. package/lib/duet/p-26596155.js +0 -4
  542. package/lib/duet/p-306d7350.system.entry.js +0 -4
  543. package/lib/duet/p-4dbc0e38.entry.js +0 -4
  544. package/lib/duet/p-b79ca086.system.entry.js +0 -4
  545. package/lib/duet/p-bd2d194e.system.entry.js +0 -4
  546. package/lib/esm-es5/focus-utils-383e1d77.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t,H as o,g as r}from"./p-952be9d4.js";import{i as a}from"./p-4ebf1618.js";const n=class{constructor(t){e(this,t),this.theme="",this.accessibleLabel=void 0}componentWillLoad(){a(this);const e=Array.from(this.element.children);for(const t of e)if("left"===t.getAttribute("slot"))for(const e of Array.from(t.children))e.setAttribute("role","listitem");else if("right"===t.getAttribute("slot"))for(const e of Array.from(t.children))e.setAttribute("role","listitem")}render(){return t(o,null,t("nav",{class:{"duet-toolbar":!0,"duet-theme-turva":"turva"===this.theme},"aria-label":this.accessibleLabel},t("div",{class:"container"},t("div",{class:"list",role:"list"},t("slot",{name:"left"})),t("div",{class:"list",role:"list"},t("slot",{name:"right"})))))}get element(){return r(this)}};n.style="*,*::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%}.duet-toolbar{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255)}.duet-toolbar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1384px;height:36px;margin:0 28px;border-bottom:1px solid rgb(225, 227, 230)}.duet-toolbar .list{display:flex;align-items:center;justify-content:space-between;height:100%;list-style-type:none}.duet-toolbar ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-toolbar.duet-theme-turva{background:rgb(255, 255, 255)}.duet-toolbar.duet-theme-turva .container{border-bottom:1px solid rgb(228, 228, 230)}";export{n as duet_toolbar}
4
+ import{r as t,h as e,H as o,g as r}from"./p-09822b6f.js";import{i as a}from"./p-4ebf1618.js";const n=class{constructor(e){t(this,e),this.theme="",this.accessibleLabel=void 0}componentWillLoad(){a(this);const t=Array.from(this.element.children);for(const e of t)if("left"===e.getAttribute("slot"))for(const t of Array.from(e.children))t.setAttribute("role","listitem");else if("right"===e.getAttribute("slot"))for(const t of Array.from(e.children))t.setAttribute("role","listitem")}render(){return e(o,null,e("nav",{class:{"duet-toolbar":!0,"duet-theme-turva":"turva"===this.theme},"aria-label":this.accessibleLabel},e("div",{class:"container"},e("div",{class:"list",role:"list"},e("slot",{name:"left"})),e("div",{class:"list",role:"list"},e("slot",{name:"right"})))))}get element(){return r(this)}};n.style="*,*::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%}.duet-toolbar{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;background:rgb(255, 255, 255)}.duet-toolbar .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1384px;height:36px;margin:0 28px;border-bottom:1px solid rgb(225, 227, 230)}.duet-toolbar .list{display:flex;align-items:center;justify-content:space-between;height:100%;list-style-type:none}.duet-toolbar ::slotted(*){display:flex;align-items:center;justify-content:center;height:100%}.duet-toolbar.duet-theme-turva{background:rgb(255, 255, 255)}.duet-toolbar.duet-theme-turva .container{border-bottom:1px solid rgb(228, 228, 230)}";export{n as duet_toolbar}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as t,c as e,h as s,g as i,H as r}from"./p-952be9d4.js";import{i as d}from"./p-4ebf1618.js";import{c as o}from"./p-c1325e35.js";import{i as n}from"./p-f077c646.js";const p=class{constructor(s){t(this,s),this.duetStepClick=e(this,"duetStepClick",7),this.buttonId=o("DuetStepButton"),this.contentId=o("DuetStepContent"),this.handleKeyDown=t=>{this.isClickDisabled()||n(t)&&(t.preventDefault(),this.handleStepClick(t))},this.handleClick=t=>{this.isClickDisabled()||this.handleStepClick(t)},this.theme="",this.heading=void 0,this.headingLevel=void 0,this.stepIndex=void 0,this.state=void 0,this.roundedTop=!1,this.roundedBottom=!1}handleStepClick(t){this.duetStepClick.emit({originalEvent:t,component:"duet-step",stepIndex:this.stepIndex})}componentWillLoad(){d(this)}async setFocus(t={preventScroll:!0}){this.buttonElement.focus(t)}isClickDisabled(){return"complete"!==this.state}headingColor(){return"incomplete"!==this.state?"":"turva"!==this.theme?"gray-darker":"gray-dark-turva"}renderStepCounter(){return"complete"===this.state||"disabled"===this.state?s("div",{class:"duet-step-icon"},s("duet-icon",{margin:"none",size:"auto",color:"gray-lightest",icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.748 24a.755.755 0 0 1-.531-.22.754.754 0 0 1-.196-.716l1.77-6.905a.84.84 0 0 1 .045-.121.73.73 0 0 1 .151-.223L16.513 1.289A4.355 4.355 0 0 1 19.611 0c1.178 0 2.277.454 3.106 1.279l.029.029a4.367 4.367 0 0 1 1.251 3.121 4.356 4.356 0 0 1-1.32 3.087L8.183 22.01a.735.735 0 0 1-.231.154.784.784 0 0 1-.111.042L.933 23.978A.773.773 0 0 1 .748 24zm1.041-1.791 4.41-1.131-3.281-3.275zm5.868-1.795 13.02-13.02-4.074-4.074L3.58 16.344zM21.736 6.332a2.893 2.893 0 0 0-.059-3.972l-.02-.02a2.872 2.872 0 0 0-2.037-.84v-.375l-.001.375a2.873 2.873 0 0 0-1.954.762z"/></svg>'})):`${this.stepIndex+1} `}render(){return s("div",{class:{"duet-step":!0,[`is-${this.state}`]:!0,"rounded-top":this.roundedTop,"rounded-bottom":this.roundedBottom,"duet-theme-turva":"turva"===this.theme}},s("div",{class:"duet-step-heading",id:this.buttonId,role:"current"!==this.state?"button":"region","aria-current":"current"===this.state?"step":void 0,tabindex:"current"!==this.state?"0":void 0,"aria-disabled":this.isClickDisabled().toString(),"aria-expanded":("current"===this.state).toString(),"aria-controls":this.contentId,"aria-selected":("current"===this.state).toString(),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:t=>this.buttonElement=t},s("div",{"aria-hidden":"true"},s("div",{class:"duet-step-counter"},this.renderStepCounter())),s("duet-spacer",{direction:"horizontal",size:"large",breakpoint:"small"}),s("duet-spacer",{direction:"horizontal",size:"medium",breakpoint:"x-small"}),s("div",null,s("duet-heading",{theme:this.theme,level:this.headingLevel,visualLevel:"h4",color:this.headingColor(),margin:"none"},this.heading)),s("duet-spacer",{direction:"horizontal",size:"large"}),s("div",{class:"duet-step-heading-slot"},s("slot",{name:"heading-content"}))),s("div",{class:"duet-step-content-wrapper"},s("div",{class:"duet-step-content",role:"region","aria-labelledby":this.buttonId,id:this.contentId},s("slot",null))))}get element(){return i(this)}};p.style='*.sc-duet-step,*.sc-duet-step::after,*.sc-duet-step::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-step-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block}.duet-step.sc-duet-step{padding:20px !important;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;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.duet-theme-turva.sc-duet-step{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.rounded-top.sc-duet-step{border-top-left-radius:4px;border-top-right-radius:4px}.duet-step.rounded-bottom.sc-duet-step{margin-bottom:20px !important;border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-step.rounded-bottom.sc-duet-step{margin-bottom:0 !important}}@media (min-width: 36em){.duet-step.sc-duet-step{padding:0 20px 0 0 !important;margin:0 !important;font-size:1.25rem;box-shadow:none !important}}.duet-step-heading.sc-duet-step{display:flex;align-items:center;border-radius:4px}.duet-step-heading[aria-disabled=false].sc-duet-step{cursor:pointer}.duet-step-heading.sc-duet-step:focus{outline:0}.duet-step-heading.sc-duet-step:active{opacity:0.75}.user-is-tabbing.sc-duet-step-h .duet-step-heading.sc-duet-step:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.user-is-tabbing.sc-duet-step-h .duet-theme-turva.sc-duet-step .duet-step-heading.sc-duet-step:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.is-complete.sc-duet-step .duet-step-heading.sc-duet-step:hover .duet-step-counter.sc-duet-step,.is-disabled.sc-duet-step .duet-step-heading.sc-duet-step:hover .duet-step-counter.sc-duet-step{background-color:#005f8f}.duet-theme-turva.is-complete.sc-duet-step .duet-step-heading.sc-duet-step:hover .duet-step-counter.sc-duet-step,.duet-theme-turva.is-disabled.sc-duet-step .duet-step-heading.sc-duet-step:hover .duet-step-counter.sc-duet-step{background-color:#9e0a26}.is-current.sc-duet-step .duet-step-heading.sc-duet-step{margin-bottom:20px}@media (min-width: 36em){.duet-step-heading.sc-duet-step{margin-top:8px;margin-bottom:8px !important}.sc-duet-step-h:first-of-type .duet-step-heading.sc-duet-step{margin-top:0}.sc-duet-step-h:last-of-type .duet-step-heading.sc-duet-step{margin-bottom:0 !important}}.duet-step-counter.sc-duet-step{-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;line-height:30px;color:rgb(255, 255, 255);text-align:center;border-radius:50%;transition:background-color 300ms ease}@media (min-width: 36em){.duet-step-counter.sc-duet-step{width:40px;height:40px;line-height:40px}}.is-complete.sc-duet-step .duet-step-counter.sc-duet-step,.is-current.sc-duet-step .duet-step-counter.sc-duet-step,.is-disabled.sc-duet-step .duet-step-counter.sc-duet-step{background-color:rgb(0, 119, 179)}.duet-theme-turva.is-complete.sc-duet-step .duet-step-counter.sc-duet-step,.duet-theme-turva.is-current.sc-duet-step .duet-step-counter.sc-duet-step,.duet-theme-turva.is-disabled.sc-duet-step .duet-step-counter.sc-duet-step{background-color:rgb(198, 12, 48)}.is-incomplete.sc-duet-step .duet-step-counter.sc-duet-step{background-color:rgb(101, 119, 135)}.duet-theme-turva.is-incomplete.sc-duet-step .duet-step-counter.sc-duet-step{background-color:rgb(116, 116, 117)}.duet-step-icon.sc-duet-step{display:flex;align-items:center;justify-content:center;width:16px;height:16px}@media (min-width: 36em){.duet-step-icon.sc-duet-step{width:20px;height:20px}}.duet-step-icon.sc-duet-step duet-icon.sc-duet-step{width:16px;height:16px}@media (min-width: 36em){.duet-step-icon.sc-duet-step duet-icon.sc-duet-step{width:20px;height:20px}}@media (min-width: 36em){.duet-step-content-wrapper.sc-duet-step{min-height:20px;padding-left:40px;margin-left:19px;border-left:2px solid rgb(225, 227, 230)}.duet-theme-turva.sc-duet-step .duet-step-content-wrapper.sc-duet-step{border-color:rgb(228, 228, 230)}.sc-duet-step-h:last-of-type .duet-step-content-wrapper.sc-duet-step{min-height:0;border:transparent}}.duet-step-content.sc-duet-step{display:none;padding-bottom:16px}@media (min-width: 36em){.duet-step-content.sc-duet-step{padding-bottom:28px}}.is-current.sc-duet-step .duet-step-content.sc-duet-step{display:block}.duet-step-heading-slot.sc-duet-step{display:none;margin-top:2px}@media (min-width: 48em){.duet-step-heading-slot.sc-duet-step{display:block}}';const a=class{constructor(s){t(this,s),this.duetStepChange=e(this,"duetStepChange",7),this.theme="",this.accessibleLive="Lista jossa {total} kohtaa. Olet kohdassa {current}.",this.margin="auto",this.backDisabled=!1,this.selected=0}currentStepChanged(t){if(isNaN(t))throw new Error(`step must be a number. got: ${t}`);if(t<0)throw new Error(`step must be not be less than zero. got: ${t}`);if(t>this.getSteps().length)throw new Error("step must not exceed total number of steps");this.updateStepState(),setTimeout((()=>this.setStepFocus()),50)}currentStepInvokedDisable(){this.updateStepState()}onDuetStepClick(t){this.duetStepChange.emit({fromStep:this.selected,toStep:t.detail.stepIndex,component:"duet-stepper"})}componentWillLoad(){d(this)}async connectedCallback(){this.updateStepState()}getSteps(){return Array.from(this.element.querySelectorAll("duet-step"))}setStepFocus(){this.getSteps()[this.selected].setFocus()}updateStepState(){const t=this.getSteps();t.forEach(((t,e)=>{let s;s=e<this.selected?this.backDisabled?"disabled":"complete":e>this.selected?"incomplete":"current",t.theme=this.theme,t.state=s,t.stepIndex=e}));const e=function(t,e){const s={};return e.forEach((t=>{const e=t.state;s[e]||(s[e]=[]),s[e].push(t)})),s}(0,t);Object.values(e).forEach((t=>{t.forEach(((e,s)=>{e.roundedTop=0===s,e.roundedBottom=s===t.length-1}))}))}formatAnnouncement(){const t=this.getSteps(),e=(this.selected+1).toString(10),s=t.length.toString(10);return this.accessibleLive.replace("{current}",e).replace("{total}",s)}render(){return s(r,{class:{"duet-m-0":"none"===this.margin}},s("div",{class:{"duet-stepper":!0,"duet-theme-turva":"turva"===this.theme}},s("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement()),s("slot",null)))}get element(){return i(this)}static get watchers(){return{selected:["currentStepChanged"],backDisabled:["currentStepInvokedDisable"]}}};a.style=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}.duet-stepper{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-stepper{padding:28px !important;padding-top:36px !important;padding-bottom:36px !important;background:rgb(255, 255, 255);border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}}";export{p as duet_step,a as duet_stepper}
4
+ import{r as t,c as e,h as s,g as i,H as r}from"./p-09822b6f.js";import{i as d}from"./p-4ebf1618.js";import{c as o}from"./p-c1325e35.js";import{i as n}from"./p-f077c646.js";const p=class{constructor(s){t(this,s),this.duetStepClick=e(this,"duetStepClick",7),this.buttonId=o("DuetStepButton"),this.contentId=o("DuetStepContent"),this.handleKeyDown=t=>{this.isClickDisabled()||n(t)&&(t.preventDefault(),this.handleStepClick(t))},this.handleClick=t=>{this.isClickDisabled()||this.handleStepClick(t)},this.theme="",this.heading=void 0,this.headingLevel=void 0,this.stepIndex=void 0,this.state=void 0,this.roundedTop=!1,this.roundedBottom=!1}handleStepClick(t){this.duetStepClick.emit({originalEvent:t,component:"duet-step",stepIndex:this.stepIndex})}componentWillLoad(){d(this)}async setFocus(t={preventScroll:!0}){this.buttonElement.focus(t)}isClickDisabled(){return"complete"!==this.state}headingColor(){return"incomplete"!==this.state?"":"turva"!==this.theme?"gray-darker":"gray-dark-turva"}renderStepCounter(){return"complete"===this.state||"disabled"===this.state?s("div",{class:"duet-step-icon"},s("duet-icon",{margin:"none",size:"auto",color:"gray-lightest",icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.748 24a.755.755 0 0 1-.531-.22.754.754 0 0 1-.196-.716l1.77-6.905a.84.84 0 0 1 .045-.121.73.73 0 0 1 .151-.223L16.513 1.289A4.355 4.355 0 0 1 19.611 0c1.178 0 2.277.454 3.106 1.279l.029.029a4.367 4.367 0 0 1 1.251 3.121 4.356 4.356 0 0 1-1.32 3.087L8.183 22.01a.735.735 0 0 1-.231.154.784.784 0 0 1-.111.042L.933 23.978A.773.773 0 0 1 .748 24zm1.041-1.791 4.41-1.131-3.281-3.275zm5.868-1.795 13.02-13.02-4.074-4.074L3.58 16.344zM21.736 6.332a2.893 2.893 0 0 0-.059-3.972l-.02-.02a2.872 2.872 0 0 0-2.037-.84v-.375l-.001.375a2.873 2.873 0 0 0-1.954.762z"/></svg>'})):`${this.stepIndex+1} `}render(){return s("div",{class:{"duet-step":!0,[`is-${this.state}`]:!0,"rounded-top":this.roundedTop,"rounded-bottom":this.roundedBottom,"duet-theme-turva":"turva"===this.theme}},s("div",{class:"duet-step-heading",id:this.buttonId,role:"current"!==this.state?"button":"region","aria-current":"current"===this.state?"step":void 0,tabindex:"current"!==this.state?"0":void 0,"aria-disabled":this.isClickDisabled().toString(),"aria-expanded":("current"===this.state).toString(),"aria-controls":this.contentId,"aria-selected":("current"===this.state).toString(),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:t=>this.buttonElement=t},s("div",{"aria-hidden":"true"},s("div",{class:"duet-step-counter"},this.renderStepCounter())),s("duet-spacer",{direction:"horizontal",size:"large",breakpoint:"small"}),s("duet-spacer",{direction:"horizontal",size:"medium",breakpoint:"x-small"}),s("div",null,s("duet-heading",{theme:this.theme,level:this.headingLevel,visualLevel:"h4",color:this.headingColor(),margin:"none"},this.heading)),s("duet-spacer",{direction:"horizontal",size:"large"}),s("div",{class:"duet-step-heading-slot"},s("slot",{name:"heading-content"}))),s("div",{class:"duet-step-content-wrapper"},s("div",{class:"duet-step-content",role:"region","aria-labelledby":this.buttonId,id:this.contentId},s("slot",null))))}get element(){return i(this)}};p.style='*.sc-duet-step,*.sc-duet-step::after,*.sc-duet-step::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-step-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block}.duet-step.sc-duet-step{padding:20px !important;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;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.duet-theme-turva.sc-duet-step{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.rounded-top.sc-duet-step{border-top-left-radius:4px;border-top-right-radius:4px}.duet-step.rounded-bottom.sc-duet-step{margin-bottom:20px !important;border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-step.rounded-bottom.sc-duet-step{margin-bottom:0 !important}}@media (min-width: 36em){.duet-step.sc-duet-step{padding:0 20px 0 0 !important;margin:0 !important;font-size:1.25rem;box-shadow:none !important}}.duet-step-heading.sc-duet-step{display:flex;align-items:center;border-radius:4px}.duet-step-heading[aria-disabled=false].sc-duet-step{cursor:pointer}.duet-step-heading.sc-duet-step:focus{outline:0}.duet-step-heading.sc-duet-step:active{opacity:0.75}.user-is-tabbing.sc-duet-step-h .duet-step-heading.sc-duet-step:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.user-is-tabbing.sc-duet-step-h .duet-theme-turva.sc-duet-step .duet-step-heading.sc-duet-step:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.is-complete.sc-duet-step .duet-step-heading.sc-duet-step:hover .duet-step-counter.sc-duet-step,.is-disabled.sc-duet-step .duet-step-heading.sc-duet-step:hover .duet-step-counter.sc-duet-step{background-color:#005f8f}.duet-theme-turva.is-complete.sc-duet-step .duet-step-heading.sc-duet-step:hover .duet-step-counter.sc-duet-step,.duet-theme-turva.is-disabled.sc-duet-step .duet-step-heading.sc-duet-step:hover .duet-step-counter.sc-duet-step{background-color:#9e0a26}.is-current.sc-duet-step .duet-step-heading.sc-duet-step{margin-bottom:20px}@media (min-width: 36em){.duet-step-heading.sc-duet-step{margin-top:8px;margin-bottom:8px !important}.sc-duet-step-h:first-of-type .duet-step-heading.sc-duet-step{margin-top:0}.sc-duet-step-h:last-of-type .duet-step-heading.sc-duet-step{margin-bottom:0 !important}}.duet-step-counter.sc-duet-step{-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;line-height:30px;color:rgb(255, 255, 255);text-align:center;border-radius:50%;transition:background-color 300ms ease}@media (min-width: 36em){.duet-step-counter.sc-duet-step{width:40px;height:40px;line-height:40px}}.is-complete.sc-duet-step .duet-step-counter.sc-duet-step,.is-current.sc-duet-step .duet-step-counter.sc-duet-step,.is-disabled.sc-duet-step .duet-step-counter.sc-duet-step{background-color:rgb(0, 119, 179)}.duet-theme-turva.is-complete.sc-duet-step .duet-step-counter.sc-duet-step,.duet-theme-turva.is-current.sc-duet-step .duet-step-counter.sc-duet-step,.duet-theme-turva.is-disabled.sc-duet-step .duet-step-counter.sc-duet-step{background-color:rgb(198, 12, 48)}.is-incomplete.sc-duet-step .duet-step-counter.sc-duet-step{background-color:rgb(101, 119, 135)}.duet-theme-turva.is-incomplete.sc-duet-step .duet-step-counter.sc-duet-step{background-color:rgb(116, 116, 117)}.duet-step-icon.sc-duet-step{display:flex;align-items:center;justify-content:center;width:16px;height:16px}@media (min-width: 36em){.duet-step-icon.sc-duet-step{width:20px;height:20px}}.duet-step-icon.sc-duet-step duet-icon.sc-duet-step{width:16px;height:16px}@media (min-width: 36em){.duet-step-icon.sc-duet-step duet-icon.sc-duet-step{width:20px;height:20px}}@media (min-width: 36em){.duet-step-content-wrapper.sc-duet-step{min-height:20px;padding-left:40px;margin-left:19px;border-left:2px solid rgb(225, 227, 230)}.duet-theme-turva.sc-duet-step .duet-step-content-wrapper.sc-duet-step{border-color:rgb(228, 228, 230)}.sc-duet-step-h:last-of-type .duet-step-content-wrapper.sc-duet-step{min-height:0;border:transparent}}.duet-step-content.sc-duet-step{display:none;padding-bottom:16px}@media (min-width: 36em){.duet-step-content.sc-duet-step{padding-bottom:28px}}.is-current.sc-duet-step .duet-step-content.sc-duet-step{display:block}.duet-step-heading-slot.sc-duet-step{display:none;margin-top:2px}@media (min-width: 48em){.duet-step-heading-slot.sc-duet-step{display:block}}';const a=class{constructor(s){t(this,s),this.duetStepChange=e(this,"duetStepChange",7),this.theme="",this.accessibleLive="Lista jossa {total} kohtaa. Olet kohdassa {current}.",this.margin="auto",this.backDisabled=!1,this.selected=0}currentStepChanged(t){if(isNaN(t))throw new Error(`step must be a number. got: ${t}`);if(t<0)throw new Error(`step must be not be less than zero. got: ${t}`);if(t>this.getSteps().length)throw new Error("step must not exceed total number of steps");this.updateStepState(),setTimeout((()=>this.setStepFocus()),50)}currentStepInvokedDisable(){this.updateStepState()}onDuetStepClick(t){this.duetStepChange.emit({fromStep:this.selected,toStep:t.detail.stepIndex,component:"duet-stepper"})}componentWillLoad(){d(this)}async connectedCallback(){this.updateStepState()}getSteps(){return Array.from(this.element.querySelectorAll("duet-step"))}setStepFocus(){this.getSteps()[this.selected].setFocus()}updateStepState(){const t=this.getSteps();t.forEach(((t,e)=>{let s;s=e<this.selected?this.backDisabled?"disabled":"complete":e>this.selected?"incomplete":"current",t.theme=this.theme,t.state=s,t.stepIndex=e}));const e=function(t,e){const s={};return e.forEach((t=>{const e=t.state;s[e]||(s[e]=[]),s[e].push(t)})),s}(0,t);Object.values(e).forEach((t=>{t.forEach(((e,s)=>{e.roundedTop=0===s,e.roundedBottom=s===t.length-1}))}))}formatAnnouncement(){const t=this.getSteps(),e=(this.selected+1).toString(10),s=t.length.toString(10);return this.accessibleLive.replace("{current}",e).replace("{total}",s)}render(){return s(r,{class:{"duet-m-0":"none"===this.margin}},s("div",{class:{"duet-stepper":!0,"duet-theme-turva":"turva"===this.theme}},s("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement()),s("slot",null)))}get element(){return i(this)}static get watchers(){return{selected:["currentStepChanged"],backDisabled:["currentStepInvokedDisable"]}}};a.style=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}.duet-stepper{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-stepper{padding:28px !important;padding-top:36px !important;padding-bottom:36px !important;background:rgb(255, 255, 255);border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}}";export{p as duet_step,a as duet_stepper}
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,a,i){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function o(e){try{s(i.next(e))}catch(e){r(e)}}function d(e){try{s(i["throw"](e))}catch(e){r(e)}}function s(e){e.done?a(e.value):n(e.value).then(o,d)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,o;return o={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function d(e){return function(t){return s([e,t])}}function s(d){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,d[0]&&(a=0)),a)try{if(i=1,n&&(r=d[0]&2?n["return"]:d[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,d[1])).done)return r;if(n=0,r)d=[d[0]&2,r.value];switch(d[0]){case 0:case 1:r=d;break;case 4:a.label++;return{value:d[1],done:false};case 5:a.label++;n=d[1];d=[0];continue;case 7:d=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(d[0]===6||d[0]===2)){a=0;continue}if(d[0]===3&&(!r||d[1]>r[0]&&d[1]<r[3])){a.label=d[1];break}if(d[0]===6&&a.label<r[1]){a.label=r[1];r=d;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(d);break}if(r[2])a.ops.pop();a.trys.pop();continue}d=t.call(e,a)}catch(e){d=[6,e];n=0}finally{i=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
- */System.register(["./p-8f7b7fed.system.js","./p-33b3aba4.system.js","./p-5f6bd5db.system.js","./p-ebe86eab.system.js","./p-43660fa9.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,a,i,n,r,o,d,s,u,l,c,p;return{setters:[function(e){t=e.h;a=e.r;i=e.c;n=e.H;r=e.g},function(e){o=e.i},function(e){d=e.c},function(e){s=e.F},function(e){u=e.a;l=e.g;c=e.c;p=e.d},function(){}],execute:function(){var h={day:"numeric",month:"long"};var b={day:"numeric",month:"long",year:"numeric"};var m={fi:{buttonLabel:"Valitse päivämäärä",prevMonthLabel:"Edellinen kuukausi",nextMonthLabel:"Seuraava kuukausi",monthSelectLabel:"Kuukausi",yearSelectLabel:"Vuosi",closeLabel:"Sulje ikkuna",selected:"Valittu päivämäärä on",keyboardInstruction:"Voit navigoida päivämääriä nuolinäppäimillä",dayLabels:["Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai","Sunnuntai"],monthLabels:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthLabelsShort:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],formatterShort:new Intl.DateTimeFormat("fi-FI",h),formatterLong:new Intl.DateTimeFormat("fi-FI",b)},en:{buttonLabel:"Choose date",prevMonthLabel:"Previous month",nextMonthLabel:"Next month",monthSelectLabel:"Month",yearSelectLabel:"Year",closeLabel:"Close window",selected:"Selected date is",keyboardInstruction:"You can use arrow keys to navigate dates",dayLabels:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthLabels:["January","February","March","April","May","June","July","August","September","October","November","December"],monthLabelsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],formatterShort:new Intl.DateTimeFormat("en-GB",h),formatterLong:new Intl.DateTimeFormat("en-GB",b)},sv:{buttonLabel:"Välj datum",prevMonthLabel:"Föregående månad",nextMonthLabel:"Nästa månad",monthSelectLabel:"Månad",yearSelectLabel:"År",closeLabel:"Stäng fönstret",selected:"Valt datum är",keyboardInstruction:"Använd piltangenterna för att navigera i kalender",dayLabels:["Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],monthLabels:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthLabelsShort:["Jan","Feb","Mars","April","Maj","Juni","Juli","Aug","Sep","Okt","Nov","Dec"],formatterShort:new Intl.DateTimeFormat("sv-SE",h),formatterLong:new Intl.DateTimeFormat("sv-SE",b)}};var g={title:"form-date",tags:"form date calendar date picker",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M2.25 24A2.252 2.252 0 0 1 0 21.75V5.25A2.252 2.252 0 0 1 2.25 3H6V.75a.75.75 0 0 1 1.5 0V3h9V.75a.75.75 0 0 1 1.5 0V3h3.75A2.252 2.252 0 0 1 24 5.25v16.5A2.252 2.252 0 0 1 21.75 24zm-.75-2.25c0 .414.336.75.75.75h19.5a.75.75 0 0 0 .75-.75V10.5h-21zM22.5 9V5.25a.75.75 0 0 0-.75-.75H18V6a.75.75 0 0 1-1.5 0V4.5h-9V6A.75.75 0 0 1 6 6V4.5H2.25a.75.75 0 0 0-.75.75V9z"/><circle cx="5.625" cy="13.875" r="1.125"/><circle cx="5.625" cy="19.125" r="1.125"/><circle cx="12" cy="13.875" r="1.125"/><circle cx="12" cy="19.125" r="1.125"/><circle cx="18.375" cy="13.875" r="1.125"/><path d="M18.375 20.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.171-1.122l.027.003a1.118 1.118 0 0 1 1.052 1.12c0 .619-.505 1.124-1.125 1.124z"/></svg>'};var f=function(e){var a=e.onClick,i=e.placeholder,n=e.name,r=e.inputLabel,o=e.value,d=e.valueAsDate,s=e.formattedValue,u=e.language,l=e.identifier,c=e.theme,p=e.disabled,h=e.error,b=e.role,f=e.required,v=e.tooltip,y=e.tooltipDirection,k=e.labelHidden,x=e.buttonRef,w=e.inputRef,D=e.onInput,S=e.onBlur,M=e.onFocus,F=e.accessibleActiveDescendant,I=e.accessibleControls,L=e.accessibleOwns,T=e.accessibleDescribedBy,Y=e.echoPlaceholder,V=e.caption;var A=m[u],C=A.buttonLabel,E=A.selected,j=A.formatterLong;return t("div",{class:{"duet-theme-turva":c==="turva","duet-date-input":true}},t("duet-input",{label:r,value:s,placeholder:i,id:l,disabled:p,theme:c,error:h,role:b,required:f,tooltip:v,tooltipDirection:y,margin:"none",component:"date",labelHidden:k,accessibleAutocomplete:"none",onDuetInput:D,onDuetFocus:M,onDuetBlur:S,autoComplete:"off",disallowPattern:"[^0-9\\.\\-\\/]",expand:true,ref:w,accessibleActiveDescendant:F,accessibleControls:I,accessibleOwns:L,accessibleDescribedBy:T,echoPlaceholder:Y,caption:V},t("button",{class:{"duet-date-button":true,"duet-no-label":k},onClick:a,disabled:p,ref:x,type:"button"},t("duet-icon",{icon:g.svg,margin:"none",size:"small",color:"currentColor"}),t("duet-visually-hidden",null,C,d&&t("span",null,", ",E," ",j.format(d))))),t("input",{type:"hidden",name:n,value:o}))};var v=/^(\d{1,2})[\.\-\/](\d{1,2})[\.\-\/](\d{4})$/;var y=/^(\d{4})-(\d{2})-(\d{2})$/;var k="dd.mm.yyyy";var x="YYYY-MM-DD";function w(e,t,a){var i=parseInt(a,10);var n=parseInt(t,10);var r=parseInt(e,10);var o=Number.isInteger(r)&&Number.isInteger(n)&&Number.isInteger(i)&&n>0&&n<=12&&i>0&&i<=31&&r>0;if(o){return new Date(r,n-1,i)}}function D(e){if(!e){return}var t=e.match(v);if(t){return w(t[3],t[2],t[1])}}function S(e){if(!e){return}var t=e.match(y);if(t){return w(t[1],t[2],t[3])}}function M(e,t){if(!e){return""}var a=e.getDate().toString(10);var i=(e.getMonth()+1).toString(10);var n=e.getFullYear().toString(10);if(e.getDate()<10){a="0".concat(a)}if(e.getMonth()<9){i="0".concat(i)}return t.replace(/MM/i,i).replace(/YYYY/i,n).replace(/DD/i,a)}function F(e){return M(e,k)}function I(e){return M(e,x)}function L(e,t){if(e==null||t==null){return false}return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function T(e,t){var a=new Date(e);a.setDate(a.getDate()+t);return a}function Y(e,t){if(t===void 0){t=1}var a=new Date(e);var i=a.getDay();var n=(i<t?7:0)+i-t;a.setDate(a.getDate()-n);return a}function V(e,t){if(t===void 0){t=1}var a=new Date(e);var i=a.getDay();var n=(i<t?-7:0)+6-(i-t);a.setDate(a.getDate()+n);return a}function A(e){return new Date(e.getFullYear(),e.getMonth(),1)}function C(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function E(e,t){var a=new Date(e);a.setMonth(t);return a}function j(e,t){var a=new Date(e);a.setFullYear(t);return a}function B(e,t,a){return P(e,t,a)===e}function P(e,t,a){var i=e.getTime();if(t&&t instanceof Date&&i<t.getTime()){return t}if(a&&a instanceof Date&&i>a.getTime()){return a}return e}function N(e,t){var a=[];var i=e;while(!L(i,t)){a.push(i);i=T(i,1)}a.push(i);return a}function z(e,t){if(t===void 0){t=1}var a=Y(A(e),t);var i=V(C(e),t);return N(a,i)}var U=function(e){var a=e.focusedDay,i=e.today,n=e.day,r=e.language,o=e.onDaySelect,d=e.onKeyboardNavigation,s=e.ref,u=e.inRange,l=e.isSelected;var c=L(n,i);var p=L(n,a);var h=n.getMonth()!==a.getMonth();var b=!u;var g=m[r].formatterShort;function f(e){o(e,n)}return t("button",{class:{"duet-date-table-button":true,outside:b,disabled:h,today:c},tabIndex:p?0:-1,onClick:f,onKeyDown:d,"aria-disabled":b||h,"aria-pressed":l?"true":"false",type:"button",ref:s},t("span",{"aria-hidden":"true"},n.getDate()),t("duet-visually-hidden",null,g.format(n)))};function H(e,t){var a=[];for(var i=e;i<=t;i++){a.push(i)}return a}function _(e,t){var a=[];for(var i=0;i<e.length;i+=t){a.push(e.slice(i,i+t))}return a}function O(e){var t;var a=e.trim().split("+");var i=a.pop();return[((t=a[0])===null||t===void 0?void 0:t.toLowerCase())==="shift",i]}function K(e){var t=Object.keys(e).map((function(t){return[O(t),e[t]]}));return function e(a){if(!(a instanceof KeyboardEvent)){return}var i=t.find((function(e){var t=e[0],i=t[0],n=t[1];return(n.toUpperCase()===a.key.toUpperCase()||n===a.code)&&i===a.shiftKey}));if(i){i[1](a);a.preventDefault()}}}var R=function(e){var a=e.selectedDate,i=e.focusedDate,n=e.labelledById,r=e.theme,o=e.language,d=e.min,s=e.max,u=e.onDateSelect,l=e.onKeyboardNavigation,c=e.focusedDayRef,p=e.onFocusEnter,h=e.onFocusExit;var b=m[o].dayLabels;var g=new Date;var f=z(i);function v(e){var t=e.currentTarget;var a=e.relatedTarget;if(a&&!t.contains(a)){h(e)}}return t("table",{class:{"duet-date-table":true,"duet-theme-turva":r==="turva"},"aria-labelledby":n,onFocusin:p,onFocusout:v},t("thead",null,t("tr",null,b.map((function(e){return t("th",{scope:"col"},t("span",{"aria-hidden":"true"},e.substr(0,2)),t("duet-visually-hidden",null,e))})))),t("tbody",null,_(f,7).map((function(e){return t("tr",{class:"duet-date-table-row"},e.map((function(e){return t("td",{class:"duet-date-table-cell"},t(U,{day:e,today:g,language:o,focusedDay:i,inRange:B(e,d,s),isSelected:L(e,a),onDaySelect:u,onKeyboardNavigation:l,ref:function(t){if(t&&L(e,i)){c(t)}}}))})))}))))};var J='*.sc-duet-date-picker,*.sc-duet-date-picker::after,*.sc-duet-date-picker::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-date-picker-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;position:relative;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:top}.sc-duet-date-picker-h:last-child,.sc-duet-date-picker-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-date-picker-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-date-picker-h{width:100% !important}.duet-m-0.sc-duet-date-picker-h{margin:0 !important}.duet-date.sc-duet-date-picker{position:relative;width:100%}.duet-date.sc-duet-date-picker button.sc-duet-date-picker,.duet-date-dialog.sc-duet-date-picker button.sc-duet-date-picker{max-width:initial !important;min-height:initial !important;padding:0 !important;margin:0 !important;transition:initial}.duet-date-button.sc-duet-date-picker{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;display:flex;align-items:center;justify-content:center;width:48px;height:calc(100% - 2px);color:rgb(0, 41, 77);cursor:pointer;background:transparent !important;border-left:1px solid rgb(207, 210, 212) !important;border-radius:0 4px 4px 0 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker{color:rgb(23, 28, 58);border-color:rgb(207, 207, 209)}.duet-date-button.sc-duet-date-picker::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(207, 210, 212, 0.2) 0%, rgba(207, 210, 212, 0.2) 1px, rgba(207, 210, 212, 0.1) 1px, rgba(207, 210, 212, 0) 100%)}.duet-date-button.sc-duet-date-picker:disabled{pointer-events:none;cursor:default;background:rgb(245, 248, 250) !important;border:0 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker:disabled{background:rgb(245, 245, 247) !important}.duet-date-button.sc-duet-date-picker:disabled::before{display:none}.duet-date-button.sc-duet-date-picker:disabled duet-icon.sc-duet-date-picker{opacity:0.4}.duet-date-button.sc-duet-date-picker duet-icon.sc-duet-date-picker{transform:translateY(-1px)}.duet-date-button.sc-duet-date-picker:active duet-icon.sc-duet-date-picker{transform:translateY(0)}.duet-date-button.sc-duet-date-picker:focus{color:rgb(0, 119, 179);border-color:transparent;outline:0;box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px rgb(23, 28, 58)}.duet-date-dialog.sc-duet-date-picker{position:absolute;top:100%;left:0;z-index:900;display:flex;width:100%;visibility:hidden;opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}@media (min-width: 36em){.duet-date-dialog.left.sc-duet-date-picker{right:0;left:auto;width:auto}}@media (max-width: 35.9375em){.duet-date-dialog.sc-duet-date-picker{position:fixed;top:0;right:0;bottom:0;background:rgba(0, 41, 77, 0.75);transition:opacity 400ms ease, visibility 400ms ease;transform:translateZ(0);transform-origin:bottom center}.duet-date-dialog.duet-theme-turva.sc-duet-date-picker{background:rgba(23, 28, 58, 0.75)}}.duet-date-dialog.active.sc-duet-date-picker{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}@media (min-width: 36em){.duet-date-dialog.error.sc-duet-date-picker{top:calc(100% - 28px);margin-top:4px}}.duet-date-dialog-wrapper.sc-duet-date-picker{position:relative;z-index:600;width:100%;min-width:290px;max-width:310px;padding:16px 16px 20px;margin-top:8px;margin-left:auto;background:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);transform:none}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-wrapper.sc-duet-date-picker{border-color:rgb(228, 228, 230)}@media (max-width: 35.9375em){.duet-date-dialog-wrapper.sc-duet-date-picker{position:absolute;bottom:0;left:0;z-index:900;max-width:none;min-height:25em;padding:0 8% 20px;margin:0;visibility:hidden;border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;opacity:0;transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;transform:translateZ(0) translateY(100%)}.active.sc-duet-date-picker .duet-date-dialog-wrapper.sc-duet-date-picker{visibility:visible;opacity:1;transition-property:transform, opacity;transform:translateZ(0) translateY(0)}}.duet-date-table.sc-duet-date-picker{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.25;color:rgb(0, 41, 77);text-align:center;border-spacing:0;border-collapse:collapse}.duet-date-table.duet-theme-turva.sc-duet-date-picker{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-date-table.sc-duet-date-picker th.sc-duet-date-picker{padding-bottom:8px;font-size:0.75rem;font-weight:600;line-height:1.25;text-decoration:none;text-transform:uppercase;letter-spacing:1px}.duet-date-table.sc-duet-date-picker .duet-date-table-cell.sc-duet-date-picker{text-align:center}.duet-date-table-button.sc-duet-date-picker{position:relative;z-index:100;display:inline-block !important;width:36.9230769231px !important;height:36.9230769231px !important;min-height:initial !important;padding:0 !important;margin:0 !important;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 !important;color:rgb(0, 41, 77) !important;text-align:center;vertical-align:initial !important;cursor:pointer;background:transparent !important;border-radius:50% !important;transition:initial !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;color:rgb(23, 28, 58) !important}.duet-date-table-button.sc-duet-date-picker:hover{background:rgb(230, 242, 248) !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:hover{background:rgb(249, 230, 234) !important}.duet-date-table-button.today.sc-duet-date-picker{z-index:200;color:rgb(0, 77, 128) !important;background:rgb(243, 249, 252) !important;box-shadow:0 0 0 1px rgb(0, 119, 179) !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.today.sc-duet-date-picker{color:rgb(148, 9, 37) !important;background:rgb(252, 243, 244) !important;box-shadow:0 0 0 1px rgb(198, 12, 48) !important}.duet-date-table-button[aria-pressed=true].sc-duet-date-picker,.duet-date-table-button.sc-duet-date-picker:focus{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;outline:0}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button[aria-pressed=true].sc-duet-date-picker,.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:focus{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important}.duet-date-table-button.sc-duet-date-picker:active{z-index:200;color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;box-shadow:0 0 5px rgb(0, 119, 179) !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:active{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important;box-shadow:0 0 5px rgb(198, 12, 48) !important}.duet-date-table-button.sc-duet-date-picker:focus{z-index:200;box-shadow:0 0 5px rgb(0, 119, 179) !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:focus{box-shadow:0 0 5px rgb(198, 12, 48) !important}.duet-date-table-button.disabled.sc-duet-date-picker{color:rgb(144, 149, 153) !important;cursor:default;background:transparent !important;box-shadow:none !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.disabled.sc-duet-date-picker{color:rgb(116, 116, 117) !important;background:transparent !important;box-shadow:none !important}.duet-date-table-button.outside.sc-duet-date-picker{color:rgb(144, 149, 153) !important;pointer-events:none;cursor:default;background:rgb(245, 248, 250) !important;box-shadow:none;opacity:0.75}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.outside.sc-duet-date-picker{color:rgb(116, 116, 117);background:rgb(245, 245, 247);box-shadow:none}.duet-date-dialog-header.sc-duet-date-picker{margin-bottom:16px !important;display:flex;align-items:center;justify-content:space-between;width:100%}.duet-date-dialog-buttons.sc-duet-date-picker{white-space:nowrap}.duet-date-dialog-buttons.sc-duet-date-picker .sc-duet-date-picker::part(button){border:0}.duet-date-dialog-select.sc-duet-date-picker{position:relative;display:inline-flex;margin-top:4px}.duet-date-dialog-select.sc-duet-date-picker .duet-date-dialog-select-label.sc-duet-date-picker{position:relative;z-index:1;display:flex;align-items:center;width:100%;padding:0 8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:600;line-height:1.25;color:rgb(0, 41, 77);pointer-events:none;border-radius:4px}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-select.sc-duet-date-picker .duet-date-dialog-select-label.sc-duet-date-picker{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-date-dialog-select.sc-duet-date-picker span.sc-duet-date-picker{margin-right:4px}.duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;font-size:1rem;cursor:pointer;opacity:0}.duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker:focus+.duet-date-dialog-select-label.sc-duet-date-picker{box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker:focus+.duet-date-dialog-select-label.sc-duet-date-picker{box-shadow:0 0 0 2px rgb(23, 28, 58)}.duet-date-dialog-mobile-header.sc-duet-date-picker{position:relative;display:flex;align-items:center;justify-content:space-between;width:120%;padding:12px 20px;margin-bottom:20px;margin-left:-10%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid rgb(207, 210, 212)}@media (min-width: 36em){.duet-date-dialog-mobile-header.sc-duet-date-picker{position:absolute;top:-8px;right:-8px;width:auto;padding:0;margin:0;overflow:visible;border:0}}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-mobile-header.sc-duet-date-picker{border-color:rgb(207, 207, 209)}.duet-date-dialog-mobile-header.sc-duet-date-picker duet-label.sc-duet-date-picker{display:inline-block;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date-dialog-mobile-header.sc-duet-date-picker duet-label.sc-duet-date-picker{display:none}}.duet-date-picker-close.sc-duet-date-picker{display:flex;align-items:center;justify-content:center;width:24px;height:24px !important;padding:0 !important;color:rgb(0, 41, 77) !important;cursor:pointer;background:rgb(245, 248, 250) !important;border-radius:50%;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-date-picker-close.sc-duet-date-picker{opacity:0}}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker{background:rgb(245, 245, 247) !important}.duet-date-picker-close.sc-duet-date-picker:hover{background:rgb(245, 248, 250) !important}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker:hover{background:rgb(245, 245, 247) !important}.duet-date-picker-close.sc-duet-date-picker:focus{outline:none;box-shadow:0 0 0 2px rgb(0, 119, 179)}@media (min-width: 36em){.duet-date-picker-close.sc-duet-date-picker:focus{opacity:1}}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker:focus{box-shadow:0 0 0 2px rgb(23, 28, 58)}';var W=e("duet_date_picker",function(){function e(e){var t=this;a(this,e);this.duetChange=i(this,"duetChange",7);this.duetBlur=i(this,"duetBlur",7);this.duetFocus=i(this,"duetFocus",7);this.monthSelectId=d("DuetDatePicker");this.yearSelectId=d("DuetDatePicker");this.dialogLabelId=d("DuetDatePicker");this.initialTouchX=null;this.initialTouchY=null;this.focusTarget=null;this.enableActiveFocus=function(){t.focusTarget="day-button"};this.disableActiveFocus=function(){t.focusTarget=null};this.toggleOpen=function(e){e.preventDefault();t.open?t.hide(false):t.show()};this.handleBlur=function(e){e.stopPropagation();t.duetBlur.emit({component:"duet-date-picker"})};this.handleFocus=function(e){e.stopPropagation();t.duetFocus.emit({component:"duet-date-picker"})};this.handleTouchStart=function(e){var a=e.changedTouches[0];t.initialTouchX=a.pageX;t.initialTouchY=a.pageY};this.handleTouchMove=function(e){e.preventDefault()};this.handleTouchEnd=function(e){var a=e.changedTouches[0];var i=a.pageX-t.initialTouchX;var n=a.pageY-t.initialTouchY;var r=70;var o=Math.abs(i)>=r&&Math.abs(n)<=r;var d=Math.abs(n)>=r&&Math.abs(i)<=r&&n>0;if(o){t.addMonths(i<0?1:-1)}else if(d){t.hide();e.preventDefault()}t.initialTouchY=null;t.initialTouchX=null};this.handleNextMonthClick=function(e){e.preventDefault();t.addMonths(1)};this.handlePreviousMonthClick=function(e){e.preventDefault();t.addMonths(-1)};this.handleEscKey=K({Escape:function(){return t.hide()},Esc:function(){return t.hide()}});this.handleKeyboardNavigation=K({ArrowRight:function(){return t.addDays(1)},Right:function(){return t.addDays(1)},ArrowLeft:function(){return t.addDays(-1)},Left:function(){return t.addDays(-1)},ArrowDown:function(){return t.addDays(7)},Down:function(){return t.addDays(7)},ArrowUp:function(){return t.addDays(-7)},Up:function(){return t.addDays(-7)},Home:function(){return t.startOfWeek()},End:function(){return t.endOfWeek()},PageUp:function(){return t.addMonths(-1)},PageDown:function(){return t.addMonths(1)},"Shift+PageUp":function(){return t.addYears(-1)},"Shift+PageDown":function(){return t.addYears(1)}});this.handleDaySelect=function(e,a){var i=S(t.min);var n=S(t.max);t.determineValidity(a);if(B(a,i,n)){t.setValue(a);t.hide()}};this.handleMonthSelect=function(e){t.setMonth(parseInt(e.target.value,10))};this.handleYearSelect=function(e){t.setYear(parseInt(e.target.value,10))};this.handleInputChange=function(e){t.inputValue=e.detail.value;var a=D(t.inputValue);t.determineValidity(a);if(a||t.inputValue===""){t.setValue(a)}};this.open=false;this.focusedDay=new Date;this.inputValue="";this.theme="";this.expand=false;this.name="";this.identifier="";this.label="";this.caption=undefined;this.margin="auto";this.language=u();this.placeholderDefaults={fi:"pp.kk.vvvv",en:"dd.mm.yyyy",sv:"dd.mm.åååå"};this.placeholder=l(this.placeholderDefaults,this.language);this.echoPlaceholder=false;this.disabled=false;this.error="";this.labelHidden=false;this.role=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.required=false;this.direction="right";this.tooltip="";this.tooltipDirection="auto";this.value="";this.min="";this.max="";this.incrementYears=10;this.validity=undefined}e.prototype.updateValidity=function(){this.determineValidity(S(this.value))};e.prototype.updateInternalValue=function(){var e=S(this.value);var t=D(this.inputValue);if(!e){this.inputValue=""}else if(!L(e,t)){this.inputValue=F(e)}};e.prototype.componentWillLoad=function(){o(this);this.determineValidity(S(this.value));this.updateInternalValue()};e.prototype.componentDidUpdate=function(){switch(this.focusTarget){case"toggle-button":this.datePickerButton.focus();this.focusTarget=null;break;case"day-button":this.focusedDayNode.focus();break;case"month-select":this.monthSelectNode.focus();this.focusTarget=null;break}};e.prototype.connectedCallback=function(){c(this,{prop:"placeholder",defaults:"placeholderDefaults"})};e.prototype.disconnectedCallback=function(){p(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.datePickerInput.setFocus(e);return[2]}))}))};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;this.focusTarget="month-select";this.setFocusedDay(S(this.value)||new Date);return[2]}))}))};e.prototype.hide=function(e){if(e===void 0){e=true}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=false;if(e){this.focusTarget="toggle-button"}return[2]}))}))};e.prototype.addDays=function(e){this.setFocusedDay(T(this.focusedDay,e))};e.prototype.addMonths=function(e){this.setMonth(this.focusedDay.getMonth()+e)};e.prototype.addYears=function(e){this.setYear(this.focusedDay.getFullYear()+e)};e.prototype.startOfWeek=function(){this.setFocusedDay(Y(this.focusedDay))};e.prototype.endOfWeek=function(){this.setFocusedDay(V(this.focusedDay))};e.prototype.setMonth=function(e){var t=E(A(this.focusedDay),e);var a=C(t);var i=E(this.focusedDay,e);this.setFocusedDay(P(i,t,a))};e.prototype.setYear=function(e){var t=j(A(this.focusedDay),e);var a=C(t);var i=j(this.focusedDay,e);this.setFocusedDay(P(i,t,a))};e.prototype.setFocusedDay=function(e){this.focusedDay=P(e,S(this.min),S(this.max))};e.prototype.determineValidity=function(e){var t,a;var i=(a=(t=this.datePickerInput)===null||t===void 0?void 0:t.value)!==null&&a!==void 0?a:"";var n=i!==""&&e==null;var r=this.required&&e==null;var o=e?!B(e,null,S(this.max)):false;var d=e?!B(e,S(this.min)):false;this.validity={patternMismatch:false,customError:false,stepMismatch:false,tooLong:false,tooShort:false,typeMismatch:false,valueMissing:r,badInput:n,rangeUnderflow:d,rangeOverflow:o,valid:!(r||n||d||o)}};e.prototype.setValue=function(e){var t=I(e);if(t===this.value){return}this.value=t;this.duetChange.emit({component:"duet-date-picker",value:this.value,valueAsDate:e})};e.prototype.handleDocumentClick=function(e){var t=this;if(!this.open){return}var a=e.composedPath().every((function(e){return e!==t.dialogWrapperNode&&e!==t.datePickerButton}));if(a){this.hide(false)}};e.prototype.render=function(){var e=this;var a=S(this.value);var i=(a||this.focusedDay).getFullYear();var r=this.focusedDay.getMonth();var o=this.focusedDay.getFullYear();var d=m[this.language];var u=S(this.min);var l=S(this.max);var c=u!=null&&u.getMonth()===r&&u.getFullYear()===o;var p=l!=null&&l.getMonth()===r&&l.getFullYear()===o;var h=i-this.incrementYears;var b=i+this.incrementYears;if(u){h=Math.max(h,u.getFullYear())}if(l){b=Math.min(b,l.getFullYear())}return t(n,{class:{"duet-expand":this.expand,"duet-m-0":this.margin==="none"}},t("div",{class:"duet-date"},t(f,{value:this.value,valueAsDate:a,formattedValue:this.inputValue,language:this.language,onInput:this.handleInputChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onClick:this.toggleOpen,name:this.name,disabled:this.disabled,error:this.error,role:this.role,required:this.required,theme:this.theme,tooltip:this.tooltip,tooltipDirection:this.tooltipDirection,labelHidden:this.labelHidden,placeholder:this.placeholder,inputLabel:this.label,identifier:this.identifier,buttonRef:function(t){return e.datePickerButton=t},inputRef:function(t){return e.datePickerInput=t},accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy,echoPlaceholder:this.echoPlaceholder,caption:this.caption})),t("div",{class:{"duet-theme-turva":this.theme==="turva","duet-date-dialog":true,left:this.direction==="left",error:!!this.error,active:this.open},role:"dialog","aria-modal":"true","aria-hidden":this.open?"false":"true","aria-labelledby":this.dialogLabelId,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},t(s,{moveFocusTo:this.focusedDayNode}),t("div",{class:"duet-date-dialog-wrapper",onKeyDown:this.handleEscKey,ref:function(t){return e.dialogWrapperNode=t}},t("duet-visually-hidden",{"aria-live":"polite"},d.keyboardInstruction),t("div",{class:"duet-date-dialog-mobile-header"},t("duet-label",{margin:"none"},this.label),t("button",{class:"duet-date-picker-close",ref:function(t){return e.closeButtonNode=t},onClick:function(){return e.hide()},type:"button"},t("duet-icon",{name:"navigation-close-small",margin:"none",color:"currentColor",size:"xx-small"}),t("duet-visually-hidden",null,d.closeLabel))),t("div",{class:"duet-date-dialog-header"},t("div",{class:"duet-date-dialog-dropdowns"},t("duet-visually-hidden",null,t("h2",{id:this.dialogLabelId,"aria-live":"polite","aria-atomic":"true"},d.monthLabels[r]," ",this.focusedDay.getFullYear())),t("duet-visually-hidden",null,t("label",{htmlFor:this.monthSelectId},d.monthSelectLabel)),t("div",{class:"duet-date-dialog-select"},t("select",{id:this.monthSelectId,class:"duet-date-month-select",ref:function(t){return e.monthSelectNode=t},onChange:this.handleMonthSelect},d.monthLabels.map((function(e,a){return t("option",{key:e,value:a,selected:a===r,disabled:!B(new Date(o,a,1),u?A(u):null,l?C(l):null)},e)}))),t("div",{class:"duet-date-dialog-select-label","aria-hidden":"true"},t("span",null,d.monthLabelsShort[r]),t("duet-icon",{name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"}))),t("duet-visually-hidden",null,t("label",{htmlFor:this.yearSelectId},d.yearSelectLabel)),t("div",{class:"duet-date-dialog-select"},t("select",{id:this.yearSelectId,class:"duet-date-year-select",onChange:this.handleYearSelect},H(h,b).map((function(e){return t("option",{key:e,selected:e===o},e)}))),t("div",{class:"duet-date-dialog-select-label","aria-hidden":"true"},t("span",null,this.focusedDay.getFullYear()),t("duet-icon",{name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"})))),t("div",{class:"duet-date-dialog-buttons"},t("duet-action-button",{accessibleLabel:m[this.language].prevMonthLabel,actionName:m[this.language].prevMonthLabel,class:"duet-date-dialog-prev",onClick:this.handlePreviousMonthClick,disabled:c,"icon-name":"action-arrow-left-small"},d.prevMonthLabel),t("duet-action-button",{accessibleLabel:m[this.language].nextMonthLabel,actionName:m[this.language].nextMonthLabel,class:"duet-date-dialog-next",onClick:this.handleNextMonthClick,disabled:p,"icon-name":"action-arrow-right-small"},d.nextMonthLabel))),t(R,{selectedDate:a,focusedDate:this.focusedDay,onDateSelect:this.handleDaySelect,onKeyboardNavigation:this.handleKeyboardNavigation,labelledById:this.dialogLabelId,language:this.language,theme:this.theme,min:u,max:l,focusedDayRef:function(t){return e.focusedDayNode=t},onFocusEnter:this.enableActiveFocus,onFocusExit:this.disableActiveFocus})),t(s,{moveFocusTo:this.closeButtonNode})))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{min:["updateValidity"],max:["updateValidity"],value:["updateValidity","updateInternalValue"],required:["updateValidity"]}},enumerable:false,configurable:true});return e}());W.style=J}}}));
4
+ */System.register(["./p-9612326c.system.js","./p-33b3aba4.system.js","./p-5f6bd5db.system.js","./p-7bc398f4.system.js","./p-43660fa9.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,a,i,n,r,o,d,s,u,l,c,p;return{setters:[function(e){t=e.h;a=e.r;i=e.c;n=e.H;r=e.g},function(e){o=e.i},function(e){d=e.c},function(e){s=e.F},function(e){u=e.a;l=e.g;c=e.c;p=e.d},function(){}],execute:function(){var h={day:"numeric",month:"long"};var b={day:"numeric",month:"long",year:"numeric"};var m={fi:{buttonLabel:"Valitse päivämäärä",prevMonthLabel:"Edellinen kuukausi",nextMonthLabel:"Seuraava kuukausi",monthSelectLabel:"Kuukausi",yearSelectLabel:"Vuosi",closeLabel:"Sulje ikkuna",selected:"Valittu päivämäärä on",keyboardInstruction:"Voit navigoida päivämääriä nuolinäppäimillä",dayLabels:["Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai","Sunnuntai"],monthLabels:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthLabelsShort:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],formatterShort:new Intl.DateTimeFormat("fi-FI",h),formatterLong:new Intl.DateTimeFormat("fi-FI",b)},en:{buttonLabel:"Choose date",prevMonthLabel:"Previous month",nextMonthLabel:"Next month",monthSelectLabel:"Month",yearSelectLabel:"Year",closeLabel:"Close window",selected:"Selected date is",keyboardInstruction:"You can use arrow keys to navigate dates",dayLabels:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthLabels:["January","February","March","April","May","June","July","August","September","October","November","December"],monthLabelsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],formatterShort:new Intl.DateTimeFormat("en-GB",h),formatterLong:new Intl.DateTimeFormat("en-GB",b)},sv:{buttonLabel:"Välj datum",prevMonthLabel:"Föregående månad",nextMonthLabel:"Nästa månad",monthSelectLabel:"Månad",yearSelectLabel:"År",closeLabel:"Stäng fönstret",selected:"Valt datum är",keyboardInstruction:"Använd piltangenterna för att navigera i kalender",dayLabels:["Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],monthLabels:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthLabelsShort:["Jan","Feb","Mars","April","Maj","Juni","Juli","Aug","Sep","Okt","Nov","Dec"],formatterShort:new Intl.DateTimeFormat("sv-SE",h),formatterLong:new Intl.DateTimeFormat("sv-SE",b)}};var g={title:"form-date",tags:"form date calendar date picker",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M2.25 24A2.252 2.252 0 0 1 0 21.75V5.25A2.252 2.252 0 0 1 2.25 3H6V.75a.75.75 0 0 1 1.5 0V3h9V.75a.75.75 0 0 1 1.5 0V3h3.75A2.252 2.252 0 0 1 24 5.25v16.5A2.252 2.252 0 0 1 21.75 24zm-.75-2.25c0 .414.336.75.75.75h19.5a.75.75 0 0 0 .75-.75V10.5h-21zM22.5 9V5.25a.75.75 0 0 0-.75-.75H18V6a.75.75 0 0 1-1.5 0V4.5h-9V6A.75.75 0 0 1 6 6V4.5H2.25a.75.75 0 0 0-.75.75V9z"/><circle cx="5.625" cy="13.875" r="1.125"/><circle cx="5.625" cy="19.125" r="1.125"/><circle cx="12" cy="13.875" r="1.125"/><circle cx="12" cy="19.125" r="1.125"/><circle cx="18.375" cy="13.875" r="1.125"/><path d="M18.375 20.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.171-1.122l.027.003a1.118 1.118 0 0 1 1.052 1.12c0 .619-.505 1.124-1.125 1.124z"/></svg>'};var f=function(e){var a=e.onClick,i=e.placeholder,n=e.name,r=e.inputLabel,o=e.value,d=e.valueAsDate,s=e.formattedValue,u=e.language,l=e.identifier,c=e.theme,p=e.disabled,h=e.error,b=e.role,f=e.required,v=e.tooltip,y=e.tooltipDirection,k=e.labelHidden,x=e.buttonRef,w=e.inputRef,D=e.onInput,S=e.onBlur,M=e.onFocus,F=e.accessibleActiveDescendant,I=e.accessibleControls,L=e.accessibleOwns,T=e.accessibleDescribedBy,Y=e.echoPlaceholder,V=e.caption;var A=m[u],C=A.buttonLabel,E=A.selected,j=A.formatterLong;return t("div",{class:{"duet-theme-turva":c==="turva","duet-date-input":true}},t("duet-input",{label:r,value:s,placeholder:i,id:l,disabled:p,theme:c,error:h,role:b,required:f,tooltip:v,tooltipDirection:y,margin:"none",component:"date",labelHidden:k,accessibleAutocomplete:"none",onDuetInput:D,onDuetFocus:M,onDuetBlur:S,autoComplete:"off",disallowPattern:"[^0-9\\.\\-\\/]",expand:true,ref:w,accessibleActiveDescendant:F,accessibleControls:I,accessibleOwns:L,accessibleDescribedBy:T,echoPlaceholder:Y,caption:V},t("button",{class:{"duet-date-button":true,"duet-no-label":k},onClick:a,disabled:p,ref:x,type:"button"},t("duet-icon",{icon:g.svg,margin:"none",size:"small",color:"currentColor"}),t("duet-visually-hidden",null,C,d&&t("span",null,", ",E," ",j.format(d))))),t("input",{type:"hidden",name:n,value:o}))};var v=/^(\d{1,2})[\.\-\/](\d{1,2})[\.\-\/](\d{4})$/;var y=/^(\d{4})-(\d{2})-(\d{2})$/;var k="dd.mm.yyyy";var x="YYYY-MM-DD";function w(e,t,a){var i=parseInt(a,10);var n=parseInt(t,10);var r=parseInt(e,10);var o=Number.isInteger(r)&&Number.isInteger(n)&&Number.isInteger(i)&&n>0&&n<=12&&i>0&&i<=31&&r>0;if(o){return new Date(r,n-1,i)}}function D(e){if(!e){return}var t=e.match(v);if(t){return w(t[3],t[2],t[1])}}function S(e){if(!e){return}var t=e.match(y);if(t){return w(t[1],t[2],t[3])}}function M(e,t){if(!e){return""}var a=e.getDate().toString(10);var i=(e.getMonth()+1).toString(10);var n=e.getFullYear().toString(10);if(e.getDate()<10){a="0".concat(a)}if(e.getMonth()<9){i="0".concat(i)}return t.replace(/MM/i,i).replace(/YYYY/i,n).replace(/DD/i,a)}function F(e){return M(e,k)}function I(e){return M(e,x)}function L(e,t){if(e==null||t==null){return false}return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function T(e,t){var a=new Date(e);a.setDate(a.getDate()+t);return a}function Y(e,t){if(t===void 0){t=1}var a=new Date(e);var i=a.getDay();var n=(i<t?7:0)+i-t;a.setDate(a.getDate()-n);return a}function V(e,t){if(t===void 0){t=1}var a=new Date(e);var i=a.getDay();var n=(i<t?-7:0)+6-(i-t);a.setDate(a.getDate()+n);return a}function A(e){return new Date(e.getFullYear(),e.getMonth(),1)}function C(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function E(e,t){var a=new Date(e);a.setMonth(t);return a}function j(e,t){var a=new Date(e);a.setFullYear(t);return a}function B(e,t,a){return P(e,t,a)===e}function P(e,t,a){var i=e.getTime();if(t&&t instanceof Date&&i<t.getTime()){return t}if(a&&a instanceof Date&&i>a.getTime()){return a}return e}function N(e,t){var a=[];var i=e;while(!L(i,t)){a.push(i);i=T(i,1)}a.push(i);return a}function z(e,t){if(t===void 0){t=1}var a=Y(A(e),t);var i=V(C(e),t);return N(a,i)}var U=function(e){var a=e.focusedDay,i=e.today,n=e.day,r=e.language,o=e.onDaySelect,d=e.onKeyboardNavigation,s=e.ref,u=e.inRange,l=e.isSelected;var c=L(n,i);var p=L(n,a);var h=n.getMonth()!==a.getMonth();var b=!u;var g=m[r].formatterShort;function f(e){o(e,n)}return t("button",{class:{"duet-date-table-button":true,outside:b,disabled:h,today:c},tabIndex:p?0:-1,onClick:f,onKeyDown:d,"aria-disabled":b||h,"aria-pressed":l?"true":"false",type:"button",ref:s},t("span",{"aria-hidden":"true"},n.getDate()),t("duet-visually-hidden",null,g.format(n)))};function H(e,t){var a=[];for(var i=e;i<=t;i++){a.push(i)}return a}function _(e,t){var a=[];for(var i=0;i<e.length;i+=t){a.push(e.slice(i,i+t))}return a}function O(e){var t;var a=e.trim().split("+");var i=a.pop();return[((t=a[0])===null||t===void 0?void 0:t.toLowerCase())==="shift",i]}function K(e){var t=Object.keys(e).map((function(t){return[O(t),e[t]]}));return function e(a){if(!(a instanceof KeyboardEvent)){return}var i=t.find((function(e){var t=e[0],i=t[0],n=t[1];return(n.toUpperCase()===a.key.toUpperCase()||n===a.code)&&i===a.shiftKey}));if(i){i[1](a);a.preventDefault()}}}var R=function(e){var a=e.selectedDate,i=e.focusedDate,n=e.labelledById,r=e.theme,o=e.language,d=e.min,s=e.max,u=e.onDateSelect,l=e.onKeyboardNavigation,c=e.focusedDayRef,p=e.onFocusEnter,h=e.onFocusExit;var b=m[o].dayLabels;var g=new Date;var f=z(i);function v(e){var t=e.currentTarget;var a=e.relatedTarget;if(a&&!t.contains(a)){h(e)}}return t("table",{class:{"duet-date-table":true,"duet-theme-turva":r==="turva"},"aria-labelledby":n,onFocusin:p,onFocusout:v},t("thead",null,t("tr",null,b.map((function(e){return t("th",{scope:"col"},t("span",{"aria-hidden":"true"},e.substr(0,2)),t("duet-visually-hidden",null,e))})))),t("tbody",null,_(f,7).map((function(e){return t("tr",{class:"duet-date-table-row"},e.map((function(e){return t("td",{class:"duet-date-table-cell"},t(U,{day:e,today:g,language:o,focusedDay:i,inRange:B(e,d,s),isSelected:L(e,a),onDaySelect:u,onKeyboardNavigation:l,ref:function(t){if(t&&L(e,i)){c(t)}}}))})))}))))};var J='*.sc-duet-date-picker,*.sc-duet-date-picker::after,*.sc-duet-date-picker::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-date-picker-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;position:relative;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:top}.sc-duet-date-picker-h:last-child,.sc-duet-date-picker-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-date-picker-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-date-picker-h{width:100% !important}.duet-m-0.sc-duet-date-picker-h{margin:0 !important}.duet-date.sc-duet-date-picker{position:relative;width:100%}.duet-date.sc-duet-date-picker button.sc-duet-date-picker,.duet-date-dialog.sc-duet-date-picker button.sc-duet-date-picker{max-width:initial !important;min-height:initial !important;padding:0 !important;margin:0 !important;transition:initial}.duet-date-button.sc-duet-date-picker{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;display:flex;align-items:center;justify-content:center;width:48px;height:calc(100% - 2px);color:rgb(0, 41, 77);cursor:pointer;background:transparent !important;border-left:1px solid rgb(207, 210, 212) !important;border-radius:0 4px 4px 0 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker{color:rgb(23, 28, 58);border-color:rgb(207, 207, 209)}.duet-date-button.sc-duet-date-picker::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(207, 210, 212, 0.2) 0%, rgba(207, 210, 212, 0.2) 1px, rgba(207, 210, 212, 0.1) 1px, rgba(207, 210, 212, 0) 100%)}.duet-date-button.sc-duet-date-picker:disabled{pointer-events:none;cursor:default;background:rgb(245, 248, 250) !important;border:0 !important}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker:disabled{background:rgb(245, 245, 247) !important}.duet-date-button.sc-duet-date-picker:disabled::before{display:none}.duet-date-button.sc-duet-date-picker:disabled duet-icon.sc-duet-date-picker{opacity:0.4}.duet-date-button.sc-duet-date-picker duet-icon.sc-duet-date-picker{transform:translateY(-1px)}.duet-date-button.sc-duet-date-picker:active duet-icon.sc-duet-date-picker{transform:translateY(0)}.duet-date-button.sc-duet-date-picker:focus{color:rgb(0, 119, 179);border-color:transparent;outline:0;box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva.sc-duet-date-picker .duet-date-button.sc-duet-date-picker:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px rgb(23, 28, 58)}.duet-date-dialog.sc-duet-date-picker{position:absolute;top:100%;left:0;z-index:900;display:flex;width:100%;visibility:hidden;opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}@media (min-width: 36em){.duet-date-dialog.left.sc-duet-date-picker{right:0;left:auto;width:auto}}@media (max-width: 35.9375em){.duet-date-dialog.sc-duet-date-picker{position:fixed;top:0;right:0;bottom:0;background:rgba(0, 41, 77, 0.75);transition:opacity 400ms ease, visibility 400ms ease;transform:translateZ(0);transform-origin:bottom center}.duet-date-dialog.duet-theme-turva.sc-duet-date-picker{background:rgba(23, 28, 58, 0.75)}}.duet-date-dialog.active.sc-duet-date-picker{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}@media (min-width: 36em){.duet-date-dialog.error.sc-duet-date-picker{top:calc(100% - 28px);margin-top:4px}}.duet-date-dialog-wrapper.sc-duet-date-picker{position:relative;z-index:600;width:100%;min-width:290px;max-width:310px;padding:16px 16px 20px;margin-top:8px;margin-left:auto;background:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);transform:none}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-wrapper.sc-duet-date-picker{border-color:rgb(228, 228, 230)}@media (max-width: 35.9375em){.duet-date-dialog-wrapper.sc-duet-date-picker{position:absolute;bottom:0;left:0;z-index:900;max-width:none;min-height:25em;padding:0 8% 20px;margin:0;visibility:hidden;border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;opacity:0;transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;transform:translateZ(0) translateY(100%)}.active.sc-duet-date-picker .duet-date-dialog-wrapper.sc-duet-date-picker{visibility:visible;opacity:1;transition-property:transform, opacity;transform:translateZ(0) translateY(0)}}.duet-date-table.sc-duet-date-picker{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.25;color:rgb(0, 41, 77);text-align:center;border-spacing:0;border-collapse:collapse}.duet-date-table.duet-theme-turva.sc-duet-date-picker{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-date-table.sc-duet-date-picker th.sc-duet-date-picker{padding-bottom:8px;font-size:0.75rem;font-weight:600;line-height:1.25;text-decoration:none;text-transform:uppercase;letter-spacing:1px}.duet-date-table.sc-duet-date-picker .duet-date-table-cell.sc-duet-date-picker{text-align:center}.duet-date-table-button.sc-duet-date-picker{position:relative;z-index:100;display:inline-block !important;width:36.9230769231px !important;height:36.9230769231px !important;min-height:initial !important;padding:0 !important;margin:0 !important;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 !important;color:rgb(0, 41, 77) !important;text-align:center;vertical-align:initial !important;cursor:pointer;background:transparent !important;border-radius:50% !important;transition:initial !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;color:rgb(23, 28, 58) !important}.duet-date-table-button.sc-duet-date-picker:hover{background:rgb(230, 242, 248) !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:hover{background:rgb(249, 230, 234) !important}.duet-date-table-button.today.sc-duet-date-picker{z-index:200;color:rgb(0, 77, 128) !important;background:rgb(243, 249, 252) !important;box-shadow:0 0 0 1px rgb(0, 119, 179) !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.today.sc-duet-date-picker{color:rgb(148, 9, 37) !important;background:rgb(252, 243, 244) !important;box-shadow:0 0 0 1px rgb(198, 12, 48) !important}.duet-date-table-button[aria-pressed=true].sc-duet-date-picker,.duet-date-table-button.sc-duet-date-picker:focus{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;outline:0}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button[aria-pressed=true].sc-duet-date-picker,.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:focus{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important}.duet-date-table-button.sc-duet-date-picker:active{z-index:200;color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;box-shadow:0 0 5px rgb(0, 119, 179) !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:active{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important;box-shadow:0 0 5px rgb(198, 12, 48) !important}.duet-date-table-button.sc-duet-date-picker:focus{z-index:200;box-shadow:0 0 5px rgb(0, 119, 179) !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.sc-duet-date-picker:focus{box-shadow:0 0 5px rgb(198, 12, 48) !important}.duet-date-table-button.disabled.sc-duet-date-picker{color:rgb(144, 149, 153) !important;cursor:default;background:transparent !important;box-shadow:none !important}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.disabled.sc-duet-date-picker{color:rgb(116, 116, 117) !important;background:transparent !important;box-shadow:none !important}.duet-date-table-button.outside.sc-duet-date-picker{color:rgb(144, 149, 153) !important;pointer-events:none;cursor:default;background:rgb(245, 248, 250) !important;box-shadow:none;opacity:0.75}.duet-theme-turva.sc-duet-date-picker .duet-date-table-button.outside.sc-duet-date-picker{color:rgb(116, 116, 117);background:rgb(245, 245, 247);box-shadow:none}.duet-date-dialog-header.sc-duet-date-picker{margin-bottom:16px !important;display:flex;align-items:center;justify-content:space-between;width:100%}.duet-date-dialog-buttons.sc-duet-date-picker{white-space:nowrap}.duet-date-dialog-buttons.sc-duet-date-picker .sc-duet-date-picker::part(button){border:0}.duet-date-dialog-select.sc-duet-date-picker{position:relative;display:inline-flex;margin-top:4px}.duet-date-dialog-select.sc-duet-date-picker .duet-date-dialog-select-label.sc-duet-date-picker{position:relative;z-index:1;display:flex;align-items:center;width:100%;padding:0 8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:600;line-height:1.25;color:rgb(0, 41, 77);pointer-events:none;border-radius:4px}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-select.sc-duet-date-picker .duet-date-dialog-select-label.sc-duet-date-picker{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-date-dialog-select.sc-duet-date-picker span.sc-duet-date-picker{margin-right:4px}.duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;font-size:1rem;cursor:pointer;opacity:0}.duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker:focus+.duet-date-dialog-select-label.sc-duet-date-picker{box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-select.sc-duet-date-picker select.sc-duet-date-picker:focus+.duet-date-dialog-select-label.sc-duet-date-picker{box-shadow:0 0 0 2px rgb(23, 28, 58)}.duet-date-dialog-mobile-header.sc-duet-date-picker{position:relative;display:flex;align-items:center;justify-content:space-between;width:120%;padding:12px 20px;margin-bottom:20px;margin-left:-10%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid rgb(207, 210, 212)}@media (min-width: 36em){.duet-date-dialog-mobile-header.sc-duet-date-picker{position:absolute;top:-8px;right:-8px;width:auto;padding:0;margin:0;overflow:visible;border:0}}.duet-theme-turva.sc-duet-date-picker .duet-date-dialog-mobile-header.sc-duet-date-picker{border-color:rgb(207, 207, 209)}.duet-date-dialog-mobile-header.sc-duet-date-picker duet-label.sc-duet-date-picker{display:inline-block;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date-dialog-mobile-header.sc-duet-date-picker duet-label.sc-duet-date-picker{display:none}}.duet-date-picker-close.sc-duet-date-picker{display:flex;align-items:center;justify-content:center;width:24px;height:24px !important;padding:0 !important;color:rgb(0, 41, 77) !important;cursor:pointer;background:rgb(245, 248, 250) !important;border-radius:50%;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-date-picker-close.sc-duet-date-picker{opacity:0}}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker{background:rgb(245, 245, 247) !important}.duet-date-picker-close.sc-duet-date-picker:hover{background:rgb(245, 248, 250) !important}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker:hover{background:rgb(245, 245, 247) !important}.duet-date-picker-close.sc-duet-date-picker:focus{outline:none;box-shadow:0 0 0 2px rgb(0, 119, 179)}@media (min-width: 36em){.duet-date-picker-close.sc-duet-date-picker:focus{opacity:1}}.duet-theme-turva.sc-duet-date-picker .duet-date-picker-close.sc-duet-date-picker:focus{box-shadow:0 0 0 2px rgb(23, 28, 58)}';var W=e("duet_date_picker",function(){function e(e){var t=this;a(this,e);this.duetChange=i(this,"duetChange",7);this.duetBlur=i(this,"duetBlur",7);this.duetFocus=i(this,"duetFocus",7);this.monthSelectId=d("DuetDatePicker");this.yearSelectId=d("DuetDatePicker");this.dialogLabelId=d("DuetDatePicker");this.initialTouchX=null;this.initialTouchY=null;this.focusTarget=null;this.enableActiveFocus=function(){t.focusTarget="day-button"};this.disableActiveFocus=function(){t.focusTarget=null};this.toggleOpen=function(e){e.preventDefault();t.open?t.hide(false):t.show()};this.handleBlur=function(e){e.stopPropagation();t.duetBlur.emit({component:"duet-date-picker"})};this.handleFocus=function(e){e.stopPropagation();t.duetFocus.emit({component:"duet-date-picker"})};this.handleTouchStart=function(e){var a=e.changedTouches[0];t.initialTouchX=a.pageX;t.initialTouchY=a.pageY};this.handleTouchMove=function(e){e.preventDefault()};this.handleTouchEnd=function(e){var a=e.changedTouches[0];var i=a.pageX-t.initialTouchX;var n=a.pageY-t.initialTouchY;var r=70;var o=Math.abs(i)>=r&&Math.abs(n)<=r;var d=Math.abs(n)>=r&&Math.abs(i)<=r&&n>0;if(o){t.addMonths(i<0?1:-1)}else if(d){t.hide();e.preventDefault()}t.initialTouchY=null;t.initialTouchX=null};this.handleNextMonthClick=function(e){e.preventDefault();t.addMonths(1)};this.handlePreviousMonthClick=function(e){e.preventDefault();t.addMonths(-1)};this.handleEscKey=K({Escape:function(){return t.hide()},Esc:function(){return t.hide()}});this.handleKeyboardNavigation=K({ArrowRight:function(){return t.addDays(1)},Right:function(){return t.addDays(1)},ArrowLeft:function(){return t.addDays(-1)},Left:function(){return t.addDays(-1)},ArrowDown:function(){return t.addDays(7)},Down:function(){return t.addDays(7)},ArrowUp:function(){return t.addDays(-7)},Up:function(){return t.addDays(-7)},Home:function(){return t.startOfWeek()},End:function(){return t.endOfWeek()},PageUp:function(){return t.addMonths(-1)},PageDown:function(){return t.addMonths(1)},"Shift+PageUp":function(){return t.addYears(-1)},"Shift+PageDown":function(){return t.addYears(1)}});this.handleDaySelect=function(e,a){var i=S(t.min);var n=S(t.max);t.determineValidity(a);if(B(a,i,n)){t.setValue(a);t.hide()}};this.handleMonthSelect=function(e){t.setMonth(parseInt(e.target.value,10))};this.handleYearSelect=function(e){t.setYear(parseInt(e.target.value,10))};this.handleInputChange=function(e){t.inputValue=e.detail.value;var a=D(t.inputValue);t.determineValidity(a);if(a||t.inputValue===""){t.setValue(a)}};this.open=false;this.focusedDay=new Date;this.inputValue="";this.theme="";this.expand=false;this.name="";this.identifier="";this.label="";this.caption=undefined;this.margin="auto";this.language=u();this.placeholderDefaults={fi:"pp.kk.vvvv",en:"dd.mm.yyyy",sv:"dd.mm.åååå"};this.placeholder=l(this.placeholderDefaults,this.language);this.echoPlaceholder=false;this.disabled=false;this.error="";this.labelHidden=false;this.role=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.required=false;this.direction="right";this.tooltip="";this.tooltipDirection="auto";this.value="";this.min="";this.max="";this.incrementYears=10;this.validity=undefined}e.prototype.updateValidity=function(){this.determineValidity(S(this.value))};e.prototype.updateInternalValue=function(){var e=S(this.value);var t=D(this.inputValue);if(!e){this.inputValue=""}else if(!L(e,t)){this.inputValue=F(e)}};e.prototype.componentWillLoad=function(){o(this);this.determineValidity(S(this.value));this.updateInternalValue()};e.prototype.componentDidUpdate=function(){switch(this.focusTarget){case"toggle-button":this.datePickerButton.focus();this.focusTarget=null;break;case"day-button":this.focusedDayNode.focus();break;case"month-select":this.monthSelectNode.focus();this.focusTarget=null;break}};e.prototype.connectedCallback=function(){c(this,{prop:"placeholder",defaults:"placeholderDefaults"})};e.prototype.disconnectedCallback=function(){p(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.datePickerInput.setFocus(e);return[2]}))}))};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;this.focusTarget="month-select";this.setFocusedDay(S(this.value)||new Date);return[2]}))}))};e.prototype.hide=function(e){if(e===void 0){e=true}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=false;if(e){this.focusTarget="toggle-button"}return[2]}))}))};e.prototype.addDays=function(e){this.setFocusedDay(T(this.focusedDay,e))};e.prototype.addMonths=function(e){this.setMonth(this.focusedDay.getMonth()+e)};e.prototype.addYears=function(e){this.setYear(this.focusedDay.getFullYear()+e)};e.prototype.startOfWeek=function(){this.setFocusedDay(Y(this.focusedDay))};e.prototype.endOfWeek=function(){this.setFocusedDay(V(this.focusedDay))};e.prototype.setMonth=function(e){var t=E(A(this.focusedDay),e);var a=C(t);var i=E(this.focusedDay,e);this.setFocusedDay(P(i,t,a))};e.prototype.setYear=function(e){var t=j(A(this.focusedDay),e);var a=C(t);var i=j(this.focusedDay,e);this.setFocusedDay(P(i,t,a))};e.prototype.setFocusedDay=function(e){this.focusedDay=P(e,S(this.min),S(this.max))};e.prototype.determineValidity=function(e){var t,a;var i=(a=(t=this.datePickerInput)===null||t===void 0?void 0:t.value)!==null&&a!==void 0?a:"";var n=i!==""&&e==null;var r=this.required&&e==null;var o=e?!B(e,null,S(this.max)):false;var d=e?!B(e,S(this.min)):false;this.validity={patternMismatch:false,customError:false,stepMismatch:false,tooLong:false,tooShort:false,typeMismatch:false,valueMissing:r,badInput:n,rangeUnderflow:d,rangeOverflow:o,valid:!(r||n||d||o)}};e.prototype.setValue=function(e){var t=I(e);if(t===this.value){return}this.value=t;this.duetChange.emit({component:"duet-date-picker",value:this.value,valueAsDate:e})};e.prototype.handleDocumentClick=function(e){var t=this;if(!this.open){return}var a=e.composedPath().every((function(e){return e!==t.dialogWrapperNode&&e!==t.datePickerButton}));if(a){this.hide(false)}};e.prototype.render=function(){var e=this;var a=S(this.value);var i=(a||this.focusedDay).getFullYear();var r=this.focusedDay.getMonth();var o=this.focusedDay.getFullYear();var d=m[this.language];var u=S(this.min);var l=S(this.max);var c=u!=null&&u.getMonth()===r&&u.getFullYear()===o;var p=l!=null&&l.getMonth()===r&&l.getFullYear()===o;var h=i-this.incrementYears;var b=i+this.incrementYears;if(u){h=Math.max(h,u.getFullYear())}if(l){b=Math.min(b,l.getFullYear())}return t(n,{class:{"duet-expand":this.expand,"duet-m-0":this.margin==="none"}},t("div",{class:"duet-date"},t(f,{value:this.value,valueAsDate:a,formattedValue:this.inputValue,language:this.language,onInput:this.handleInputChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onClick:this.toggleOpen,name:this.name,disabled:this.disabled,error:this.error,role:this.role,required:this.required,theme:this.theme,tooltip:this.tooltip,tooltipDirection:this.tooltipDirection,labelHidden:this.labelHidden,placeholder:this.placeholder,inputLabel:this.label,identifier:this.identifier,buttonRef:function(t){return e.datePickerButton=t},inputRef:function(t){return e.datePickerInput=t},accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy,echoPlaceholder:this.echoPlaceholder,caption:this.caption})),t("div",{class:{"duet-theme-turva":this.theme==="turva","duet-date-dialog":true,left:this.direction==="left",error:!!this.error,active:this.open},role:"dialog","aria-modal":"true","aria-hidden":this.open?"false":"true","aria-labelledby":this.dialogLabelId,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},t(s,{moveFocusTo:this.focusedDayNode}),t("div",{class:"duet-date-dialog-wrapper",onKeyDown:this.handleEscKey,ref:function(t){return e.dialogWrapperNode=t}},t("duet-visually-hidden",{"aria-live":"polite"},d.keyboardInstruction),t("div",{class:"duet-date-dialog-mobile-header"},t("duet-label",{margin:"none"},this.label),t("button",{class:"duet-date-picker-close",ref:function(t){return e.closeButtonNode=t},onClick:function(){return e.hide()},type:"button"},t("duet-icon",{name:"navigation-close-small",margin:"none",color:"currentColor",size:"xx-small"}),t("duet-visually-hidden",null,d.closeLabel))),t("div",{class:"duet-date-dialog-header"},t("div",{class:"duet-date-dialog-dropdowns"},t("duet-visually-hidden",null,t("h2",{id:this.dialogLabelId,"aria-live":"polite","aria-atomic":"true"},d.monthLabels[r]," ",this.focusedDay.getFullYear())),t("duet-visually-hidden",null,t("label",{htmlFor:this.monthSelectId},d.monthSelectLabel)),t("div",{class:"duet-date-dialog-select"},t("select",{id:this.monthSelectId,class:"duet-date-month-select",ref:function(t){return e.monthSelectNode=t},onChange:this.handleMonthSelect},d.monthLabels.map((function(e,a){return t("option",{key:e,value:a,selected:a===r,disabled:!B(new Date(o,a,1),u?A(u):null,l?C(l):null)},e)}))),t("div",{class:"duet-date-dialog-select-label","aria-hidden":"true"},t("span",null,d.monthLabelsShort[r]),t("duet-icon",{name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"}))),t("duet-visually-hidden",null,t("label",{htmlFor:this.yearSelectId},d.yearSelectLabel)),t("div",{class:"duet-date-dialog-select"},t("select",{id:this.yearSelectId,class:"duet-date-year-select",onChange:this.handleYearSelect},H(h,b).map((function(e){return t("option",{key:e,selected:e===o},e)}))),t("div",{class:"duet-date-dialog-select-label","aria-hidden":"true"},t("span",null,this.focusedDay.getFullYear()),t("duet-icon",{name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"})))),t("div",{class:"duet-date-dialog-buttons"},t("duet-action-button",{accessibleLabel:m[this.language].prevMonthLabel,actionName:m[this.language].prevMonthLabel,class:"duet-date-dialog-prev",onClick:this.handlePreviousMonthClick,disabled:c,"icon-name":"action-arrow-left-small"},d.prevMonthLabel),t("duet-action-button",{accessibleLabel:m[this.language].nextMonthLabel,actionName:m[this.language].nextMonthLabel,class:"duet-date-dialog-next",onClick:this.handleNextMonthClick,disabled:p,"icon-name":"action-arrow-right-small"},d.nextMonthLabel))),t(R,{selectedDate:a,focusedDate:this.focusedDay,onDateSelect:this.handleDaySelect,onKeyboardNavigation:this.handleKeyboardNavigation,labelledById:this.dialogLabelId,language:this.language,theme:this.theme,min:u,max:l,focusedDayRef:function(t){return e.focusedDayNode=t},onFocusEnter:this.enableActiveFocus,onFocusExit:this.disableActiveFocus})),t(s,{moveFocusTo:this.closeButtonNode})))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{min:["updateValidity"],max:["updateValidity"],value:["updateValidity","updateInternalValue"],required:["updateValidity"]}},enumerable:false,configurable:true});return e}());W.style=J}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- System.register(["./p-8f7b7fed.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.h}],execute:function(){var s=e("f",(function(e){if("setFocus"in e){e.setFocus()}else{e.focus()}}));var u=e("F",(function(e){var u=e.moveFocusTo;return t("div",{class:"duet-focus-guard","aria-hidden":"true",tabIndex:0,onFocus:function(){return s(u)}})}))}}}));
4
+ System.register(["./p-9612326c.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.h}],execute:function(){var s=e("f",(function(e){if("setFocus"in e){e.setFocus()}else{e.focus()}}));var u=e("F",(function(e){var u=e.moveFocusTo;return t("div",{class:"duet-focus-guard","aria-hidden":"true",tabIndex:0,onFocus:function(){return s(u)}})}))}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as t,c as i,h as e,F as a,H as s,g as n}from"./p-952be9d4.js";import{i as r}from"./p-4ebf1618.js";import{c as o}from"./p-c1325e35.js";import{d as h}from"./p-0b3f675e.js";import{k as l,l as p,d,b as u,a as c,c as g,m,n as b}from"./p-f077c646.js";import{g as v,c as f,d as k}from"./p-03baceb5.js";import"./p-5a9d75e1.js";const y=class{constructor(e){t(this,e),this.duetPageChange=i(this,"duetPageChange",3),this.listId=o("duet-pagination-list"),this.firstRenderDone=!1,this.actionChain=async(t,i)=>{if(0===t)this.current=1;else if(i!==t){const i=Math.ceil(t/this.visibleItems)-1;i!==this.internalSectionIndex&&(this.internalSectionIndex=i,await this.setFocus())}return!0},this.emitPageEvent=h(((t,i)=>{const e=Number(i||this.current);this.duetPageChange.emit({component:"duet-pagination",from:e*this.take,to:e*this.take+this.take,current:e,take:this.take,type:"page",originalEvent:t})}),100),this.getEnteredNumber=h((t=>{this.emitPageEvent(t,this.numbersStore),this.current=Number(this.numbersStore),this.numbersStore="",this.duetPageChange.emit({component:"duet-pagination",from:this.current*this.take,to:this.current*this.take+this.take,current:this.current,take:this.take,type:"jump",originalEvent:t})}),500),this.numbersStore="",this.totalPages=10,this.internalSectionIndex=0,this.theme="",this.jumpString="...",this.variation="default",this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,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=v(this.accessibleLabelsDefaults),this.take=5,this.visibleItems=5,this.total=1e3,this.ariaControls="",this.current=1}watchPropTotalHandler(){return this.calculatePageTake(),!0}watchStateHandler(t,i){return this.actionChain(t,i)}componentWillLoad(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1,this.calculatePageTake(),r(this)}componentDidLoad(){this.firstRenderDone=!0}componentWillRender(){0!==this.internalSectionIndex&&this.internalSectionIndex!==this.totalPages&&this.calculatePageTake()}componentDidRender(){this.firstRenderDone&&this.setFocus()}connectedCallback(){f(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})}disconnectedCallback(){k(this)}calculatePageTake(){this.totalPages=Math.ceil(this.total/this.take)}async onMouseHandler(t,i){t.preventDefault(),t.stopPropagation(),this.current=this.current+i,this.emitPageEvent(t)}async onKeyboardDown(t){let i=this.current;(d(t)||u(t))&&i--,(c(t)||g(t))&&i++,l(t)&&i<=this.totalPages&&(this.current=i,this.emitPageEvent(t)),p(t)&&this.shouldDisplayNavigation()&&(this.numbersStore=this.numbersStore+t.key,Number(this.numbersStore)>this.totalPages&&(this.numbersStore=this.totalPages+""),this.getEnteredNumber(t))}async setFocus(){const t=this.nativeNav.querySelector("li.duet-pagination-item-is-active duet-button");t&&await t.setFocus()}pageClickHandler(t){t.preventDefault();const i=Number(t.target.getAttribute("data-id"));this.current=i,this.emitPageEvent({},i)}sectionClickHandler(t,i){t.preventDefault();let e=this.internalSectionIndex+i;e*(this.take*this.visibleItems)>this.total&&(e=this.internalSectionIndex),this.internalSectionIndex=e>=0?e:0}jumpToStart(t){t.preventDefault(),this.internalSectionIndex=0,this.current=1,this.emitPageEvent(t)}jumpToEnd(t){t.preventDefault(),this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1),this.current=this.totalPages,this.emitPageEvent(t)}renderPageNumbers(){const t=[];let i=this.internalSectionIndex*this.visibleItems;do{if(i++,i>this.totalPages)break;t.push(e("li",{class:{"duet-pagination-item":!0,"duet-pagination-item-is-active":i===this.current},role:"menuitem"},e("duet-button",{class:{"duet-pagination-link":!0},color:i!==this.current?"turva"!==this.theme?"secondary":"secondary-turva":"turva"!==this.theme?"primary":"primary-turva","data-id":i,"center-text":!0,variation:"plain",margin:"none",accessibleLabel:`${this.accessibleLabels.go_to} ${i}`,onClick:t=>this.pageClickHandler(t),theme:this.theme},e("div",{class:"duet-pagination-page-number","aria-hidden":!0},i))))}while(i<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t}shouldDisplayNavigation(){return"compact"!==this.variation&&!(2*this.visibleItems>this.total/this.take)}render(){return e(s,{onKeyDown:t=>this.onKeyboardDown(t)},e("nav",{role:"navigation","aria-labelledby":this.accessibleLabelledBy?`${this.accessibleLabelledBy} ${this.listId}`:this.listId,"aria-describedby":this.accessibleDescribedBy?`${this.accessibleDescribedBy} ${this.listId}`:this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:t=>this.nativeNav=t,"aria-controls":this.ariaControls,class:{"duet-pagination-nav":!0,[`duet-pagination-variation-${this.variation}`]:!0}},""!==this.numbersStore&&e("div",{"aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":`${this.accessibleLabels.jump_to} ${this.numbersStore}`,part:"navigation-overlay"},e("duet-badge",{theme:this.theme},"jump to page : ",this.numbersStore)),e("ol",{id:this.listId,class:{"duet-pagination":!0,"duet-pagination-is-dimmed":""!==this.numbersStore},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},e("li",{class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{disabled:0===this.internalSectionIndex&&this.current<=1,"data-direction":"back",onClick:t=>this.onMouseHandler(t,-1),"accessible-label":this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme})),0!==this.internalSectionIndex&&this.shouldDisplayNavigation()&&e(a,null,e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:"turva"!==this.theme?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:t=>this.jumpToStart(t),theme:this.theme},e("div",{class:"duet-pagination-page-number"},"1"))),e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,-1),theme:this.theme},e("div",{class:"duet-pagination-page-number","aria-hidden":"true"},"...")))),this.renderPageNumbers(),this.internalSectionIndex*(this.visibleItems+2)<this.totalPages&&this.shouldDisplayNavigation()&&e(a,null,e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,1),theme:this.theme},e("div",{class:"duet-pagination-page-number","aria-hidden":"true"},"..."))),e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:t=>this.jumpToEnd(t),theme:this.theme},e("div",{class:"duet-pagination-page-number"},this.totalPages)))),e("li",{class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("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:t=>this.onMouseHandler(t,1),"icon-name":"action-arrow-right-small",theme:this.theme})))))}get element(){return n(this)}static get watchers(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"]}}};y.style="*,*::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}";const w=class{constructor(e){t(this,e),this.duetRangeStepUpdate=i(this,"duetRangeStepUpdate",7),this.leftBn=o("duetRangeStepper-left"),this.rightBn=o("duetRangeStepper-right"),this.handleClick=(t,i)=>{t.preventDefault(),this.stepIndex+=i,this.clampStepIndex(),this.handleStepClick(t)},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=v(this.ariaLabelsDefaults),this.ariaControls=""}watchStepIndexStateHandler(t){this.leftBnRef&&this.rightBnRef&&(t<=1?(this.element===document.activeElement&&this.rightBnRef.setFocus(),this.leftBnRef.setAttribute("disabled","")):this.leftBnRef.removeAttribute("disabled"),t>=this.total/this.stepSize?(this.element===document.activeElement&&this.leftBnRef.setFocus(),this.rightBnRef.setAttribute("disabled","")):this.rightBnRef.removeAttribute("disabled"))}watchStepSizeStateHandler(t,i){t!==i&&(this.stepIndex*t>this.total&&(this.stepIndex=Math.ceil(this.total/t)),this.watchStepIndexStateHandler(this.stepIndex))}handleStepClick(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})}componentWillLoad(){r(this),this.clampStepIndex()}componentDidLoad(){this.watchStepIndexStateHandler(this.stepIndex)}connectedCallback(){f(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})}disconnectedCallback(){k(this)}clampStepIndex(){this.stepIndex<1?this.stepIndex=1:this.stepIndex*this.stepSize>this.total&&(this.stepIndex=Math.ceil(this.total/this.stepSize))}getFrom(){return Math.floor((this.stepIndex-1)*this.stepSize)+1}getTo(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)}generateStepSize(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))}generatePreviousIncrementLabel(){return 1===this.getFrom()?"":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))}generateNextIncrementLabel(){return this.getTo()===this.total?"":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))}async onKeyboardDown(t){let i=this.stepIndex,e=1;(d(t)||u(t)||m(t))&&(i--,e=-1,this.leftBnRef.setFocus()),(c(t)||g(t)||b(t))&&(i++,e=1),l(t)&&i>0&&i*this.stepSize<=this.total&&this.handleClick(t,e)}render(){return e("div",{class:{"duet-range-stepper":!0,"duet-theme-turva":"turva"===this.theme},onKeyDown:t=>this.onKeyboardDown(t),"aria-controls":this.ariaControls},e("span",{class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),e("duet-action-button",{class:"duet-range-step-button duet-range-step-minus",onClick:t=>this.handleClick(t,-1),id:this.leftBn,"accessible-label":`${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`,ref:t=>this.leftBnRef=t,part:"navigation-arrow",iconName:"action-arrow-left-small"}),e("duet-action-button",{class:"duet-range-step-button duet-range-step-plus",onClick:t=>this.handleClick(t,1),"accessible-label":`${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`,id:this.rightBn,ref:t=>this.rightBnRef=t,part:"navigation-arrow",iconName:"action-arrow-right-small"}))}get element(){return n(this)}static get watchers(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}}};w.style="*,*::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}";export{y as duet_pagination,w as duet_range_stepper}
4
+ import{r as t,c as i,h as e,F as a,H as s,g as n}from"./p-09822b6f.js";import{i as r}from"./p-4ebf1618.js";import{c as o}from"./p-c1325e35.js";import{d as h}from"./p-0b3f675e.js";import{k as l,l as p,d,b as u,a as c,c as g,m,n as b}from"./p-f077c646.js";import{g as v,c as f,d as k}from"./p-03baceb5.js";import"./p-5a9d75e1.js";const y=class{constructor(e){t(this,e),this.duetPageChange=i(this,"duetPageChange",3),this.listId=o("duet-pagination-list"),this.firstRenderDone=!1,this.actionChain=async(t,i)=>{if(0===t)this.current=1;else if(i!==t){const i=Math.ceil(t/this.visibleItems)-1;i!==this.internalSectionIndex&&(this.internalSectionIndex=i,await this.setFocus())}return!0},this.emitPageEvent=h(((t,i)=>{const e=Number(i||this.current);this.duetPageChange.emit({component:"duet-pagination",from:e*this.take,to:e*this.take+this.take,current:e,take:this.take,type:"page",originalEvent:t})}),100),this.getEnteredNumber=h((t=>{this.emitPageEvent(t,this.numbersStore),this.current=Number(this.numbersStore),this.numbersStore="",this.duetPageChange.emit({component:"duet-pagination",from:this.current*this.take,to:this.current*this.take+this.take,current:this.current,take:this.take,type:"jump",originalEvent:t})}),500),this.numbersStore="",this.totalPages=10,this.internalSectionIndex=0,this.theme="",this.jumpString="...",this.variation="default",this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,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=v(this.accessibleLabelsDefaults),this.take=5,this.visibleItems=5,this.total=1e3,this.ariaControls="",this.current=1}watchPropTotalHandler(){return this.calculatePageTake(),!0}watchStateHandler(t,i){return this.actionChain(t,i)}componentWillLoad(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1,this.calculatePageTake(),r(this)}componentDidLoad(){this.firstRenderDone=!0}componentWillRender(){0!==this.internalSectionIndex&&this.internalSectionIndex!==this.totalPages&&this.calculatePageTake()}componentDidRender(){this.firstRenderDone&&this.setFocus()}connectedCallback(){f(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})}disconnectedCallback(){k(this)}calculatePageTake(){this.totalPages=Math.ceil(this.total/this.take)}async onMouseHandler(t,i){t.preventDefault(),t.stopPropagation(),this.current=this.current+i,this.emitPageEvent(t)}async onKeyboardDown(t){let i=this.current;(d(t)||u(t))&&i--,(c(t)||g(t))&&i++,l(t)&&i<=this.totalPages&&(this.current=i,this.emitPageEvent(t)),p(t)&&this.shouldDisplayNavigation()&&(this.numbersStore=this.numbersStore+t.key,Number(this.numbersStore)>this.totalPages&&(this.numbersStore=this.totalPages+""),this.getEnteredNumber(t))}async setFocus(){const t=this.nativeNav.querySelector("li.duet-pagination-item-is-active duet-button");t&&await t.setFocus()}pageClickHandler(t){t.preventDefault();const i=Number(t.target.getAttribute("data-id"));this.current=i,this.emitPageEvent({},i)}sectionClickHandler(t,i){t.preventDefault();let e=this.internalSectionIndex+i;e*(this.take*this.visibleItems)>this.total&&(e=this.internalSectionIndex),this.internalSectionIndex=e>=0?e:0}jumpToStart(t){t.preventDefault(),this.internalSectionIndex=0,this.current=1,this.emitPageEvent(t)}jumpToEnd(t){t.preventDefault(),this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1),this.current=this.totalPages,this.emitPageEvent(t)}renderPageNumbers(){const t=[];let i=this.internalSectionIndex*this.visibleItems;do{if(i++,i>this.totalPages)break;t.push(e("li",{class:{"duet-pagination-item":!0,"duet-pagination-item-is-active":i===this.current},role:"menuitem"},e("duet-button",{class:{"duet-pagination-link":!0},color:i!==this.current?"turva"!==this.theme?"secondary":"secondary-turva":"turva"!==this.theme?"primary":"primary-turva","data-id":i,"center-text":!0,variation:"plain",margin:"none",accessibleLabel:`${this.accessibleLabels.go_to} ${i}`,onClick:t=>this.pageClickHandler(t),theme:this.theme},e("div",{class:"duet-pagination-page-number","aria-hidden":!0},i))))}while(i<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t}shouldDisplayNavigation(){return"compact"!==this.variation&&!(2*this.visibleItems>this.total/this.take)}render(){return e(s,{onKeyDown:t=>this.onKeyboardDown(t)},e("nav",{role:"navigation","aria-labelledby":this.accessibleLabelledBy?`${this.accessibleLabelledBy} ${this.listId}`:this.listId,"aria-describedby":this.accessibleDescribedBy?`${this.accessibleDescribedBy} ${this.listId}`:this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:t=>this.nativeNav=t,"aria-controls":this.ariaControls,class:{"duet-pagination-nav":!0,[`duet-pagination-variation-${this.variation}`]:!0}},""!==this.numbersStore&&e("div",{"aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":`${this.accessibleLabels.jump_to} ${this.numbersStore}`,part:"navigation-overlay"},e("duet-badge",{theme:this.theme},"jump to page : ",this.numbersStore)),e("ol",{id:this.listId,class:{"duet-pagination":!0,"duet-pagination-is-dimmed":""!==this.numbersStore},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},e("li",{class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{disabled:0===this.internalSectionIndex&&this.current<=1,"data-direction":"back",onClick:t=>this.onMouseHandler(t,-1),"accessible-label":this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme})),0!==this.internalSectionIndex&&this.shouldDisplayNavigation()&&e(a,null,e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:"turva"!==this.theme?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:t=>this.jumpToStart(t),theme:this.theme},e("div",{class:"duet-pagination-page-number"},"1"))),e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,-1),theme:this.theme},e("div",{class:"duet-pagination-page-number","aria-hidden":"true"},"...")))),this.renderPageNumbers(),this.internalSectionIndex*(this.visibleItems+2)<this.totalPages&&this.shouldDisplayNavigation()&&e(a,null,e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,1),theme:this.theme},e("div",{class:"duet-pagination-page-number","aria-hidden":"true"},"..."))),e("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:t=>this.jumpToEnd(t),theme:this.theme},e("div",{class:"duet-pagination-page-number"},this.totalPages)))),e("li",{class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("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:t=>this.onMouseHandler(t,1),"icon-name":"action-arrow-right-small",theme:this.theme})))))}get element(){return n(this)}static get watchers(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"]}}};y.style="*,*::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}";const w=class{constructor(e){t(this,e),this.duetRangeStepUpdate=i(this,"duetRangeStepUpdate",7),this.leftBn=o("duetRangeStepper-left"),this.rightBn=o("duetRangeStepper-right"),this.handleClick=(t,i)=>{t.preventDefault(),this.stepIndex+=i,this.clampStepIndex(),this.handleStepClick(t)},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=v(this.ariaLabelsDefaults),this.ariaControls=""}watchStepIndexStateHandler(t){this.leftBnRef&&this.rightBnRef&&(t<=1?(this.element===document.activeElement&&this.rightBnRef.setFocus(),this.leftBnRef.setAttribute("disabled","")):this.leftBnRef.removeAttribute("disabled"),t>=this.total/this.stepSize?(this.element===document.activeElement&&this.leftBnRef.setFocus(),this.rightBnRef.setAttribute("disabled","")):this.rightBnRef.removeAttribute("disabled"))}watchStepSizeStateHandler(t,i){t!==i&&(this.stepIndex*t>this.total&&(this.stepIndex=Math.ceil(this.total/t)),this.watchStepIndexStateHandler(this.stepIndex))}handleStepClick(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})}componentWillLoad(){r(this),this.clampStepIndex()}componentDidLoad(){this.watchStepIndexStateHandler(this.stepIndex)}connectedCallback(){f(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})}disconnectedCallback(){k(this)}clampStepIndex(){this.stepIndex<1?this.stepIndex=1:this.stepIndex*this.stepSize>this.total&&(this.stepIndex=Math.ceil(this.total/this.stepSize))}getFrom(){return Math.floor((this.stepIndex-1)*this.stepSize)+1}getTo(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)}generateStepSize(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))}generatePreviousIncrementLabel(){return 1===this.getFrom()?"":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))}generateNextIncrementLabel(){return this.getTo()===this.total?"":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))}async onKeyboardDown(t){let i=this.stepIndex,e=1;(d(t)||u(t)||m(t))&&(i--,e=-1,this.leftBnRef.setFocus()),(c(t)||g(t)||b(t))&&(i++,e=1),l(t)&&i>0&&i*this.stepSize<=this.total&&this.handleClick(t,e)}render(){return e("div",{class:{"duet-range-stepper":!0,"duet-theme-turva":"turva"===this.theme},onKeyDown:t=>this.onKeyboardDown(t),"aria-controls":this.ariaControls},e("span",{class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),e("duet-action-button",{class:"duet-range-step-button duet-range-step-minus",onClick:t=>this.handleClick(t,-1),id:this.leftBn,"accessible-label":`${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`,ref:t=>this.leftBnRef=t,part:"navigation-arrow",iconName:"action-arrow-left-small"}),e("duet-action-button",{class:"duet-range-step-button duet-range-step-plus",onClick:t=>this.handleClick(t,1),"accessible-label":`${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`,id:this.rightBn,ref:t=>this.rightBnRef=t,part:"navigation-arrow",iconName:"action-arrow-right-small"}))}get element(){return n(this)}static get watchers(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}}};w.style="*,*::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}";export{y as duet_pagination,w as duet_range_stepper}
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,r,i){function o(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function a(e){try{s(i.next(e))}catch(e){n(e)}}function d(e){try{s(i["throw"](e))}catch(e){n(e)}}function s(e){e.done?r(e.value):o(e.value).then(a,d)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,o,n,a;return a={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function d(e){return function(t){return s([e,t])}}function s(d){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,d[0]&&(r=0)),r)try{if(i=1,o&&(n=d[0]&2?o["return"]:d[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,d[1])).done)return n;if(o=0,n)d=[d[0]&2,n.value];switch(d[0]){case 0:case 1:n=d;break;case 4:r.label++;return{value:d[1],done:false};case 5:r.label++;o=d[1];d=[0];continue;case 7:d=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!n||d[1]>n[0]&&d[1]<n[3])){r.label=d[1];break}if(d[0]===6&&r.label<n[1]){r.label=n[1];n=d;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(d);break}if(n[2])r.ops.pop();r.trys.pop();continue}d=t.call(e,r)}catch(e){d=[6,e];o=0}finally{i=n=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
- */System.register(["./p-8f7b7fed.system.js","./p-33b3aba4.system.js","./p-43660fa9.system.js","./p-0c4bbd65.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,r,i,o,n,a,d,s,u;return{setters:[function(e){t=e.r;r=e.h;i=e.g},function(e){o=e.i},function(e){n=e.a;a=e.g;d=e.c;s=e.d},function(e){u=e.a},function(){}],execute:function(){var l="*,*::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-notification{display:block;padding:16px;color:rgb(0, 41, 77);cursor:pointer;border-bottom:1px solid rgb(225, 227, 230);transition:300ms ease}:host(:last-of-type) .duet-notification{border-bottom:0}.duet-notification.duet-theme-turva{color:rgb(23, 28, 58);border-bottom-color:rgb(228, 228, 230)}.duet-notification.duet-notification-highlight{font-weight:600;background:rgb(243, 249, 252)}.duet-notification.duet-notification-highlight.duet-theme-turva{background:rgb(252, 243, 244)}@media (min-width: 62em){.duet-notification:hover{background:rgb(243, 249, 252)}.duet-notification:hover.duet-theme-turva{background:rgb(252, 243, 244)}}.duet-notification a{text-decoration:none}.duet-notification a:focus{outline:0}:host(.user-is-tabbing) .duet-notification:focus-within{z-index:1;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-notification:focus-within.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-notification-container{position:relative;display:flex}.duet-notification-badge-container{position:relative;width:16px}.duet-notification-badge{position:absolute;top:6px;left:-2px;width:8px;height:8px;background:rgb(0, 119, 179);border-radius:50%}.duet-theme-turva .duet-notification-badge{background:rgb(198, 12, 48)}.duet-notification-content{flex:1}.duet-notification-date{position:absolute;top:2px;right:0;width:96px;font-size:0.75rem;font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:right;text-transform:uppercase}@media (max-width: 35.9375em){.duet-notification-date{width:auto}}.duet-theme-turva .duet-notification-date{color:rgb(68, 68, 69)}::slotted(duet-heading){padding-right:80px !important}::slotted(duet-paragraph){margin-bottom:2px !important}";var c=e("duet_notification",function(){function e(e){t(this,e);this.language=n();this.accessibleLabelUnreadDefaults={en:"Unread",fi:"Lukematon",sv:"Oläst"};this.accessibleLabelUnread=a(this.accessibleLabelUnreadDefaults,this.language);this.url="#";this.date="";this.highlight=false;this.external=false;this.theme=""}e.prototype.componentWillLoad=function(){o(this)};e.prototype.connectedCallback=function(){d(this,{prop:"accessibleLabelUnread",defaults:"accessibleLabelUnreadDefaults"})};e.prototype.disconnectedCallback=function(){s(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.linkElement.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",{role:"listitem",class:{"duet-notification":true,"duet-notification-highlight":this.highlight,"duet-theme-turva":this.theme==="turva"}},r("a",{ref:function(t){return e.linkElement=t},href:this.url,target:this.external?"_blank":"_self"},r("div",{class:"duet-notification-container"},r("div",{class:"duet-notification-badge-container"},this.highlight&&r("div",{class:"duet-notification-badge"},r("duet-visually-hidden",null,this.accessibleLabelUnread,":"))),r("div",{class:"duet-notification-content"},r("slot",null)),r("div",{class:"duet-notification-date"},this.date))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());c.style=l;var h='*,*::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-drawer{position:relative}@media (min-width: 62em){.duet-drawer{display:inline-block}}.duet-drawer-toggle{position:relative;display:flex;align-items:center;width:100%;height:48px;padding:0 20px;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";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:48px;color:rgb(0, 41, 77);text-align:left;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(225, 227, 230);border-radius:0;-webkit-appearance:none;appearance:none}@media (min-width: 62em){.duet-drawer-toggle{z-index:200;width:auto;max-width:200px;padding:0 30px 0 12px;overflow:hidden;font-size:0.875rem;line-height:4rem;border:0;border-radius:4px;transition:border 300ms ease}}.duet-theme-turva .duet-drawer-toggle{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);background-color:rgb(255, 255, 255);border-color:rgb(228, 228, 230)}.duet-drawer-toggle:active{opacity:0.75}.duet-drawer-toggle:focus{outline:0}:host(.user-is-tabbing) .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-drawer-toggle:hover{color:rgb(0, 77, 128)}.duet-theme-turva .duet-drawer-toggle:hover{color:rgb(68, 68, 69)}.duet-drawer-toggle::after{display:none !important}@media (min-width: 62em){.duet-drawer-toggle::after{position:absolute;top:auto;bottom:0;left:0;display:block !important;width:100%;height:3px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(3px)}.duet-theme-turva .duet-drawer-toggle::after{background:rgb(198, 12, 48)}}.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(0, 77, 128);border-bottom:1px solid rgb(245, 248, 250);border-radius:0}.duet-theme-turva .duet-drawer-toggle[aria-expanded=true],.duet-theme-turva .duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(68, 68, 69);border-color:rgb(245, 245, 247)}@media (min-width: 62em){.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{border:0}.duet-drawer-toggle[aria-expanded=true]::after,.duet-drawer-toggle[aria-expanded=true]:hover::after{left:0;width:100%;transform:translateY(0)}}.duet-drawer-icon{position:relative;display:inline-flex;min-width:12px;margin-right:12px;font-size:0;line-height:normal;vertical-align:baseline}@media (min-width: 62em){.duet-drawer-icon{margin-right:8px}}.duet-drawer-label{line-height:1}.duet-drawer-caret{position:absolute;top:50%;right:20px;display:flex;width:10px;height:10px;margin-left:8px;line-height:normal;pointer-events:none;transition:300ms ease;transform:translateY(-50%);transform-origin:50% 50%}@media (min-width: 62em){.duet-drawer-caret{right:16px;width:7px;height:7px}}.duet-drawer-caret duet-icon{width:10px}.duet-drawer-toggle[aria-expanded=true] .duet-drawer-caret{transform:translateY(-50%) rotate(180deg)}.duet-drawer-badge{position:absolute;top:0;right:0;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-drawer-badge{background:rgb(250, 164, 15)}.duet-drawer-content{display:none;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(225, 227, 230)}.duet-drawer-content:focus{outline:0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255);border-color:rgb(225, 227, 230)}@media (min-width: 62em){.duet-drawer-content{position:absolute;top:100%;z-index:600;display:block;width:450px;max-height:420px;padding-left:0;overflow-y:auto;visibility:hidden;background-color:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;border-top-left-radius:0;border-top-right-radius:0;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:300ms ease;transform:scale(0.95) translateZ(0) translateY(-10px);transform-origin:50% 0;scrollbar-width:none}.duet-drawer-content::-webkit-scrollbar{display:none}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255)}.duet-drawer-content.duet-drawer-left{right:0}.duet-drawer-content.duet-drawer-right{left:0}}.duet-drawer-content.duet-drawer-open{display:block}@media (min-width: 62em){.duet-drawer-content.duet-drawer-open{visibility:visible;opacity:1;transform:scale(1) translateZ(0) translateY(0)}}';var p=27;var g=e("duet_notification_drawer",function(){function e(e){var r=this;t(this,e);this.handleKeyDown=function(e){if(r.isOpen&&e.keyCode===p){r.close()}};this.toggleMenu=function(e){e.stopPropagation();r.isOpen?r.close():r.open()};this.updateNotificationState=function(){r.hasNotifications=r.element.children.length>0};this.isOpen=false;this.hasNotifications=undefined;this.icon="";this.label="Label";this.language=n();this.accessibleLabelNotificationsDefaults={en:"No notifications",fi:"Ei ilmoituksia",sv:"Inga notifikationer"};this.accessibleLabelNotifications=a(this.accessibleLabelNotificationsDefaults);this.badge=false;this.theme="";this.direction="left"}e.prototype.componentWillLoad=function(){o(this);this.updateNotificationState()};e.prototype.connectedCallback=function(){this.observer=new MutationObserver(this.updateNotificationState);this.observer.observe(this.element,{childList:true})};e.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null};e.prototype.handleClickFocusOutside=function(e){var t=e.target;if(this.isOpen&&!this.element.contains(t)){this.close(false)}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.drawerButtonEl.focus(e);return[2]}))}))};e.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=this.element.closest("duet-header");if(e){e.closeMenus()}this.isOpen=true;this.drawerContentEl.scrollTop=0;return[2]}))}))};e.prototype.close=function(e){if(e===void 0){e=true}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.isOpen=false;if(e){this.setFocus({preventScroll:true})}return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",{class:{"duet-drawer":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:this.handleKeyDown},r("button",{ref:function(t){return e.drawerButtonEl=t},type:"button",class:"duet-drawer-toggle",id:"duet-drawer-toggle","aria-controls":"duet-drawer-content","aria-expanded":this.isOpen?"true":"false",onClick:this.toggleMenu},this.icon&&r("div",{class:"duet-drawer-icon"},r("duet-icon",{margin:"none",size:"x-small",name:this.icon,color:"currentColor"}),this.badge&&r("div",{class:"duet-drawer-badge"})),r("span",{class:"duet-drawer-label"},this.label),r("div",{class:"duet-drawer-caret"},r("duet-icon",{margin:"none",size:"auto",icon:u.svg,color:"currentColor"}))),r("div",{id:"duet-drawer-content",class:{"duet-drawer-content":true,"duet-drawer-right":this.direction==="right","duet-drawer-left":this.direction==="left","duet-drawer-open":this.isOpen},ref:function(t){return e.drawerContentEl=t}},this.hasNotifications?r("div",{role:"list"},r("slot",null)):r("duet-empty-state",{size:"small"},r("duet-paragraph",{size:"small",margin:"none"},this.accessibleLabelNotifications))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());g.style=h}}}));
4
+ */System.register(["./p-9612326c.system.js","./p-33b3aba4.system.js","./p-43660fa9.system.js","./p-0c4bbd65.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,r,i,o,n,a,d,s,u;return{setters:[function(e){t=e.r;r=e.h;i=e.g},function(e){o=e.i},function(e){n=e.a;a=e.g;d=e.c;s=e.d},function(e){u=e.a},function(){}],execute:function(){var l="*,*::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-notification{display:block;padding:16px;color:rgb(0, 41, 77);cursor:pointer;border-bottom:1px solid rgb(225, 227, 230);transition:300ms ease}:host(:last-of-type) .duet-notification{border-bottom:0}.duet-notification.duet-theme-turva{color:rgb(23, 28, 58);border-bottom-color:rgb(228, 228, 230)}.duet-notification.duet-notification-highlight{font-weight:600;background:rgb(243, 249, 252)}.duet-notification.duet-notification-highlight.duet-theme-turva{background:rgb(252, 243, 244)}@media (min-width: 62em){.duet-notification:hover{background:rgb(243, 249, 252)}.duet-notification:hover.duet-theme-turva{background:rgb(252, 243, 244)}}.duet-notification a{text-decoration:none}.duet-notification a:focus{outline:0}:host(.user-is-tabbing) .duet-notification:focus-within{z-index:1;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-notification:focus-within.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-notification-container{position:relative;display:flex}.duet-notification-badge-container{position:relative;width:16px}.duet-notification-badge{position:absolute;top:6px;left:-2px;width:8px;height:8px;background:rgb(0, 119, 179);border-radius:50%}.duet-theme-turva .duet-notification-badge{background:rgb(198, 12, 48)}.duet-notification-content{flex:1}.duet-notification-date{position:absolute;top:2px;right:0;width:96px;font-size:0.75rem;font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:right;text-transform:uppercase}@media (max-width: 35.9375em){.duet-notification-date{width:auto}}.duet-theme-turva .duet-notification-date{color:rgb(68, 68, 69)}::slotted(duet-heading){padding-right:80px !important}::slotted(duet-paragraph){margin-bottom:2px !important}";var c=e("duet_notification",function(){function e(e){t(this,e);this.language=n();this.accessibleLabelUnreadDefaults={en:"Unread",fi:"Lukematon",sv:"Oläst"};this.accessibleLabelUnread=a(this.accessibleLabelUnreadDefaults,this.language);this.url="#";this.date="";this.highlight=false;this.external=false;this.theme=""}e.prototype.componentWillLoad=function(){o(this)};e.prototype.connectedCallback=function(){d(this,{prop:"accessibleLabelUnread",defaults:"accessibleLabelUnreadDefaults"})};e.prototype.disconnectedCallback=function(){s(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.linkElement.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",{role:"listitem",class:{"duet-notification":true,"duet-notification-highlight":this.highlight,"duet-theme-turva":this.theme==="turva"}},r("a",{ref:function(t){return e.linkElement=t},href:this.url,target:this.external?"_blank":"_self"},r("div",{class:"duet-notification-container"},r("div",{class:"duet-notification-badge-container"},this.highlight&&r("div",{class:"duet-notification-badge"},r("duet-visually-hidden",null,this.accessibleLabelUnread,":"))),r("div",{class:"duet-notification-content"},r("slot",null)),r("div",{class:"duet-notification-date"},this.date))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());c.style=l;var h='*,*::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-drawer{position:relative}@media (min-width: 62em){.duet-drawer{display:inline-block}}.duet-drawer-toggle{position:relative;display:flex;align-items:center;width:100%;height:48px;padding:0 20px;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";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:48px;color:rgb(0, 41, 77);text-align:left;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(225, 227, 230);border-radius:0;-webkit-appearance:none;appearance:none}@media (min-width: 62em){.duet-drawer-toggle{z-index:200;width:auto;max-width:200px;padding:0 30px 0 12px;overflow:hidden;font-size:0.875rem;line-height:4rem;border:0;border-radius:4px;transition:border 300ms ease}}.duet-theme-turva .duet-drawer-toggle{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);background-color:rgb(255, 255, 255);border-color:rgb(228, 228, 230)}.duet-drawer-toggle:active{opacity:0.75}.duet-drawer-toggle:focus{outline:0}:host(.user-is-tabbing) .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-drawer-toggle:hover{color:rgb(0, 77, 128)}.duet-theme-turva .duet-drawer-toggle:hover{color:rgb(68, 68, 69)}.duet-drawer-toggle::after{display:none !important}@media (min-width: 62em){.duet-drawer-toggle::after{position:absolute;top:auto;bottom:0;left:0;display:block !important;width:100%;height:3px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(3px)}.duet-theme-turva .duet-drawer-toggle::after{background:rgb(198, 12, 48)}}.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(0, 77, 128);border-bottom:1px solid rgb(245, 248, 250);border-radius:0}.duet-theme-turva .duet-drawer-toggle[aria-expanded=true],.duet-theme-turva .duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(68, 68, 69);border-color:rgb(245, 245, 247)}@media (min-width: 62em){.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{border:0}.duet-drawer-toggle[aria-expanded=true]::after,.duet-drawer-toggle[aria-expanded=true]:hover::after{left:0;width:100%;transform:translateY(0)}}.duet-drawer-icon{position:relative;display:inline-flex;min-width:12px;margin-right:12px;font-size:0;line-height:normal;vertical-align:baseline}@media (min-width: 62em){.duet-drawer-icon{margin-right:8px}}.duet-drawer-label{line-height:1}.duet-drawer-caret{position:absolute;top:50%;right:20px;display:flex;width:10px;height:10px;margin-left:8px;line-height:normal;pointer-events:none;transition:300ms ease;transform:translateY(-50%);transform-origin:50% 50%}@media (min-width: 62em){.duet-drawer-caret{right:16px;width:7px;height:7px}}.duet-drawer-caret duet-icon{width:10px}.duet-drawer-toggle[aria-expanded=true] .duet-drawer-caret{transform:translateY(-50%) rotate(180deg)}.duet-drawer-badge{position:absolute;top:0;right:0;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-drawer-badge{background:rgb(250, 164, 15)}.duet-drawer-content{display:none;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(225, 227, 230)}.duet-drawer-content:focus{outline:0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255);border-color:rgb(225, 227, 230)}@media (min-width: 62em){.duet-drawer-content{position:absolute;top:100%;z-index:600;display:block;width:450px;max-height:420px;padding-left:0;overflow-y:auto;visibility:hidden;background-color:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;border-top-left-radius:0;border-top-right-radius:0;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:300ms ease;transform:scale(0.95) translateZ(0) translateY(-10px);transform-origin:50% 0;scrollbar-width:none}.duet-drawer-content::-webkit-scrollbar{display:none}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255)}.duet-drawer-content.duet-drawer-left{right:0}.duet-drawer-content.duet-drawer-right{left:0}}.duet-drawer-content.duet-drawer-open{display:block}@media (min-width: 62em){.duet-drawer-content.duet-drawer-open{visibility:visible;opacity:1;transform:scale(1) translateZ(0) translateY(0)}}';var p=27;var g=e("duet_notification_drawer",function(){function e(e){var r=this;t(this,e);this.handleKeyDown=function(e){if(r.isOpen&&e.keyCode===p){r.close()}};this.toggleMenu=function(e){e.stopPropagation();r.isOpen?r.close():r.open()};this.updateNotificationState=function(){r.hasNotifications=r.element.children.length>0};this.isOpen=false;this.hasNotifications=undefined;this.icon="";this.label="Label";this.language=n();this.accessibleLabelNotificationsDefaults={en:"No notifications",fi:"Ei ilmoituksia",sv:"Inga notifikationer"};this.accessibleLabelNotifications=a(this.accessibleLabelNotificationsDefaults);this.badge=false;this.theme="";this.direction="left"}e.prototype.componentWillLoad=function(){o(this);this.updateNotificationState()};e.prototype.connectedCallback=function(){this.observer=new MutationObserver(this.updateNotificationState);this.observer.observe(this.element,{childList:true})};e.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null};e.prototype.handleClickFocusOutside=function(e){var t=e.target;if(this.isOpen&&!this.element.contains(t)){this.close(false)}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.drawerButtonEl.focus(e);return[2]}))}))};e.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=this.element.closest("duet-header");if(e){e.closeMenus()}this.isOpen=true;this.drawerContentEl.scrollTop=0;return[2]}))}))};e.prototype.close=function(e){if(e===void 0){e=true}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.isOpen=false;if(e){this.setFocus({preventScroll:true})}return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",{class:{"duet-drawer":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:this.handleKeyDown},r("button",{ref:function(t){return e.drawerButtonEl=t},type:"button",class:"duet-drawer-toggle",id:"duet-drawer-toggle","aria-controls":"duet-drawer-content","aria-expanded":this.isOpen?"true":"false",onClick:this.toggleMenu},this.icon&&r("div",{class:"duet-drawer-icon"},r("duet-icon",{margin:"none",size:"x-small",name:this.icon,color:"currentColor"}),this.badge&&r("div",{class:"duet-drawer-badge"})),r("span",{class:"duet-drawer-label"},this.label),r("div",{class:"duet-drawer-caret"},r("duet-icon",{margin:"none",size:"auto",icon:u.svg,color:"currentColor"}))),r("div",{id:"duet-drawer-content",class:{"duet-drawer-content":true,"duet-drawer-right":this.direction==="right","duet-drawer-left":this.direction==="left","duet-drawer-open":this.isOpen},ref:function(t){return e.drawerContentEl=t}},this.hasNotifications?r("div",{role:"list"},r("slot",null)):r("duet-empty-state",{size:"small"},r("duet-paragraph",{size:"small",margin:"none"},this.accessibleLabelNotifications))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());g.style=h}}}));
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t}from"./p-952be9d4.js";import{i as a}from"./p-4ebf1618.js";import{g as i}from"./p-03baceb5.js";import{a as s}from"./p-e91385fb.js";import"./p-5a9d75e1.js";const o=class{constructor(t){e(this,t),this.fileUploadingInfo={fi:"Tiedosto latautuu",sv:"Filen laddas upp",en:"File is uploading"},this.onLinkClick=e=>{const{url:t,meta:a}=this.data;this.linkClickEvent&&(e.preventDefault(),this.linkClickEvent.emit({component:"duet-upload",data:{name:this.data.item.name,url:t,meta:a}}))},this.theme="",this.data=void 0,this.type=void 0,this.showLinks=void 0,this.actions=void 0,this.label=void 0,this.categoryLabel=void 0,this.errorCodes=void 0,this.showCategory=void 0,this.linkClickEvent=void 0}componentWillLoad(){a(this)}async focusActionButton(){this.actionButton&&(await this.actionButton.setFocus({preventScroll:!0}),this.actionButton.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))}getFileNameLine(){const{item:e,size:a,uploaded:o,url:n,progress:r,error:l}=this.data,{name:d}=e,c=t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),m=t("span",{class:"duet-upload-item-size",style:{fontSize:"14px",fontWeight:"400"}},"(",((e,t=2)=>{if(0===e)return"0 Bytes";const a=t<0?0:t,i=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,i)).toFixed(a))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]})(a),")");switch(this.type){case"inprogress":return t("span",{class:"duet-upload-item-name",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"gray-darker",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),t("duet-visually-hidden",null,t("duet-paragraph",null,i(this.fileUploadingInfo))),t("duet-progress",{progress:Math.ceil(r),"aria-hidden":!0}));case"pending":return t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d);case"failure":return t("span",{class:"duet-upload-item-error",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"danger",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),t("duet-paragraph",{class:"duet-upload-item-error-label",size:"small",margin:"none",color:"danger"},s(l.type,this.errorCodes)));default:return t("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},o&&n&&this.showLinks?t("duet-link",{onClick:this.onLinkClick,url:n,external:!0},c):c,t("duet-spacer",{size:"xx-small",direction:"horizontal"}),m)}}render(){const{uid:e,meta:a,item:s}=this.data,o=a&&a.badges?t("span",null,a.badges.map((e=>t("duet-badge",{color:"primary"},e)))):void 0,n=`${a&&a.badges?a.badges.join(","):""} ${s.name}`;return t("div",{class:{"upload-item-row":!0}},this.showCategory&&t("div",{class:"item-categories"},t("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},i(this.categoryLabel)),o),t("div",{class:{"item-name":!0,"no-category":!this.showCategory}},!!this.label&&t("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},i(this.label)),this.getFileNameLine()),t("div",{class:"item-actions"},this.actions.map((s=>t("duet-action-button",{actionMeta:Object.assign({},a||{}),actionId:e||null,actionName:s.name,theme:this.theme,iconName:s.icon,iconColor:s.color,iconSize:s.size,background:s.background,"accessible-label":`${n} ${i(s.label)} `,accessibleTitle:!1,ref:e=>this.actionButton=e})))))}};export{o as duet_upload_item}
4
+ import{r as e,h as t}from"./p-09822b6f.js";import{i as a}from"./p-4ebf1618.js";import{g as i}from"./p-03baceb5.js";import{a as s}from"./p-e91385fb.js";import"./p-5a9d75e1.js";const o=class{constructor(t){e(this,t),this.fileUploadingInfo={fi:"Tiedosto latautuu",sv:"Filen laddas upp",en:"File is uploading"},this.onLinkClick=e=>{const{url:t,meta:a}=this.data;this.linkClickEvent&&(e.preventDefault(),this.linkClickEvent.emit({component:"duet-upload",data:{name:this.data.item.name,url:t,meta:a}}))},this.theme="",this.data=void 0,this.type=void 0,this.showLinks=void 0,this.actions=void 0,this.label=void 0,this.categoryLabel=void 0,this.errorCodes=void 0,this.showCategory=void 0,this.linkClickEvent=void 0}componentWillLoad(){a(this)}async focusActionButton(){this.actionButton&&(await this.actionButton.setFocus({preventScroll:!0}),this.actionButton.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))}getFileNameLine(){const{item:e,size:a,uploaded:o,url:n,progress:r,error:l}=this.data,{name:d}=e,c=t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),m=t("span",{class:"duet-upload-item-size",style:{fontSize:"14px",fontWeight:"400"}},"(",((e,t=2)=>{if(0===e)return"0 Bytes";const a=t<0?0:t,i=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,i)).toFixed(a))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][i]})(a),")");switch(this.type){case"inprogress":return t("span",{class:"duet-upload-item-name",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"gray-darker",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),t("duet-visually-hidden",null,t("duet-paragraph",null,i(this.fileUploadingInfo))),t("duet-progress",{progress:Math.ceil(r),"aria-hidden":!0}));case"pending":return t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d);case"failure":return t("span",{class:"duet-upload-item-error",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"danger",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),d),t("duet-paragraph",{class:"duet-upload-item-error-label",size:"small",margin:"none",color:"danger"},s(l.type,this.errorCodes)));default:return t("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},o&&n&&this.showLinks?t("duet-link",{onClick:this.onLinkClick,url:n,external:!0},c):c,t("duet-spacer",{size:"xx-small",direction:"horizontal"}),m)}}render(){const{uid:e,meta:a,item:s}=this.data,o=a&&a.badges?t("span",null,a.badges.map((e=>t("duet-badge",{color:"primary"},e)))):void 0,n=`${a&&a.badges?a.badges.join(","):""} ${s.name}`;return t("div",{class:{"upload-item-row":!0}},this.showCategory&&t("div",{class:"item-categories"},t("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},i(this.categoryLabel)),o),t("div",{class:{"item-name":!0,"no-category":!this.showCategory}},!!this.label&&t("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},i(this.label)),this.getFileNameLine()),t("div",{class:"item-actions"},this.actions.map((s=>t("duet-action-button",{actionMeta:Object.assign({},a||{}),actionId:e||null,actionName:s.name,theme:this.theme,iconName:s.icon,iconColor:s.color,iconSize:s.size,background:s.background,"accessible-label":`${n} ${i(s.label)} `,accessibleTitle:!1,ref:e=>this.actionButton=e})))))}};export{o as duet_upload_item}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as e,h as t,H as o,g as a}from"./p-952be9d4.js";import{i as n}from"./p-4ebf1618.js";import{a as i,c as s,d as r,g as l}from"./p-03baceb5.js";import"./p-5a9d75e1.js";const p=class{constructor(t){e(this,t),this.chooseLangObject={en:"Choose language",fi:"Valitse kieli",sv:"Välj språk"},this.language=i(),this.theme=""}componentWillLoad(){n(this)}connectedCallback(){s(this)}disconnectedCallback(){r(this)}render(){const e=l(this.chooseLangObject);return t(o,null,t("div",{class:"duet-slideout-lang",role:"group","aria-label":e},t("duet-icon",{name:"navigation-language",margin:"none",color:"secondary"}),t("slot",null)))}get element(){return a(this)}};p.style='*,*::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-slideout-lang{display:flex;gap:20px;align-items:center;justify-content:flex-start;width:min-content}::slotted(*){position:relative}::slotted(:not(:first-child)){padding-right:0;padding-left:0.5rem}::slotted(:not(:last-child))::after{position:absolute;top:15%;right:-16px;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:16px;font-weight:600;line-height:150%;color:rgb(0, 41, 77);content:"|"}.duet-theme-turva ::slotted(:not(:last-child))::after{color:rgb(23, 28, 58)}';export{p as duet_slideout_lang}
4
+ import{r as e,h as t,H as o,g as a}from"./p-09822b6f.js";import{i as n}from"./p-4ebf1618.js";import{a as i,c as s,d as r,g as l}from"./p-03baceb5.js";import"./p-5a9d75e1.js";const p=class{constructor(t){e(this,t),this.chooseLangObject={en:"Choose language",fi:"Valitse kieli",sv:"Välj språk"},this.language=i(),this.theme=""}componentWillLoad(){n(this)}connectedCallback(){s(this)}disconnectedCallback(){r(this)}render(){const e=l(this.chooseLangObject);return t(o,null,t("div",{class:"duet-slideout-lang",role:"group","aria-label":e},t("duet-icon",{name:"navigation-language",margin:"none",color:"secondary"}),t("slot",null)))}get element(){return a(this)}};p.style='*,*::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-slideout-lang{display:flex;gap:20px;align-items:center;justify-content:flex-start;width:min-content}::slotted(*){position:relative}::slotted(:not(:first-child)){padding-right:0;padding-left:0.5rem}::slotted(:not(:last-child))::after{position:absolute;top:15%;right:-16px;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:16px;font-weight:600;line-height:150%;color:rgb(0, 41, 77);content:"|"}.duet-theme-turva ::slotted(:not(:last-child))::after{color:rgb(23, 28, 58)}';export{p as duet_slideout_lang}