@duetds/components 10.0.0-alpha.7 → 10.0.0-alpha.8

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 (615) hide show
  1. package/hydrate/index.js +23 -17
  2. package/lib/cjs/{a11y-utils-660f6fc9.js → a11y-utils-e921b85d.js} +1 -1
  3. package/lib/cjs/{app-globals-041a56ca.js → app-globals-99f2f39f.js} +1 -1
  4. package/lib/cjs/duet-action-button.cjs.entry.js +2 -2
  5. package/lib/cjs/duet-alert.cjs.entry.js +3 -3
  6. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-banner.cjs.entry.js +2 -2
  8. package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -2
  9. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +2 -2
  10. package/lib/cjs/duet-button_2.cjs.entry.js +2 -2
  11. package/lib/cjs/duet-callout.cjs.entry.js +2 -2
  12. package/lib/cjs/duet-caption_4.cjs.entry.js +4 -4
  13. package/lib/cjs/duet-card.cjs.entry.js +2 -2
  14. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  16. package/lib/cjs/duet-chip_3.cjs.entry.js +9 -7
  17. package/lib/cjs/duet-choice_2.cjs.entry.js +3 -3
  18. package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
  19. package/lib/cjs/duet-combobox.cjs.entry.js +3 -3
  20. package/lib/cjs/duet-contact-card.cjs.entry.js +2 -2
  21. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-date-picker.cjs.entry.js +5 -5
  23. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-editable-table_3.cjs.entry.js +3 -3
  25. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-fieldset.cjs.entry.js +2 -2
  27. package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-footer.cjs.entry.js +3 -3
  29. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-header_2.cjs.entry.js +2 -2
  31. package/lib/cjs/duet-hero.cjs.entry.js +3 -3
  32. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-input_2.cjs.entry.js +4 -4
  34. package/lib/cjs/duet-layout.cjs.entry.js +3 -3
  35. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  39. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +4 -4
  40. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -5
  42. package/lib/cjs/duet-modal.cjs.entry.js +4 -4
  43. package/lib/cjs/duet-multiselect.cjs.entry.js +4 -4
  44. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-notification_2.cjs.entry.js +2 -2
  46. package/lib/cjs/duet-number-input.cjs.entry.js +3 -3
  47. package/lib/cjs/duet-overlay.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  49. package/lib/cjs/duet-pagination_2.cjs.entry.js +2 -2
  50. package/lib/cjs/duet-progress.cjs.entry.js +2 -2
  51. package/lib/cjs/duet-promo-card.cjs.entry.js +2 -2
  52. package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
  53. package/lib/cjs/duet-range-slider.cjs.entry.js +3 -3
  54. package/lib/cjs/duet-scrollable_3.cjs.entry.js +14 -11
  55. package/lib/cjs/duet-section-layout.cjs.entry.js +2 -2
  56. package/lib/cjs/duet-select.cjs.entry.js +3 -3
  57. package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-show-more.cjs.entry.js +2 -2
  59. package/lib/cjs/duet-slideout-lang.cjs.entry.js +2 -2
  60. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  61. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-slideout-panel.cjs.entry.js +4 -4
  63. package/lib/cjs/duet-slideout.cjs.entry.js +4 -4
  64. package/lib/cjs/duet-status-icon.cjs.entry.js +1 -1
  65. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  66. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  68. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +4 -4
  69. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  70. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
  71. package/lib/cjs/duet-textarea.cjs.entry.js +4 -4
  72. package/lib/cjs/duet-toggle.cjs.entry.js +3 -3
  73. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  74. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  75. package/lib/cjs/duet-toolbar-item.cjs.entry.js +4 -4
  76. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  77. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  78. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +2 -2
  79. package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
  80. package/lib/cjs/duet-tray.cjs.entry.js +2 -2
  81. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  82. package/lib/cjs/duet-upload-item.cjs.entry.js +3 -3
  83. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  84. package/lib/cjs/duet.cjs.js +2 -2
  85. package/lib/cjs/{errorcodes.utils-381e59b0.js → errorcodes.utils-2db03da6.js} +1 -1
  86. package/lib/cjs/{focus-utils-8b057c75.js → focus-utils-5578a0a5.js} +1 -1
  87. package/lib/cjs/{index-0885358e.js → index-9c3aea30.js} +331 -2
  88. package/lib/cjs/{label-0db337c3.js → label-a742a2d5.js} +1 -1
  89. package/lib/cjs/{language-utils-ae5d768d.js → language-utils-9499975c.js} +1 -1
  90. package/lib/cjs/loader.cjs.js +2 -2
  91. package/lib/cjs/{slot-utils-7cc4f68b.js → slot-utils-799906b5.js} +1 -1
  92. package/lib/collection/components/duet-layout/duet-layout.css +0 -3
  93. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +2 -2
  94. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -2
  95. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +6 -4
  96. package/lib/collection/components/duet-scrollable/duet-scrollable.css +13 -5
  97. package/lib/collection/components/duet-scrollable/duet-scrollable.js +10 -7
  98. package/lib/collection/components/duet-section-layout/duet-section-layout.css +0 -3
  99. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  100. package/lib/dist-custom-elements/duet-alert.js +1 -1
  101. package/lib/dist-custom-elements/duet-badge.js +1 -1
  102. package/lib/dist-custom-elements/duet-banner.js +3 -3
  103. package/lib/dist-custom-elements/duet-breadcrumb.js +3 -3
  104. package/lib/dist-custom-elements/duet-breadcrumbs.js +1 -1
  105. package/lib/dist-custom-elements/duet-button.js +1 -1
  106. package/lib/dist-custom-elements/duet-callout.js +2 -2
  107. package/lib/dist-custom-elements/duet-caption.js +1 -1
  108. package/lib/dist-custom-elements/duet-card.js +3 -3
  109. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  110. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  111. package/lib/dist-custom-elements/duet-chip.js +1 -1
  112. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  113. package/lib/dist-custom-elements/duet-choice.js +4 -4
  114. package/lib/dist-custom-elements/duet-collapsible.js +3 -3
  115. package/lib/dist-custom-elements/duet-combobox.js +14 -14
  116. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  117. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  118. package/lib/dist-custom-elements/duet-date-picker.js +12 -12
  119. package/lib/dist-custom-elements/duet-divider.js +1 -1
  120. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  121. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  122. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  123. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  124. package/lib/dist-custom-elements/duet-footer.js +7 -7
  125. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  126. package/lib/dist-custom-elements/duet-grid.js +1 -1
  127. package/lib/dist-custom-elements/duet-header.js +8 -8
  128. package/lib/dist-custom-elements/duet-heading.js +1 -1
  129. package/lib/dist-custom-elements/duet-hero.js +9 -9
  130. package/lib/dist-custom-elements/duet-icon.js +1 -1
  131. package/lib/dist-custom-elements/duet-input.js +1 -1
  132. package/lib/dist-custom-elements/duet-label.js +1 -1
  133. package/lib/dist-custom-elements/duet-layout.js +2 -2
  134. package/lib/dist-custom-elements/duet-link.js +1 -1
  135. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  136. package/lib/dist-custom-elements/duet-list.js +1 -1
  137. package/lib/dist-custom-elements/duet-logo.js +1 -1
  138. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  139. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  140. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  141. package/lib/dist-custom-elements/duet-menu-bar-item.js +2 -2
  142. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  143. package/lib/dist-custom-elements/duet-menu-bar.js +6 -5
  144. package/lib/dist-custom-elements/duet-modal.js +8 -8
  145. package/lib/dist-custom-elements/duet-multiselect.js +8 -8
  146. package/lib/dist-custom-elements/duet-nav.js +1 -1
  147. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  148. package/lib/dist-custom-elements/duet-notification.js +2 -2
  149. package/lib/dist-custom-elements/duet-number-input.js +10 -10
  150. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  151. package/lib/dist-custom-elements/duet-page-heading.js +3 -3
  152. package/lib/dist-custom-elements/duet-pagination.js +12 -12
  153. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  154. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  155. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  156. package/lib/dist-custom-elements/duet-progress.js +1 -1
  157. package/lib/dist-custom-elements/duet-promo-card.js +3 -3
  158. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  159. package/lib/dist-custom-elements/duet-radio.js +1 -1
  160. package/lib/dist-custom-elements/duet-range-slider.js +1 -1
  161. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  162. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  163. package/lib/dist-custom-elements/duet-section-layout.js +2 -2
  164. package/lib/dist-custom-elements/duet-select.js +1 -1
  165. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  166. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  167. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  168. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  169. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  170. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  171. package/lib/dist-custom-elements/duet-slideout.js +3 -3
  172. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  173. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  174. package/lib/dist-custom-elements/duet-status-icon.js +2 -2
  175. package/lib/dist-custom-elements/duet-step.js +4 -4
  176. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  177. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  178. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  179. package/lib/dist-custom-elements/duet-submenu-bar-item.js +2 -2
  180. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  181. package/lib/dist-custom-elements/duet-submenu-bar.js +3 -3
  182. package/lib/dist-custom-elements/duet-tab-group.js +7 -7
  183. package/lib/dist-custom-elements/duet-tab.js +1 -1
  184. package/lib/dist-custom-elements/duet-table.js +1 -1
  185. package/lib/dist-custom-elements/duet-textarea.js +9 -9
  186. package/lib/dist-custom-elements/duet-toggle.js +1 -1
  187. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  188. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  189. package/lib/dist-custom-elements/duet-toolbar-item.js +2 -2
  190. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  191. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  192. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  193. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  194. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  195. package/lib/dist-custom-elements/duet-tray.js +3 -3
  196. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  197. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  198. package/lib/dist-custom-elements/duet-upload.js +19 -19
  199. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  200. package/lib/dist-custom-elements/index.js +1 -1
  201. package/lib/dist-custom-elements/{p-6560b415.js → p-0ccb587d.js} +2 -2
  202. package/lib/dist-custom-elements/{p-7a8ebdb7.js → p-1080a6c7.js} +1 -1
  203. package/lib/dist-custom-elements/{p-4f9c1a9a.js → p-10cd2c68.js} +10 -10
  204. package/lib/dist-custom-elements/{p-3e99b7b2.js → p-1892dc7c.js} +1 -1
  205. package/lib/dist-custom-elements/{p-08eb05f7.js → p-1a58f15b.js} +1 -1
  206. package/lib/dist-custom-elements/{p-e9666ab6.js → p-297845c1.js} +3 -3
  207. package/lib/dist-custom-elements/{p-eddef302.js → p-2d798e15.js} +1 -1
  208. package/lib/dist-custom-elements/{p-90aadff1.js → p-34a901da.js} +1 -1
  209. package/lib/dist-custom-elements/{p-55b83dec.js → p-3bea94c3.js} +16 -13
  210. package/lib/dist-custom-elements/{p-f2b84f7d.js → p-4c3d0ee5.js} +1 -1
  211. package/lib/dist-custom-elements/{p-fbf01fef.js → p-530451fd.js} +1 -1
  212. package/lib/dist-custom-elements/{p-a2ab7458.js → p-5ad0aa2d.js} +1 -1
  213. package/lib/dist-custom-elements/{p-7cebe2aa.js → p-6e12d8f9.js} +1 -1
  214. package/lib/dist-custom-elements/{p-b5147f77.js → p-77fe0881.js} +5 -5
  215. package/lib/dist-custom-elements/{p-e000047c.js → p-7ef7ecb2.js} +9 -9
  216. package/lib/dist-custom-elements/{p-87c8a780.js → p-846239a5.js} +7 -5
  217. package/lib/dist-custom-elements/{p-4dd6ec0e.js → p-88a11eef.js} +1 -1
  218. package/lib/dist-custom-elements/{p-b49e2890.js → p-9f10e30c.js} +1 -1
  219. package/lib/dist-custom-elements/{p-9bbe7263.js → p-a2d287b0.js} +4 -4
  220. package/lib/dist-custom-elements/{p-46aa070f.js → p-b2db5fb1.js} +5 -5
  221. package/lib/dist-custom-elements/{p-5d29fcaa.js → p-b662900e.js} +2 -2
  222. package/lib/dist-custom-elements/{p-66f05bd2.js → p-bae3d92e.js} +1 -1
  223. package/lib/dist-custom-elements/{p-f32d4b93.js → p-bf91603e.js} +1 -1
  224. package/lib/dist-custom-elements/{p-d18fbbfb.js → p-c84c39d8.js} +1 -1
  225. package/lib/dist-custom-elements/{p-f4511d6b.js → p-d07ce35f.js} +1 -1
  226. package/lib/dist-custom-elements/{p-e8d53fc5.js → p-d1aca1bf.js} +7 -7
  227. package/lib/dist-custom-elements/{p-7e262927.js → p-d4202ee8.js} +2 -2
  228. package/lib/dist-custom-elements/{p-958921e7.js → p-d74ee462.js} +1 -1
  229. package/lib/dist-custom-elements/{p-9a2ea7dc.js → p-d8e88497.js} +1 -1
  230. package/lib/dist-custom-elements/{p-5882e967.js → p-db1a07f5.js} +2 -2
  231. package/lib/dist-custom-elements/{p-46a8132e.js → p-df9299e6.js} +1 -1
  232. package/lib/dist-custom-elements/{p-1a76b580.js → p-e96839f2.js} +2 -2
  233. package/lib/dist-custom-elements/{p-5e2fd812.js → p-ed2d40fe.js} +1 -1
  234. package/lib/dist-custom-elements/{p-4006af44.js → p-f0d82988.js} +6 -6
  235. package/lib/dist-custom-elements/{p-076458c1.js → p-f4e71ced.js} +3 -3
  236. package/lib/dist-custom-elements/{p-d2e75481.js → p-f611b32e.js} +2 -2
  237. package/lib/dist-custom-elements/{p-df4b16da.js → p-f86f4403.js} +2 -2
  238. package/lib/dist-custom-elements/{p-d2152803.js → p-faa49d55.js} +2 -2
  239. package/lib/duet/duet.esm.js +1 -1
  240. package/lib/duet/duet.js +1 -1
  241. package/lib/duet/{p-3a1a4161.entry.js → p-038bb299.entry.js} +1 -1
  242. package/lib/duet/p-03bfd386.system.js +4 -0
  243. package/lib/duet/{p-289e20a4.entry.js → p-050923e5.entry.js} +1 -1
  244. package/lib/duet/{p-8296c9c2.system.js → p-054f5ec6.system.js} +1 -1
  245. package/lib/duet/{p-5488c7f0.entry.js → p-05aec682.entry.js} +1 -1
  246. package/lib/duet/{p-c81c688f.system.entry.js → p-06995c4e.system.entry.js} +1 -1
  247. package/lib/duet/{p-f8c6c87c.system.entry.js → p-08344bda.system.entry.js} +1 -1
  248. package/lib/duet/{p-505ef540.entry.js → p-0846f883.entry.js} +1 -1
  249. package/lib/duet/{p-2b1be22e.system.entry.js → p-08f3a77e.system.entry.js} +1 -1
  250. package/lib/duet/{p-c779e3e1.entry.js → p-091ce42a.entry.js} +1 -1
  251. package/lib/duet/{p-8f5c12c8.system.entry.js → p-0998026d.system.entry.js} +1 -1
  252. package/lib/duet/{p-c9fd4929.entry.js → p-0a4b0639.entry.js} +1 -1
  253. package/lib/duet/p-0a675075.js +4 -0
  254. package/lib/duet/{p-87a8eb57.entry.js → p-0b818355.entry.js} +1 -1
  255. package/lib/duet/{p-3042a585.entry.js → p-0bcc93b7.entry.js} +1 -1
  256. package/lib/duet/{p-acba28ca.system.entry.js → p-0c4708c0.system.entry.js} +1 -1
  257. package/lib/duet/{p-4ce70915.entry.js → p-0cbec7c8.entry.js} +1 -1
  258. package/lib/duet/{p-41f062e2.system.entry.js → p-0d334c84.system.entry.js} +1 -1
  259. package/lib/duet/{p-8688d2ab.system.entry.js → p-0d7369ef.system.entry.js} +1 -1
  260. package/lib/duet/{p-b8dbb46c.entry.js → p-10b1f772.entry.js} +1 -1
  261. package/lib/duet/{p-78aa46d5.system.entry.js → p-12b25cdd.system.entry.js} +1 -1
  262. package/lib/duet/{p-6b8e825d.entry.js → p-145d2c10.entry.js} +1 -1
  263. package/lib/duet/{p-38e2ca53.system.entry.js → p-15d66914.system.entry.js} +1 -1
  264. package/lib/duet/p-15ecb8d0.entry.js +4 -0
  265. package/lib/duet/{p-59be5b66.entry.js → p-166d19ac.entry.js} +1 -1
  266. package/lib/duet/{p-7433065d.system.entry.js → p-178b8a47.system.entry.js} +1 -1
  267. package/lib/duet/{p-273ee825.entry.js → p-17bfda66.entry.js} +1 -1
  268. package/lib/duet/{p-8625602d.system.entry.js → p-18463379.system.entry.js} +1 -1
  269. package/lib/duet/{p-29d53ea5.system.entry.js → p-1a65974d.system.entry.js} +1 -1
  270. package/lib/duet/{p-28aee391.entry.js → p-1cc7a137.entry.js} +1 -1
  271. package/lib/duet/{p-9da6fbd0.system.entry.js → p-1d1198dd.system.entry.js} +1 -1
  272. package/lib/duet/{p-28275d12.system.entry.js → p-1dff1118.system.entry.js} +1 -1
  273. package/lib/duet/{p-724d1682.entry.js → p-1ed2ef65.entry.js} +1 -1
  274. package/lib/duet/{p-a81137d2.entry.js → p-20a1c9ac.entry.js} +1 -1
  275. package/lib/duet/{p-cae73efd.system.entry.js → p-21dd3dba.system.entry.js} +1 -1
  276. package/lib/duet/{p-b53f2401.entry.js → p-22d16f94.entry.js} +1 -1
  277. package/lib/duet/{p-e24b7d0e.entry.js → p-2667d9dc.entry.js} +1 -1
  278. package/lib/duet/{p-ead29805.entry.js → p-2aa130a2.entry.js} +1 -1
  279. package/lib/duet/{p-01ebc478.entry.js → p-2ae03409.entry.js} +1 -1
  280. package/lib/duet/{p-2f715679.system.entry.js → p-2afb5bf3.system.entry.js} +1 -1
  281. package/lib/duet/{p-6d1f7659.system.entry.js → p-2d6171e9.system.entry.js} +1 -1
  282. package/lib/duet/{p-d65bf655.entry.js → p-2dcc7b0c.entry.js} +1 -1
  283. package/lib/duet/{p-b6859e60.system.entry.js → p-31e19362.system.entry.js} +1 -1
  284. package/lib/duet/{p-74214cc5.system.entry.js → p-330a4b1f.system.entry.js} +1 -1
  285. package/lib/duet/{p-ab1b2d93.entry.js → p-374599c9.entry.js} +1 -1
  286. package/lib/duet/{p-de9c27d0.system.entry.js → p-38b22704.system.entry.js} +1 -1
  287. package/lib/duet/{p-c2f9a318.system.entry.js → p-3948c738.system.entry.js} +1 -1
  288. package/lib/duet/{p-65d0162b.system.entry.js → p-3b15bdda.system.entry.js} +1 -1
  289. package/lib/duet/{p-01264667.entry.js → p-3c2b3349.entry.js} +1 -1
  290. package/lib/duet/{p-0bd8ca70.entry.js → p-3ca8e462.entry.js} +1 -1
  291. package/lib/duet/{p-b3302c2f.system.entry.js → p-41d03609.system.entry.js} +1 -1
  292. package/lib/duet/{p-2cdacb01.system.js → p-4289c19b.system.js} +1 -1
  293. package/lib/duet/p-45c37e01.system.entry.js +4 -0
  294. package/lib/duet/{p-af13cb98.entry.js → p-473b8661.entry.js} +1 -1
  295. package/lib/duet/{p-db44b3b4.entry.js → p-485832e7.entry.js} +1 -1
  296. package/lib/duet/{p-8406ca8e.entry.js → p-4a2af66f.entry.js} +1 -1
  297. package/lib/duet/{p-3afaf734.js → p-4d06fd44.js} +1 -1
  298. package/lib/duet/{p-43415ad8.entry.js → p-4d496fbd.entry.js} +1 -1
  299. package/lib/duet/p-4d8a5d37.entry.js +4 -0
  300. package/lib/duet/{p-924eebeb.system.entry.js → p-4dc15982.system.entry.js} +1 -1
  301. package/lib/duet/{p-e7c85aa3.entry.js → p-53604f23.entry.js} +1 -1
  302. package/lib/duet/{p-7980c7c7.system.entry.js → p-53c2006e.system.entry.js} +1 -1
  303. package/lib/duet/{p-10ae39d7.system.entry.js → p-53fc94a0.system.entry.js} +1 -1
  304. package/lib/duet/{p-7792b99b.system.entry.js → p-54704ee1.system.entry.js} +1 -1
  305. package/lib/duet/{p-ecceed3c.system.entry.js → p-56f40850.system.entry.js} +1 -1
  306. package/lib/duet/p-59f0bbf0.entry.js +4 -0
  307. package/lib/duet/{p-ce2dd921.entry.js → p-5a0482d3.entry.js} +1 -1
  308. package/lib/duet/{p-7ba22ad5.system.entry.js → p-5a72f8b5.system.entry.js} +1 -1
  309. package/lib/duet/{p-761c3bab.entry.js → p-5c026823.entry.js} +1 -1
  310. package/lib/duet/{p-5c6fe96f.js → p-5e9210a0.js} +1 -1
  311. package/lib/duet/{p-56860e41.entry.js → p-5ff95850.entry.js} +1 -1
  312. package/lib/duet/{p-cc2912ff.system.entry.js → p-60734222.system.entry.js} +1 -1
  313. package/lib/duet/{p-d5299653.entry.js → p-6138ae4f.entry.js} +1 -1
  314. package/lib/duet/p-62a7d1e0.system.entry.js +4 -0
  315. package/lib/duet/{p-b3f0b1df.system.entry.js → p-652ef5c4.system.entry.js} +1 -1
  316. package/lib/duet/{p-dea429f9.entry.js → p-65d9b543.entry.js} +1 -1
  317. package/lib/duet/{p-b4d7d067.system.entry.js → p-66dfb534.system.entry.js} +1 -1
  318. package/lib/duet/{p-3c1abeed.system.entry.js → p-6880e7e4.system.entry.js} +1 -1
  319. package/lib/duet/{p-adba09a3.entry.js → p-69dda5cf.entry.js} +1 -1
  320. package/lib/duet/{p-7e8e5ce0.system.entry.js → p-6e5dbf3f.system.entry.js} +1 -1
  321. package/lib/duet/{p-2bc7bfb8.system.entry.js → p-6f878638.system.entry.js} +1 -1
  322. package/lib/duet/{p-07da24e7.system.entry.js → p-70a6edcd.system.entry.js} +1 -1
  323. package/lib/duet/{p-7610cf8a.system.entry.js → p-70ea5a26.system.entry.js} +1 -1
  324. package/lib/duet/{p-a011272e.entry.js → p-72767ad2.entry.js} +1 -1
  325. package/lib/duet/{p-713fb177.entry.js → p-739ffce8.entry.js} +1 -1
  326. package/lib/duet/{p-447e1392.system.js → p-74aa0f9d.system.js} +1 -1
  327. package/lib/duet/{p-c44fa6da.system.js → p-7648f559.system.js} +1 -1
  328. package/lib/duet/p-77bbd147.entry.js +4 -0
  329. package/lib/duet/{p-9ba5dbb7.entry.js → p-77f01407.entry.js} +1 -1
  330. package/lib/duet/{p-a090e7f0.entry.js → p-7931d6b8.entry.js} +1 -1
  331. package/lib/duet/{p-982c17df.entry.js → p-798942ab.entry.js} +1 -1
  332. package/lib/duet/{p-1977033e.system.entry.js → p-7b2d2e4d.system.entry.js} +1 -1
  333. package/lib/duet/{p-031cd628.system.entry.js → p-7bbf3a3b.system.entry.js} +1 -1
  334. package/lib/duet/{p-e1287a80.entry.js → p-7dfee16a.entry.js} +1 -1
  335. package/lib/duet/{p-7f60def8.entry.js → p-7f16d0df.entry.js} +1 -1
  336. package/lib/duet/{p-024c9ef9.entry.js → p-7f22291f.entry.js} +1 -1
  337. package/lib/duet/{p-841673c0.system.entry.js → p-81cde516.system.entry.js} +1 -1
  338. package/lib/duet/{p-f2d13294.system.entry.js → p-8228f180.system.entry.js} +1 -1
  339. package/lib/duet/{p-35d862a1.entry.js → p-84835d40.entry.js} +1 -1
  340. package/lib/duet/{p-2f701bd3.system.entry.js → p-874f4064.system.entry.js} +1 -1
  341. package/lib/duet/{p-36602fe4.entry.js → p-897e6941.entry.js} +1 -1
  342. package/lib/duet/{p-6833a13e.system.entry.js → p-8a970f0a.system.entry.js} +1 -1
  343. package/lib/duet/{p-d1d1e439.system.entry.js → p-8b1c69f9.system.entry.js} +1 -1
  344. package/lib/duet/{p-9c08f843.entry.js → p-8baeb065.entry.js} +1 -1
  345. package/lib/duet/{p-55183c9c.entry.js → p-8eea942e.entry.js} +1 -1
  346. package/lib/duet/{p-17676f8d.entry.js → p-8f871c29.entry.js} +1 -1
  347. package/lib/duet/{p-0e3bcaa9.entry.js → p-90999186.entry.js} +1 -1
  348. package/lib/duet/{p-ca22effd.entry.js → p-979fb2cf.entry.js} +1 -1
  349. package/lib/duet/{p-0278c664.system.entry.js → p-97b3fb78.system.entry.js} +1 -1
  350. package/lib/duet/{p-73695b8f.entry.js → p-97eb9b2e.entry.js} +1 -1
  351. package/lib/duet/{p-4dcb6a39.js → p-97fe4968.js} +1 -1
  352. package/lib/duet/{p-7ff7d213.entry.js → p-98c15b83.entry.js} +1 -1
  353. package/lib/duet/{p-e99d4ab0.system.entry.js → p-9fab0a1d.system.entry.js} +1 -1
  354. package/lib/duet/{p-794f26b0.system.entry.js → p-a0a59034.system.entry.js} +1 -1
  355. package/lib/duet/{p-b1ac6254.system.entry.js → p-a1a0370a.system.entry.js} +1 -1
  356. package/lib/duet/{p-b0ef5620.js → p-a20ed47c.js} +1 -1
  357. package/lib/duet/{p-a2eb63af.system.entry.js → p-a4dbef0b.system.entry.js} +1 -1
  358. package/lib/duet/{p-a27457ec.system.entry.js → p-a54c3c58.system.entry.js} +1 -1
  359. package/lib/duet/{p-61a0ad44.entry.js → p-a6bb7eb0.entry.js} +1 -1
  360. package/lib/duet/{p-57daa78e.system.entry.js → p-ac21f1dc.system.entry.js} +1 -1
  361. package/lib/duet/p-ac7ef7e2.js +4 -0
  362. package/lib/duet/{p-5c3bb425.entry.js → p-aca1538e.entry.js} +1 -1
  363. package/lib/duet/{p-d60846a0.entry.js → p-ae19da09.entry.js} +1 -1
  364. package/lib/duet/{p-1798db32.system.js → p-b2d5f07c.system.js} +1 -1
  365. package/lib/duet/{p-c5e2f011.system.entry.js → p-b2f3287a.system.entry.js} +1 -1
  366. package/lib/duet/p-b5b8973c.js +4 -0
  367. package/lib/duet/{p-4d46054e.system.entry.js → p-b6366830.system.entry.js} +1 -1
  368. package/lib/duet/{p-9d15f354.system.entry.js → p-b8d342d1.system.entry.js} +1 -1
  369. package/lib/duet/{p-846abd90.system.entry.js → p-bd3c7c60.system.entry.js} +1 -1
  370. package/lib/duet/{p-b7b88f43.system.entry.js → p-be8044cb.system.entry.js} +1 -1
  371. package/lib/duet/{p-6a255600.entry.js → p-bf85a8c6.entry.js} +1 -1
  372. package/lib/duet/p-bfafaac4.entry.js +4 -0
  373. package/lib/duet/{p-ea2e8887.system.entry.js → p-bfe1d1d1.system.entry.js} +1 -1
  374. package/lib/duet/p-c2308ebd.entry.js +4 -0
  375. package/lib/duet/{p-e622420a.entry.js → p-c47bc68e.entry.js} +1 -1
  376. package/lib/duet/{p-a94536d7.entry.js → p-c5b6d9ed.entry.js} +1 -1
  377. package/lib/duet/{p-0e12e3b8.entry.js → p-c93daa4f.entry.js} +1 -1
  378. package/lib/duet/{p-eb28342c.system.entry.js → p-cc6e2037.system.entry.js} +1 -1
  379. package/lib/duet/{p-36009a0d.entry.js → p-cd4cd328.entry.js} +1 -1
  380. package/lib/duet/{p-6ab7c8ae.entry.js → p-cf3dbdbe.entry.js} +1 -1
  381. package/lib/duet/{p-5013078d.system.entry.js → p-cf6a502f.system.entry.js} +1 -1
  382. package/lib/duet/{p-9f1f30d1.entry.js → p-cfb501bd.entry.js} +1 -1
  383. package/lib/duet/{p-3986c681.system.js → p-d080e1b9.system.js} +1 -1
  384. package/lib/duet/{p-361371c0.entry.js → p-d159daa2.entry.js} +1 -1
  385. package/lib/duet/{p-a4170fe7.system.js → p-d3960f14.system.js} +1 -1
  386. package/lib/duet/{p-42542284.entry.js → p-d4f2abe8.entry.js} +1 -1
  387. package/lib/duet/{p-619a6ecf.js → p-d5a87e9a.js} +1 -1
  388. package/lib/duet/{p-cb6f8369.entry.js → p-d6b00137.entry.js} +1 -1
  389. package/lib/duet/{p-4d8136a6.system.entry.js → p-d7b8ea98.system.entry.js} +1 -1
  390. package/lib/duet/{p-8e2ad162.entry.js → p-dc68fee2.entry.js} +1 -1
  391. package/lib/duet/{p-0887bb20.system.entry.js → p-e05cecd0.system.entry.js} +2 -2
  392. package/lib/duet/{p-ca8df590.system.entry.js → p-e0b5d41a.system.entry.js} +1 -1
  393. package/lib/duet/{p-d6568e05.entry.js → p-e1c5ef00.entry.js} +1 -1
  394. package/lib/duet/{p-ad6532e2.entry.js → p-e21018b3.entry.js} +1 -1
  395. package/lib/duet/{p-29b17590.entry.js → p-e263283f.entry.js} +1 -1
  396. package/lib/duet/{p-0e32e0f3.entry.js → p-e4a0a1b3.entry.js} +1 -1
  397. package/lib/duet/{p-28e4efe1.system.entry.js → p-e513c4ca.system.entry.js} +1 -1
  398. package/lib/duet/{p-5ce6dbbb.system.entry.js → p-e6f7a7fd.system.entry.js} +1 -1
  399. package/lib/duet/p-e8f8aae8.system.js +4 -0
  400. package/lib/duet/{p-357c0e81.system.entry.js → p-e93169b0.system.entry.js} +1 -1
  401. package/lib/duet/{p-569d1162.entry.js → p-eb425c47.entry.js} +1 -1
  402. package/lib/duet/{p-804d9390.system.entry.js → p-edcdd3e6.system.entry.js} +1 -1
  403. package/lib/duet/{p-20b6ae5f.system.entry.js → p-efa05a47.system.entry.js} +1 -1
  404. package/lib/duet/{p-a8ed2473.system.entry.js → p-efe71c0a.system.entry.js} +1 -1
  405. package/lib/duet/{p-1b64118e.system.entry.js → p-f065f062.system.entry.js} +1 -1
  406. package/lib/duet/{p-3e294789.system.entry.js → p-f23de827.system.entry.js} +1 -1
  407. package/lib/duet/{p-36282ff0.system.entry.js → p-f4df9001.system.entry.js} +1 -1
  408. package/lib/duet/{p-f3463af2.entry.js → p-f5a0878c.entry.js} +1 -1
  409. package/lib/duet/{p-793a7e00.system.entry.js → p-f5b6fd8e.system.entry.js} +1 -1
  410. package/lib/duet/{p-343293f9.system.entry.js → p-f785408c.system.entry.js} +1 -1
  411. package/lib/duet/{p-610bd1be.entry.js → p-f892350a.entry.js} +1 -1
  412. package/lib/duet/{p-f1083113.system.entry.js → p-f966e96a.system.entry.js} +1 -1
  413. package/lib/duet/p-fc06b1eb.system.entry.js +4 -0
  414. package/lib/duet/{p-aac4f547.system.entry.js → p-fcc0e0bf.system.entry.js} +2 -2
  415. package/lib/duet/{p-3f295c07.entry.js → p-fd376e7c.entry.js} +1 -1
  416. package/lib/duet/p-fe13effe.system.entry.js +4 -0
  417. package/lib/duet/{p-694cb5c7.system.entry.js → p-ffb9535d.system.entry.js} +1 -1
  418. package/lib/esm/{a11y-utils-7f48d84a.js → a11y-utils-9f6bee96.js} +1 -1
  419. package/lib/esm/{app-globals-8f12ab47.js → app-globals-f12e0500.js} +1 -1
  420. package/lib/esm/duet-action-button.entry.js +2 -2
  421. package/lib/esm/duet-alert.entry.js +3 -3
  422. package/lib/esm/duet-badge.entry.js +1 -1
  423. package/lib/esm/duet-banner.entry.js +2 -2
  424. package/lib/esm/duet-breadcrumb.entry.js +2 -2
  425. package/lib/esm/duet-breadcrumbs.entry.js +2 -2
  426. package/lib/esm/duet-button_2.entry.js +2 -2
  427. package/lib/esm/duet-callout.entry.js +2 -2
  428. package/lib/esm/duet-caption_4.entry.js +4 -4
  429. package/lib/esm/duet-card.entry.js +2 -2
  430. package/lib/esm/duet-checkbox.entry.js +1 -1
  431. package/lib/esm/duet-checkmark.entry.js +1 -1
  432. package/lib/esm/duet-chip_3.entry.js +9 -7
  433. package/lib/esm/duet-choice_2.entry.js +3 -3
  434. package/lib/esm/duet-collapsible.entry.js +2 -2
  435. package/lib/esm/duet-combobox.entry.js +3 -3
  436. package/lib/esm/duet-contact-card.entry.js +2 -2
  437. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  438. package/lib/esm/duet-date-picker.entry.js +5 -5
  439. package/lib/esm/duet-divider_2.entry.js +1 -1
  440. package/lib/esm/duet-editable-table_3.entry.js +3 -3
  441. package/lib/esm/duet-empty-state.entry.js +1 -1
  442. package/lib/esm/duet-fieldset.entry.js +2 -2
  443. package/lib/esm/duet-file-chooser.entry.js +1 -1
  444. package/lib/esm/duet-footer.entry.js +3 -3
  445. package/lib/esm/duet-grid_2.entry.js +1 -1
  446. package/lib/esm/duet-header_2.entry.js +2 -2
  447. package/lib/esm/duet-hero.entry.js +3 -3
  448. package/lib/esm/duet-icon.entry.js +1 -1
  449. package/lib/esm/duet-input_2.entry.js +4 -4
  450. package/lib/esm/duet-layout.entry.js +3 -3
  451. package/lib/esm/duet-list_2.entry.js +1 -1
  452. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  453. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  454. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  455. package/lib/esm/duet-menu-bar-item.entry.js +4 -4
  456. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  457. package/lib/esm/duet-menu-bar.entry.js +6 -5
  458. package/lib/esm/duet-modal.entry.js +4 -4
  459. package/lib/esm/duet-multiselect.entry.js +4 -4
  460. package/lib/esm/duet-nav.entry.js +1 -1
  461. package/lib/esm/duet-notification_2.entry.js +2 -2
  462. package/lib/esm/duet-number-input.entry.js +3 -3
  463. package/lib/esm/duet-overlay.entry.js +1 -1
  464. package/lib/esm/duet-page-heading.entry.js +1 -1
  465. package/lib/esm/duet-pagination_2.entry.js +2 -2
  466. package/lib/esm/duet-progress.entry.js +2 -2
  467. package/lib/esm/duet-promo-card.entry.js +2 -2
  468. package/lib/esm/duet-radio_2.entry.js +2 -2
  469. package/lib/esm/duet-range-slider.entry.js +3 -3
  470. package/lib/esm/duet-scrollable_3.entry.js +14 -11
  471. package/lib/esm/duet-section-layout.entry.js +2 -2
  472. package/lib/esm/duet-select.entry.js +3 -3
  473. package/lib/esm/duet-shaped-image.entry.js +1 -1
  474. package/lib/esm/duet-show-more.entry.js +2 -2
  475. package/lib/esm/duet-slideout-lang.entry.js +2 -2
  476. package/lib/esm/duet-slideout-link.entry.js +1 -1
  477. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  478. package/lib/esm/duet-slideout-panel.entry.js +4 -4
  479. package/lib/esm/duet-slideout.entry.js +4 -4
  480. package/lib/esm/duet-status-icon.entry.js +1 -1
  481. package/lib/esm/duet-step_2.entry.js +1 -1
  482. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  483. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  484. package/lib/esm/duet-submenu-bar-item.entry.js +4 -4
  485. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  486. package/lib/esm/duet-submenu-bar.entry.js +1 -1
  487. package/lib/esm/duet-textarea.entry.js +4 -4
  488. package/lib/esm/duet-toggle.entry.js +3 -3
  489. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  490. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  491. package/lib/esm/duet-toolbar-item.entry.js +4 -4
  492. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  493. package/lib/esm/duet-toolbar.entry.js +1 -1
  494. package/lib/esm/duet-tooltip-button_2.entry.js +2 -2
  495. package/lib/esm/duet-tooltip.entry.js +3 -3
  496. package/lib/esm/duet-tray.entry.js +2 -2
  497. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  498. package/lib/esm/duet-upload-item.entry.js +3 -3
  499. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  500. package/lib/esm/duet.js +3 -3
  501. package/lib/esm/{errorcodes.utils-66d99a23.js → errorcodes.utils-d594aed8.js} +1 -1
  502. package/lib/esm/{focus-utils-b48493c9.js → focus-utils-fc101536.js} +1 -1
  503. package/lib/esm/{index-5a27eaf5.js → index-fa810c91.js} +331 -2
  504. package/lib/esm/{label-00d35a2b.js → label-b3694b48.js} +1 -1
  505. package/lib/esm/{language-utils-2c1dd412.js → language-utils-35eb1c9f.js} +1 -1
  506. package/lib/esm/loader.js +3 -3
  507. package/lib/esm/{slot-utils-8fc9fbbf.js → slot-utils-b2101c56.js} +1 -1
  508. package/lib/esm-es5/{a11y-utils-7f48d84a.js → a11y-utils-9f6bee96.js} +1 -1
  509. package/lib/esm-es5/{app-globals-8f12ab47.js → app-globals-f12e0500.js} +1 -1
  510. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  511. package/lib/esm-es5/duet-alert.entry.js +1 -1
  512. package/lib/esm-es5/duet-badge.entry.js +1 -1
  513. package/lib/esm-es5/duet-banner.entry.js +1 -1
  514. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  515. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  516. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  517. package/lib/esm-es5/duet-callout.entry.js +1 -1
  518. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  519. package/lib/esm-es5/duet-card.entry.js +1 -1
  520. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  521. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  522. package/lib/esm-es5/duet-chip_3.entry.js +1 -1
  523. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  524. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  525. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  526. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  527. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  528. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  529. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  530. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  531. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  532. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  533. package/lib/esm-es5/duet-file-chooser.entry.js +2 -2
  534. package/lib/esm-es5/duet-footer.entry.js +1 -1
  535. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  536. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  537. package/lib/esm-es5/duet-hero.entry.js +1 -1
  538. package/lib/esm-es5/duet-icon.entry.js +1 -1
  539. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  540. package/lib/esm-es5/duet-layout.entry.js +1 -1
  541. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  542. package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
  543. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  544. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  545. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  546. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  547. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  548. package/lib/esm-es5/duet-modal.entry.js +1 -1
  549. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  550. package/lib/esm-es5/duet-nav.entry.js +1 -1
  551. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  552. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  553. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  554. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  555. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  556. package/lib/esm-es5/duet-progress.entry.js +1 -1
  557. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  558. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  559. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  560. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  561. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  562. package/lib/esm-es5/duet-select.entry.js +1 -1
  563. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  564. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  565. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  566. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  567. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  568. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  569. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  570. package/lib/esm-es5/duet-status-icon.entry.js +1 -1
  571. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  572. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  573. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  574. package/lib/esm-es5/duet-submenu-bar-item.entry.js +1 -1
  575. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  576. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  577. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  578. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  579. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  580. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  581. package/lib/esm-es5/duet-toolbar-item.entry.js +1 -1
  582. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  583. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  584. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  585. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  586. package/lib/esm-es5/duet-tray.entry.js +1 -1
  587. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  588. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  589. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  590. package/lib/esm-es5/duet.js +1 -1
  591. package/lib/esm-es5/{errorcodes.utils-66d99a23.js → errorcodes.utils-d594aed8.js} +1 -1
  592. package/lib/esm-es5/focus-utils-fc101536.js +4 -0
  593. package/lib/esm-es5/index-fa810c91.js +4 -0
  594. package/lib/esm-es5/{label-00d35a2b.js → label-b3694b48.js} +1 -1
  595. package/lib/esm-es5/{language-utils-2c1dd412.js → language-utils-35eb1c9f.js} +1 -1
  596. package/lib/esm-es5/loader.js +1 -1
  597. package/lib/esm-es5/{slot-utils-8fc9fbbf.js → slot-utils-b2101c56.js} +1 -1
  598. package/package.json +3 -3
  599. package/lib/duet/p-0d6ace6f.js +0 -4
  600. package/lib/duet/p-15a35870.system.entry.js +0 -4
  601. package/lib/duet/p-22a95bff.system.js +0 -4
  602. package/lib/duet/p-3a8e181e.entry.js +0 -4
  603. package/lib/duet/p-402af830.js +0 -4
  604. package/lib/duet/p-4a4d949c.entry.js +0 -4
  605. package/lib/duet/p-654a4d24.entry.js +0 -4
  606. package/lib/duet/p-663d1dbe.system.entry.js +0 -4
  607. package/lib/duet/p-6791f33a.system.entry.js +0 -4
  608. package/lib/duet/p-7094e51e.js +0 -4
  609. package/lib/duet/p-97f1f446.system.entry.js +0 -4
  610. package/lib/duet/p-b85f2a7b.entry.js +0 -4
  611. package/lib/duet/p-be334873.system.js +0 -4
  612. package/lib/duet/p-c4150af0.entry.js +0 -4
  613. package/lib/duet/p-d0d6ecb5.entry.js +0 -4
  614. package/lib/esm-es5/focus-utils-b48493c9.js +0 -4
  615. package/lib/esm-es5/index-5a27eaf5.js +0 -5
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function o(t){try{a(n.next(t))}catch(t){s(t)}}function u(t){try{a(n["throw"](t))}catch(t){s(t)}}function a(t){t.done?e(t.value):r(t.value).then(o,u)}a((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(t){return function(i){return a([t,i])}}function a(u){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(e=0)),e)try{if(n=1,r&&(s=u[0]&2?r["return"]:u[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,u[1])).done)return s;if(r=0,s)u=[u[0]&2,s.value];switch(u[0]){case 0:case 1:s=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;r=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){e.label=u[1];break}if(u[0]===6&&e.label<s[1]){e.label=s[1];s=u;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(u);break}if(s[2])e.ops.pop();e.trys.pop();continue}u=i.call(t,e)}catch(t){u=[6,t];r=0}finally{n=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,i,e){if(e||arguments.length===2)for(var n=0,r=i.length,s;n<r;n++){if(s||!(n in i)){if(!s)s=Array.prototype.slice.call(i,0,n);s[n]=i[n]}}return t.concat(s||Array.prototype.slice.call(i))};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{h,r as registerInstance,c as createEvent,H as Host,g as getElement}from"./index-5a27eaf5.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{d as debounce}from"./js-utils-9b9e0039.js";import{j as isEnterKey,f as isEscapeKey,o as isTabKey,b as isArrowUpKey,c as isArrowDownKey}from"./keyboard-utils-daf80d44.js";import{g as getLocaleString,a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-2c1dd412.js";import{b as getElementsFromDefaultSlot}from"./slot-utils-8fc9fbbf.js";import{r as regexEscape,p as parsePossibleJSON}from"./string-utils-192eb3c8.js";var DuetComboBoxSelect=function(t){var i=t.item,e=t.activeDescendant,n=t.selected,r=t.label,s=r===void 0?undefined:r,o=t.clickHandler,u=o===void 0?function(t){t.preventDefault()}:o,a=t.keyHandler,c=a===void 0?function(t){t.preventDefault()}:a,f=t.search,l=t.isAndroidDevice,d=t.id;var v=f.split(" ").filter((function(t){return!!t.trim()})).map((function(t){return regexEscape(t)}));var m=f!==""?new RegExp("(".concat(v.join("|"),")"),"i"):undefined;var b="text-decoration: underline";return h("duet-popup-menu-item",{id:e?d:"",active:n,"data-index":i.id,"aria-selected":e?"true":undefined,"aria-current":n?"true":undefined,role:"option","aria-label":s,tabindex:l?"-1":null,onClick:function(t){return u(t)},onKeyUp:function(t){return c(t)},accessibleRole:"option",activeDescendant:e},m?h("span",{class:"option-container","aria-hidden":"true"},h("span",{innerHTML:i.name.replace(m,'<span style="'.concat(b,'">$&</span>'))})):i.name,i.tags&&h("span",{class:"option-tags"},i.tags.join(", ")))};var duetComboboxCss=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:inline-block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(8, 42, 77)}:host a{color:rgb(8, 42, 77);transition:none}:host.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host.duet-theme-turva a{color:rgb(23, 28, 58)}.combobox-menu-container{width:var(--popup-width);max-height:200px}';var DuetComboboxStyle0=duetComboboxCss;var DuetCombobox=function(){function t(t){var i=this;registerInstance(this,t);this.duetChange=createEvent(this,"duetChange",3);var e,n;this.listBoxId=createID("duet-combobox-list-element");this.inputId=createID("duet-combobox-input-id");this.activeDescendantId=createID("duet-combobox-active-descendant");this.isAndroidDevice=((n=(e=navigator===null||navigator===void 0?void 0:navigator.userAgent)===null||e===void 0?void 0:e.toLowerCase())===null||n===void 0?void 0:n.indexOf("android"))>-1||null;this.resizeObserver=new ResizeObserver(debounce((function(t){var e,n,r;if((t===null||t===void 0?void 0:t.length)===1){var s=(n=(e=t[0])===null||e===void 0?void 0:e.target)===null||n===void 0?void 0:n.getBoundingClientRect().width;var o=parseInt((r=getComputedStyle(i.listContainer.shadowRoot.querySelector(".duet-popup-menu-list")))===null||r===void 0?void 0:r.padding);i.listContainer.style.setProperty("--popup-width","".concat(s-2*o,"px"))}}),100));this.onInputChange=function(t){return __awaiter(i,void 0,void 0,(function(){var i;return __generator(this,(function(e){i=t.detail.value;this.inputValue=i;return[2]}))}))};this.onInputClick=function(){var t,e;if(i.openListOnClick){i.listOpen=!i.listOpen}else{i.listOpen=((t=i.inputValue)===null||t===void 0?void 0:t.length)>=i.minCharacters}if(!((e=i.getFilteredItems())===null||e===void 0?void 0:e.length)){i.listOpen=false}};this.onInputTyping=function(t){return __awaiter(i,void 0,void 0,(function(){var i,e;return __generator(this,(function(n){e=t.detail.value;if(!this.force&&!this.multiple&&this.selectedItems.size>0&&e!==this.getSelectedItemLabel()){this.selectedItems.clear()}if(!this.force&&!this.multiple&&e===""){this.value=undefined}this.listOpen=String(e).length>=this.minCharacters&&((i=this.getFilteredItems())===null||i===void 0?void 0:i.length)>0;return[2]}))}))};this.onKeyDown=function(t){var e,n,r;var s=i.returnFilteredOrNonFiltered();var o=s.filter((function(t){return!i.selectedItems.has(t.id)}));i.input.accessibleActiveDescendant=undefined;if(isEnterKey(t)){t.preventDefault();if(i.listOpen&&i.activeItem!==undefined&&s[i.activeItem]&&!i.selectedItems.has(s[i.activeItem].id)){if(i.multiple){i.addSelectedItem(s[i.activeItem].id,true)}else{i.updateSelectedItem(s[i.activeItem].id,true)}}else if(!i.multiple&&i.listOpen&&o.length===1&&o[0].name.toLowerCase()===i.input.value.toLowerCase()){i.updateSelectedItem(o[0].id,true)}i.activeItem=undefined;i.listOpen=false;return}if(isEscapeKey(t)||isTabKey(t)){if(i.listOpen){t.preventDefault()}i.updateInputText(true);i.activeItem=undefined;i.listOpen=false;return}var u=i.activeItem;if(isArrowUpKey(t)){t.preventDefault();u=i.activeItem-1}else if(isArrowDownKey(t)){if(((r=(n=(e=i.input)===null||e===void 0?void 0:e.value)===null||n===void 0?void 0:n.length)!==null&&r!==void 0?r:0)<i.minCharacters){return}t.preventDefault();u=i.listOpen?i.activeItem+1:i.activeItem;i.listOpen=true}if(isArrowDownKey(t)||isArrowUpKey(t)){if(u<0||!u){u=0}if(u>=s.length){u=s.length-1}i.input.accessibleActiveDescendant=i.activeDescendantId;i.activeItem=u;i.scrollToActive()}return};this.processedItems=null;this.inputValue="";this.listOpen=false;this.selectedItems=new Set;this.activeItem=undefined;this.accessibleLabelDefaults={en:{heading:"Select:",item:"{name}",itemFiltered:"{name}, {hiddenItems} filtered"},fi:{heading:"Valitse:",item:"{name}",itemFiltered:"{name}, {hiddenItems} suodatettu"},sv:{heading:"Välj:",item:"{name}",itemFiltered:"{name}, {hiddenItems} filtrerade"}};this.accessibleLabels=getLocaleString(this.accessibleLabelDefaults,getLanguage());this.label="";this.caption="";this.theme="";this.force=false;this.multiple=false;this.items=undefined;this.formatter=function(t){return t&&t.name?t.name:""};this.value=undefined;this.minCharacters=0;this.openListOnClick=false;this.filterType="startsWith"}t.prototype.popupMenuOpenHandler=function(){if(this.listOpen){this.listContainer.show()}else{this.listContainer.hide()}};t.prototype.activeItemHandler=function(t){this.input.accessibleActiveDescendant=this.listOpen&&(t||t===0)?this.activeDescendantId:""};t.prototype.inputValueHandler=function(){var t=this;setTimeout((function(){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:return[4,this.getSelectedItemLabel()];case 1:t=i.sent();if(this.input.value==""&&t){this.input.value="";this.value=undefined}return[2]}}))}))}),200)};t.prototype.handleDocumentClick=function(t){var i=this;var e=t.composedPath();var n=e.every((function(t){return t!==i.element}));if(n){this.updateInputText(true);this.listOpen=false}};t.prototype.formatItem=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.formatter(t)]}))}))};t.prototype.processItems=function(){var t=this;var i=[];this.processedItems=parsePossibleJSON(this.items);if(!Array.isArray(this.processedItems)){console.error("DuetCombobox: Items should be an array");return}if(this.processedItems.length!==new Set(__spreadArray([],this.processedItems,true)).size){console.warn("DuetCombobox: Duplicate item values found in the list")}this.processedItems=this.processedItems.map((function(t,e){if(typeof t==="string"){t={name:t,value:t}}if(t.id!==undefined){t.id=String(t.id)}else{t.id="".concat(JSON.stringify(t.value),"-").concat(t.name)}if(i.includes(t.id)){console.warn("DuetCombobox: Duplicate item id found in the list, postfixed with index");t.id="".concat(t.id,"-").concat(e)}i.push(t.id);return t}));var e=Array.from(this.selectedItems).filter((function(i){return!t.processedItems.find((function(t){return t.id===i}))}));if(e.length){if(this.multiple){e.forEach((function(i){return t.removeSelectedItem(i)}))}else{this.updateSelectedItem(e[0],true)}}};t.prototype.processValue=function(){var t=this;if(this.value!==""&&!this.value){this.selectedItems.clear();return}var i=Array.isArray(this.value)?this.value:[this.value];var e=this.processedItems.filter((function(t){return i.includes(t.value)})).map((function(t){return t.id}));if(e.length===this.selectedItems.size&&e.every((function(i){return t.selectedItems.has(i)}))){return}if(this.multiple){this.selectedItems.clear();this.input.clearChips();e.forEach((function(i){return t.addSelectedItem(i)}))}else{var n=this.processedItems.find((function(i){return i.value===t.value}));this.updateSelectedItem(n.id)}};t.prototype.processListOpenChange=function(){if(this.openListOnClick){this.input.icon=this.listOpen?"action-arrow-up":"action-arrow-down"}this.input.accessibleExpanded=this.listOpen?"true":"false"};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.connectedCallback=function(){if(this.items){this.processItems()}var t=getElementsFromDefaultSlot(this.element);if(t.length){this.input=t[0]}else{this.input=document.createElement("duet-input");this.input.label=this.label;this.input.caption=this.caption;this.input.expand=true;this.element.prepend(this.input)}this.input.chips=this.multiple;this.input.addEventListener("duetChange",this.onInputChange);this.input.addEventListener("duetInput",this.onInputTyping);this.input.addEventListener("click",this.onInputClick);this.input.role="combobox";this.input.accessibleExpanded=this.listOpen?"true":"false";this.input.accessibleAutocomplete="list";this.input.accessibleControls=this.listBoxId;this.input.id=this.inputId;this.element.addEventListener("keydown",this.onKeyDown);connectLanguageChangeObserver(this,{prop:"accessibleLabels",defaults:"accessibleLabelDefaults"});this.processListOpenChange()};t.prototype.disconnectedCallback=function(){this.input.removeEventListener("duetChange",this.onInputChange);this.input.removeEventListener("click",this.onInputClick);this.element.removeEventListener("keydown",this.onKeyDown);this.resizeObserver.disconnect();disconnectLanguageChangeObserver(this)};t.prototype.componentDidLoad=function(){this.resizeObserver.observe(this.input);this.processValue()};t.prototype.shouldListBeFiltered=function(){var t=this;var i;if(!this.multiple&&this.selectedItems.size&&this.input.value===this.inputValue&&((i=this.inputValue)===null||i===void 0?void 0:i.length)<this.minCharacters){var e=this.processedItems.find((function(i){return t.selectedItems.has(i.id)}));return!(this.formatter(e).toLowerCase()===this.input.value.toLowerCase())}return true};t.prototype.returnFilteredOrNonFiltered=function(){return this.processedItems?this.shouldListBeFiltered()?this.getFilteredItems():this.sortFilteredItems(this.processedItems):[]};t.prototype.emitChangeEvent=function(t){var i=this.processedItems.find((function(i){return i.id===t}));this.duetChange.emit({item:i,value:this.value,component:"duet-combobox"})};t.prototype.updateMultipleValue=function(){var t=this;this.value=this.processedItems.filter((function(i){return t.selectedItems.has(i.id)})).map((function(t){return t.value}));this.input.value="";this.updateChips();this.input.setFocus()};t.prototype.addSelectedItem=function(t,i){if(this.selectedItems.has(t)){return}this.selectedItems.add(t);this.updateMultipleValue();if(i){this.emitChangeEvent(t)}};t.prototype.removeSelectedItem=function(t,i){if(!this.selectedItems.has(t)){return}this.selectedItems.delete(t);this.updateMultipleValue();if(i){this.emitChangeEvent(t)}};t.prototype.updateSelectedItem=function(t,i){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.selectedItems.clear();this.selectedItems.add(t);this.value=this.processedItems.find((function(i){return i.id===t})).value;if(i){this.emitChangeEvent(this.value&&t)}return[4,this.updateInputText()];case 1:e.sent();return[2]}}))}))};t.prototype.updateChips=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;var e=this;return __generator(this,(function(n){switch(n.label){case 0:t=Array.from(this.selectedItems);return[4,this.input.getChips()];case 1:i=n.sent();t.forEach((function(t){return __awaiter(e,void 0,void 0,(function(){var i,e,n,r;var s=this;return __generator(this,(function(o){switch(o.label){case 0:i=this.processedItems.find((function(i){return i.id===t}));return[4,this.formatItem(i)];case 1:e=o.sent();return[4,this.input.hasChip({value:"".concat(t),text:e})];case 2:n=o.sent();if(!n){r=document.createElement("duet-chip");r.variation="input";r.role="option";r.value="".concat(t);r.textContent=e;r.addEventListener("duetRemove",(function(t){var i=t.detail.value;s.removeSelectedItem(i,true)}));this.input.addChip(r)}return[2]}}))}))}));i.forEach((function(i){if(!t.includes(i.value)){i.remove()}}));return[2]}}))}))};t.prototype.getSelectedItemLabel=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,e;var n=this;return __generator(this,(function(r){switch(r.label){case 0:t=this.processedItems.find((function(t){return n.selectedItems.has(t.id)}));if(!t)return[3,2];return[4,this.formatItem(t)];case 1:e=r.sent();return[3,3];case 2:e="";r.label=3;case 3:i=e;return[2,i]}}))}))};t.prototype.updateInputText=function(){return __awaiter(this,arguments,void 0,(function(t){var i,e,n;if(t===void 0){t=false}return __generator(this,(function(r){switch(r.label){case 0:if(t&&this.multiple){this.input.value="";return[2]}if(!(t&&this.force))return[3,3];i=this.returnFilteredOrNonFiltered();if(!this.multiple&&this.listOpen&&i.length===1&&i[0].name.toLowerCase()===this.input.value.toLowerCase()){this.updateSelectedItem(i[0].id,true)}if(!(this.selectedItems.size===0))return[3,1];this.input.value="";return[3,3];case 1:e=this.input;return[4,this.getSelectedItemLabel()];case 2:e.value=r.sent();r.label=3;case 3:if(!(!t&&this.selectedItems.size>0))return[3,6];this.input.value="";n=this.input;return[4,this.getSelectedItemLabel()];case 4:n.value=r.sent();this.input.scrollLeft=this.input.scrollWidth;return[4,this.input.setFocus()];case 5:r.sent();r.label=6;case 6:return[2]}}))}))};t.prototype.onListClick=function(t,i){t.preventDefault();t.stopPropagation();if(this.multiple){this.addSelectedItem(i.id,true)}else{this.updateSelectedItem(i.id,true)}this.activeItem=undefined;this.listOpen=false;return this.listOpen};t.prototype.scrollToActive=function(){var t=document.getElementById("".concat(this.activeDescendantId));if(t){t.scrollIntoView({behavior:"smooth",block:"center"})}};t.prototype.formatLabel=function(t,i,e,n){if(!t||n===undefined){return""}var r=e===n?this.accessibleLabels.item:this.accessibleLabels.itemFiltered;return r.replace("{name}",String(t.name)).replace("{current}",String(i+1)).replace("{total}",String(e)).replace("{hiddenItems}",String(n-e))};t.prototype.getFilteredItems=function(){var t=this;var i=this.processedItems.filter((function(i){var e,n,r,s,o;return((e=String(i.value))===null||e===void 0?void 0:e.toLowerCase()[t.filterType]((n=t.inputValue)===null||n===void 0?void 0:n.toLowerCase()))||((r=String(i.name))===null||r===void 0?void 0:r.toLowerCase()[t.filterType]((s=t.inputValue)===null||s===void 0?void 0:s.toLowerCase()))||t.formatter(i).toLowerCase()[t.filterType]((o=t.inputValue)===null||o===void 0?void 0:o.toLowerCase())||t.selectedItems.has(i.id)})).filter((function(i){var e=true;if(t.multiple&&t.selectedItems.has(i.id)){e=false}return e}));return this.sortFilteredItems(i)};t.prototype.sortFilteredItems=function(t){var i=this;if(t.length>0){t.filter((function(t){return i.selectedItems.has(t.id)})).forEach((function(i){var e=t.indexOf(i);t.splice(e,1);t.unshift(i)}))}return t};t.prototype.render=function(){var t;var i=this;var e=this.returnFilteredOrNonFiltered();return h(Host,{class:(t={"duet-combobox":true},t["duet-theme-".concat(this.theme)]=true,t)},h("slot",null),h("div",null,h("duet-popup-menu",{id:this.listBoxId,controller:this.input,ref:function(t){return i.listContainer=t},accessibleRole:"listbox",allowVerticalFlip:false},h("div",{class:"combobox-menu-container"},this.listOpen&&e.map((function(t,n){return h(DuetComboBoxSelect,{id:i.activeDescendantId,item:t,activeDescendant:n===i.activeItem,selected:i.selectedItems.has(t.id),search:i.inputValue,clickHandler:function(e){return i.onListClick(e,t)},label:i.formatLabel(t,n,e.length,i.processedItems.length),isAndroidDevice:i.isAndroidDevice})})),h("duet-spacer",{size:"x-small"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{listOpen:["popupMenuOpenHandler","processListOpenChange"],activeItem:["activeItemHandler"],inputValue:["inputValueHandler"],items:["processItems"],value:["processValue"]}},enumerable:false,configurable:true});return t}();DuetCombobox.style=DuetComboboxStyle0;export{DuetCombobox as duet_combobox};
4
+ */import{h,r as registerInstance,c as createEvent,H as Host,g as getElement}from"./index-fa810c91.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{d as debounce}from"./js-utils-9b9e0039.js";import{j as isEnterKey,f as isEscapeKey,o as isTabKey,b as isArrowUpKey,c as isArrowDownKey}from"./keyboard-utils-daf80d44.js";import{g as getLocaleString,a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-35eb1c9f.js";import{b as getElementsFromDefaultSlot}from"./slot-utils-b2101c56.js";import{r as regexEscape,p as parsePossibleJSON}from"./string-utils-192eb3c8.js";var DuetComboBoxSelect=function(t){var i=t.item,e=t.activeDescendant,n=t.selected,r=t.label,s=r===void 0?undefined:r,o=t.clickHandler,u=o===void 0?function(t){t.preventDefault()}:o,a=t.keyHandler,c=a===void 0?function(t){t.preventDefault()}:a,f=t.search,l=t.isAndroidDevice,d=t.id;var v=f.split(" ").filter((function(t){return!!t.trim()})).map((function(t){return regexEscape(t)}));var m=f!==""?new RegExp("(".concat(v.join("|"),")"),"i"):undefined;var b="text-decoration: underline";return h("duet-popup-menu-item",{id:e?d:"",active:n,"data-index":i.id,"aria-selected":e?"true":undefined,"aria-current":n?"true":undefined,role:"option","aria-label":s,tabindex:l?"-1":null,onClick:function(t){return u(t)},onKeyUp:function(t){return c(t)},accessibleRole:"option",activeDescendant:e},m?h("span",{class:"option-container","aria-hidden":"true"},h("span",{innerHTML:i.name.replace(m,'<span style="'.concat(b,'">$&</span>'))})):i.name,i.tags&&h("span",{class:"option-tags"},i.tags.join(", ")))};var duetComboboxCss=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:inline-block;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(8, 42, 77)}:host a{color:rgb(8, 42, 77);transition:none}:host.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host.duet-theme-turva a{color:rgb(23, 28, 58)}.combobox-menu-container{width:var(--popup-width);max-height:200px}';var DuetComboboxStyle0=duetComboboxCss;var DuetCombobox=function(){function t(t){var i=this;registerInstance(this,t);this.duetChange=createEvent(this,"duetChange",3);var e,n;this.listBoxId=createID("duet-combobox-list-element");this.inputId=createID("duet-combobox-input-id");this.activeDescendantId=createID("duet-combobox-active-descendant");this.isAndroidDevice=((n=(e=navigator===null||navigator===void 0?void 0:navigator.userAgent)===null||e===void 0?void 0:e.toLowerCase())===null||n===void 0?void 0:n.indexOf("android"))>-1||null;this.resizeObserver=new ResizeObserver(debounce((function(t){var e,n,r;if((t===null||t===void 0?void 0:t.length)===1){var s=(n=(e=t[0])===null||e===void 0?void 0:e.target)===null||n===void 0?void 0:n.getBoundingClientRect().width;var o=parseInt((r=getComputedStyle(i.listContainer.shadowRoot.querySelector(".duet-popup-menu-list")))===null||r===void 0?void 0:r.padding);i.listContainer.style.setProperty("--popup-width","".concat(s-2*o,"px"))}}),100));this.onInputChange=function(t){return __awaiter(i,void 0,void 0,(function(){var i;return __generator(this,(function(e){i=t.detail.value;this.inputValue=i;return[2]}))}))};this.onInputClick=function(){var t,e;if(i.openListOnClick){i.listOpen=!i.listOpen}else{i.listOpen=((t=i.inputValue)===null||t===void 0?void 0:t.length)>=i.minCharacters}if(!((e=i.getFilteredItems())===null||e===void 0?void 0:e.length)){i.listOpen=false}};this.onInputTyping=function(t){return __awaiter(i,void 0,void 0,(function(){var i,e;return __generator(this,(function(n){e=t.detail.value;if(!this.force&&!this.multiple&&this.selectedItems.size>0&&e!==this.getSelectedItemLabel()){this.selectedItems.clear()}if(!this.force&&!this.multiple&&e===""){this.value=undefined}this.listOpen=String(e).length>=this.minCharacters&&((i=this.getFilteredItems())===null||i===void 0?void 0:i.length)>0;return[2]}))}))};this.onKeyDown=function(t){var e,n,r;var s=i.returnFilteredOrNonFiltered();var o=s.filter((function(t){return!i.selectedItems.has(t.id)}));i.input.accessibleActiveDescendant=undefined;if(isEnterKey(t)){t.preventDefault();if(i.listOpen&&i.activeItem!==undefined&&s[i.activeItem]&&!i.selectedItems.has(s[i.activeItem].id)){if(i.multiple){i.addSelectedItem(s[i.activeItem].id,true)}else{i.updateSelectedItem(s[i.activeItem].id,true)}}else if(!i.multiple&&i.listOpen&&o.length===1&&o[0].name.toLowerCase()===i.input.value.toLowerCase()){i.updateSelectedItem(o[0].id,true)}i.activeItem=undefined;i.listOpen=false;return}if(isEscapeKey(t)||isTabKey(t)){if(i.listOpen){t.preventDefault()}i.updateInputText(true);i.activeItem=undefined;i.listOpen=false;return}var u=i.activeItem;if(isArrowUpKey(t)){t.preventDefault();u=i.activeItem-1}else if(isArrowDownKey(t)){if(((r=(n=(e=i.input)===null||e===void 0?void 0:e.value)===null||n===void 0?void 0:n.length)!==null&&r!==void 0?r:0)<i.minCharacters){return}t.preventDefault();u=i.listOpen?i.activeItem+1:i.activeItem;i.listOpen=true}if(isArrowDownKey(t)||isArrowUpKey(t)){if(u<0||!u){u=0}if(u>=s.length){u=s.length-1}i.input.accessibleActiveDescendant=i.activeDescendantId;i.activeItem=u;i.scrollToActive()}return};this.processedItems=null;this.inputValue="";this.listOpen=false;this.selectedItems=new Set;this.activeItem=undefined;this.accessibleLabelDefaults={en:{heading:"Select:",item:"{name}",itemFiltered:"{name}, {hiddenItems} filtered"},fi:{heading:"Valitse:",item:"{name}",itemFiltered:"{name}, {hiddenItems} suodatettu"},sv:{heading:"Välj:",item:"{name}",itemFiltered:"{name}, {hiddenItems} filtrerade"}};this.accessibleLabels=getLocaleString(this.accessibleLabelDefaults,getLanguage());this.label="";this.caption="";this.theme="";this.force=false;this.multiple=false;this.items=undefined;this.formatter=function(t){return t&&t.name?t.name:""};this.value=undefined;this.minCharacters=0;this.openListOnClick=false;this.filterType="startsWith"}t.prototype.popupMenuOpenHandler=function(){if(this.listOpen){this.listContainer.show()}else{this.listContainer.hide()}};t.prototype.activeItemHandler=function(t){this.input.accessibleActiveDescendant=this.listOpen&&(t||t===0)?this.activeDescendantId:""};t.prototype.inputValueHandler=function(){var t=this;setTimeout((function(){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:return[4,this.getSelectedItemLabel()];case 1:t=i.sent();if(this.input.value==""&&t){this.input.value="";this.value=undefined}return[2]}}))}))}),200)};t.prototype.handleDocumentClick=function(t){var i=this;var e=t.composedPath();var n=e.every((function(t){return t!==i.element}));if(n){this.updateInputText(true);this.listOpen=false}};t.prototype.formatItem=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){return[2,this.formatter(t)]}))}))};t.prototype.processItems=function(){var t=this;var i=[];this.processedItems=parsePossibleJSON(this.items);if(!Array.isArray(this.processedItems)){console.error("DuetCombobox: Items should be an array");return}if(this.processedItems.length!==new Set(__spreadArray([],this.processedItems,true)).size){console.warn("DuetCombobox: Duplicate item values found in the list")}this.processedItems=this.processedItems.map((function(t,e){if(typeof t==="string"){t={name:t,value:t}}if(t.id!==undefined){t.id=String(t.id)}else{t.id="".concat(JSON.stringify(t.value),"-").concat(t.name)}if(i.includes(t.id)){console.warn("DuetCombobox: Duplicate item id found in the list, postfixed with index");t.id="".concat(t.id,"-").concat(e)}i.push(t.id);return t}));var e=Array.from(this.selectedItems).filter((function(i){return!t.processedItems.find((function(t){return t.id===i}))}));if(e.length){if(this.multiple){e.forEach((function(i){return t.removeSelectedItem(i)}))}else{this.updateSelectedItem(e[0],true)}}};t.prototype.processValue=function(){var t=this;if(this.value!==""&&!this.value){this.selectedItems.clear();return}var i=Array.isArray(this.value)?this.value:[this.value];var e=this.processedItems.filter((function(t){return i.includes(t.value)})).map((function(t){return t.id}));if(e.length===this.selectedItems.size&&e.every((function(i){return t.selectedItems.has(i)}))){return}if(this.multiple){this.selectedItems.clear();this.input.clearChips();e.forEach((function(i){return t.addSelectedItem(i)}))}else{var n=this.processedItems.find((function(i){return i.value===t.value}));this.updateSelectedItem(n.id)}};t.prototype.processListOpenChange=function(){if(this.openListOnClick){this.input.icon=this.listOpen?"action-arrow-up":"action-arrow-down"}this.input.accessibleExpanded=this.listOpen?"true":"false"};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.connectedCallback=function(){if(this.items){this.processItems()}var t=getElementsFromDefaultSlot(this.element);if(t.length){this.input=t[0]}else{this.input=document.createElement("duet-input");this.input.label=this.label;this.input.caption=this.caption;this.input.expand=true;this.element.prepend(this.input)}this.input.chips=this.multiple;this.input.addEventListener("duetChange",this.onInputChange);this.input.addEventListener("duetInput",this.onInputTyping);this.input.addEventListener("click",this.onInputClick);this.input.role="combobox";this.input.accessibleExpanded=this.listOpen?"true":"false";this.input.accessibleAutocomplete="list";this.input.accessibleControls=this.listBoxId;this.input.id=this.inputId;this.element.addEventListener("keydown",this.onKeyDown);connectLanguageChangeObserver(this,{prop:"accessibleLabels",defaults:"accessibleLabelDefaults"});this.processListOpenChange()};t.prototype.disconnectedCallback=function(){this.input.removeEventListener("duetChange",this.onInputChange);this.input.removeEventListener("click",this.onInputClick);this.element.removeEventListener("keydown",this.onKeyDown);this.resizeObserver.disconnect();disconnectLanguageChangeObserver(this)};t.prototype.componentDidLoad=function(){this.resizeObserver.observe(this.input);this.processValue()};t.prototype.shouldListBeFiltered=function(){var t=this;var i;if(!this.multiple&&this.selectedItems.size&&this.input.value===this.inputValue&&((i=this.inputValue)===null||i===void 0?void 0:i.length)<this.minCharacters){var e=this.processedItems.find((function(i){return t.selectedItems.has(i.id)}));return!(this.formatter(e).toLowerCase()===this.input.value.toLowerCase())}return true};t.prototype.returnFilteredOrNonFiltered=function(){return this.processedItems?this.shouldListBeFiltered()?this.getFilteredItems():this.sortFilteredItems(this.processedItems):[]};t.prototype.emitChangeEvent=function(t){var i=this.processedItems.find((function(i){return i.id===t}));this.duetChange.emit({item:i,value:this.value,component:"duet-combobox"})};t.prototype.updateMultipleValue=function(){var t=this;this.value=this.processedItems.filter((function(i){return t.selectedItems.has(i.id)})).map((function(t){return t.value}));this.input.value="";this.updateChips();this.input.setFocus()};t.prototype.addSelectedItem=function(t,i){if(this.selectedItems.has(t)){return}this.selectedItems.add(t);this.updateMultipleValue();if(i){this.emitChangeEvent(t)}};t.prototype.removeSelectedItem=function(t,i){if(!this.selectedItems.has(t)){return}this.selectedItems.delete(t);this.updateMultipleValue();if(i){this.emitChangeEvent(t)}};t.prototype.updateSelectedItem=function(t,i){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.selectedItems.clear();this.selectedItems.add(t);this.value=this.processedItems.find((function(i){return i.id===t})).value;if(i){this.emitChangeEvent(this.value&&t)}return[4,this.updateInputText()];case 1:e.sent();return[2]}}))}))};t.prototype.updateChips=function(){return __awaiter(this,void 0,void 0,(function(){var t,i;var e=this;return __generator(this,(function(n){switch(n.label){case 0:t=Array.from(this.selectedItems);return[4,this.input.getChips()];case 1:i=n.sent();t.forEach((function(t){return __awaiter(e,void 0,void 0,(function(){var i,e,n,r;var s=this;return __generator(this,(function(o){switch(o.label){case 0:i=this.processedItems.find((function(i){return i.id===t}));return[4,this.formatItem(i)];case 1:e=o.sent();return[4,this.input.hasChip({value:"".concat(t),text:e})];case 2:n=o.sent();if(!n){r=document.createElement("duet-chip");r.variation="input";r.role="option";r.value="".concat(t);r.textContent=e;r.addEventListener("duetRemove",(function(t){var i=t.detail.value;s.removeSelectedItem(i,true)}));this.input.addChip(r)}return[2]}}))}))}));i.forEach((function(i){if(!t.includes(i.value)){i.remove()}}));return[2]}}))}))};t.prototype.getSelectedItemLabel=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,e;var n=this;return __generator(this,(function(r){switch(r.label){case 0:t=this.processedItems.find((function(t){return n.selectedItems.has(t.id)}));if(!t)return[3,2];return[4,this.formatItem(t)];case 1:e=r.sent();return[3,3];case 2:e="";r.label=3;case 3:i=e;return[2,i]}}))}))};t.prototype.updateInputText=function(){return __awaiter(this,arguments,void 0,(function(t){var i,e,n;if(t===void 0){t=false}return __generator(this,(function(r){switch(r.label){case 0:if(t&&this.multiple){this.input.value="";return[2]}if(!(t&&this.force))return[3,3];i=this.returnFilteredOrNonFiltered();if(!this.multiple&&this.listOpen&&i.length===1&&i[0].name.toLowerCase()===this.input.value.toLowerCase()){this.updateSelectedItem(i[0].id,true)}if(!(this.selectedItems.size===0))return[3,1];this.input.value="";return[3,3];case 1:e=this.input;return[4,this.getSelectedItemLabel()];case 2:e.value=r.sent();r.label=3;case 3:if(!(!t&&this.selectedItems.size>0))return[3,6];this.input.value="";n=this.input;return[4,this.getSelectedItemLabel()];case 4:n.value=r.sent();this.input.scrollLeft=this.input.scrollWidth;return[4,this.input.setFocus()];case 5:r.sent();r.label=6;case 6:return[2]}}))}))};t.prototype.onListClick=function(t,i){t.preventDefault();t.stopPropagation();if(this.multiple){this.addSelectedItem(i.id,true)}else{this.updateSelectedItem(i.id,true)}this.activeItem=undefined;this.listOpen=false;return this.listOpen};t.prototype.scrollToActive=function(){var t=document.getElementById("".concat(this.activeDescendantId));if(t){t.scrollIntoView({behavior:"smooth",block:"center"})}};t.prototype.formatLabel=function(t,i,e,n){if(!t||n===undefined){return""}var r=e===n?this.accessibleLabels.item:this.accessibleLabels.itemFiltered;return r.replace("{name}",String(t.name)).replace("{current}",String(i+1)).replace("{total}",String(e)).replace("{hiddenItems}",String(n-e))};t.prototype.getFilteredItems=function(){var t=this;var i=this.processedItems.filter((function(i){var e,n,r,s,o;return((e=String(i.value))===null||e===void 0?void 0:e.toLowerCase()[t.filterType]((n=t.inputValue)===null||n===void 0?void 0:n.toLowerCase()))||((r=String(i.name))===null||r===void 0?void 0:r.toLowerCase()[t.filterType]((s=t.inputValue)===null||s===void 0?void 0:s.toLowerCase()))||t.formatter(i).toLowerCase()[t.filterType]((o=t.inputValue)===null||o===void 0?void 0:o.toLowerCase())||t.selectedItems.has(i.id)})).filter((function(i){var e=true;if(t.multiple&&t.selectedItems.has(i.id)){e=false}return e}));return this.sortFilteredItems(i)};t.prototype.sortFilteredItems=function(t){var i=this;if(t.length>0){t.filter((function(t){return i.selectedItems.has(t.id)})).forEach((function(i){var e=t.indexOf(i);t.splice(e,1);t.unshift(i)}))}return t};t.prototype.render=function(){var t;var i=this;var e=this.returnFilteredOrNonFiltered();return h(Host,{class:(t={"duet-combobox":true},t["duet-theme-".concat(this.theme)]=true,t)},h("slot",null),h("div",null,h("duet-popup-menu",{id:this.listBoxId,controller:this.input,ref:function(t){return i.listContainer=t},accessibleRole:"listbox",allowVerticalFlip:false},h("div",{class:"combobox-menu-container"},this.listOpen&&e.map((function(t,n){return h(DuetComboBoxSelect,{id:i.activeDescendantId,item:t,activeDescendant:n===i.activeItem,selected:i.selectedItems.has(t.id),search:i.inputValue,clickHandler:function(e){return i.onListClick(e,t)},label:i.formatLabel(t,n,e.length,i.processedItems.length),isAndroidDevice:i.isAndroidDevice})})),h("duet-spacer",{size:"x-small"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{listOpen:["popupMenuOpenHandler","processListOpenChange"],activeItem:["activeItemHandler"],inputValue:["inputValueHandler"],items:["processItems"],value:["processValue"]}},enumerable:false,configurable:true});return t}();DuetCombobox.style=DuetComboboxStyle0;export{DuetCombobox as duet_combobox};
@@ -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-5a27eaf5.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-2c1dd412.js";import"./string-utils-192eb3c8.js";var duetContactCardCss='*,*::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-bottom:12px !important;display:block}:host(.duet-m-0){margin:0 !important}::slotted(*){padding-top:1.5rem}@media (min-width: 48em){::slotted(*){grid-column:2/span 2;padding-top:0}}.duet-contact-card{display:grid;grid-template-columns: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:600;line-height:1.5;color:rgb(8, 42, 77)}.duet-contact-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}@media (min-width: 48em){.duet-contact-card{grid-template-columns:min-content minmax(0, 1fr) auto;gap:20px}}.duet-contact-card .image{width:4rem;height:4rem;margin-bottom:8px;border-radius:4px}@media (min-width: 48em){.duet-contact-card .image{width:6rem;height:6rem;padding-bottom:0}}.duet-contact-card .description{padding-bottom:8px}.duet-contact-card .email,.duet-contact-card .phone{display:grid;grid-template-columns:min-content auto;gap:8px;align-items:center;justify-content:flex-start;padding-bottom:8px;overflow-wrap:break-word}';var DuetContactCardStyle0=duetContactCardCss;var DuetContactCard=function(){function e(e){registerInstance(this,e);this.phoneLabel={en:"Phone",fi:"Puhelin",sv:"Telefon"};this.language=getLanguage();this.theme="";this.margin="auto";this.image=undefined;this.name=undefined;this.description=undefined;this.email=undefined;this.phone=undefined;this.buttonText=undefined;this.buttonIcon="form-date";this.buttonUrl=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){var e=this.theme==="turva";var a=e?"turva":"default";return h(Host,{key:"39a98bc5c9e4f4524ebcef1f5bceadc19a6d07e3",class:{"duet-m-0":this.margin==="none"}},h("div",{key:"c9fb952d66118cbdf423d24d365ade9fc58e1a58",class:{"duet-contact-card":true,"duet-theme-turva":this.theme==="turva"},role:"group","aria-label":this.name},this.image?h("img",{class:"image",src:this.image,alt:this.name}):h("div",null),h("div",{key:"3d916ef543989f6c535bebf7058828ea1a92e46f"},this.name&&h("duet-heading",{key:"34349d6e331e031b70d60277d71a2698e08e0d14",class:"name",level:"h3",margin:"none",theme:a},this.name),this.description&&h("duet-paragraph",{key:"2492313d9e481579d1f9a03524d967dc4813dbb5",class:"description",margin:"none",theme:a},this.description),this.email&&h("div",{key:"641aafcd47888ea410ede3aa54ea34084c2a0ea5",class:"email"},h("duet-icon",{key:"bbe6aabb9b6073e2ae6ea1287188a705183fd18a",name:"navigation-message",size:"x-small",color:"primary-dark",margin:"none",theme:a}),h("duet-link",{key:"159ecf5a5ea43c73b3606d6cd86a9bc96d3ff20b",url:"mailto:".concat(this.email),accessibleLabel:"Email: ".concat(this.email),theme:a},this.email)),this.phone&&h("div",{key:"87ea068fe072eb0ec5e93c87fc22ee5d1156f216",class:"phone"},h("duet-icon",{key:"d42e0c5a2b0b76fd4a28adbee6d2f1dae076d354",name:"form-tel",size:"x-small",color:"primary-dark",margin:"none",theme:a}),h("duet-link",{key:"e20b2e84426c1105c8170c0159899443ea4b0c54",url:"tel:".concat(this.phone),accessibleLabel:"".concat(this.phoneLabel[this.language],": ").concat(this.phone),theme:a},this.phone))),this.buttonUrl&&this.buttonText&&h("div",{key:"940d0a605a472a688396e791894bb1a1796e4978",class:"call-to-action"},h("duet-button",{key:"b0aa2e8cc48dd5f38cabf260c0742535d778c9b2",variation:"default",icon:this.buttonIcon,fixed:true,margin:"none",url:this.buttonUrl,theme:a},this.buttonText)),h("div",{key:"e347fcd870d12eb413e5b3871303f69fff0dc3fe"}),h("slot",{key:"9dca553d670b1fc7ea7a570afc55a5bdabd7c0a7"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetContactCard.style=DuetContactCardStyle0;export{DuetContactCard as duet_contact_card};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-fa810c91.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-35eb1c9f.js";import"./string-utils-192eb3c8.js";var duetContactCardCss='*,*::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-bottom:12px !important;display:block}:host(.duet-m-0){margin:0 !important}::slotted(*){padding-top:1.5rem}@media (min-width: 48em){::slotted(*){grid-column:2/span 2;padding-top:0}}.duet-contact-card{display:grid;grid-template-columns: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:600;line-height:1.5;color:rgb(8, 42, 77)}.duet-contact-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}@media (min-width: 48em){.duet-contact-card{grid-template-columns:min-content minmax(0, 1fr) auto;gap:20px}}.duet-contact-card .image{width:4rem;height:4rem;margin-bottom:8px;border-radius:4px}@media (min-width: 48em){.duet-contact-card .image{width:6rem;height:6rem;padding-bottom:0}}.duet-contact-card .description{padding-bottom:8px}.duet-contact-card .email,.duet-contact-card .phone{display:grid;grid-template-columns:min-content auto;gap:8px;align-items:center;justify-content:flex-start;padding-bottom:8px;overflow-wrap:break-word}';var DuetContactCardStyle0=duetContactCardCss;var DuetContactCard=function(){function e(e){registerInstance(this,e);this.phoneLabel={en:"Phone",fi:"Puhelin",sv:"Telefon"};this.language=getLanguage();this.theme="";this.margin="auto";this.image=undefined;this.name=undefined;this.description=undefined;this.email=undefined;this.phone=undefined;this.buttonText=undefined;this.buttonIcon="form-date";this.buttonUrl=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){var e=this.theme==="turva";var a=e?"turva":"default";return h(Host,{key:"39a98bc5c9e4f4524ebcef1f5bceadc19a6d07e3",class:{"duet-m-0":this.margin==="none"}},h("div",{key:"c9fb952d66118cbdf423d24d365ade9fc58e1a58",class:{"duet-contact-card":true,"duet-theme-turva":this.theme==="turva"},role:"group","aria-label":this.name},this.image?h("img",{class:"image",src:this.image,alt:this.name}):h("div",null),h("div",{key:"3d916ef543989f6c535bebf7058828ea1a92e46f"},this.name&&h("duet-heading",{key:"34349d6e331e031b70d60277d71a2698e08e0d14",class:"name",level:"h3",margin:"none",theme:a},this.name),this.description&&h("duet-paragraph",{key:"2492313d9e481579d1f9a03524d967dc4813dbb5",class:"description",margin:"none",theme:a},this.description),this.email&&h("div",{key:"641aafcd47888ea410ede3aa54ea34084c2a0ea5",class:"email"},h("duet-icon",{key:"bbe6aabb9b6073e2ae6ea1287188a705183fd18a",name:"navigation-message",size:"x-small",color:"primary-dark",margin:"none",theme:a}),h("duet-link",{key:"159ecf5a5ea43c73b3606d6cd86a9bc96d3ff20b",url:"mailto:".concat(this.email),accessibleLabel:"Email: ".concat(this.email),theme:a},this.email)),this.phone&&h("div",{key:"87ea068fe072eb0ec5e93c87fc22ee5d1156f216",class:"phone"},h("duet-icon",{key:"d42e0c5a2b0b76fd4a28adbee6d2f1dae076d354",name:"form-tel",size:"x-small",color:"primary-dark",margin:"none",theme:a}),h("duet-link",{key:"e20b2e84426c1105c8170c0159899443ea4b0c54",url:"tel:".concat(this.phone),accessibleLabel:"".concat(this.phoneLabel[this.language],": ").concat(this.phone),theme:a},this.phone))),this.buttonUrl&&this.buttonText&&h("div",{key:"940d0a605a472a688396e791894bb1a1796e4978",class:"call-to-action"},h("duet-button",{key:"b0aa2e8cc48dd5f38cabf260c0742535d778c9b2",variation:"default",icon:this.buttonIcon,fixed:true,margin:"none",url:this.buttonUrl,theme:a},this.buttonText)),h("div",{key:"e347fcd870d12eb413e5b3871303f69fff0dc3fe"}),h("slot",{key:"9dca553d670b1fc7ea7a570afc55a5bdabd7c0a7"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetContactCard.style=DuetContactCardStyle0;export{DuetContactCard as duet_contact_card};
@@ -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-5a27eaf5.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-daf80d44.js";var duetCookieConsentCss='*,*::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:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:not(.descendant-focused):focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing:not(.descendant-focused).duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-cookie-consent{padding:20px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;color:rgb(255, 255, 255) !important;background-color:rgba(4, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(4, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.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";background-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:rgb(255, 255, 255) !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var DuetCookieConsentStyle0=duetCookieConsentCss;var DuetCookieConsent=function(){function e(e){var t=this;registerInstance(this,e);this.duetCookieConsent=createEvent(this,"duetCookieConsent",7);this.handleClick=function(e){e.preventDefault();t.duetCookieConsent.emit({component:"duet-cookie-consent"})};this.accessibleLabel="Hyväksyn evästeiden käytön";this.theme=""}e.prototype.handleFocusIn=function(e){var t=e.composedPath();var o=t[0];if(o!==this.element){this.element.classList.add("descendant-focused")}};e.prototype.handleFocusOut=function(){this.element.classList.remove("descendant-focused")};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){subscribeTabbingChange(this)};e.prototype.disconnectedCallback=function(){unsubscribeTabbingChange(this)};e.prototype.render=function(){return h(Host,{key:"91948660b9fab6f87923b2200960a07b864dd83f",tabindex:"0",class:{"duet-theme-turva":this.theme==="turva"}},h("div",{key:"0bb6143d36c29e2242d3e15c6857d38cb12a6808",class:{"duet-cookie-consent":true,"duet-theme-turva":this.theme==="turva"}},h("div",{key:"444dfba5d496df6e6da6315372331b79b8e2a9ab",class:"duet-cookie-consent-content"},h("div",{key:"caacc62f4d2c9d6232efd5b0741076717aed8496",class:"expand"},h("slot",{key:"c2978a0efb145de1d841f90238425de3ca7a499b"})),h("duet-spacer",{key:"6429ce669d4895c4dfdd1f1e5e15d4b87633bed2",size:"large",direction:"horizontal"}),h("div",{key:"85e0b040c8248bcac1f20cba69a33737212640cc"},h("duet-button",{key:"189912399af177fd3bdd70cc061e1f3a3dd93355",variation:"negative",size:"small",onClick:this.handleClick,margin:"none","aria-label":this.accessibleLabel,theme:this.theme},"OK")))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetCookieConsent.style=DuetCookieConsentStyle0;export{DuetCookieConsent as duet_cookie_consent};
4
+ import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-fa810c91.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-daf80d44.js";var duetCookieConsentCss='*,*::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:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:not(.descendant-focused):focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing:not(.descendant-focused).duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-cookie-consent{padding:20px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;color:rgb(255, 255, 255) !important;background-color:rgba(4, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(4, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.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";background-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:rgb(255, 255, 255) !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var DuetCookieConsentStyle0=duetCookieConsentCss;var DuetCookieConsent=function(){function e(e){var t=this;registerInstance(this,e);this.duetCookieConsent=createEvent(this,"duetCookieConsent",7);this.handleClick=function(e){e.preventDefault();t.duetCookieConsent.emit({component:"duet-cookie-consent"})};this.accessibleLabel="Hyväksyn evästeiden käytön";this.theme=""}e.prototype.handleFocusIn=function(e){var t=e.composedPath();var o=t[0];if(o!==this.element){this.element.classList.add("descendant-focused")}};e.prototype.handleFocusOut=function(){this.element.classList.remove("descendant-focused")};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){subscribeTabbingChange(this)};e.prototype.disconnectedCallback=function(){unsubscribeTabbingChange(this)};e.prototype.render=function(){return h(Host,{key:"91948660b9fab6f87923b2200960a07b864dd83f",tabindex:"0",class:{"duet-theme-turva":this.theme==="turva"}},h("div",{key:"0bb6143d36c29e2242d3e15c6857d38cb12a6808",class:{"duet-cookie-consent":true,"duet-theme-turva":this.theme==="turva"}},h("div",{key:"444dfba5d496df6e6da6315372331b79b8e2a9ab",class:"duet-cookie-consent-content"},h("div",{key:"caacc62f4d2c9d6232efd5b0741076717aed8496",class:"expand"},h("slot",{key:"c2978a0efb145de1d841f90238425de3ca7a499b"})),h("duet-spacer",{key:"6429ce669d4895c4dfdd1f1e5e15d4b87633bed2",size:"large",direction:"horizontal"}),h("div",{key:"85e0b040c8248bcac1f20cba69a33737212640cc"},h("duet-button",{key:"189912399af177fd3bdd70cc061e1f3a3dd93355",variation:"negative",size:"small",onClick:this.handleClick,margin:"none","aria-label":this.accessibleLabel,theme:this.theme},"OK")))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetCookieConsent.style=DuetCookieConsentStyle0;export{DuetCookieConsent as duet_cookie_consent};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,a,i){function n(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,r){function o(t){try{d(i.next(t))}catch(t){r(t)}}function s(t){try{d(i["throw"](t))}catch(t){r(t)}}function d(t){t.done?a(t.value):n(t.value).then(o,s)}d((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return d([t,e])}}function d(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(a=0)),a)try{if(i=1,n&&(r=s[0]&2?n["return"]:s[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;if(n=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=s;break;case 4:a.label++;return{value:s[1],done:false};case 5:a.label++;n=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(s[0]===6&&a.label<r[1]){a.label=r[1];r=s;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(s);break}if(r[2])a.ops.pop();a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t];n=0}finally{i=r=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{h,r as registerInstance,c as createEvent,H as Host,g as getElement}from"./index-5a27eaf5.js";import{D as DuetInternalLabel}from"./label-00d35a2b.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{F as FocusGuard}from"./focus-utils-b48493c9.js";import{g as getLocaleString,a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-2c1dd412.js";import{c as checkNamedSlotElement,p as proxyInputToSlot}from"./slot-utils-8fc9fbbf.js";import"./string-utils-192eb3c8.js";var formatOptionsShort={day:"numeric",month:"long",weekday:"long"};var formatOptionsLong={day:"numeric",month:"long",year:"numeric"};var i18n={fi:{buttonLabel:"Valitse päivämäärä",prevMonthLabel:"Edellinen kuukausi",nextMonthLabel:"Seuraava kuukausi",monthSelectLabel:"Kuukausi",yearSelectLabel:"Vuosi",closeLabel:"Sulje ikkuna",selected:"Valittu päivämäärä on",keyboardInstruction:"Voit navigoida päivämääriä nuolinäppäimillä",dayLabels:["Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai","Sunnuntai"],monthLabels:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthLabelsShort:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],formatterShort:new Intl.DateTimeFormat("fi-FI",formatOptionsShort),formatterLong:new Intl.DateTimeFormat("fi-FI",formatOptionsLong)},en:{buttonLabel:"Choose date",prevMonthLabel:"Previous month",nextMonthLabel:"Next month",monthSelectLabel:"Month",yearSelectLabel:"Year",closeLabel:"Close window",selected:"Selected date is",keyboardInstruction:"You can use arrow keys to navigate dates",dayLabels:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthLabels:["January","February","March","April","May","June","July","August","September","October","November","December"],monthLabelsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],formatterShort:new Intl.DateTimeFormat("en-GB",formatOptionsShort),formatterLong:new Intl.DateTimeFormat("en-GB",formatOptionsLong)},sv:{buttonLabel:"Välj datum",prevMonthLabel:"Föregående månad",nextMonthLabel:"Nästa månad",monthSelectLabel:"Månad",yearSelectLabel:"År",closeLabel:"Stäng fönstret",selected:"Valt datum är",keyboardInstruction:"Använd piltangenterna för att navigera i kalender",dayLabels:["Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],monthLabels:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthLabelsShort:["Jan","Feb","Mars","April","Maj","Juni","Juli","Aug","Sep","Okt","Nov","Dec"],formatterShort:new Intl.DateTimeFormat("sv-SE",formatOptionsShort),formatterLong:new Intl.DateTimeFormat("sv-SE",formatOptionsLong)}};var formDate={title:"form-date",tags:"form date calendar date picker",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M2.25 24A2.252 2.252 0 0 1 0 21.75V5.25A2.252 2.252 0 0 1 2.25 3H6V.75a.75.75 0 0 1 1.5 0V3h9V.75a.75.75 0 0 1 1.5 0V3h3.75A2.252 2.252 0 0 1 24 5.25v16.5A2.252 2.252 0 0 1 21.75 24zm-.75-2.25c0 .414.336.75.75.75h19.5a.75.75 0 0 0 .75-.75V10.5h-21zM22.5 9V5.25a.75.75 0 0 0-.75-.75H18V6a.75.75 0 0 1-1.5 0V4.5h-9V6A.75.75 0 0 1 6 6V4.5H2.25a.75.75 0 0 0-.75.75V9z"/><circle cx="5.625" cy="13.875" r="1.125"/><circle cx="5.625" cy="19.125" r="1.125"/><circle cx="12" cy="13.875" r="1.125"/><circle cx="12" cy="19.125" r="1.125"/><circle cx="18.375" cy="13.875" r="1.125"/><path d="M18.375 20.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.171-1.122l.027.003a1.118 1.118 0 0 1 1.052 1.12c0 .619-.505 1.124-1.125 1.124z"/></svg>'};var DatePickerInput=function(t){var e=t.onClick,a=t.placeholder,i=t.inputLabel,n=t.valueAsDate,r=t.formattedValue,o=t.language,s=t.identifier,d=t.theme,l=t.disabled,u=t.error,c=t.role,b=t.required,f=t.tooltip,p=t.tooltipDirection,m=t.labelHidden,g=t.buttonRef,v=t.inputRef,y=t.onInput,k=t.onBlur,x=t.onFocus,w=t.hasFocus,D=t.accessibleActiveDescendant,S=t.accessibleControls,I=t.accessibleOwns,O=t.accessibleDescribedBy,M=t.accessibleLiveError,L=t.echoPlaceholder,E=t.caption;var A=i18n[o],T=A.buttonLabel,F=A.selected,j=A.formatterLong;var U={"duet-theme-turva":d==="turva","duet-date-input":true,"duet-date-input-has-focus":w};return h("div",{class:U},h("duet-input",{label:i,value:r,placeholder:a,id:s,disabled:l,theme:d,error:u,role:c,required:b,tooltip:f,tooltipDirection:p,margin:"none",labelHidden:m,accessibleAutocomplete:"none",onDuetChange:function(t){return t.stopImmediatePropagation()},onDuetInput:y,onDuetFocus:x,onDuetBlur:k,autoComplete:"off",disallowPattern:"[^0-9\\.\\-\\/]",expand:true,ref:v,accessibleActiveDescendant:D,accessibleControls:S,accessibleOwns:I,accessibleDescribedBy:O,accessibleLiveError:M,echoPlaceholder:L,caption:E,variation:"button"},h("slot",{name:"tooltip"}),h("button",{class:{"duet-date-button":true,"duet-no-label":m,"input-error":!!u},onClick:e,disabled:l,ref:g,type:"button",slot:"button"},h("duet-icon",{icon:formDate.svg,margin:"none",size:"small",color:"currentColor"}),h("duet-visually-hidden",null,T,n&&h("span",null,", ",F," ",j.format(n))))))};var DATE_FORMAT=/^(\d{1,2})[\.\-\/](\d{1,2})[\.\-\/](\d{4})$/;var ISO_DATE_FORMAT=/^(\d{4})-(\d{2})-(\d{2})$/;var DATE_OUTPUT_FORMAT="dd.mm.yyyy";var DATE_ISO_OUTPUT_FORMAT="YYYY-MM-DD";function createDate(t,e,a){var i=parseInt(a,10);var n=parseInt(e,10);var r=parseInt(t,10);var o=Number.isInteger(r)&&Number.isInteger(n)&&Number.isInteger(i)&&n>0&&n<=12&&i>0&&i<=31&&r>0;if(o){return new Date(r,n-1,i)}}function parseDate(t){if(!t){return}var e=t.match(DATE_FORMAT);if(e){return createDate(e[3],e[2],e[1])}}function parseISODate(t){if(!t){return}var e=t.match(ISO_DATE_FORMAT);if(e){return createDate(e[1],e[2],e[3])}}function formatDate(t,e){if(!t){return""}var a=t.getDate().toString(10);var i=(t.getMonth()+1).toString(10);var n=t.getFullYear().toString(10);if(t.getDate()<10){a="0".concat(a)}if(t.getMonth()<9){i="0".concat(i)}return e.replace(/MM/i,i).replace(/YYYY/i,n).replace(/DD/i,a)}function printDate(t){return formatDate(t,DATE_OUTPUT_FORMAT)}function printISODate(t){return formatDate(t,DATE_ISO_OUTPUT_FORMAT)}function isEqual(t,e){if(t==null||e==null){return false}return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function addDays(t,e){var a=new Date(t);a.setDate(a.getDate()+e);return a}function startOfWeek(t,e){if(e===void 0){e=1}var a=new Date(t);var i=a.getDay();var n=(i<e?7:0)+i-e;a.setDate(a.getDate()-n);return a}function endOfWeek(t,e){if(e===void 0){e=1}var a=new Date(t);var i=a.getDay();var n=(i<e?-7:0)+6-(i-e);a.setDate(a.getDate()+n);return a}function startOfMonth(t){return new Date(t.getFullYear(),t.getMonth(),1)}function endOfMonth(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function setMonth(t,e){var a=new Date(t);a.setMonth(e);return a}function setYear(t,e){var a=new Date(t);a.setFullYear(e);return a}function inRange(t,e,a){return clamp(t,e,a)===t}function clamp(t,e,a){var i=t.getTime();if(e&&e instanceof Date&&i<e.getTime()){return e}if(a&&a instanceof Date&&i>a.getTime()){return a}return t}function getDaysInRange(t,e){var a=[];var i=t;while(!isEqual(i,e)){a.push(i);i=addDays(i,1)}a.push(i);return a}function getViewOfMonth(t,e){if(e===void 0){e=1}var a=startOfWeek(startOfMonth(t),e);var i=endOfWeek(endOfMonth(t),e);return getDaysInRange(a,i)}var DatePickerDay=function(t){var e=t.focusedDay,a=t.today,i=t.day,n=t.language,r=t.onDaySelect,o=t.onKeyboardNavigation,s=t.ref,d=t.inRange,l=t.isSelected;var u=isEqual(i,a);var c=isEqual(i,e);var b=i.getMonth()!==e.getMonth();var f=!d;var p=i18n[n].formatterShort;function m(t){r(t,i)}return h("td",{"data-day":printISODate(i),class:"duet-date-table-cell","aria-label":p.format(i),role:"button",tabIndex:c?0:-1,onClick:m,onKeyDown:o,"aria-disabled":f||b,"aria-pressed":l?"true":"false",ref:s},h("span",{class:{"duet-date-table-button":true,outside:f,disabled:b,today:u}},i.getDate()))};function range(t,e){var a=[];for(var i=t;i<=e;i++){a.push(i)}return a}function chunk(t,e){var a=[];for(var i=0;i<t.length;i+=e){a.push(t.slice(i,i+e))}return a}function parseShortcut(t){var e;var a=t.trim().split("+");var i=a.pop();return[((e=a[0])===null||e===void 0?void 0:e.toLowerCase())==="shift",i]}function createShortcuts(t){var e=Object.keys(t).map((function(e){return[parseShortcut(e),t[e]]}));return function t(a){if(!(a instanceof KeyboardEvent)){return}var i=e.find((function(t){var e=t[0],i=e[0],n=e[1];return(n.toUpperCase()===a.key.toUpperCase()||n===a.code)&&i===a.shiftKey}));if(i){i[1](a);a.preventDefault()}}}var DatePickerMonth=function(t){var e=t.selectedDate,a=t.focusedDate,i=t.labelledById,n=t.theme,r=t.language,o=t.min,s=t.max,d=t.onDateSelect,l=t.onKeyboardNavigation,u=t.focusedDayRef,c=t.onFocusEnter,b=t.onFocusExit;var f=i18n[r].dayLabels;var p=new Date;var m=getViewOfMonth(a);function g(t){var e=t.currentTarget;var a=t.relatedTarget;if(a&&!e.contains(a)){b(t)}}return h("div",{role:"application"},h("table",{role:"presentation",class:{"duet-date-table":true,"duet-theme-turva":n==="turva"},"aria-labelledby":i,onFocusin:c,onFocusout:g},h("thead",null,h("tr",null,f.map((function(t){return h("th",{scope:"col"},h("span",{"aria-hidden":"true"},t.substr(0,2)))})))),h("tbody",null,chunk(m,7).map((function(t){return h("tr",{class:"duet-date-table-row"},t.map((function(t){return h(DatePickerDay,{day:t,today:p,language:r,focusedDay:a,inRange:inRange(t,o,s),isSelected:isEqual(t,e),onDaySelect:d,onKeyboardNavigation:l,ref:function(e){if(e&&isEqual(t,a)){u(e)}}})})))})))))};var duetDatePickerCss='.duet-internal-label{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !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 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.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)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:top}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-date{position:relative;width:100%}.duet-date button,.duet-date-dialog button{max-width:initial !important;min-height:initial !important;padding:0 !important;margin:0 !important;transition:initial}.duet-date-button{-webkit-user-select:none;user-select:none;position:relative;z-index:200;box-sizing:content-box;display:flex;flex-shrink:0;align-items:center;justify-content:center;width:47px;height:48px;color:rgb(8, 42, 77);cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-left-color:rgb(181, 198, 208);border-radius:0 4px 4px 0;transition:box-shadow 150ms ease, border 150ms ease !important}.duet-theme-turva .duet-date-button{color:rgb(23, 28, 58);border-color:rgb(199, 202, 207)}.duet-date-button::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-date-button:hover:not(:disabled){box-shadow:0 0 0 1px #909599 !important}.duet-theme-turva .duet-date-button:hover:not(:disabled){box-shadow:0 0 0 1px #747475 !important}.duet-date-button:disabled{pointer-events:none;cursor:not-allowed;background:rgb(245, 248, 250) !important;border:0 !important}.duet-theme-turva .duet-date-button:disabled{background:rgb(245, 247, 250) !important}.duet-date-button:disabled::before{display:none}.duet-date-button:disabled duet-icon{opacity:0.4}.duet-date-button duet-icon{transform:translateY(-1px)}.duet-date-button:active duet-icon{transform:translateY(0)}.duet-date-input-has-focus .duet-date-button,.duet-date-button:focus{height:46px;color:rgb(0, 119, 179);border-color:transparent;outline:0;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva.duet-date-input-has-focus .duet-date-button,.duet-theme-turva .duet-date-button:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px #171c3a !important}.input-error{border-top-color:rgb(214, 28, 82);border-right-color:rgb(214, 28, 82);border-bottom-color:rgb(214, 28, 82)}.duet-date-dialog{position:absolute;top:100%;left:0;z-index:900;display:flex;width:100%;visibility:hidden;opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}@media (min-width: 36em){.duet-date-dialog.left{right:0;left:auto;width:auto}}@media (max-width: 35.9375em){.duet-date-dialog{position:fixed;top:0;right:0;bottom:0;transition:opacity 400ms ease, visibility 400ms ease;transform:translateZ(0);transform-origin:bottom center}}.duet-date-dialog.active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}@media (min-width: 36em){.duet-date-dialog.error{top:calc(100% - 28px);margin-top:4px}}.duet-date-dialog-wrapper{position:relative;z-index:600;width:100%;min-width:290px;max-width:310px;padding:16px 16px 20px;margin-top:8px;margin-left:auto;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);transform:none}.duet-theme-turva .duet-date-dialog-wrapper{border-color:rgb(222, 224, 228)}@media (max-width: 35.9375em){.duet-date-dialog-wrapper{position:absolute;bottom:0;left:0;z-index:900;max-width:none;min-height:25em;padding:0 8% 20px;margin:0;visibility:hidden;border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;opacity:0;transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;transform:translateZ(0) translateY(100%)}.active .duet-date-dialog-wrapper{visibility:visible;opacity:1;transition-property:transform, opacity;transform:translateZ(0) translateY(0)}}.duet-date-table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);text-align:center;border-spacing:0;border-collapse:collapse}.duet-date-table.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-date-table th{padding-bottom:8px;font-size:0.75rem;font-weight:600;line-height:1.25;text-decoration:none;text-transform:uppercase;letter-spacing:1px}.duet-date-table .duet-date-table-cell{text-align:center}.duet-date-table .duet-date-table-cell:focus{outline:none}.duet-date-table-button{position:relative;z-index:100;display:inline-block !important;width:36.9230769231px !important;height:36.9230769231px !important;min-height:initial !important;padding:0 !important;margin:0 !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:2.6 !important;color:rgb(8, 42, 77) !important;text-align:center;vertical-align:initial !important;cursor:pointer;background:transparent !important;border-radius:50% !important;transition:initial !important}.duet-theme-turva .duet-date-table-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;color:rgb(23, 28, 58) !important}.duet-date-table-button:hover{background:rgb(228, 241, 247) !important}.duet-theme-turva .duet-date-table-button:hover{background:rgb(255, 227, 228) !important}.duet-date-table-button.today{z-index:200;color:rgb(0, 75, 129) !important;background:rgb(240, 247, 250) !important;box-shadow:0 0 0 1px #0077b3 !important}.duet-theme-turva .duet-date-table-button.today{color:rgb(126, 2, 35) !important;background:rgb(255, 241, 241) !important;box-shadow:0 0 0 1px #171c3a !important}[aria-pressed=true] .duet-date-table-button,:focus .duet-date-table-button{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;outline:0}.duet-theme-turva [aria-pressed=true] .duet-date-table-button,.duet-theme-turva :focus .duet-date-table-button{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important}.duet-date-table-button:active{z-index:200;color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;box-shadow:0 0 5px 0 #0077b3 !important}.duet-theme-turva .duet-date-table-button:active{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important;box-shadow:0 0 5px 0 #171c3a !important}:focus .duet-date-table-button{z-index:200;box-shadow:0 0 5px 0 #0077b3 !important}.duet-theme-turva :focus .duet-date-table-button{box-shadow:0 0 5px 0 #171c3a !important}.duet-date-table-button.disabled{color:rgb(127, 150, 165) !important;cursor:default;background:transparent !important;box-shadow:none !important}.duet-theme-turva .duet-date-table-button.disabled{color:rgb(143, 147, 158) !important;background:transparent !important;box-shadow:none !important}.duet-date-table-button.outside{color:rgb(127, 150, 165) !important;pointer-events:none;cursor:default;background:rgb(245, 248, 250) !important;box-shadow:none;opacity:0.75}.duet-theme-turva .duet-date-table-button.outside{color:rgb(143, 147, 158);background:rgb(245, 247, 250);box-shadow:none}.duet-date-dialog-header{margin-bottom:16px !important;display:flex;align-items:center;justify-content:space-between;width:100%}.duet-date-dialog-buttons{white-space:nowrap}.duet-date-dialog-buttons ::part(button){border:0}.duet-date-dialog-select{position:relative;display:inline-flex;margin-top:4px}.duet-date-dialog-select .duet-date-dialog-select-label{position:relative;z-index:1;display:flex;align-items:center;width:100%;padding:0 8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);pointer-events:none;border-radius:4px}.duet-theme-turva .duet-date-dialog-select .duet-date-dialog-select-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-date-dialog-select span{margin-right:4px}.duet-date-dialog-select select{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;font-size:1rem;cursor:pointer;opacity:0}.duet-date-dialog-select select:focus+.duet-date-dialog-select-label{box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .duet-date-dialog-select select:focus+.duet-date-dialog-select-label{box-shadow:0 0 0 2px #171c3a !important}.duet-date-dialog-mobile-header{position:relative;display:flex;align-items:center;justify-content:space-between;width:120%;padding:12px 20px;margin-bottom:20px;margin-left:-10%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid rgb(181, 198, 208)}@media (min-width: 36em){.duet-date-dialog-mobile-header{position:absolute;top:-8px;right:-8px;width:auto;padding:0;margin:0;overflow:visible;border:0}}.duet-theme-turva .duet-date-dialog-mobile-header{border-color:rgb(199, 202, 207)}.duet-date-dialog-mobile-header duet-label{display:inline-block;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date-dialog-mobile-header duet-label{display:none}}.duet-date-picker-close{display:flex;align-items:center;justify-content:center;width:24px;height:24px !important;padding:0 !important;color:rgb(8, 42, 77) !important;cursor:pointer;background:rgb(245, 248, 250) !important;border-radius:50%;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-date-picker-close{opacity:0}}.duet-theme-turva .duet-date-picker-close{background:rgb(245, 247, 250) !important}.duet-date-picker-close:hover{background:rgb(245, 248, 250) !important}.duet-theme-turva .duet-date-picker-close:hover{background:rgb(245, 247, 250) !important}.duet-date-picker-close:focus{outline:none;box-shadow:0 0 0 2px #0077b3 !important}@media (min-width: 36em){.duet-date-picker-close:focus{opacity:1}}.duet-theme-turva .duet-date-picker-close:focus{box-shadow:0 0 0 2px #171c3a !important}';var DuetDatePickerStyle0=duetDatePickerCss;var DuetDatePicker=function(){function t(t){var e=this;registerInstance(this,t);this.duetChange=createEvent(this,"duetChange",7);this.duetBlur=createEvent(this,"duetBlur",7);this.duetFocus=createEvent(this,"duetFocus",7);this.proxyId=createID("DuetDatePicker");this.monthSelectId=createID("DuetDatePicker");this.yearSelectId=createID("DuetDatePicker");this.dialogLabelId=createID("DuetDatePicker");this.initialTouchX=null;this.initialTouchY=null;this.focusTarget=null;this.dateErrorMessages={badInput:{en:"Wrong date format",fi:"Väärä päivämäärämuoto",sv:"Fel datumformat"},rangeUnderflow:{en:"Date too early",fi:"Liian aikainen päivämäärä",sv:"Datum för tidigt"},rangeOverflow:{en:"Date too late",fi:"Liian myöhäinen päivämäärä",sv:"Datum för sent"},valueMissing:{en:"Date required",fi:"Päivämäärä vaaditaan",sv:"Datum krävs"}};this.enableActiveFocus=function(){e.focusTarget="day-button"};this.disableActiveFocus=function(){e.focusTarget=null};this.toggleOpen=function(t){t.preventDefault();e.open?e.hide(false):e.show()};this.handleBlur=function(t){t.stopPropagation();e.inputHasFocus=false;if(!e._validity.valid){e.value=null;var a=Object.entries(e._validity).find((function(t){return!!t[1]}))[0];e.internalValidityError=getLocaleString(e.dateErrorMessages[a])}e.duetBlur.emit({component:"duet-date-picker"})};this.handleFocus=function(t){t.stopPropagation();e.inputHasFocus=true;e.duetFocus.emit({component:"duet-date-picker"})};this.handleTouchStart=function(t){var a=t.changedTouches[0];e.initialTouchX=a.pageX;e.initialTouchY=a.pageY};this.handleTouchMove=function(t){t.preventDefault()};this.handleTouchEnd=function(t){var a=t.changedTouches[0];var i=a.pageX-e.initialTouchX;var n=a.pageY-e.initialTouchY;var r=70;var o=Math.abs(i)>=r&&Math.abs(n)<=r;var s=Math.abs(n)>=r&&Math.abs(i)<=r&&n>0;if(o){e.addMonths(i<0?1:-1)}else if(s){e.hide();t.preventDefault()}e.initialTouchY=null;e.initialTouchX=null};this.handleNextMonthClick=function(t){t.preventDefault();e.addMonths(1)};this.handlePreviousMonthClick=function(t){t.preventDefault();e.addMonths(-1)};this.handleEscKey=createShortcuts({Escape:function(){return e.hide()},Esc:function(){return e.hide()}});this.handleKeyboardNavigation=createShortcuts({ArrowRight:function(){return e.addDays(1)},Right:function(){return e.addDays(1)},ArrowLeft:function(){return e.addDays(-1)},Left:function(){return e.addDays(-1)},ArrowDown:function(){return e.addDays(7)},Down:function(){return e.addDays(7)},ArrowUp:function(){return e.addDays(-7)},Up:function(){return e.addDays(-7)},Home:function(){return e.startOfWeek()},End:function(){return e.endOfWeek()},PageUp:function(){return e.addMonths(-1)},PageDown:function(){return e.addMonths(1)},"Shift+PageUp":function(){return e.addYears(-1)},"Shift+PageDown":function(){return e.addYears(1)},Space:function(t){return e.handleKeyboardDaySelect(t)},Enter:function(t){return e.handleKeyboardDaySelect(t)}});this.handleKeyboardDaySelect=function(t){var a=t.target;var i=parseISODate(a.dataset.day);e.handleDaySelect(t,i)};this.handleDaySelect=function(t,a){var i=parseISODate(e.min);var n=parseISODate(e.max);e.determineValidity(a);if(inRange(a,i,n)){e.setValue(a);e.hide()}};this.handleMonthSelect=function(t){e.setMonth(parseInt(t.target.value,10))};this.handleYearSelect=function(t){e.setYear(parseInt(t.target.value,10))};this.handleInputChange=function(t){e.inputValue=t.detail.value;var a=parseDate(e.inputValue);e.determineValidity(a);if(a||e.inputValue===""){e.setValue(a)}};this.open=false;this.focusedDay=new Date;this.inputValue="";this.inputHasFocus=false;this.internalValidityError="";this.theme="";this.expand=false;this.name="";this.identifier="";this.label="";this.caption=undefined;this.margin="auto";this.language=getLanguage();this.placeholderDefaults={fi:"pp.kk.vvvv",en:"dd.mm.yyyy",sv:"dd.mm.åååå"};this.placeholder=getLocaleString(this.placeholderDefaults,this.language);this.echoPlaceholder=false;this.disabled=false;this.error="";this.labelHidden=false;this.role=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.required=false;this.direction="right";this.tooltip="";this.tooltipDirection="auto";this.value="";this.min="";this.max="";this.incrementYears=10;this.accessibleLiveError="polite"}Object.defineProperty(t.prototype,"validity",{get:function(){return this._validity},enumerable:false,configurable:true});t.prototype.updateValidity=function(t,e,a){if(a==="value"&&t===null){return}this.determineValidity(parseISODate(this.value));if(this._validity.valid){this.internalValidityError=""}};t.prototype.updateInternalValue=function(){if(this.value===null){return}var t=parseISODate(this.value);var e=parseDate(this.inputValue);if(!t){this.inputValue=""}else if(!isEqual(t,e)){this.inputValue=printDate(t)}};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.determineValidity(parseISODate(this.value));this.updateInternalValue();checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.componentDidUpdate=function(){switch(this.focusTarget){case"toggle-button":this.datePickerButton.focus();this.focusTarget=null;break;case"day-button":this.focusedDayNode.focus();break;case"month-select":this.monthSelectNode.focus();this.focusTarget=null;break}};t.prototype.componentDidRender=function(){proxyInputToSlot(this.element,this.proxyId,this.name,this.value,this.required)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"placeholder",defaults:"placeholderDefaults"})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.datePickerInput.setFocus(t);return[2]}))}))};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=true;this.focusTarget="month-select";this.setFocusedDay(parseISODate(this.value)||new Date);return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=true}return __generator(this,(function(e){this.open=false;if(t){this.focusTarget="toggle-button"}return[2]}))}))};t.prototype.addDays=function(t){this.setFocusedDay(addDays(this.focusedDay,t))};t.prototype.addMonths=function(t){this.setMonth(this.focusedDay.getMonth()+t)};t.prototype.addYears=function(t){this.setYear(this.focusedDay.getFullYear()+t)};t.prototype.startOfWeek=function(){this.setFocusedDay(startOfWeek(this.focusedDay))};t.prototype.endOfWeek=function(){this.setFocusedDay(endOfWeek(this.focusedDay))};t.prototype.setMonth=function(t){var e=setMonth(startOfMonth(this.focusedDay),t);var a=endOfMonth(e);var i=setMonth(this.focusedDay,t);this.setFocusedDay(clamp(i,e,a))};t.prototype.setYear=function(t){var e=setYear(startOfMonth(this.focusedDay),t);var a=endOfMonth(e);var i=setYear(this.focusedDay,t);this.setFocusedDay(clamp(i,e,a))};t.prototype.setFocusedDay=function(t){this.focusedDay=clamp(t,parseISODate(this.min),parseISODate(this.max))};t.prototype.determineValidity=function(t){var e,a;var i=(a=(e=this.datePickerInput)===null||e===void 0?void 0:e.value)!==null&&a!==void 0?a:"";var n=i!==""&&t==null;var r=this.required&&t==null;var o=t?!inRange(t,null,parseISODate(this.max)):false;var s=t?!inRange(t,parseISODate(this.min)):false;this._validity={patternMismatch:false,customError:false,stepMismatch:false,tooLong:false,tooShort:false,typeMismatch:false,valueMissing:r,badInput:n,rangeUnderflow:s,rangeOverflow:o,valid:!(r||n||s||o)}};t.prototype.setValue=function(t){var e=printISODate(t);if(e===this.value){return}this.value=e;this.duetChange.emit({component:"duet-date-picker",value:this.value,valueAsDate:t})};t.prototype.handleDocumentClick=function(t){var e=this;if(!this.open){return}var a=t.composedPath().every((function(t){return t!==e.dialogWrapperNode&&t!==e.datePickerButton}));if(a){this.hide(false)}};t.prototype.render=function(){var t=this;var e=parseISODate(this.value);var a=(e||this.focusedDay).getFullYear();var i=this.focusedDay.getMonth();var n=this.focusedDay.getFullYear();var r=i18n[this.language];var o=parseISODate(this.min);var s=parseISODate(this.max);var d=o!=null&&o.getMonth()===i&&o.getFullYear()===n;var l=s!=null&&s.getMonth()===i&&s.getFullYear()===n;var u=a-this.incrementYears;var c=a+this.incrementYears;if(o){u=Math.max(u,o.getFullYear())}if(s){c=Math.min(c,s.getFullYear())}return h(Host,{key:"b6eb7023664d69420af7bdcc9b9d410982375346",class:{"duet-expand":this.expand,"duet-m-0":this.margin==="none"}},h("div",{key:"000e37d5dc46a2e8d2c5ab5a4780ea59aa6ed464",class:"duet-date"},h(DatePickerInput,{key:"a795ccdba4df4bddb94705bba15746eeda04ed4f",hasFocus:this.inputHasFocus,value:this.value,valueAsDate:e,formattedValue:this.inputValue,language:this.language,onInput:this.handleInputChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onClick:this.toggleOpen,name:this.name,disabled:this.disabled,error:this.error||this.internalValidityError||null,role:this.role,required:this.required,theme:this.theme,tooltip:this.tooltip,tooltipDirection:this.tooltipDirection,labelHidden:this.labelHidden,placeholder:this.placeholder,inputLabel:this.label,identifier:this.identifier,buttonRef:function(e){return t.datePickerButton=e},inputRef:function(e){return t.datePickerInput=e},accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy,accessibleLiveError:this.accessibleLiveError,echoPlaceholder:this.echoPlaceholder,caption:this.caption})),h("div",{key:"e83795070df263a6c4aeefb2f53caba20628bdf4",class:{"duet-theme-turva":this.theme==="turva","duet-date-dialog":true,left:this.direction==="left",error:!!this.error,active:this.open},role:"dialog","aria-modal":"true","aria-hidden":this.open?"false":"true","aria-labelledby":this.dialogLabelId,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},h("duet-overlay",{key:"6d725137254f48897b66ee22de8b155bdd1b5f66",visible:this.open,"display-device":"x-small"}),h(FocusGuard,{key:"ca41ba1a3f56fa250f6a70c318bfcef6f457a51b",moveFocusTo:this.focusedDayNode}),h("div",{key:"dae95bbfd7a1225829c488f5d7190015c75edce2",class:"duet-date-dialog-wrapper",onKeyDown:this.handleEscKey,ref:function(e){return t.dialogWrapperNode=e}},h("duet-visually-hidden",{key:"843d37a548ac8bbfc1b22565734562a3aacb9a78","aria-live":"polite"},r.keyboardInstruction),h("div",{key:"0122d3ec3999a339282c52e5b433a364e008697e",class:"duet-date-dialog-mobile-header"},h(DuetInternalLabel,{key:"f12366ba123a38ac9ce9bab84343531cb3e2b814",margin:"none"},this.label),h("button",{key:"c84b369fb284cadedbee1b0fc1761c81b010af1e",class:"duet-date-picker-close",ref:function(e){return t.closeButtonNode=e},onClick:function(){return t.hide()},type:"button"},h("duet-icon",{key:"39fa89e90167ba1af7f911be0e3ceda38aaa9641",name:"navigation-close-small",margin:"none",color:"currentColor",size:"xx-small"}),h("duet-visually-hidden",{key:"9d33b6103af64e7d894992f54981931676e0151c"},r.closeLabel))),h("div",{key:"1269835ebe9ff4b854088e6a5bf22fca79b03e16",class:"duet-date-dialog-header"},h("div",{key:"39f46ed09f80c25530b0f8ef0fce68e6abbbbe88",class:"duet-date-dialog-dropdowns"},h("duet-visually-hidden",{key:"e40675ed1793756467a5b0ad0f143de3ff2a1e3e"},h("h2",{key:"d550800a84cc85bfd7b6f6c1658f5f4ec69913ce",id:this.dialogLabelId,"aria-live":"polite","aria-atomic":"true"},r.monthLabels[i]," ",this.focusedDay.getFullYear())),h("duet-visually-hidden",{key:"65517cf98d77215c7a98f050ab9b6bb2caca4dce"},h("label",{key:"b6252d9a3a0e7caad84964e4075fe3e9733e392e",htmlFor:this.monthSelectId},r.monthSelectLabel)),h("div",{key:"bb09e3d3994bc9c7089723c00e743c176ee926d8",class:"duet-date-dialog-select"},h("select",{key:"1f3480d735c452a138c63f6b5de1ca37d91eaaef",id:this.monthSelectId,class:"duet-date-month-select",ref:function(e){return t.monthSelectNode=e},onChange:this.handleMonthSelect},r.monthLabels.map((function(t,e){return h("option",{key:t,value:e,selected:e===i,disabled:!inRange(new Date(n,e,1),o?startOfMonth(o):null,s?endOfMonth(s):null)},t)}))),h("div",{key:"92172064bc12ac77ab0d718507c8e7b2ddecd71f",class:"duet-date-dialog-select-label","aria-hidden":"true"},h("span",{key:"9d6d5e3488e6e94b339ccba7579529b6315e1b02"},r.monthLabelsShort[i]),h("duet-icon",{key:"dafedd887fe57a186da4bf344514518d88d1233e",name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"}))),h("duet-visually-hidden",{key:"7b0cc5e3adcdd83109ef3248ff6f8511bb90c34a"},h("label",{key:"14678c1f8035838fbdee98903a9ec0f469fea8bd",htmlFor:this.yearSelectId},r.yearSelectLabel)),h("div",{key:"f69a4b2569e509c3da1c06d36cd4607a779adcdc",class:"duet-date-dialog-select"},h("select",{key:"1bb3587d15bc53e198e3ad6ba09856bf6c3c5ca5",id:this.yearSelectId,class:"duet-date-year-select",onChange:this.handleYearSelect},range(u,c).map((function(t){return h("option",{key:t,selected:t===n},t)}))),h("div",{key:"e47f2ae66f07f858fb020b1e458e888f1bc4772f",class:"duet-date-dialog-select-label","aria-hidden":"true"},h("span",{key:"1f8b5df03fc2df12e991094e72b16b904a9f91ef"},this.focusedDay.getFullYear()),h("duet-icon",{key:"375698ec68186100de9914602f75c44d4a007ed0",name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"})))),h("div",{key:"330f331da1d9a28496c3ac25b902a085ae17a102",class:"duet-date-dialog-buttons"},h("duet-action-button",{key:"9b089681d3b58dd0cdbbc5a2f4f09e5f85ba1b3f",accessibleLabel:i18n[this.language].prevMonthLabel,actionName:i18n[this.language].prevMonthLabel,class:"duet-date-dialog-prev",onClick:this.handlePreviousMonthClick,disabled:d,"icon-name":"action-arrow-left-small"},r.prevMonthLabel),h("duet-action-button",{key:"25e3a263e6a550a026f54039f90b64716bf0405b",accessibleLabel:i18n[this.language].nextMonthLabel,actionName:i18n[this.language].nextMonthLabel,class:"duet-date-dialog-next",onClick:this.handleNextMonthClick,disabled:l,"icon-name":"action-arrow-right-small"},r.nextMonthLabel))),h(DatePickerMonth,{key:"8e79a5ae68e17ed6c35a91ef397c4e2d8dd4b223",selectedDate:e,focusedDate:this.focusedDay,onDateSelect:this.handleDaySelect,onKeyboardNavigation:this.handleKeyboardNavigation,labelledById:this.dialogLabelId,language:this.language,theme:this.theme,min:o,max:s,focusedDayRef:function(e){return t.focusedDayNode=e},onFocusEnter:this.enableActiveFocus,onFocusExit:this.disableActiveFocus})),h(FocusGuard,{key:"51b5470d35cd19e8b3af9f7694a564d8ae0bec2f",moveFocusTo:this.closeButtonNode})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{min:["updateValidity"],max:["updateValidity"],value:["updateValidity","updateInternalValue"],required:["updateValidity"]}},enumerable:false,configurable:true});return t}();DuetDatePicker.style=DuetDatePickerStyle0;export{DuetDatePicker as duet_date_picker};
4
+ */import{h,r as registerInstance,c as createEvent,H as Host,g as getElement}from"./index-fa810c91.js";import{D as DuetInternalLabel}from"./label-b3694b48.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{F as FocusGuard}from"./focus-utils-fc101536.js";import{g as getLocaleString,a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-35eb1c9f.js";import{c as checkNamedSlotElement,p as proxyInputToSlot}from"./slot-utils-b2101c56.js";import"./string-utils-192eb3c8.js";var formatOptionsShort={day:"numeric",month:"long",weekday:"long"};var formatOptionsLong={day:"numeric",month:"long",year:"numeric"};var i18n={fi:{buttonLabel:"Valitse päivämäärä",prevMonthLabel:"Edellinen kuukausi",nextMonthLabel:"Seuraava kuukausi",monthSelectLabel:"Kuukausi",yearSelectLabel:"Vuosi",closeLabel:"Sulje ikkuna",selected:"Valittu päivämäärä on",keyboardInstruction:"Voit navigoida päivämääriä nuolinäppäimillä",dayLabels:["Maanantai","Tiistai","Keskiviikko","Torstai","Perjantai","Lauantai","Sunnuntai"],monthLabels:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthLabelsShort:["Tammi","Helmi","Maalis","Huhti","Touko","Kesä","Heinä","Elo","Syys","Loka","Marras","Joulu"],formatterShort:new Intl.DateTimeFormat("fi-FI",formatOptionsShort),formatterLong:new Intl.DateTimeFormat("fi-FI",formatOptionsLong)},en:{buttonLabel:"Choose date",prevMonthLabel:"Previous month",nextMonthLabel:"Next month",monthSelectLabel:"Month",yearSelectLabel:"Year",closeLabel:"Close window",selected:"Selected date is",keyboardInstruction:"You can use arrow keys to navigate dates",dayLabels:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthLabels:["January","February","March","April","May","June","July","August","September","October","November","December"],monthLabelsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],formatterShort:new Intl.DateTimeFormat("en-GB",formatOptionsShort),formatterLong:new Intl.DateTimeFormat("en-GB",formatOptionsLong)},sv:{buttonLabel:"Välj datum",prevMonthLabel:"Föregående månad",nextMonthLabel:"Nästa månad",monthSelectLabel:"Månad",yearSelectLabel:"År",closeLabel:"Stäng fönstret",selected:"Valt datum är",keyboardInstruction:"Använd piltangenterna för att navigera i kalender",dayLabels:["Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag","Söndag"],monthLabels:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthLabelsShort:["Jan","Feb","Mars","April","Maj","Juni","Juli","Aug","Sep","Okt","Nov","Dec"],formatterShort:new Intl.DateTimeFormat("sv-SE",formatOptionsShort),formatterLong:new Intl.DateTimeFormat("sv-SE",formatOptionsLong)}};var formDate={title:"form-date",tags:"form date calendar date picker",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M2.25 24A2.252 2.252 0 0 1 0 21.75V5.25A2.252 2.252 0 0 1 2.25 3H6V.75a.75.75 0 0 1 1.5 0V3h9V.75a.75.75 0 0 1 1.5 0V3h3.75A2.252 2.252 0 0 1 24 5.25v16.5A2.252 2.252 0 0 1 21.75 24zm-.75-2.25c0 .414.336.75.75.75h19.5a.75.75 0 0 0 .75-.75V10.5h-21zM22.5 9V5.25a.75.75 0 0 0-.75-.75H18V6a.75.75 0 0 1-1.5 0V4.5h-9V6A.75.75 0 0 1 6 6V4.5H2.25a.75.75 0 0 0-.75.75V9z"/><circle cx="5.625" cy="13.875" r="1.125"/><circle cx="5.625" cy="19.125" r="1.125"/><circle cx="12" cy="13.875" r="1.125"/><circle cx="12" cy="19.125" r="1.125"/><circle cx="18.375" cy="13.875" r="1.125"/><path d="M18.375 20.25c-.62 0-1.125-.505-1.125-1.125a1.127 1.127 0 0 1 1.171-1.122l.027.003a1.118 1.118 0 0 1 1.052 1.12c0 .619-.505 1.124-1.125 1.124z"/></svg>'};var DatePickerInput=function(t){var e=t.onClick,a=t.placeholder,i=t.inputLabel,n=t.valueAsDate,r=t.formattedValue,o=t.language,s=t.identifier,d=t.theme,l=t.disabled,u=t.error,c=t.role,b=t.required,f=t.tooltip,p=t.tooltipDirection,m=t.labelHidden,g=t.buttonRef,v=t.inputRef,y=t.onInput,k=t.onBlur,x=t.onFocus,w=t.hasFocus,D=t.accessibleActiveDescendant,S=t.accessibleControls,I=t.accessibleOwns,O=t.accessibleDescribedBy,M=t.accessibleLiveError,L=t.echoPlaceholder,E=t.caption;var A=i18n[o],T=A.buttonLabel,F=A.selected,j=A.formatterLong;var U={"duet-theme-turva":d==="turva","duet-date-input":true,"duet-date-input-has-focus":w};return h("div",{class:U},h("duet-input",{label:i,value:r,placeholder:a,id:s,disabled:l,theme:d,error:u,role:c,required:b,tooltip:f,tooltipDirection:p,margin:"none",labelHidden:m,accessibleAutocomplete:"none",onDuetChange:function(t){return t.stopImmediatePropagation()},onDuetInput:y,onDuetFocus:x,onDuetBlur:k,autoComplete:"off",disallowPattern:"[^0-9\\.\\-\\/]",expand:true,ref:v,accessibleActiveDescendant:D,accessibleControls:S,accessibleOwns:I,accessibleDescribedBy:O,accessibleLiveError:M,echoPlaceholder:L,caption:E,variation:"button"},h("slot",{name:"tooltip"}),h("button",{class:{"duet-date-button":true,"duet-no-label":m,"input-error":!!u},onClick:e,disabled:l,ref:g,type:"button",slot:"button"},h("duet-icon",{icon:formDate.svg,margin:"none",size:"small",color:"currentColor"}),h("duet-visually-hidden",null,T,n&&h("span",null,", ",F," ",j.format(n))))))};var DATE_FORMAT=/^(\d{1,2})[\.\-\/](\d{1,2})[\.\-\/](\d{4})$/;var ISO_DATE_FORMAT=/^(\d{4})-(\d{2})-(\d{2})$/;var DATE_OUTPUT_FORMAT="dd.mm.yyyy";var DATE_ISO_OUTPUT_FORMAT="YYYY-MM-DD";function createDate(t,e,a){var i=parseInt(a,10);var n=parseInt(e,10);var r=parseInt(t,10);var o=Number.isInteger(r)&&Number.isInteger(n)&&Number.isInteger(i)&&n>0&&n<=12&&i>0&&i<=31&&r>0;if(o){return new Date(r,n-1,i)}}function parseDate(t){if(!t){return}var e=t.match(DATE_FORMAT);if(e){return createDate(e[3],e[2],e[1])}}function parseISODate(t){if(!t){return}var e=t.match(ISO_DATE_FORMAT);if(e){return createDate(e[1],e[2],e[3])}}function formatDate(t,e){if(!t){return""}var a=t.getDate().toString(10);var i=(t.getMonth()+1).toString(10);var n=t.getFullYear().toString(10);if(t.getDate()<10){a="0".concat(a)}if(t.getMonth()<9){i="0".concat(i)}return e.replace(/MM/i,i).replace(/YYYY/i,n).replace(/DD/i,a)}function printDate(t){return formatDate(t,DATE_OUTPUT_FORMAT)}function printISODate(t){return formatDate(t,DATE_ISO_OUTPUT_FORMAT)}function isEqual(t,e){if(t==null||e==null){return false}return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function addDays(t,e){var a=new Date(t);a.setDate(a.getDate()+e);return a}function startOfWeek(t,e){if(e===void 0){e=1}var a=new Date(t);var i=a.getDay();var n=(i<e?7:0)+i-e;a.setDate(a.getDate()-n);return a}function endOfWeek(t,e){if(e===void 0){e=1}var a=new Date(t);var i=a.getDay();var n=(i<e?-7:0)+6-(i-e);a.setDate(a.getDate()+n);return a}function startOfMonth(t){return new Date(t.getFullYear(),t.getMonth(),1)}function endOfMonth(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function setMonth(t,e){var a=new Date(t);a.setMonth(e);return a}function setYear(t,e){var a=new Date(t);a.setFullYear(e);return a}function inRange(t,e,a){return clamp(t,e,a)===t}function clamp(t,e,a){var i=t.getTime();if(e&&e instanceof Date&&i<e.getTime()){return e}if(a&&a instanceof Date&&i>a.getTime()){return a}return t}function getDaysInRange(t,e){var a=[];var i=t;while(!isEqual(i,e)){a.push(i);i=addDays(i,1)}a.push(i);return a}function getViewOfMonth(t,e){if(e===void 0){e=1}var a=startOfWeek(startOfMonth(t),e);var i=endOfWeek(endOfMonth(t),e);return getDaysInRange(a,i)}var DatePickerDay=function(t){var e=t.focusedDay,a=t.today,i=t.day,n=t.language,r=t.onDaySelect,o=t.onKeyboardNavigation,s=t.ref,d=t.inRange,l=t.isSelected;var u=isEqual(i,a);var c=isEqual(i,e);var b=i.getMonth()!==e.getMonth();var f=!d;var p=i18n[n].formatterShort;function m(t){r(t,i)}return h("td",{"data-day":printISODate(i),class:"duet-date-table-cell","aria-label":p.format(i),role:"button",tabIndex:c?0:-1,onClick:m,onKeyDown:o,"aria-disabled":f||b,"aria-pressed":l?"true":"false",ref:s},h("span",{class:{"duet-date-table-button":true,outside:f,disabled:b,today:u}},i.getDate()))};function range(t,e){var a=[];for(var i=t;i<=e;i++){a.push(i)}return a}function chunk(t,e){var a=[];for(var i=0;i<t.length;i+=e){a.push(t.slice(i,i+e))}return a}function parseShortcut(t){var e;var a=t.trim().split("+");var i=a.pop();return[((e=a[0])===null||e===void 0?void 0:e.toLowerCase())==="shift",i]}function createShortcuts(t){var e=Object.keys(t).map((function(e){return[parseShortcut(e),t[e]]}));return function t(a){if(!(a instanceof KeyboardEvent)){return}var i=e.find((function(t){var e=t[0],i=e[0],n=e[1];return(n.toUpperCase()===a.key.toUpperCase()||n===a.code)&&i===a.shiftKey}));if(i){i[1](a);a.preventDefault()}}}var DatePickerMonth=function(t){var e=t.selectedDate,a=t.focusedDate,i=t.labelledById,n=t.theme,r=t.language,o=t.min,s=t.max,d=t.onDateSelect,l=t.onKeyboardNavigation,u=t.focusedDayRef,c=t.onFocusEnter,b=t.onFocusExit;var f=i18n[r].dayLabels;var p=new Date;var m=getViewOfMonth(a);function g(t){var e=t.currentTarget;var a=t.relatedTarget;if(a&&!e.contains(a)){b(t)}}return h("div",{role:"application"},h("table",{role:"presentation",class:{"duet-date-table":true,"duet-theme-turva":n==="turva"},"aria-labelledby":i,onFocusin:c,onFocusout:g},h("thead",null,h("tr",null,f.map((function(t){return h("th",{scope:"col"},h("span",{"aria-hidden":"true"},t.substr(0,2)))})))),h("tbody",null,chunk(m,7).map((function(t){return h("tr",{class:"duet-date-table-row"},t.map((function(t){return h(DatePickerDay,{day:t,today:p,language:r,focusedDay:a,inRange:inRange(t,o,s),isSelected:isEqual(t,e),onDaySelect:d,onKeyboardNavigation:l,ref:function(e){if(e&&isEqual(t,a)){u(e)}}})})))})))))};var duetDatePickerCss='.duet-internal-label{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !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 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.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)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{margin-right:16px !important}:host(:last-child),:host(:last-of-type){margin-right:0 !important}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:top}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-date{position:relative;width:100%}.duet-date button,.duet-date-dialog button{max-width:initial !important;min-height:initial !important;padding:0 !important;margin:0 !important;transition:initial}.duet-date-button{-webkit-user-select:none;user-select:none;position:relative;z-index:200;box-sizing:content-box;display:flex;flex-shrink:0;align-items:center;justify-content:center;width:47px;height:48px;color:rgb(8, 42, 77);cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-left-color:rgb(181, 198, 208);border-radius:0 4px 4px 0;transition:box-shadow 150ms ease, border 150ms ease !important}.duet-theme-turva .duet-date-button{color:rgb(23, 28, 58);border-color:rgb(199, 202, 207)}.duet-date-button::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-date-button:hover:not(:disabled){box-shadow:0 0 0 1px #909599 !important}.duet-theme-turva .duet-date-button:hover:not(:disabled){box-shadow:0 0 0 1px #747475 !important}.duet-date-button:disabled{pointer-events:none;cursor:not-allowed;background:rgb(245, 248, 250) !important;border:0 !important}.duet-theme-turva .duet-date-button:disabled{background:rgb(245, 247, 250) !important}.duet-date-button:disabled::before{display:none}.duet-date-button:disabled duet-icon{opacity:0.4}.duet-date-button duet-icon{transform:translateY(-1px)}.duet-date-button:active duet-icon{transform:translateY(0)}.duet-date-input-has-focus .duet-date-button,.duet-date-button:focus{height:46px;color:rgb(0, 119, 179);border-color:transparent;outline:0;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva.duet-date-input-has-focus .duet-date-button,.duet-theme-turva .duet-date-button:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px #171c3a !important}.input-error{border-top-color:rgb(214, 28, 82);border-right-color:rgb(214, 28, 82);border-bottom-color:rgb(214, 28, 82)}.duet-date-dialog{position:absolute;top:100%;left:0;z-index:900;display:flex;width:100%;visibility:hidden;opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}@media (min-width: 36em){.duet-date-dialog.left{right:0;left:auto;width:auto}}@media (max-width: 35.9375em){.duet-date-dialog{position:fixed;top:0;right:0;bottom:0;transition:opacity 400ms ease, visibility 400ms ease;transform:translateZ(0);transform-origin:bottom center}}.duet-date-dialog.active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}@media (min-width: 36em){.duet-date-dialog.error{top:calc(100% - 28px);margin-top:4px}}.duet-date-dialog-wrapper{position:relative;z-index:600;width:100%;min-width:290px;max-width:310px;padding:16px 16px 20px;margin-top:8px;margin-left:auto;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);transform:none}.duet-theme-turva .duet-date-dialog-wrapper{border-color:rgb(222, 224, 228)}@media (max-width: 35.9375em){.duet-date-dialog-wrapper{position:absolute;bottom:0;left:0;z-index:900;max-width:none;min-height:25em;padding:0 8% 20px;margin:0;visibility:hidden;border:0;border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px;opacity:0;transition:transform 400ms ease, opacity 400ms ease, visibility 400ms ease;transform:translateZ(0) translateY(100%)}.active .duet-date-dialog-wrapper{visibility:visible;opacity:1;transition-property:transform, opacity;transform:translateZ(0) translateY(0)}}.duet-date-table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);text-align:center;border-spacing:0;border-collapse:collapse}.duet-date-table.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-date-table th{padding-bottom:8px;font-size:0.75rem;font-weight:600;line-height:1.25;text-decoration:none;text-transform:uppercase;letter-spacing:1px}.duet-date-table .duet-date-table-cell{text-align:center}.duet-date-table .duet-date-table-cell:focus{outline:none}.duet-date-table-button{position:relative;z-index:100;display:inline-block !important;width:36.9230769231px !important;height:36.9230769231px !important;min-height:initial !important;padding:0 !important;margin:0 !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:2.6 !important;color:rgb(8, 42, 77) !important;text-align:center;vertical-align:initial !important;cursor:pointer;background:transparent !important;border-radius:50% !important;transition:initial !important}.duet-theme-turva .duet-date-table-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;color:rgb(23, 28, 58) !important}.duet-date-table-button:hover{background:rgb(228, 241, 247) !important}.duet-theme-turva .duet-date-table-button:hover{background:rgb(255, 227, 228) !important}.duet-date-table-button.today{z-index:200;color:rgb(0, 75, 129) !important;background:rgb(240, 247, 250) !important;box-shadow:0 0 0 1px #0077b3 !important}.duet-theme-turva .duet-date-table-button.today{color:rgb(126, 2, 35) !important;background:rgb(255, 241, 241) !important;box-shadow:0 0 0 1px #171c3a !important}[aria-pressed=true] .duet-date-table-button,:focus .duet-date-table-button{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;outline:0}.duet-theme-turva [aria-pressed=true] .duet-date-table-button,.duet-theme-turva :focus .duet-date-table-button{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important}.duet-date-table-button:active{z-index:200;color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179) !important;box-shadow:0 0 5px 0 #0077b3 !important}.duet-theme-turva .duet-date-table-button:active{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48) !important;box-shadow:0 0 5px 0 #171c3a !important}:focus .duet-date-table-button{z-index:200;box-shadow:0 0 5px 0 #0077b3 !important}.duet-theme-turva :focus .duet-date-table-button{box-shadow:0 0 5px 0 #171c3a !important}.duet-date-table-button.disabled{color:rgb(127, 150, 165) !important;cursor:default;background:transparent !important;box-shadow:none !important}.duet-theme-turva .duet-date-table-button.disabled{color:rgb(143, 147, 158) !important;background:transparent !important;box-shadow:none !important}.duet-date-table-button.outside{color:rgb(127, 150, 165) !important;pointer-events:none;cursor:default;background:rgb(245, 248, 250) !important;box-shadow:none;opacity:0.75}.duet-theme-turva .duet-date-table-button.outside{color:rgb(143, 147, 158);background:rgb(245, 247, 250);box-shadow:none}.duet-date-dialog-header{margin-bottom:16px !important;display:flex;align-items:center;justify-content:space-between;width:100%}.duet-date-dialog-buttons{white-space:nowrap}.duet-date-dialog-buttons ::part(button){border:0}.duet-date-dialog-select{position:relative;display:inline-flex;margin-top:4px}.duet-date-dialog-select .duet-date-dialog-select-label{position:relative;z-index:1;display:flex;align-items:center;width:100%;padding:0 8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1.25rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);pointer-events:none;border-radius:4px}.duet-theme-turva .duet-date-dialog-select .duet-date-dialog-select-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-date-dialog-select span{margin-right:4px}.duet-date-dialog-select select{position:absolute;top:0;left:0;z-index:2;width:100%;height:100%;font-size:1rem;cursor:pointer;opacity:0}.duet-date-dialog-select select:focus+.duet-date-dialog-select-label{box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva .duet-date-dialog-select select:focus+.duet-date-dialog-select-label{box-shadow:0 0 0 2px #171c3a !important}.duet-date-dialog-mobile-header{position:relative;display:flex;align-items:center;justify-content:space-between;width:120%;padding:12px 20px;margin-bottom:20px;margin-left:-10%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid rgb(181, 198, 208)}@media (min-width: 36em){.duet-date-dialog-mobile-header{position:absolute;top:-8px;right:-8px;width:auto;padding:0;margin:0;overflow:visible;border:0}}.duet-theme-turva .duet-date-dialog-mobile-header{border-color:rgb(199, 202, 207)}.duet-date-dialog-mobile-header duet-label{display:inline-block;max-width:84%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 36em){.duet-date-dialog-mobile-header duet-label{display:none}}.duet-date-picker-close{display:flex;align-items:center;justify-content:center;width:24px;height:24px !important;padding:0 !important;color:rgb(8, 42, 77) !important;cursor:pointer;background:rgb(245, 248, 250) !important;border-radius:50%;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-date-picker-close{opacity:0}}.duet-theme-turva .duet-date-picker-close{background:rgb(245, 247, 250) !important}.duet-date-picker-close:hover{background:rgb(245, 248, 250) !important}.duet-theme-turva .duet-date-picker-close:hover{background:rgb(245, 247, 250) !important}.duet-date-picker-close:focus{outline:none;box-shadow:0 0 0 2px #0077b3 !important}@media (min-width: 36em){.duet-date-picker-close:focus{opacity:1}}.duet-theme-turva .duet-date-picker-close:focus{box-shadow:0 0 0 2px #171c3a !important}';var DuetDatePickerStyle0=duetDatePickerCss;var DuetDatePicker=function(){function t(t){var e=this;registerInstance(this,t);this.duetChange=createEvent(this,"duetChange",7);this.duetBlur=createEvent(this,"duetBlur",7);this.duetFocus=createEvent(this,"duetFocus",7);this.proxyId=createID("DuetDatePicker");this.monthSelectId=createID("DuetDatePicker");this.yearSelectId=createID("DuetDatePicker");this.dialogLabelId=createID("DuetDatePicker");this.initialTouchX=null;this.initialTouchY=null;this.focusTarget=null;this.dateErrorMessages={badInput:{en:"Wrong date format",fi:"Väärä päivämäärämuoto",sv:"Fel datumformat"},rangeUnderflow:{en:"Date too early",fi:"Liian aikainen päivämäärä",sv:"Datum för tidigt"},rangeOverflow:{en:"Date too late",fi:"Liian myöhäinen päivämäärä",sv:"Datum för sent"},valueMissing:{en:"Date required",fi:"Päivämäärä vaaditaan",sv:"Datum krävs"}};this.enableActiveFocus=function(){e.focusTarget="day-button"};this.disableActiveFocus=function(){e.focusTarget=null};this.toggleOpen=function(t){t.preventDefault();e.open?e.hide(false):e.show()};this.handleBlur=function(t){t.stopPropagation();e.inputHasFocus=false;if(!e._validity.valid){e.value=null;var a=Object.entries(e._validity).find((function(t){return!!t[1]}))[0];e.internalValidityError=getLocaleString(e.dateErrorMessages[a])}e.duetBlur.emit({component:"duet-date-picker"})};this.handleFocus=function(t){t.stopPropagation();e.inputHasFocus=true;e.duetFocus.emit({component:"duet-date-picker"})};this.handleTouchStart=function(t){var a=t.changedTouches[0];e.initialTouchX=a.pageX;e.initialTouchY=a.pageY};this.handleTouchMove=function(t){t.preventDefault()};this.handleTouchEnd=function(t){var a=t.changedTouches[0];var i=a.pageX-e.initialTouchX;var n=a.pageY-e.initialTouchY;var r=70;var o=Math.abs(i)>=r&&Math.abs(n)<=r;var s=Math.abs(n)>=r&&Math.abs(i)<=r&&n>0;if(o){e.addMonths(i<0?1:-1)}else if(s){e.hide();t.preventDefault()}e.initialTouchY=null;e.initialTouchX=null};this.handleNextMonthClick=function(t){t.preventDefault();e.addMonths(1)};this.handlePreviousMonthClick=function(t){t.preventDefault();e.addMonths(-1)};this.handleEscKey=createShortcuts({Escape:function(){return e.hide()},Esc:function(){return e.hide()}});this.handleKeyboardNavigation=createShortcuts({ArrowRight:function(){return e.addDays(1)},Right:function(){return e.addDays(1)},ArrowLeft:function(){return e.addDays(-1)},Left:function(){return e.addDays(-1)},ArrowDown:function(){return e.addDays(7)},Down:function(){return e.addDays(7)},ArrowUp:function(){return e.addDays(-7)},Up:function(){return e.addDays(-7)},Home:function(){return e.startOfWeek()},End:function(){return e.endOfWeek()},PageUp:function(){return e.addMonths(-1)},PageDown:function(){return e.addMonths(1)},"Shift+PageUp":function(){return e.addYears(-1)},"Shift+PageDown":function(){return e.addYears(1)},Space:function(t){return e.handleKeyboardDaySelect(t)},Enter:function(t){return e.handleKeyboardDaySelect(t)}});this.handleKeyboardDaySelect=function(t){var a=t.target;var i=parseISODate(a.dataset.day);e.handleDaySelect(t,i)};this.handleDaySelect=function(t,a){var i=parseISODate(e.min);var n=parseISODate(e.max);e.determineValidity(a);if(inRange(a,i,n)){e.setValue(a);e.hide()}};this.handleMonthSelect=function(t){e.setMonth(parseInt(t.target.value,10))};this.handleYearSelect=function(t){e.setYear(parseInt(t.target.value,10))};this.handleInputChange=function(t){e.inputValue=t.detail.value;var a=parseDate(e.inputValue);e.determineValidity(a);if(a||e.inputValue===""){e.setValue(a)}};this.open=false;this.focusedDay=new Date;this.inputValue="";this.inputHasFocus=false;this.internalValidityError="";this.theme="";this.expand=false;this.name="";this.identifier="";this.label="";this.caption=undefined;this.margin="auto";this.language=getLanguage();this.placeholderDefaults={fi:"pp.kk.vvvv",en:"dd.mm.yyyy",sv:"dd.mm.åååå"};this.placeholder=getLocaleString(this.placeholderDefaults,this.language);this.echoPlaceholder=false;this.disabled=false;this.error="";this.labelHidden=false;this.role=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.required=false;this.direction="right";this.tooltip="";this.tooltipDirection="auto";this.value="";this.min="";this.max="";this.incrementYears=10;this.accessibleLiveError="polite"}Object.defineProperty(t.prototype,"validity",{get:function(){return this._validity},enumerable:false,configurable:true});t.prototype.updateValidity=function(t,e,a){if(a==="value"&&t===null){return}this.determineValidity(parseISODate(this.value));if(this._validity.valid){this.internalValidityError=""}};t.prototype.updateInternalValue=function(){if(this.value===null){return}var t=parseISODate(this.value);var e=parseDate(this.inputValue);if(!t){this.inputValue=""}else if(!isEqual(t,e)){this.inputValue=printDate(t)}};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.determineValidity(parseISODate(this.value));this.updateInternalValue();checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.componentDidUpdate=function(){switch(this.focusTarget){case"toggle-button":this.datePickerButton.focus();this.focusTarget=null;break;case"day-button":this.focusedDayNode.focus();break;case"month-select":this.monthSelectNode.focus();this.focusTarget=null;break}};t.prototype.componentDidRender=function(){proxyInputToSlot(this.element,this.proxyId,this.name,this.value,this.required)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"placeholder",defaults:"placeholderDefaults"})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.datePickerInput.setFocus(t);return[2]}))}))};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=true;this.focusTarget="month-select";this.setFocusedDay(parseISODate(this.value)||new Date);return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=true}return __generator(this,(function(e){this.open=false;if(t){this.focusTarget="toggle-button"}return[2]}))}))};t.prototype.addDays=function(t){this.setFocusedDay(addDays(this.focusedDay,t))};t.prototype.addMonths=function(t){this.setMonth(this.focusedDay.getMonth()+t)};t.prototype.addYears=function(t){this.setYear(this.focusedDay.getFullYear()+t)};t.prototype.startOfWeek=function(){this.setFocusedDay(startOfWeek(this.focusedDay))};t.prototype.endOfWeek=function(){this.setFocusedDay(endOfWeek(this.focusedDay))};t.prototype.setMonth=function(t){var e=setMonth(startOfMonth(this.focusedDay),t);var a=endOfMonth(e);var i=setMonth(this.focusedDay,t);this.setFocusedDay(clamp(i,e,a))};t.prototype.setYear=function(t){var e=setYear(startOfMonth(this.focusedDay),t);var a=endOfMonth(e);var i=setYear(this.focusedDay,t);this.setFocusedDay(clamp(i,e,a))};t.prototype.setFocusedDay=function(t){this.focusedDay=clamp(t,parseISODate(this.min),parseISODate(this.max))};t.prototype.determineValidity=function(t){var e,a;var i=(a=(e=this.datePickerInput)===null||e===void 0?void 0:e.value)!==null&&a!==void 0?a:"";var n=i!==""&&t==null;var r=this.required&&t==null;var o=t?!inRange(t,null,parseISODate(this.max)):false;var s=t?!inRange(t,parseISODate(this.min)):false;this._validity={patternMismatch:false,customError:false,stepMismatch:false,tooLong:false,tooShort:false,typeMismatch:false,valueMissing:r,badInput:n,rangeUnderflow:s,rangeOverflow:o,valid:!(r||n||s||o)}};t.prototype.setValue=function(t){var e=printISODate(t);if(e===this.value){return}this.value=e;this.duetChange.emit({component:"duet-date-picker",value:this.value,valueAsDate:t})};t.prototype.handleDocumentClick=function(t){var e=this;if(!this.open){return}var a=t.composedPath().every((function(t){return t!==e.dialogWrapperNode&&t!==e.datePickerButton}));if(a){this.hide(false)}};t.prototype.render=function(){var t=this;var e=parseISODate(this.value);var a=(e||this.focusedDay).getFullYear();var i=this.focusedDay.getMonth();var n=this.focusedDay.getFullYear();var r=i18n[this.language];var o=parseISODate(this.min);var s=parseISODate(this.max);var d=o!=null&&o.getMonth()===i&&o.getFullYear()===n;var l=s!=null&&s.getMonth()===i&&s.getFullYear()===n;var u=a-this.incrementYears;var c=a+this.incrementYears;if(o){u=Math.max(u,o.getFullYear())}if(s){c=Math.min(c,s.getFullYear())}return h(Host,{key:"b6eb7023664d69420af7bdcc9b9d410982375346",class:{"duet-expand":this.expand,"duet-m-0":this.margin==="none"}},h("div",{key:"000e37d5dc46a2e8d2c5ab5a4780ea59aa6ed464",class:"duet-date"},h(DatePickerInput,{key:"a795ccdba4df4bddb94705bba15746eeda04ed4f",hasFocus:this.inputHasFocus,value:this.value,valueAsDate:e,formattedValue:this.inputValue,language:this.language,onInput:this.handleInputChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onClick:this.toggleOpen,name:this.name,disabled:this.disabled,error:this.error||this.internalValidityError||null,role:this.role,required:this.required,theme:this.theme,tooltip:this.tooltip,tooltipDirection:this.tooltipDirection,labelHidden:this.labelHidden,placeholder:this.placeholder,inputLabel:this.label,identifier:this.identifier,buttonRef:function(e){return t.datePickerButton=e},inputRef:function(e){return t.datePickerInput=e},accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy,accessibleLiveError:this.accessibleLiveError,echoPlaceholder:this.echoPlaceholder,caption:this.caption})),h("div",{key:"e83795070df263a6c4aeefb2f53caba20628bdf4",class:{"duet-theme-turva":this.theme==="turva","duet-date-dialog":true,left:this.direction==="left",error:!!this.error,active:this.open},role:"dialog","aria-modal":"true","aria-hidden":this.open?"false":"true","aria-labelledby":this.dialogLabelId,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},h("duet-overlay",{key:"6d725137254f48897b66ee22de8b155bdd1b5f66",visible:this.open,"display-device":"x-small"}),h(FocusGuard,{key:"ca41ba1a3f56fa250f6a70c318bfcef6f457a51b",moveFocusTo:this.focusedDayNode}),h("div",{key:"dae95bbfd7a1225829c488f5d7190015c75edce2",class:"duet-date-dialog-wrapper",onKeyDown:this.handleEscKey,ref:function(e){return t.dialogWrapperNode=e}},h("duet-visually-hidden",{key:"843d37a548ac8bbfc1b22565734562a3aacb9a78","aria-live":"polite"},r.keyboardInstruction),h("div",{key:"0122d3ec3999a339282c52e5b433a364e008697e",class:"duet-date-dialog-mobile-header"},h(DuetInternalLabel,{key:"f12366ba123a38ac9ce9bab84343531cb3e2b814",margin:"none"},this.label),h("button",{key:"c84b369fb284cadedbee1b0fc1761c81b010af1e",class:"duet-date-picker-close",ref:function(e){return t.closeButtonNode=e},onClick:function(){return t.hide()},type:"button"},h("duet-icon",{key:"39fa89e90167ba1af7f911be0e3ceda38aaa9641",name:"navigation-close-small",margin:"none",color:"currentColor",size:"xx-small"}),h("duet-visually-hidden",{key:"9d33b6103af64e7d894992f54981931676e0151c"},r.closeLabel))),h("div",{key:"1269835ebe9ff4b854088e6a5bf22fca79b03e16",class:"duet-date-dialog-header"},h("div",{key:"39f46ed09f80c25530b0f8ef0fce68e6abbbbe88",class:"duet-date-dialog-dropdowns"},h("duet-visually-hidden",{key:"e40675ed1793756467a5b0ad0f143de3ff2a1e3e"},h("h2",{key:"d550800a84cc85bfd7b6f6c1658f5f4ec69913ce",id:this.dialogLabelId,"aria-live":"polite","aria-atomic":"true"},r.monthLabels[i]," ",this.focusedDay.getFullYear())),h("duet-visually-hidden",{key:"65517cf98d77215c7a98f050ab9b6bb2caca4dce"},h("label",{key:"b6252d9a3a0e7caad84964e4075fe3e9733e392e",htmlFor:this.monthSelectId},r.monthSelectLabel)),h("div",{key:"bb09e3d3994bc9c7089723c00e743c176ee926d8",class:"duet-date-dialog-select"},h("select",{key:"1f3480d735c452a138c63f6b5de1ca37d91eaaef",id:this.monthSelectId,class:"duet-date-month-select",ref:function(e){return t.monthSelectNode=e},onChange:this.handleMonthSelect},r.monthLabels.map((function(t,e){return h("option",{key:t,value:e,selected:e===i,disabled:!inRange(new Date(n,e,1),o?startOfMonth(o):null,s?endOfMonth(s):null)},t)}))),h("div",{key:"92172064bc12ac77ab0d718507c8e7b2ddecd71f",class:"duet-date-dialog-select-label","aria-hidden":"true"},h("span",{key:"9d6d5e3488e6e94b339ccba7579529b6315e1b02"},r.monthLabelsShort[i]),h("duet-icon",{key:"dafedd887fe57a186da4bf344514518d88d1233e",name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"}))),h("duet-visually-hidden",{key:"7b0cc5e3adcdd83109ef3248ff6f8511bb90c34a"},h("label",{key:"14678c1f8035838fbdee98903a9ec0f469fea8bd",htmlFor:this.yearSelectId},r.yearSelectLabel)),h("div",{key:"f69a4b2569e509c3da1c06d36cd4607a779adcdc",class:"duet-date-dialog-select"},h("select",{key:"1bb3587d15bc53e198e3ad6ba09856bf6c3c5ca5",id:this.yearSelectId,class:"duet-date-year-select",onChange:this.handleYearSelect},range(u,c).map((function(t){return h("option",{key:t,selected:t===n},t)}))),h("div",{key:"e47f2ae66f07f858fb020b1e458e888f1bc4772f",class:"duet-date-dialog-select-label","aria-hidden":"true"},h("span",{key:"1f8b5df03fc2df12e991094e72b16b904a9f91ef"},this.focusedDay.getFullYear()),h("duet-icon",{key:"375698ec68186100de9914602f75c44d4a007ed0",name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"})))),h("div",{key:"330f331da1d9a28496c3ac25b902a085ae17a102",class:"duet-date-dialog-buttons"},h("duet-action-button",{key:"9b089681d3b58dd0cdbbc5a2f4f09e5f85ba1b3f",accessibleLabel:i18n[this.language].prevMonthLabel,actionName:i18n[this.language].prevMonthLabel,class:"duet-date-dialog-prev",onClick:this.handlePreviousMonthClick,disabled:d,"icon-name":"action-arrow-left-small"},r.prevMonthLabel),h("duet-action-button",{key:"25e3a263e6a550a026f54039f90b64716bf0405b",accessibleLabel:i18n[this.language].nextMonthLabel,actionName:i18n[this.language].nextMonthLabel,class:"duet-date-dialog-next",onClick:this.handleNextMonthClick,disabled:l,"icon-name":"action-arrow-right-small"},r.nextMonthLabel))),h(DatePickerMonth,{key:"8e79a5ae68e17ed6c35a91ef397c4e2d8dd4b223",selectedDate:e,focusedDate:this.focusedDay,onDateSelect:this.handleDaySelect,onKeyboardNavigation:this.handleKeyboardNavigation,labelledById:this.dialogLabelId,language:this.language,theme:this.theme,min:o,max:s,focusedDayRef:function(e){return t.focusedDayNode=e},onFocusEnter:this.enableActiveFocus,onFocusExit:this.disableActiveFocus})),h(FocusGuard,{key:"51b5470d35cd19e8b3af9f7694a564d8ae0bec2f",moveFocusTo:this.closeButtonNode})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{min:["updateValidity"],max:["updateValidity"],value:["updateValidity","updateInternalValue"],required:["updateValidity"]}},enumerable:false,configurable:true});return t}();DuetDatePicker.style=DuetDatePickerStyle0;export{DuetDatePicker as duet_date_picker};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,h,g as getElement,H as Host}from"./index-5a27eaf5.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{g as getColorByName}from"./token-utils-b9ba8c5e.js";import"./tokens.module-2d02f5ff.js";var duetDividerCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-divider{-webkit-user-select:none;user-select:none;display:block;width:100%;height:1px;margin-top:36px !important;margin-bottom:28px;background:rgb(212, 223, 229)}.duet-divider.duet-p-0{padding:0 !important}.duet-divider.duet-m-0{margin:0 !important}.duet-divider.duet-m-s{margin-bottom:16px !important;margin-top:0 !important}.duet-divider.duet-theme-turva{background:rgb(222, 224, 228)}";var DuetDividerStyle0=duetDividerCss;var DuetDivider=function(){function e(e){registerInstance(this,e);this.theme="";this.margin="auto";this.color=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e=getColorByName(this.color);return h("div",{key:"289e5834663ce24af7c8e90958fe41d29c299d98",class:{"duet-m-0":this.margin==="none","duet-m-s":this.margin==="small","duet-divider":true,"duet-theme-turva":this.theme==="turva"},style:{background:e}})};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetDivider.style=DuetDividerStyle0;var duetSpacerCss=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.duet-spacer-horizontal){display:inline-block;height:100% !important}:host(.duet-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.duet-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.duet-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.small){width:12px;min-width:12px}}:host(.duet-spacer-horizontal.medium){height:100%}:host(.duet-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.large){width:20px;min-width:20px}}:host(.duet-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.duet-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.duet-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.duet-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.duet-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.duet-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.duet-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.duet-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.duet-spacer-vertical.small){height:12px;min-height:12px}}:host(.duet-spacer-vertical.medium){width:100%}:host(.duet-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.duet-spacer-vertical.large){height:20px;min-height:20px}}:host(.duet-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.duet-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.duet-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.duet-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.duet-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.duet-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.duet-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.duet-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.duet-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.duet-spacer-xx-small){display:block}}:host(.duet-spacer-x-small){display:none}@media (max-width: 35.9375em){:host(.duet-spacer-x-small){display:block}}:host(.duet-spacer-small){display:none}@media (min-width: 36em){:host(.duet-spacer-small){display:block}}:host(.duet-spacer-medium){display:none}@media (min-width: 48em){:host(.duet-spacer-medium){display:block}}:host(.duet-spacer-large){display:none}@media (min-width: 62em){:host(.duet-spacer-large){display:block}}:host(.duet-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.duet-spacer-x-large){display:block}}:host(.duet-spacer-xx-large){display:none}@media (min-width: 76.25em){:host(.duet-spacer-xx-large){display:block}}";var DuetSpacerStyle0=duetSpacerCss;var DuetSpacer=function(){function e(e){registerInstance(this,e);this.size="medium";this.direction="vertical";this.breakpoint=""}e.prototype.render=function(){var e;return h(Host,{key:"bd2930a075df68cb86648403cdf9093e1f8b320a",class:(e={"duet-spacer":true,"duet-spacer-xx-small":this.breakpoint==="xx-small","duet-spacer-x-small":this.breakpoint==="x-small","duet-spacer-small":this.breakpoint==="small","duet-spacer-medium":this.breakpoint==="medium","duet-spacer-large":this.breakpoint==="large","duet-spacer-x-large":this.breakpoint==="x-large","duet-spacer-xx-large":this.breakpoint==="xx-large"},e[this.size]=true,e["duet-spacer-".concat(this.direction)]=true,e)})};return e}();DuetSpacer.style=DuetSpacerStyle0;export{DuetDivider as duet_divider,DuetSpacer as duet_spacer};
4
+ import{r as registerInstance,h,g as getElement,H as Host}from"./index-fa810c91.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{g as getColorByName}from"./token-utils-b9ba8c5e.js";import"./tokens.module-2d02f5ff.js";var duetDividerCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-divider{-webkit-user-select:none;user-select:none;display:block;width:100%;height:1px;margin-top:36px !important;margin-bottom:28px;background:rgb(212, 223, 229)}.duet-divider.duet-p-0{padding:0 !important}.duet-divider.duet-m-0{margin:0 !important}.duet-divider.duet-m-s{margin-bottom:16px !important;margin-top:0 !important}.duet-divider.duet-theme-turva{background:rgb(222, 224, 228)}";var DuetDividerStyle0=duetDividerCss;var DuetDivider=function(){function e(e){registerInstance(this,e);this.theme="";this.margin="auto";this.color=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e=getColorByName(this.color);return h("div",{key:"289e5834663ce24af7c8e90958fe41d29c299d98",class:{"duet-m-0":this.margin==="none","duet-m-s":this.margin==="small","duet-divider":true,"duet-theme-turva":this.theme==="turva"},style:{background:e}})};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetDivider.style=DuetDividerStyle0;var duetSpacerCss=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.duet-spacer-horizontal){display:inline-block;height:100% !important}:host(.duet-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.duet-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.duet-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.small){width:12px;min-width:12px}}:host(.duet-spacer-horizontal.medium){height:100%}:host(.duet-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.large){width:20px;min-width:20px}}:host(.duet-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.duet-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.duet-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.duet-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.duet-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.duet-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.duet-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.duet-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.duet-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.duet-spacer-vertical.small){height:12px;min-height:12px}}:host(.duet-spacer-vertical.medium){width:100%}:host(.duet-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.duet-spacer-vertical.large){height:20px;min-height:20px}}:host(.duet-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.duet-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.duet-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.duet-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.duet-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.duet-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.duet-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.duet-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.duet-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.duet-spacer-xx-small){display:block}}:host(.duet-spacer-x-small){display:none}@media (max-width: 35.9375em){:host(.duet-spacer-x-small){display:block}}:host(.duet-spacer-small){display:none}@media (min-width: 36em){:host(.duet-spacer-small){display:block}}:host(.duet-spacer-medium){display:none}@media (min-width: 48em){:host(.duet-spacer-medium){display:block}}:host(.duet-spacer-large){display:none}@media (min-width: 62em){:host(.duet-spacer-large){display:block}}:host(.duet-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.duet-spacer-x-large){display:block}}:host(.duet-spacer-xx-large){display:none}@media (min-width: 76.25em){:host(.duet-spacer-xx-large){display:block}}";var DuetSpacerStyle0=duetSpacerCss;var DuetSpacer=function(){function e(e){registerInstance(this,e);this.size="medium";this.direction="vertical";this.breakpoint=""}e.prototype.render=function(){var e;return h(Host,{key:"bd2930a075df68cb86648403cdf9093e1f8b320a",class:(e={"duet-spacer":true,"duet-spacer-xx-small":this.breakpoint==="xx-small","duet-spacer-x-small":this.breakpoint==="x-small","duet-spacer-small":this.breakpoint==="small","duet-spacer-medium":this.breakpoint==="medium","duet-spacer-large":this.breakpoint==="large","duet-spacer-x-large":this.breakpoint==="x-large","duet-spacer-xx-large":this.breakpoint==="xx-large"},e[this.size]=true,e["duet-spacer-".concat(this.direction)]=true,e)})};return e}();DuetSpacer.style=DuetSpacerStyle0;export{DuetDivider as duet_divider,DuetSpacer as duet_spacer};