@duetds/components 9.2.7 → 10.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (680) hide show
  1. package/hydrate/index.js +954 -265
  2. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  3. package/lib/cjs/duet-badge.cjs.entry.js +2 -2
  4. package/lib/cjs/duet-banner.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-breadcrumb.cjs.entry.js +4 -4
  6. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +2 -2
  7. package/lib/cjs/duet-button_2.cjs.entry.js +2 -2
  8. package/lib/cjs/duet-callout.cjs.entry.js +3 -3
  9. package/lib/cjs/duet-caption_4.cjs.entry.js +6 -6
  10. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-checkmark.cjs.entry.js +2 -2
  12. package/lib/cjs/duet-chip_3.cjs.entry.js +2 -2
  13. package/lib/cjs/duet-choice_2.cjs.entry.js +98 -12
  14. package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
  15. package/lib/cjs/duet-combobox.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-contact-card.cjs.entry.js +2 -2
  17. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-date-picker.cjs.entry.js +11 -8
  19. package/lib/cjs/duet-divider_2.cjs.entry.js +2 -2
  20. package/lib/cjs/duet-editable-table_3.cjs.entry.js +4 -4
  21. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  22. package/lib/cjs/duet-fieldset.cjs.entry.js +4 -4
  23. package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-footer.cjs.entry.js +14 -6
  25. package/lib/cjs/duet-grid_2.cjs.entry.js +4 -4
  26. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-hero.cjs.entry.js +6 -6
  28. package/lib/cjs/duet-icon.cjs.entry.js +3 -3
  29. package/lib/cjs/duet-input_2.cjs.entry.js +14 -10
  30. package/lib/cjs/duet-layout.cjs.entry.js +6 -6
  31. package/lib/cjs/duet-list_2.cjs.entry.js +3 -3
  32. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
  33. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +2 -2
  34. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +4 -4
  35. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +2 -2
  36. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +2 -2
  37. package/lib/cjs/duet-menu-bar.cjs.entry.js +2 -2
  38. package/lib/cjs/duet-modal.cjs.entry.js +7 -7
  39. package/lib/cjs/duet-multiselect.cjs.entry.js +6 -6
  40. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-notification_2.cjs.entry.js +5 -5
  42. package/lib/cjs/duet-number-input.cjs.entry.js +9 -4
  43. package/lib/cjs/duet-overlay.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-page-heading.cjs.entry.js +2 -2
  45. package/lib/cjs/duet-pagination_2.cjs.entry.js +13 -13
  46. package/lib/cjs/duet-promo-card.cjs.entry.js +3 -3
  47. package/lib/cjs/duet-radio_2.cjs.entry.js +86 -10
  48. package/lib/cjs/duet-range-slider.cjs.entry.js +8 -3
  49. package/lib/cjs/duet-scrollable_3.cjs.entry.js +14 -14
  50. package/lib/cjs/duet-section-layout.cjs.entry.js +3 -3
  51. package/lib/cjs/duet-select.cjs.entry.js +7 -7
  52. package/lib/cjs/duet-shaped-image.cjs.entry.js +2 -2
  53. package/lib/cjs/duet-show-more.cjs.entry.js +2 -2
  54. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-slideout-link.cjs.entry.js +2 -2
  56. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +4 -4
  57. package/lib/cjs/duet-slideout-panel.cjs.entry.js +7 -7
  58. package/lib/cjs/duet-slideout.cjs.entry.js +5 -5
  59. package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
  60. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +2 -2
  61. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +4 -4
  62. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-submenu-bar.cjs.entry.js +5 -5
  65. package/lib/cjs/duet-textarea.cjs.entry.js +9 -5
  66. package/lib/cjs/duet-toggle.cjs.entry.js +8 -3
  67. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +2 -2
  68. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +4 -4
  69. package/lib/cjs/duet-toolbar-item.cjs.entry.js +4 -4
  70. package/lib/cjs/duet-toolbar-link.cjs.entry.js +2 -2
  71. package/lib/cjs/duet-toolbar.cjs.entry.js +2 -2
  72. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +4 -4
  73. package/lib/cjs/duet-tooltip.cjs.entry.js +19 -1
  74. package/lib/cjs/duet-tray.cjs.entry.js +2 -2
  75. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  76. package/lib/cjs/duet-upload-item.cjs.entry.js +2 -2
  77. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  78. package/lib/cjs/duet.cjs.js +1 -1
  79. package/lib/cjs/loader.cjs.js +1 -1
  80. package/lib/cjs/{slot-utils-f309572d.js → slot-utils-31c0ed00.js} +51 -0
  81. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  82. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  83. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  84. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  85. package/lib/collection/components/duet-checkbox/duet-checkbox.js +1 -1
  86. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  87. package/lib/collection/components/duet-choice/duet-choice.css +19 -18
  88. package/lib/collection/components/duet-choice/duet-choice.js +97 -13
  89. package/lib/collection/components/duet-choice-group/duet-choice-group.js +3 -6
  90. package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
  91. package/lib/collection/components/duet-combobox/duet-combobox.js +1 -1
  92. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  93. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  94. package/lib/collection/components/duet-date-picker/date-picker-input.js +2 -2
  95. package/lib/collection/components/duet-date-picker/duet-date-picker.js +9 -8
  96. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  97. package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
  98. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  99. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  100. package/lib/collection/components/duet-footer/duet-footer.js +15 -7
  101. package/lib/collection/components/duet-grid/duet-grid.js +3 -6
  102. package/lib/collection/components/duet-grid-item/duet-grid-item.js +3 -6
  103. package/lib/collection/components/duet-heading/duet-heading.js +2 -2
  104. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  105. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  106. package/lib/collection/components/duet-input/duet-input.js +15 -14
  107. package/lib/collection/components/duet-layout/duet-layout.js +5 -5
  108. package/lib/collection/components/duet-link/duet-link.js +2 -2
  109. package/lib/collection/components/duet-list/duet-list.js +1 -1
  110. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  111. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  112. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +2 -2
  113. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  114. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  115. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  116. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  117. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  118. package/lib/collection/components/duet-modal/duet-modal.js +6 -6
  119. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  120. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  121. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  122. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +0 -4
  123. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
  124. package/lib/collection/components/duet-number-input/duet-number-input.js +10 -8
  125. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  126. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  127. package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
  128. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  129. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  130. package/lib/collection/components/duet-progress/duet-progress.js +1 -0
  131. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  132. package/lib/collection/components/duet-radio/duet-radio.css +29 -27
  133. package/lib/collection/components/duet-radio/duet-radio.js +90 -13
  134. package/lib/collection/components/duet-radio-group/duet-radio-group.js +3 -6
  135. package/lib/collection/components/duet-range-slider/duet-range-slider.js +9 -7
  136. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  137. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  138. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  139. package/lib/collection/components/duet-select/duet-select.js +7 -10
  140. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  141. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  142. package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
  143. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  144. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  145. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  146. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  147. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  148. package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
  149. package/lib/collection/components/duet-step/duet-step.js +3 -6
  150. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  151. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  152. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  153. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  154. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  155. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  156. package/lib/collection/components/duet-tab/duet-tab.js +4 -7
  157. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
  158. package/lib/collection/components/duet-table/duet-table.js +2 -2
  159. package/lib/collection/components/duet-textarea/duet-textarea.js +10 -9
  160. package/lib/collection/components/duet-toggle/duet-toggle.js +9 -7
  161. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  162. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  163. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  164. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +6 -0
  165. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  166. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  167. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
  168. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  169. package/lib/collection/components/duet-tooltip/duet-tooltip.js +19 -1
  170. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  171. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  172. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  173. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  174. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  175. package/lib/collection/utils/slot-utils.js +51 -0
  176. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  177. package/lib/dist-custom-elements/duet-alert.js +1 -1
  178. package/lib/dist-custom-elements/duet-badge.js +1 -1
  179. package/lib/dist-custom-elements/duet-banner.js +3 -3
  180. package/lib/dist-custom-elements/duet-breadcrumb.js +6 -6
  181. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  182. package/lib/dist-custom-elements/duet-button.js +1 -1
  183. package/lib/dist-custom-elements/duet-callout.js +4 -4
  184. package/lib/dist-custom-elements/duet-card.js +2 -2
  185. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  186. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  187. package/lib/dist-custom-elements/duet-chip.js +1 -1
  188. package/lib/dist-custom-elements/duet-choice-group.js +12 -11
  189. package/lib/dist-custom-elements/duet-choice.js +100 -12
  190. package/lib/dist-custom-elements/duet-collapsible.js +4 -4
  191. package/lib/dist-custom-elements/duet-combobox.js +15 -14
  192. package/lib/dist-custom-elements/duet-contact-card.js +9 -9
  193. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  194. package/lib/dist-custom-elements/duet-date-picker.js +23 -19
  195. package/lib/dist-custom-elements/duet-divider.js +1 -1
  196. package/lib/dist-custom-elements/duet-editable-table.js +6 -6
  197. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  198. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  199. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  200. package/lib/dist-custom-elements/duet-footer.js +20 -12
  201. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  202. package/lib/dist-custom-elements/duet-grid.js +1 -1
  203. package/lib/dist-custom-elements/duet-header.js +7 -7
  204. package/lib/dist-custom-elements/duet-heading.js +1 -1
  205. package/lib/dist-custom-elements/duet-hero.js +14 -14
  206. package/lib/dist-custom-elements/duet-icon.js +1 -1
  207. package/lib/dist-custom-elements/duet-input.js +1 -1
  208. package/lib/dist-custom-elements/duet-layout.js +6 -6
  209. package/lib/dist-custom-elements/duet-link.js +1 -1
  210. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  211. package/lib/dist-custom-elements/duet-list.js +1 -1
  212. package/lib/dist-custom-elements/duet-logo.js +1 -1
  213. package/lib/dist-custom-elements/duet-menu-bar-button.js +3 -3
  214. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +3 -3
  215. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +5 -5
  216. package/lib/dist-custom-elements/duet-menu-bar-item.js +3 -3
  217. package/lib/dist-custom-elements/duet-menu-bar-link.js +3 -3
  218. package/lib/dist-custom-elements/duet-menu-bar.js +3 -3
  219. package/lib/dist-custom-elements/duet-modal.js +14 -14
  220. package/lib/dist-custom-elements/duet-multiselect.js +12 -12
  221. package/lib/dist-custom-elements/duet-nav.js +1 -1
  222. package/lib/dist-custom-elements/duet-notification-drawer.js +6 -6
  223. package/lib/dist-custom-elements/duet-notification.js +3 -3
  224. package/lib/dist-custom-elements/duet-number-input.js +19 -13
  225. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  226. package/lib/dist-custom-elements/duet-page-heading.js +4 -4
  227. package/lib/dist-custom-elements/duet-pagination.js +21 -21
  228. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  229. package/lib/dist-custom-elements/duet-popup-menu-item.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 +11 -10
  233. package/lib/dist-custom-elements/duet-radio.js +87 -8
  234. package/lib/dist-custom-elements/duet-range-slider.js +10 -4
  235. package/lib/dist-custom-elements/duet-range-stepper.js +5 -5
  236. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  237. package/lib/dist-custom-elements/duet-section-layout.js +3 -3
  238. package/lib/dist-custom-elements/duet-select.js +1 -1
  239. package/lib/dist-custom-elements/duet-shaped-image.js +2 -2
  240. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  241. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  242. package/lib/dist-custom-elements/duet-slideout-link.js +3 -3
  243. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +5 -5
  244. package/lib/dist-custom-elements/duet-slideout-panel.js +8 -8
  245. package/lib/dist-custom-elements/duet-slideout.js +7 -7
  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 +5 -5
  249. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  250. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +3 -3
  251. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +5 -5
  252. package/lib/dist-custom-elements/duet-submenu-bar-item.js +2 -2
  253. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  254. package/lib/dist-custom-elements/duet-submenu-bar.js +7 -7
  255. package/lib/dist-custom-elements/duet-tab-group.js +15 -15
  256. package/lib/dist-custom-elements/duet-tab.js +5 -4
  257. package/lib/dist-custom-elements/duet-table.js +1 -1
  258. package/lib/dist-custom-elements/duet-textarea.js +18 -13
  259. package/lib/dist-custom-elements/duet-toggle.js +10 -4
  260. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +3 -3
  261. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +5 -5
  262. package/lib/dist-custom-elements/duet-toolbar-item.js +5 -5
  263. package/lib/dist-custom-elements/duet-toolbar-link.js +3 -3
  264. package/lib/dist-custom-elements/duet-toolbar.js +2 -2
  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 +4 -4
  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/{p-d5201dfd.js → p-01846eb6.js} +10 -10
  274. package/lib/dist-custom-elements/{p-a8b848a0.js → p-0ac72fc8.js} +3 -2
  275. package/lib/dist-custom-elements/p-145c94a8.js +273 -0
  276. package/lib/dist-custom-elements/{p-20906875.js → p-18c3a72b.js} +1 -1
  277. package/lib/dist-custom-elements/{p-d58879c8.js → p-266569ef.js} +1 -1
  278. package/lib/dist-custom-elements/{p-e87b21c0.js → p-2a6a71e4.js} +2 -2
  279. package/lib/dist-custom-elements/{p-358832fc.js → p-36804cd7.js} +3 -2
  280. package/lib/dist-custom-elements/{p-ee6f575b.js → p-38a3168a.js} +3 -3
  281. package/lib/dist-custom-elements/{p-026f66e3.js → p-39b63c58.js} +2 -2
  282. package/lib/dist-custom-elements/{p-a19d42f7.js → p-4d4c66b0.js} +2 -2
  283. package/lib/dist-custom-elements/{p-369da8da.js → p-4f5a1d66.js} +1 -1
  284. package/lib/dist-custom-elements/{p-3844adaa.js → p-5270ad3d.js} +3 -3
  285. package/lib/dist-custom-elements/{p-23a9891b.js → p-61282ed8.js} +3 -3
  286. package/lib/dist-custom-elements/{p-79fb21bb.js → p-644b52bb.js} +2 -2
  287. package/lib/dist-custom-elements/{p-6f149d10.js → p-649a8c3e.js} +2 -2
  288. package/lib/dist-custom-elements/{p-a866db8a.js → p-7ff1b14d.js} +2 -2
  289. package/lib/dist-custom-elements/{p-dde3f1e6.js → p-824a3b0b.js} +3 -3
  290. package/lib/dist-custom-elements/{p-b5b250a2.js → p-8342a3e5.js} +3 -3
  291. package/lib/dist-custom-elements/{p-1ae20645.js → p-8c993e48.js} +1 -1
  292. package/lib/dist-custom-elements/{p-79372cc4.js → p-92f36210.js} +11 -11
  293. package/lib/dist-custom-elements/{p-1a9028fa.js → p-98b1d4c1.js} +25 -6
  294. package/lib/dist-custom-elements/{p-7590e1a9.js → p-a5c06963.js} +2 -2
  295. package/lib/dist-custom-elements/{p-f3d279c9.js → p-aa62c36f.js} +1 -1
  296. package/lib/dist-custom-elements/{p-a4667181.js → p-acacce04.js} +6 -6
  297. package/lib/dist-custom-elements/{p-02e6b3aa.js → p-b33a176e.js} +2 -2
  298. package/lib/dist-custom-elements/{p-8b3decf2.js → p-b5ea877d.js} +49 -1
  299. package/lib/dist-custom-elements/{p-1f84f4ac.js → p-b9488320.js} +23 -18
  300. package/lib/dist-custom-elements/{p-343f0aa2.js → p-c57a67d3.js} +4 -4
  301. package/lib/dist-custom-elements/{p-aad0e9d5.js → p-c9a14c7b.js} +4 -4
  302. package/lib/dist-custom-elements/{p-4d4d8c03.js → p-cb5df864.js} +2 -2
  303. package/lib/dist-custom-elements/{p-4b198aee.js → p-d0a4a69f.js} +1 -1
  304. package/lib/dist-custom-elements/{p-e6540ffb.js → p-e5962501.js} +2 -2
  305. package/lib/dist-custom-elements/{p-82cbf2aa.js → p-ed8b17fe.js} +6 -6
  306. package/lib/dist-custom-elements/{p-0bd5bcab.js → p-ee079d76.js} +3 -3
  307. package/lib/dist-custom-elements/{p-3cf59aa7.js → p-fb63021d.js} +1 -1
  308. package/lib/dist-custom-elements/{p-a1c8f31d.js → p-fc92fc89.js} +2 -2
  309. package/lib/duet/duet.esm.js +1 -1
  310. package/lib/duet/{p-9a9505b0.system.entry.js → p-00c7bd0a.system.entry.js} +2 -2
  311. package/lib/duet/p-0245b6df.system.entry.js +4 -0
  312. package/lib/duet/p-03ad2cf3.system.entry.js +4 -0
  313. package/lib/duet/p-0c527115.entry.js +4 -0
  314. package/lib/duet/{p-1de76e0d.entry.js → p-0cb1aedd.entry.js} +1 -1
  315. package/lib/duet/{p-87345e08.system.entry.js → p-0cde41e1.system.entry.js} +1 -1
  316. package/lib/duet/p-0d730e50.system.entry.js +4 -0
  317. package/lib/duet/{p-d20f0c7d.system.entry.js → p-0d79ddc1.system.entry.js} +1 -1
  318. package/lib/duet/{p-332d0c18.system.entry.js → p-0f3fbf65.system.entry.js} +1 -1
  319. package/lib/duet/{p-ae15b924.system.entry.js → p-12abe4eb.system.entry.js} +1 -1
  320. package/lib/duet/p-130939b4.entry.js +4 -0
  321. package/lib/duet/p-1411cba2.entry.js +4 -0
  322. package/lib/duet/{p-d9845dc6.entry.js → p-146a6092.entry.js} +1 -1
  323. package/lib/duet/p-14b4ee4d.entry.js +4 -0
  324. package/lib/duet/{p-238d490e.system.entry.js → p-14c1e05f.system.entry.js} +1 -1
  325. package/lib/duet/p-19096d3f.system.entry.js +4 -0
  326. package/lib/duet/p-194e89c3.system.entry.js +4 -0
  327. package/lib/duet/{p-3cb42e12.system.entry.js → p-19519c35.system.entry.js} +1 -1
  328. package/lib/duet/{p-9eedb975.entry.js → p-19baff31.entry.js} +1 -1
  329. package/lib/duet/p-1aaa8887.entry.js +4 -0
  330. package/lib/duet/{p-14d1fc10.entry.js → p-1ac5803b.entry.js} +1 -1
  331. package/lib/duet/p-1b6e33e3.system.entry.js +4 -0
  332. package/lib/duet/p-1bdd845b.system.js +4 -0
  333. package/lib/duet/p-1ce82dfa.system.js +1 -1
  334. package/lib/duet/{p-8f66a793.system.entry.js → p-1ec66cb0.system.entry.js} +1 -1
  335. package/lib/duet/{p-0457dff6.system.entry.js → p-210045f4.system.entry.js} +1 -1
  336. package/lib/duet/{p-977e9ed4.system.entry.js → p-21785af3.system.entry.js} +2 -2
  337. package/lib/duet/{p-02473a29.entry.js → p-252df607.entry.js} +1 -1
  338. package/lib/duet/p-265b2d3f.system.entry.js +4 -0
  339. package/lib/duet/{p-911a8711.entry.js → p-293cb37c.entry.js} +1 -1
  340. package/lib/duet/p-296eb384.entry.js +4 -0
  341. package/lib/duet/{p-f96c47b4.system.entry.js → p-2de11c55.system.entry.js} +1 -1
  342. package/lib/duet/{p-955c3761.entry.js → p-343c72ca.entry.js} +1 -1
  343. package/lib/duet/{p-45c3a7d2.system.entry.js → p-351076bc.system.entry.js} +1 -1
  344. package/lib/duet/{p-07b9cd1a.system.entry.js → p-35196930.system.entry.js} +1 -1
  345. package/lib/duet/{p-43a86f8a.entry.js → p-3662ad90.entry.js} +1 -1
  346. package/lib/duet/p-3693a39c.entry.js +4 -0
  347. package/lib/duet/p-39733fa6.system.entry.js +4 -0
  348. package/lib/duet/{p-6a4f6469.system.entry.js → p-3a1f45d1.system.entry.js} +1 -1
  349. package/lib/duet/{p-d6613fe4.system.entry.js → p-3b77a305.system.entry.js} +1 -1
  350. package/lib/duet/{p-05ea29c7.system.entry.js → p-3f690e05.system.entry.js} +1 -1
  351. package/lib/duet/{p-5786db38.system.entry.js → p-3fce7ef4.system.entry.js} +1 -1
  352. package/lib/duet/{p-ea692823.entry.js → p-405ba8bb.entry.js} +1 -1
  353. package/lib/duet/{p-c5970ff9.entry.js → p-413ee44a.entry.js} +1 -1
  354. package/lib/duet/{p-3ffcebff.system.entry.js → p-425e3794.system.entry.js} +1 -1
  355. package/lib/duet/{p-4c79d2a9.system.entry.js → p-4afd1e0f.system.entry.js} +1 -1
  356. package/lib/duet/{p-15e00afb.entry.js → p-4bdae83b.entry.js} +1 -1
  357. package/lib/duet/p-4e261200.js +4 -0
  358. package/lib/duet/{p-aa8f18b0.entry.js → p-4f913952.entry.js} +1 -1
  359. package/lib/duet/{p-83c03efa.system.entry.js → p-50754042.system.entry.js} +2 -2
  360. package/lib/duet/{p-ad81986c.system.entry.js → p-5222dec4.system.entry.js} +1 -1
  361. package/lib/duet/{p-36593090.system.entry.js → p-5269e599.system.entry.js} +1 -1
  362. package/lib/duet/{p-aeb9568f.entry.js → p-530144b7.entry.js} +1 -1
  363. package/lib/duet/{p-a6f74d7f.system.entry.js → p-58497877.system.entry.js} +1 -1
  364. package/lib/duet/p-5c17c2ad.entry.js +4 -0
  365. package/lib/duet/{p-f3d88a94.system.entry.js → p-5e62f1da.system.entry.js} +1 -1
  366. package/lib/duet/{p-e9cecefd.system.entry.js → p-603f6dd4.system.entry.js} +1 -1
  367. package/lib/duet/p-62e046bf.system.entry.js +4 -0
  368. package/lib/duet/{p-da5fbdcd.entry.js → p-639fd3db.entry.js} +1 -1
  369. package/lib/duet/{p-8bfbadfc.system.entry.js → p-65a3b7a2.system.entry.js} +1 -1
  370. package/lib/duet/p-6727fc0e.entry.js +4 -0
  371. package/lib/duet/{p-8136e15e.system.entry.js → p-6858f043.system.entry.js} +1 -1
  372. package/lib/duet/{p-c620f77b.system.entry.js → p-69d6bbfe.system.entry.js} +1 -1
  373. package/lib/duet/{p-d87f8bb5.system.entry.js → p-6c501d0a.system.entry.js} +1 -1
  374. package/lib/duet/{p-0b61a372.system.entry.js → p-702dc745.system.entry.js} +1 -1
  375. package/lib/duet/{p-c1c02b47.entry.js → p-706c3914.entry.js} +1 -1
  376. package/lib/duet/{p-f9d54f1a.system.entry.js → p-70fd8af5.system.entry.js} +1 -1
  377. package/lib/duet/{p-a414d7b1.entry.js → p-71d12412.entry.js} +1 -1
  378. package/lib/duet/{p-74025593.entry.js → p-72508bb9.entry.js} +1 -1
  379. package/lib/duet/p-778e721c.entry.js +4 -0
  380. package/lib/duet/p-779cfa4a.system.entry.js +4 -0
  381. package/lib/duet/{p-2fc1b57e.system.entry.js → p-77eb9c59.system.entry.js} +1 -1
  382. package/lib/duet/p-783e8788.system.entry.js +4 -0
  383. package/lib/duet/{p-af0c9fa2.system.entry.js → p-79bd8c35.system.entry.js} +1 -1
  384. package/lib/duet/{p-bc57459e.system.entry.js → p-7ba55da2.system.entry.js} +2 -2
  385. package/lib/duet/{p-09b2f2cb.entry.js → p-7f519ad1.entry.js} +1 -1
  386. package/lib/duet/{p-89558e39.system.entry.js → p-83d125ee.system.entry.js} +1 -1
  387. package/lib/duet/{p-fb083164.entry.js → p-849cdc4a.entry.js} +1 -1
  388. package/lib/duet/{p-836ae3bb.system.entry.js → p-8911e1f0.system.entry.js} +1 -1
  389. package/lib/duet/p-898a81ab.system.entry.js +4 -0
  390. package/lib/duet/p-8a9a7082.entry.js +4 -0
  391. package/lib/duet/{p-b6e98c33.entry.js → p-8bc4d112.entry.js} +1 -1
  392. package/lib/duet/{p-d90c1000.system.entry.js → p-907ef071.system.entry.js} +1 -1
  393. package/lib/duet/{p-d6efda2f.entry.js → p-93bc8bc7.entry.js} +1 -1
  394. package/lib/duet/{p-099daa35.system.entry.js → p-989ecf2e.system.entry.js} +1 -1
  395. package/lib/duet/{p-e84dc0ac.entry.js → p-99443d70.entry.js} +1 -1
  396. package/lib/duet/p-99f873a0.entry.js +4 -0
  397. package/lib/duet/p-9a219c40.entry.js +4 -0
  398. package/lib/duet/p-9c45ed44.entry.js +4 -0
  399. package/lib/duet/{p-83920005.system.entry.js → p-9e27e0a8.system.entry.js} +1 -1
  400. package/lib/duet/p-9e9599ce.system.entry.js +4 -0
  401. package/lib/duet/p-9f30783d.system.entry.js +4 -0
  402. package/lib/duet/{p-042ce36a.system.entry.js → p-9f466e90.system.entry.js} +1 -1
  403. package/lib/duet/{p-8d3cb875.entry.js → p-9ff1b619.entry.js} +1 -1
  404. package/lib/duet/{p-2a4032e4.entry.js → p-a023bf22.entry.js} +1 -1
  405. package/lib/duet/{p-d1dd14a3.entry.js → p-a1dbb6ae.entry.js} +1 -1
  406. package/lib/duet/{p-4219eda3.system.entry.js → p-a236f333.system.entry.js} +1 -1
  407. package/lib/duet/{p-c552326c.system.entry.js → p-a42c1c73.system.entry.js} +2 -2
  408. package/lib/duet/p-a5406a98.entry.js +4 -0
  409. package/lib/duet/{p-1d56f5f8.system.entry.js → p-a6ee1072.system.entry.js} +1 -1
  410. package/lib/duet/{p-b0632410.system.entry.js → p-aa436035.system.entry.js} +1 -1
  411. package/lib/duet/{p-f9d93246.entry.js → p-aabf13cc.entry.js} +1 -1
  412. package/lib/duet/{p-2073ff86.system.entry.js → p-abe63ae2.system.entry.js} +1 -1
  413. package/lib/duet/p-ac1125e2.entry.js +4 -0
  414. package/lib/duet/p-ad0b50f0.entry.js +4 -0
  415. package/lib/duet/{p-fea43afb.entry.js → p-ad3fc579.entry.js} +1 -1
  416. package/lib/duet/{p-6f5dbc6e.system.entry.js → p-b1c78160.system.entry.js} +2 -2
  417. package/lib/duet/{p-3fe02797.entry.js → p-b1f3e71c.entry.js} +1 -1
  418. package/lib/duet/{p-8335c1bf.entry.js → p-b55e935f.entry.js} +1 -1
  419. package/lib/duet/{p-d25bbacd.entry.js → p-b5b5040f.entry.js} +1 -1
  420. package/lib/duet/{p-b7f262fc.system.entry.js → p-b5eec241.system.entry.js} +1 -1
  421. package/lib/duet/{p-5e12c437.system.entry.js → p-b5ef2959.system.entry.js} +1 -1
  422. package/lib/duet/{p-b238bac2.entry.js → p-b6214d5a.entry.js} +1 -1
  423. package/lib/duet/p-bbc168d3.entry.js +4 -0
  424. package/lib/duet/{p-8c44d3e9.entry.js → p-bf2016fd.entry.js} +1 -1
  425. package/lib/duet/{p-e6eb1780.system.entry.js → p-c00beb34.system.entry.js} +1 -1
  426. package/lib/duet/p-c032689a.entry.js +4 -0
  427. package/lib/duet/p-c055a0a5.entry.js +4 -0
  428. package/lib/duet/{p-24f98450.entry.js → p-c0f0ba52.entry.js} +1 -1
  429. package/lib/duet/{p-20c7ae09.entry.js → p-c20c2ae0.entry.js} +1 -1
  430. package/lib/duet/{p-f86c7315.entry.js → p-c20e0bcd.entry.js} +1 -1
  431. package/lib/duet/{p-a52fb767.entry.js → p-c2ece51b.entry.js} +1 -1
  432. package/lib/duet/{p-bcd88ac2.system.entry.js → p-c5efbb76.system.entry.js} +1 -1
  433. package/lib/duet/p-c6915c43.system.entry.js +4 -0
  434. package/lib/duet/{p-8378430a.system.entry.js → p-c7f38ac3.system.entry.js} +1 -1
  435. package/lib/duet/{p-3deacd18.system.entry.js → p-c8437ddb.system.entry.js} +2 -2
  436. package/lib/duet/{p-180c21a7.entry.js → p-cab2979b.entry.js} +1 -1
  437. package/lib/duet/{p-c9d3dd02.system.entry.js → p-cdccf8e6.system.entry.js} +1 -1
  438. package/lib/duet/{p-c1ef1b6e.entry.js → p-cfee6451.entry.js} +1 -1
  439. package/lib/duet/{p-db3eaaa3.entry.js → p-d1e5ab5e.entry.js} +1 -1
  440. package/lib/duet/{p-fa115b76.system.entry.js → p-d2ded72c.system.entry.js} +2 -2
  441. package/lib/duet/{p-a2e17a01.entry.js → p-d3a5400e.entry.js} +1 -1
  442. package/lib/duet/{p-69d18102.entry.js → p-d452cbb7.entry.js} +1 -1
  443. package/lib/duet/{p-edaefdfb.entry.js → p-d554e96b.entry.js} +1 -1
  444. package/lib/duet/{p-44af6523.entry.js → p-d6b53d40.entry.js} +1 -1
  445. package/lib/duet/{p-9c93192b.entry.js → p-d709d282.entry.js} +1 -1
  446. package/lib/duet/{p-ff1e3ce2.entry.js → p-d7c1c492.entry.js} +1 -1
  447. package/lib/duet/{p-ccc58d5d.system.entry.js → p-d803a966.system.entry.js} +1 -1
  448. package/lib/duet/p-da7ce3da.entry.js +4 -0
  449. package/lib/duet/p-dc74c7c2.system.entry.js +4 -0
  450. package/lib/duet/p-dd1ec0ef.entry.js +4 -0
  451. package/lib/duet/{p-5763afe7.system.entry.js → p-dea69e25.system.entry.js} +1 -1
  452. package/lib/duet/{p-a37f93eb.entry.js → p-e062a11a.entry.js} +1 -1
  453. package/lib/duet/p-e1d33d05.entry.js +4 -0
  454. package/lib/duet/{p-eeb9da2d.entry.js → p-e33c42ff.entry.js} +1 -1
  455. package/lib/duet/p-e8465166.entry.js +4 -0
  456. package/lib/duet/{p-14662d84.entry.js → p-eb35e521.entry.js} +1 -1
  457. package/lib/duet/{p-cf16818c.system.entry.js → p-f210b371.system.entry.js} +1 -1
  458. package/lib/duet/{p-9c0b9de2.system.entry.js → p-f29c480a.system.entry.js} +1 -1
  459. package/lib/duet/{p-9eb974d8.entry.js → p-f35be908.entry.js} +1 -1
  460. package/lib/duet/{p-1037271e.system.entry.js → p-f380d364.system.entry.js} +1 -1
  461. package/lib/duet/p-f417c864.entry.js +4 -0
  462. package/lib/duet/{p-f745dcfb.entry.js → p-f6900a3e.entry.js} +1 -1
  463. package/lib/duet/{p-8df1c0da.system.entry.js → p-f933ada6.system.entry.js} +1 -1
  464. package/lib/duet/{p-7831e011.entry.js → p-f9a64d11.entry.js} +1 -1
  465. package/lib/esm/duet-alert.entry.js +1 -1
  466. package/lib/esm/duet-badge.entry.js +2 -2
  467. package/lib/esm/duet-banner.entry.js +1 -1
  468. package/lib/esm/duet-breadcrumb.entry.js +4 -4
  469. package/lib/esm/duet-breadcrumbs.entry.js +2 -2
  470. package/lib/esm/duet-button_2.entry.js +2 -2
  471. package/lib/esm/duet-callout.entry.js +3 -3
  472. package/lib/esm/duet-caption_4.entry.js +6 -6
  473. package/lib/esm/duet-checkbox.entry.js +1 -1
  474. package/lib/esm/duet-checkmark.entry.js +2 -2
  475. package/lib/esm/duet-chip_3.entry.js +2 -2
  476. package/lib/esm/duet-choice_2.entry.js +98 -12
  477. package/lib/esm/duet-collapsible.entry.js +3 -3
  478. package/lib/esm/duet-combobox.entry.js +2 -2
  479. package/lib/esm/duet-contact-card.entry.js +2 -2
  480. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  481. package/lib/esm/duet-date-picker.entry.js +11 -8
  482. package/lib/esm/duet-divider_2.entry.js +2 -2
  483. package/lib/esm/duet-editable-table_3.entry.js +4 -4
  484. package/lib/esm/duet-empty-state.entry.js +2 -2
  485. package/lib/esm/duet-fieldset.entry.js +4 -4
  486. package/lib/esm/duet-file-chooser.entry.js +1 -1
  487. package/lib/esm/duet-footer.entry.js +14 -6
  488. package/lib/esm/duet-grid_2.entry.js +4 -4
  489. package/lib/esm/duet-header_2.entry.js +1 -1
  490. package/lib/esm/duet-hero.entry.js +6 -6
  491. package/lib/esm/duet-icon.entry.js +3 -3
  492. package/lib/esm/duet-input_2.entry.js +14 -10
  493. package/lib/esm/duet-layout.entry.js +6 -6
  494. package/lib/esm/duet-list_2.entry.js +3 -3
  495. package/lib/esm/duet-menu-bar-button.entry.js +2 -2
  496. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +2 -2
  497. package/lib/esm/duet-menu-bar-dropdown.entry.js +4 -4
  498. package/lib/esm/duet-menu-bar-item.entry.js +2 -2
  499. package/lib/esm/duet-menu-bar-link.entry.js +2 -2
  500. package/lib/esm/duet-menu-bar.entry.js +2 -2
  501. package/lib/esm/duet-modal.entry.js +7 -7
  502. package/lib/esm/duet-multiselect.entry.js +6 -6
  503. package/lib/esm/duet-nav.entry.js +1 -1
  504. package/lib/esm/duet-notification_2.entry.js +5 -5
  505. package/lib/esm/duet-number-input.entry.js +9 -4
  506. package/lib/esm/duet-overlay.entry.js +1 -1
  507. package/lib/esm/duet-page-heading.entry.js +2 -2
  508. package/lib/esm/duet-pagination_2.entry.js +13 -13
  509. package/lib/esm/duet-promo-card.entry.js +3 -3
  510. package/lib/esm/duet-radio_2.entry.js +86 -10
  511. package/lib/esm/duet-range-slider.entry.js +8 -3
  512. package/lib/esm/duet-scrollable_3.entry.js +14 -14
  513. package/lib/esm/duet-section-layout.entry.js +3 -3
  514. package/lib/esm/duet-select.entry.js +7 -7
  515. package/lib/esm/duet-shaped-image.entry.js +2 -2
  516. package/lib/esm/duet-show-more.entry.js +2 -2
  517. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  518. package/lib/esm/duet-slideout-link.entry.js +2 -2
  519. package/lib/esm/duet-slideout-panel-dropdown.entry.js +4 -4
  520. package/lib/esm/duet-slideout-panel.entry.js +7 -7
  521. package/lib/esm/duet-slideout.entry.js +5 -5
  522. package/lib/esm/duet-step_2.entry.js +3 -3
  523. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +2 -2
  524. package/lib/esm/duet-submenu-bar-dropdown.entry.js +4 -4
  525. package/lib/esm/duet-submenu-bar-item.entry.js +1 -1
  526. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  527. package/lib/esm/duet-submenu-bar.entry.js +5 -5
  528. package/lib/esm/duet-textarea.entry.js +9 -5
  529. package/lib/esm/duet-toggle.entry.js +8 -3
  530. package/lib/esm/duet-toolbar-dropdown-link.entry.js +2 -2
  531. package/lib/esm/duet-toolbar-dropdown.entry.js +4 -4
  532. package/lib/esm/duet-toolbar-item.entry.js +4 -4
  533. package/lib/esm/duet-toolbar-link.entry.js +2 -2
  534. package/lib/esm/duet-toolbar.entry.js +2 -2
  535. package/lib/esm/duet-tooltip-button_2.entry.js +4 -4
  536. package/lib/esm/duet-tooltip.entry.js +19 -1
  537. package/lib/esm/duet-tray.entry.js +2 -2
  538. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  539. package/lib/esm/duet-upload-item.entry.js +2 -2
  540. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  541. package/lib/esm/duet.js +1 -1
  542. package/lib/esm/loader.js +1 -1
  543. package/lib/esm/{slot-utils-1be24d72.js → slot-utils-23c88903.js} +49 -1
  544. package/lib/esm-es5/duet-alert.entry.js +1 -1
  545. package/lib/esm-es5/duet-badge.entry.js +1 -1
  546. package/lib/esm-es5/duet-banner.entry.js +1 -1
  547. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  548. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  549. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  550. package/lib/esm-es5/duet-callout.entry.js +1 -1
  551. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  552. package/lib/esm-es5/duet-checkbox.entry.js +2 -2
  553. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  554. package/lib/esm-es5/duet-chip_3.entry.js +1 -1
  555. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  556. package/lib/esm-es5/duet-collapsible.entry.js +2 -2
  557. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  558. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  559. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  560. package/lib/esm-es5/duet-date-picker.entry.js +2 -2
  561. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  562. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  563. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  564. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  565. package/lib/esm-es5/duet-file-chooser.entry.js +2 -2
  566. package/lib/esm-es5/duet-footer.entry.js +1 -1
  567. package/lib/esm-es5/duet-grid_2.entry.js +2 -2
  568. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  569. package/lib/esm-es5/duet-hero.entry.js +2 -2
  570. package/lib/esm-es5/duet-icon.entry.js +1 -1
  571. package/lib/esm-es5/duet-input_2.entry.js +2 -2
  572. package/lib/esm-es5/duet-layout.entry.js +1 -1
  573. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  574. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  575. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  576. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  577. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  578. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  579. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  580. package/lib/esm-es5/duet-modal.entry.js +1 -1
  581. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  582. package/lib/esm-es5/duet-nav.entry.js +1 -1
  583. package/lib/esm-es5/duet-notification_2.entry.js +2 -2
  584. package/lib/esm-es5/duet-number-input.entry.js +2 -2
  585. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  586. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  587. package/lib/esm-es5/duet-pagination_2.entry.js +2 -2
  588. package/lib/esm-es5/duet-promo-card.entry.js +2 -2
  589. package/lib/esm-es5/duet-radio_2.entry.js +2 -2
  590. package/lib/esm-es5/duet-range-slider.entry.js +2 -2
  591. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  592. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  593. package/lib/esm-es5/duet-select.entry.js +2 -2
  594. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  595. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  596. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  597. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  598. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  599. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  600. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  601. package/lib/esm-es5/duet-step_2.entry.js +2 -2
  602. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  603. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  604. package/lib/esm-es5/duet-submenu-bar-item.entry.js +2 -2
  605. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  606. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  607. package/lib/esm-es5/duet-textarea.entry.js +2 -2
  608. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  609. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  610. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  611. package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
  612. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  613. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  614. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  615. package/lib/esm-es5/duet-tooltip.entry.js +2 -2
  616. package/lib/esm-es5/duet-tray.entry.js +1 -1
  617. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  618. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  619. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  620. package/lib/esm-es5/duet.js +1 -1
  621. package/lib/esm-es5/loader.js +1 -1
  622. package/lib/esm-es5/{slot-utils-1be24d72.js → slot-utils-23c88903.js} +1 -1
  623. package/lib/types/components/duet-choice/duet-choice.d.ts +7 -1
  624. package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +2 -0
  625. package/lib/types/components/duet-footer/duet-footer.d.ts +8 -4
  626. package/lib/types/components/duet-input/duet-input.d.ts +2 -0
  627. package/lib/types/components/duet-number-input/duet-number-input.d.ts +2 -0
  628. package/lib/types/components/duet-progress/duet-progress.d.ts +0 -6
  629. package/lib/types/components/duet-radio/duet-radio.d.ts +7 -1
  630. package/lib/types/components/duet-range-slider/duet-range-slider.d.ts +2 -0
  631. package/lib/types/components/duet-textarea/duet-textarea.d.ts +2 -0
  632. package/lib/types/components/duet-toggle/duet-toggle.d.ts +2 -0
  633. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +3 -0
  634. package/lib/types/components.d.ts +4 -4
  635. package/lib/types/utils/slot-utils.d.ts +17 -0
  636. package/package.json +2 -2
  637. package/lib/dist-custom-elements/p-05a0e048.js +0 -272
  638. package/lib/duet/p-062b4356.system.entry.js +0 -4
  639. package/lib/duet/p-197fcd81.entry.js +0 -4
  640. package/lib/duet/p-2892f9e4.entry.js +0 -4
  641. package/lib/duet/p-2be4521f.entry.js +0 -4
  642. package/lib/duet/p-34caafca.entry.js +0 -4
  643. package/lib/duet/p-3c48ca69.system.entry.js +0 -4
  644. package/lib/duet/p-46753ebc.entry.js +0 -4
  645. package/lib/duet/p-4920eb5e.entry.js +0 -4
  646. package/lib/duet/p-4efc484e.entry.js +0 -4
  647. package/lib/duet/p-5ba11951.entry.js +0 -4
  648. package/lib/duet/p-5d429d2c.entry.js +0 -4
  649. package/lib/duet/p-60e1e165.system.entry.js +0 -4
  650. package/lib/duet/p-618a822d.system.entry.js +0 -4
  651. package/lib/duet/p-63a09802.js +0 -4
  652. package/lib/duet/p-6abb0f77.system.entry.js +0 -4
  653. package/lib/duet/p-6f3fd8bf.entry.js +0 -4
  654. package/lib/duet/p-70fab25f.system.entry.js +0 -4
  655. package/lib/duet/p-762b831e.system.entry.js +0 -4
  656. package/lib/duet/p-79c1f08a.entry.js +0 -4
  657. package/lib/duet/p-835e6d3b.entry.js +0 -4
  658. package/lib/duet/p-849ae71a.system.entry.js +0 -4
  659. package/lib/duet/p-8babfd74.entry.js +0 -4
  660. package/lib/duet/p-8df4a03c.entry.js +0 -4
  661. package/lib/duet/p-8e672ddb.entry.js +0 -4
  662. package/lib/duet/p-919c1794.system.entry.js +0 -4
  663. package/lib/duet/p-9c95fff6.entry.js +0 -4
  664. package/lib/duet/p-9c9b25f3.system.entry.js +0 -4
  665. package/lib/duet/p-a4914611.entry.js +0 -4
  666. package/lib/duet/p-a8333037.entry.js +0 -4
  667. package/lib/duet/p-aa61f1da.entry.js +0 -4
  668. package/lib/duet/p-b7fe31c6.system.entry.js +0 -4
  669. package/lib/duet/p-b8b011df.system.entry.js +0 -4
  670. package/lib/duet/p-c2ca6ff0.system.entry.js +0 -4
  671. package/lib/duet/p-c8896685.system.entry.js +0 -4
  672. package/lib/duet/p-d03accc5.entry.js +0 -4
  673. package/lib/duet/p-d3f4d98f.system.entry.js +0 -4
  674. package/lib/duet/p-e238bb61.entry.js +0 -4
  675. package/lib/duet/p-e7a6457f.entry.js +0 -4
  676. package/lib/duet/p-f022f85b.entry.js +0 -4
  677. package/lib/duet/p-f7f098cb.entry.js +0 -4
  678. package/lib/duet/p-f84cdfef.entry.js +0 -4
  679. package/lib/duet/p-faa44b79.system.entry.js +0 -4
  680. package/lib/duet/p-fadcbdae.system.js +0 -4
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,s,i){function c(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,o){function l(e){try{a(i.next(e))}catch(e){o(e)}}function r(e){try{a(i["throw"](e))}catch(e){o(e)}}function a(e){e.done?s(e.value):c(e.value).then(l,r)}a((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var s={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,c,o,l;return l={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function r(e){return function(t){return a([e,t])}}function a(r){if(i)throw new TypeError("Generator is already executing.");while(l&&(l=0,r[0]&&(s=0)),s)try{if(i=1,c&&(o=r[0]&2?c["return"]:r[0]?c["throw"]||((o=c["return"])&&o.call(c),0):c.next)&&!(o=o.call(c,r[1])).done)return o;if(c=0,o)r=[r[0]&2,o.value];switch(r[0]){case 0:case 1:o=r;break;case 4:s.label++;return{value:r[1],done:false};case 5:s.label++;c=r[1];r=[0];continue;case 7:r=s.ops.pop();s.trys.pop();continue;default:if(!(o=s.trys,o=o.length>0&&o[o.length-1])&&(r[0]===6||r[0]===2)){s=0;continue}if(r[0]===3&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(r[0]===6&&s.label<o[1]){s.label=o[1];o=r;break}if(o&&s.label<o[2]){s.label=o[2];s.ops.push(r);break}if(o[2])s.ops.pop();s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e];c=0}finally{i=o=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,o){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(o.next(e))}catch(e){r(e)}}function n(e){try{l(o["throw"](e))}catch(e){r(e)}}function l(e){e.done?i(e.value):a(e.value).then(s,n)}l((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,a,r,s;return s={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function n(e){return function(t){return l([e,t])}}function l(n){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,n[0]&&(i=0)),i)try{if(o=1,a&&(r=n[0]&2?a["return"]:n[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,n[1])).done)return r;if(a=0,r)n=[n[0]&2,r.value];switch(n[0]){case 0:case 1:r=n;break;case 4:i.label++;return{value:n[1],done:false};case 5:i.label++;a=n[1];n=[0];continue;case 7:n=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(n[0]===6||n[0]===2)){i=0;continue}if(n[0]===3&&(!r||n[1]>r[0]&&n[1]<r[3])){i.label=n[1];break}if(n[0]===6&&i.label<r[1]){i.label=r[1];r=n;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(n);break}if(r[2])i.ops.pop();i.trys.pop();continue}n=t.call(e,i)}catch(e){n=[6,e];a=0}finally{o=r=0}if(n[0]&5)throw n[1];return{value:n[0]?n[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-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{c as checkNamedSlotElement}from"./slot-utils-1be24d72.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";var duetSelectCss='*.sc-duet-select,*.sc-duet-select::after,*.sc-duet-select::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-select-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}.sc-duet-select-h:last-child,.sc-duet-select-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-select-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-select-h{width:100% !important}}.duet-select-variation-tiny.sc-duet-select-h,.duet-select-variation-compact.sc-duet-select-h{position:relative;top:-2px;width:72px;margin:0 !important;vertical-align:baseline}.duet-select-variation-compact.sc-duet-select-h{width:auto}.duet-m-0.sc-duet-select-h{margin:0 !important}duet-tooltip.sc-duet-select,.sc-duet-select-s>duet-tooltip{position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-select,.sc-duet-select-s>duet-tooltip{position:relative;top:4px;right:auto}}.duet-select-placeholder.sc-duet-select{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-select-container.sc-duet-select{position:relative;width:100%}.duet-select-container.duet-select-variation-tiny.sc-duet-select{width:72px}.duet-select-wrapper.sc-duet-select{position:relative;width:100%;padding:15px 14px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-select-variation-tiny.sc-duet-select .duet-select-wrapper.sc-duet-select{width:81px;padding:0 !important}.duet-select-variation-compact.sc-duet-select .duet-select-wrapper.sc-duet-select{padding:0 !important;line-height:1}.duet-select-wrapper.sc-duet-select select.sc-duet-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:200;width:100%;height:100%;padding:0;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;cursor:pointer;border:0;outline:none;opacity:0}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{border-color:rgb(127, 150, 165);box-shadow:0 0 0 1px #909599}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{border-color:rgb(143, 147, 158);box-shadow:0 0 0 1px #747475}.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:hover+.duet-select.sc-duet-select{box-shadow:0 0 0 1px #e55039}.duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-theme-turva.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(23, 28, 58)}.duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(0, 119, 179)}.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error.sc-duet-select .duet-select-wrapper.sc-duet-select select.sc-duet-select:focus+.duet-select.sc-duet-select{box-shadow:0 0 0 1px #e55039}.duet-select-wrapper.sc-duet-select select[disabled].sc-duet-select{cursor:default !important}.duet-select-wrapper.sc-duet-select select[disabled].sc-duet-select+.duet-select.sc-duet-select{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.sc-duet-select .duet-select-wrapper.sc-duet-select select[disabled].sc-duet-select+.duet-select.sc-duet-select{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-select-wrapper.sc-duet-select span.duet-keep-container-height.sc-duet-select{opacity:0}.duet-select-variation-compact.sc-duet-select .duet-select-wrapper.sc-duet-select span.duet-keep-container-height.sc-duet-select{display:none}.duet-select.sc-duet-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;display:block;width:100%;min-width:8rem;padding:12px 14px !important;padding-right:48px !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;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.has-error.sc-duet-select .duet-select.sc-duet-select{border-color:rgb(214, 28, 82) !important}.has-error.sc-duet-select .duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-select .duet-select.sc-duet-select{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-select .duet-select.sc-duet-select .duet-select-icon.sc-duet-select{color:rgb(214, 28, 82) !important}.duet-theme-turva.sc-duet-select .duet-select.sc-duet-select{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-select.sc-duet-select svg.sc-duet-select{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;color:rgb(8, 42, 77);pointer-events:none;transform:translateY(-50%)}.duet-theme-turva.sc-duet-select .duet-select.sc-duet-select svg.sc-duet-select{color:rgb(23, 28, 58)}.duet-select-variation-tiny.sc-duet-select .duet-select.sc-duet-select,.duet-select-variation-compact.sc-duet-select .duet-select.sc-duet-select{width:72px;min-width:inherit;padding:0 !important;margin-bottom:-4px;overflow:visible;font-weight:600;text-align:center}.duet-select-variation-tiny.sc-duet-select .duet-select.sc-duet-select duet-icon.sc-duet-select,.duet-select-variation-compact.sc-duet-select .duet-select.sc-duet-select duet-icon.sc-duet-select{padding-left:10px}.duet-select-variation-compact.sc-duet-select .duet-select.sc-duet-select{position:relative;width:fit-content;padding:7px 16px !important;font-size:0.875rem;line-height:1.1;text-align:right;border-radius:8px}.duet-select-help.sc-duet-select{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-select-help.sc-duet-select span.sc-duet-select{display:block;margin-top:8px}.duet-theme-turva.sc-duet-select .duet-select-help.sc-duet-select{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(143, 147, 158)}.has-error.sc-duet-select .duet-select-help.sc-duet-select{color:rgb(214, 28, 82)}.duet-theme-turva.has-error.sc-duet-select .duet-select-help.sc-duet-select{color:rgb(214, 28, 82)}.duet-label-hidden.sc-duet-select duet-label.sc-duet-select{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var DuetSelectStyle0=duetSelectCss;function isOptionGroup(e){return"options"in e}function findOptionByValue(e,t){for(var s=0;s<e.length;s++){var i=e[s];if(isOptionGroup(i)){i=findOptionByValue(i.options,t)}if(i&&i.value===t){return i}}}var DuetSelect=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.selectId=createID("DuetSelect");this.errorId=createID("DuetError");this.labelId=createID("DuetLabel");this.topCaptionId=createID("DuetCaptionTop");this.topCaptionPlaceholderId=createID("DuetCaptionPlaceholderTop");this.onClick=function(e){e.stopPropagation()};this.onChange=function(){t.value=t.nativeSelect.value;t.duetChange.emit({value:t.value,component:"duet-select"})};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-select"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-select"})};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=null;this.variation="default";this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleOwns=undefined;this.error="";this.accessibleLiveError="polite";this.expand=false;this.value=undefined;this.theme="";this.labelHidden=false;this.identifier=undefined;this.name=undefined;this.placeholder="";this.caption=undefined;this.echoPlaceholder=false;this.items=undefined;this.disabled=false;this.required=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.role=undefined;this.tooltip="";this.tooltipDirection="auto"}e.prototype.valueChanged=function(){if(this.nativeSelect){this.nativeSelect.value=this.value}this.isCaptionVisible=!!this.caption};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.isCaptionVisible=!!this.caption;checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true);this.refresh()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeSelect){this.nativeSelect.focus(e)}return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.processedItems=parsePossibleJSON(this.items);return[2]}))}))};e.prototype.getSelectedItemLabel=function(){var e;if(this.processedItems){e=findOptionByValue(this.processedItems,this.value)}return e?e.label:this.placeholder||""};e.prototype.renderOption=function(e){return h("option",{"aria-label":e.ariaLabel,value:e.value,key:e.value,selected:this.value===e.value,disabled:e.disabled},e.label)};e.prototype.renderOptionGroup=function(e){var t=this;return h("optgroup",{key:e.label,label:e.label,disabled:e.disabled},e.options.map((function(e){return t.renderOption(e)})))};e.prototype.render=function(){var e,t,s;var i=this;var c=this.identifier||this.selectId;return h(Host,{onClick:this.onClick,class:(e={"duet-m-0":this.margin==="none","duet-expand":this.expand},e["duet-select-variation-".concat(this.variation)]=true,e)},h("div",{class:(t={"duet-select-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva"},t["duet-select-variation-".concat(this.variation)]=true,t["duet-input-top-caption-shown"]=this.isCaptionVisible,t["has-error"]=!!this.error,t)},h("duet-label",{theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:c},this.label),this.tooltip&&h("duet-tooltip",{direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),h("slot",{name:"tooltip"}),this.caption&&h("duet-caption",{id:this.topCaptionId,size:"medium"},this.caption),h("div",{class:"duet-select-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&h("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-select-placeholder",size:"small"},this.placeholder),h("select",{ref:function(e){return i.nativeSelect=e},disabled:this.disabled,name:this.name,id:c,role:this.role,"aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,required:this.required},this.placeholder&&h("option",{disabled:true,selected:true,value:""},this.placeholder),!this.processedItems?h("option",null,"Virhe valintoja ladattaessa. Päivitä sivu ja kokeile uusiksi."):this.processedItems.map((function(e){return isOptionGroup(e)?i.renderOptionGroup(e):i.renderOption(e)}))),h("div",{class:(s={"duet-select":true},s["duet-select-variation-".concat(this.variation)]=true,s),"aria-hidden":"true"},h("span",{key:this.value,class:"duet-select-selected-value"},this.getSelectedItemLabel()),this.variation==="default"&&h("svg",{role:"img",class:"duet-select-icon",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},h("path",{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("duet-icon",{theme:this.theme,name:"action-arrow-down-small",color:"currentColor",margin:"none",size:this.variation==="compact"?"xxx-small":"xx-small"})),h("span",{class:"duet-keep-container-height",role:"presention","aria-hidden":"true"},"_")),h("span",{class:"duet-select-help",id:this.errorId,"aria-live":this.accessibleLiveError,"aria-atomic":"true","aria-relevant":"additions removals"},this.error&&h("span",null,this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueChanged"],items:["refresh"]}},enumerable:false,configurable:true});return e}();DuetSelect.style=DuetSelectStyle0;export{DuetSelect as duet_select};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{c as checkNamedSlotElement}from"./slot-utils-23c88903.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";var duetSelectCss='*,*::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-select-variation-tiny,:host.duet-select-variation-compact{position:relative;top:-2px;width:72px;margin:0 !important;vertical-align:baseline}:host.duet-select-variation-compact{width:auto}:host(.duet-m-0){margin:0 !important}duet-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-select-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-select-container{position:relative;width:100%}.duet-select-container.duet-select-variation-tiny{width:72px}.duet-select-wrapper{position:relative;width:100%;padding:15px 14px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25}.duet-theme-turva .duet-select-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-select-variation-tiny .duet-select-wrapper{width:81px;padding:0 !important}.duet-select-variation-compact .duet-select-wrapper{padding:0 !important;line-height:1}.duet-select-wrapper select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:200;width:100%;height:100%;padding:0;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;cursor:pointer;border:0;outline:none;opacity:0}.duet-theme-turva .duet-select-wrapper select{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-select-wrapper select:hover+.duet-select{border-color:rgb(127, 150, 165);box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-select-wrapper select:hover+.duet-select{border-color:rgb(143, 147, 158);box-shadow:0 0 0 1px #747475}.has-error .duet-select-wrapper select:hover+.duet-select{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-select-wrapper select:hover+.duet-select{box-shadow:0 0 0 1px #e55039}.duet-select-wrapper select:focus+.duet-select{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-select-wrapper select:focus+.duet-select{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-theme-turva .duet-select-wrapper select:focus+.duet-select .duet-select-icon{color:rgb(23, 28, 58)}.duet-select-wrapper select:focus+.duet-select .duet-select-icon{color:rgb(0, 119, 179)}.has-error .duet-select-wrapper select:focus+.duet-select{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-select-wrapper select:focus+.duet-select{box-shadow:0 0 0 1px #e55039}.duet-select-wrapper select[disabled]{cursor:default !important}.duet-select-wrapper select[disabled]+.duet-select{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-select-wrapper select[disabled]+.duet-select{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-select-wrapper span.duet-keep-container-height{opacity:0}.duet-select-variation-compact .duet-select-wrapper span.duet-keep-container-height{display:none}.duet-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;display:block;width:100%;min-width:8rem;padding:12px 14px !important;padding-right:48px !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;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.has-error .duet-select{border-color:rgb(214, 28, 82) !important}.has-error .duet-select .duet-select-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-select{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-select .duet-select-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva .duet-select{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-select svg{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;color:rgb(8, 42, 77);pointer-events:none;transform:translateY(-50%)}.duet-theme-turva .duet-select svg{color:rgb(23, 28, 58)}.duet-select-variation-tiny .duet-select,.duet-select-variation-compact .duet-select{width:72px;min-width:inherit;padding:0 !important;margin-bottom:-4px;overflow:visible;font-weight:600;text-align:center}.duet-select-variation-tiny .duet-select duet-icon,.duet-select-variation-compact .duet-select duet-icon{padding-left:10px}.duet-select-variation-compact .duet-select{position:relative;width:fit-content;padding:7px 16px !important;font-size:0.875rem;line-height:1.1;text-align:right;border-radius:8px}.duet-select-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-select-help span{display:block;margin-top:8px}.duet-theme-turva .duet-select-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-select-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-select-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 DuetSelectStyle0=duetSelectCss;function isOptionGroup(e){return"options"in e}function findOptionByValue(e,t){for(var i=0;i<e.length;i++){var o=e[i];if(isOptionGroup(o)){o=findOptionByValue(o.options,t)}if(o&&o.value===t){return o}}}var DuetSelect=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.selectId=createID("DuetSelect");this.errorId=createID("DuetError");this.labelId=createID("DuetLabel");this.topCaptionId=createID("DuetCaptionTop");this.topCaptionPlaceholderId=createID("DuetCaptionPlaceholderTop");this.onClick=function(e){e.stopPropagation()};this.onChange=function(){t.value=t.nativeSelect.value;t.duetChange.emit({value:t.value,component:"duet-select"})};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-select"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-select"})};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=null;this.variation="default";this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleOwns=undefined;this.error="";this.accessibleLiveError="polite";this.expand=false;this.value=undefined;this.theme="";this.labelHidden=false;this.identifier=undefined;this.name=undefined;this.placeholder="";this.caption=undefined;this.echoPlaceholder=false;this.items=undefined;this.disabled=false;this.required=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.role=undefined;this.tooltip="";this.tooltipDirection="auto"}e.prototype.valueChanged=function(){if(this.nativeSelect){this.nativeSelect.value=this.value}this.isCaptionVisible=!!this.caption};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.isCaptionVisible=!!this.caption;checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true);this.refresh()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeSelect){this.nativeSelect.focus(e)}return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.processedItems=parsePossibleJSON(this.items);return[2]}))}))};e.prototype.getSelectedItemLabel=function(){var e;if(this.processedItems){e=findOptionByValue(this.processedItems,this.value)}return e?e.label:this.placeholder||""};e.prototype.renderOption=function(e){return h("option",{"aria-label":e.ariaLabel,value:e.value,key:e.value,selected:this.value===e.value,disabled:e.disabled},e.label)};e.prototype.renderOptionGroup=function(e){var t=this;return h("optgroup",{key:e.label,label:e.label,disabled:e.disabled},e.options.map((function(e){return t.renderOption(e)})))};e.prototype.render=function(){var e,t,i;var o=this;var a=this.identifier||this.selectId;return h(Host,{key:"28f5db49f64ea0115fa20745df6d535fac98ca08",onClick:this.onClick,class:(e={"duet-m-0":this.margin==="none","duet-expand":this.expand},e["duet-select-variation-".concat(this.variation)]=true,e)},h("div",{key:"73e7a3937df41f97d6501cb393b05a1e11e07b97",class:(t={"duet-select-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva"},t["duet-select-variation-".concat(this.variation)]=true,t["duet-input-top-caption-shown"]=this.isCaptionVisible,t["has-error"]=!!this.error,t)},h("duet-label",{key:"1b908d4ce2db347aea7654f7d150c3536023be7e",theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:a},this.label),this.tooltip&&h("duet-tooltip",{key:"f4ae4625f3844a0a4ff41ceeb5b09cc73f2c3139",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),h("slot",{key:"56432a29cd588587216dcb91b1d7fa29ae80c12d",name:"tooltip"}),this.caption&&h("duet-caption",{key:"2664591e6e79d7786ecd95e2136b7eb6ac46eb43",id:this.topCaptionId,size:"medium"},this.caption),h("div",{key:"17a7d144eb109640535302879dc8e46622f7542a",class:"duet-select-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&h("duet-caption",{key:"2777dafee5e8f98ca467b83cfa672aeb2bd51d26",id:this.topCaptionPlaceholderId,class:"duet-select-placeholder",size:"small"},this.placeholder),h("select",{key:"2d00bf64843b3d4402d75b50660baaa701e776bd",ref:function(e){return o.nativeSelect=e},disabled:this.disabled,name:this.name,id:a,role:this.role,"aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,required:this.required},this.placeholder&&h("option",{key:"9f4a48986073692a67a221d489c3bc9402324828",disabled:true,selected:true,value:""},this.placeholder),!this.processedItems?h("option",null,"Virhe valintoja ladattaessa. Päivitä sivu ja kokeile uusiksi."):this.processedItems.map((function(e){return isOptionGroup(e)?o.renderOptionGroup(e):o.renderOption(e)}))),h("div",{key:"00870092e20d5e30222ad0afa3072d1dfba03dce",class:(i={"duet-select":true},i["duet-select-variation-".concat(this.variation)]=true,i),"aria-hidden":"true"},h("span",{key:this.value,class:"duet-select-selected-value"},this.getSelectedItemLabel()),this.variation==="default"&&h("svg",{key:"e1e57dfb22ba2d97a460c34b18a49355e8fa41a7",role:"img",class:"duet-select-icon",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},h("path",{key:"5fedaf97f4a4293f318512cc312d4c1d6ac9fce2",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("duet-icon",{key:"52b2404b48602331e322f5ccf6f338cf5dba46e4",theme:this.theme,name:"action-arrow-down-small",color:"currentColor",margin:"none",size:this.variation==="compact"?"xxx-small":"xx-small"})),h("span",{key:"c647fdcfac98bfd444789464f4e89f905a3db068",class:"duet-keep-container-height",role:"presention","aria-hidden":"true"},"_")),h("span",{key:"2f8730fa473524bdc6fbfe52f295215fe023b984",class:"duet-select-help",id:this.errorId,"aria-live":this.accessibleLiveError,"aria-atomic":"true","aria-relevant":"additions removals"},this.error&&h("span",{key:"438e8329537edfc708bb57ce8de8d91abb7aaae8"},this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueChanged"],items:["refresh"]}},enumerable:false,configurable:true});return e}();DuetSelect.style=DuetSelectStyle0;export{DuetSelect as duet_select};
@@ -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-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetShapedImageCss='*,*::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;width:100%;height:100%;margin:5%}:host(.duet-theme-turva){margin:3%}:host(.duet-m-0){margin:0}.shaped-image{position:relative;display:inline-block;width:100%;height:100%}.shaped-image .shaped-image-mask{position:relative;display:block;width:100%;height:100%;overflow:hidden;border-radius:25%;transform:rotate(var(--rotation))}.shaped-image .shaped-image-mask .shaped-image-img{position:relative;display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:cover;transform:scale(1.07) rotate(calc(-1 * var(--rotation)));transform-origin:center}:host(.duet-theme-turva) .shaped-image .shaped-image-mask{transform:none;-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}:host(.duet-theme-turva) .shaped-image .shaped-image-mask .shaped-image-img{transform:none}';var DuetShapedImageStyle0=duetShapedImageCss;var DuetShapedImage=function(){function e(e){registerInstance(this,e);this.theme="";this.accessibleLabel=undefined;this.margin="auto";this.src=undefined;this.rotation=7}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e={"--rotation":"".concat(this.rotation,"deg")};return h(Host,{key:"cb4154853051eec78a10658344407c1653d737b3",class:{"duet-theme-turva":this.theme==="turva","duet-m-0":this.margin==="none"}},h("span",{key:"5cab0035d46b9e020cf7e4a18105a999646ad437",class:{"shaped-image":true},role:"img","aria-label":this.accessibleLabel,style:e},h("span",{key:"8c2d2bb60ac9042377402dea4453e4ec17885aac",class:"shaped-image-mask",role:"presentation"},h("span",{key:"765b32769035c6746c0412be9fe3b70bf8c75039",class:"shaped-image-img",role:"presentation",style:{backgroundImage:'url("'.concat(this.src,'")')}}))))};return e}();DuetShapedImage.style=DuetShapedImageStyle0;export{DuetShapedImage as duet_shaped_image};
4
+ import{r as registerInstance,h,H as Host}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetShapedImageCss='*,*::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;width:100%;height:100%;margin:5%}:host(.duet-theme-turva){margin:3%}:host(.duet-m-0){margin:0}.shaped-image{position:relative;display:inline-block;width:100%;height:100%}.shaped-image .shaped-image-mask{position:relative;display:block;width:100%;height:100%;overflow:hidden;border-radius:25%;transform:rotate(var(--rotation))}.shaped-image .shaped-image-mask .shaped-image-img{position:relative;display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:cover;transform:scale(1.07) rotate(calc(-1 * var(--rotation)));transform-origin:center}:host(.duet-theme-turva) .shaped-image .shaped-image-mask{transform:none;-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}:host(.duet-theme-turva) .shaped-image .shaped-image-mask .shaped-image-img{transform:none}';var DuetShapedImageStyle0=duetShapedImageCss;var DuetShapedImage=function(){function e(e){registerInstance(this,e);this.theme="";this.accessibleLabel=undefined;this.margin="auto";this.src=undefined;this.rotation=7}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e={"--rotation":"".concat(this.rotation,"deg")};return h(Host,{key:"555cbcb9c76cbda51c3c4cede13d764de7334c4e",class:{"duet-theme-turva":this.theme==="turva","duet-m-0":this.margin==="none"}},h("span",{key:"11704c842ec39f85048625cc78eb3dac55c18508",class:{"shaped-image":true},role:"img","aria-label":this.accessibleLabel,style:e},h("span",{key:"f4ebb6576b8d69bc929ccae1662a87bc7c2481c7",class:"shaped-image-mask",role:"presentation"},h("span",{key:"d7d83206a5d52dd0ec81ea25256ace0b0f68df6c",class:"shaped-image-img",role:"presentation",style:{backgroundImage:'url("'.concat(this.src,'")')}}))))};return e}();DuetShapedImage.style=DuetShapedImageStyle0;export{DuetShapedImage as duet_shaped_image};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{i as isKeyboardClick}from"./keyboard-utils-439bcc8b.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-95643489.js";import"./string-utils-192eb3c8.js";var duetShowMoreCss='*,*::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}.duet-show-more{margin-bottom:16px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77)}.duet-show-more.duet-m-0{margin:0 !important}.duet-show-more .slotted-content{display:none}.duet-show-more.open .slotted-content{display:block}.duet-show-more .content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-show-more.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-show-more.duet-theme-turva .content:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var DuetShowMoreStyle0=duetShowMoreCss;var DuetShowMore=function(){function e(e){var t=this;registerInstance(this,e);this.duetToggle=createEvent(this,"duetToggle",7);this.contentId=createID("DuetShowMore");this.buttonId=createID("DuetShowMoreButton");this.handleKeyDown=function(e){if(isKeyboardClick(e)){t.handleClick(e)}};this.handleClick=function(e){e.preventDefault();var s=!t.open;t.open=s;if(s){setTimeout((function(){t.contentElement.focus()}),100);setTimeout((function(){t.buttonAriaOpen=s}),500)}else{t.buttonAriaOpen=s}t.duetToggle.emit({component:"duet-show-more",originalEvent:e})};this.buttonAriaOpen=false;this.theme="";this.language=getLanguage();this.showMoreLabelDefaults={fi:"Näytä lisää",sv:"Visa mer",en:"Show more"};this.showMoreLabel=getLocaleString(this.showMoreLabelDefaults);this.showLessLabelDefaults={fi:"Näytä vähemmän",sv:"Visa mindre",en:"Show less"};this.showLessLabel=getLocaleString(this.showLessLabelDefaults);this.showMoreAccessibleLabelDefaults={fi:"Näytä lisää tästä aiheesta",sv:"Visa mer om detta ämne",en:"Show more about this subject"};this.showMoreAccessibleLabel=getLocaleString(this.showMoreAccessibleLabelDefaults);this.showLessAccessibleLabelDefaults={fi:"Näytä vähemmän tästä aiheesta",sv:"Visa mindre om detta ämne",en:"Show less about this subject"};this.showLessAccessibleLabel=getLocaleString(this.showLessAccessibleLabelDefaults);this.margin="auto";this.buttonMargin="auto";this.buttonPadding="auto";this.open=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.buttonAriaOpen=this.open};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,[{prop:"showMoreLabel",defaults:"showMoreLabelDefaults"},{prop:"showLessLabel",defaults:"showLessLabelDefaults"},{prop:"showMoreAccessibleLabel",defaults:"showMoreAccessibleLabelDefaults"},{prop:"showLessAccessibleLabel",defaults:"showLessAccessibleLabelDefaults"}])};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){var e=this;return h(Host,{key:"f2ae77fcd733d57404b733d43ffb049d3503ecd0"},h("div",{key:"a0a01d9f4ef3065ced4d4de652969744e6e1e227",class:{"duet-show-more":true,"duet-theme-turva":this.theme==="turva","duet-m-0":this.margin==="none",open:this.open}},h("div",{key:"8b799e3b59a456e4873357daa72313f0d29bffcf",ref:function(t){return e.contentElement=t},class:{content:true},id:this.contentId,tabindex:this.open?"0":""},h("div",{key:"e5e04fa045ab43f00086e8799f87ab2b57f0a13b",class:{"slotted-content":true}},h("slot",{key:"ca94e5187354a6debb373955df2d046a9c9271a4"}))),h("duet-button",{key:"fc11f79ebc689843332bc829f108d62180fa62fe",id:this.buttonId,variation:"plain","accessible-label":this.buttonAriaOpen?this.showLessAccessibleLabel:this.showMoreAccessibleLabel,"accessible-expanded":this.buttonAriaOpen?"true":"false","accessible-controls":this.contentId,accessiblePressed:this.open,onClick:this.handleClick,onKeyDown:this.handleKeyDown,"icon-right":true,icon:this.open?"action-arrow-up-small":"action-arrow-down-small","icon-size":"medium-small",size:"small",margin:this.buttonMargin,padding:this.buttonPadding,theme:this.theme==="turva"?"turva":"default"},h("span",{key:"63e4d04789225b2ff7938e8e1156345b14b6633f"},this.open?this.showLessLabel:this.showMoreLabel))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetShowMore.style=DuetShowMoreStyle0;export{DuetShowMore as duet_show_more};
4
+ import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{i as isKeyboardClick}from"./keyboard-utils-439bcc8b.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-95643489.js";import"./string-utils-192eb3c8.js";var duetShowMoreCss='*,*::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}.duet-show-more{margin-bottom:16px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77)}.duet-show-more.duet-m-0{margin:0 !important}.duet-show-more .slotted-content{display:none}.duet-show-more.open .slotted-content{display:block}.duet-show-more .content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-show-more.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-show-more.duet-theme-turva .content:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var DuetShowMoreStyle0=duetShowMoreCss;var DuetShowMore=function(){function e(e){var t=this;registerInstance(this,e);this.duetToggle=createEvent(this,"duetToggle",7);this.contentId=createID("DuetShowMore");this.buttonId=createID("DuetShowMoreButton");this.handleKeyDown=function(e){if(isKeyboardClick(e)){t.handleClick(e)}};this.handleClick=function(e){e.preventDefault();var s=!t.open;t.open=s;if(s){setTimeout((function(){t.contentElement.focus()}),100);setTimeout((function(){t.buttonAriaOpen=s}),500)}else{t.buttonAriaOpen=s}t.duetToggle.emit({component:"duet-show-more",originalEvent:e})};this.buttonAriaOpen=false;this.theme="";this.language=getLanguage();this.showMoreLabelDefaults={fi:"Näytä lisää",sv:"Visa mer",en:"Show more"};this.showMoreLabel=getLocaleString(this.showMoreLabelDefaults);this.showLessLabelDefaults={fi:"Näytä vähemmän",sv:"Visa mindre",en:"Show less"};this.showLessLabel=getLocaleString(this.showLessLabelDefaults);this.showMoreAccessibleLabelDefaults={fi:"Näytä lisää tästä aiheesta",sv:"Visa mer om detta ämne",en:"Show more about this subject"};this.showMoreAccessibleLabel=getLocaleString(this.showMoreAccessibleLabelDefaults);this.showLessAccessibleLabelDefaults={fi:"Näytä vähemmän tästä aiheesta",sv:"Visa mindre om detta ämne",en:"Show less about this subject"};this.showLessAccessibleLabel=getLocaleString(this.showLessAccessibleLabelDefaults);this.margin="auto";this.buttonMargin="auto";this.buttonPadding="auto";this.open=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.buttonAriaOpen=this.open};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,[{prop:"showMoreLabel",defaults:"showMoreLabelDefaults"},{prop:"showLessLabel",defaults:"showLessLabelDefaults"},{prop:"showMoreAccessibleLabel",defaults:"showMoreAccessibleLabelDefaults"},{prop:"showLessAccessibleLabel",defaults:"showLessAccessibleLabelDefaults"}])};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){var e=this;return h(Host,{key:"e795502d610ccc4d9fb5e2820c6e50a58b1f1d9d"},h("div",{key:"7f3dc284c84c60fea4742b85c080e43e4529b6f8",class:{"duet-show-more":true,"duet-theme-turva":this.theme==="turva","duet-m-0":this.margin==="none",open:this.open}},h("div",{key:"7f2d9de11a429a5d9e219cdeb5835e2ea8be2c2b",ref:function(t){return e.contentElement=t},class:{content:true},id:this.contentId,tabindex:this.open?"0":""},h("div",{key:"f10b510dd9a1369178d5bc4259d2ef55fc569e10",class:{"slotted-content":true}},h("slot",{key:"21169537ec721827e96bd24710de3f5d6d81fa8f"}))),h("duet-button",{key:"fd0aae5f657aeab52c5a9a49003e0d70c3644a10",id:this.buttonId,variation:"plain","accessible-label":this.buttonAriaOpen?this.showLessAccessibleLabel:this.showMoreAccessibleLabel,"accessible-expanded":this.buttonAriaOpen?"true":"false","accessible-controls":this.contentId,accessiblePressed:this.open,onClick:this.handleClick,onKeyDown:this.handleKeyDown,"icon-right":true,icon:this.open?"action-arrow-up-small":"action-arrow-down-small","icon-size":"medium-small",size:"small",margin:this.buttonMargin,padding:this.buttonPadding,theme:this.theme==="turva"?"turva":"default"},h("span",{key:"e4996c3f3a786b12ef395679e892ccce7d84399d"},this.open?this.showLessLabel:this.showMoreLabel))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetShowMore.style=DuetShowMoreStyle0;export{DuetShowMore as duet_show_more};
@@ -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-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver,g as getLocaleString}from"./language-utils-95643489.js";import"./string-utils-192eb3c8.js";var duetSlideoutLangCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-slideout-lang{display:flex;gap:20px;align-items:center;justify-content:flex-start;width:min-content;white-space:nowrap}::slotted(*){position:relative}::slotted(:not(:first-child)){padding-right:0;padding-left:0.5rem}::slotted(:not(:last-child))::after{position:absolute;top:25%;right:-16px;width:2px;height:50%;content:"";background:rgb(8, 42, 77)}.duet-theme-turva ::slotted(:not(:last-child))::after{background:rgb(23, 28, 58)}';var DuetSlideoutLangStyle0=duetSlideoutLangCss;var DuetSlideoutLang=function(){function e(e){registerInstance(this,e);this.chooseLangObject={en:"Choose language",fi:"Valitse kieli",sv:"Välj språk"};this.language=getLanguage();this.theme=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){var e=getLocaleString(this.chooseLangObject);return h(Host,{key:"a3f0902bcc3942cfdd9bd39d753bfcfeeebf8bd4"},h("div",{key:"e4b2d5245b065602e7b74bab03d2ad9a6390d5ab",class:"duet-slideout-lang",role:"group","aria-label":e},h("duet-icon",{key:"10f383d1179787ca4dda410b10ac2785bcbbcc36",name:"navigation-language",margin:"none",color:"secondary"}),h("slot",{key:"3a3f899dd72eb996f48ac588474810a95fa6fc19"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSlideoutLang.style=DuetSlideoutLangStyle0;export{DuetSlideoutLang as duet_slideout_lang};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver,g as getLocaleString}from"./language-utils-95643489.js";import"./string-utils-192eb3c8.js";var duetSlideoutLangCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-slideout-lang{display:flex;gap:20px;align-items:center;justify-content:flex-start;width:min-content;white-space:nowrap}::slotted(*){position:relative}::slotted(:not(:first-child)){padding-right:0;padding-left:0.5rem}::slotted(:not(:last-child))::after{position:absolute;top:25%;right:-16px;width:2px;height:50%;content:"";background:rgb(8, 42, 77)}.duet-theme-turva ::slotted(:not(:last-child))::after{background:rgb(23, 28, 58)}';var DuetSlideoutLangStyle0=duetSlideoutLangCss;var DuetSlideoutLang=function(){function e(e){registerInstance(this,e);this.chooseLangObject={en:"Choose language",fi:"Valitse kieli",sv:"Välj språk"};this.language=getLanguage();this.theme=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){var e=getLocaleString(this.chooseLangObject);return h(Host,{key:"d163f56230650efc540cf21892239905271a775e"},h("div",{key:"7b1d95d36da23db34a90055407a7f307ab0d4ffa",class:"duet-slideout-lang",role:"group","aria-label":e},h("duet-icon",{key:"07ed0679705221e14ba5e20d0db83a5b3073a7cf",name:"navigation-language",margin:"none",color:"secondary"}),h("slot",{key:"e847d0a2bf84e7099988d6bc9f6e59dfa0ba99d7"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSlideoutLang.style=DuetSlideoutLangStyle0;export{DuetSlideoutLang as duet_slideout_lang};
@@ -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-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetSlideoutLinkCss='*,*::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:100%}.duet-slideout-link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 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:inherit;font-weight:inherit;line-height:1.25;color:inherit;text-align:left;text-decoration:none}.duet-slideout-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-slideout-link:focus,.duet-slideout-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-link.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"}.duet-slideout-link.active span{position:relative}.duet-slideout-link.active span::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:var(--active-height, 2px);content:"";background:rgb(0, 119, 179);transform:var(--active-translate-y, translateY(2px))}.duet-slideout-link.active.duet-theme-turva span::after{background:rgb(198, 12, 48)}.duet-slideout-link.small{font-size:1rem;font-weight:600}.duet-slideout-link.small span::after{--active-height:1px;--active-translate-y:1px}.duet-slideout-link.medium{font-size:1.25rem;font-weight:600}.duet-slideout-link.large{font-size:1.5rem;font-weight:800}.duet-slideout-link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}slot[name=description]::slotted(*){display:block;padding:8px 0 0;font-size:1rem;font-size:1.25;font-weight:400;color:rgb(98, 121, 138)}.duet-theme-turva slot[name=description]::slotted(*){color:rgb(113, 118, 132)}';var DuetSlideoutLinkStyle0=duetSlideoutLinkCss;var DuetSlideoutLink=function(){function e(e){registerInstance(this,e);this.accessibleLabel=undefined;this.theme="";this.targetLanguage=undefined;this.active=false;this.href="#";this.icon=undefined;this.size="inherit";this.caret=false;this.menuItem=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e;return h(Host,{key:"756d30871c5f34ca3520a5bdecf5269c6a0b4afb"},h("a",{key:"16dfc8d2bcae2379ab25ce353eda255e79d6ad6b",class:(e={"duet-slideout-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},e[this.size]=true,e),href:this.href,"aria-current":this.active?"true":"false",lang:this.targetLanguage,hreflang:this.targetLanguage,"aria-label":this.accessibleLabel},this.icon&&h("duet-icon",{key:"6551aa92fee9498b1fc2b4ebb18a89ff1c72e607",name:this.icon,color:"secondary",size:this.menuItem?"x-small":"medium",margin:"none"}),h("div",{key:"f841f0d234ffca0d1dbaaae18e9de9f1de02de55",class:"label"},h("span",{key:"452f28fecf67c0da43ea807dd572d1db83e10ae6"},h("slot",{key:"896258d4f5fbcc5efa21d49cd867e0578302dbef"}),h("slot",{key:"6de4aa964201a5ffe68d7f894a499289db302527",name:"description"})),this.caret&&h("duet-icon",{key:"3b7c9337d8d76eb9bcc71fe7277e84599692bce4",name:"action-arrow-right",color:"secondary",size:"x-small",margin:"none"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSlideoutLink.style=DuetSlideoutLinkStyle0;export{DuetSlideoutLink as duet_slideout_link};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetSlideoutLinkCss='*,*::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:100%}.duet-slideout-link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 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:inherit;font-weight:inherit;line-height:1.25;color:inherit;text-align:left;text-decoration:none}.duet-slideout-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-slideout-link:focus,.duet-slideout-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-link.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"}.duet-slideout-link.active span{position:relative}.duet-slideout-link.active span::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:var(--active-height, 2px);content:"";background:rgb(0, 119, 179);transform:var(--active-translate-y, translateY(2px))}.duet-slideout-link.active.duet-theme-turva span::after{background:rgb(198, 12, 48)}.duet-slideout-link.small{font-size:1rem;font-weight:600}.duet-slideout-link.small span::after{--active-height:1px;--active-translate-y:1px}.duet-slideout-link.medium{font-size:1.25rem;font-weight:600}.duet-slideout-link.large{font-size:1.5rem;font-weight:800}.duet-slideout-link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}slot[name=description]::slotted(*){display:block;padding:8px 0 0;font-size:1rem;font-size:1.25;font-weight:400;color:rgb(98, 121, 138)}.duet-theme-turva slot[name=description]::slotted(*){color:rgb(113, 118, 132)}';var DuetSlideoutLinkStyle0=duetSlideoutLinkCss;var DuetSlideoutLink=function(){function e(e){registerInstance(this,e);this.accessibleLabel=undefined;this.theme="";this.targetLanguage=undefined;this.active=false;this.href="#";this.icon=undefined;this.size="inherit";this.caret=false;this.menuItem=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e;return h(Host,{key:"dbcb8bf6b8c65743fb716cbdda625cf4ea5162f8"},h("a",{key:"542c9910bad183af64eff3b965ef1cec19b4ac7b",class:(e={"duet-slideout-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},e[this.size]=true,e),href:this.href,"aria-current":this.active?"true":"false",lang:this.targetLanguage,hreflang:this.targetLanguage,"aria-label":this.accessibleLabel},this.icon&&h("duet-icon",{key:"c192e191c1323e742022c48651a75c16017b4837",name:this.icon,color:"secondary",size:this.menuItem?"x-small":"medium",margin:"none"}),h("div",{key:"b0e214e358e524f13a884c78e1d78118b171e3ed",class:"label"},h("span",{key:"af8697663031dc729bc98cf7c15cd2d58a03f861"},h("slot",{key:"84b1b365ac8fabcbf3c6451a8aa51caa18010aa9"}),h("slot",{key:"82b78e911b41cfd441fb9eab798093f6b726c993",name:"description"})),this.caret&&h("duet-icon",{key:"ee835e2bd7427531239041e03b19ed4335b8ad74",name:"action-arrow-right",color:"secondary",size:"x-small",margin:"none"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSlideoutLink.style=DuetSlideoutLinkStyle0;export{DuetSlideoutLink as duet_slideout_link};
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,o){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function r(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o["throw"](e))}catch(e){i(e)}}function l(e){e.done?n(e.value):a(e.value).then(r,s)}l((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,a,i,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(s){if(o)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(n=0)),n)try{if(o=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(s[0]===6&&n.label<i[1]){n.label=i[1];i=s;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(s);break}if(i[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];a=0}finally{o=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function r(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o["throw"](e))}catch(e){a(e)}}function l(e){e.done?n(e.value):i(e.value).then(r,s)}l((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return l([e,t])}}function l(s){if(o)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(n=0)),n)try{if(o=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{o=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,h,H as Host,g as getElement}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetSlideoutPanelDropdownCss='*,*::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:100%}:host slot:not([name=label])::slotted(*){position:relative;top:-0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel-dropdown{position:relative;width:100%;height:100%}.duet-slideout-panel-dropdown button{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 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:1.25rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none;cursor:pointer}.duet-slideout-panel-dropdown button .label{position:relative;display:flex;gap:0.5rem;align-items:center;justify-content:center}.duet-slideout-panel-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel-dropdown button.active .label::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:calc(100% - 18px);height:1px;content:"";background:rgb(0, 119, 179);transform:translateY(1px)}.duet-slideout-panel-dropdown .items{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;max-height:1000px;padding:4px 20px 8px 44px;overflow-y:auto;visibility:visible;transition:max-height 0.3s ease-in, padding-bottom 0.3s ease-in;-ms-overflow-style:none;scrollbar-width:none}.duet-slideout-panel-dropdown .items::-webkit-scrollbar{display:none}.duet-slideout-panel-dropdown .items.hidden{max-height:0;padding:0;overflow:hidden;visibility:hidden;transition:max-height 0.3s ease-out, padding-bottom 0.3s ease-out}.duet-slideout-panel-dropdown.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout-panel-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel-dropdown.duet-theme-turva button.active .label::after{background:rgb(198, 12, 48)}slot{--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:400;color:rgb(8, 42, 77)}.duet-theme-turva slot{color:rgb(23, 28, 58)}slot[name=label]{font-size:1rem;font-weight:600}';var DuetSlideoutPanelDropdownStyle0=duetSlideoutPanelDropdownCss;var DuetSlideoutPanelDropdown=function(){function e(e){var t=this;registerInstance(this,e);this.onClick=function(){t.open=!t.open};this.theme="";this.active=false;this.open=false;this.icon=undefined}e.prototype.handleFocus=function(e){var t=this;var n=e.composedPath().every((function(e){return e!==t.element}));if(n){this.open=false}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);var e=this.element.querySelectorAll("duet-slideout-link");e.forEach((function(e){e.menuItem=true}))};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.button.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return h(Host,{key:"79b5b5d923940bc3b0ab0515ccab7d498b327d5e"},h("div",{key:"b66ac749e1950d6c70c1c465479604cd91c03cfd",class:{"duet-slideout-panel-dropdown":true,"duet-theme-turva":this.theme==="turva",active:this.open}},h("button",{key:"7155b74267a0786267237b0170e30a4c20d8d180",ref:function(t){return e.button=t},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{active:this.active},onClick:this.onClick},this.icon&&h("duet-icon",{key:"014c5790e8eb52f02d10ecf398271b233b88f7b0",name:this.icon,size:"medium",margin:"none",color:"secondary"}),h("span",{key:"be3875ea25d4f094220b3599aa15bf7e014e81bd",class:"label"},h("slot",{key:"36b0112f4b2aa6ed192c19da3397beca24b8b29c",name:"label"}),h("duet-icon",{key:"2d4c1df9d41e97d1c7bb031252d31baa865a587c",class:"caret",name:"action-arrow-down-small",margin:"none",size:"xx-small",color:"secondary"}))),h("div",{key:"a9729a27afa76ccee3c7d3b14e7d48dab1dcb7a3",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:true,hidden:!this.open}},h("slot",{key:"63761e3a8bbea310fbc531dd63eae808be5cf3e4"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSlideoutPanelDropdown.style=DuetSlideoutPanelDropdownStyle0;export{DuetSlideoutPanelDropdown as duet_slideout_panel_dropdown};
4
+ */import{r as registerInstance,h,H as Host,g as getElement}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetSlideoutPanelDropdownCss='*,*::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:100%}:host slot:not([name=label])::slotted(*){position:relative;top:-0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel-dropdown{position:relative;width:100%;height:100%}.duet-slideout-panel-dropdown button{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 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:1.25rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none;cursor:pointer}.duet-slideout-panel-dropdown button .label{position:relative;display:flex;gap:0.5rem;align-items:center;justify-content:center}.duet-slideout-panel-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel-dropdown button.active .label::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:calc(100% - 18px);height:1px;content:"";background:rgb(0, 119, 179);transform:translateY(1px)}.duet-slideout-panel-dropdown .items{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;max-height:1000px;padding:4px 20px 8px 44px;overflow-y:auto;visibility:visible;transition:max-height 0.3s ease-in, padding-bottom 0.3s ease-in;-ms-overflow-style:none;scrollbar-width:none}.duet-slideout-panel-dropdown .items::-webkit-scrollbar{display:none}.duet-slideout-panel-dropdown .items.hidden{max-height:0;padding:0;overflow:hidden;visibility:hidden;transition:max-height 0.3s ease-out, padding-bottom 0.3s ease-out}.duet-slideout-panel-dropdown.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout-panel-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel-dropdown.duet-theme-turva button.active .label::after{background:rgb(198, 12, 48)}slot{--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:400;color:rgb(8, 42, 77)}.duet-theme-turva slot{color:rgb(23, 28, 58)}slot[name=label]{font-size:1rem;font-weight:600}';var DuetSlideoutPanelDropdownStyle0=duetSlideoutPanelDropdownCss;var DuetSlideoutPanelDropdown=function(){function e(e){var t=this;registerInstance(this,e);this.onClick=function(){t.open=!t.open};this.theme="";this.active=false;this.open=false;this.icon=undefined}e.prototype.handleFocus=function(e){var t=this;var n=e.composedPath().every((function(e){return e!==t.element}));if(n){this.open=false}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);var e=this.element.querySelectorAll("duet-slideout-link");e.forEach((function(e){e.menuItem=true}))};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.button.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return h(Host,{key:"f7a1b3521e799c7792945551a66c1c295dd5ffdc"},h("div",{key:"d63da6a1f3650e633c97795042a7b34b8ad48302",class:{"duet-slideout-panel-dropdown":true,"duet-theme-turva":this.theme==="turva",active:this.open}},h("button",{key:"ed40e8b4d2a431e4f578ea26583a70b8977d951c",ref:function(t){return e.button=t},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{active:this.active},onClick:this.onClick},this.icon&&h("duet-icon",{key:"44a4510103738db121e37e1d18f3a5f2484e7683",name:this.icon,size:"medium",margin:"none",color:"secondary"}),h("span",{key:"b2ce145800f498a7382885190458bb49205b7ada",class:"label"},h("slot",{key:"6ce00dfcd2d2ef3ac62143b9150b80f1ecc9a69d",name:"label"}),h("duet-icon",{key:"e6890351789e07002b0b9fc85d79baf6862bd239",class:"caret",name:"action-arrow-down-small",margin:"none",size:"xx-small",color:"secondary"}))),h("div",{key:"81a201018140f6519e9ed18baec3855790ef4cb4",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:true,hidden:!this.open}},h("slot",{key:"473c54c7f46f6cb77f5656ff8c7d60106836aa73"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSlideoutPanelDropdown.style=DuetSlideoutPanelDropdownStyle0;export{DuetSlideoutPanelDropdown as duet_slideout_panel_dropdown};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,a,i){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function s(e){try{r(i.next(e))}catch(e){n(e)}}function l(e){try{r(i["throw"](e))}catch(e){n(e)}}function r(e){e.done?a(e.value):o(e.value).then(s,l)}r((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,o,n,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return r([e,t])}}function r(l){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(a=0)),a)try{if(i=1,o&&(n=l[0]&2?o["return"]:l[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,l[1])).done)return n;if(o=0,n)l=[l[0]&2,n.value];switch(l[0]){case 0:case 1:n=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;o=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){a.label=l[1];break}if(l[0]===6&&a.label<n[1]){a.label=n[1];n=l;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(l);break}if(n[2])a.ops.pop();a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e];o=0}finally{i=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,h,H as Host,g as getElement}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{e as enableBodyScroll,d as disableBodyScroll}from"./body-scroll-46854769.js";import{F as FocusGuard}from"./focus-utils-fb393f52.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver,g as getLocaleString}from"./language-utils-95643489.js";import{h as hasSlot}from"./slot-utils-1be24d72.js";import{g as getColorByName}from"./token-utils-a32eb753.js";import"./string-utils-192eb3c8.js";import"./tokens.module-a746651a.js";var duetSlideoutPanelCss='*,*::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;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 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:1.5rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link .duet-slideout-icon{position:relative;display:inline-flex;font-size:0;line-height:normal;vertical-align:baseline}.duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{position:absolute;top:0;left:16px;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-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{background:rgb(247, 178, 40)}@media (min-width: 62em){.duet-slideout-panel .link .duet-slideout-icon{margin-right:8px}}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1.25rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.5rem;font-weight:800}.duet-slideout-panel .link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;left:0;z-index:600;width:100%;height:100%;overflow-y:auto;visibility:visible}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout-panel .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout-panel .top-container.has-sticky-header-slot .sticky-header{display:block;padding:0 16px}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1rem 16px;overflow-y:auto;color:rgb(8, 42, 77)}.duet-slideout-panel.duet-theme-turva .link{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout-panel.duet-theme-turva .link:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout-panel.duet-theme-turva .top .back:focus,.duet-slideout-panel.duet-theme-turva .top .close:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .top span{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)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}';var DuetSlideoutPanelStyle0=duetSlideoutPanelCss;var DuetSlideoutPanel=function(){function e(e){var t=this;registerInstance(this,e);this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"};this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"};this.hasStickyHeaderSlot=false;this.updateLabel=function(){var e=t.element.querySelector("[slot='label']");t.label=e};this.toggleMenu=function(){t.open=!t.open};this.onClick=function(){t.toggleMenu()};this.onCloseClick=function(e){e.stopPropagation();var a=t.element.parentElement;if(a.tagName==="DUET-SLIDEOUT"){var i=t.element.parentElement;enableBodyScroll(t.dialog);t.bodyScrollLocked=false;i.toggle()}};this.label=undefined;this.language=getLanguage();this.bodyScrollLocked=false;this.theme="";this.active=false;this.open=false;this.icon=undefined;this.labelSize="medium";this.backgroundColor="primary-lightest";this.badge=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.updateLabel();this.hasStickyHeaderSlot=hasSlot(this.element,"sticky-header")};e.prototype.connectedCallback=function(){var e=this;connectLanguageChangeObserver(this);this.mutationObserver=new MutationObserver((function(){var t=e.element.parentElement;if(t.tagName==="DUET-SLIDEOUT"){var a=e.element.parentElement;if(a.open&&e.open&&!e.bodyScrollLocked){e.bodyScrollLocked=true;disableBodyScroll(e.dialog,{reserveScrollBarGap:true})}else if(!a.open&&e.bodyScrollLocked){e.bodyScrollLocked=false;enableBodyScroll(e.dialog)}}}));this.mutationObserver.observe(this.element.parentElement,{childList:false,attributeFilter:["open"],subtree:false})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);if(this.dialog){enableBodyScroll(this.dialog);this.bodyScrollLocked=false}if(this.mutationObserver){this.mutationObserver.disconnect()}};e.prototype.handleOpenChange=function(e,t){var a=this;if(!!e===!!t){return}if(this.open&&!t){setTimeout((function(){var e=Array.from(a.element.parentElement.children);e.forEach((function(e){if(e!==a.element){e.inert=true}}));if(!a.bodyScrollLocked){disableBodyScroll(a.dialog,{reserveScrollBarGap:true});a.bodyScrollLocked=true}a.closeButton.focus()}),200)}else if(!this.open&&t){setTimeout((function(){var e=Array.from(a.element.parentElement.children);e.forEach((function(e){e.inert=false}));a.openButton.focus();enableBodyScroll(a.dialog);a.bodyScrollLocked=false}),200)}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(a){if(this.open){setTimeout((function(){t.closeButton.focus(e)}),200)}else{setTimeout((function(){t.openButton.focus(e)}),200)}return[2]}))}))};e.prototype.render=function(){var e;var t=this;var a=this.backgroundColor==="primary-lightest"?this.theme==="turva"?"gray-lighter":this.backgroundColor:this.backgroundColor;var i={background:getColorByName(a,this.theme)};var o=getLocaleString(this.exitLangObject);var n=getLocaleString(this.backLangObject);return h(Host,{key:"10b414a1d813be3e7f5ef8070b2c1d984c25ac44"},h("div",{key:"50ee38592ea290018fefaf87e3c8625579636ed9",class:{"duet-slideout-panel":true,"duet-theme-turva":this.theme==="turva",active:this.open}},h("button",{key:"4222c80ec11e0f6acb4eeaebf216968e42537c70",ref:function(e){return t.openButton=e},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:true,active:this.active},onClick:this.onClick,inert:this.open},this.icon&&h("div",{key:"ef87af453a36ae15d81ed98b882798092522610c",class:"duet-slideout-icon"},h("duet-icon",{key:"540a8e1f36285104c675438d0a053ce5a8aeaa38",name:this.icon,size:"medium",margin:"none",color:"secondary"}),this.badge&&h("div",{key:"a90b2189e9b0fe8325b12db27faa55955a5aaa0b",class:"duet-slideout-badge"})),h("span",{key:"9f266762f46f74d6c627098e57315df106bf9dfe",class:"label"},h("span",{key:"60a41c1094f9ba9b51cd6e29666af8f601b8a8d2",class:(e={"label-text":true},e[this.labelSize]=true,e)},h("slot",{key:"4160b184173ed8e9e3e93cee11cb8b797911c350",name:"label"})),h("duet-icon",{key:"1572389c79f37ff516d2462ec7dfc9e6e740c6c8",class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),h("div",{key:"fc738196e7f3d69ca2cc01db8fcbf5a7be3c39f1",ref:function(e){return t.dialog=e},class:{dialog:true,hidden:!this.open},style:i},h(FocusGuard,{key:"00a3795728a3374280aaa5f2b6b97f67bac388c6",moveFocusTo:this.closeButton}),h("div",{key:"84e8cf7f05aedd1fd6df3f08cd06b66abbd1ef17",class:{"top-container":true,"has-sticky-header-slot":this.hasStickyHeaderSlot}},h("div",{key:"a462d45d835fe35e6ce1e64e9527aeae033c192f",class:"top"},h("button",{key:"5b4eb5d8985437d6701987273dbe10d55185c0cf",ref:function(e){return t.closeButton=e},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":"".concat(n),type:"button",class:{back:true},onClick:this.onClick},h("duet-icon",{key:"b17a49853ca91e459db693d0c1dcbe861f9ee663",class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),h("span",{key:"033f64eb9236b0a1cc28214b0393f3c7e62d62f2"},this.label.innerHTML),h("button",{key:"005c6e62887ae4effd15bc19266a4b72d45f11bc",class:"close",type:"button",onClick:this.onCloseClick,"aria-label":"".concat(o)},h("duet-icon",{key:"0934dfbccb73be3827e684b1414f2a76c080b0fb",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),h("div",{key:"984c15369f3cd4a09dfd02efe5aa65effb2f453c",class:"sticky-header"},h("slot",{key:"28aea810fee655e0039f9412a5a0e979d4e0991e",name:"sticky-header"}))),h("div",{key:"d0fed891a8cd1320d5edd35d4461d1df9f1bec7d",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:true}},h("slot",{key:"859c0b8b029620561483192901482f2d7ac69fd8"})),h(FocusGuard,{key:"5676e24c74f3223c83eaa6cf67d05cc93c8ea339",moveFocusTo:this.closeButton}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["handleOpenChange"]}},enumerable:false,configurable:true});return e}();DuetSlideoutPanel.style=DuetSlideoutPanelStyle0;export{DuetSlideoutPanel as duet_slideout_panel};
4
+ */import{r as registerInstance,h,H as Host,g as getElement}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{e as enableBodyScroll,d as disableBodyScroll}from"./body-scroll-46854769.js";import{F as FocusGuard}from"./focus-utils-fb393f52.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver,g as getLocaleString}from"./language-utils-95643489.js";import{h as hasSlot}from"./slot-utils-23c88903.js";import{g as getColorByName}from"./token-utils-a32eb753.js";import"./string-utils-192eb3c8.js";import"./tokens.module-a746651a.js";var duetSlideoutPanelCss='*,*::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;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 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:1.5rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link .duet-slideout-icon{position:relative;display:inline-flex;font-size:0;line-height:normal;vertical-align:baseline}.duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{position:absolute;top:0;left:16px;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-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{background:rgb(247, 178, 40)}@media (min-width: 62em){.duet-slideout-panel .link .duet-slideout-icon{margin-right:8px}}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1.25rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.5rem;font-weight:800}.duet-slideout-panel .link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;left:0;z-index:600;width:100%;height:100%;overflow-y:auto;visibility:visible}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout-panel .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout-panel .top-container.has-sticky-header-slot .sticky-header{display:block;padding:0 16px}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1rem 16px;overflow-y:auto;color:rgb(8, 42, 77)}.duet-slideout-panel.duet-theme-turva .link{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout-panel.duet-theme-turva .link:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout-panel.duet-theme-turva .top .back:focus,.duet-slideout-panel.duet-theme-turva .top .close:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .top span{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)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}';var DuetSlideoutPanelStyle0=duetSlideoutPanelCss;var DuetSlideoutPanel=function(){function e(e){var t=this;registerInstance(this,e);this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"};this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"};this.hasStickyHeaderSlot=false;this.updateLabel=function(){var e=t.element.querySelector("[slot='label']");t.label=e};this.toggleMenu=function(){t.open=!t.open};this.onClick=function(){t.toggleMenu()};this.onCloseClick=function(e){e.stopPropagation();var a=t.element.parentElement;if(a.tagName==="DUET-SLIDEOUT"){var i=t.element.parentElement;enableBodyScroll(t.dialog);t.bodyScrollLocked=false;i.toggle()}};this.label=undefined;this.language=getLanguage();this.bodyScrollLocked=false;this.theme="";this.active=false;this.open=false;this.icon=undefined;this.labelSize="medium";this.backgroundColor="primary-lightest";this.badge=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.updateLabel();this.hasStickyHeaderSlot=hasSlot(this.element,"sticky-header")};e.prototype.connectedCallback=function(){var e=this;connectLanguageChangeObserver(this);this.mutationObserver=new MutationObserver((function(){var t=e.element.parentElement;if(t.tagName==="DUET-SLIDEOUT"){var a=e.element.parentElement;if(a.open&&e.open&&!e.bodyScrollLocked){e.bodyScrollLocked=true;disableBodyScroll(e.dialog,{reserveScrollBarGap:true})}else if(!a.open&&e.bodyScrollLocked){e.bodyScrollLocked=false;enableBodyScroll(e.dialog)}}}));this.mutationObserver.observe(this.element.parentElement,{childList:false,attributeFilter:["open"],subtree:false})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);if(this.dialog){enableBodyScroll(this.dialog);this.bodyScrollLocked=false}if(this.mutationObserver){this.mutationObserver.disconnect()}};e.prototype.handleOpenChange=function(e,t){var a=this;if(!!e===!!t){return}if(this.open&&!t){setTimeout((function(){var e=Array.from(a.element.parentElement.children);e.forEach((function(e){if(e!==a.element){e.inert=true}}));if(!a.bodyScrollLocked){disableBodyScroll(a.dialog,{reserveScrollBarGap:true});a.bodyScrollLocked=true}a.closeButton.focus()}),200)}else if(!this.open&&t){setTimeout((function(){var e=Array.from(a.element.parentElement.children);e.forEach((function(e){e.inert=false}));a.openButton.focus();enableBodyScroll(a.dialog);a.bodyScrollLocked=false}),200)}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(a){if(this.open){setTimeout((function(){t.closeButton.focus(e)}),200)}else{setTimeout((function(){t.openButton.focus(e)}),200)}return[2]}))}))};e.prototype.render=function(){var e;var t=this;var a=this.backgroundColor==="primary-lightest"?this.theme==="turva"?"gray-lighter":this.backgroundColor:this.backgroundColor;var i={background:getColorByName(a,this.theme)};var o=getLocaleString(this.exitLangObject);var n=getLocaleString(this.backLangObject);return h(Host,{key:"0318776fab9cea36b44efcbd8a066fc7a71aa59e"},h("div",{key:"1d95822243d5c86ec5b5173e4e681b4146e4476f",class:{"duet-slideout-panel":true,"duet-theme-turva":this.theme==="turva",active:this.open}},h("button",{key:"a45e36b09686a148c2ba62e9984627920710ecb7",ref:function(e){return t.openButton=e},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:true,active:this.active},onClick:this.onClick,inert:this.open},this.icon&&h("div",{key:"6f2dee22c324bf4ead87048ebff2a20c47ca896a",class:"duet-slideout-icon"},h("duet-icon",{key:"44e1cac15f61dab325132fcc3514c8e0354cc43a",name:this.icon,size:"medium",margin:"none",color:"secondary"}),this.badge&&h("div",{key:"024312ec408282554844e751ab4b49d05b96b548",class:"duet-slideout-badge"})),h("span",{key:"283051aa5c3b14ee17ca9da70c094a57235e749e",class:"label"},h("span",{key:"81b5642422add92e13dbf34d95a26c0588858de7",class:(e={"label-text":true},e[this.labelSize]=true,e)},h("slot",{key:"d44a3600f9a66a1768a530317ee8e97d61d7d5a4",name:"label"})),h("duet-icon",{key:"4e27c46508e15f8a57b08025121d7a30386fd7e1",class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),h("div",{key:"0e7fce1743db4fe772c3165ea76ddd2b5215e3c3",ref:function(e){return t.dialog=e},class:{dialog:true,hidden:!this.open},style:i},h(FocusGuard,{key:"40a3ed99c1bf1bceb7378326804d3f5e76a2caf0",moveFocusTo:this.closeButton}),h("div",{key:"513ce8191e12b73aa0ec22360499905c9a120aca",class:{"top-container":true,"has-sticky-header-slot":this.hasStickyHeaderSlot}},h("div",{key:"f6d518848785f147415050e356dcfe42e00e64af",class:"top"},h("button",{key:"6c6d3320016eeabed6b06b5d997bf0fe871b7d5b",ref:function(e){return t.closeButton=e},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":"".concat(n),type:"button",class:{back:true},onClick:this.onClick},h("duet-icon",{key:"e68686b85946c9e54babfb2aa7012e37048b6a23",class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),h("span",{key:"b2082182002d6fc1687fdbe1a75c30a62061a083"},this.label.innerHTML),h("button",{key:"b6cfea3156d9398f6ff290c6abbdbdff55a16edd",class:"close",type:"button",onClick:this.onCloseClick,"aria-label":"".concat(o)},h("duet-icon",{key:"4f973e329f5254a4d6fbb230bb2e1c815d07fab5",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),h("div",{key:"b2f3ca3d5bd5e4881cfbe6acd61b8ff209408f35",class:"sticky-header"},h("slot",{key:"9a1594cd89ffce28613a575b53219736fcf02bae",name:"sticky-header"}))),h("div",{key:"74a5a1eefa940a78f4904f118fbb22da52177d83",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:true}},h("slot",{key:"59168289af3be6afbf35af828da4800c1209809c"})),h(FocusGuard,{key:"688c55a2b0881c10204aa353123bc524c88a23b9",moveFocusTo:this.closeButton}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["handleOpenChange"]}},enumerable:false,configurable:true});return e}();DuetSlideoutPanel.style=DuetSlideoutPanelStyle0;export{DuetSlideoutPanel as duet_slideout_panel};
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,o){function n(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,a){function s(t){try{u(o.next(t))}catch(t){a(t)}}function r(t){try{u(o["throw"](t))}catch(t){a(t)}}function u(t){t.done?i(t.value):n(t.value).then(s,r)}u((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,a,s;return s={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function r(t){return function(e){return u([t,e])}}function u(r){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,r[0]&&(i=0)),i)try{if(o=1,n&&(a=r[0]&2?n["return"]:r[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,r[1])).done)return a;if(n=0,a)r=[r[0]&2,a.value];switch(r[0]){case 0:case 1:a=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;n=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!a||r[1]>a[0]&&r[1]<a[3])){i.label=r[1];break}if(r[0]===6&&i.label<a[1]){i.label=a[1];a=r;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(r);break}if(a[2])i.ops.pop();i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t];n=0}finally{o=a=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,o){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,n){function s(t){try{u(o.next(t))}catch(t){n(t)}}function r(t){try{u(o["throw"](t))}catch(t){n(t)}}function u(t){t.done?i(t.value):a(t.value).then(s,r)}u((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,a,n,s;return s={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function r(t){return function(e){return u([t,e])}}function u(r){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,r[0]&&(i=0)),i)try{if(o=1,a&&(n=r[0]&2?a["return"]:r[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,r[1])).done)return n;if(a=0,n)r=[r[0]&2,n.value];switch(r[0]){case 0:case 1:n=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;a=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!n||r[1]>n[0]&&r[1]<n[3])){i.label=r[1];break}if(r[0]===6&&i.label<n[1]){i.label=n[1];n=r;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(r);break}if(n[2])i.ops.pop();i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t];a=0}finally{o=n=0}if(r[0]&5)throw r[1];return{value:r[0]?r[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-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{e as enableBodyScroll,d as disableBodyScroll}from"./body-scroll-46854769.js";import{f as focusElement,F as FocusGuard}from"./focus-utils-fb393f52.js";import{f as isEscapeKey}from"./keyboard-utils-439bcc8b.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver,g as getLocaleString}from"./language-utils-95643489.js";import{h as hasSlot}from"./slot-utils-1be24d72.js";import{T as Teleport}from"./teleport-546f382d.js";import{g as getColorByName}from"./token-utils-a32eb753.js";import"./string-utils-192eb3c8.js";import"./tokens.module-a746651a.js";var duetSlideoutCss='*,*::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;position:absolute;height:100%}::slotted(*){position:relative;width:100%;visibility:hidden;opacity:0}:host([open]:not([open=false])) ::slotted(*){visibility:visible;opacity:1}:host(:not([open])) ::slotted(duet-slideout-panel){display:none}.duet-slideout{display:flex;align-items:center;height:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77)}.duet-slideout.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}@media (min-width: 62em){.duet-slideout.duet-theme-turva .desktop-bg{background:rgb(23, 28, 58)}}.duet-slideout .dialog{position:fixed;top:0;bottom:0;left:0;z-index:600;width:100%;height:100%;padding-bottom:75px;overflow-y:auto;box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1) inset}.duet-slideout .dialog:not(.modal){box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 62em){.duet-slideout .dialog{right:0;left:auto;width:500px;padding-bottom:0;transition:right 300ms ease;transition-delay:0s}}.duet-slideout .dialog .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout .dialog .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout .dialog .top-container.has-sticky-header-slot .sticky-header{display:block}.duet-slideout .dialog .top{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;padding:4px}.duet-slideout .dialog .top button{cursor:pointer}.duet-slideout .dialog .top button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout .dialog .top duet-icon{padding:16px}.duet-slideout .dialog .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout .dialog .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%;padding:0 1.5rem}.duet-slideout .dialog.hidden{pointer-events:none;visibility:hidden}@media (min-width: 62em){.duet-slideout .dialog.hidden{right:-500px;transition:300ms ease}}.duet-slideout.duet-theme-turva .dialog{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1) inset}.duet-slideout.duet-theme-turva .dialog:not(.modal){box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}.duet-slideout.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout.duet-theme-turva button.active{color:rgb(198, 12, 48)}.duet-slideout.duet-theme-turva button.active::after{background:rgb(198, 12, 48)}.duet-slideout.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout.duet-theme-turva .dialog .top button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}slot{color:rgb(8, 42, 77)}.duet-theme-turva slot{color:rgb(23, 28, 58)}';var DuetSlideoutStyle0=duetSlideoutCss;var DuetSlideout=function(){function t(t){var e=this;registerInstance(this,t);this.duetSlideoutEvent=createEvent(this,"duetSlideoutEvent",7);this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"};this.topLevelOpenMenuBarLangObject={en:"Exit this menu to find top level items",fi:"Poistu tästä valikosta löytääksesi ylätason kohteet",sv:"Stäng den här menyn för att hitta objekt på toppnivå"};this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(navigator===null||navigator===void 0?void 0:navigator.userAgent);this.hasStickyHeaderSlot=false;this.setOpenButton=function(t){if(!t){return}try{var i=t;i.accessiblePopup="true";i.accessibleExpanded=false;e.openButton=i}catch(t){}};this.setStickHeaderStyleMutations=function(t){if(t===void 0){t=false}var i=e.element.querySelectorAll('[slot="sticky-header"] duet-tab-group');i.forEach((function(e){e.style.position=t?null:"relative";e.style.top=t?null:"1px"}))};this.openButtonEventListener=function(t){e.onClick(t)};this.getOpenPanel=function(){return e.element.querySelector("duet-slideout-panel[open]")};this.toggleMenu=function(t){e.open=!e.open;e.duetSlideoutEvent.emit({originalEvent:t,data:{element:e.element,open:e.open},component:"duet-slideout"})};this.onClick=function(t){e.toggleMenu(t)};this.language=getLanguage();this.displaying=false;this.openPanel=false;this.theme="";this.accessibleRole="menubar";this.open=false;this.backgroundColor="gray-lightest";this.modal=true}Object.defineProperty(t.prototype,"opener",{get:function(){return this._opener},set:function(t){if(this.opener===t){return}if(typeof t==="string"){this.setOpenButton(document.getElementById(t));if(this.openButton){this.openButton.addEventListener("click",this.openButtonEventListener)}}else{this.setOpenButton(t)}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"controller",{get:function(){return this._opener},set:function(t){this.opener=t},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasStickyHeaderSlot=hasSlot(this.element,"sticky-header")};t.prototype.connectedCallback=function(){var t=this;connectLanguageChangeObserver(this);if(!this.teleport){this.teleport=new Teleport(this.element)}if(this.teleport){this.teleport.activate()}this.setStickHeaderStyleMutations();this.mutationObserver=new MutationObserver((function(){t.openPanel=!!t.getOpenPanel()}));this.mutationObserver.observe(this.element,{childList:true,attributeFilter:["open"],subtree:true})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);if(this.dialog&&this.modal){enableBodyScroll(this.dialog)}if(this.mutationObserver){this.mutationObserver.disconnect()}if(this.openButton){this.openButton.removeEventListener("click",this.openButtonEventListener)}this.setStickHeaderStyleMutations(true)};t.prototype.handleOpenChange=function(t,e){var i=this;if(!!t===!!e){return}if(this.open&&!e){if(this.openButton){this.openButton.accessibleExpanded=true}var o=this.getOpenPanel();this.teleport.makeSiblingsInert();if(this.modal){disableBodyScroll(this.dialog,{reserveScrollBarGap:true})}if(o){o.setFocus()}else{setTimeout((function(){i.closeButton.focus()}),200)}}else if(!this.open&&e){if(this.openButton){this.openButton.accessibleExpanded=false}setTimeout((function(){focusElement(i.openButton);if(i.modal){enableBodyScroll(i.dialog)}i.teleport.removeInertFromSiblings()}),200)}};t.prototype.handleKeyUp=function(t){if(isEscapeKey(t)){if(this.open){this.toggleMenu(t)}}};t.prototype.handleDocumentClick=function(t){if(!this.open){return}var e=t.composedPath();if(!e.includes(this.dialog)&&!e.includes(this.openButton)){this.toggleMenu(t)}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){(e=this.openButton)===null||e===void 0?void 0:e.focus(t);return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){t=new CustomEvent("toggle");this.toggleMenu(t);setTimeout((function(){e.closeButton.focus()}),200);return[2]}))}))};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.open){return[2]}this.setOpenButton(document.activeElement);this.toggleMenu(new CustomEvent("toggle"));return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.open){return[2]}this.toggleMenu(new CustomEvent("toggle"));return[2]}))}))};t.prototype.render=function(){var t=this;var e={background:getColorByName(this.backgroundColor,this.theme)};var i=getLocaleString(this.topLevelOpenMenuBarLangObject);var o=getLocaleString(this.exitLangObject);return h(Host,{key:"14fdba7fda5928417732464bfb4fd9b16f7b2064"},h("div",{key:"ad888076253b6aadf02beac7fd057ac3fb4fdf3d",class:{"duet-slideout":true,"duet-theme-turva":this.theme==="turva"}},this.modal&&h("duet-overlay",{key:"402885b296bd543ddbe8cf83908e90a181b9da10",visible:this.open,"display-device":"large",zIndex:"600"}),h("div",{key:"e93a803cbfbe0be22ec7fd6f70c890bf1b652532",ref:function(e){return t.dialog=e},tabindex:"-1",role:"dialog",id:"dialog","aria-labelledby":"button","aria-modal":this.isSafariBrowser?false:true,"aria-flowto":"slot-container",class:{dialog:true,hidden:!this.open,modal:this.modal},style:e},h(FocusGuard,{key:"0e6e26357b438fb966c72cf164a4c39ce8b235bd",moveFocusTo:this.closeButton}),h("div",{key:"c65959274e1c3191495c03d01adb69c76d23e3e4",class:{"top-container":true,"has-sticky-header-slot":this.hasStickyHeaderSlot}},h("div",{key:"d03362b067baf916076e9992e63933b309e84e44",class:"top"},h("button",{key:"893421c3ed8c0224031b2db5c2db1f1eb7f1791a",ref:function(e){return t.closeButton=e},"aria-haspopup":"dialog","aria-controls":"dialog","aria-expanded":this.open?"true":"false","aria-label":"".concat(o),type:"button",class:{"slideout-close":true,active:this.open},onClick:this.onClick,inert:this.openPanel},h("duet-icon",{key:"354bcaf0344522712c12904991ade60e97924b88",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),h("div",{key:"a55711bc7b1ad408dc4720372cedc676a303fe84",class:"sticky-header"},h("slot",{key:"15ef13899e66f98dd681b8105528d8f55fd2f2a2",name:"sticky-header"}))),h("div",{key:"698ce98219d2c6d387e92b96a71967bc632dee00",id:"slot-container",role:this.accessibleRole,"aria-label":this.openPanel?i:null,class:{items:true}},h("slot",{key:"75862e49d89cdd2e20ecaa574b1c76da95f3c1c6"})),h(FocusGuard,{key:"e74750f4e595532c2fb7185a40f57efa7e032122",moveFocusTo:this.closeButton}))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["handleOpenChange"]}},enumerable:false,configurable:true});return t}();DuetSlideout.style=DuetSlideoutStyle0;export{DuetSlideout as duet_slideout};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{e as enableBodyScroll,d as disableBodyScroll}from"./body-scroll-46854769.js";import{f as focusElement,F as FocusGuard}from"./focus-utils-fb393f52.js";import{f as isEscapeKey}from"./keyboard-utils-439bcc8b.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver,g as getLocaleString}from"./language-utils-95643489.js";import{h as hasSlot}from"./slot-utils-23c88903.js";import{T as Teleport}from"./teleport-546f382d.js";import{g as getColorByName}from"./token-utils-a32eb753.js";import"./string-utils-192eb3c8.js";import"./tokens.module-a746651a.js";var duetSlideoutCss='*,*::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;position:absolute;height:100%}::slotted(*){position:relative;width:100%;visibility:hidden;opacity:0}:host([open]:not([open=false])) ::slotted(*){visibility:visible;opacity:1}:host(:not([open])) ::slotted(duet-slideout-panel){display:none}.duet-slideout{display:flex;align-items:center;height:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77)}.duet-slideout.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}@media (min-width: 62em){.duet-slideout.duet-theme-turva .desktop-bg{background:rgb(23, 28, 58)}}.duet-slideout .dialog{position:fixed;top:0;bottom:0;left:0;z-index:600;width:100%;height:100%;padding-bottom:75px;overflow-y:auto;box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1) inset}.duet-slideout .dialog:not(.modal){box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 62em){.duet-slideout .dialog{right:0;left:auto;width:500px;padding-bottom:0;transition:right 300ms ease;transition-delay:0s}}.duet-slideout .dialog .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout .dialog .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout .dialog .top-container.has-sticky-header-slot .sticky-header{display:block}.duet-slideout .dialog .top{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;padding:4px}.duet-slideout .dialog .top button{cursor:pointer}.duet-slideout .dialog .top button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout .dialog .top duet-icon{padding:16px}.duet-slideout .dialog .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout .dialog .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%;padding:0 1.5rem}.duet-slideout .dialog.hidden{pointer-events:none;visibility:hidden}@media (min-width: 62em){.duet-slideout .dialog.hidden{right:-500px;transition:300ms ease}}.duet-slideout.duet-theme-turva .dialog{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1) inset}.duet-slideout.duet-theme-turva .dialog:not(.modal){box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}.duet-slideout.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout.duet-theme-turva button.active{color:rgb(198, 12, 48)}.duet-slideout.duet-theme-turva button.active::after{background:rgb(198, 12, 48)}.duet-slideout.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout.duet-theme-turva .dialog .top button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}slot{color:rgb(8, 42, 77)}.duet-theme-turva slot{color:rgb(23, 28, 58)}';var DuetSlideoutStyle0=duetSlideoutCss;var DuetSlideout=function(){function t(t){var e=this;registerInstance(this,t);this.duetSlideoutEvent=createEvent(this,"duetSlideoutEvent",7);this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"};this.topLevelOpenMenuBarLangObject={en:"Exit this menu to find top level items",fi:"Poistu tästä valikosta löytääksesi ylätason kohteet",sv:"Stäng den här menyn för att hitta objekt på toppnivå"};this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(navigator===null||navigator===void 0?void 0:navigator.userAgent);this.hasStickyHeaderSlot=false;this.setOpenButton=function(t){if(!t){return}try{var i=t;i.accessiblePopup="true";i.accessibleExpanded=false;e.openButton=i}catch(t){}};this.setStickHeaderStyleMutations=function(t){if(t===void 0){t=false}var i=e.element.querySelectorAll('[slot="sticky-header"] duet-tab-group');i.forEach((function(e){e.style.position=t?null:"relative";e.style.top=t?null:"1px"}))};this.openButtonEventListener=function(t){e.onClick(t)};this.getOpenPanel=function(){return e.element.querySelector("duet-slideout-panel[open]")};this.toggleMenu=function(t){e.open=!e.open;e.duetSlideoutEvent.emit({originalEvent:t,data:{element:e.element,open:e.open},component:"duet-slideout"})};this.onClick=function(t){e.toggleMenu(t)};this.language=getLanguage();this.displaying=false;this.openPanel=false;this.theme="";this.accessibleRole="menubar";this.open=false;this.backgroundColor="gray-lightest";this.modal=true}Object.defineProperty(t.prototype,"opener",{get:function(){return this._opener},set:function(t){if(this.opener===t){return}if(typeof t==="string"){this.setOpenButton(document.getElementById(t));if(this.openButton){this.openButton.addEventListener("click",this.openButtonEventListener)}}else{this.setOpenButton(t)}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"controller",{get:function(){return this._opener},set:function(t){this.opener=t},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasStickyHeaderSlot=hasSlot(this.element,"sticky-header")};t.prototype.connectedCallback=function(){var t=this;connectLanguageChangeObserver(this);if(!this.teleport){this.teleport=new Teleport(this.element)}if(this.teleport){this.teleport.activate()}this.setStickHeaderStyleMutations();this.mutationObserver=new MutationObserver((function(){t.openPanel=!!t.getOpenPanel()}));this.mutationObserver.observe(this.element,{childList:true,attributeFilter:["open"],subtree:true})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);if(this.dialog&&this.modal){enableBodyScroll(this.dialog)}if(this.mutationObserver){this.mutationObserver.disconnect()}if(this.openButton){this.openButton.removeEventListener("click",this.openButtonEventListener)}this.setStickHeaderStyleMutations(true)};t.prototype.handleOpenChange=function(t,e){var i=this;if(!!t===!!e){return}if(this.open&&!e){if(this.openButton){this.openButton.accessibleExpanded=true}var o=this.getOpenPanel();this.teleport.makeSiblingsInert();if(this.modal){disableBodyScroll(this.dialog,{reserveScrollBarGap:true})}if(o){o.setFocus()}else{setTimeout((function(){i.closeButton.focus()}),200)}}else if(!this.open&&e){if(this.openButton){this.openButton.accessibleExpanded=false}setTimeout((function(){focusElement(i.openButton);if(i.modal){enableBodyScroll(i.dialog)}i.teleport.removeInertFromSiblings()}),200)}};t.prototype.handleKeyUp=function(t){if(isEscapeKey(t)){if(this.open){this.toggleMenu(t)}}};t.prototype.handleDocumentClick=function(t){if(!this.open){return}var e=t.composedPath();if(!e.includes(this.dialog)&&!e.includes(this.openButton)){this.toggleMenu(t)}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){(e=this.openButton)===null||e===void 0?void 0:e.focus(t);return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){t=new CustomEvent("toggle");this.toggleMenu(t);setTimeout((function(){e.closeButton.focus()}),200);return[2]}))}))};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.open){return[2]}this.setOpenButton(document.activeElement);this.toggleMenu(new CustomEvent("toggle"));return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.open){return[2]}this.toggleMenu(new CustomEvent("toggle"));return[2]}))}))};t.prototype.render=function(){var t=this;var e={background:getColorByName(this.backgroundColor,this.theme)};var i=getLocaleString(this.topLevelOpenMenuBarLangObject);var o=getLocaleString(this.exitLangObject);return h(Host,{key:"7e5384e7a8da21a6bfcd4e6f84f8c0cb60d3250a"},h("div",{key:"a0ddecf72e05002132592afbea9ab503e8929698",class:{"duet-slideout":true,"duet-theme-turva":this.theme==="turva"}},this.modal&&h("duet-overlay",{key:"bd9eb4bb301549c79486fbec4ec9cc3306001152",visible:this.open,"display-device":"large",zIndex:"600"}),h("div",{key:"8bcb933d1862b16a784105144cbb830b085b7a37",ref:function(e){return t.dialog=e},tabindex:"-1",role:"dialog",id:"dialog","aria-labelledby":"button","aria-modal":this.isSafariBrowser?false:true,"aria-flowto":"slot-container",class:{dialog:true,hidden:!this.open,modal:this.modal},style:e},h(FocusGuard,{key:"4f32ae824a9963b9324a6a75aec30a1ec3b9da34",moveFocusTo:this.closeButton}),h("div",{key:"b3a2d23360f0080c3345925ab2dd3ba71726102e",class:{"top-container":true,"has-sticky-header-slot":this.hasStickyHeaderSlot}},h("div",{key:"346320e78d1b3b31cd27505873e27d9de14e7105",class:"top"},h("button",{key:"70bd3ca676c250d31bf67ffc0cd4900c73d2e093",ref:function(e){return t.closeButton=e},"aria-haspopup":"dialog","aria-controls":"dialog","aria-expanded":this.open?"true":"false","aria-label":"".concat(o),type:"button",class:{"slideout-close":true,active:this.open},onClick:this.onClick,inert:this.openPanel},h("duet-icon",{key:"1aa814b1f9015483a3b4bc7f473b5aede84f3cd0",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),h("div",{key:"f11c81c8efcdca2ddb6cdc987e2e1f220d467398",class:"sticky-header"},h("slot",{key:"e0bf8ba236ee29c1f1b497df27b337ab1f96628a",name:"sticky-header"}))),h("div",{key:"dbf227d18aed0d6d3db65db6522ffda1b69d8dba",id:"slot-container",role:this.accessibleRole,"aria-label":this.openPanel?i:null,class:{items:true}},h("slot",{key:"facef4d207e8df7c34a8aeca8595d832fd6de5e6"})),h(FocusGuard,{key:"5733820870caa0acd80b157d88b03ae1797360b8",moveFocusTo:this.closeButton}))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["handleOpenChange"]}},enumerable:false,configurable:true});return t}();DuetSlideout.style=DuetSlideoutStyle0;export{DuetSlideout as duet_slideout};
@@ -1,4 +1,4 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(i.next(e))}catch(e){a(e)}}function s(e){try{u(i["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):r(e.value).then(o,s)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(n=0)),n)try{if(i=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];r=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{d(i.next(e))}catch(e){a(e)}}function s(e){try{d(i["throw"](e))}catch(e){a(e)}}function d(e){e.done?n(e.value):r(e.value).then(o,s)}d((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return d([e,t])}}function d(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(n=0)),n)try{if(i=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];r=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,g as getElement,H as Host}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{i as isKeyboardClick,s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-439bcc8b.js";var actionEdit2={title:"action-edit-2",tags:"action edit 2 pen pencil",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.748 24a.755.755 0 0 1-.531-.22.754.754 0 0 1-.196-.716l1.77-6.905a.84.84 0 0 1 .045-.121.73.73 0 0 1 .151-.223L16.513 1.289A4.355 4.355 0 0 1 19.611 0c1.178 0 2.277.454 3.106 1.279l.029.029a4.367 4.367 0 0 1 1.251 3.121 4.356 4.356 0 0 1-1.32 3.087L8.183 22.01a.735.735 0 0 1-.231.154.784.784 0 0 1-.111.042L.933 23.978A.773.773 0 0 1 .748 24zm1.041-1.791 4.41-1.131-3.281-3.275zm5.868-1.795 13.02-13.02-4.074-4.074L3.58 16.344zM21.736 6.332a2.893 2.893 0 0 0-.059-3.972l-.02-.02a2.872 2.872 0 0 0-2.037-.84v-.375l-.001.375a2.873 2.873 0 0 0-1.954.762z"/></svg>'};var duetStepCss='*,*::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}.duet-step{padding:20px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.rounded-top{border-top-left-radius:4px;border-top-right-radius:4px}.duet-step.rounded-bottom{margin-bottom:20px !important;border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-step.rounded-bottom{margin-bottom:0 !important}}@media (min-width: 36em){.duet-step{padding:0 20px 0 0 !important;margin:0 !important;font-size:1.25rem;box-shadow:none !important}}.duet-step-heading{display:flex;align-items:center;border-radius:4px}.duet-step-heading[aria-disabled=false]{cursor:pointer}.duet-step-heading:focus{outline:0}.duet-step-heading:active{opacity:0.75}:host(.user-is-tabbing) .duet-step-heading: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-step-heading:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.is-complete .duet-step-heading:hover .duet-step-counter,.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#005f8f}.duet-theme-turva.is-complete .duet-step-heading:hover .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#9e0a26}.is-current .duet-step-heading{margin-bottom:20px}@media (min-width: 36em){.duet-step-heading{margin-top:8px;margin-bottom:8px !important}:host(:first-of-type) .duet-step-heading{margin-top:0}:host(:last-of-type) .duet-step-heading{margin-bottom:0 !important}}.duet-step-counter{-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;line-height:30px;color:rgb(255, 255, 255);text-align:center;border-radius:50%;transition:background-color 300ms ease}@media (min-width: 36em){.duet-step-counter{width:40px;height:40px;line-height:40px}}.is-complete .duet-step-counter,.is-current .duet-step-counter,.is-disabled .duet-step-counter{background-color:rgb(0, 119, 179)}.duet-theme-turva.is-complete .duet-step-counter,.duet-theme-turva.is-current .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-counter{background-color:rgb(198, 12, 48)}.is-incomplete .duet-step-counter{background-color:rgb(98, 121, 138)}.duet-theme-turva.is-incomplete .duet-step-counter{background-color:rgb(143, 147, 158)}.duet-step-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px}@media (min-width: 36em){.duet-step-icon{width:20px;height:20px}}.duet-step-icon duet-icon{width:16px;height:16px}@media (min-width: 36em){.duet-step-icon duet-icon{width:20px;height:20px}}@media (min-width: 36em){.duet-step-content-wrapper{min-height:20px;padding-left:40px;margin-left:19px;border-left:2px solid rgb(212, 223, 229)}.duet-theme-turva .duet-step-content-wrapper{border-color:rgb(222, 224, 228)}:host(:last-of-type) .duet-step-content-wrapper{min-height:0;border:transparent}}.duet-step-content{display:none;padding-bottom:16px}@media (min-width: 36em){.duet-step-content{padding-bottom:28px}}.is-current .duet-step-content{display:block}.duet-step-heading-slot{display:none;margin-top:2px}@media (min-width: 48em){.duet-step-heading-slot{display:block}}';var DuetStepStyle0=duetStepCss;var DuetStep=function(){function e(e){var t=this;registerInstance(this,e);this.duetStepClick=createEvent(this,"duetStepClick",7);this.buttonId=createID("DuetStepButton");this.contentId=createID("DuetStepContent");this.handleKeyDown=function(e){if(t.isClickDisabled()){return}if(isKeyboardClick(e)){e.preventDefault();t.handleStepClick(e)}};this.handleClick=function(e){if(t.isClickDisabled()){return}t.handleStepClick(e)};this.theme="";this.heading=undefined;this.headingLevel=undefined;this.stepIndex=undefined;this.state=undefined;this.roundedTop=false;this.roundedBottom=false}e.prototype.handleStepClick=function(e){this.duetStepClick.emit({originalEvent:e,component:"duet-step",stepIndex:this.stepIndex})};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){subscribeTabbingChange(this)};e.prototype.disconnectedCallback=function(){unsubscribeTabbingChange(this)};e.prototype.setFocus=function(){return __awaiter(this,arguments,void 0,(function(e){if(e===void 0){e={preventScroll:true}}return __generator(this,(function(t){this.buttonElement.focus(e);return[2]}))}))};e.prototype.isClickDisabled=function(){return this.state!=="complete"};e.prototype.headingColor=function(){if(this.state!=="incomplete"){return""}if(this.theme!=="turva"){return"gray-darker"}else{return"gray-dark-turva"}};e.prototype.renderStepCounter=function(){if(this.state==="complete"||this.state==="disabled"){return h("div",{class:"duet-step-icon"},h("duet-icon",{margin:"none",size:"auto",color:"gray-lightest",icon:actionEdit2.svg}))}return"".concat(this.stepIndex+1," ")};e.prototype.render=function(){var e;var t=this;return h("div",{class:(e={"duet-step":true},e["is-".concat(this.state)]=true,e["rounded-top"]=this.roundedTop,e["rounded-bottom"]=this.roundedBottom,e["duet-theme-turva"]=this.theme==="turva",e)},h("div",{class:"duet-step-heading",id:this.buttonId,role:this.state!=="current"?"button":"region","aria-current":this.state==="current"?"step":undefined,tabindex:this.state!=="current"?"0":undefined,"aria-disabled":this.isClickDisabled().toString(),"aria-expanded":(this.state==="current").toString(),"aria-controls":this.contentId,"aria-selected":(this.state==="current").toString(),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(e){return t.buttonElement=e}},h("div",{"aria-hidden":"true"},h("div",{class:"duet-step-counter"},this.renderStepCounter())),h("duet-spacer",{direction:"horizontal",size:"large",breakpoint:"small"}),h("duet-spacer",{direction:"horizontal",size:"medium",breakpoint:"x-small"}),h("div",null,h("duet-heading",{theme:this.theme,level:this.headingLevel,visualLevel:"h4",color:this.headingColor(),margin:"none"},this.heading)),h("duet-spacer",{direction:"horizontal",size:"large"}),h("div",{class:"duet-step-heading-slot"},h("slot",{name:"heading-content"}))),h("div",{class:"duet-step-content-wrapper"},h("div",{class:"duet-step-content",role:"region","aria-labelledby":this.buttonId,id:this.contentId},h("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetStep.style=DuetStepStyle0;function groupBy(e,t){var n={};t.forEach((function(t){var i=t[e];if(!n[i]){n[i]=[]}n[i].push(t)}));return n}var duetStepperCss=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}.duet-stepper{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-stepper{padding:28px !important;padding-top:36px !important;padding-bottom:36px !important;background:rgb(255, 255, 255);border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}}";var DuetStepperStyle0=duetStepperCss;var DuetStepper=function(){function e(e){registerInstance(this,e);this.duetStepChange=createEvent(this,"duetStepChange",7);this.theme="";this.accessibleLive="Lista jossa {total} kohtaa. Olet kohdassa {current}.";this.margin="auto";this.backDisabled=false;this.selected=0}e.prototype.currentStepChanged=function(e){var t=this;if(isNaN(e)){throw new Error("step must be a number. got: ".concat(e))}if(e<0){throw new Error("step must be not be less than zero. got: ".concat(e))}if(e>this.getSteps().length){throw new Error("step must not exceed total number of steps")}this.updateStepState();setTimeout((function(){return t.setStepFocus()}),50)};e.prototype.currentStepInvokedDisable=function(){this.updateStepState()};e.prototype.onDuetStepClick=function(e){this.duetStepChange.emit({fromStep:this.selected,toStep:e.detail.stepIndex,component:"duet-stepper"})};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.updateStepState();return[2]}))}))};e.prototype.getSteps=function(){return Array.from(this.element.querySelectorAll("duet-step"))};e.prototype.setStepFocus=function(){var e=this.getSteps();var t=e[this.selected];t.setFocus()};e.prototype.updateStepState=function(){var e=this;var t=this.getSteps();t.forEach((function(t,n){var i;if(n<e.selected){i=e.backDisabled?"disabled":"complete"}else if(n>e.selected){i="incomplete"}else{i="current"}t.theme=e.theme;t.state=i;t.stepIndex=n}));var n=groupBy("state",t);Object.values(n).forEach((function(e){e.forEach((function(t,n){t.roundedTop=n===0;t.roundedBottom=n===e.length-1}))}))};e.prototype.formatAnnouncement=function(){var e=this.getSteps();var t=(this.selected+1).toString(10);var n=e.length.toString(10);return this.accessibleLive.replace("{current}",t).replace("{total}",n)};e.prototype.render=function(){return h(Host,{key:"9cd2e878ee57bb71fe5fbd410f88af372dc31cde",class:{"duet-m-0":this.margin==="none"}},h("div",{key:"f97a9e7f94f0968bb70ed9def756541279783bc7",class:{"duet-stepper":true,"duet-theme-turva":this.theme==="turva"}},h("duet-visually-hidden",{key:"c6bc42ab6164ea260b6860c4c8350f8fecc83a2f","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement()),h("slot",{key:"fa2a987f757693d3f287fc0707466d751d7fb8ba"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{selected:["currentStepChanged"],backDisabled:["currentStepInvokedDisable"]}},enumerable:false,configurable:true});return e}();DuetStepper.style=DuetStepperStyle0;export{DuetStep as duet_step,DuetStepper as duet_stepper};
4
+ */import{r as registerInstance,c as createEvent,h,g as getElement,H as Host}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{i as isKeyboardClick,s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-439bcc8b.js";var actionEdit2={title:"action-edit-2",tags:"action edit 2 pen pencil",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.748 24a.755.755 0 0 1-.531-.22.754.754 0 0 1-.196-.716l1.77-6.905a.84.84 0 0 1 .045-.121.73.73 0 0 1 .151-.223L16.513 1.289A4.355 4.355 0 0 1 19.611 0c1.178 0 2.277.454 3.106 1.279l.029.029a4.367 4.367 0 0 1 1.251 3.121 4.356 4.356 0 0 1-1.32 3.087L8.183 22.01a.735.735 0 0 1-.231.154.784.784 0 0 1-.111.042L.933 23.978A.773.773 0 0 1 .748 24zm1.041-1.791 4.41-1.131-3.281-3.275zm5.868-1.795 13.02-13.02-4.074-4.074L3.58 16.344zM21.736 6.332a2.893 2.893 0 0 0-.059-3.972l-.02-.02a2.872 2.872 0 0 0-2.037-.84v-.375l-.001.375a2.873 2.873 0 0 0-1.954.762z"/></svg>'};var duetStepCss='*,*::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}.duet-step{padding:20px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;background:rgb(255, 255, 255);box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}.duet-step.rounded-top{border-top-left-radius:4px;border-top-right-radius:4px}.duet-step.rounded-bottom{margin-bottom:20px !important;border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-step.rounded-bottom{margin-bottom:0 !important}}@media (min-width: 36em){.duet-step{padding:0 20px 0 0 !important;margin:0 !important;font-size:1.25rem;box-shadow:none !important}}.duet-step-heading{display:flex;align-items:center;border-radius:4px}.duet-step-heading[aria-disabled=false]{cursor:pointer}.duet-step-heading:focus{outline:0}.duet-step-heading:active{opacity:0.75}:host(.user-is-tabbing) .duet-step-heading: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-step-heading:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.is-complete .duet-step-heading:hover .duet-step-counter,.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#005f8f}.duet-theme-turva.is-complete .duet-step-heading:hover .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#9e0a26}.is-current .duet-step-heading{margin-bottom:20px}@media (min-width: 36em){.duet-step-heading{margin-top:8px;margin-bottom:8px !important}:host(:first-of-type) .duet-step-heading{margin-top:0}:host(:last-of-type) .duet-step-heading{margin-bottom:0 !important}}.duet-step-counter{-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;line-height:30px;color:rgb(255, 255, 255);text-align:center;border-radius:50%;transition:background-color 300ms ease}@media (min-width: 36em){.duet-step-counter{width:40px;height:40px;line-height:40px}}.is-complete .duet-step-counter,.is-current .duet-step-counter,.is-disabled .duet-step-counter{background-color:rgb(0, 119, 179)}.duet-theme-turva.is-complete .duet-step-counter,.duet-theme-turva.is-current .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-counter{background-color:rgb(198, 12, 48)}.is-incomplete .duet-step-counter{background-color:rgb(98, 121, 138)}.duet-theme-turva.is-incomplete .duet-step-counter{background-color:rgb(143, 147, 158)}.duet-step-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px}@media (min-width: 36em){.duet-step-icon{width:20px;height:20px}}.duet-step-icon duet-icon{width:16px;height:16px}@media (min-width: 36em){.duet-step-icon duet-icon{width:20px;height:20px}}@media (min-width: 36em){.duet-step-content-wrapper{min-height:20px;padding-left:40px;margin-left:19px;border-left:2px solid rgb(212, 223, 229)}.duet-theme-turva .duet-step-content-wrapper{border-color:rgb(222, 224, 228)}:host(:last-of-type) .duet-step-content-wrapper{min-height:0;border:transparent}}.duet-step-content{display:none;padding-bottom:16px}@media (min-width: 36em){.duet-step-content{padding-bottom:28px}}.is-current .duet-step-content{display:block}.duet-step-heading-slot{display:none;margin-top:2px}@media (min-width: 48em){.duet-step-heading-slot{display:block}}';var DuetStepStyle0=duetStepCss;var DuetStep=function(){function e(e){var t=this;registerInstance(this,e);this.duetStepClick=createEvent(this,"duetStepClick",7);this.buttonId=createID("DuetStepButton");this.contentId=createID("DuetStepContent");this.handleKeyDown=function(e){if(t.isClickDisabled()){return}if(isKeyboardClick(e)){e.preventDefault();t.handleStepClick(e)}};this.handleClick=function(e){if(t.isClickDisabled()){return}t.handleStepClick(e)};this.theme="";this.heading=undefined;this.headingLevel=undefined;this.stepIndex=undefined;this.state=undefined;this.roundedTop=false;this.roundedBottom=false}e.prototype.handleStepClick=function(e){this.duetStepClick.emit({originalEvent:e,component:"duet-step",stepIndex:this.stepIndex})};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){subscribeTabbingChange(this)};e.prototype.disconnectedCallback=function(){unsubscribeTabbingChange(this)};e.prototype.setFocus=function(){return __awaiter(this,arguments,void 0,(function(e){if(e===void 0){e={preventScroll:true}}return __generator(this,(function(t){this.buttonElement.focus(e);return[2]}))}))};e.prototype.isClickDisabled=function(){return this.state!=="complete"};e.prototype.headingColor=function(){if(this.state!=="incomplete"){return""}if(this.theme!=="turva"){return"gray-darker"}else{return"gray-dark-turva"}};e.prototype.renderStepCounter=function(){if(this.state==="complete"||this.state==="disabled"){return h("div",{class:"duet-step-icon"},h("duet-icon",{margin:"none",size:"auto",color:"gray-lightest",icon:actionEdit2.svg}))}return"".concat(this.stepIndex+1," ")};e.prototype.render=function(){var e;var t=this;return h("div",{key:"4824107e0acf23c2c8705c98bf936075b57f0832",class:(e={"duet-step":true},e["is-".concat(this.state)]=true,e["rounded-top"]=this.roundedTop,e["rounded-bottom"]=this.roundedBottom,e["duet-theme-turva"]=this.theme==="turva",e)},h("div",{key:"090c1ada985e57f936ac65154af4e1cde73cf820",class:"duet-step-heading",id:this.buttonId,role:this.state!=="current"?"button":"region","aria-current":this.state==="current"?"step":undefined,tabindex:this.state!=="current"?"0":undefined,"aria-disabled":this.isClickDisabled().toString(),"aria-expanded":(this.state==="current").toString(),"aria-controls":this.contentId,"aria-selected":(this.state==="current").toString(),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(e){return t.buttonElement=e}},h("div",{key:"2fe4d50db56975760a58c1aa4a326758fbceeac8","aria-hidden":"true"},h("div",{key:"9c2265041152125c05b017c65f432b9ec0c758d6",class:"duet-step-counter"},this.renderStepCounter())),h("duet-spacer",{key:"3820e59fd9b9cb0b9618eed034474a90293f3985",direction:"horizontal",size:"large",breakpoint:"small"}),h("duet-spacer",{key:"9c3a323b02d4543d4791ba77a2bf90d2e0ed77bd",direction:"horizontal",size:"medium",breakpoint:"x-small"}),h("div",{key:"a50916963ca0efc77a309f009255f283b5584258"},h("duet-heading",{key:"637ef135f7d47160eba76bf7d736e0f0a8086282",theme:this.theme,level:this.headingLevel,visualLevel:"h4",color:this.headingColor(),margin:"none"},this.heading)),h("duet-spacer",{key:"efe8ebfe55fbc93f526803ac66c469492967f21d",direction:"horizontal",size:"large"}),h("div",{key:"0974cb5ac0bb24d1cf9bd7a1bfa2eaac4a67f18f",class:"duet-step-heading-slot"},h("slot",{key:"f7ee80ecb5f96068f5dfc59f1a42cd17fca1f2c3",name:"heading-content"}))),h("div",{key:"31fab92932786d05ac222d35e3097b4f4d9a014d",class:"duet-step-content-wrapper"},h("div",{key:"00679961075564d18dbd7faffa05618cf3dac572",class:"duet-step-content",role:"region","aria-labelledby":this.buttonId,id:this.contentId},h("slot",{key:"898ad6c5810daff1adeb5d85ff6db990ae3d7c43"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetStep.style=DuetStepStyle0;function groupBy(e,t){var n={};t.forEach((function(t){var i=t[e];if(!n[i]){n[i]=[]}n[i].push(t)}));return n}var duetStepperCss=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}.duet-stepper{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-stepper{padding:28px !important;padding-top:36px !important;padding-bottom:36px !important;background:rgb(255, 255, 255);border-radius:4px;box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)}}";var DuetStepperStyle0=duetStepperCss;var DuetStepper=function(){function e(e){registerInstance(this,e);this.duetStepChange=createEvent(this,"duetStepChange",7);this.theme="";this.accessibleLive="Lista jossa {total} kohtaa. Olet kohdassa {current}.";this.margin="auto";this.backDisabled=false;this.selected=0}e.prototype.currentStepChanged=function(e){var t=this;if(isNaN(e)){throw new Error("step must be a number. got: ".concat(e))}if(e<0){throw new Error("step must be not be less than zero. got: ".concat(e))}if(e>this.getSteps().length){throw new Error("step must not exceed total number of steps")}this.updateStepState();setTimeout((function(){return t.setStepFocus()}),50)};e.prototype.currentStepInvokedDisable=function(){this.updateStepState()};e.prototype.onDuetStepClick=function(e){this.duetStepChange.emit({fromStep:this.selected,toStep:e.detail.stepIndex,component:"duet-stepper"})};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.updateStepState();return[2]}))}))};e.prototype.getSteps=function(){return Array.from(this.element.querySelectorAll("duet-step"))};e.prototype.setStepFocus=function(){var e=this.getSteps();var t=e[this.selected];t.setFocus()};e.prototype.updateStepState=function(){var e=this;var t=this.getSteps();t.forEach((function(t,n){var i;if(n<e.selected){i=e.backDisabled?"disabled":"complete"}else if(n>e.selected){i="incomplete"}else{i="current"}t.theme=e.theme;t.state=i;t.stepIndex=n}));var n=groupBy("state",t);Object.values(n).forEach((function(e){e.forEach((function(t,n){t.roundedTop=n===0;t.roundedBottom=n===e.length-1}))}))};e.prototype.formatAnnouncement=function(){var e=this.getSteps();var t=(this.selected+1).toString(10);var n=e.length.toString(10);return this.accessibleLive.replace("{current}",t).replace("{total}",n)};e.prototype.render=function(){return h(Host,{key:"a9fd058aba3edef3374cccd0a93f842c0f9aaeb2",class:{"duet-m-0":this.margin==="none"}},h("div",{key:"0669c1d5037caa0fd14184e653d7bcd8bff5c84e",class:{"duet-stepper":true,"duet-theme-turva":this.theme==="turva"}},h("duet-visually-hidden",{key:"c129a1a808027193572c28b4708b9bc036b117c2","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement()),h("slot",{key:"c6d77528bc6dcd5f9e3fd0d2a3ae62253fca0114"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{selected:["currentStepChanged"],backDisabled:["currentStepInvokedDisable"]}},enumerable:false,configurable:true});return e}();DuetStepper.style=DuetStepperStyle0;export{DuetStep as duet_step,DuetStepper as duet_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-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as isEscapeKey}from"./keyboard-utils-439bcc8b.js";var duetSubmenuBarDropdownLinkCss='*,*::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:100%}.duet-submenu-bar-dropdown-link{display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:flex-start;height:100%;padding:8px 20px 8px 60px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none}.duet-submenu-bar-dropdown-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-submenu-bar-dropdown-link:focus,.duet-submenu-bar-dropdown-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-dropdown-link .label-container{display:flex;flex:1;gap:12px;align-items:center;justify-content:flex-start}@media (min-width: 62em){.duet-submenu-bar-dropdown-link{padding:0.5rem 8px;font-size:1rem;line-height:1.5}}.duet-submenu-bar-dropdown-link.active .label{position:relative}.duet-submenu-bar-dropdown-link.active .label::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:1px}.duet-submenu-bar-dropdown-link.active .active-check{display:none}.duet-submenu-bar-dropdown-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-submenu-bar-dropdown-link.duet-theme-turva.active .label::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-submenu-bar-dropdown-link.active{background:rgb(240, 247, 250)}.duet-submenu-bar-dropdown-link.active .label::after{display:none}.duet-submenu-bar-dropdown-link.active .active-check{display:block}.duet-submenu-bar-dropdown-link.active.duet-theme-turva{background:rgb(245, 247, 250)}.duet-submenu-bar-dropdown-link:hover{background:rgb(228, 241, 247)}.duet-submenu-bar-dropdown-link:hover.duet-theme-turva{background:rgb(222, 224, 228)}}.duet-submenu-bar-dropdown-link.highlight{color:rgb(0, 119, 179)}.duet-submenu-bar-dropdown-link.highlight.duet-theme-turva{color:rgb(126, 2, 35)}';var DuetSubmenuBarDropdownLinkStyle0=duetSubmenuBarDropdownLinkCss;var DuetSubmenuBarDropdownLink=function(){function e(e){registerInstance(this,e);this.theme="";this.active=false;this.href="#";this.icon=undefined;this.caret=false;this.highlight=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.handleEscape=function(e){if(isEscapeKey(e)){var n=this.element.closest("duet-submenu-bar-dropdown");n.open=false;n.setFocus()}};e.prototype.render=function(){var e=this;return h(Host,{key:"06b062162cb366accf11fd8844dc842cb4086e11"},h("a",{key:"aeba09894b5f6a4aec3c462fef6f62966fd3849f",class:{"duet-submenu-bar-dropdown-link":true,"duet-theme-turva":this.theme==="turva",highlight:this.highlight,active:this.active},"aria-current":this.active?"true":"false",href:this.href,onKeyUp:function(n){return e.handleEscape(n)}},this.icon&&h("duet-icon",{key:"72463c8f6d29475ed51097a63b8c627e35454570",name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),h("span",{key:"457b5b54be2bdbb03e665ed5549ac06b45e0a591",class:"label-container"},h("span",{key:"0fe3839576cb252a5f928774b0808bf85913d6fe",class:"label"},h("slot",{key:"4ca119e9809d2122107fbade53b8f0d21f499f99"})),this.caret&&h("duet-icon",{key:"98119ea79cc812daa6857fa4286c97f0ffd6d4ca",name:"action-arrow-right-small",size:"xxx-small",margin:"none"})),this.active&&h("duet-icon",{key:"c4cbb062c343bb3bf6b15d771de4618f1d75b531",class:"active-check",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSubmenuBarDropdownLink.style=DuetSubmenuBarDropdownLinkStyle0;export{DuetSubmenuBarDropdownLink as duet_submenu_bar_dropdown_link};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-4e3ad237.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as isEscapeKey}from"./keyboard-utils-439bcc8b.js";var duetSubmenuBarDropdownLinkCss='*,*::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:100%}.duet-submenu-bar-dropdown-link{display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:flex-start;height:100%;padding:8px 20px 8px 60px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none}.duet-submenu-bar-dropdown-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-submenu-bar-dropdown-link:focus,.duet-submenu-bar-dropdown-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-dropdown-link .label-container{display:flex;flex:1;gap:12px;align-items:center;justify-content:flex-start}@media (min-width: 62em){.duet-submenu-bar-dropdown-link{padding:0.5rem 8px;font-size:1rem;line-height:1.5}}.duet-submenu-bar-dropdown-link.active .label{position:relative}.duet-submenu-bar-dropdown-link.active .label::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:1px}.duet-submenu-bar-dropdown-link.active .active-check{display:none}.duet-submenu-bar-dropdown-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-submenu-bar-dropdown-link.duet-theme-turva.active .label::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-submenu-bar-dropdown-link.active{background:rgb(240, 247, 250)}.duet-submenu-bar-dropdown-link.active .label::after{display:none}.duet-submenu-bar-dropdown-link.active .active-check{display:block}.duet-submenu-bar-dropdown-link.active.duet-theme-turva{background:rgb(245, 247, 250)}.duet-submenu-bar-dropdown-link:hover{background:rgb(228, 241, 247)}.duet-submenu-bar-dropdown-link:hover.duet-theme-turva{background:rgb(222, 224, 228)}}.duet-submenu-bar-dropdown-link.highlight{color:rgb(0, 119, 179)}.duet-submenu-bar-dropdown-link.highlight.duet-theme-turva{color:rgb(126, 2, 35)}';var DuetSubmenuBarDropdownLinkStyle0=duetSubmenuBarDropdownLinkCss;var DuetSubmenuBarDropdownLink=function(){function e(e){registerInstance(this,e);this.theme="";this.active=false;this.href="#";this.icon=undefined;this.caret=false;this.highlight=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.handleEscape=function(e){if(isEscapeKey(e)){var n=this.element.closest("duet-submenu-bar-dropdown");n.open=false;n.setFocus()}};e.prototype.render=function(){var e=this;return h(Host,{key:"a746efa1453d4cec928e66f4122f1a1b593e8442"},h("a",{key:"6c959b9aad16526f25fa0f8c94d544e47850a69b",class:{"duet-submenu-bar-dropdown-link":true,"duet-theme-turva":this.theme==="turva",highlight:this.highlight,active:this.active},"aria-current":this.active?"true":"false",href:this.href,onKeyUp:function(n){return e.handleEscape(n)}},this.icon&&h("duet-icon",{key:"c0fc8773a756787903d3e312ebabdae1f5854445",name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),h("span",{key:"e3970bb855fdb008fe5c71d5b70ffaa0c95c6ca1",class:"label-container"},h("span",{key:"615e56e9b3b4c900b96ae2e77435dcfd29a9a321",class:"label"},h("slot",{key:"66142de58ca0b982f962787e57583acf2645acd2"})),this.caret&&h("duet-icon",{key:"690f5210ff9271e47c36a9ec86fbe0c427a7e823",name:"action-arrow-right-small",size:"xxx-small",margin:"none"})),this.active&&h("duet-icon",{key:"019e32fdb4672495348327df056ff55e5654c91d",class:"active-check",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSubmenuBarDropdownLink.style=DuetSubmenuBarDropdownLinkStyle0;export{DuetSubmenuBarDropdownLink as duet_submenu_bar_dropdown_link};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{d(o.next(e))}catch(e){a(e)}}function u(e){try{d(o["throw"](e))}catch(e){a(e)}}function d(e){e.done?n(e.value):r(e.value).then(i,u)}d((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,r,a,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(e){return function(t){return d([e,t])}}function d(u){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,u[0]&&(n=0)),n)try{if(o=1,r&&(a=u[0]&2?r["return"]:u[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;if(r=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;r=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];r=0}finally{o=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,h,H as Host,g as getElement}from"./index-4e3ad237.js";import{a as media_query_large}from"./tokens-84fb2357.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as isEscapeKey}from"./keyboard-utils-439bcc8b.js";var duetSubmenuBarDropdownCss='*,*::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:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-dropdown{position:relative;height:100%}.duet-submenu-bar-dropdown button{position:relative;display:flex;flex-direction:row;gap:16px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:12px 1.5rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none;cursor:pointer}@media (min-width: 62em){.duet-submenu-bar-dropdown button{flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;font-size:0.875rem;color:rgb(0, 75, 129)}}.duet-submenu-bar-dropdown button .label{display:flex;gap:5px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar-dropdown button.open{background:rgb(228, 241, 247)}}.duet-submenu-bar-dropdown button.open .caret{transform:rotate(180deg)}.duet-submenu-bar-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-submenu-bar-dropdown button.active .label-text{position:relative}.duet-submenu-bar-dropdown button.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:1px}@media (min-width: 62em){.duet-submenu-bar-dropdown button.active .label-text::after{display:none}}@media (min-width: 62em){.duet-submenu-bar-dropdown button .caret{position:absolute;right:12px}.duet-submenu-bar-dropdown button:hover{color:rgb(8, 42, 77);background:rgb(228, 241, 247)}.duet-submenu-bar-dropdown button:hover.active{color:rgb(8, 42, 77)}.duet-theme-turva .duet-submenu-bar-dropdown button:hover.active{color:rgb(23, 28, 58)}.duet-submenu-bar-dropdown button.active{color:rgb(0, 119, 179)}.duet-theme-turva .duet-submenu-bar-dropdown button.active{color:rgb(198, 12, 48)}.duet-submenu-bar-dropdown button.active::after,.duet-submenu-bar-dropdown button.open::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-theme-turva .duet-submenu-bar-dropdown button.active::after,.duet-theme-turva .duet-submenu-bar-dropdown button.open::after{background:rgb(198, 12, 48)}}.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:16px;height:16px}}.duet-submenu-bar-dropdown .items{display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:1000px;padding:4px 0 16px;overflow-y:auto;color:rgb(8, 42, 77);visibility:visible;transition:max-height 0.3s ease-in, padding 0.3s ease-in;-ms-overflow-style:none;scrollbar-width:none}.duet-submenu-bar-dropdown .items::-webkit-scrollbar{display:none}@media (min-width: 62em){.duet-submenu-bar-dropdown .items{position:absolute;top:93%;z-index:600;min-width:320px;padding:8px;background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15);transition:none}}.duet-submenu-bar-dropdown .items.hidden{max-height:0;padding:0;overflow:hidden;visibility:hidden;transition:max-height 0.3s ease-in, padding 0.3s ease-in}.duet-submenu-bar-dropdown.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button:hover{background:rgb(222, 224, 228)}}.duet-submenu-bar-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-dropdown.duet-theme-turva button.active .label-text::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open .label-text::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.active,.duet-submenu-bar-dropdown.duet-theme-turva button.open{color:rgb(126, 2, 35)}}.duet-submenu-bar-dropdown.duet-theme-turva button.active::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open::after{background:rgb(126, 2, 35)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.open{background:rgb(222, 224, 228)}}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}}';var DuetSubmenuBarDropdownStyle0=duetSubmenuBarDropdownCss;var DuetSubmenuBarDropdown=function(){function e(e){var t=this;registerInstance(this,e);this.mql=[window.matchMedia(media_query_large.replace(/'/g,""))];this.boundMqlFunctions=[];this.checkIsDesktop=function(){if(t.mql[0].matches){t.isDesktop=true}else{t.isDesktop=false}};this.onClick=function(){var e=t.open;if(!t.isDesktop){var n=Array.from(t.element.parentElement.querySelectorAll("duet-submenu-bar-dropdown"));for(var o=0,r=n;o<r.length;o++){var a=r[o];a.open=false}}if(e){t.open=false}else{t.open=true}};this.isDesktop=false;this.theme="";this.active=false;this.open=false;this.icon=undefined}e.prototype.handleFocus=function(e){var t=this;var n=e.composedPath().every((function(e){return e!==t.element}));if(n&&this.isDesktop){this.open=false}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){this.checkIsDesktop();for(var e=0;e<this.mql.length;e++){if(this.mql[e].addEventListener){var t=this.checkIsDesktop.bind(this);this.mql[e].addEventListener("change",t);this.boundMqlFunctions[e]=t}}};e.prototype.disconnectedCallback=function(){for(var e=0;e<this.mql.length;e++){if(this.mql[e].removeEventListener){this.mql[e].removeEventListener("change",this.boundMqlFunctions[e])}}this.boundMqlFunctions=[]};e.prototype.handleEscape=function(e){if(isEscapeKey(e)){if(this.open){this.open=false}else{var t=this.element.closest("duet-submenu-bar");t.open=false;t.setFocus()}}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.button.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return h(Host,{key:"82d9bb10d3b975fb643a1ff0735369158fc0267d",role:"listitem"},h("div",{key:"04220a59fb49f405a8e072c61dd7f629275844a9",class:{"duet-submenu-bar-dropdown":true,"duet-theme-turva":this.theme==="turva",open:this.open,active:this.active}},h("button",{key:"e3b117a883729e81e5b044b700638798005758a7",ref:function(t){return e.button=t},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{open:this.open,active:this.active},onClick:this.onClick,onKeyUp:function(t){return e.handleEscape(t)}},this.icon&&h("duet-icon",{key:"4f6aa1cd847b01bb6149300dd095bc2d90f0f8ee",class:"submenu-bar-dropdown-icon",theme:this.theme,name:this.icon,size:"auto",margin:"none",color:"currentColor"}),h("div",{key:"e4e0fe843ffb97eb94ac1940b3daabbfdebaed09",class:"label"},h("span",{key:"7527471d9064055386d235ff8a576a66b93e9246",class:"label-text"},h("slot",{key:"13887aced4d286f3a79ffd7f125f124801d436a8",name:"label"})),h("duet-icon",{key:"aa48764d6c7ee181d825621d1b565a92d0ac1a58",class:"caret",theme:this.theme,name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),h("div",{key:"b03feb7412459e67e233d5c1dcf6f6263e574898",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:true,hidden:!this.open}},h("slot",{key:"a1ad4d341602b1f922d38f24c8183be203867abb"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSubmenuBarDropdown.style=DuetSubmenuBarDropdownStyle0;export{DuetSubmenuBarDropdown as duet_submenu_bar_dropdown};
4
+ */import{r as registerInstance,h,H as Host,g as getElement}from"./index-4e3ad237.js";import{a as media_query_large}from"./tokens-84fb2357.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as isEscapeKey}from"./keyboard-utils-439bcc8b.js";var duetSubmenuBarDropdownCss='*,*::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:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-dropdown{position:relative;height:100%}.duet-submenu-bar-dropdown button{position:relative;display:flex;flex-direction:row;gap:16px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:12px 1.5rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none;cursor:pointer}@media (min-width: 62em){.duet-submenu-bar-dropdown button{flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;font-size:0.875rem;color:rgb(0, 75, 129)}}.duet-submenu-bar-dropdown button .label{display:flex;gap:5px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar-dropdown button.open{background:rgb(228, 241, 247)}}.duet-submenu-bar-dropdown button.open .caret{transform:rotate(180deg)}.duet-submenu-bar-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-submenu-bar-dropdown button.active .label-text{position:relative}.duet-submenu-bar-dropdown button.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:1px}@media (min-width: 62em){.duet-submenu-bar-dropdown button.active .label-text::after{display:none}}@media (min-width: 62em){.duet-submenu-bar-dropdown button .caret{position:absolute;right:12px}.duet-submenu-bar-dropdown button:hover{color:rgb(8, 42, 77);background:rgb(228, 241, 247)}.duet-submenu-bar-dropdown button:hover.active{color:rgb(8, 42, 77)}.duet-theme-turva .duet-submenu-bar-dropdown button:hover.active{color:rgb(23, 28, 58)}.duet-submenu-bar-dropdown button.active{color:rgb(0, 119, 179)}.duet-theme-turva .duet-submenu-bar-dropdown button.active{color:rgb(198, 12, 48)}.duet-submenu-bar-dropdown button.active::after,.duet-submenu-bar-dropdown button.open::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-theme-turva .duet-submenu-bar-dropdown button.active::after,.duet-theme-turva .duet-submenu-bar-dropdown button.open::after{background:rgb(198, 12, 48)}}.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:16px;height:16px}}.duet-submenu-bar-dropdown .items{display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:1000px;padding:4px 0 16px;overflow-y:auto;color:rgb(8, 42, 77);visibility:visible;transition:max-height 0.3s ease-in, padding 0.3s ease-in;-ms-overflow-style:none;scrollbar-width:none}.duet-submenu-bar-dropdown .items::-webkit-scrollbar{display:none}@media (min-width: 62em){.duet-submenu-bar-dropdown .items{position:absolute;top:93%;z-index:600;min-width:320px;padding:8px;background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15);transition:none}}.duet-submenu-bar-dropdown .items.hidden{max-height:0;padding:0;overflow:hidden;visibility:hidden;transition:max-height 0.3s ease-in, padding 0.3s ease-in}.duet-submenu-bar-dropdown.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button:hover{background:rgb(222, 224, 228)}}.duet-submenu-bar-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-dropdown.duet-theme-turva button.active .label-text::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open .label-text::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.active,.duet-submenu-bar-dropdown.duet-theme-turva button.open{color:rgb(126, 2, 35)}}.duet-submenu-bar-dropdown.duet-theme-turva button.active::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open::after{background:rgb(126, 2, 35)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.open{background:rgb(222, 224, 228)}}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}}';var DuetSubmenuBarDropdownStyle0=duetSubmenuBarDropdownCss;var DuetSubmenuBarDropdown=function(){function e(e){var t=this;registerInstance(this,e);this.mql=[window.matchMedia(media_query_large.replace(/'/g,""))];this.boundMqlFunctions=[];this.checkIsDesktop=function(){if(t.mql[0].matches){t.isDesktop=true}else{t.isDesktop=false}};this.onClick=function(){var e=t.open;if(!t.isDesktop){var n=Array.from(t.element.parentElement.querySelectorAll("duet-submenu-bar-dropdown"));for(var o=0,r=n;o<r.length;o++){var a=r[o];a.open=false}}if(e){t.open=false}else{t.open=true}};this.isDesktop=false;this.theme="";this.active=false;this.open=false;this.icon=undefined}e.prototype.handleFocus=function(e){var t=this;var n=e.composedPath().every((function(e){return e!==t.element}));if(n&&this.isDesktop){this.open=false}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){this.checkIsDesktop();for(var e=0;e<this.mql.length;e++){if(this.mql[e].addEventListener){var t=this.checkIsDesktop.bind(this);this.mql[e].addEventListener("change",t);this.boundMqlFunctions[e]=t}}};e.prototype.disconnectedCallback=function(){for(var e=0;e<this.mql.length;e++){if(this.mql[e].removeEventListener){this.mql[e].removeEventListener("change",this.boundMqlFunctions[e])}}this.boundMqlFunctions=[]};e.prototype.handleEscape=function(e){if(isEscapeKey(e)){if(this.open){this.open=false}else{var t=this.element.closest("duet-submenu-bar");t.open=false;t.setFocus()}}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.button.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return h(Host,{key:"950ec986065630156024e30fc4ff3808bd83331e",role:"listitem"},h("div",{key:"8aa74d12b0b0e63f82062c705b61f3881a130ece",class:{"duet-submenu-bar-dropdown":true,"duet-theme-turva":this.theme==="turva",open:this.open,active:this.active}},h("button",{key:"06132dc834775c0f78a00690e71381f2f8bc48dd",ref:function(t){return e.button=t},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{open:this.open,active:this.active},onClick:this.onClick,onKeyUp:function(t){return e.handleEscape(t)}},this.icon&&h("duet-icon",{key:"5808b4d746aacc6834d5c7cfc886cb2318ca11bf",class:"submenu-bar-dropdown-icon",theme:this.theme,name:this.icon,size:"auto",margin:"none",color:"currentColor"}),h("div",{key:"4d1a960326bb00837cdffa7d7968d1a09c246656",class:"label"},h("span",{key:"0b0fab9353193d5f65ba7a40474548653b0bd233",class:"label-text"},h("slot",{key:"6270448ade06bfe7555500c63eba0c0dd4bc589a",name:"label"})),h("duet-icon",{key:"445ce13635b1ac94a6059dfa0cc74925bdb42829",class:"caret",theme:this.theme,name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),h("div",{key:"72428c05d80b77b7443611c15548731847faf492",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:true,hidden:!this.open}},h("slot",{key:"da23085cb0178dc3a796bfef1127aff57a055703"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSubmenuBarDropdown.style=DuetSubmenuBarDropdownStyle0;export{DuetSubmenuBarDropdown as duet_submenu_bar_dropdown};