@duetds/components 9.2.3 → 9.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (686) hide show
  1. package/hydrate/index.js +167 -127
  2. package/lib/cjs/{app-globals-76b570cd.js → app-globals-b7ff47d8.js} +1 -1
  3. package/lib/cjs/duet-action-button.cjs.entry.js +2 -2
  4. package/lib/cjs/duet-alert.cjs.entry.js +3 -3
  5. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-banner.cjs.entry.js +2 -2
  7. package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -2
  8. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +2 -2
  9. package/lib/cjs/duet-button_2.cjs.entry.js +48 -38
  10. package/lib/cjs/duet-callout.cjs.entry.js +2 -2
  11. package/lib/cjs/duet-caption_4.cjs.entry.js +17 -8
  12. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-chip_3.cjs.entry.js +8 -13
  16. package/lib/cjs/duet-choice_2.cjs.entry.js +3 -3
  17. package/lib/cjs/duet-collapsible.cjs.entry.js +6 -5
  18. package/lib/cjs/duet-combobox.cjs.entry.js +3 -3
  19. package/lib/cjs/duet-contact-card.cjs.entry.js +2 -2
  20. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  21. package/lib/cjs/duet-date-picker.cjs.entry.js +6 -6
  22. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-editable-table_3.cjs.entry.js +5 -5
  24. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-fieldset.cjs.entry.js +2 -2
  26. package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-footer.cjs.entry.js +3 -3
  28. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-header_2.cjs.entry.js +2 -2
  30. package/lib/cjs/duet-hero.cjs.entry.js +3 -3
  31. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-input_2.cjs.entry.js +3 -3
  33. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  34. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +2 -2
  39. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-menu-bar.cjs.entry.js +2 -2
  41. package/lib/cjs/duet-modal.cjs.entry.js +4 -4
  42. package/lib/cjs/duet-multiselect.cjs.entry.js +3 -3
  43. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-notification_2.cjs.entry.js +3 -3
  45. package/lib/cjs/duet-number-input.cjs.entry.js +12 -6
  46. package/lib/cjs/duet-overlay.cjs.entry.js +1 -1
  47. package/lib/cjs/duet-page-heading.cjs.entry.js +15 -4
  48. package/lib/cjs/duet-pagination_2.cjs.entry.js +2 -2
  49. package/lib/cjs/duet-progress.cjs.entry.js +2 -2
  50. package/lib/cjs/duet-promo-card.cjs.entry.js +4 -4
  51. package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
  52. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  53. package/lib/cjs/duet-scrollable_3.cjs.entry.js +8 -8
  54. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  55. package/lib/cjs/duet-select.cjs.entry.js +2 -2
  56. package/lib/cjs/duet-shaped-image.cjs.entry.js +3 -3
  57. package/lib/cjs/duet-show-more.cjs.entry.js +2 -2
  58. package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
  59. package/lib/cjs/duet-slideout-link.cjs.entry.js +3 -3
  60. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +5 -5
  61. package/lib/cjs/duet-slideout-panel.cjs.entry.js +10 -10
  62. package/lib/cjs/duet-slideout.cjs.entry.js +4 -4
  63. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +3 -3
  65. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +5 -5
  66. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +3 -3
  67. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
  68. package/lib/cjs/duet-submenu-bar.cjs.entry.js +6 -6
  69. package/lib/cjs/duet-textarea.cjs.entry.js +3 -3
  70. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  71. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +3 -3
  72. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +5 -5
  73. package/lib/cjs/duet-toolbar-item.cjs.entry.js +5 -5
  74. package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
  75. package/lib/cjs/duet-toolbar.cjs.entry.js +3 -3
  76. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +9 -7
  77. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -3
  78. package/lib/cjs/duet-tray.cjs.entry.js +4 -4
  79. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  80. package/lib/cjs/duet-upload-item.cjs.entry.js +3 -3
  81. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  82. package/lib/cjs/duet.cjs.js +3 -3
  83. package/lib/cjs/{errorcodes.utils-ba7fae1c.js → errorcodes.utils-c6d081c3.js} +1 -1
  84. package/lib/cjs/{focus-utils-ce2b65c9.js → focus-utils-23e4ff8f.js} +1 -1
  85. package/lib/cjs/{index-340b85bb.js → index-1e60119f.js} +1 -1
  86. package/lib/cjs/{language-utils-07b9f155.js → language-utils-81d6b885.js} +1 -1
  87. package/lib/cjs/loader.cjs.js +3 -3
  88. package/lib/cjs/{slot-utils-ac35c5be.js → slot-utils-48acde5d.js} +1 -1
  89. package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
  90. package/lib/collection/components/duet-alert/duet-alert.js +1 -1
  91. package/lib/collection/components/duet-banner/duet-banner.js +1 -1
  92. package/lib/collection/components/duet-button/duet-button.js +70 -50
  93. package/lib/collection/components/duet-caption/duet-caption.js +1 -1
  94. package/lib/collection/components/duet-card/duet-card.js +3 -3
  95. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  96. package/lib/collection/components/duet-chip/duet-chip.js +6 -6
  97. package/lib/collection/components/duet-choice/duet-choice.js +3 -3
  98. package/lib/collection/components/duet-collapsible/duet-collapsible.css +6 -0
  99. package/lib/collection/components/duet-collapsible/duet-collapsible.js +26 -5
  100. package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
  101. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  102. package/lib/collection/components/duet-date-picker/duet-date-picker.js +6 -6
  103. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  104. package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
  105. package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
  106. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  107. package/lib/collection/components/duet-footer/duet-footer.js +7 -7
  108. package/lib/collection/components/duet-grid/duet-grid.js +3 -3
  109. package/lib/collection/components/duet-header/duet-header.js +15 -15
  110. package/lib/collection/components/duet-heading/duet-heading.js +1 -1
  111. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  112. package/lib/collection/components/duet-input/duet-input.js +8 -8
  113. package/lib/collection/components/duet-label/duet-label.js +2 -2
  114. package/lib/collection/components/duet-layout/duet-layout.js +1 -1
  115. package/lib/collection/components/duet-link/duet-link.css +89 -24
  116. package/lib/collection/components/duet-link/duet-link.js +15 -6
  117. package/lib/collection/components/duet-list/duet-list.js +3 -3
  118. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  119. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
  120. package/lib/collection/components/duet-modal/duet-modal.js +4 -4
  121. package/lib/collection/components/duet-multiselect/duet-multiselect.js +6 -6
  122. package/lib/collection/components/duet-notification/duet-notification.css +4 -0
  123. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
  124. package/lib/collection/components/duet-number-input/duet-number-input.js +13 -7
  125. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  126. package/lib/collection/components/duet-page-heading/duet-page-heading.css +14 -0
  127. package/lib/collection/components/duet-page-heading/duet-page-heading.js +51 -2
  128. package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
  129. package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
  130. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +6 -11
  131. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  132. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  133. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  134. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  135. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
  136. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  137. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  138. package/lib/collection/components/duet-select/duet-select.js +5 -5
  139. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  140. package/lib/collection/components/duet-show-more/duet-show-more.js +1 -1
  141. package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
  142. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  143. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  144. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  145. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  146. package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
  147. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  148. package/lib/collection/components/duet-step/duet-step.js +2 -2
  149. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  150. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  151. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  152. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  153. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  154. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  155. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
  156. package/lib/collection/components/duet-table/duet-table.js +2 -2
  157. package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
  158. package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
  159. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  160. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  161. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  162. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  163. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  164. package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +6 -0
  165. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +24 -2
  166. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  167. package/lib/collection/components/duet-tooltip/duet-tooltip.js +23 -2
  168. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  169. package/lib/collection/components/duet-upload/duet-upload.js +14 -14
  170. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  171. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  172. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  173. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  174. package/lib/dist-custom-elements/duet-alert.js +1 -1
  175. package/lib/dist-custom-elements/duet-badge.js +1 -1
  176. package/lib/dist-custom-elements/duet-banner.js +3 -3
  177. package/lib/dist-custom-elements/duet-breadcrumb.js +3 -3
  178. package/lib/dist-custom-elements/duet-breadcrumbs.js +1 -1
  179. package/lib/dist-custom-elements/duet-button.js +1 -1
  180. package/lib/dist-custom-elements/duet-callout.js +2 -2
  181. package/lib/dist-custom-elements/duet-caption.js +1 -1
  182. package/lib/dist-custom-elements/duet-card.js +3 -3
  183. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  184. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  185. package/lib/dist-custom-elements/duet-chip.js +1 -1
  186. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  187. package/lib/dist-custom-elements/duet-choice.js +4 -4
  188. package/lib/dist-custom-elements/duet-collapsible.js +7 -5
  189. package/lib/dist-custom-elements/duet-combobox.js +15 -15
  190. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  191. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  192. package/lib/dist-custom-elements/duet-date-picker.js +15 -15
  193. package/lib/dist-custom-elements/duet-divider.js +1 -1
  194. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  195. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  196. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  197. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  198. package/lib/dist-custom-elements/duet-footer.js +7 -7
  199. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  200. package/lib/dist-custom-elements/duet-grid.js +1 -1
  201. package/lib/dist-custom-elements/duet-header.js +8 -8
  202. package/lib/dist-custom-elements/duet-heading.js +1 -1
  203. package/lib/dist-custom-elements/duet-hero.js +9 -9
  204. package/lib/dist-custom-elements/duet-icon.js +1 -1
  205. package/lib/dist-custom-elements/duet-input.js +1 -1
  206. package/lib/dist-custom-elements/duet-label.js +1 -1
  207. package/lib/dist-custom-elements/duet-layout.js +1 -1
  208. package/lib/dist-custom-elements/duet-link.js +1 -1
  209. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  210. package/lib/dist-custom-elements/duet-list.js +1 -1
  211. package/lib/dist-custom-elements/duet-logo.js +1 -1
  212. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  213. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  214. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  215. package/lib/dist-custom-elements/duet-menu-bar-item.js +2 -2
  216. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  217. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  218. package/lib/dist-custom-elements/duet-modal.js +8 -8
  219. package/lib/dist-custom-elements/duet-multiselect.js +9 -9
  220. package/lib/dist-custom-elements/duet-nav.js +1 -1
  221. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  222. package/lib/dist-custom-elements/duet-notification.js +3 -3
  223. package/lib/dist-custom-elements/duet-number-input.js +20 -14
  224. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  225. package/lib/dist-custom-elements/duet-page-heading.js +26 -7
  226. package/lib/dist-custom-elements/duet-pagination.js +13 -13
  227. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  228. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  229. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  230. package/lib/dist-custom-elements/duet-progress.js +1 -1
  231. package/lib/dist-custom-elements/duet-promo-card.js +5 -5
  232. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  233. package/lib/dist-custom-elements/duet-radio.js +1 -1
  234. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  235. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  236. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  237. package/lib/dist-custom-elements/duet-section-layout.js +4 -4
  238. package/lib/dist-custom-elements/duet-select.js +1 -1
  239. package/lib/dist-custom-elements/duet-shaped-image.js +3 -3
  240. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  241. package/lib/dist-custom-elements/duet-slideout-lang.js +3 -3
  242. package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
  243. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +6 -6
  244. package/lib/dist-custom-elements/duet-slideout-panel.js +8 -8
  245. package/lib/dist-custom-elements/duet-slideout.js +3 -3
  246. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  247. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  248. package/lib/dist-custom-elements/duet-step.js +4 -4
  249. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  250. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +4 -4
  251. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +6 -6
  252. package/lib/dist-custom-elements/duet-submenu-bar-item.js +3 -3
  253. package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
  254. package/lib/dist-custom-elements/duet-submenu-bar.js +8 -8
  255. package/lib/dist-custom-elements/duet-tab-group.js +13 -13
  256. package/lib/dist-custom-elements/duet-tab.js +1 -1
  257. package/lib/dist-custom-elements/duet-table.js +1 -1
  258. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  259. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  260. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +4 -4
  261. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +6 -6
  262. package/lib/dist-custom-elements/duet-toolbar-item.js +5 -5
  263. package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
  264. package/lib/dist-custom-elements/duet-toolbar.js +3 -3
  265. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  266. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  267. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  268. package/lib/dist-custom-elements/duet-tray.js +5 -5
  269. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  270. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  271. package/lib/dist-custom-elements/duet-upload.js +19 -19
  272. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  273. package/lib/dist-custom-elements/index.js +1 -1
  274. package/lib/dist-custom-elements/{p-6fba1a8d.js → p-02d4e255.js} +5 -5
  275. package/lib/dist-custom-elements/{p-1ea54c70.js → p-05efc2ad.js} +1 -1
  276. package/lib/dist-custom-elements/{p-26b7ade3.js → p-0c33376d.js} +1 -1
  277. package/lib/dist-custom-elements/{p-78a5f782.js → p-14cf0405.js} +1 -1
  278. package/lib/dist-custom-elements/{p-1cb8476a.js → p-154e23a4.js} +5 -5
  279. package/lib/dist-custom-elements/{p-8d2d00df.js → p-1fc83053.js} +1 -1
  280. package/lib/dist-custom-elements/{p-4dc547d5.js → p-25ae787d.js} +8 -6
  281. package/lib/dist-custom-elements/{p-78ce84c0.js → p-2c618331.js} +1 -1
  282. package/lib/dist-custom-elements/{p-b0182f1f.js → p-2fe0ec41.js} +1 -1
  283. package/lib/dist-custom-elements/{p-92271f30.js → p-33b25588.js} +10 -10
  284. package/lib/dist-custom-elements/{p-2b8ce441.js → p-355cf1a0.js} +1 -1
  285. package/lib/dist-custom-elements/{p-f4db5912.js → p-399b6852.js} +3 -3
  286. package/lib/dist-custom-elements/{p-a8ec8761.js → p-3a3c57fa.js} +1 -1
  287. package/lib/dist-custom-elements/{p-63d7f555.js → p-40537c50.js} +51 -45
  288. package/lib/dist-custom-elements/{p-ee7efc3d.js → p-468e836e.js} +8 -8
  289. package/lib/dist-custom-elements/{p-38184acb.js → p-4ed3e96b.js} +1 -1
  290. package/lib/dist-custom-elements/{p-dac0f309.js → p-56bf7077.js} +17 -8
  291. package/lib/dist-custom-elements/{p-02c633ce.js → p-5ac3eb9e.js} +1 -1
  292. package/lib/dist-custom-elements/{p-8e6d8a49.js → p-66068065.js} +10 -10
  293. package/lib/dist-custom-elements/{p-b5e71a67.js → p-66e2fc31.js} +1 -1
  294. package/lib/dist-custom-elements/{p-8a6272fd.js → p-7024496b.js} +2 -2
  295. package/lib/dist-custom-elements/{p-c5aac304.js → p-7392954a.js} +2 -2
  296. package/lib/dist-custom-elements/{p-0230e9f7.js → p-7afc4806.js} +6 -6
  297. package/lib/dist-custom-elements/{p-f76d6e43.js → p-7c94fabf.js} +1 -1
  298. package/lib/dist-custom-elements/{p-d824ce45.js → p-8039b3f4.js} +1 -1
  299. package/lib/dist-custom-elements/{p-52a71225.js → p-82a1767d.js} +1 -1
  300. package/lib/dist-custom-elements/{p-b0a7f776.js → p-8aa90244.js} +1 -1
  301. package/lib/dist-custom-elements/{p-5be05df5.js → p-a52ad515.js} +10 -10
  302. package/lib/dist-custom-elements/{p-40eaa1e8.js → p-a584dec5.js} +8 -5
  303. package/lib/dist-custom-elements/{p-94084f9c.js → p-b27d6385.js} +6 -11
  304. package/lib/dist-custom-elements/{p-70dc7a81.js → p-b8b6704c.js} +2 -2
  305. package/lib/dist-custom-elements/{p-fabc88b7.js → p-c6032aa6.js} +3 -3
  306. package/lib/dist-custom-elements/{p-3eae8aeb.js → p-c79e2c95.js} +1 -1
  307. package/lib/dist-custom-elements/{p-75e5bd55.js → p-cefeff34.js} +3 -3
  308. package/lib/dist-custom-elements/{p-aee0da4a.js → p-d87c57a6.js} +2 -2
  309. package/lib/dist-custom-elements/{p-9f29df11.js → p-e874eaab.js} +1 -1
  310. package/lib/dist-custom-elements/{p-b5ab185d.js → p-eaa86979.js} +2 -2
  311. package/lib/dist-custom-elements/{p-5474eeba.js → p-f4db6b2b.js} +1 -1
  312. package/lib/dist-custom-elements/{p-f0080861.js → p-fde3372c.js} +2 -2
  313. package/lib/duet/duet.esm.js +1 -1
  314. package/lib/duet/duet.js +1 -1
  315. package/lib/duet/{p-29dbe11f.system.entry.js → p-002bf3cc.system.entry.js} +2 -2
  316. package/lib/duet/{p-7456c30b.system.entry.js → p-0094ced9.system.entry.js} +2 -2
  317. package/lib/duet/{p-091a5f13.system.entry.js → p-00d6ff94.system.entry.js} +1 -1
  318. package/lib/duet/p-01866a30.entry.js +4 -0
  319. package/lib/duet/{p-9ac83cce.system.entry.js → p-021f11c6.system.entry.js} +1 -1
  320. package/lib/duet/{p-079f9e29.entry.js → p-07e37dc1.entry.js} +1 -1
  321. package/lib/duet/{p-af70b228.system.entry.js → p-0b5e025a.system.entry.js} +1 -1
  322. package/lib/duet/{p-0c9851a1.entry.js → p-10ad52f7.entry.js} +1 -1
  323. package/lib/duet/{p-e9246c27.system.entry.js → p-13b0b22a.system.entry.js} +1 -1
  324. package/lib/duet/{p-b51e2eee.system.entry.js → p-13b3ed39.system.entry.js} +1 -1
  325. package/lib/duet/{p-c1d59f6d.entry.js → p-13b65b53.entry.js} +1 -1
  326. package/lib/duet/{p-cf4ce1f7.entry.js → p-14d66f8d.entry.js} +1 -1
  327. package/lib/duet/{p-e9f172ff.entry.js → p-15695a8a.entry.js} +1 -1
  328. package/lib/duet/p-1787fcf6.entry.js +4 -0
  329. package/lib/duet/{p-b98222bd.system.entry.js → p-18335d08.system.entry.js} +1 -1
  330. package/lib/duet/{p-cd30e156.system.entry.js → p-1a04fb37.system.entry.js} +1 -1
  331. package/lib/duet/{p-ab6f31bd.js → p-1c87928d.js} +1 -1
  332. package/lib/duet/{p-30e9baf8.system.js → p-1ef8d7b8.system.js} +1 -1
  333. package/lib/duet/{p-9050c043.entry.js → p-224c8856.entry.js} +1 -1
  334. package/lib/duet/{p-ea2463be.entry.js → p-22d3f1d3.entry.js} +1 -1
  335. package/lib/duet/{p-672c2725.system.entry.js → p-23d08e5a.system.entry.js} +1 -1
  336. package/lib/duet/{p-618bf010.entry.js → p-2514de10.entry.js} +1 -1
  337. package/lib/duet/{p-4d5f2668.system.entry.js → p-25413f44.system.entry.js} +1 -1
  338. package/lib/duet/{p-626be65a.system.entry.js → p-257310a0.system.entry.js} +1 -1
  339. package/lib/duet/{p-b69bc1e1.system.entry.js → p-264a86f2.system.entry.js} +1 -1
  340. package/lib/duet/{p-91967747.entry.js → p-27f2b20a.entry.js} +1 -1
  341. package/lib/duet/{p-38b0ae95.system.entry.js → p-28177fca.system.entry.js} +1 -1
  342. package/lib/duet/{p-d84bf562.system.entry.js → p-29c02e96.system.entry.js} +2 -2
  343. package/lib/duet/{p-8e94ee62.system.entry.js → p-2a38085c.system.entry.js} +1 -1
  344. package/lib/duet/{p-c6f946fe.entry.js → p-2ad210fa.entry.js} +1 -1
  345. package/lib/duet/p-2bd88784.system.entry.js +4 -0
  346. package/lib/duet/{p-17a92a57.entry.js → p-2e1b1a11.entry.js} +1 -1
  347. package/lib/duet/{p-b79fe3aa.entry.js → p-308b5569.entry.js} +1 -1
  348. package/lib/duet/{p-454ce0a7.system.entry.js → p-351da421.system.entry.js} +1 -1
  349. package/lib/duet/{p-72d24fa8.system.entry.js → p-35b04619.system.entry.js} +1 -1
  350. package/lib/duet/{p-5ae54542.entry.js → p-35ce3a56.entry.js} +1 -1
  351. package/lib/duet/{p-ccf771f5.entry.js → p-35dc94c1.entry.js} +1 -1
  352. package/lib/duet/{p-5bd68f1e.entry.js → p-35f1b130.entry.js} +1 -1
  353. package/lib/duet/{p-6586fb03.js → p-365388f0.js} +1 -1
  354. package/lib/duet/{p-2e8c2654.system.entry.js → p-375d3aca.system.entry.js} +1 -1
  355. package/lib/duet/p-37d1aa40.entry.js +4 -0
  356. package/lib/duet/{p-f0443463.system.entry.js → p-3d74cf08.system.entry.js} +1 -1
  357. package/lib/duet/{p-821e7df8.system.entry.js → p-3df2ac28.system.entry.js} +1 -1
  358. package/lib/duet/{p-e7f2c310.js → p-3e56dd95.js} +1 -1
  359. package/lib/duet/{p-efa9f8e3.entry.js → p-41a27bcd.entry.js} +1 -1
  360. package/lib/duet/{p-63f0c13f.entry.js → p-41f0c04a.entry.js} +1 -1
  361. package/lib/duet/{p-f082acbe.system.entry.js → p-42c69580.system.entry.js} +1 -1
  362. package/lib/duet/{p-feb2f78b.entry.js → p-43ef68ba.entry.js} +1 -1
  363. package/lib/duet/{p-94283cba.system.entry.js → p-44c403ac.system.entry.js} +1 -1
  364. package/lib/duet/p-451455ca.system.entry.js +4 -0
  365. package/lib/duet/{p-d4a56ffe.system.entry.js → p-452833b3.system.entry.js} +1 -1
  366. package/lib/duet/{p-9ad418dc.entry.js → p-465862f2.entry.js} +1 -1
  367. package/lib/duet/{p-bce0fb51.system.entry.js → p-4d37b916.system.entry.js} +1 -1
  368. package/lib/duet/{p-1a05b9bb.entry.js → p-4d9f9fdb.entry.js} +1 -1
  369. package/lib/duet/{p-25c77fc5.system.js → p-51054013.system.js} +1 -1
  370. package/lib/duet/p-52252725.entry.js +4 -0
  371. package/lib/duet/{p-33b69886.system.entry.js → p-530b6cc2.system.entry.js} +1 -1
  372. package/lib/duet/{p-b2e5c45c.system.entry.js → p-56521b98.system.entry.js} +1 -1
  373. package/lib/duet/{p-e6364b25.entry.js → p-5773ee91.entry.js} +1 -1
  374. package/lib/duet/{p-f829fc48.entry.js → p-59322124.entry.js} +1 -1
  375. package/lib/duet/p-5be299a4.system.entry.js +4 -0
  376. package/lib/duet/{p-4304cb65.system.entry.js → p-5c89cfdb.system.entry.js} +1 -1
  377. package/lib/duet/{p-f3bf0f9b.system.entry.js → p-5e4ea777.system.entry.js} +1 -1
  378. package/lib/duet/{p-c5746dd0.system.js → p-5f5f29a5.system.js} +1 -1
  379. package/lib/duet/p-63b19495.entry.js +4 -0
  380. package/lib/duet/p-66aba5e8.entry.js +4 -0
  381. package/lib/duet/{p-9629f198.entry.js → p-6a864de0.entry.js} +1 -1
  382. package/lib/duet/{p-bf8b75d0.system.entry.js → p-6b5f51f7.system.entry.js} +2 -2
  383. package/lib/duet/{p-582c6653.entry.js → p-6cdc9618.entry.js} +1 -1
  384. package/lib/duet/{p-dc5c5cc4.system.js → p-6d6da8d4.system.js} +1 -1
  385. package/lib/duet/{p-973eb9ef.entry.js → p-6e29ea66.entry.js} +1 -1
  386. package/lib/duet/{p-ad8efcc9.system.entry.js → p-6feb3768.system.entry.js} +1 -1
  387. package/lib/duet/{p-f263a147.entry.js → p-73acfb63.entry.js} +1 -1
  388. package/lib/duet/{p-8158f08f.entry.js → p-76f217d8.entry.js} +1 -1
  389. package/lib/duet/{p-ff664cb1.entry.js → p-77cb106a.entry.js} +1 -1
  390. package/lib/duet/{p-a45b41a5.system.js → p-7a0fcd46.system.js} +1 -1
  391. package/lib/duet/{p-2d3f0a48.entry.js → p-7ca89aeb.entry.js} +1 -1
  392. package/lib/duet/{p-7eb1ccc1.system.js → p-7d7bb04d.system.js} +1 -1
  393. package/lib/duet/{p-53a79c8c.system.entry.js → p-7de4ac42.system.entry.js} +1 -1
  394. package/lib/duet/{p-fc406422.system.entry.js → p-7e21da73.system.entry.js} +2 -2
  395. package/lib/duet/{p-539b8b9b.system.entry.js → p-8220db21.system.entry.js} +1 -1
  396. package/lib/duet/{p-068cf24e.system.entry.js → p-83a399bf.system.entry.js} +1 -1
  397. package/lib/duet/{p-d468472d.entry.js → p-846ef8b1.entry.js} +1 -1
  398. package/lib/duet/{p-ce59f561.entry.js → p-852f0847.entry.js} +1 -1
  399. package/lib/duet/{p-25390477.entry.js → p-8583c6b9.entry.js} +1 -1
  400. package/lib/duet/{p-f6795cc3.entry.js → p-87f7c9bc.entry.js} +1 -1
  401. package/lib/duet/{p-2665d9ca.system.entry.js → p-8894e5a7.system.entry.js} +1 -1
  402. package/lib/duet/{p-ccc9e30f.system.entry.js → p-89367601.system.entry.js} +1 -1
  403. package/lib/duet/{p-9220b2f7.system.entry.js → p-8a0e329d.system.entry.js} +1 -1
  404. package/lib/duet/{p-8db4323f.system.entry.js → p-8a313958.system.entry.js} +1 -1
  405. package/lib/duet/p-8d6462de.entry.js +4 -0
  406. package/lib/duet/{p-503b1f9c.system.entry.js → p-9069a1f3.system.entry.js} +1 -1
  407. package/lib/duet/{p-f9f8cc8b.system.entry.js → p-91cb87ba.system.entry.js} +1 -1
  408. package/lib/duet/p-929c8b3d.system.js +4 -0
  409. package/lib/duet/{p-ad9a28ce.system.entry.js → p-9341c743.system.entry.js} +1 -1
  410. package/lib/duet/{p-af614927.entry.js → p-956d80fb.entry.js} +1 -1
  411. package/lib/duet/{p-64b767a1.system.entry.js → p-957a0c56.system.entry.js} +1 -1
  412. package/lib/duet/{p-b948418d.system.entry.js → p-977e2130.system.entry.js} +1 -1
  413. package/lib/duet/{p-761a7665.system.entry.js → p-987e6aa0.system.entry.js} +1 -1
  414. package/lib/duet/{p-73251b4a.system.entry.js → p-990588e1.system.entry.js} +1 -1
  415. package/lib/duet/{p-cd7e44b4.entry.js → p-9971a65e.entry.js} +1 -1
  416. package/lib/duet/p-9cb29a55.js +4 -0
  417. package/lib/duet/{p-3e580d39.system.entry.js → p-a0dc1f6d.system.entry.js} +1 -1
  418. package/lib/duet/{p-0bb7e6db.system.entry.js → p-a274696d.system.entry.js} +1 -1
  419. package/lib/duet/{p-9f887a8b.system.entry.js → p-a383d286.system.entry.js} +1 -1
  420. package/lib/duet/{p-91e74580.entry.js → p-a3bec159.entry.js} +1 -1
  421. package/lib/duet/{p-959d0b38.entry.js → p-a46066aa.entry.js} +1 -1
  422. package/lib/duet/{p-08b0bbbb.entry.js → p-a53450ca.entry.js} +1 -1
  423. package/lib/duet/{p-7aa134f8.system.entry.js → p-a76b263a.system.entry.js} +1 -1
  424. package/lib/duet/{p-558ea33c.system.entry.js → p-a958020f.system.entry.js} +1 -1
  425. package/lib/duet/{p-b3512b93.entry.js → p-a95b8264.entry.js} +1 -1
  426. package/lib/duet/{p-b89a059e.system.entry.js → p-ac9518a7.system.entry.js} +1 -1
  427. package/lib/duet/{p-4c513203.entry.js → p-b0be95a6.entry.js} +1 -1
  428. package/lib/duet/{p-df2bdfe3.system.entry.js → p-b130d257.system.entry.js} +1 -1
  429. package/lib/duet/{p-72e2c5ff.system.entry.js → p-b21e6519.system.entry.js} +1 -1
  430. package/lib/duet/{p-b4d15993.system.entry.js → p-b2326ad6.system.entry.js} +1 -1
  431. package/lib/duet/{p-ef266490.system.entry.js → p-b4567c69.system.entry.js} +1 -1
  432. package/lib/duet/{p-f0017b76.system.entry.js → p-b8b541cd.system.entry.js} +1 -1
  433. package/lib/duet/{p-8a709b0d.system.entry.js → p-b90cebca.system.entry.js} +1 -1
  434. package/lib/duet/p-ba1ab5f9.js +4 -0
  435. package/lib/duet/{p-86c7b940.entry.js → p-c2fcc299.entry.js} +1 -1
  436. package/lib/duet/{p-7c665c7b.system.entry.js → p-c3ea56be.system.entry.js} +2 -2
  437. package/lib/duet/{p-b081da29.system.entry.js → p-c5469ea2.system.entry.js} +1 -1
  438. package/lib/duet/{p-3c427358.entry.js → p-c650f822.entry.js} +1 -1
  439. package/lib/duet/{p-7a111f40.entry.js → p-c8af869d.entry.js} +1 -1
  440. package/lib/duet/{p-9ff81f9a.entry.js → p-ca56b16f.entry.js} +1 -1
  441. package/lib/duet/{p-cccc8a6c.entry.js → p-ca6732cb.entry.js} +1 -1
  442. package/lib/duet/{p-567227f2.system.entry.js → p-cad6ed3b.system.entry.js} +1 -1
  443. package/lib/duet/{p-9828d01b.entry.js → p-cb4f47d1.entry.js} +1 -1
  444. package/lib/duet/{p-bd74bd69.entry.js → p-cc12c946.entry.js} +1 -1
  445. package/lib/duet/{p-e511bbaa.entry.js → p-cd26c6c0.entry.js} +1 -1
  446. package/lib/duet/{p-b8faf306.system.entry.js → p-cd663c85.system.entry.js} +1 -1
  447. package/lib/duet/{p-c558abb2.system.entry.js → p-cdff6669.system.entry.js} +1 -1
  448. package/lib/duet/{p-a120b25b.entry.js → p-d02ea48b.entry.js} +1 -1
  449. package/lib/duet/{p-217328d7.system.entry.js → p-d1c5c251.system.entry.js} +1 -1
  450. package/lib/duet/{p-6647e622.js → p-d4db67a4.js} +1 -1
  451. package/lib/duet/{p-02380a84.entry.js → p-d566253b.entry.js} +1 -1
  452. package/lib/duet/{p-a84ae2da.entry.js → p-d630a0af.entry.js} +1 -1
  453. package/lib/duet/{p-2993a8c3.entry.js → p-d65bbecf.entry.js} +1 -1
  454. package/lib/duet/{p-2247d351.system.entry.js → p-d7b3bd9e.system.entry.js} +1 -1
  455. package/lib/duet/{p-4f198ebe.entry.js → p-d7d732e5.entry.js} +1 -1
  456. package/lib/duet/{p-5727dc58.entry.js → p-da81e72a.entry.js} +1 -1
  457. package/lib/duet/p-db444ca2.entry.js +4 -0
  458. package/lib/duet/{p-9ea6b9ea.entry.js → p-dd03e6da.entry.js} +1 -1
  459. package/lib/duet/{p-d81cefba.entry.js → p-deb4416d.entry.js} +1 -1
  460. package/lib/duet/{p-12a7249e.entry.js → p-e0a47a33.entry.js} +1 -1
  461. package/lib/duet/{p-e04146a1.entry.js → p-e19ad158.entry.js} +1 -1
  462. package/lib/duet/{p-54e46011.entry.js → p-e36ca835.entry.js} +1 -1
  463. package/lib/duet/{p-2e96eecc.entry.js → p-e4c02878.entry.js} +1 -1
  464. package/lib/duet/{p-98ea8c33.entry.js → p-e58f9bd2.entry.js} +1 -1
  465. package/lib/duet/{p-e2bafc44.entry.js → p-e5c6ee3d.entry.js} +1 -1
  466. package/lib/duet/{p-1057521d.entry.js → p-e7873f38.entry.js} +1 -1
  467. package/lib/duet/{p-f06b4e50.system.entry.js → p-e8974e61.system.entry.js} +1 -1
  468. package/lib/duet/{p-6f86fd58.system.entry.js → p-e8b4895b.system.entry.js} +1 -1
  469. package/lib/duet/{p-3f4b8a20.entry.js → p-e99b9a59.entry.js} +1 -1
  470. package/lib/duet/{p-f98d46b5.system.entry.js → p-ec97ec3f.system.entry.js} +1 -1
  471. package/lib/duet/{p-a7873d11.entry.js → p-ec9ce83a.entry.js} +1 -1
  472. package/lib/duet/p-ef06b281.entry.js +4 -0
  473. package/lib/duet/{p-f55a55e1.system.entry.js → p-ef3be375.system.entry.js} +1 -1
  474. package/lib/duet/{p-c7cbe815.system.entry.js → p-ef77b290.system.entry.js} +1 -1
  475. package/lib/duet/{p-c01383c1.entry.js → p-f03a1d74.entry.js} +1 -1
  476. package/lib/duet/p-f2789a61.entry.js +4 -0
  477. package/lib/duet/{p-8845de2e.system.entry.js → p-f2ada1c4.system.entry.js} +1 -1
  478. package/lib/duet/{p-16038e7f.system.entry.js → p-f42f420c.system.entry.js} +1 -1
  479. package/lib/duet/{p-04422a4f.entry.js → p-f5369d88.entry.js} +1 -1
  480. package/lib/duet/{p-ee4a44f2.system.entry.js → p-f55a996b.system.entry.js} +1 -1
  481. package/lib/duet/{p-d0aae845.system.entry.js → p-f8295455.system.entry.js} +1 -1
  482. package/lib/duet/{p-f805492f.entry.js → p-fad68076.entry.js} +1 -1
  483. package/lib/duet/p-fb6715c3.entry.js +4 -0
  484. package/lib/duet/{p-d6fa4e11.system.entry.js → p-fd78b4d5.system.entry.js} +1 -1
  485. package/lib/duet/{p-78c0a939.system.entry.js → p-fec136a9.system.entry.js} +2 -2
  486. package/lib/esm/{app-globals-154dbc04.js → app-globals-8a91dfa2.js} +1 -1
  487. package/lib/esm/duet-action-button.entry.js +2 -2
  488. package/lib/esm/duet-alert.entry.js +3 -3
  489. package/lib/esm/duet-badge.entry.js +1 -1
  490. package/lib/esm/duet-banner.entry.js +2 -2
  491. package/lib/esm/duet-breadcrumb.entry.js +2 -2
  492. package/lib/esm/duet-breadcrumbs.entry.js +2 -2
  493. package/lib/esm/duet-button_2.entry.js +48 -38
  494. package/lib/esm/duet-callout.entry.js +2 -2
  495. package/lib/esm/duet-caption_4.entry.js +17 -8
  496. package/lib/esm/duet-card.entry.js +1 -1
  497. package/lib/esm/duet-checkbox.entry.js +1 -1
  498. package/lib/esm/duet-checkmark.entry.js +1 -1
  499. package/lib/esm/duet-chip_3.entry.js +8 -13
  500. package/lib/esm/duet-choice_2.entry.js +3 -3
  501. package/lib/esm/duet-collapsible.entry.js +6 -5
  502. package/lib/esm/duet-combobox.entry.js +3 -3
  503. package/lib/esm/duet-contact-card.entry.js +2 -2
  504. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  505. package/lib/esm/duet-date-picker.entry.js +6 -6
  506. package/lib/esm/duet-divider_2.entry.js +1 -1
  507. package/lib/esm/duet-editable-table_3.entry.js +5 -5
  508. package/lib/esm/duet-empty-state.entry.js +1 -1
  509. package/lib/esm/duet-fieldset.entry.js +2 -2
  510. package/lib/esm/duet-file-chooser.entry.js +1 -1
  511. package/lib/esm/duet-footer.entry.js +3 -3
  512. package/lib/esm/duet-grid_2.entry.js +1 -1
  513. package/lib/esm/duet-header_2.entry.js +2 -2
  514. package/lib/esm/duet-hero.entry.js +3 -3
  515. package/lib/esm/duet-icon.entry.js +1 -1
  516. package/lib/esm/duet-input_2.entry.js +3 -3
  517. package/lib/esm/duet-layout.entry.js +2 -2
  518. package/lib/esm/duet-list_2.entry.js +1 -1
  519. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  520. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  521. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  522. package/lib/esm/duet-menu-bar-item.entry.js +2 -2
  523. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  524. package/lib/esm/duet-menu-bar.entry.js +2 -2
  525. package/lib/esm/duet-modal.entry.js +4 -4
  526. package/lib/esm/duet-multiselect.entry.js +3 -3
  527. package/lib/esm/duet-nav.entry.js +1 -1
  528. package/lib/esm/duet-notification_2.entry.js +3 -3
  529. package/lib/esm/duet-number-input.entry.js +12 -6
  530. package/lib/esm/duet-overlay.entry.js +1 -1
  531. package/lib/esm/duet-page-heading.entry.js +15 -4
  532. package/lib/esm/duet-pagination_2.entry.js +2 -2
  533. package/lib/esm/duet-progress.entry.js +2 -2
  534. package/lib/esm/duet-promo-card.entry.js +4 -4
  535. package/lib/esm/duet-radio_2.entry.js +2 -2
  536. package/lib/esm/duet-range-slider.entry.js +1 -1
  537. package/lib/esm/duet-scrollable_3.entry.js +8 -8
  538. package/lib/esm/duet-section-layout.entry.js +4 -4
  539. package/lib/esm/duet-select.entry.js +2 -2
  540. package/lib/esm/duet-shaped-image.entry.js +3 -3
  541. package/lib/esm/duet-show-more.entry.js +2 -2
  542. package/lib/esm/duet-slideout-lang.entry.js +3 -3
  543. package/lib/esm/duet-slideout-link.entry.js +3 -3
  544. package/lib/esm/duet-slideout-panel-dropdown.entry.js +5 -5
  545. package/lib/esm/duet-slideout-panel.entry.js +10 -10
  546. package/lib/esm/duet-slideout.entry.js +4 -4
  547. package/lib/esm/duet-step_2.entry.js +1 -1
  548. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +3 -3
  549. package/lib/esm/duet-submenu-bar-dropdown.entry.js +5 -5
  550. package/lib/esm/duet-submenu-bar-item.entry.js +3 -3
  551. package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
  552. package/lib/esm/duet-submenu-bar.entry.js +6 -6
  553. package/lib/esm/duet-textarea.entry.js +3 -3
  554. package/lib/esm/duet-toggle.entry.js +1 -1
  555. package/lib/esm/duet-toolbar-dropdown-link.entry.js +3 -3
  556. package/lib/esm/duet-toolbar-dropdown.entry.js +5 -5
  557. package/lib/esm/duet-toolbar-item.entry.js +5 -5
  558. package/lib/esm/duet-toolbar-link.entry.js +3 -3
  559. package/lib/esm/duet-toolbar.entry.js +3 -3
  560. package/lib/esm/duet-tooltip-button_2.entry.js +9 -7
  561. package/lib/esm/duet-tooltip.entry.js +4 -3
  562. package/lib/esm/duet-tray.entry.js +4 -4
  563. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  564. package/lib/esm/duet-upload-item.entry.js +3 -3
  565. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  566. package/lib/esm/duet.js +4 -4
  567. package/lib/esm/{errorcodes.utils-55018fd0.js → errorcodes.utils-8340df32.js} +1 -1
  568. package/lib/esm/{focus-utils-29c235cb.js → focus-utils-82b4ada4.js} +1 -1
  569. package/lib/esm/{index-f5d67bb6.js → index-6a453dd4.js} +1 -1
  570. package/lib/esm/{language-utils-bd643c5c.js → language-utils-0506f7de.js} +1 -1
  571. package/lib/esm/loader.js +4 -4
  572. package/lib/esm/{slot-utils-5369c9ff.js → slot-utils-d6bf0119.js} +1 -1
  573. package/lib/esm-es5/{app-globals-154dbc04.js → app-globals-8a91dfa2.js} +1 -1
  574. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  575. package/lib/esm-es5/duet-alert.entry.js +1 -1
  576. package/lib/esm-es5/duet-badge.entry.js +1 -1
  577. package/lib/esm-es5/duet-banner.entry.js +1 -1
  578. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  579. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  580. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  581. package/lib/esm-es5/duet-callout.entry.js +1 -1
  582. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  583. package/lib/esm-es5/duet-card.entry.js +1 -1
  584. package/lib/esm-es5/duet-checkbox.entry.js +2 -2
  585. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  586. package/lib/esm-es5/duet-chip_3.entry.js +1 -1
  587. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  588. package/lib/esm-es5/duet-collapsible.entry.js +2 -2
  589. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  590. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  591. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  592. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  593. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  594. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  595. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  596. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  597. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  598. package/lib/esm-es5/duet-footer.entry.js +1 -1
  599. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  600. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  601. package/lib/esm-es5/duet-hero.entry.js +2 -2
  602. package/lib/esm-es5/duet-icon.entry.js +1 -1
  603. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  604. package/lib/esm-es5/duet-layout.entry.js +1 -1
  605. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  606. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  607. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  608. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  609. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  610. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  611. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  612. package/lib/esm-es5/duet-modal.entry.js +1 -1
  613. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  614. package/lib/esm-es5/duet-nav.entry.js +1 -1
  615. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  616. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  617. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  618. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  619. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  620. package/lib/esm-es5/duet-progress.entry.js +1 -1
  621. package/lib/esm-es5/duet-promo-card.entry.js +2 -2
  622. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  623. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  624. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  625. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  626. package/lib/esm-es5/duet-select.entry.js +1 -1
  627. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  628. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  629. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  630. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  631. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  632. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  633. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  634. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  635. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  636. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  637. package/lib/esm-es5/duet-submenu-bar-item.entry.js +2 -2
  638. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  639. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  640. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  641. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  642. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  643. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  644. package/lib/esm-es5/duet-toolbar-item.entry.js +1 -1
  645. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  646. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  647. package/lib/esm-es5/duet-tooltip-button_2.entry.js +2 -2
  648. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  649. package/lib/esm-es5/duet-tray.entry.js +1 -1
  650. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  651. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  652. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  653. package/lib/esm-es5/duet.js +1 -1
  654. package/lib/esm-es5/{errorcodes.utils-55018fd0.js → errorcodes.utils-8340df32.js} +1 -1
  655. package/lib/esm-es5/{focus-utils-29c235cb.js → focus-utils-82b4ada4.js} +1 -1
  656. package/lib/esm-es5/{index-f5d67bb6.js → index-6a453dd4.js} +1 -1
  657. package/lib/esm-es5/{language-utils-bd643c5c.js → language-utils-0506f7de.js} +1 -1
  658. package/lib/esm-es5/loader.js +1 -1
  659. package/lib/esm-es5/{slot-utils-5369c9ff.js → slot-utils-d6bf0119.js} +1 -1
  660. package/lib/types/common-types.d.ts +1 -1
  661. package/lib/types/components/duet-button/duet-button.d.ts +6 -1
  662. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +4 -0
  663. package/lib/types/components/duet-link/duet-link.d.ts +1 -1
  664. package/lib/types/components/duet-page-heading/duet-page-heading.d.ts +12 -0
  665. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +0 -1
  666. package/lib/types/components/duet-tooltip/duet-tooltip-button.d.ts +1 -0
  667. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +4 -0
  668. package/lib/types/components.d.ts +42 -0
  669. package/package.json +4 -4
  670. package/lib/duet/p-37f9b3f3.entry.js +0 -4
  671. package/lib/duet/p-416c6bd2.entry.js +0 -4
  672. package/lib/duet/p-45085ca6.system.js +0 -4
  673. package/lib/duet/p-4b880bb3.entry.js +0 -4
  674. package/lib/duet/p-5fb91cf2.entry.js +0 -4
  675. package/lib/duet/p-742e42e3.entry.js +0 -4
  676. package/lib/duet/p-7c7c220c.entry.js +0 -4
  677. package/lib/duet/p-7e709290.entry.js +0 -4
  678. package/lib/duet/p-84ee5bc9.entry.js +0 -4
  679. package/lib/duet/p-888e855d.entry.js +0 -4
  680. package/lib/duet/p-8c628593.entry.js +0 -4
  681. package/lib/duet/p-aa908860.system.entry.js +0 -4
  682. package/lib/duet/p-b2c3d1b0.entry.js +0 -4
  683. package/lib/duet/p-bfa34b21.js +0 -4
  684. package/lib/duet/p-c249faed.system.entry.js +0 -4
  685. package/lib/duet/p-d75c8108.system.entry.js +0 -4
  686. package/lib/duet/p-fe85cfac.js +0 -4
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,i,o){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function a(e){try{n(o.next(e))}catch(e){s(e)}}function l(e){try{n(o["throw"](e))}catch(e){s(e)}}function n(e){e.done?i(e.value):r(e.value).then(a,l)}n((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,r,s,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return n([e,t])}}function n(l){if(o)throw new TypeError("Generator is already executing.");while(a&&(a=0,l[0]&&(i=0)),i)try{if(o=1,r&&(s=l[0]&2?r["return"]:l[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,l[1])).done)return s;if(r=0,s)l=[l[0]&2,s.value];switch(l[0]){case 0:case 1:s=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;r=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){i.label=l[1];break}if(l[0]===6&&i.label<s[1]){i.label=s[1];s=l;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(l);break}if(s[2])i.ops.pop();i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e];r=0}finally{o=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var o=0,r=t.length,s;o<r;o++){if(s||!(o in t)){if(!s)s=Array.prototype.slice.call(t,0,o);s[o]=t[o]}}return e.concat(s||Array.prototype.slice.call(t))};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-f5d67bb6.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{f as isEscapeKey,o as isTabKey,j as isEnterKey,d as isArrowLeftKey,b as isArrowUpKey,a as isArrowRightKey,c as isArrowDownKey}from"./keyboard-utils-439bcc8b.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-bd643c5c.js";import{c as checkNamedSlotElement}from"./slot-utils-5369c9ff.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";var duetMultiselectCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-multiselect-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){.duet-multiselect-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-multiselect-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-multiselect-container{position:relative;width:100%}.duet-multiselect-wrapper{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25}.duet-theme-turva .duet-multiselect-wrapper{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-multiselect{display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:8rem;padding:12px 14px !important;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:1.5;color:rgb(8, 42, 77);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-multiselect .duet-multiselect-label{overflow:hidden;text-overflow:ellipsis}.duet-multiselect:hover{border-color:rgb(127, 150, 165);box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-multiselect:hover{border-color:rgb(143, 147, 158);box-shadow:0 0 0 1px #747475}.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #e55039}.duet-multiselect:focus,.duet-multiselect.duet-multiselect-active{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-multiselect:focus,.duet-theme-turva .duet-multiselect.duet-multiselect-active{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error .duet-multiselect:focus,.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:focus,.duet-theme-turva.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #e55039}.duet-multiselect[disabled]{color:rgb(8, 42, 77) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva .duet-multiselect[disabled]{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-multiselect>:first-child{flex:1;min-height:24px}.duet-multiselect .duet-multiselect-badge{padding:4px 8px 4px;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.75rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);background:#d9ebf4;border-radius:20rem}.duet-theme-turva .duet-multiselect .duet-multiselect-badge{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-multiselect .duet-multiselect-icon{margin-left:12px}.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva .duet-multiselect{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(143, 147, 158)}.duet-multiselect svg{width:20px;height:20px;color:rgb(8, 42, 77);pointer-events:none}.duet-theme-turva .duet-multiselect svg{color:rgb(23, 28, 58)}.duet-multiselect svg.duet-multiselect-icon--rotate{transform:rotate(180deg)}.duet-multiselect-checkboxes{position:absolute;z-index:700;width:100%;padding:16px;margin:8px 0 0;visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}.duet-theme-turva .duet-multiselect-checkboxes{background:rgb(255, 255, 255);border-color:rgb(222, 224, 228);box-shadow:0 4px 10px 0 rgba(23, 28, 58, 0.15)}.duet-multiselect-checkboxes.duet-multiselect-checkboxes-active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons{padding:8px 0;margin:-16px;margin-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{padding:6px 16px;margin:-4px 0;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:600;color:rgb(0, 119, 179);cursor:pointer;border-radius:4px}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus,.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:first-child{border-right:1px solid rgb(212, 223, 229)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(198, 12, 48)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(23, 28, 58)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(8, 42, 77)}.duet-multiselect-checkboxes fieldset{margin-top:8px;margin-bottom:12px}.duet-multiselect-checkboxes fieldset+fieldset{margin-top:28px}.duet-multiselect-checkboxes legend{margin-bottom:12px;font-size:1rem;font-weight:600}.duet-multiselect-help{display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-multiselect-help span{display:block;margin-top:8px}.duet-theme-turva .duet-multiselect-help{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(143, 147, 158)}.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-label-hidden duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var DuetMultiselectStyle0=duetMultiselectCss;function toggleInArray(e,t){return e.includes(t)?e.filter((function(e){return e!==t})):__spreadArray(__spreadArray([],e,true),[t],false)}var DuetMultiselect=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.errorId=createID("DuetError");this.labelId=createID("DuetLabel");this.topCaptionId=createID("DuetCaptionTop");this.selectedLangObject={en:"selected",fi:"valittu",sv:"vald"};this.selectAllLabel={en:"Select all",fi:"Valitse kaikki",sv:"Välj alla"};this.clearAllLabel={en:"Clear all",fi:"Tyhjennä kaikki",sv:"Rensa alla"};this.placeholderLabel={en:"Hint",fi:"Vihje",sv:"Tips"};this.onChange=function(e){t.duetChange.emit({originalEvent:e,value:t.value,component:"duet-multiselect"})};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-multiselect"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-multiselect"})};this.onMultiselectKeyDown=function(e){if(isEscapeKey(e)||isTabKey(e)){if(t.checkboxesVisible){t.checkboxesVisible=false;t.multiselectElement.focus();e.preventDefault()}}};this.onMultiselectInputKeyDown=function(e){if(isEnterKey(e)){e.preventDefault();t.toggleCheckboxes();setTimeout((function(){if(t.checkboxesVisible){var e=t.element.shadowRoot.querySelector("#".concat(t.getOptionIdentifier(t.allControls?-2:0)));if(e){e.focus()}}}),200)}};this.onCheckboxKeyDown=function(e,i){var o;if(isArrowLeftKey(e)||isArrowUpKey(e)){o=t.element.shadowRoot.querySelector("#".concat(t.getOptionIdentifier(i-1)))}else if(isArrowRightKey(e)||isArrowDownKey(e)){o=t.element.shadowRoot.querySelector("#".concat(t.getOptionIdentifier(i+1)))}if(o){o.focus();e.preventDefault();t.activeDescendant=o.id}};this.toggleCheckboxes=function(){t.checkboxesVisible=!t.checkboxesVisible};this.toggleCheckbox=function(e,i){t.value=toggleInArray(t.value,i);t.onChange(e)};this.handleSelectAllClick=function(e){t.value=t.processedItems;t.onChange(e)};this.handleClearAllClick=function(e){t.value=[];t.onChange(e)};this.getOptionIdentifier=function(e){return"".concat(t.identifier,"-option-").concat(e)};this.getDescribedBy=function(){var e=[];if(t.isCaptionVisible&&t.topCaptionId){e.push(t.topCaptionId)}if(t.accessibleDescribedBy){e.push(t.accessibleDescribedBy)}if(t.error){e.push(t.errorId)}return e.length>0?e.join(" "):null};this.processedItems=[];this.processedGroups=[];this.checkboxesVisible=false;this.activeDescendant="";this.language=getLanguage();this.margin="auto";this.error="";this.accessibleLiveError="polite";this.expand=false;this.value=[];this.theme="";this.labelHidden=false;this.identifier=createID("DuetMultiselect");this.allControls=false;this.placeholder="";this.caption=undefined;this.items=undefined;this.disabled=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.accessibleDescribedBy=undefined;this.tooltip="";this.tooltipDirection="auto"}e.prototype.handleFocus=function(e){var t=this;var i=e.composedPath().every((function(e){return e!==t.element}));if(i){this.checkboxesVisible=false}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.isCaptionVisible=!!this.caption;checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true);this.refresh()};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.multiselectElement){this.multiselectElement.focus(e)}return[2]}))}))};e.prototype.selectWithValues=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){t=this.processedItems.filter((function(t){return e.includes(t.value)}));this.value=Array.from(new Set(__spreadArray(__spreadArray([],this.value,true),t,true)));return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(i){e=parsePossibleJSON(this.items);this.processedItems=[];this.processedGroups=[];if(!e||e.length===0){return[2]}if(e[0].items!==undefined){this.processedGroups=e}else{this.processedGroups=[{label:"",items:e}]}this.processedGroups.forEach((function(e){return e.items.forEach((function(e){return t.processedItems.push(e)}))}));return[2]}))}))};e.prototype.render=function(){var e=this;var t;return h(Host,{key:"d88436c71fa360266440b8574bb2d35536cc65bd",class:{"duet-m-0":this.margin==="none","duet-expand":this.expand}},h("div",{key:"212b648e8147fb2e58294009eb8aef03556f8684",class:{"duet-multiselect-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva","duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error},onKeyDown:function(t){return e.onMultiselectKeyDown(t)}},h("duet-label",{key:"9d4bec69691f6adc615c9366e86abf5f59fc39a6",theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:this.identifier},this.label),this.tooltip&&h("duet-tooltip",{key:"3ba3a824ae8535ecafbfc73d0477da38e8146867",class:"duet-multiselect-tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),h("slot",{key:"c8fccccab9473eeb7d81b2b947b6732f6fe31111",name:"tooltip"}),this.caption&&h("duet-caption",{key:"7ccb8a12ae76b75762161f444d3a058be2d35b84",id:this.topCaptionId,size:"medium"},this.caption),h("div",{key:"1c61620d8dfeec8fdc4448028951b9a1a4a9968e",class:"duet-multiselect-wrapper"},h("button",{key:"3f2902a54d79a81144128cae9b62641ce234802a",id:this.identifier,ref:function(t){return e.multiselectElement=t},class:{"duet-multiselect":true,"duet-multiselect-active":this.checkboxesVisible},tabindex:"0",onClick:function(){return e.toggleCheckboxes()},onFocus:function(t){return e.onFocus(t)},onBlur:function(t){return e.onBlur(t)},role:"combobox","aria-expanded":this.checkboxesVisible?"true":"false","aria-haspopup":"listbox","aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-owns":"".concat(this.identifier,"-checkboxes"),onKeyDown:function(t){return e.onMultiselectInputKeyDown(t)},disabled:this.disabled},h("span",{key:"04aec38aa6af20357b28bee3373c830bd34c0580",role:"textbox","aria-readonly":"true","aria-multiline":"false","aria-autocomplete":"none","aria-controls":"".concat(this.identifier,"-checkboxes"),"aria-label":this.placeholderLabel[this.language],class:"duet-multiselect-label"},this.placeholder),this.value&&this.value.length>0&&h("span",{key:"3dfe64b81ce62342b83ec4ea44bc1a1ec7544355",class:"duet-multiselect-badge"},this.value.length,h("duet-visually-hidden",{key:"1dbd858425faeae0a323b3313913feec214549cd"},this.selectedLangObject[this.language],", ",this.value.map((function(e){return e.label})).join(", "))),h("svg",{key:"40b599d5cfa8362c2edeb63aa59c9be3cecf3e80",class:{"duet-multiselect-icon":true,"duet-multiselect-icon--rotate":this.checkboxesVisible},fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},h("path",{key:"6c28e4b2bb0c486a8698fa0615fff12df29e157a",d:"m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z"}))),h("div",{key:"6ea881d05fcbdeb899a1eb41b84f8b9653446eb4",id:"".concat(this.identifier,"-checkboxes"),role:"listbox",class:{"duet-multiselect-checkboxes":true,"duet-multiselect-checkboxes-active":this.checkboxesVisible},"aria-activedescendant":this.activeDescendant,"aria-multiselectable":"true"},((t=this.processedItems)===null||t===void 0?void 0:t.length)&&this.allControls&&h("div",{key:"63392964c348477e8b375b96084d4c4cbbf2143a",class:"duet-multiselect-all-control-buttons"},h("button",{key:"b7e0f951cd805058fc5ba9376ada31d42dcceb8e",class:"duet-multiselect-select-all",onClick:this.handleSelectAllClick,id:this.getOptionIdentifier(-2),onKeyDown:function(t){return e.onCheckboxKeyDown(t,-2)}},this.selectAllLabel[this.language]),h("button",{key:"a8d826e0afeaf86fbcaa2289f41ffeca9cd04b43",class:"duet-multiselect-clear-all",onClick:this.handleClearAllClick,id:this.getOptionIdentifier(-1),onKeyDown:function(t){return e.onCheckboxKeyDown(t,-1)}},this.clearAllLabel[this.language])),this.processedItems&&this.processedGroups.map((function(t){return h("fieldset",null,t.label&&h("legend",null,t.label),t.items.map((function(t,i){var o,r;return h("duet-checkbox",{identifier:e.getOptionIdentifier(i),role:"option",label:t.label,value:t.value,key:t.value,checked:(o=e.value)===null||o===void 0?void 0:o.includes(t),"accessible-selected":((r=e.value)===null||r===void 0?void 0:r.includes(t))?"true":undefined,disabled:!e.checkboxesVisible||t.disabled,onDuetChange:function(i){return e.toggleCheckbox(i,t)},onKeyDown:function(t){return e.onCheckboxKeyDown(t,i)},theme:e.theme})})))})))),h("span",{key:"78597a6d044e0186dcb06a22bdb897884e24739e",class:"duet-multiselect-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&h("span",{key:"6b33900eb2e81a104b8370a520aaf378d18155cf"},this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{items:["refresh"]}},enumerable:false,configurable:true});return e}();DuetMultiselect.style=DuetMultiselectStyle0;export{DuetMultiselect as duet_multiselect};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-6a453dd4.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{f as isEscapeKey,o as isTabKey,j as isEnterKey,d as isArrowLeftKey,b as isArrowUpKey,a as isArrowRightKey,c as isArrowDownKey}from"./keyboard-utils-439bcc8b.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-0506f7de.js";import{c as checkNamedSlotElement}from"./slot-utils-d6bf0119.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";var duetMultiselectCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-multiselect-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){.duet-multiselect-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-multiselect-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-multiselect-container{position:relative;width:100%}.duet-multiselect-wrapper{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25}.duet-theme-turva .duet-multiselect-wrapper{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-multiselect{display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:8rem;padding:12px 14px !important;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:1.5;color:rgb(8, 42, 77);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-multiselect .duet-multiselect-label{overflow:hidden;text-overflow:ellipsis}.duet-multiselect:hover{border-color:rgb(127, 150, 165);box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-multiselect:hover{border-color:rgb(143, 147, 158);box-shadow:0 0 0 1px #747475}.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #e55039}.duet-multiselect:focus,.duet-multiselect.duet-multiselect-active{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-multiselect:focus,.duet-theme-turva .duet-multiselect.duet-multiselect-active{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error .duet-multiselect:focus,.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:focus,.duet-theme-turva.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #e55039}.duet-multiselect[disabled]{color:rgb(8, 42, 77) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva .duet-multiselect[disabled]{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-multiselect>:first-child{flex:1;min-height:24px}.duet-multiselect .duet-multiselect-badge{padding:4px 8px 4px;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.75rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);background:#d9ebf4;border-radius:20rem}.duet-theme-turva .duet-multiselect .duet-multiselect-badge{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-multiselect .duet-multiselect-icon{margin-left:12px}.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva .duet-multiselect{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(143, 147, 158)}.duet-multiselect svg{width:20px;height:20px;color:rgb(8, 42, 77);pointer-events:none}.duet-theme-turva .duet-multiselect svg{color:rgb(23, 28, 58)}.duet-multiselect svg.duet-multiselect-icon--rotate{transform:rotate(180deg)}.duet-multiselect-checkboxes{position:absolute;z-index:700;width:100%;padding:16px;margin:8px 0 0;visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}.duet-theme-turva .duet-multiselect-checkboxes{background:rgb(255, 255, 255);border-color:rgb(222, 224, 228);box-shadow:0 4px 10px 0 rgba(23, 28, 58, 0.15)}.duet-multiselect-checkboxes.duet-multiselect-checkboxes-active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons{padding:8px 0;margin:-16px;margin-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{padding:6px 16px;margin:-4px 0;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:600;color:rgb(0, 119, 179);cursor:pointer;border-radius:4px}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus,.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:first-child{border-right:1px solid rgb(212, 223, 229)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(198, 12, 48)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(23, 28, 58)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(8, 42, 77)}.duet-multiselect-checkboxes fieldset{margin-top:8px;margin-bottom:12px}.duet-multiselect-checkboxes fieldset+fieldset{margin-top:28px}.duet-multiselect-checkboxes legend{margin-bottom:12px;font-size:1rem;font-weight:600}.duet-multiselect-help{display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-multiselect-help span{display:block;margin-top:8px}.duet-theme-turva .duet-multiselect-help{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(143, 147, 158)}.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-label-hidden duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var DuetMultiselectStyle0=duetMultiselectCss;function toggleInArray(e,t){return e.includes(t)?e.filter((function(e){return e!==t})):__spreadArray(__spreadArray([],e,true),[t],false)}var DuetMultiselect=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.errorId=createID("DuetError");this.labelId=createID("DuetLabel");this.topCaptionId=createID("DuetCaptionTop");this.selectedLangObject={en:"selected",fi:"valittu",sv:"vald"};this.selectAllLabel={en:"Select all",fi:"Valitse kaikki",sv:"Välj alla"};this.clearAllLabel={en:"Clear all",fi:"Tyhjennä kaikki",sv:"Rensa alla"};this.placeholderLabel={en:"Hint",fi:"Vihje",sv:"Tips"};this.onChange=function(e){t.duetChange.emit({originalEvent:e,value:t.value,component:"duet-multiselect"})};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-multiselect"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-multiselect"})};this.onMultiselectKeyDown=function(e){if(isEscapeKey(e)||isTabKey(e)){if(t.checkboxesVisible){t.checkboxesVisible=false;t.multiselectElement.focus();e.preventDefault()}}};this.onMultiselectInputKeyDown=function(e){if(isEnterKey(e)){e.preventDefault();t.toggleCheckboxes();setTimeout((function(){if(t.checkboxesVisible){var e=t.element.shadowRoot.querySelector("#".concat(t.getOptionIdentifier(t.allControls?-2:0)));if(e){e.focus()}}}),200)}};this.onCheckboxKeyDown=function(e,i){var o;if(isArrowLeftKey(e)||isArrowUpKey(e)){o=t.element.shadowRoot.querySelector("#".concat(t.getOptionIdentifier(i-1)))}else if(isArrowRightKey(e)||isArrowDownKey(e)){o=t.element.shadowRoot.querySelector("#".concat(t.getOptionIdentifier(i+1)))}if(o){o.focus();e.preventDefault();t.activeDescendant=o.id}};this.toggleCheckboxes=function(){t.checkboxesVisible=!t.checkboxesVisible};this.toggleCheckbox=function(e,i){t.value=toggleInArray(t.value,i);t.onChange(e)};this.handleSelectAllClick=function(e){t.value=t.processedItems;t.onChange(e)};this.handleClearAllClick=function(e){t.value=[];t.onChange(e)};this.getOptionIdentifier=function(e){return"".concat(t.identifier,"-option-").concat(e)};this.getDescribedBy=function(){var e=[];if(t.isCaptionVisible&&t.topCaptionId){e.push(t.topCaptionId)}if(t.accessibleDescribedBy){e.push(t.accessibleDescribedBy)}if(t.error){e.push(t.errorId)}return e.length>0?e.join(" "):null};this.processedItems=[];this.processedGroups=[];this.checkboxesVisible=false;this.activeDescendant="";this.language=getLanguage();this.margin="auto";this.error="";this.accessibleLiveError="polite";this.expand=false;this.value=[];this.theme="";this.labelHidden=false;this.identifier=createID("DuetMultiselect");this.allControls=false;this.placeholder="";this.caption=undefined;this.items=undefined;this.disabled=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.accessibleDescribedBy=undefined;this.tooltip="";this.tooltipDirection="auto"}e.prototype.handleFocus=function(e){var t=this;var i=e.composedPath().every((function(e){return e!==t.element}));if(i){this.checkboxesVisible=false}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.isCaptionVisible=!!this.caption;checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true);this.refresh()};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.multiselectElement){this.multiselectElement.focus(e)}return[2]}))}))};e.prototype.selectWithValues=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){t=this.processedItems.filter((function(t){return e.includes(t.value)}));this.value=Array.from(new Set(__spreadArray(__spreadArray([],this.value,true),t,true)));return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(i){e=parsePossibleJSON(this.items);this.processedItems=[];this.processedGroups=[];if(!e||e.length===0){return[2]}if(e[0].items!==undefined){this.processedGroups=e}else{this.processedGroups=[{label:"",items:e}]}this.processedGroups.forEach((function(e){return e.items.forEach((function(e){return t.processedItems.push(e)}))}));return[2]}))}))};e.prototype.render=function(){var e=this;var t;return h(Host,{key:"d88436c71fa360266440b8574bb2d35536cc65bd",class:{"duet-m-0":this.margin==="none","duet-expand":this.expand}},h("div",{key:"212b648e8147fb2e58294009eb8aef03556f8684",class:{"duet-multiselect-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva","duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error},onKeyDown:function(t){return e.onMultiselectKeyDown(t)}},h("duet-label",{key:"9d4bec69691f6adc615c9366e86abf5f59fc39a6",theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:this.identifier},this.label),this.tooltip&&h("duet-tooltip",{key:"3ba3a824ae8535ecafbfc73d0477da38e8146867",class:"duet-multiselect-tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),h("slot",{key:"c8fccccab9473eeb7d81b2b947b6732f6fe31111",name:"tooltip"}),this.caption&&h("duet-caption",{key:"7ccb8a12ae76b75762161f444d3a058be2d35b84",id:this.topCaptionId,size:"medium"},this.caption),h("div",{key:"1c61620d8dfeec8fdc4448028951b9a1a4a9968e",class:"duet-multiselect-wrapper"},h("button",{key:"3f2902a54d79a81144128cae9b62641ce234802a",id:this.identifier,ref:function(t){return e.multiselectElement=t},class:{"duet-multiselect":true,"duet-multiselect-active":this.checkboxesVisible},tabindex:"0",onClick:function(){return e.toggleCheckboxes()},onFocus:function(t){return e.onFocus(t)},onBlur:function(t){return e.onBlur(t)},role:"combobox","aria-expanded":this.checkboxesVisible?"true":"false","aria-haspopup":"listbox","aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-owns":"".concat(this.identifier,"-checkboxes"),onKeyDown:function(t){return e.onMultiselectInputKeyDown(t)},disabled:this.disabled},h("span",{key:"04aec38aa6af20357b28bee3373c830bd34c0580",role:"textbox","aria-readonly":"true","aria-multiline":"false","aria-autocomplete":"none","aria-controls":"".concat(this.identifier,"-checkboxes"),"aria-label":this.placeholderLabel[this.language],class:"duet-multiselect-label"},this.placeholder),this.value&&this.value.length>0&&h("span",{key:"3dfe64b81ce62342b83ec4ea44bc1a1ec7544355",class:"duet-multiselect-badge"},this.value.length,h("duet-visually-hidden",{key:"1dbd858425faeae0a323b3313913feec214549cd"},this.selectedLangObject[this.language],", ",this.value.map((function(e){return e.label})).join(", "))),h("svg",{key:"40b599d5cfa8362c2edeb63aa59c9be3cecf3e80",class:{"duet-multiselect-icon":true,"duet-multiselect-icon--rotate":this.checkboxesVisible},fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},h("path",{key:"6c28e4b2bb0c486a8698fa0615fff12df29e157a",d:"m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z"}))),h("div",{key:"6ea881d05fcbdeb899a1eb41b84f8b9653446eb4",id:"".concat(this.identifier,"-checkboxes"),role:"listbox",class:{"duet-multiselect-checkboxes":true,"duet-multiselect-checkboxes-active":this.checkboxesVisible},"aria-activedescendant":this.activeDescendant,"aria-multiselectable":"true"},((t=this.processedItems)===null||t===void 0?void 0:t.length)&&this.allControls&&h("div",{key:"63392964c348477e8b375b96084d4c4cbbf2143a",class:"duet-multiselect-all-control-buttons"},h("button",{key:"b7e0f951cd805058fc5ba9376ada31d42dcceb8e",class:"duet-multiselect-select-all",onClick:this.handleSelectAllClick,id:this.getOptionIdentifier(-2),onKeyDown:function(t){return e.onCheckboxKeyDown(t,-2)}},this.selectAllLabel[this.language]),h("button",{key:"a8d826e0afeaf86fbcaa2289f41ffeca9cd04b43",class:"duet-multiselect-clear-all",onClick:this.handleClearAllClick,id:this.getOptionIdentifier(-1),onKeyDown:function(t){return e.onCheckboxKeyDown(t,-1)}},this.clearAllLabel[this.language])),this.processedItems&&this.processedGroups.map((function(t){return h("fieldset",null,t.label&&h("legend",null,t.label),t.items.map((function(t,i){var o,r;return h("duet-checkbox",{identifier:e.getOptionIdentifier(i),role:"option",label:t.label,value:t.value,key:t.value,checked:(o=e.value)===null||o===void 0?void 0:o.includes(t),"accessible-selected":((r=e.value)===null||r===void 0?void 0:r.includes(t))?"true":undefined,disabled:!e.checkboxesVisible||t.disabled,onDuetChange:function(i){return e.toggleCheckbox(i,t)},onKeyDown:function(t){return e.onCheckboxKeyDown(t,i)},theme:e.theme})})))})))),h("span",{key:"78597a6d044e0186dcb06a22bdb897884e24739e",class:"duet-multiselect-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&h("span",{key:"6b33900eb2e81a104b8370a520aaf378d18155cf"},this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{items:["refresh"]}},enumerable:false,configurable:true});return e}();DuetMultiselect.style=DuetMultiselectStyle0;export{DuetMultiselect as duet_multiselect};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-f5d67bb6.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetNavCss="*,*::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%}:host([sticky]){position:relative;z-index:300}.container{position:relative;z-index:400}::slotted(*[slot=mobile]){display:inherit}::slotted(*[slot=desktop]){display:none}@media (min-width: 62em){::slotted(*[slot=mobile]){display:none}::slotted(*[slot=desktop]){display:inherit}}.sticky{position:sticky;top:0}@media (min-width: 62em){.sticky{position:relative;top:unset}}";var DuetNavStyle0=duetNavCss;var DuetNav=function(){function e(e){registerInstance(this,e);this.theme="";this.sticky=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){return h(Host,{key:"97cff27b21fb239339ebc9dc8bc5c267e20ed1f9"},h("div",{key:"33276844fc09bd3a555ab9e033db7d5c2640da5c",class:{container:true,sticky:this.sticky}},h("slot",{key:"1f135950c0220a03209aa273bcba83c4477f804a"}),h("slot",{key:"09ac4ab46b3ad110b30ec38907906fe5f16526db",name:"mobile"}),h("slot",{key:"995bc3f699e56d23b8a59df9a84e9a525c970cb3",name:"desktop"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetNav.style=DuetNavStyle0;export{DuetNav as duet_nav};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-6a453dd4.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetNavCss="*,*::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%}:host([sticky]){position:relative;z-index:300}.container{position:relative;z-index:400}::slotted(*[slot=mobile]){display:inherit}::slotted(*[slot=desktop]){display:none}@media (min-width: 62em){::slotted(*[slot=mobile]){display:none}::slotted(*[slot=desktop]){display:inherit}}.sticky{position:sticky;top:0}@media (min-width: 62em){.sticky{position:relative;top:unset}}";var DuetNavStyle0=duetNavCss;var DuetNav=function(){function e(e){registerInstance(this,e);this.theme="";this.sticky=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){return h(Host,{key:"97cff27b21fb239339ebc9dc8bc5c267e20ed1f9"},h("div",{key:"33276844fc09bd3a555ab9e033db7d5c2640da5c",class:{container:true,sticky:this.sticky}},h("slot",{key:"1f135950c0220a03209aa273bcba83c4477f804a"}),h("slot",{key:"09ac4ab46b3ad110b30ec38907906fe5f16526db",name:"mobile"}),h("slot",{key:"995bc3f699e56d23b8a59df9a84e9a525c970cb3",name:"desktop"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetNav.style=DuetNavStyle0;export{DuetNav as duet_nav};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,i,r){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function n(t){try{s(r.next(t))}catch(t){o(t)}}function d(t){try{s(r["throw"](t))}catch(t){o(t)}}function s(t){t.done?i(t.value):a(t.value).then(n,d)}s((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,n;return n={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function d(t){return function(e){return s([t,e])}}function s(d){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,d[0]&&(i=0)),i)try{if(r=1,a&&(o=d[0]&2?a["return"]:d[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,d[1])).done)return o;if(a=0,o)d=[d[0]&2,o.value];switch(d[0]){case 0:case 1:o=d;break;case 4:i.label++;return{value:d[1],done:false};case 5:i.label++;a=d[1];d=[0];continue;case 7:d=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){i.label=d[1];break}if(d[0]===6&&i.label<o[1]){i.label=o[1];o=d;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(d);break}if(o[2])i.ops.pop();i.trys.pop();continue}d=e.call(t,i)}catch(t){d=[6,t];a=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,h,g as getElement}from"./index-f5d67bb6.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-439bcc8b.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-bd643c5c.js";import{a as actionArrowDownSmall}from"./action-arrow-down-small-82273dc8.js";import"./string-utils-192eb3c8.js";var duetNotificationCss="*,*::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%}:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:0.7}.duet-notification{display:block;padding:16px;cursor:pointer}:host(:first-of-type) .duet-notification{border-top-left-radius:8px;border-top-right-radius:8px}:host(:last-of-type) .duet-notification{border-bottom:0;border-bottom-right-radius:8px;border-bottom-left-radius:8px}.duet-notification.duet-theme-turva{color:rgb(23, 28, 58);border-bottom-color:rgb(222, 224, 228)}.duet-notification.duet-notification-highlight{font-weight:600}.duet-notification.duet-notification-highlight.duet-theme-turva{background:rgb(245, 247, 250)}@media (min-width: 62em){.duet-notification:hover{background:rgb(240, 247, 250)}.duet-notification:hover.duet-theme-turva{background:rgb(245, 247, 250)}}.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 #0077b3}: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 #171c3a}.duet-notification-container{position:relative;display:flex;border-bottom:1px solid rgb(212, 223, 229)}.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(8, 42, 77);text-align:right;text-transform:uppercase;opacity:0.7}@media (max-width: 35.9375em){.duet-notification-date{width:auto}}.duet-theme-turva .duet-notification-date{color:rgb(113, 118, 132)}@media (min-width: 62em){:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:1}.duet-notification{border-bottom:1px solid rgb(212, 223, 229)}.duet-notification:hover{background:rgb(228, 241, 247)}.duet-notification.duet-notification-highlight{font-weight:600;background:rgb(240, 247, 250)}.duet-notification-container{border-bottom-style:none}}::slotted(duet-heading){padding-right:80px !important}::slotted(duet-paragraph){margin-bottom:2px !important}";var DuetNotificationStyle0=duetNotificationCss;var DuetNotification=function(){function t(t){registerInstance(this,t);this.language=getLanguage();this.accessibleLabelUnreadDefaults={en:"Unread",fi:"Lukematon",sv:"Oläst"};this.accessibleLabelUnread=getLocaleString(this.accessibleLabelUnreadDefaults,this.language);this.url="#";this.date="";this.highlight=false;this.external=false;this.theme=""}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelUnread",defaults:"accessibleLabelUnreadDefaults"});subscribeTabbingChange(this)};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);unsubscribeTabbingChange(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.linkElement.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;return h("div",{key:"95f620022395e56f383b054bdd44e43eef780659",role:"listitem",class:{"duet-notification":true,"duet-notification-highlight":this.highlight,"duet-theme-turva":this.theme==="turva"}},h("a",{key:"c2b26563af673ed607eda71ac73618a97df4182d",ref:function(e){return t.linkElement=e},href:this.url,target:this.external?"_blank":"_self"},h("div",{key:"3a4d58c959a73f4eb54b7b1f2341b6cf47b3111d",class:"duet-notification-container"},h("div",{key:"a98286e2d2c067a14faa839ab3dec3d29ff29014",class:"duet-notification-badge-container"},this.highlight&&h("div",{key:"fdd7359a0ca2bec377cc7312f1005bb351dc9f81",class:"duet-notification-badge"},h("duet-visually-hidden",{key:"4974d054afafb18ff69c464d722ee606c02a73fc"},this.accessibleLabelUnread,":"))),h("div",{key:"5ce2f9c01226ba63cb3d23f1b878d8384040e92b",class:"duet-notification-content"},h("slot",{key:"f99affc9adf412fd40861d10bccd092bfb08f2e9"})),h("div",{key:"de4db79428641035052ede5c208377823828bcab",class:"duet-notification-date"},this.date))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetNotification.style=DuetNotificationStyle0;var duetNotificationDrawerCss='*,*::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(8, 42, 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(212, 223, 229);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(222, 224, 228)}.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 #0077b3}: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 #171c3a}.duet-drawer-toggle:hover{color:rgb(0, 75, 129)}.duet-theme-turva .duet-drawer-toggle:hover{color:rgb(113, 118, 132)}.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, 75, 129);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(113, 118, 132);border-color:rgb(245, 247, 250)}@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(247, 178, 40)}.duet-drawer-content{display:none;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(212, 223, 229)}.duet-drawer-content:focus{outline:0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255);border-color:rgb(212, 223, 229)}@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(212, 223, 229);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 DuetNotificationDrawerStyle0=duetNotificationDrawerCss;var ESC_KEY=27;var DuetNotificationDrawer=function(){function t(t){var e=this;registerInstance(this,t);this.handleKeyDown=function(t){if(e.isOpen&&t.keyCode===ESC_KEY){e.close()}};this.toggleMenu=function(t){t.stopPropagation();e.isOpen?e.close():e.open()};this.updateNotificationState=function(){e.hasNotifications=e.element.children.length>0};this.isOpen=false;this.hasNotifications=undefined;this.icon="";this.label="Label";this.language=getLanguage();this.accessibleLabelNotificationsDefaults={en:"No notifications",fi:"Ei ilmoituksia",sv:"Inga notifikationer"};this.accessibleLabelNotifications=getLocaleString(this.accessibleLabelNotificationsDefaults);this.badge=false;this.theme="";this.direction="left"}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.updateNotificationState()};t.prototype.connectedCallback=function(){this.observer=new MutationObserver(this.updateNotificationState);this.observer.observe(this.element,{childList:true});subscribeTabbingChange(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;unsubscribeTabbingChange(this)};t.prototype.handleClickFocusOutside=function(t){var e=t.target;if(this.isOpen&&!this.element.contains(e)){this.close(false)}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.drawerButtonEl.focus(t);return[2]}))}))};t.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.element.closest("duet-header");if(t){t.closeMenus()}this.isOpen=true;this.drawerContentEl.scrollTop=0;return[2]}))}))};t.prototype.close=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=true}return __generator(this,(function(e){this.isOpen=false;if(t){this.setFocus({preventScroll:true})}return[2]}))}))};t.prototype.render=function(){var t=this;return h("div",{key:"181a6a82f04afb895830cf36e265a4f770f05188",class:{"duet-drawer":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:this.handleKeyDown},h("button",{key:"f4276d12063ff62d10998b80cd7621c3ceadc302",ref:function(e){return t.drawerButtonEl=e},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&&h("div",{key:"0c1a27d913b2ba53d8f6ef2eef3f0d05c251fabc",class:"duet-drawer-icon"},h("duet-icon",{key:"c32b7ae6a90f0d32f0d6b46aad6e9ba0fb0bf952",margin:"none",size:"x-small",name:this.icon,color:"currentColor"}),this.badge&&h("div",{key:"e698da96829cac38cfeab0a15734f3be7a679455",class:"duet-drawer-badge"})),h("span",{key:"2725ba4970bcc2e6213f69c64d25a3dc7d9f005b",class:"duet-drawer-label"},this.label),h("div",{key:"71ae5369660c95fed7635cb7d5ae25fa5b9dde7a",class:"duet-drawer-caret"},h("duet-icon",{key:"1ac223f256804f95ff4a35f8fc115999d86fec8c",margin:"none",size:"auto",icon:actionArrowDownSmall.svg,color:"currentColor"}))),h("div",{key:"aaa99d0c45b1f8218f0f999c9558f374799dc6a5",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(e){return t.drawerContentEl=e}},this.hasNotifications?h("div",{role:"list"},h("slot",null)):h("duet-empty-state",{size:"small"},h("duet-paragraph",{size:"small",margin:"none"},this.accessibleLabelNotifications))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetNotificationDrawer.style=DuetNotificationDrawerStyle0;export{DuetNotification as duet_notification,DuetNotificationDrawer as duet_notification_drawer};
4
+ */import{r as registerInstance,h,g as getElement}from"./index-6a453dd4.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-439bcc8b.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-0506f7de.js";import{a as actionArrowDownSmall}from"./action-arrow-down-small-82273dc8.js";import"./string-utils-192eb3c8.js";var duetNotificationCss="*,*::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%}:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:0.7}.duet-notification{display:block;padding:16px;padding-bottom:0;cursor:pointer}:host(:first-of-type) .duet-notification{border-top-left-radius:8px;border-top-right-radius:8px}:host(:last-of-type) .duet-notification{border-bottom:0;border-bottom-right-radius:8px;border-bottom-left-radius:8px}.duet-notification.duet-theme-turva{color:rgb(23, 28, 58);border-bottom-color:rgb(222, 224, 228)}.duet-notification.duet-notification-highlight{font-weight:600}.duet-notification.duet-notification-highlight.duet-theme-turva{background:rgb(245, 247, 250)}@media (min-width: 62em){.duet-notification:hover{background:rgb(240, 247, 250)}.duet-notification:hover.duet-theme-turva{background:rgb(245, 247, 250)}}.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 #0077b3}: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 #171c3a}.duet-notification-container{position:relative;display:flex;padding-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.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(8, 42, 77);text-align:right;text-transform:uppercase;opacity:0.7}@media (max-width: 35.9375em){.duet-notification-date{width:auto}}.duet-theme-turva .duet-notification-date{color:rgb(113, 118, 132)}@media (min-width: 62em){:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:1}.duet-notification{padding:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-notification:hover{background:rgb(228, 241, 247)}.duet-notification.duet-notification-highlight{font-weight:600;background:rgb(240, 247, 250)}.duet-notification-container{padding-bottom:0;border-bottom-style:none}}::slotted(duet-heading){padding-right:80px !important}::slotted(duet-paragraph){margin-bottom:2px !important}";var DuetNotificationStyle0=duetNotificationCss;var DuetNotification=function(){function t(t){registerInstance(this,t);this.language=getLanguage();this.accessibleLabelUnreadDefaults={en:"Unread",fi:"Lukematon",sv:"Oläst"};this.accessibleLabelUnread=getLocaleString(this.accessibleLabelUnreadDefaults,this.language);this.url="#";this.date="";this.highlight=false;this.external=false;this.theme=""}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelUnread",defaults:"accessibleLabelUnreadDefaults"});subscribeTabbingChange(this)};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);unsubscribeTabbingChange(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.linkElement.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;return h("div",{key:"95f620022395e56f383b054bdd44e43eef780659",role:"listitem",class:{"duet-notification":true,"duet-notification-highlight":this.highlight,"duet-theme-turva":this.theme==="turva"}},h("a",{key:"c2b26563af673ed607eda71ac73618a97df4182d",ref:function(e){return t.linkElement=e},href:this.url,target:this.external?"_blank":"_self"},h("div",{key:"3a4d58c959a73f4eb54b7b1f2341b6cf47b3111d",class:"duet-notification-container"},h("div",{key:"a98286e2d2c067a14faa839ab3dec3d29ff29014",class:"duet-notification-badge-container"},this.highlight&&h("div",{key:"fdd7359a0ca2bec377cc7312f1005bb351dc9f81",class:"duet-notification-badge"},h("duet-visually-hidden",{key:"4974d054afafb18ff69c464d722ee606c02a73fc"},this.accessibleLabelUnread,":"))),h("div",{key:"5ce2f9c01226ba63cb3d23f1b878d8384040e92b",class:"duet-notification-content"},h("slot",{key:"f99affc9adf412fd40861d10bccd092bfb08f2e9"})),h("div",{key:"de4db79428641035052ede5c208377823828bcab",class:"duet-notification-date"},this.date))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetNotification.style=DuetNotificationStyle0;var duetNotificationDrawerCss='*,*::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(8, 42, 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(212, 223, 229);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(222, 224, 228)}.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 #0077b3}: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 #171c3a}.duet-drawer-toggle:hover{color:rgb(0, 75, 129)}.duet-theme-turva .duet-drawer-toggle:hover{color:rgb(113, 118, 132)}.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, 75, 129);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(113, 118, 132);border-color:rgb(245, 247, 250)}@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(247, 178, 40)}.duet-drawer-content{display:none;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(212, 223, 229)}.duet-drawer-content:focus{outline:0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255);border-color:rgb(212, 223, 229)}@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(212, 223, 229);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 DuetNotificationDrawerStyle0=duetNotificationDrawerCss;var ESC_KEY=27;var DuetNotificationDrawer=function(){function t(t){var e=this;registerInstance(this,t);this.handleKeyDown=function(t){if(e.isOpen&&t.keyCode===ESC_KEY){e.close()}};this.toggleMenu=function(t){t.stopPropagation();e.isOpen?e.close():e.open()};this.updateNotificationState=function(){e.hasNotifications=e.element.children.length>0};this.isOpen=false;this.hasNotifications=undefined;this.icon="";this.label="Label";this.language=getLanguage();this.accessibleLabelNotificationsDefaults={en:"No notifications",fi:"Ei ilmoituksia",sv:"Inga notifikationer"};this.accessibleLabelNotifications=getLocaleString(this.accessibleLabelNotificationsDefaults);this.badge=false;this.theme="";this.direction="left"}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.updateNotificationState()};t.prototype.connectedCallback=function(){this.observer=new MutationObserver(this.updateNotificationState);this.observer.observe(this.element,{childList:true});subscribeTabbingChange(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;unsubscribeTabbingChange(this)};t.prototype.handleClickFocusOutside=function(t){var e=t.target;if(this.isOpen&&!this.element.contains(e)){this.close(false)}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.drawerButtonEl.focus(t);return[2]}))}))};t.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.element.closest("duet-header");if(t){t.closeMenus()}this.isOpen=true;this.drawerContentEl.scrollTop=0;return[2]}))}))};t.prototype.close=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=true}return __generator(this,(function(e){this.isOpen=false;if(t){this.setFocus({preventScroll:true})}return[2]}))}))};t.prototype.render=function(){var t=this;return h("div",{key:"181a6a82f04afb895830cf36e265a4f770f05188",class:{"duet-drawer":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:this.handleKeyDown},h("button",{key:"f4276d12063ff62d10998b80cd7621c3ceadc302",ref:function(e){return t.drawerButtonEl=e},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&&h("div",{key:"0c1a27d913b2ba53d8f6ef2eef3f0d05c251fabc",class:"duet-drawer-icon"},h("duet-icon",{key:"c32b7ae6a90f0d32f0d6b46aad6e9ba0fb0bf952",margin:"none",size:"x-small",name:this.icon,color:"currentColor"}),this.badge&&h("div",{key:"e698da96829cac38cfeab0a15734f3be7a679455",class:"duet-drawer-badge"})),h("span",{key:"2725ba4970bcc2e6213f69c64d25a3dc7d9f005b",class:"duet-drawer-label"},this.label),h("div",{key:"71ae5369660c95fed7635cb7d5ae25fa5b9dde7a",class:"duet-drawer-caret"},h("duet-icon",{key:"1ac223f256804f95ff4a35f8fc115999d86fec8c",margin:"none",size:"auto",icon:actionArrowDownSmall.svg,color:"currentColor"}))),h("div",{key:"aaa99d0c45b1f8218f0f999c9558f374799dc6a5",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(e){return t.drawerContentEl=e}},this.hasNotifications?h("div",{role:"list"},h("slot",null)):h("duet-empty-state",{size:"small"},h("duet-paragraph",{size:"small",margin:"none"},this.accessibleLabelNotifications))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetNotificationDrawer.style=DuetNotificationDrawerStyle0;export{DuetNotification as duet_notification,DuetNotificationDrawer as duet_notification_drawer};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,n,u){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{o(u.next(t))}catch(t){r(t)}}function a(t){try{o(u["throw"](t))}catch(t){r(t)}}function o(t){t.done?n(t.value):i(t.value).then(s,a)}o((u=u.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},u,i,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return o([t,e])}}function o(a){if(u)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(u=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];i=0}finally{u=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-f5d67bb6.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{a as isArrowRightKey,b as isArrowUpKey,c as isArrowDownKey,d as isArrowLeftKey,e as isBackspaceKey,s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-439bcc8b.js";import{a as getLanguage,b as getLocale,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-bd643c5c.js";import{c as checkNamedSlotElement}from"./slot-utils-5369c9ff.js";import"./string-utils-192eb3c8.js";var actionAdd={title:"action-add",tags:"action add plus",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>'};var actionSubtract={title:"action-subtract",tags:"action subtract minus remove delete cancel",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>'};function SafeParseFloat(t,e){var n;if(typeof t==="string"){if(t===""){return null}var u=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");if(e){u=ConvertToEnUS(u,e,false)}u=u.replace(/\s+/g,"");n=parseFloat(u)}if(typeof t==="number"){n=parseFloat(String(t))}if(!isNaN(Number(n))){return Number(n)}if(t===null||t===undefined){return null}throw new Error("Invalid value passed to SafeParseFloat")}function ConvertToEnUS(t,e,n){if(n===void 0){n=false}var u;var i=new Intl.NumberFormat(e).format(1/2).replace(/[0-9]/g,"");var r=new Intl.NumberFormat("en-US").format(1/2).replace(/[0-9]/g,"");var s=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,"");var a=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");u=t.replace(i,"DECIMALSEPARATOR");if(n){u=u.replace(s,"THOUSANDSEPARATOR")}else{u=u.replace(s,"")}u=u.replace("DECIMALSEPARATOR",r);u=u.replace("THOUSANDSEPARATOR",a);return u}var roundTo=function(t,e){return Math.round(t/e)*e};var clamp=function(t,e,n){return Math.min(Math.max(t,e),n)};var duetNumberInputCss='*.sc-duet-number-input,*.sc-duet-number-input::after,*.sc-duet-number-input::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-number-input-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}.sc-duet-number-input-h:last-child,.sc-duet-number-input-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-number-input-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-number-input-h{width:100% !important}.duet-m-0.sc-duet-number-input-h{margin:0 !important}.duet-number-container.sc-duet-number-input{position:relative;width:100%}.duet-number-buttons.sc-duet-number-input{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled{pointer-events:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input duet-icon.sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled duet-icon.sc-duet-number-input{opacity:0.4}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:active duet-icon.sc-duet-number-input{transform:translateY(1px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{outline:0}.user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type::before{background:linear-gradient(to left, rgba(199, 202, 207, 0.2) 0%, rgba(199, 202, 207, 0.2) 1px, rgba(199, 202, 207, 0.1) 1px, rgba(199, 202, 207, 0) 100%)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{background:rgb(222, 224, 228)}';var DuetNumberInputStyle0=duetNumberInputCss;var DuetNumberInput=function(){function t(t){var e=this;registerInstance(this,t);this.duetChange=createEvent(this,"duetChange",3);this.duetInput=createEvent(this,"duetInput",3);this.duetBlur=createEvent(this,"duetBlur",7);this.duetFocus=createEvent(this,"duetFocus",7);this.inputId=createID("DuetInput");this.handleFocus=function(){e.focusedValue=e.value};this.handleKeyDown=function(t){if(isArrowRightKey(t)||isArrowUpKey(t)){e.add(t)}else if(isArrowDownKey(t)||isArrowLeftKey(t)){e.subtract(t)}else if(isBackspaceKey(t)){e.clearValue()}};this.handleChange=function(t){var n=t.target;if(n&&n.value){try{var u=SafeParseFloat(n.value,e.locale);if(isNaN(u)||u==null){u=e.min||0}e.setValue(u);e.duetInput.emit({component:"duet-number-input",originalEvent:t,value:SafeParseFloat(e.value,e.locale).toString(),valueAsNumber:u})}catch(n){e.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}}else{e.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}};this.handleBlur=function(t){var n=t.target;if(!n){return}if(n.value){try{var u=SafeParseFloat(n.value,e.locale);if(e.rounding){u=roundTo(u,e.step)}u=clamp(u,e.min,e.max);if(u!==SafeParseFloat(e.value,e.locale)||u!==SafeParseFloat(e.focusedValue,e.locale)){e.setValue(u);e.emitChange(t)}}catch(n){e.emitNull(t)}}else{e.emitNull(t)}};this.emitChange=function(t){var n=SafeParseFloat(e.value,e.locale);e.duetChange.emit({originalEvent:t,value:n.toString(),valueAsNumber:n,component:"duet-number-input"})};this.emitNull=function(t){e.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})};this.localizeValue=function(t){return t.toLocaleString(e.locale)};this.setValue=function(t){e.value=e.localizeValue(t);e.duetInputElement.value="".concat(e.value," ").concat(e.unit)};this.add=function(t){if(t){t.preventDefault()}var n=SafeParseFloat(e.value,e.locale);if(n===e.max){return}var u=n==null?e.min:n+e.step;if(u%e.step!==0){var i=u%e.step;u-=i}var r=clamp(u,e.min,e.max);e.value=e.localizeValue(r);e.emitChange(t)};this.subtract=function(t){if(t){t.preventDefault()}var n=SafeParseFloat(e.value,e.locale);if(n===e.min){return}var u=n-e.step;if(u%e.step!==0){var i=e.step-u%e.step;u+=i}u=clamp(u,e.min,e.max);e.value=e.localizeValue(u);e.emitChange(t)};this.language=getLanguage();this.locale=getLocale(this.language).locale;this.unit=getLocale(this.language).money;this.focusedValue=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"};this.accessibleLive=getLocaleString(this.accessibleLiveDefaults,this.language);this.accessibleLiveEnabled=true;this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"};this.accessibleAdd=getLocaleString(this.accessibleAddDefaults,this.language);this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"};this.accessibleSubtract=getLocaleString(this.accessibleSubtractDefaults,this.language);this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.min=0;this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"};this.label=getLocaleString(this.labelDefaults,this.language);this.labelHidden=false;this.max=1e6;this.name=undefined;this.error="";this.tooltip="";this.step=5e3;this.rounding=true;this.role=undefined;this.disabled=false;this.required=false;this.value=undefined}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);if(this.value){this.value=this.localizeValue(SafeParseFloat(this.value,this.locale))}checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]);subscribeTabbingChange(this)};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);unsubscribeTabbingChange(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.duetInputElement.setFocus(t);return[2]}))}))};t.prototype.getValueAsNumber=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=SafeParseFloat(this.value,this.locale);return[2,this.value===undefined||this.value===null||isNaN(t)?null:t]}))}))};t.prototype.clearValue=function(){this.value=null;this.duetInputElement.value=""};t.prototype.formatAnnouncement=function(){var t=!!this.value?SafeParseFloat(this.value,this.locale):null;if(t==null){return""}return this.accessibleLive.replace("{current}",t.toString(10))};t.prototype.render=function(){var t=this;var e=this.identifier||this.inputId;var n="".concat(this.localizeValue(this.max)," ").concat(this.unit).length;var u=!!this.value?SafeParseFloat(this.value,this.locale):null;return h(Host,{class:{"duet-theme-turva":this.theme==="turva","duet-expand":this.expand,"duet-m-0":this.margin==="none"}},h("div",{class:"duet-number-container"},h("duet-input",{ref:function(e){return t.duetInputElement=e},onDuetChange:function(e){return t.handleChange(e)},onDuetFocus:this.handleFocus,onDuetBlur:function(e){return t.handleBlur(e)},onKeyDown:function(e){return t.handleKeyDown(e)},label:this.label,value:this.value?"".concat(this.value," ").concat(this.unit):"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":u!=null?u:"",maxlength:n,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:e,theme:this.theme,margin:"none",expand:true,numericKeyboard:true,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},h("slot",{name:"tooltip"}),h("div",{class:{"duet-number-buttons":true,"duet-no-label":this.labelHidden}},h("button",{"aria-controls":e,disabled:this.disabled,"aria-disabled":u==null||u===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},h("duet-visually-hidden",null,this.accessibleSubtract," ",this.step),h("duet-icon",{icon:actionSubtract.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})),h("button",{"aria-controls":e,disabled:this.disabled,"aria-disabled":u===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},h("duet-visually-hidden",null,this.accessibleAdd," ",this.step),h("duet-icon",{icon:actionAdd.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&h("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetNumberInput.style=DuetNumberInputStyle0;export{DuetNumberInput as duet_number_input};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-6a453dd4.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{a as isArrowRightKey,b as isArrowUpKey,c as isArrowDownKey,d as isArrowLeftKey,e as isBackspaceKey,s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-439bcc8b.js";import{a as getLanguage,b as getLocale,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-0506f7de.js";import{c as checkNamedSlotElement}from"./slot-utils-d6bf0119.js";import"./string-utils-192eb3c8.js";var actionAdd={title:"action-add",tags:"action add plus",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>'};var actionSubtract={title:"action-subtract",tags:"action subtract minus remove delete cancel",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>'};function SafeParseFloat(t,e){var n;if(typeof t==="string"){if(t===""){return null}var u=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");if(e){u=ConvertToEnUS(u,e,false)}u=u.replace(/\s+/g,"");n=parseFloat(u)}if(typeof t==="number"){n=parseFloat(String(t))}if(!isNaN(Number(n))){return Number(n)}if(t===null||t===undefined){return null}throw new Error("Invalid value passed to SafeParseFloat")}function ConvertToEnUS(t,e,n){if(n===void 0){n=false}var u;var i=new Intl.NumberFormat(e).format(1/2).replace(/[0-9]/g,"");var r=new Intl.NumberFormat("en-US").format(1/2).replace(/[0-9]/g,"");var s=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,"");var a=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");u=t.replace(i,"DECIMALSEPARATOR");if(n){u=u.replace(s,"THOUSANDSEPARATOR")}else{u=u.replace(s,"")}u=u.replace("DECIMALSEPARATOR",r);u=u.replace("THOUSANDSEPARATOR",a);return u}var roundTo=function(t,e){return Math.round(t/e)*e};var clamp=function(t,e,n){return Math.min(Math.max(t,e),n)};var duetNumberInputCss='*.sc-duet-number-input,*.sc-duet-number-input::after,*.sc-duet-number-input::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-number-input-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}.sc-duet-number-input-h:last-child,.sc-duet-number-input-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-number-input-h{width:calc(50% - 16px - 3px)}}.duet-expand.sc-duet-number-input-h{width:100% !important}.duet-m-0.sc-duet-number-input-h{margin:0 !important}.duet-number-container.sc-duet-number-input{position:relative;width:100%}.duet-number-buttons.sc-duet-number-input{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled{pointer-events:none}.duet-number-buttons.sc-duet-number-input .duet-number-button[aria-disabled=true].sc-duet-number-input duet-icon.sc-duet-number-input,.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:disabled duet-icon.sc-duet-number-input{opacity:0.4}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:active duet-icon.sc-duet-number-input{transform:translateY(1px)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{outline:0}.user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .user-is-tabbing.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:first-of-type::before{background:linear-gradient(to left, rgba(199, 202, 207, 0.2) 0%, rgba(199, 202, 207, 0.2) 1px, rgba(199, 202, 207, 0.1) 1px, rgba(199, 202, 207, 0) 100%)}.duet-theme-turva.sc-duet-number-input-h .duet-number-buttons.sc-duet-number-input .duet-number-button.sc-duet-number-input:last-of-type::before{background:rgb(222, 224, 228)}';var DuetNumberInputStyle0=duetNumberInputCss;var DuetNumberInput=function(){function t(t){var e=this;registerInstance(this,t);this.duetChange=createEvent(this,"duetChange",3);this.duetInput=createEvent(this,"duetInput",3);this.duetBlur=createEvent(this,"duetBlur",7);this.duetFocus=createEvent(this,"duetFocus",7);this.inputId=createID("DuetInput");this.handleFocus=function(){e.focusedValue=e.value};this.handleKeyDown=function(t){if(isArrowRightKey(t)||isArrowUpKey(t)){e.add(t)}else if(isArrowDownKey(t)||isArrowLeftKey(t)){e.subtract(t)}else if(isBackspaceKey(t)){e.clearValue(t)}};this.handleChange=function(t){var n=t.target;if(n&&n.value){try{var u=SafeParseFloat(n.value,e.locale);if(isNaN(u)||u==null){u=e.min||0}e.setValue(u);e.duetInput.emit({component:"duet-number-input",originalEvent:t,value:SafeParseFloat(e.value,e.locale).toString(),valueAsNumber:u})}catch(u){if(n.value!=="-"){e.clearValue(t)}e.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}}else{e.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}};this.handleBlur=function(t){var n=t.target;if(!n){return}if(n.value){try{var u=SafeParseFloat(n.value,e.locale);if(e.rounding){u=roundTo(u,e.step)}u=clamp(u,e.min,e.max);if(u!==SafeParseFloat(e.value,e.locale)||u!==SafeParseFloat(e.focusedValue,e.locale)){e.setValue(u);e.emitChange(t)}}catch(n){e.emitNull(t)}}else{e.emitNull(t)}};this.emitChange=function(t){var n=SafeParseFloat(e.value,e.locale);e.duetChange.emit({originalEvent:t,value:n.toString(),valueAsNumber:n,component:"duet-number-input"})};this.emitNull=function(t){e.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})};this.localizeValue=function(t){return t.toLocaleString(e.locale)};this.setValue=function(t){e.value=e.localizeValue(t);e.duetInputElement.value="".concat(e.value," ").concat(e.unit)};this.add=function(t){if(t){t.preventDefault()}var n=SafeParseFloat(e.value,e.locale);if(n===e.max){return}var u=n==null?e.min:n+e.step;if(u%e.step!==0){var i=u%e.step;u-=i}var r=clamp(u,e.min,e.max);e.value=e.localizeValue(r);e.emitChange(t)};this.subtract=function(t){if(t){t.preventDefault()}var n=SafeParseFloat(e.value,e.locale);if(n===e.min){return}var u=n-e.step;if(u%e.step!==0){var i=e.step-u%e.step;u+=i}u=clamp(u,e.min,e.max);e.value=e.localizeValue(u);e.emitChange(t)};this.language=getLanguage();this.locale=getLocale(this.language).locale;this.unit=getLocale(this.language).money;this.focusedValue=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"};this.accessibleLive=getLocaleString(this.accessibleLiveDefaults,this.language);this.accessibleLiveEnabled=true;this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"};this.accessibleAdd=getLocaleString(this.accessibleAddDefaults,this.language);this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"};this.accessibleSubtract=getLocaleString(this.accessibleSubtractDefaults,this.language);this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.min=0;this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"};this.label=getLocaleString(this.labelDefaults,this.language);this.labelHidden=false;this.max=1e6;this.name=undefined;this.error="";this.tooltip="";this.step=5e3;this.rounding=true;this.role=undefined;this.disabled=false;this.required=false;this.value=undefined}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);if(this.value){this.value=this.localizeValue(SafeParseFloat(this.value,this.locale))}checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]);subscribeTabbingChange(this)};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);unsubscribeTabbingChange(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.duetInputElement.setFocus(t);return[2]}))}))};t.prototype.getValueAsNumber=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=SafeParseFloat(this.value,this.locale);return[2,this.value===undefined||this.value===null||isNaN(t)?null:t]}))}))};t.prototype.clearValue=function(t){this.duetInputElement.value="";if(this.value!==null){this.value=null;this.emitNull(t)}};t.prototype.formatAnnouncement=function(){var t=!!this.value?SafeParseFloat(this.value,this.locale):null;if(t==null){return""}return this.accessibleLive.replace("{current}",t.toString(10))};t.prototype.render=function(){var t=this;var e=this.identifier||this.inputId;var n="".concat(this.localizeValue(this.max)," ").concat(this.unit).length;var u=!!this.value?SafeParseFloat(this.value,this.locale):null;return h(Host,{class:{"duet-theme-turva":this.theme==="turva","duet-expand":this.expand,"duet-m-0":this.margin==="none"}},h("div",{class:"duet-number-container"},h("duet-input",{ref:function(e){return t.duetInputElement=e},onDuetChange:function(e){return t.handleChange(e)},onDuetFocus:this.handleFocus,onDuetBlur:function(e){return t.handleBlur(e)},onKeyDown:function(e){return t.handleKeyDown(e)},label:this.label,value:this.value?"".concat(this.value," ").concat(this.unit):"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":u!=null?u:"",maxlength:n,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:e,theme:this.theme,margin:"none",expand:true,numericKeyboard:true,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},h("slot",{name:"tooltip"}),h("div",{class:{"duet-number-buttons":true,"duet-no-label":this.labelHidden}},h("button",{"aria-controls":e,disabled:this.disabled,"aria-disabled":u==null||u===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},h("duet-visually-hidden",null,this.accessibleSubtract," ",this.step),h("duet-icon",{icon:actionSubtract.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})),h("button",{"aria-controls":e,disabled:this.disabled,"aria-disabled":u===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},h("duet-visually-hidden",null,this.accessibleAdd," ",this.step),h("duet-icon",{icon:actionAdd.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&h("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetNumberInput.style=DuetNumberInputStyle0;export{DuetNumberInput as duet_number_input};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,h,H as Host}from"./index-f5d67bb6.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetOverlayCss=".duet-overlay{position:fixed;top:0;left:0;display:block;width:100%;height:100%;visibility:visible;background:rgb(8, 42, 77);opacity:0.3}.duet-overlay.duet-theme-turva{background:rgb(23, 28, 58)}.duet-overlay.keep-stacking-context{position:absolute;top:unset;left:unset;z-index:unset !important}.duet-overlay.modal-overlay{z-index:-1}.duet-overlay.hidden{visibility:hidden;opacity:0}.duet-overlay.dark{opacity:0.85}.duet-overlay.white{background:rgb(255, 255, 255);opacity:0.9}.duet-overlay.white.duet-theme-turva{background:rgb(255, 255, 255)}.duet-overlay.display-x-small{display:none}@media (max-width: 35.9375em){.duet-overlay.display-x-small{display:block}}.duet-overlay.display-x-small.not{display:block}@media (max-width: 35.9375em){.duet-overlay.display-x-small.not{display:none}}.duet-overlay.display-small{display:none}@media (min-width: 36em){.duet-overlay.display-small{display:block}}.duet-overlay.display-small.not{display:block}@media (min-width: 36em){.duet-overlay.display-small.not{display:none}}.duet-overlay.display-medium{display:none}@media (min-width: 48em){.duet-overlay.display-medium{display:block}}.duet-overlay.display-medium.not{display:block}@media (min-width: 48em){.duet-overlay.display-medium.not{display:none}}.duet-overlay.display-large{display:none}@media (min-width: 62em){.duet-overlay.display-large{display:block}}.duet-overlay.display-large.not{display:block}@media (min-width: 62em){.duet-overlay.display-large.not{display:none}}.duet-overlay.transition-slowly{transition:600ms ease}.duet-overlay.transition-quickly{transition:300ms ease}";var DuetOverlayStyle0=duetOverlayCss;var DuetOverlay=function(){function e(e){var t=this;registerInstance(this,e);this.getDisplayBreakpoint=function(){if(t.displayDevice.startsWith("not")){return t.displayDevice.substring(t.displayDevice.indexOf("-")+1)}return t.displayDevice};this.visible=true;this.keepStackingContext=false;this.modalOverlay=false;this.theme="";this.displayDevice="all";this.transition="slowly";this.zIndex="400";this.variation="default"}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e;return h(Host,{key:"b97ad015b5683c5bf102b82383615099b3c3c8e5","aria-hidden":"true"},h("div",{key:"c41a21343f6350020a9deb5c1208aed416714531",style:{zIndex:this.zIndex},class:(e={"duet-overlay":true,"duet-theme-turva":this.theme==="turva","keep-stacking-context":this.keepStackingContext},e["transition-".concat(this.transition)]=this.transition!=="immediate",e["display-x-small"]=this.getDisplayBreakpoint()==="x-small",e["display-small"]=this.getDisplayBreakpoint()==="small",e["display-medium"]=this.getDisplayBreakpoint()==="medium",e["display-large"]=this.getDisplayBreakpoint()==="large",e.not=this.displayDevice.startsWith("not"),e.hidden=!this.visible,e[this.variation]=true,e)}))};return e}();DuetOverlay.style=DuetOverlayStyle0;export{DuetOverlay as duet_overlay};
4
+ import{r as registerInstance,h,H as Host}from"./index-6a453dd4.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetOverlayCss=".duet-overlay{position:fixed;top:0;left:0;display:block;width:100%;height:100%;visibility:visible;background:rgb(8, 42, 77);opacity:0.3}.duet-overlay.duet-theme-turva{background:rgb(23, 28, 58)}.duet-overlay.keep-stacking-context{position:absolute;top:unset;left:unset;z-index:unset !important}.duet-overlay.modal-overlay{z-index:-1}.duet-overlay.hidden{visibility:hidden;opacity:0}.duet-overlay.dark{opacity:0.85}.duet-overlay.white{background:rgb(255, 255, 255);opacity:0.9}.duet-overlay.white.duet-theme-turva{background:rgb(255, 255, 255)}.duet-overlay.display-x-small{display:none}@media (max-width: 35.9375em){.duet-overlay.display-x-small{display:block}}.duet-overlay.display-x-small.not{display:block}@media (max-width: 35.9375em){.duet-overlay.display-x-small.not{display:none}}.duet-overlay.display-small{display:none}@media (min-width: 36em){.duet-overlay.display-small{display:block}}.duet-overlay.display-small.not{display:block}@media (min-width: 36em){.duet-overlay.display-small.not{display:none}}.duet-overlay.display-medium{display:none}@media (min-width: 48em){.duet-overlay.display-medium{display:block}}.duet-overlay.display-medium.not{display:block}@media (min-width: 48em){.duet-overlay.display-medium.not{display:none}}.duet-overlay.display-large{display:none}@media (min-width: 62em){.duet-overlay.display-large{display:block}}.duet-overlay.display-large.not{display:block}@media (min-width: 62em){.duet-overlay.display-large.not{display:none}}.duet-overlay.transition-slowly{transition:600ms ease}.duet-overlay.transition-quickly{transition:300ms ease}";var DuetOverlayStyle0=duetOverlayCss;var DuetOverlay=function(){function e(e){var t=this;registerInstance(this,e);this.getDisplayBreakpoint=function(){if(t.displayDevice.startsWith("not")){return t.displayDevice.substring(t.displayDevice.indexOf("-")+1)}return t.displayDevice};this.visible=true;this.keepStackingContext=false;this.modalOverlay=false;this.theme="";this.displayDevice="all";this.transition="slowly";this.zIndex="400";this.variation="default"}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e;return h(Host,{key:"b97ad015b5683c5bf102b82383615099b3c3c8e5","aria-hidden":"true"},h("div",{key:"c41a21343f6350020a9deb5c1208aed416714531",style:{zIndex:this.zIndex},class:(e={"duet-overlay":true,"duet-theme-turva":this.theme==="turva","keep-stacking-context":this.keepStackingContext},e["transition-".concat(this.transition)]=this.transition!=="immediate",e["display-x-small"]=this.getDisplayBreakpoint()==="x-small",e["display-small"]=this.getDisplayBreakpoint()==="small",e["display-medium"]=this.getDisplayBreakpoint()==="medium",e["display-large"]=this.getDisplayBreakpoint()==="large",e.not=this.displayDevice.startsWith("not"),e.hidden=!this.visible,e[this.variation]=true,e)}))};return e}();DuetOverlay.style=DuetOverlayStyle0;export{DuetOverlay as duet_overlay};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,h,g as getElement}from"./index-f5d67bb6.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetPageHeadingCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-page-heading{position:relative;display:block;width:100%;margin:0 auto;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(8, 42, 77)}.duet-page-heading.duet-p-0{padding:0 !important}.duet-page-heading.duet-m-0{margin:0 !important}.duet-page-heading.auto{overflow:visible}.duet-page-heading.auto .heading,.duet-page-heading.auto .background{max-width:none}.duet-page-heading.fluid,.duet-page-heading.narrow{padding:0 16px}@media (min-width: 36em){.duet-page-heading.fluid{padding:0 28px}}@media (min-width: 62em){.duet-page-heading.fluid{padding:0 56px}}@media (min-width: 76.25em){.duet-page-heading.fluid{max-width:1110px;padding:0}}.duet-page-heading.narrow{max-width:888px}@media (min-width: 36em){.duet-page-heading.narrow{padding:0 48px}}@media (min-width: 48em){.duet-page-heading.narrow{padding:0 72px}}.duet-page-heading .heading{max-width:744px;padding:48px 90px 16px 0}@media (min-width: 48em){.duet-page-heading .heading{padding:72px 150px 40px 0}}.duet-page-heading:not(.has-icon) .heading{padding-right:0}.duet-page-heading .background{position:absolute;top:0;right:0;left:0;width:100%;max-width:744px;height:104px;margin:0 auto;margin:0 auto}@media (min-width: 48em){.duet-page-heading .background{height:165px}}.duet-page-heading .background .background-mask{position:absolute;top:-20px;right:0;display:block;width:286px;height:331px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIxIiBoZWlnaHQ9IjI1NyIgdmlld0JveD0iMCAwIDcyMSAyNTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yODIwXzY5OTkxKSI+CjxwYXRoIGQ9Ik04MC4xNzA1IDIzLjE4MTVDOTEuOTY5OSAxOC44NjU5IDEwMi44NyAxMS42NTU5IDExMi45MDkgMS41NjQ0OEMxMjMuNzcgLTguMzA1MjcgMTM0LjM4MiAtMTguMjAxMSAxNDQuODI2IC0yOC4xODgyQzE1NS4yNDMgLTM4LjE2MjIgMTY1LjkwOCAtNDguMDg0MSAxNzYuN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NTkuMDU3IDIwNy41MjUgNjc4LjU2MiAxOTkuMzkgNjk2LjU0MSAxODkuMDc3IiBmaWxsPSIjRjVGNUY3Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMjgyMF82OTk5MSI+CjxyZWN0IHdpZHRoPSI3MjEiIGhlaWdodD0iMjU2Ljg0OCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K");background-repeat:no-repeat;background-size:contain}@media (min-width: 48em){.duet-page-heading .background .background-mask{top:-40px;width:502px;height:577px}}.duet-page-heading .background .brand-shape{position:absolute;top:-157px;right:-20px;width:185px;height:185px;background:rgb(0, 119, 179);border-radius:20%;mix-blend-mode:normal;opacity:0.2;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shape{top:-280px;right:-40px;width:325px;height:325px}}.duet-page-heading .background .brand-shape.second-shape{top:-182px;right:100px;width:207px;height:207px;background:rgb(11, 114, 136);opacity:0.1}@media (min-width: 48em){.duet-page-heading .background .brand-shape.second-shape{top:-325px;right:200px;width:365px;height:365px}}.duet-page-heading .background .brand-shaped-icon{position:absolute;top:20px;right:16px;display:flex;align-items:center;justify-content:center;width:85px;width:60px;height:85px;height:60px;background:rgba(0, 119, 179, 0.75);border-radius:25%;mix-blend-mode:normal;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon{right:36px;width:93px;height:93px}}.duet-page-heading .background .brand-shaped-icon duet-icon{width:60px;height:60px;transform:rotate(-7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon duet-icon{width:75px;height:75px}}.duet-page-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(8, 42, 77)}.duet-page-heading.duet-theme-turva .brand-shaped-icon{background:rgba(198, 12, 48, 0.9);-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-repeat:no-repeat;mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");mask-repeat:no-repeat}.duet-page-heading.duet-theme-turva .brand-shaped-icon duet-icon{position:relative;top:-3px}';var DuetPageHeadingStyle0=duetPageHeadingCss;var DuetPageHeading=function(){function M(M){registerInstance(this,M);this.theme="";this.icon="";this.layout="narrow"}M.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};M.prototype.render=function(){var M;var N=this.layout==="narrow"?"narrow":this.layout==="fluid"?"fluid":"auto";return h("div",{key:"7158f6bb1baba0316e310548c2f11fbba22ed802",class:(M={"duet-page-heading":true,"duet-theme-turva":this.theme==="turva","has-icon":!!this.icon},M[N]=true,M)},h("div",{key:"9279bef8f915599c716557dcb4cfae9e8ebdcdd7",class:"background"},this.theme==="turva"&&h("div",{key:"88fee514b2c9d6db4993c6070e379e6d354b7f91",class:"background-mask"}),this.theme!=="turva"&&h("div",{key:"cf612c48b8322c7b6f8d15e9e3ae7929ebfc754c",class:"brand-shape"}),this.theme!=="turva"&&h("div",{key:"c370d729b95244f6b94a6dc1ad15494af14bdcad",class:"brand-shape second-shape"}),this.icon&&h("div",{key:"c6d34424c53f9fd3d0596a04d2fc111e78c36187",class:"brand-shaped-icon"},h("duet-icon",{key:"df9bf6856c35d65c8490b3c4738a56ffb5a1b8ee",background:"none",name:this.icon,margin:"none",size:"auto",responsive:false}))),h("div",{key:"275b220fddac6f60e953cc2dee0aaf6a9766807a",class:"heading"},h("slot",{key:"fb7b03458b5853815d412eddd93a164f21d102c6",name:"heading"})))};Object.defineProperty(M.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return M}();DuetPageHeading.style=DuetPageHeadingStyle0;export{DuetPageHeading as duet_page_heading};
4
+ import{r as registerInstance,h,g as getElement}from"./index-6a453dd4.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetPageHeadingCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-page-heading{position:relative;display:block;width:100%;margin:0 auto;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(8, 42, 77)}.duet-page-heading.duet-p-0{padding:0 !important}.duet-page-heading.duet-m-0{margin:0 !important}.duet-page-heading.auto{overflow:visible}.duet-page-heading.auto .heading,.duet-page-heading.auto .background{max-width:none}.duet-page-heading.fluid,.duet-page-heading.narrow{padding:0 16px}@media (min-width: 36em){.duet-page-heading.fluid{padding:0 28px}}@media (min-width: 62em){.duet-page-heading.fluid{padding:0 56px}}@media (min-width: 76.25em){.duet-page-heading.fluid{max-width:1110px;padding:0}}.duet-page-heading.narrow{max-width:888px}@media (min-width: 36em){.duet-page-heading.narrow{padding:0 48px}}@media (min-width: 48em){.duet-page-heading.narrow{padding:0 72px}}.duet-page-heading .heading{max-width:744px;padding:48px 90px 16px 0}@media (min-width: 48em){.duet-page-heading .heading{padding:72px 150px 40px 0}}.duet-page-heading:not(.has-icon) .heading{padding-right:0}.duet-page-heading .background{position:absolute;top:0;right:0;left:0;width:100%;max-width:744px;height:104px;margin:0 auto;margin:0 auto}@media (min-width: 48em){.duet-page-heading .background{height:165px}}.duet-page-heading .background .background-mask{position:absolute;top:-20px;right:0;display:block;width:286px;height:331px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIxIiBoZWlnaHQ9IjI1NyIgdmlld0JveD0iMCAwIDcyMSAyNTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yODIwXzY5OTkxKSI+CjxwYXRoIGQ9Ik04MC4xNzA1IDIzLjE4MTVDOTEuOTY5OSAxOC44NjU5IDEwMi44NyAxMS42NTU5IDExMi45MDkgMS41NjQ0OEMxMjMuNzcgLTguMzA1MjcgMTM0LjM4MiAtMTguMjAxMSAxNDQuODI2IC0yOC4xODgyQzE1NS4yNDMgLTM4LjE2MjIgMTY1LjkwOCAtNDguMDg0MSAxNzYuNzQzIC01Ny45Mjc4QzE3OC44MTYgLTU5LjA0OSAxODAuNDk4IC02MC4yODc3IDE4MS43ODggLTYxLjY1NjdDMTgzLjA2NiAtNjMuMDEyNiAxODUuNDY1IC02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aCBpZD0iY2xpcDBfMjgyMF82OTk5MSI+CjxyZWN0IHdpZHRoPSI3MjEiIGhlaWdodD0iMjU2Ljg0OCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K");background-repeat:no-repeat;background-size:contain}@media (min-width: 48em){.duet-page-heading .background .background-mask{top:-40px;width:502px;height:577px}}.duet-page-heading .background .brand-shape{position:absolute;top:-157px;right:-20px;width:185px;height:185px;background:rgb(0, 119, 179);border-radius:20%;mix-blend-mode:normal;opacity:0.2;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shape{top:-280px;right:-40px;width:325px;height:325px}}.duet-page-heading .background .brand-shape.second-shape{top:-182px;right:100px;width:207px;height:207px;background:rgb(11, 114, 136);opacity:0.1}@media (min-width: 48em){.duet-page-heading .background .brand-shape.second-shape{top:-325px;right:200px;width:365px;height:365px}}.duet-page-heading .background .brand-shaped-icon{position:absolute;top:20px;right:16px;display:flex;align-items:center;justify-content:center;width:85px;width:60px;height:85px;height:60px;background:rgba(0, 119, 179, 0.75);border-radius:25%;mix-blend-mode:normal;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon{right:36px;width:93px;height:93px}}.duet-page-heading .background .brand-shaped-icon duet-icon{width:60px;height:60px;transform:rotate(-7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon duet-icon{width:75px;height:75px}}.duet-page-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(8, 42, 77)}.duet-page-heading.duet-theme-turva .brand-shaped-icon{background:rgba(198, 12, 48, 0.9);-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-repeat:no-repeat;mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");mask-repeat:no-repeat}.duet-page-heading.duet-theme-turva .brand-shaped-icon duet-icon{position:relative;top:-3px}.duet-page-heading .progress-indicator{display:flex;flex-direction:row;gap:4px}.duet-page-heading .progress-step{width:100%;height:4px;background-color:rgb(181, 198, 208);border-radius:2px}.duet-page-heading .progress-step.active{background-color:rgb(0, 119, 179)}';var DuetPageHeadingStyle0=duetPageHeadingCss;var DuetPageHeading=function(){function M(M){registerInstance(this,M);this.theme="";this.icon="";this.layout="narrow";this.progressCurrentStep=undefined;this.progressTotalSteps=undefined}M.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};M.prototype.progressIndicator=function(){var M=this;return h("div",{class:"progress-indicator"},Array.from({length:Math.ceil(this.progressTotalSteps)},(function(N,g){var j=g+1;return h("div",{class:{"progress-step":true,active:j<=M.progressCurrentStep}})})))};M.prototype.render=function(){var M;var N=this.layout==="narrow"?"narrow":this.layout==="fluid"?"fluid":"auto";return h("div",{key:"2a170e4c6fc33fdba313ded3c3f01a78c9ac0866",class:(M={"duet-page-heading":true,"duet-theme-turva":this.theme==="turva","has-icon":!!this.icon},M[N]=true,M)},h("div",{key:"4b02d9d0134c3cb06bba6bdbd1b20f9d2d26e56a",class:"background"},this.theme==="turva"&&h("div",{key:"ba779c516b2646ea7b062bd893a5928a91770b51",class:"background-mask"}),this.theme!=="turva"&&h("div",{key:"975ea6aff24cd955e428eb5c92312984dc034d56",class:"brand-shape"}),this.theme!=="turva"&&h("div",{key:"cc7486a21275418c5bb85daef2f87a8272b94aa7",class:"brand-shape second-shape"}),this.icon&&h("div",{key:"47ea901848ac5c4e50bc3c961d9bfa6f904d6d37",class:"brand-shaped-icon"},h("duet-icon",{key:"370ac1f81a9d150ca01159b00a60cd8a730aef5f",background:"none",name:this.icon,margin:"none",size:"auto",responsive:false}))),h("div",{key:"0b151e3015924091b9e9a35145e23754234641ef",class:"heading"},h("slot",{key:"89c063ef8fceed0f4c75255f29dcd7200f394976",name:"heading"}),this.progressCurrentStep&&this.progressTotalSteps&&h("div",{key:"ee3688b0e6d3145fbf47501fc353caa398898e5f"},h("duet-spacer",{key:"0b86d382eee4c4287419fe1c660970f943c32cba",size:"large"}),h("div",{key:"e0010cce92077310161c55fd134b022eb8f7e035",role:"presentation"},this.progressIndicator()))))};Object.defineProperty(M.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return M}();DuetPageHeading.style=DuetPageHeadingStyle0;export{DuetPageHeading as duet_page_heading};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,i,a){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function r(t){try{u(a.next(t))}catch(t){s(t)}}function o(t){try{u(a["throw"](t))}catch(t){s(t)}}function u(t){t.done?i(t.value):n(t.value).then(r,o)}u((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},a,n,s,r;return r={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function o(t){return function(e){return u([t,e])}}function u(o){if(a)throw new TypeError("Generator is already executing.");while(r&&(r=0,o[0]&&(i=0)),i)try{if(a=1,n&&(s=o[0]&2?n["return"]:o[0]?n["throw"]||((s=n["return"])&&s.call(n),0):n.next)&&!(s=s.call(n,o[1])).done)return s;if(n=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;n=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];n=0}finally{a=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-f5d67bb6.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{d as debounce}from"./js-utils-9b9e0039.js";import{k as isArrowKey,l as isNumber,d as isArrowLeftKey,b as isArrowUpKey,a as isArrowRightKey,c as isArrowDownKey,m as isMinusKey,n as isPlusKey}from"./keyboard-utils-439bcc8b.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-bd643c5c.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";import{b as breakpointTokensUpTo,a as breakpointToToken}from"./token-utils-3c2fb643.js";import"./tokens.module-216c2ae9.js";var shouldDisplayNavigation=function(t,e,i){if(t*2>e/i){return false}return true};var duetPaginationCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}.duet-pagination .duet-pagination-select{margin:0 4px 0 12px !important}.duet-pagination-total-pages{margin:0;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 !important;line-height:1.25;color:rgb(8, 42, 77);text-align:left}:host(.duet-theme-turva) .duet-pagination-total-pages{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)}';var DuetPaginationStyle0=duetPaginationCss;var DuetPagination=function(){function t(t){var e=this;registerInstance(this,t);this.duetPageChange=createEvent(this,"duetPageChange",3);this.listId=createID("duet-pagination-list");this.firstRenderDone=false;this.handleMediaQueryChange=function(t){e.matchesCompactBreakpoint=breakpointTokensUpTo.includes(e.compactBreakpoint)?t.matches:!t.matches};this.actionChain=function(t,i){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:if(!(t===0))return[3,1];this.current=1;return[3,4];case 1:if(!(t>this.totalPages))return[3,2];this.current=this.totalPages;return[3,4];case 2:if(!(i!==t))return[3,4];e=Math.ceil(t/this.visibleItems)-1;if(!(e!==this.internalSectionIndex))return[3,4];this.internalSectionIndex=e;return[4,this.setFocus()];case 3:a.sent();a.label=4;case 4:return[2,true]}}))}))};this.emitPageEvent=function(t,i){var a=Number(i||e.current);e.duetPageChange.emit({component:"duet-pagination",from:a*e.take,to:a*e.take+e.take,current:a,take:e.take,type:"page",originalEvent:t})};this.getEnteredNumber=debounce((function(t){e.emitPageEvent(t,e.numbersStore);e.current=Number(e.numbersStore);e.numbersStore="";e.duetPageChange.emit({component:"duet-pagination",from:e.current*e.take,to:e.current*e.take+e.take,current:e.current,take:e.take,type:"jump",originalEvent:t})}),500);this.processedPageLinks=null;this.numbersStore="";this.matchesCompactBreakpoint=false;this.totalPages=10;this.internalSectionIndex=0;this.theme="";this.disabled=false;this.variation="default";this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabelsDefaults={en:{next_page:"Next page",previous_page:"Previous page",first_page:"First page",last_page:"Last page",jump_to:"Jump to page",go_to:"Go to page",description:"You may use arrow keys to select page number",pagination_label:"Pagination, choose a number to jump to a page",select_label:"Total pages {0}, 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",select_label:"Sivuja yhteensä {0}, 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:"Paginering, välj en siffra för att hoppa till en sida",select_label:"Totalt antal sidor {0}, välj en siffra för att hoppa till en sida",prev_section:"Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",next_section:"Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera"}};this.accessibleLabels=getLocaleString(this.accessibleLabelsDefaults);this.take=5;this.visibleItems=5;this.total=1e3;this.compactBreakpoint="x-small";this.ariaControls="";this.current=1;this.pageLinks=undefined}t.prototype.watchPropTotalHandler=function(){this.calculatePageTake();return true};t.prototype.watchStateHandler=function(t,e){return this.actionChain(t,e)};t.prototype.componentWillLoad=function(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1;this.calculatePageTake();inheritGlobalTheme(this);this.refresh()};t.prototype.componentDidLoad=function(){this.firstRenderDone=true};t.prototype.componentWillRender=function(){if(this.internalSectionIndex!==0&&this.internalSectionIndex!==this.totalPages){this.calculatePageTake()}};t.prototype.componentDidRender=function(){if(this.firstRenderDone&&!this.processedPageLinks){this.setFocus()}};t.prototype.connectedCallback=function(){var t=this.compactBreakpoint==="none"?"all":breakpointToToken[this.compactBreakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",debounce(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);connectLanguageChangeObserver(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})};t.prototype.disconnectedCallback=function(){this.mq.removeEventListener("change",this.handleMediaQueryChange);this.mq=null;this.matchesCompactBreakpoint=false;disconnectLanguageChangeObserver(this)};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.processedPageLinks=parsePossibleJSON(this.pageLinks);return[2]}))}))};t.prototype.calculatePageTake=function(){this.totalPages=Math.ceil(this.total/this.take)};t.prototype.onMouseHandler=function(t,e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(this.disabled){return[2]}if(!this.processedPageLinks){t.preventDefault();t.stopPropagation();this.current=this.current+e}this.emitPageEvent(t);return[2]}))}))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){if(this.disabled){return[2]}e=this.current;if(isArrowLeftKey(t)||isArrowUpKey(t)){e--}if(isArrowRightKey(t)||isArrowDownKey(t)){e++}if(isArrowKey(t)){if(e<=this.totalPages){this.current=e;if(this.processedPageLinks){this.emitPageEvent(t,e-1);window.open(this.processedPageLinks[e-1],"_self","")}else{this.emitPageEvent(t)}}}if(isNumber(t)&&this.shouldDisplayNavigation()){this.numbersStore=this.numbersStore+t.key;if(Number(this.numbersStore)>this.totalPages){this.numbersStore=this.totalPages+""}this.getEnteredNumber(t)}return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:t=this.nativeNav.querySelector("[data-id='".concat(this.current,"']"));e=t;if(!e)return[3,2];return[4,t.setFocus()];case 1:e=i.sent();i.label=2;case 2:e;return[2]}}))}))};t.prototype.pageClickHandler=function(t){var e=Number(t.target.getAttribute("data-id"));if(!this.processedPageLinks){t.preventDefault();this.current=e}this.emitPageEvent(t,e)};t.prototype.selectClickHandler=function(t){t.preventDefault();var e=Number(t.target.value);this.current=e;if(this.processedPageLinks){this.emitPageEvent(t,e-1);window.open(this.processedPageLinks[e-1],"_self","")}else{this.emitPageEvent(t,e)}};t.prototype.sectionClickHandler=function(t,e){t.preventDefault();var i=this.internalSectionIndex+e;var a=this.take*this.visibleItems;if(i*a>this.total){i=this.internalSectionIndex}var n=i;this.internalSectionIndex=n>=0?n:0};t.prototype.jumpToStart=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=0;this.current=1}this.emitPageEvent(t)};t.prototype.jumpToEnd=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1);this.current=this.totalPages}this.emitPageEvent(t)};t.prototype.renderPageButton=function(t){var e=this;return h("duet-button",{disabled:this.disabled,class:{"duet-pagination-link":true},id:"page-".concat(t,"-button"),color:t!==this.current?this.theme!=="turva"?"secondary":"secondary-turva":this.theme!=="turva"?"primary":"primary-turva","data-id":t,"center-text":true,variation:"plain",margin:"none",accessibleLabel:"".concat(this.accessibleLabels.go_to," ").concat(t),onClick:function(t){return e.pageClickHandler(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[t-1]:undefined},h("div",{class:"duet-pagination-page-number","aria-hidden":true},t))};t.prototype.renderPageNumbers=function(){var t=[];var e=this.internalSectionIndex*this.visibleItems;do{e++;if(e>this.totalPages){break}t.push(h("li",{class:{"duet-pagination-item":true,"duet-pagination-item-is-active":e===this.current},role:"menuitem"},this.renderPageButton(e)))}while(e<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t};t.prototype.renderSelect=function(){var t=this;var e=[];for(var i=1;i<=this.totalPages;i++){e.push({value:i.toString(),label:i.toString()})}var a=h("duet-select",{disabled:this.disabled,theme:this.theme,class:"duet-pagination-select",variation:"compact",items:JSON.stringify(e),value:this.current.toString(),label:this.accessibleLabels.select_label.replace("{0}","".concat(this.totalPages)),labelHidden:true,onDuetChange:function(e){return t.selectClickHandler(e)}});return h("li",null,a,h("span",{class:"duet-pagination-total-pages","aria-hidden":"true"},"/ ",this.totalPages))};t.prototype.shouldDisplayNavigation=function(){if(this.variation!=="compact"&&!this.matchesCompactBreakpoint){return shouldDisplayNavigation(this.visibleItems,this.total,this.take)}return false};t.prototype.render=function(){var t;var e=this;return h(Host,{key:"756ad0511064e85742b3bb271bdd2a468f3f1eb0",onKeyDown:function(t){return e.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},h("nav",{key:"4d235370cef9fc2b6d9448b2b02a02eefc04b97b",role:"navigation","aria-labelledby":this.accessibleLabelledBy?"".concat(this.accessibleLabelledBy," ").concat(this.listId):this.listId,"aria-describedby":this.accessibleDescribedBy?"".concat(this.accessibleDescribedBy," ").concat(this.listId):this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:function(t){return e.nativeNav=t},"aria-controls":this.ariaControls,class:(t={"duet-pagination-nav":true},t["duet-pagination-variation-".concat(this.variation)]=true,t)},this.numbersStore!==""&&h("div",{key:"4e98bb73d78c7cb713ac1de78d9d5ccbdce1687d","aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":"".concat(this.accessibleLabels.jump_to," ").concat(this.numbersStore),part:"navigation-overlay"},h("duet-badge",{key:"9d16f94604abbcfbbd8b538395e46c024b88c0a2",theme:this.theme},"jump to page : ",this.numbersStore)),h("ol",{key:"7bbec70a660779cabba7847dd76732e9bfb71f1b",id:this.listId,class:{"duet-pagination":true,"duet-pagination-is-dimmed":this.numbersStore!==""},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},(this.variation==="compact"||this.matchesCompactBreakpoint)&&h("li",{key:"974c29ddf4de1b7aca6e24f289be9fbb4177eb56",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"d8fd5f3a859d470c11c15ae197313cc6c8983fc2",disabled:this.internalSectionIndex===0&&this.current<=1||this.disabled,"data-direction":"back",accessibleLabel:this.accessibleLabels.first_page,title:this.accessibleLabels.first_page,onClick:function(t){return e.jumpToStart(t)},"icon-name":"action-move-to-first",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined})),h("li",{key:"c03e92b8f6ba758dd49e881380c964c87f155dcc",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"71b346d9a35b397951223fb32bdd449441dab0bf",disabled:!!(this.internalSectionIndex===0&&this.current<=1||this.current<=1&&this.processedPageLinks||this.disabled),"data-direction":"back",onClick:function(t){return e.onMouseHandler(t,-1)},"accessible-label":this.accessibleLabels.previous_page,title:this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current-2]:undefined})),this.internalSectionIndex!==0&&this.shouldDisplayNavigation()&&h(Fragment,{key:"142ba228678916f8f9a69de0c8f38430c6db7623"},h("li",{key:"6e2370fdf3f65c69d30ccee081b6426c12267a11",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"887ee7242f007578beb3b1a59702ab619d0a7e5e",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:this.theme!=="turva"?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:function(t){return e.jumpToStart(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined},h("div",{key:"0b5d04b555f074972abcc93a70a0d80bdadabcd4",class:"duet-pagination-page-number"},"1"))),h("li",{key:"3cbe3bbf9ef3406f2a98aa736f692aaf87119857",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"462643a69aeecc463a23ba22f0bf79ea8c4456c3",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return e.sectionClickHandler(t,-1)},theme:this.theme},h("div",{key:"fa748ff5b134b6a0a3a4550f0073fbf45baf2337",class:"duet-pagination-page-number","aria-hidden":"true"},"…")))),this.shouldDisplayNavigation()&&this.renderPageNumbers()||this.renderSelect(),(this.internalSectionIndex+1)*this.visibleItems<this.totalPages&&this.shouldDisplayNavigation()&&h(Fragment,{key:"0459e62e54d351fa5f22afa7afb3a3a6027df6c1"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&h("li",{key:"fb76ad813a83768da7a52230342170198efc321d",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"14b9164e41b63d0adbbfe5ef29074a46695a44d6",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return e.sectionClickHandler(t,1)},theme:this.theme},h("div",{key:"551f91a348760b5101e88adc3a3d8a3d692fc804",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),h("li",{key:"454ccc661d104be10d0a3908fa7516e1f627fb57",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"01eeca39b9de17e25c39ffec6296c26920b86380",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:function(t){return e.jumpToEnd(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.processedPageLinks.length-1]:undefined},h("div",{key:"f4c0ca8a738f21233a966611c8ce15d7f776c7d7",class:"duet-pagination-page-number"},this.totalPages)))),h("li",{key:"3dc850213f9f9c7aac8cabba1901740d6068cdde",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"ddf5b89fac538ccdae84e031bea7a2830f656bc0",disabled:!!(this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.current===this.totalPages&&this.processedPageLinks)||this.disabled,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,title:this.accessibleLabels.next_page,onClick:function(t){return e.onMouseHandler(t,1)},"icon-name":"action-move-to-next",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current]:undefined})),(this.variation==="compact"||this.matchesCompactBreakpoint)&&h("li",{key:"78c2482a7d36358e53000e55c19057c2b4585165",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"330747e12a1e3d8bc0fb74f3945d99c06d8132d0",disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.disabled,accessibleLabel:this.accessibleLabels.last_page,title:this.accessibleLabels.last_page,onClick:function(t){return e.jumpToEnd(t)},"icon-name":"action-move-to-last",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.totalPages-1]:undefined})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"],pageLinks:["refresh"]}},enumerable:false,configurable:true});return t}();DuetPagination.style=DuetPaginationStyle0;var duetRangeStepperCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(8, 42, 77)}.duet-range-stepper ::part(button){border:0}";var DuetRangeStepperStyle0=duetRangeStepperCss;var DuetRangeStepper=function(){function t(t){var e=this;registerInstance(this,t);this.duetRangeStepUpdate=createEvent(this,"duetRangeStepUpdate",7);this.leftBn=createID("duetRangeStepper-left");this.rightBn=createID("duetRangeStepper-right");this.handleClick=function(t,i){t.preventDefault();e.stepIndex+=i;e.clampStepIndex();e.handleStepClick(t)};this.buttonLeftDisabled=false;this.buttonRightDisabled=false;this.theme="";this.disabled=false;this.stepIndex=1;this.stepSize=50;this.total=1e3;this.ariaLabelsDefaults={en:{next_increment:"Next range increment",previous_increment:"Previous range increment",x_of_y:"{0}–{1} of {2}"},fi:{next_increment:"Seuraava välillä",previous_increment:"Edellinen välillä",x_of_y:"{0}–{1} / {2}"},sv:{next_increment:"Nästa intervall",previous_increment:"Föregående intervall",x_of_y:"{0}–{1} av {2}"}};this.ariaLabels=getLocaleString(this.ariaLabelsDefaults);this.ariaControls=""}t.prototype.watchStepIndexStateHandler=function(t){if(this.leftBnRef&&this.rightBnRef){if(t<=1){if(this.element===document.activeElement){this.rightBnRef.setFocus()}this.buttonLeftDisabled=true}else{this.buttonLeftDisabled=false}if(t>=this.total/this.stepSize){if(this.element===document.activeElement){this.leftBnRef.setFocus()}this.buttonRightDisabled=true}else{this.buttonRightDisabled=false}}};t.prototype.watchStepSizeStateHandler=function(t,e){if(t!==e){if(this.stepIndex*t>this.total){this.stepIndex=Math.ceil(this.total/t)}this.watchStepIndexStateHandler(this.stepIndex)}};t.prototype.handleStepClick=function(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.clampStepIndex()};t.prototype.componentDidLoad=function(){this.watchStepIndexStateHandler(this.stepIndex)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};t.prototype.clampStepIndex=function(){if(this.stepIndex<1){this.stepIndex=1}else if(this.stepIndex*this.stepSize>this.total){this.stepIndex=Math.ceil(this.total/this.stepSize)}};t.prototype.getFrom=function(){return Math.floor((this.stepIndex-1)*this.stepSize)+1};t.prototype.getTo=function(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)};t.prototype.generateStepSize=function(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))};t.prototype.generatePreviousIncrementLabel=function(){if(this.getFrom()===1){return""}return this.ariaLabels.x_of_y.replace("{0}",String(Math.max(this.getFrom()-this.stepSize,1))).replace("{1}",String(Math.min(this.getFrom()-1,this.total))).replace("{2}",String(this.total))};t.prototype.generateNextIncrementLabel=function(){if(this.getTo()===this.total){return""}return this.ariaLabels.x_of_y.replace("{0}",String(this.getTo()+1)).replace("{1}",String(Math.min(this.getTo()+this.stepSize,this.total))).replace("{2}",String(this.total))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(a){if(this.disabled){return[2]}e=this.stepIndex;i=1;if(isArrowLeftKey(t)||isArrowUpKey(t)||isMinusKey(t)){e--;i=-1;this.leftBnRef.setFocus()}if(isArrowRightKey(t)||isArrowDownKey(t)||isPlusKey(t)){e++;i=1}if(isArrowKey(t)){if(e>0&&e*this.stepSize<=this.total){this.handleClick(t,i)}}return[2]}))}))};t.prototype.render=function(){var t=this;return h("div",{key:"43d93bf62ed3c3b091933da841d015662b158e50",class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(e){return t.onKeyboardDown(e)},"aria-controls":this.ariaControls},h("span",{key:"0eb7fa8f8e1f5853a16c85f8d9670c70d531f13a",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),h("duet-action-button",{key:"b89f2b93dfe5a510bf6acbdf30ce694ff1ac59dc",disabled:this.disabled||this.buttonLeftDisabled,class:"duet-range-step-button duet-range-step-minus",onClick:function(e){return t.handleClick(e,-1)},id:this.leftBn,"accessible-label":"".concat(this.ariaLabels.previous_increment," ").concat(this.generatePreviousIncrementLabel()),ref:function(e){return t.leftBnRef=e},part:"navigation-arrow",iconName:"action-arrow-left-small",title:""}),h("duet-action-button",{key:"a9d84ec5096ae382828ee82ba75bd558b08d49ea",disabled:this.disabled||this.buttonRightDisabled,class:"duet-range-step-button duet-range-step-plus",onClick:function(e){return t.handleClick(e,1)},"accessible-label":"".concat(this.ariaLabels.next_increment," ").concat(this.generateNextIncrementLabel()),id:this.rightBn,ref:function(e){return t.rightBnRef=e},part:"navigation-arrow",iconName:"action-arrow-right-small",title:""}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}},enumerable:false,configurable:true});return t}();DuetRangeStepper.style=DuetRangeStepperStyle0;export{DuetPagination as duet_pagination,DuetRangeStepper as duet_range_stepper};
4
+ */import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-6a453dd4.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{d as debounce}from"./js-utils-9b9e0039.js";import{k as isArrowKey,l as isNumber,d as isArrowLeftKey,b as isArrowUpKey,a as isArrowRightKey,c as isArrowDownKey,m as isMinusKey,n as isPlusKey}from"./keyboard-utils-439bcc8b.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-0506f7de.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";import{b as breakpointTokensUpTo,a as breakpointToToken}from"./token-utils-3c2fb643.js";import"./tokens.module-216c2ae9.js";var shouldDisplayNavigation=function(t,e,i){if(t*2>e/i){return false}return true};var duetPaginationCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}.duet-pagination .duet-pagination-select{margin:0 4px 0 12px !important}.duet-pagination-total-pages{margin:0;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 !important;line-height:1.25;color:rgb(8, 42, 77);text-align:left}:host(.duet-theme-turva) .duet-pagination-total-pages{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)}';var DuetPaginationStyle0=duetPaginationCss;var DuetPagination=function(){function t(t){var e=this;registerInstance(this,t);this.duetPageChange=createEvent(this,"duetPageChange",3);this.listId=createID("duet-pagination-list");this.firstRenderDone=false;this.handleMediaQueryChange=function(t){e.matchesCompactBreakpoint=breakpointTokensUpTo.includes(e.compactBreakpoint)?t.matches:!t.matches};this.actionChain=function(t,i){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(a){switch(a.label){case 0:if(!(t===0))return[3,1];this.current=1;return[3,4];case 1:if(!(t>this.totalPages))return[3,2];this.current=this.totalPages;return[3,4];case 2:if(!(i!==t))return[3,4];e=Math.ceil(t/this.visibleItems)-1;if(!(e!==this.internalSectionIndex))return[3,4];this.internalSectionIndex=e;return[4,this.setFocus()];case 3:a.sent();a.label=4;case 4:return[2,true]}}))}))};this.emitPageEvent=function(t,i){var a=Number(i||e.current);e.duetPageChange.emit({component:"duet-pagination",from:a*e.take,to:a*e.take+e.take,current:a,take:e.take,type:"page",originalEvent:t})};this.getEnteredNumber=debounce((function(t){e.emitPageEvent(t,e.numbersStore);e.current=Number(e.numbersStore);e.numbersStore="";e.duetPageChange.emit({component:"duet-pagination",from:e.current*e.take,to:e.current*e.take+e.take,current:e.current,take:e.take,type:"jump",originalEvent:t})}),500);this.processedPageLinks=null;this.numbersStore="";this.matchesCompactBreakpoint=false;this.totalPages=10;this.internalSectionIndex=0;this.theme="";this.disabled=false;this.variation="default";this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabelsDefaults={en:{next_page:"Next page",previous_page:"Previous page",first_page:"First page",last_page:"Last page",jump_to:"Jump to page",go_to:"Go to page",description:"You may use arrow keys to select page number",pagination_label:"Pagination, choose a number to jump to a page",select_label:"Total pages {0}, 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",select_label:"Sivuja yhteensä {0}, 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:"Paginering, välj en siffra för att hoppa till en sida",select_label:"Totalt antal sidor {0}, välj en siffra för att hoppa till en sida",prev_section:"Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",next_section:"Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera"}};this.accessibleLabels=getLocaleString(this.accessibleLabelsDefaults);this.take=5;this.visibleItems=5;this.total=1e3;this.compactBreakpoint="x-small";this.ariaControls="";this.current=1;this.pageLinks=undefined}t.prototype.watchPropTotalHandler=function(){this.calculatePageTake();return true};t.prototype.watchStateHandler=function(t,e){return this.actionChain(t,e)};t.prototype.componentWillLoad=function(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1;this.calculatePageTake();inheritGlobalTheme(this);this.refresh()};t.prototype.componentDidLoad=function(){this.firstRenderDone=true};t.prototype.componentWillRender=function(){if(this.internalSectionIndex!==0&&this.internalSectionIndex!==this.totalPages){this.calculatePageTake()}};t.prototype.componentDidRender=function(){if(this.firstRenderDone&&!this.processedPageLinks){this.setFocus()}};t.prototype.connectedCallback=function(){var t=this.compactBreakpoint==="none"?"all":breakpointToToken[this.compactBreakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",debounce(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);connectLanguageChangeObserver(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})};t.prototype.disconnectedCallback=function(){this.mq.removeEventListener("change",this.handleMediaQueryChange);this.mq=null;this.matchesCompactBreakpoint=false;disconnectLanguageChangeObserver(this)};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.processedPageLinks=parsePossibleJSON(this.pageLinks);return[2]}))}))};t.prototype.calculatePageTake=function(){this.totalPages=Math.ceil(this.total/this.take)};t.prototype.onMouseHandler=function(t,e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(this.disabled){return[2]}if(!this.processedPageLinks){t.preventDefault();t.stopPropagation();this.current=this.current+e}this.emitPageEvent(t);return[2]}))}))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){if(this.disabled){return[2]}e=this.current;if(isArrowLeftKey(t)||isArrowUpKey(t)){e--}if(isArrowRightKey(t)||isArrowDownKey(t)){e++}if(isArrowKey(t)){if(e<=this.totalPages){this.current=e;if(this.processedPageLinks){this.emitPageEvent(t,e-1);window.open(this.processedPageLinks[e-1],"_self","")}else{this.emitPageEvent(t)}}}if(isNumber(t)&&this.shouldDisplayNavigation()){this.numbersStore=this.numbersStore+t.key;if(Number(this.numbersStore)>this.totalPages){this.numbersStore=this.totalPages+""}this.getEnteredNumber(t)}return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:t=this.nativeNav.querySelector("[data-id='".concat(this.current,"']"));e=t;if(!e)return[3,2];return[4,t.setFocus()];case 1:e=i.sent();i.label=2;case 2:e;return[2]}}))}))};t.prototype.pageClickHandler=function(t){var e=Number(t.target.getAttribute("data-id"));if(!this.processedPageLinks){t.preventDefault();this.current=e}this.emitPageEvent(t,e)};t.prototype.selectClickHandler=function(t){t.preventDefault();var e=Number(t.target.value);this.current=e;if(this.processedPageLinks){this.emitPageEvent(t,e-1);window.open(this.processedPageLinks[e-1],"_self","")}else{this.emitPageEvent(t,e)}};t.prototype.sectionClickHandler=function(t,e){t.preventDefault();var i=this.internalSectionIndex+e;var a=this.take*this.visibleItems;if(i*a>this.total){i=this.internalSectionIndex}var n=i;this.internalSectionIndex=n>=0?n:0};t.prototype.jumpToStart=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=0;this.current=1}this.emitPageEvent(t)};t.prototype.jumpToEnd=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1);this.current=this.totalPages}this.emitPageEvent(t)};t.prototype.renderPageButton=function(t){var e=this;return h("duet-button",{disabled:this.disabled,class:{"duet-pagination-link":true},id:"page-".concat(t,"-button"),color:t!==this.current?this.theme!=="turva"?"secondary":"secondary-turva":this.theme!=="turva"?"primary":"primary-turva","data-id":t,"center-text":true,variation:"plain",margin:"none",accessibleLabel:"".concat(this.accessibleLabels.go_to," ").concat(t),onClick:function(t){return e.pageClickHandler(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[t-1]:undefined},h("div",{class:"duet-pagination-page-number","aria-hidden":true},t))};t.prototype.renderPageNumbers=function(){var t=[];var e=this.internalSectionIndex*this.visibleItems;do{e++;if(e>this.totalPages){break}t.push(h("li",{class:{"duet-pagination-item":true,"duet-pagination-item-is-active":e===this.current},role:"menuitem"},this.renderPageButton(e)))}while(e<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t};t.prototype.renderSelect=function(){var t=this;var e=[];for(var i=1;i<=this.totalPages;i++){e.push({value:i.toString(),label:i.toString()})}var a=h("duet-select",{disabled:this.disabled,theme:this.theme,class:"duet-pagination-select",variation:"compact",items:JSON.stringify(e),value:this.current.toString(),label:this.accessibleLabels.select_label.replace("{0}","".concat(this.totalPages)),labelHidden:true,onDuetChange:function(e){return t.selectClickHandler(e)}});return h("li",null,a,h("span",{class:"duet-pagination-total-pages","aria-hidden":"true"},"/ ",this.totalPages))};t.prototype.shouldDisplayNavigation=function(){if(this.variation!=="compact"&&!this.matchesCompactBreakpoint){return shouldDisplayNavigation(this.visibleItems,this.total,this.take)}return false};t.prototype.render=function(){var t;var e=this;return h(Host,{key:"756ad0511064e85742b3bb271bdd2a468f3f1eb0",onKeyDown:function(t){return e.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},h("nav",{key:"4d235370cef9fc2b6d9448b2b02a02eefc04b97b",role:"navigation","aria-labelledby":this.accessibleLabelledBy?"".concat(this.accessibleLabelledBy," ").concat(this.listId):this.listId,"aria-describedby":this.accessibleDescribedBy?"".concat(this.accessibleDescribedBy," ").concat(this.listId):this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:function(t){return e.nativeNav=t},"aria-controls":this.ariaControls,class:(t={"duet-pagination-nav":true},t["duet-pagination-variation-".concat(this.variation)]=true,t)},this.numbersStore!==""&&h("div",{key:"4e98bb73d78c7cb713ac1de78d9d5ccbdce1687d","aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":"".concat(this.accessibleLabels.jump_to," ").concat(this.numbersStore),part:"navigation-overlay"},h("duet-badge",{key:"9d16f94604abbcfbbd8b538395e46c024b88c0a2",theme:this.theme},"jump to page : ",this.numbersStore)),h("ol",{key:"7bbec70a660779cabba7847dd76732e9bfb71f1b",id:this.listId,class:{"duet-pagination":true,"duet-pagination-is-dimmed":this.numbersStore!==""},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},(this.variation==="compact"||this.matchesCompactBreakpoint)&&h("li",{key:"974c29ddf4de1b7aca6e24f289be9fbb4177eb56",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"d8fd5f3a859d470c11c15ae197313cc6c8983fc2",disabled:this.internalSectionIndex===0&&this.current<=1||this.disabled,"data-direction":"back",accessibleLabel:this.accessibleLabels.first_page,title:this.accessibleLabels.first_page,onClick:function(t){return e.jumpToStart(t)},"icon-name":"action-move-to-first",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined})),h("li",{key:"c03e92b8f6ba758dd49e881380c964c87f155dcc",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"71b346d9a35b397951223fb32bdd449441dab0bf",disabled:!!(this.internalSectionIndex===0&&this.current<=1||this.current<=1&&this.processedPageLinks||this.disabled),"data-direction":"back",onClick:function(t){return e.onMouseHandler(t,-1)},"accessible-label":this.accessibleLabels.previous_page,title:this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current-2]:undefined})),this.internalSectionIndex!==0&&this.shouldDisplayNavigation()&&h(Fragment,{key:"142ba228678916f8f9a69de0c8f38430c6db7623"},h("li",{key:"6e2370fdf3f65c69d30ccee081b6426c12267a11",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"887ee7242f007578beb3b1a59702ab619d0a7e5e",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:this.theme!=="turva"?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:function(t){return e.jumpToStart(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined},h("div",{key:"0b5d04b555f074972abcc93a70a0d80bdadabcd4",class:"duet-pagination-page-number"},"1"))),h("li",{key:"3cbe3bbf9ef3406f2a98aa736f692aaf87119857",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"462643a69aeecc463a23ba22f0bf79ea8c4456c3",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return e.sectionClickHandler(t,-1)},theme:this.theme},h("div",{key:"fa748ff5b134b6a0a3a4550f0073fbf45baf2337",class:"duet-pagination-page-number","aria-hidden":"true"},"…")))),this.shouldDisplayNavigation()&&this.renderPageNumbers()||this.renderSelect(),(this.internalSectionIndex+1)*this.visibleItems<this.totalPages&&this.shouldDisplayNavigation()&&h(Fragment,{key:"0459e62e54d351fa5f22afa7afb3a3a6027df6c1"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&h("li",{key:"fb76ad813a83768da7a52230342170198efc321d",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"14b9164e41b63d0adbbfe5ef29074a46695a44d6",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return e.sectionClickHandler(t,1)},theme:this.theme},h("div",{key:"551f91a348760b5101e88adc3a3d8a3d692fc804",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),h("li",{key:"454ccc661d104be10d0a3908fa7516e1f627fb57",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"01eeca39b9de17e25c39ffec6296c26920b86380",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:function(t){return e.jumpToEnd(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.processedPageLinks.length-1]:undefined},h("div",{key:"f4c0ca8a738f21233a966611c8ce15d7f776c7d7",class:"duet-pagination-page-number"},this.totalPages)))),h("li",{key:"3dc850213f9f9c7aac8cabba1901740d6068cdde",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"ddf5b89fac538ccdae84e031bea7a2830f656bc0",disabled:!!(this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.current===this.totalPages&&this.processedPageLinks)||this.disabled,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,title:this.accessibleLabels.next_page,onClick:function(t){return e.onMouseHandler(t,1)},"icon-name":"action-move-to-next",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current]:undefined})),(this.variation==="compact"||this.matchesCompactBreakpoint)&&h("li",{key:"78c2482a7d36358e53000e55c19057c2b4585165",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"330747e12a1e3d8bc0fb74f3945d99c06d8132d0",disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.disabled,accessibleLabel:this.accessibleLabels.last_page,title:this.accessibleLabels.last_page,onClick:function(t){return e.jumpToEnd(t)},"icon-name":"action-move-to-last",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.totalPages-1]:undefined})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"],pageLinks:["refresh"]}},enumerable:false,configurable:true});return t}();DuetPagination.style=DuetPaginationStyle0;var duetRangeStepperCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(8, 42, 77)}.duet-range-stepper ::part(button){border:0}";var DuetRangeStepperStyle0=duetRangeStepperCss;var DuetRangeStepper=function(){function t(t){var e=this;registerInstance(this,t);this.duetRangeStepUpdate=createEvent(this,"duetRangeStepUpdate",7);this.leftBn=createID("duetRangeStepper-left");this.rightBn=createID("duetRangeStepper-right");this.handleClick=function(t,i){t.preventDefault();e.stepIndex+=i;e.clampStepIndex();e.handleStepClick(t)};this.buttonLeftDisabled=false;this.buttonRightDisabled=false;this.theme="";this.disabled=false;this.stepIndex=1;this.stepSize=50;this.total=1e3;this.ariaLabelsDefaults={en:{next_increment:"Next range increment",previous_increment:"Previous range increment",x_of_y:"{0}–{1} of {2}"},fi:{next_increment:"Seuraava välillä",previous_increment:"Edellinen välillä",x_of_y:"{0}–{1} / {2}"},sv:{next_increment:"Nästa intervall",previous_increment:"Föregående intervall",x_of_y:"{0}–{1} av {2}"}};this.ariaLabels=getLocaleString(this.ariaLabelsDefaults);this.ariaControls=""}t.prototype.watchStepIndexStateHandler=function(t){if(this.leftBnRef&&this.rightBnRef){if(t<=1){if(this.element===document.activeElement){this.rightBnRef.setFocus()}this.buttonLeftDisabled=true}else{this.buttonLeftDisabled=false}if(t>=this.total/this.stepSize){if(this.element===document.activeElement){this.leftBnRef.setFocus()}this.buttonRightDisabled=true}else{this.buttonRightDisabled=false}}};t.prototype.watchStepSizeStateHandler=function(t,e){if(t!==e){if(this.stepIndex*t>this.total){this.stepIndex=Math.ceil(this.total/t)}this.watchStepIndexStateHandler(this.stepIndex)}};t.prototype.handleStepClick=function(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.clampStepIndex()};t.prototype.componentDidLoad=function(){this.watchStepIndexStateHandler(this.stepIndex)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};t.prototype.clampStepIndex=function(){if(this.stepIndex<1){this.stepIndex=1}else if(this.stepIndex*this.stepSize>this.total){this.stepIndex=Math.ceil(this.total/this.stepSize)}};t.prototype.getFrom=function(){return Math.floor((this.stepIndex-1)*this.stepSize)+1};t.prototype.getTo=function(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)};t.prototype.generateStepSize=function(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))};t.prototype.generatePreviousIncrementLabel=function(){if(this.getFrom()===1){return""}return this.ariaLabels.x_of_y.replace("{0}",String(Math.max(this.getFrom()-this.stepSize,1))).replace("{1}",String(Math.min(this.getFrom()-1,this.total))).replace("{2}",String(this.total))};t.prototype.generateNextIncrementLabel=function(){if(this.getTo()===this.total){return""}return this.ariaLabels.x_of_y.replace("{0}",String(this.getTo()+1)).replace("{1}",String(Math.min(this.getTo()+this.stepSize,this.total))).replace("{2}",String(this.total))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(a){if(this.disabled){return[2]}e=this.stepIndex;i=1;if(isArrowLeftKey(t)||isArrowUpKey(t)||isMinusKey(t)){e--;i=-1;this.leftBnRef.setFocus()}if(isArrowRightKey(t)||isArrowDownKey(t)||isPlusKey(t)){e++;i=1}if(isArrowKey(t)){if(e>0&&e*this.stepSize<=this.total){this.handleClick(t,i)}}return[2]}))}))};t.prototype.render=function(){var t=this;return h("div",{key:"43d93bf62ed3c3b091933da841d015662b158e50",class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(e){return t.onKeyboardDown(e)},"aria-controls":this.ariaControls},h("span",{key:"0eb7fa8f8e1f5853a16c85f8d9670c70d531f13a",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),h("duet-action-button",{key:"b89f2b93dfe5a510bf6acbdf30ce694ff1ac59dc",disabled:this.disabled||this.buttonLeftDisabled,class:"duet-range-step-button duet-range-step-minus",onClick:function(e){return t.handleClick(e,-1)},id:this.leftBn,"accessible-label":"".concat(this.ariaLabels.previous_increment," ").concat(this.generatePreviousIncrementLabel()),ref:function(e){return t.leftBnRef=e},part:"navigation-arrow",iconName:"action-arrow-left-small",title:""}),h("duet-action-button",{key:"a9d84ec5096ae382828ee82ba75bd558b08d49ea",disabled:this.disabled||this.buttonRightDisabled,class:"duet-range-step-button duet-range-step-plus",onClick:function(e){return t.handleClick(e,1)},"accessible-label":"".concat(this.ariaLabels.next_increment," ").concat(this.generateNextIncrementLabel()),id:this.rightBn,ref:function(e){return t.rightBnRef=e},part:"navigation-arrow",iconName:"action-arrow-right-small",title:""}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}},enumerable:false,configurable:true});return t}();DuetRangeStepper.style=DuetRangeStepperStyle0;export{DuetPagination as duet_pagination,DuetRangeStepper as duet_range_stepper};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-f5d67bb6.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-bd643c5c.js";import"./string-utils-192eb3c8.js";var duetProgressCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(240, 247, 250);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(255, 241, 241)}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-progress .progress-bar>span{background-color:rgb(198, 12, 48)}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);border:0 none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(240, 247, 250);border-radius:0}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(240, 247, 250)}.duet-progress.duet-theme-turva progress[value]{color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:rgb(255, 241, 241)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value] ::-moz-progress-bar{background-color:rgb(255, 241, 241)}";var DuetProgressStyle0=duetProgressCss;var DuetProgress=function(){function e(e){registerInstance(this,e);this.progressId=createID("DuetProgress");this.progressLabelId=createID("DuetProgressLabel");this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabel=undefined;this.accessibleLabelUploadDefaults={fi:["lähetys valmis","lähetys käynnissä"],sv:["Uppladdningen är klar","Uppladdning pågår"],en:["upload completed","upload in progress"]};this.accessibleLabelUpload=getLocaleString(this.accessibleLabelUploadDefaults);this.progress=0;this.caption=undefined;this.height="10px";this.theme=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelUpload",defaults:"accessibleLabelUploadDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){return h(Host,null,h("div",{"aria-live":this.accessibleLabel?"polite":"off","aria-hidden":this.accessibleLabel?"false":"true","aria-atomic":"true",style:{height:this.height},id:this.progressId,class:{"duet-progress":true,"duet-progress-done":this.progress===100,"duet-progress-start":this.progress===0,"duet-progress-inprogress":this.progress<99&&this.progress!==0,"duet-theme-turva":this.theme==="turva"}},h("duet-visually-hidden",null,h("label",{htmlFor:this.progressLabelId},h("span",null,this.accessibleLabel,this.progress!==0&&", ".concat(this.accessibleLabelUpload[this.progress<99?1:0])))),this.caption&&h("div",{class:"duet-progress-caption"},h("span",null,this.caption)),h("progress",{id:this.progressLabelId,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:"progressbar",value:this.progress,max:"100","aria-valuemin":"0","aria-valuemax":"100"},h("div",{class:"progress-bar"},h("span",{style:{width:"".concat(this.progress,"%;")}},"Progress: ",this.progress,"%")))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetProgress.style=DuetProgressStyle0;export{DuetProgress as duet_progress};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-6a453dd4.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-0506f7de.js";import"./string-utils-192eb3c8.js";var duetProgressCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(240, 247, 250);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(255, 241, 241)}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-progress .progress-bar>span{background-color:rgb(198, 12, 48)}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);border:0 none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(240, 247, 250);border-radius:0}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(240, 247, 250)}.duet-progress.duet-theme-turva progress[value]{color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:rgb(255, 241, 241)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value] ::-moz-progress-bar{background-color:rgb(255, 241, 241)}";var DuetProgressStyle0=duetProgressCss;var DuetProgress=function(){function e(e){registerInstance(this,e);this.progressId=createID("DuetProgress");this.progressLabelId=createID("DuetProgressLabel");this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabel=undefined;this.accessibleLabelUploadDefaults={fi:["lähetys valmis","lähetys käynnissä"],sv:["Uppladdningen är klar","Uppladdning pågår"],en:["upload completed","upload in progress"]};this.accessibleLabelUpload=getLocaleString(this.accessibleLabelUploadDefaults);this.progress=0;this.caption=undefined;this.height="10px";this.theme=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelUpload",defaults:"accessibleLabelUploadDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){return h(Host,null,h("div",{"aria-live":this.accessibleLabel?"polite":"off","aria-hidden":this.accessibleLabel?"false":"true","aria-atomic":"true",style:{height:this.height},id:this.progressId,class:{"duet-progress":true,"duet-progress-done":this.progress===100,"duet-progress-start":this.progress===0,"duet-progress-inprogress":this.progress<99&&this.progress!==0,"duet-theme-turva":this.theme==="turva"}},h("duet-visually-hidden",null,h("label",{htmlFor:this.progressLabelId},h("span",null,this.accessibleLabel,this.progress!==0&&", ".concat(this.accessibleLabelUpload[this.progress<99?1:0])))),this.caption&&h("div",{class:"duet-progress-caption"},h("span",null,this.caption)),h("progress",{id:this.progressLabelId,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:"progressbar",value:this.progress,max:"100","aria-valuemin":"0","aria-valuemax":"100"},h("div",{class:"progress-bar"},h("span",{style:{width:"".concat(this.progress,"%;")}},"Progress: ",this.progress,"%")))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetProgress.style=DuetProgressStyle0;export{DuetProgress as duet_progress};