@duetds/components 10.0.0-alpha.0 → 10.0.0-alpha.2

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 (656) hide show
  1. package/hydrate/index.js +73 -95
  2. package/lib/cjs/a11y-utils-8177cf00.js +25 -0
  3. package/lib/cjs/{app-globals-a1431483.js → app-globals-718a3704.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 +5 -4
  13. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  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 +4 -4
  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 +8 -7
  23. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-editable-table_3.cjs.entry.js +4 -4
  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 +11 -10
  34. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  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 -3
  40. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-menu-bar.cjs.entry.js +5 -4
  42. package/lib/cjs/duet-modal.cjs.entry.js +4 -4
  43. package/lib/cjs/duet-multiselect.cjs.entry.js +10 -9
  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 +14 -14
  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 +6 -5
  54. package/lib/cjs/duet-scrollable_3.cjs.entry.js +3 -3
  55. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  56. package/lib/cjs/duet-select.cjs.entry.js +9 -8
  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-step_2.cjs.entry.js +1 -1
  65. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  66. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +4 -3
  68. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  69. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
  70. package/lib/cjs/duet-textarea.cjs.entry.js +8 -7
  71. package/lib/cjs/duet-toggle.cjs.entry.js +6 -5
  72. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  73. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  74. package/lib/cjs/duet-toolbar-item.cjs.entry.js +4 -3
  75. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  76. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  77. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +2 -2
  78. package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
  79. package/lib/cjs/duet-tray.cjs.entry.js +2 -2
  80. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  81. package/lib/cjs/duet-upload-item.cjs.entry.js +3 -3
  82. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  83. package/lib/cjs/duet.cjs.js +3 -3
  84. package/lib/cjs/{errorcodes.utils-b4cf3ce2.js → errorcodes.utils-4e8a9de4.js} +1 -1
  85. package/lib/cjs/{focus-utils-68fa1c8f.js → focus-utils-2a0030aa.js} +1 -1
  86. package/lib/cjs/{index-7e38df71.js → index-21e67ab3.js} +1 -1
  87. package/lib/cjs/label-2abeac23.js +22 -0
  88. package/lib/cjs/{language-utils-beee36ce.js → language-utils-b5940c7b.js} +1 -1
  89. package/lib/cjs/loader.cjs.js +3 -3
  90. package/lib/cjs/{slot-utils-31c0ed00.js → slot-utils-382633cf.js} +16 -5
  91. package/lib/collection/common/label.js +16 -0
  92. package/lib/collection/components/duet-chip/duet-chip.js +1 -1
  93. package/lib/collection/components/duet-date-picker/duet-date-picker.css +77 -4
  94. package/lib/collection/components/duet-date-picker/duet-date-picker.js +3 -2
  95. package/lib/collection/components/duet-editable-table/duet-editable-table.css +3 -1
  96. package/lib/collection/components/duet-editable-table/duet-editable-table.js +1 -1
  97. package/lib/collection/components/duet-input/duet-input.css +80 -7
  98. package/lib/collection/components/duet-input/duet-input.js +7 -6
  99. package/lib/collection/components/duet-link/duet-link.css +2 -2
  100. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -2
  101. package/lib/collection/components/duet-multiselect/duet-multiselect.css +69 -1
  102. package/lib/collection/components/duet-multiselect/duet-multiselect.js +6 -5
  103. package/lib/collection/components/duet-pagination/duet-pagination.js +12 -12
  104. package/lib/collection/components/duet-range-slider/duet-range-slider.css +69 -1
  105. package/lib/collection/components/duet-range-slider/duet-range-slider.js +3 -2
  106. package/lib/collection/components/duet-select/duet-select.css +89 -13
  107. package/lib/collection/components/duet-select/duet-select.js +6 -5
  108. package/lib/collection/components/duet-textarea/duet-textarea.css +69 -1
  109. package/lib/collection/components/duet-textarea/duet-textarea.js +4 -3
  110. package/lib/collection/components/duet-toggle/duet-toggle.css +68 -0
  111. package/lib/collection/components/duet-toggle/duet-toggle.js +3 -2
  112. package/lib/collection/utils/a11y-utils.js +9 -5
  113. package/lib/collection/utils/slot-utils.js +18 -4
  114. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  115. package/lib/dist-custom-elements/duet-alert.js +1 -1
  116. package/lib/dist-custom-elements/duet-badge.js +1 -1
  117. package/lib/dist-custom-elements/duet-banner.js +4 -4
  118. package/lib/dist-custom-elements/duet-breadcrumb.js +3 -3
  119. package/lib/dist-custom-elements/duet-breadcrumbs.js +1 -1
  120. package/lib/dist-custom-elements/duet-button.js +1 -1
  121. package/lib/dist-custom-elements/duet-callout.js +3 -3
  122. package/lib/dist-custom-elements/duet-caption.js +1 -1
  123. package/lib/dist-custom-elements/duet-card.js +3 -3
  124. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  125. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  126. package/lib/dist-custom-elements/duet-chip.js +1 -1
  127. package/lib/dist-custom-elements/duet-choice-group.js +9 -9
  128. package/lib/dist-custom-elements/duet-choice.js +5 -5
  129. package/lib/dist-custom-elements/duet-collapsible.js +3 -3
  130. package/lib/dist-custom-elements/duet-combobox.js +20 -26
  131. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  132. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  133. package/lib/dist-custom-elements/duet-date-picker.js +22 -27
  134. package/lib/dist-custom-elements/duet-divider.js +1 -1
  135. package/lib/dist-custom-elements/duet-editable-table.js +10 -9
  136. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  137. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  138. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  139. package/lib/dist-custom-elements/duet-footer.js +8 -8
  140. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  141. package/lib/dist-custom-elements/duet-grid.js +1 -1
  142. package/lib/dist-custom-elements/duet-header.js +8 -8
  143. package/lib/dist-custom-elements/duet-heading.js +1 -1
  144. package/lib/dist-custom-elements/duet-hero.js +10 -10
  145. package/lib/dist-custom-elements/duet-icon.js +1 -1
  146. package/lib/dist-custom-elements/duet-input.js +1 -1
  147. package/lib/dist-custom-elements/duet-label.js +62 -1
  148. package/lib/dist-custom-elements/duet-layout.js +2 -2
  149. package/lib/dist-custom-elements/duet-link.js +1 -1
  150. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  151. package/lib/dist-custom-elements/duet-list.js +1 -1
  152. package/lib/dist-custom-elements/duet-logo.js +1 -1
  153. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  154. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  155. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  156. package/lib/dist-custom-elements/duet-menu-bar-item.js +3 -3
  157. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  158. package/lib/dist-custom-elements/duet-menu-bar.js +5 -4
  159. package/lib/dist-custom-elements/duet-modal.js +9 -9
  160. package/lib/dist-custom-elements/duet-multiselect.js +19 -24
  161. package/lib/dist-custom-elements/duet-nav.js +1 -1
  162. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  163. package/lib/dist-custom-elements/duet-notification.js +2 -2
  164. package/lib/dist-custom-elements/duet-number-input.js +15 -21
  165. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  166. package/lib/dist-custom-elements/duet-page-heading.js +3 -3
  167. package/lib/dist-custom-elements/duet-pagination.js +29 -35
  168. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  169. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  170. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  171. package/lib/dist-custom-elements/duet-progress.js +1 -1
  172. package/lib/dist-custom-elements/duet-promo-card.js +4 -4
  173. package/lib/dist-custom-elements/duet-radio-group.js +9 -9
  174. package/lib/dist-custom-elements/duet-radio.js +2 -2
  175. package/lib/dist-custom-elements/duet-range-slider.js +7 -12
  176. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  177. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  178. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  179. package/lib/dist-custom-elements/duet-select.js +1 -1
  180. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  181. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  182. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  183. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  184. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  185. package/lib/dist-custom-elements/duet-slideout-panel.js +3 -3
  186. package/lib/dist-custom-elements/duet-slideout.js +4 -4
  187. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  188. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  189. package/lib/dist-custom-elements/duet-step.js +4 -4
  190. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  191. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  192. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  193. package/lib/dist-custom-elements/duet-submenu-bar-item.js +3 -3
  194. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  195. package/lib/dist-custom-elements/duet-submenu-bar.js +3 -3
  196. package/lib/dist-custom-elements/duet-tab-group.js +16 -22
  197. package/lib/dist-custom-elements/duet-tab.js +1 -1
  198. package/lib/dist-custom-elements/duet-table.js +1 -1
  199. package/lib/dist-custom-elements/duet-textarea.js +19 -24
  200. package/lib/dist-custom-elements/duet-toggle.js +7 -12
  201. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  202. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  203. package/lib/dist-custom-elements/duet-toolbar-item.js +3 -3
  204. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  205. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  206. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  207. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  208. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  209. package/lib/dist-custom-elements/duet-tray.js +3 -3
  210. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  211. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  212. package/lib/dist-custom-elements/duet-upload.js +19 -19
  213. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  214. package/lib/dist-custom-elements/index.js +1 -1
  215. package/lib/dist-custom-elements/{p-b33a176e.js → p-19172e2c.js} +1 -1
  216. package/lib/dist-custom-elements/{p-fc92fc89.js → p-1df834b1.js} +1 -1
  217. package/lib/dist-custom-elements/{p-aa62c36f.js → p-1e88beeb.js} +1 -1
  218. package/lib/dist-custom-elements/{p-ed8b17fe.js → p-1f7ae97d.js} +7 -7
  219. package/lib/dist-custom-elements/{p-5270ad3d.js → p-254d2993.js} +2 -2
  220. package/lib/dist-custom-elements/{p-5448ad53.js → p-29782b53.js} +1 -1
  221. package/lib/dist-custom-elements/{p-d0a4a69f.js → p-2c4fc6d3.js} +3 -3
  222. package/lib/dist-custom-elements/{p-4d4c66b0.js → p-35ad7f77.js} +1 -1
  223. package/lib/dist-custom-elements/{p-8c993e48.js → p-3b5e8904.js} +1 -1
  224. package/lib/dist-custom-elements/{p-4f5a1d66.js → p-3c7d413f.js} +1 -1
  225. package/lib/dist-custom-elements/p-42619f94.js +20 -0
  226. package/lib/dist-custom-elements/{p-c9a14c7b.js → p-4c1f4287.js} +3 -3
  227. package/lib/dist-custom-elements/{p-0ac72fc8.js → p-5086d1a0.js} +2 -2
  228. package/lib/dist-custom-elements/{p-b9488320.js → p-55bbb3b6.js} +21 -26
  229. package/lib/dist-custom-elements/{p-a5c06963.js → p-56d9b926.js} +1 -1
  230. package/lib/dist-custom-elements/{p-36804cd7.js → p-5fbb6039.js} +1 -1
  231. package/lib/dist-custom-elements/{p-e5962501.js → p-64139e5c.js} +1 -1
  232. package/lib/dist-custom-elements/{p-18c3a72b.js → p-6a285be8.js} +1 -1
  233. package/lib/dist-custom-elements/{p-824a3b0b.js → p-723b6358.js} +4 -4
  234. package/lib/dist-custom-elements/{p-7ff1b14d.js → p-726ae243.js} +1 -1
  235. package/lib/dist-custom-elements/{p-98b1d4c1.js → p-7f69e1e3.js} +6 -6
  236. package/lib/dist-custom-elements/{p-61282ed8.js → p-86f479be.js} +2 -2
  237. package/lib/dist-custom-elements/{p-cb5df864.js → p-87b1c772.js} +1 -1
  238. package/lib/dist-custom-elements/{p-acacce04.js → p-a0f74881.js} +5 -5
  239. package/lib/dist-custom-elements/{p-38a3168a.js → p-a1e17113.js} +4 -4
  240. package/lib/dist-custom-elements/{p-c57a67d3.js → p-a2b5c68e.js} +3 -3
  241. package/lib/dist-custom-elements/{p-01846eb6.js → p-a9e09647.js} +6 -6
  242. package/lib/dist-custom-elements/{p-b5ea877d.js → p-ad615991.js} +15 -4
  243. package/lib/dist-custom-elements/p-afb6f7fb.js +23 -0
  244. package/lib/dist-custom-elements/{p-8342a3e5.js → p-b4289ed0.js} +1 -1
  245. package/lib/dist-custom-elements/{p-266569ef.js → p-c0a30d29.js} +1 -1
  246. package/lib/dist-custom-elements/{p-644b52bb.js → p-c81244d9.js} +1 -1
  247. package/lib/dist-custom-elements/{p-a6b39855.js → p-d2a5148f.js} +1 -1
  248. package/lib/dist-custom-elements/{p-fb63021d.js → p-d5812145.js} +1 -1
  249. package/lib/dist-custom-elements/{p-f66602b0.js → p-d77db171.js} +1 -1
  250. package/lib/dist-custom-elements/p-e4936fed.js +268 -0
  251. package/lib/dist-custom-elements/{p-92f36210.js → p-e5a55204.js} +10 -10
  252. package/lib/dist-custom-elements/{p-ee079d76.js → p-e774334b.js} +2 -2
  253. package/lib/dist-custom-elements/{p-649a8c3e.js → p-f9994ef4.js} +3 -3
  254. package/lib/dist-custom-elements/{p-39b63c58.js → p-fca5b65b.js} +2 -2
  255. package/lib/dist-custom-elements/{p-2a6a71e4.js → p-ffa44070.js} +1 -1
  256. package/lib/duet/duet.esm.js +1 -1
  257. package/lib/duet/duet.js +1 -1
  258. package/lib/duet/{p-778e721c.entry.js → p-009c7325.entry.js} +1 -1
  259. package/lib/duet/{p-35196930.system.entry.js → p-020be412.system.entry.js} +1 -1
  260. package/lib/duet/p-02200dcc.entry.js +4 -0
  261. package/lib/duet/{p-c7f38ac3.system.entry.js → p-032fbfa1.system.entry.js} +1 -1
  262. package/lib/duet/p-03af0f0d.system.entry.js +4 -0
  263. package/lib/duet/{p-00c7bd0a.system.entry.js → p-042576d6.system.entry.js} +1 -1
  264. package/lib/duet/{p-79bd8c35.system.entry.js → p-0458abd0.system.entry.js} +1 -1
  265. package/lib/duet/{p-d6b53d40.entry.js → p-066b94ca.entry.js} +1 -1
  266. package/lib/duet/{p-d1e5ab5e.entry.js → p-07200cbb.entry.js} +1 -1
  267. package/lib/duet/{p-72508bb9.entry.js → p-084ab781.entry.js} +1 -1
  268. package/lib/duet/{p-3b77a305.system.entry.js → p-0937f800.system.entry.js} +1 -1
  269. package/lib/duet/p-0c4aa4d0.system.entry.js +4 -0
  270. package/lib/duet/{p-2de11c55.system.entry.js → p-0ecb70e0.system.entry.js} +1 -1
  271. package/lib/duet/{p-c032689a.entry.js → p-105f1a75.entry.js} +1 -1
  272. package/lib/duet/{p-0f3fbf65.system.entry.js → p-1183d305.system.entry.js} +1 -1
  273. package/lib/duet/{p-5269e599.system.entry.js → p-14bae734.system.entry.js} +1 -1
  274. package/lib/duet/{p-dd1ec0ef.entry.js → p-150e5f1b.entry.js} +1 -1
  275. package/lib/duet/{p-99443d70.entry.js → p-17aa3a20.entry.js} +1 -1
  276. package/lib/duet/{p-a6ee1072.system.entry.js → p-1d016525.system.entry.js} +1 -1
  277. package/lib/duet/{p-3f690e05.system.entry.js → p-1da5945a.system.entry.js} +1 -1
  278. package/lib/duet/{p-3300a0a4.system.js → p-1e17463d.system.js} +1 -1
  279. package/lib/duet/{p-0d79ddc1.system.entry.js → p-1fd3ec9e.system.entry.js} +1 -1
  280. package/lib/duet/{p-3a1f45d1.system.entry.js → p-20213e01.system.entry.js} +1 -1
  281. package/lib/duet/{p-58497877.system.entry.js → p-2034ac6f.system.entry.js} +1 -1
  282. package/lib/duet/p-23376e2a.entry.js +4 -0
  283. package/lib/duet/{p-e4d4cc92.js → p-2437b4cb.js} +1 -1
  284. package/lib/duet/{p-194e89c3.system.entry.js → p-265fdd97.system.entry.js} +1 -1
  285. package/lib/duet/{p-a236f333.system.entry.js → p-26d1dc6c.system.entry.js} +1 -1
  286. package/lib/duet/{p-603f6dd4.system.entry.js → p-274473a3.system.entry.js} +1 -1
  287. package/lib/duet/{p-c055a0a5.entry.js → p-27a43e79.entry.js} +1 -1
  288. package/lib/duet/{p-19096d3f.system.entry.js → p-27ed5ca7.system.entry.js} +1 -1
  289. package/lib/duet/p-29672737.entry.js +4 -0
  290. package/lib/duet/p-2af3edb3.system.entry.js +4 -0
  291. package/lib/duet/p-2af9e483.entry.js +4 -0
  292. package/lib/duet/p-2b6a7397.js +4 -0
  293. package/lib/duet/{p-3693a39c.entry.js → p-2c9a6e05.entry.js} +1 -1
  294. package/lib/duet/{p-214444f4.js → p-2eae4a0b.js} +1 -1
  295. package/lib/duet/{p-5c17c2ad.entry.js → p-2fa7ecef.entry.js} +1 -1
  296. package/lib/duet/p-319e77d6.entry.js +4 -0
  297. package/lib/duet/{p-19519c35.system.entry.js → p-328d9919.system.entry.js} +1 -1
  298. package/lib/duet/{p-9f466e90.system.entry.js → p-376a0839.system.entry.js} +1 -1
  299. package/lib/duet/{p-5e62f1da.system.entry.js → p-38685b43.system.entry.js} +1 -1
  300. package/lib/duet/{p-b1c78160.system.entry.js → p-38908608.system.entry.js} +1 -1
  301. package/lib/duet/{p-0cde41e1.system.entry.js → p-3987eed8.system.entry.js} +1 -1
  302. package/lib/duet/{p-f6900a3e.entry.js → p-3ab3a8c6.entry.js} +1 -1
  303. package/lib/duet/{p-a1dbb6ae.entry.js → p-3b281171.entry.js} +1 -1
  304. package/lib/duet/{p-77eb9c59.system.entry.js → p-3b3432e2.system.entry.js} +1 -1
  305. package/lib/duet/{p-f29c480a.system.entry.js → p-3b3c341e.system.entry.js} +1 -1
  306. package/lib/duet/{p-dc74c7c2.system.entry.js → p-3b8dbebe.system.entry.js} +1 -1
  307. package/lib/duet/{p-f9a64d11.entry.js → p-3cd483ab.entry.js} +1 -1
  308. package/lib/duet/{p-14c1e05f.system.entry.js → p-3cd80f60.system.entry.js} +1 -1
  309. package/lib/duet/p-3d794db6.system.entry.js +4 -0
  310. package/lib/duet/{p-9e9599ce.system.entry.js → p-3f97122e.system.entry.js} +1 -1
  311. package/lib/duet/p-4289f34a.entry.js +4 -0
  312. package/lib/duet/{p-bf2016fd.entry.js → p-435a217b.entry.js} +1 -1
  313. package/lib/duet/p-472b3fbd.entry.js +4 -0
  314. package/lib/duet/p-48618d75.entry.js +4 -0
  315. package/lib/duet/{p-8bc4d112.entry.js → p-4bd72541.entry.js} +1 -1
  316. package/lib/duet/{p-210045f4.system.entry.js → p-4eb70cc2.system.entry.js} +1 -1
  317. package/lib/duet/{p-d554e96b.entry.js → p-4f212753.entry.js} +1 -1
  318. package/lib/duet/{p-f35be908.entry.js → p-4f527f43.entry.js} +1 -1
  319. package/lib/duet/{p-71d12412.entry.js → p-502bf069.entry.js} +1 -1
  320. package/lib/duet/p-50ca9099.system.entry.js +4 -0
  321. package/lib/duet/p-53366e23.entry.js +4 -0
  322. package/lib/duet/{p-50754042.system.entry.js → p-58f6b887.system.entry.js} +1 -1
  323. package/lib/duet/p-5db9497a.entry.js +4 -0
  324. package/lib/duet/p-5e6b91f6.entry.js +4 -0
  325. package/lib/duet/{p-406af1f3.system.js → p-605e69c8.system.js} +1 -1
  326. package/lib/duet/{p-265b2d3f.system.entry.js → p-61a93486.system.entry.js} +1 -1
  327. package/lib/duet/{p-cab2979b.entry.js → p-63016bc3.entry.js} +1 -1
  328. package/lib/duet/{p-4afd1e0f.system.entry.js → p-639def3e.system.entry.js} +1 -1
  329. package/lib/duet/{p-413ee44a.entry.js → p-67dd83cc.entry.js} +1 -1
  330. package/lib/duet/p-68fd5f9a.entry.js +4 -0
  331. package/lib/duet/{p-778e26b4.system.entry.js → p-6c25b6a4.system.entry.js} +1 -1
  332. package/lib/duet/{p-c8437ddb.system.entry.js → p-6f285100.system.entry.js} +1 -1
  333. package/lib/duet/{p-530144b7.entry.js → p-705c5299.entry.js} +1 -1
  334. package/lib/duet/p-70651da4.system.entry.js +4 -0
  335. package/lib/duet/{p-da7ce3da.entry.js → p-716865fe.entry.js} +1 -1
  336. package/lib/duet/{p-b1f3e71c.entry.js → p-7512d569.entry.js} +1 -1
  337. package/lib/duet/{p-f210b371.system.entry.js → p-7606ec6c.system.entry.js} +1 -1
  338. package/lib/duet/{p-42d0aeb0.system.js → p-76d69a18.system.js} +1 -1
  339. package/lib/duet/{p-706c3914.entry.js → p-772dbed5.entry.js} +1 -1
  340. package/lib/duet/{p-c20e0bcd.entry.js → p-77b21edc.entry.js} +1 -1
  341. package/lib/duet/{p-ad0b50f0.entry.js → p-77e70fca.entry.js} +1 -1
  342. package/lib/duet/p-7813d124.system.entry.js +4 -0
  343. package/lib/duet/p-7a25f374.entry.js +4 -0
  344. package/lib/duet/p-7acabaa7.system.js +4 -0
  345. package/lib/duet/{p-1ac5803b.entry.js → p-7af3fb35.entry.js} +1 -1
  346. package/lib/duet/p-7b8b93c3.entry.js +4 -0
  347. package/lib/duet/{p-1bdd845b.system.js → p-7cce22af.system.js} +1 -1
  348. package/lib/duet/{p-e33c42ff.entry.js → p-7f5c1da2.entry.js} +1 -1
  349. package/lib/duet/{p-f380d364.system.entry.js → p-7fe5e0dc.system.entry.js} +1 -1
  350. package/lib/duet/{p-eb35e521.entry.js → p-806adaa3.entry.js} +1 -1
  351. package/lib/duet/{p-6c501d0a.system.entry.js → p-807bf6da.system.entry.js} +1 -1
  352. package/lib/duet/{p-70adc2c4.entry.js → p-824d882f.entry.js} +1 -1
  353. package/lib/duet/{p-aabf13cc.entry.js → p-8440bd4f.entry.js} +1 -1
  354. package/lib/duet/{p-b5ef2959.system.entry.js → p-84bfc619.system.entry.js} +1 -1
  355. package/lib/duet/{p-19baff31.entry.js → p-851e1a0f.entry.js} +1 -1
  356. package/lib/duet/{p-65a3b7a2.system.entry.js → p-8520e026.system.entry.js} +1 -1
  357. package/lib/duet/{p-ad3fc579.entry.js → p-86176559.entry.js} +1 -1
  358. package/lib/duet/{p-8911e1f0.system.entry.js → p-87e96a18.system.entry.js} +1 -1
  359. package/lib/duet/{p-ac1125e2.entry.js → p-88d8265d.entry.js} +1 -1
  360. package/lib/duet/{p-dea69e25.system.entry.js → p-88fe57e8.system.entry.js} +1 -1
  361. package/lib/duet/{p-b899b000.js → p-8abb0984.js} +1 -1
  362. package/lib/duet/{p-a023bf22.entry.js → p-8ad8b9a8.entry.js} +1 -1
  363. package/lib/duet/{p-4bdae83b.entry.js → p-8b397c1a.entry.js} +1 -1
  364. package/lib/duet/p-8c9eb171.js +4 -0
  365. package/lib/duet/{p-252df607.entry.js → p-8ceddf7a.entry.js} +1 -1
  366. package/lib/duet/{p-702dc745.system.entry.js → p-8d462e3a.system.entry.js} +1 -1
  367. package/lib/duet/{p-abe63ae2.system.entry.js → p-8f31572d.system.entry.js} +1 -1
  368. package/lib/duet/p-8ff30ce6.system.entry.js +4 -0
  369. package/lib/duet/p-947ceeb6.system.entry.js +4 -0
  370. package/lib/duet/{p-3fce7ef4.system.entry.js → p-95836be2.system.entry.js} +1 -1
  371. package/lib/duet/p-965e597c.system.js +4 -0
  372. package/lib/duet/{p-146a6092.entry.js → p-97ec270c.entry.js} +1 -1
  373. package/lib/duet/{p-c5efbb76.system.entry.js → p-9dda3449.system.entry.js} +1 -1
  374. package/lib/duet/p-9fcce08c.system.entry.js +4 -0
  375. package/lib/duet/{p-7d32c253.system.js → p-a19244e5.system.js} +1 -1
  376. package/lib/duet/{p-e062a11a.entry.js → p-a23eec0f.entry.js} +1 -1
  377. package/lib/duet/{p-783e8788.system.entry.js → p-a2b93336.system.entry.js} +1 -1
  378. package/lib/duet/{p-989ecf2e.system.entry.js → p-a437992b.system.entry.js} +1 -1
  379. package/lib/duet/{p-a42c1c73.system.entry.js → p-a48acf0f.system.entry.js} +2 -2
  380. package/lib/duet/{p-296eb384.entry.js → p-a51f3a0b.entry.js} +1 -1
  381. package/lib/duet/{p-f933ada6.system.entry.js → p-ab4c886f.system.entry.js} +1 -1
  382. package/lib/duet/{p-1ec66cb0.system.entry.js → p-abec198c.system.entry.js} +1 -1
  383. package/lib/duet/p-b0b00dad.system.entry.js +4 -0
  384. package/lib/duet/{p-d7c1c492.entry.js → p-b0d79ffe.entry.js} +1 -1
  385. package/lib/duet/{p-b5b5040f.entry.js → p-b865116a.entry.js} +1 -1
  386. package/lib/duet/{p-99f873a0.entry.js → p-bbb56267.entry.js} +1 -1
  387. package/lib/duet/{p-b55e935f.entry.js → p-bbeafbd0.entry.js} +1 -1
  388. package/lib/duet/{p-70fd8af5.system.entry.js → p-bc6e219f.system.entry.js} +1 -1
  389. package/lib/duet/{p-9a219c40.entry.js → p-bed279f6.entry.js} +1 -1
  390. package/lib/duet/{p-cfee6451.entry.js → p-bf5c8102.entry.js} +1 -1
  391. package/lib/duet/{p-1aaa8887.entry.js → p-c1b1801d.entry.js} +1 -1
  392. package/lib/duet/{p-69d6bbfe.system.entry.js → p-c551216e.system.entry.js} +1 -1
  393. package/lib/duet/{p-3662ad90.entry.js → p-c6617f16.entry.js} +1 -1
  394. package/lib/duet/p-c6995496.system.entry.js +4 -0
  395. package/lib/duet/{p-343c72ca.entry.js → p-c7ecec29.entry.js} +1 -1
  396. package/lib/duet/{p-d452cbb7.entry.js → p-ca691c4a.entry.js} +1 -1
  397. package/lib/duet/{p-8a9a7082.entry.js → p-cdb6c612.entry.js} +1 -1
  398. package/lib/duet/{p-a5406a98.entry.js → p-cef3ec26.entry.js} +1 -1
  399. package/lib/duet/{p-d803a966.system.entry.js → p-d04dbf1f.system.entry.js} +1 -1
  400. package/lib/duet/{p-c20c2ae0.entry.js → p-d3aa7a74.entry.js} +1 -1
  401. package/lib/duet/p-d3c304b5.system.js +4 -0
  402. package/lib/duet/{p-93bc8bc7.entry.js → p-d41543d3.entry.js} +1 -1
  403. package/lib/duet/p-d42b2af0.entry.js +4 -0
  404. package/lib/duet/{p-12abe4eb.system.entry.js → p-d5dfa70d.system.entry.js} +1 -1
  405. package/lib/duet/{p-d2ded72c.system.entry.js → p-d62b6ca1.system.entry.js} +1 -1
  406. package/lib/duet/{p-b5eec241.system.entry.js → p-d62da84e.system.entry.js} +1 -1
  407. package/lib/duet/{p-d048f25c.js → p-d7d86092.js} +1 -1
  408. package/lib/duet/{p-f417c864.entry.js → p-d85741b1.entry.js} +1 -1
  409. package/lib/duet/p-dc4b5372.system.entry.js +4 -0
  410. package/lib/duet/{p-351076bc.system.entry.js → p-df19c239.system.entry.js} +1 -1
  411. package/lib/duet/{p-b11c1b81.entry.js → p-dfef2cbe.entry.js} +1 -1
  412. package/lib/duet/{p-1ce82dfa.system.js → p-e1c881da.system.js} +1 -1
  413. package/lib/duet/p-e283e9fe.entry.js +4 -0
  414. package/lib/duet/{p-0cb6800d.entry.js → p-e2daf94c.entry.js} +1 -1
  415. package/lib/duet/{p-4f913952.entry.js → p-e5cb7fc9.entry.js} +1 -1
  416. package/lib/duet/{p-849cdc4a.entry.js → p-e7558f6c.entry.js} +1 -1
  417. package/lib/duet/{p-62e046bf.system.entry.js → p-e797e2f4.system.entry.js} +1 -1
  418. package/lib/duet/{p-6e9ec04c.system.entry.js → p-e95e650d.system.entry.js} +1 -1
  419. package/lib/duet/{p-c00beb34.system.entry.js → p-eb0d15a0.system.entry.js} +1 -1
  420. package/lib/duet/p-eca03d5e.js +4 -0
  421. package/lib/duet/{p-425e3794.system.entry.js → p-eca1904d.system.entry.js} +1 -1
  422. package/lib/duet/p-ed17957c.system.entry.js +4 -0
  423. package/lib/duet/{p-907ef071.system.entry.js → p-ed6a110f.system.entry.js} +1 -1
  424. package/lib/duet/{p-779cfa4a.system.entry.js → p-f0fa9c9a.system.entry.js} +1 -1
  425. package/lib/duet/{p-0cb1aedd.entry.js → p-f2f1e0e9.entry.js} +1 -1
  426. package/lib/duet/{p-a7c7e6a4.system.entry.js → p-f43e134e.system.entry.js} +1 -1
  427. package/lib/duet/{p-b6214d5a.entry.js → p-f78099b6.entry.js} +1 -1
  428. package/lib/duet/{p-c2ece51b.entry.js → p-f8b6380d.entry.js} +1 -1
  429. package/lib/duet/p-fd78f61a.js +4 -0
  430. package/lib/duet/{p-7ba55da2.system.entry.js → p-fdb3098f.system.entry.js} +1 -1
  431. package/lib/duet/p-ffd1290e.system.entry.js +4 -0
  432. package/lib/duet/{p-9ff1b619.entry.js → p-ffe6fbbb.entry.js} +1 -1
  433. package/lib/esm/a11y-utils-8fc393f6.js +23 -0
  434. package/lib/esm/{app-globals-386e1feb.js → app-globals-00959ca9.js} +1 -1
  435. package/lib/esm/duet-action-button.entry.js +2 -2
  436. package/lib/esm/duet-alert.entry.js +3 -3
  437. package/lib/esm/duet-badge.entry.js +1 -1
  438. package/lib/esm/duet-banner.entry.js +2 -2
  439. package/lib/esm/duet-breadcrumb.entry.js +2 -2
  440. package/lib/esm/duet-breadcrumbs.entry.js +2 -2
  441. package/lib/esm/duet-button_2.entry.js +2 -2
  442. package/lib/esm/duet-callout.entry.js +2 -2
  443. package/lib/esm/duet-caption_4.entry.js +5 -4
  444. package/lib/esm/duet-card.entry.js +1 -1
  445. package/lib/esm/duet-checkbox.entry.js +1 -1
  446. package/lib/esm/duet-checkmark.entry.js +1 -1
  447. package/lib/esm/duet-chip_3.entry.js +4 -4
  448. package/lib/esm/duet-choice_2.entry.js +3 -3
  449. package/lib/esm/duet-collapsible.entry.js +2 -2
  450. package/lib/esm/duet-combobox.entry.js +3 -3
  451. package/lib/esm/duet-contact-card.entry.js +2 -2
  452. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  453. package/lib/esm/duet-date-picker.entry.js +8 -7
  454. package/lib/esm/duet-divider_2.entry.js +1 -1
  455. package/lib/esm/duet-editable-table_3.entry.js +4 -4
  456. package/lib/esm/duet-empty-state.entry.js +1 -1
  457. package/lib/esm/duet-fieldset.entry.js +2 -2
  458. package/lib/esm/duet-file-chooser.entry.js +1 -1
  459. package/lib/esm/duet-footer.entry.js +3 -3
  460. package/lib/esm/duet-grid_2.entry.js +1 -1
  461. package/lib/esm/duet-header_2.entry.js +2 -2
  462. package/lib/esm/duet-hero.entry.js +3 -3
  463. package/lib/esm/duet-icon.entry.js +1 -1
  464. package/lib/esm/duet-input_2.entry.js +11 -10
  465. package/lib/esm/duet-layout.entry.js +2 -2
  466. package/lib/esm/duet-list_2.entry.js +1 -1
  467. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  468. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  469. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  470. package/lib/esm/duet-menu-bar-item.entry.js +4 -3
  471. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  472. package/lib/esm/duet-menu-bar.entry.js +5 -4
  473. package/lib/esm/duet-modal.entry.js +4 -4
  474. package/lib/esm/duet-multiselect.entry.js +10 -9
  475. package/lib/esm/duet-nav.entry.js +1 -1
  476. package/lib/esm/duet-notification_2.entry.js +2 -2
  477. package/lib/esm/duet-number-input.entry.js +3 -3
  478. package/lib/esm/duet-overlay.entry.js +1 -1
  479. package/lib/esm/duet-page-heading.entry.js +1 -1
  480. package/lib/esm/duet-pagination_2.entry.js +14 -14
  481. package/lib/esm/duet-progress.entry.js +2 -2
  482. package/lib/esm/duet-promo-card.entry.js +2 -2
  483. package/lib/esm/duet-radio_2.entry.js +2 -2
  484. package/lib/esm/duet-range-slider.entry.js +6 -5
  485. package/lib/esm/duet-scrollable_3.entry.js +3 -3
  486. package/lib/esm/duet-section-layout.entry.js +1 -1
  487. package/lib/esm/duet-select.entry.js +9 -8
  488. package/lib/esm/duet-shaped-image.entry.js +1 -1
  489. package/lib/esm/duet-show-more.entry.js +2 -2
  490. package/lib/esm/duet-slideout-lang.entry.js +2 -2
  491. package/lib/esm/duet-slideout-link.entry.js +1 -1
  492. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  493. package/lib/esm/duet-slideout-panel.entry.js +4 -4
  494. package/lib/esm/duet-slideout.entry.js +4 -4
  495. package/lib/esm/duet-step_2.entry.js +1 -1
  496. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  497. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  498. package/lib/esm/duet-submenu-bar-item.entry.js +4 -3
  499. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  500. package/lib/esm/duet-submenu-bar.entry.js +1 -1
  501. package/lib/esm/duet-textarea.entry.js +8 -7
  502. package/lib/esm/duet-toggle.entry.js +6 -5
  503. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  504. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  505. package/lib/esm/duet-toolbar-item.entry.js +4 -3
  506. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  507. package/lib/esm/duet-toolbar.entry.js +1 -1
  508. package/lib/esm/duet-tooltip-button_2.entry.js +2 -2
  509. package/lib/esm/duet-tooltip.entry.js +3 -3
  510. package/lib/esm/duet-tray.entry.js +2 -2
  511. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  512. package/lib/esm/duet-upload-item.entry.js +3 -3
  513. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  514. package/lib/esm/duet.js +4 -4
  515. package/lib/esm/{errorcodes.utils-f2529568.js → errorcodes.utils-d9431251.js} +1 -1
  516. package/lib/esm/{focus-utils-fb393f52.js → focus-utils-adcd9463.js} +1 -1
  517. package/lib/esm/{index-4e3ad237.js → index-1d0b7c66.js} +1 -1
  518. package/lib/esm/label-ce262202.js +20 -0
  519. package/lib/esm/{language-utils-95643489.js → language-utils-14969cef.js} +1 -1
  520. package/lib/esm/loader.js +4 -4
  521. package/lib/esm/{slot-utils-23c88903.js → slot-utils-4e5ed4eb.js} +16 -5
  522. package/lib/esm-es5/a11y-utils-8fc393f6.js +4 -0
  523. package/lib/esm-es5/{app-globals-386e1feb.js → app-globals-00959ca9.js} +1 -1
  524. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  525. package/lib/esm-es5/duet-alert.entry.js +1 -1
  526. package/lib/esm-es5/duet-badge.entry.js +1 -1
  527. package/lib/esm-es5/duet-banner.entry.js +1 -1
  528. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  529. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  530. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  531. package/lib/esm-es5/duet-callout.entry.js +1 -1
  532. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  533. package/lib/esm-es5/duet-card.entry.js +1 -1
  534. package/lib/esm-es5/duet-checkbox.entry.js +2 -2
  535. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  536. package/lib/esm-es5/duet-chip_3.entry.js +1 -1
  537. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  538. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  539. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  540. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  541. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  542. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  543. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  544. package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
  545. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  546. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  547. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  548. package/lib/esm-es5/duet-footer.entry.js +1 -1
  549. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  550. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  551. package/lib/esm-es5/duet-hero.entry.js +1 -1
  552. package/lib/esm-es5/duet-icon.entry.js +1 -1
  553. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  554. package/lib/esm-es5/duet-layout.entry.js +1 -1
  555. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  556. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  557. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  558. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  559. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  560. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  561. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  562. package/lib/esm-es5/duet-modal.entry.js +1 -1
  563. package/lib/esm-es5/duet-multiselect.entry.js +2 -2
  564. package/lib/esm-es5/duet-nav.entry.js +1 -1
  565. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  566. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  567. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  568. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  569. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  570. package/lib/esm-es5/duet-progress.entry.js +1 -1
  571. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  572. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  573. package/lib/esm-es5/duet-range-slider.entry.js +2 -2
  574. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  575. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  576. package/lib/esm-es5/duet-select.entry.js +2 -2
  577. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  578. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  579. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  580. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  581. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  582. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  583. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  584. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  585. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  586. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  587. package/lib/esm-es5/duet-submenu-bar-item.entry.js +1 -1
  588. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  589. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  590. package/lib/esm-es5/duet-textarea.entry.js +2 -2
  591. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  592. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  593. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  594. package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
  595. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  596. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  597. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  598. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  599. package/lib/esm-es5/duet-tray.entry.js +1 -1
  600. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  601. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  602. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  603. package/lib/esm-es5/duet.js +1 -1
  604. package/lib/esm-es5/{errorcodes.utils-f2529568.js → errorcodes.utils-d9431251.js} +1 -1
  605. package/lib/esm-es5/focus-utils-adcd9463.js +4 -0
  606. package/lib/esm-es5/{index-4e3ad237.js → index-1d0b7c66.js} +1 -1
  607. package/lib/esm-es5/label-ce262202.js +4 -0
  608. package/lib/esm-es5/{language-utils-95643489.js → language-utils-14969cef.js} +1 -1
  609. package/lib/esm-es5/loader.js +1 -1
  610. package/lib/esm-es5/slot-utils-4e5ed4eb.js +4 -0
  611. package/lib/types/common/label.d.ts +13 -0
  612. package/package.json +3 -3
  613. package/lib/cjs/a11y-utils-76311b95.js +0 -20
  614. package/lib/dist-custom-elements/p-145c94a8.js +0 -273
  615. package/lib/dist-custom-elements/p-d0aaf2cd.js +0 -67
  616. package/lib/dist-custom-elements/p-f0cc5629.js +0 -18
  617. package/lib/duet/p-0245b6df.system.entry.js +0 -4
  618. package/lib/duet/p-03ad2cf3.system.entry.js +0 -4
  619. package/lib/duet/p-0c527115.entry.js +0 -4
  620. package/lib/duet/p-0d730e50.system.entry.js +0 -4
  621. package/lib/duet/p-130939b4.entry.js +0 -4
  622. package/lib/duet/p-1411cba2.entry.js +0 -4
  623. package/lib/duet/p-14b4ee4d.entry.js +0 -4
  624. package/lib/duet/p-1b6e33e3.system.entry.js +0 -4
  625. package/lib/duet/p-21785af3.system.entry.js +0 -4
  626. package/lib/duet/p-293cb37c.entry.js +0 -4
  627. package/lib/duet/p-39733fa6.system.entry.js +0 -4
  628. package/lib/duet/p-405ba8bb.entry.js +0 -4
  629. package/lib/duet/p-4e261200.js +0 -4
  630. package/lib/duet/p-5222dec4.system.entry.js +0 -4
  631. package/lib/duet/p-56c887fb.js +0 -4
  632. package/lib/duet/p-639fd3db.entry.js +0 -4
  633. package/lib/duet/p-6727fc0e.entry.js +0 -4
  634. package/lib/duet/p-6858f043.system.entry.js +0 -4
  635. package/lib/duet/p-7a3ae8a9.system.js +0 -4
  636. package/lib/duet/p-7f519ad1.entry.js +0 -4
  637. package/lib/duet/p-83d125ee.system.entry.js +0 -4
  638. package/lib/duet/p-898a81ab.system.entry.js +0 -4
  639. package/lib/duet/p-9c45ed44.entry.js +0 -4
  640. package/lib/duet/p-9e27e0a8.system.entry.js +0 -4
  641. package/lib/duet/p-9f30783d.system.entry.js +0 -4
  642. package/lib/duet/p-aa436035.system.entry.js +0 -4
  643. package/lib/duet/p-aad77751.system.js +0 -4
  644. package/lib/duet/p-bbc168d3.entry.js +0 -4
  645. package/lib/duet/p-c0f0ba52.entry.js +0 -4
  646. package/lib/duet/p-c6915c43.system.entry.js +0 -4
  647. package/lib/duet/p-cdccf8e6.system.entry.js +0 -4
  648. package/lib/duet/p-d3a5400e.entry.js +0 -4
  649. package/lib/duet/p-d709d282.entry.js +0 -4
  650. package/lib/duet/p-e1d33d05.entry.js +0 -4
  651. package/lib/duet/p-e8465166.entry.js +0 -4
  652. package/lib/duet/p-f0cc5629.js +0 -4
  653. package/lib/esm/a11y-utils-92930863.js +0 -18
  654. package/lib/esm-es5/a11y-utils-92930863.js +0 -4
  655. package/lib/esm-es5/focus-utils-fb393f52.js +0 -4
  656. package/lib/esm-es5/slot-utils-23c88903.js +0 -4
@@ -1,4 +0,0 @@
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,o){function r(t){try{s(i.next(t))}catch(t){o(t)}}function d(t){try{s(i["throw"](t))}catch(t){o(t)}}function s(t){t.done?a(t.value):n(t.value).then(r,d)}s((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,r;return r={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function d(t){return function(e){return s([t,e])}}function s(d){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,d[0]&&(a=0)),a)try{if(i=1,n&&(o=d[0]&2?n["return"]:d[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,d[1])).done)return o;if(n=0,o)d=[d[0]&2,o.value];switch(d[0]){case 0:case 1:o=d;break;case 4:a.label++;return{value:d[1],done:false};case 5:a.label++;n=d[1];d=[0];continue;case 7:d=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){a=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){a.label=d[1];break}if(d[0]===6&&a.label<o[1]){a.label=o[1];o=d;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(d);break}if(o[2])a.ops.pop();a.trys.pop();continue}d=e.call(t,a)}catch(t){d=[6,t];n=0}finally{i=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-7d32c253.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-aad77751.system.js","./p-3300a0a4.system.js","./p-1bdd845b.system.js","./p-98636086.system.js"],(function(t){"use strict";var e,a,i,n,o,r,d,s,u,l,c,b,h,f;return{setters:[function(t){e=t.h;a=t.r;i=t.c;n=t.H;o=t.g},function(t){r=t.i},function(t){d=t.c},function(t){s=t.F},function(t){u=t.g;l=t.a;c=t.c;b=t.d},function(t){h=t.c;f=t.p},function(){}],execute:function(){var p={day:"numeric",month:"long",weekday:"long"};var m={day:"numeric",month:"long",year:"numeric"};var g={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",p),formatterLong:new Intl.DateTimeFormat("fi-FI",m)},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",p),formatterLong:new Intl.DateTimeFormat("en-GB",m)},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",p),formatterLong:new Intl.DateTimeFormat("sv-SE",m)}};var v={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 y=function(t){var a=t.onClick,i=t.placeholder,n=t.inputLabel,o=t.valueAsDate,r=t.formattedValue,d=t.language,s=t.identifier,u=t.theme,l=t.disabled,c=t.error,b=t.role,h=t.required,f=t.tooltip,p=t.tooltipDirection,m=t.labelHidden,y=t.buttonRef,x=t.inputRef,w=t.onInput,k=t.onBlur,S=t.onFocus,D=t.hasFocus,M=t.accessibleActiveDescendant,L=t.accessibleControls,I=t.accessibleOwns,A=t.accessibleDescribedBy,j=t.accessibleLiveError,E=t.echoPlaceholder,z=t.caption;var F=g[d],C=F.buttonLabel,V=F.selected,U=F.formatterLong;var H={"duet-theme-turva":u==="turva","duet-date-input":true,"duet-date-input-has-focus":D};return e("div",{class:H},e("duet-input",{label:n,value:r,placeholder:i,id:s,disabled:l,theme:u,error:c,role:b,required:h,tooltip:f,tooltipDirection:p,margin:"none",labelHidden:m,accessibleAutocomplete:"none",onDuetChange:function(t){return t.stopImmediatePropagation()},onDuetInput:w,onDuetFocus:S,onDuetBlur:k,autoComplete:"off",disallowPattern:"[^0-9\\.\\-\\/]",expand:true,ref:x,accessibleActiveDescendant:M,accessibleControls:L,accessibleOwns:I,accessibleDescribedBy:A,accessibleLiveError:j,echoPlaceholder:E,caption:z,variation:"button"},e("slot",{name:"tooltip"}),e("button",{class:{"duet-date-button":true,"duet-no-label":m,"input-error":!!c},onClick:a,disabled:l,ref:y,type:"button",slot:"button"},e("duet-icon",{icon:v.svg,margin:"none",size:"small",color:"currentColor"}),e("duet-visually-hidden",null,C,o&&e("span",null,", ",V," ",U.format(o))))))};var x=/^(\d{1,2})[\.\-\/](\d{1,2})[\.\-\/](\d{4})$/;var w=/^(\d{4})-(\d{2})-(\d{2})$/;var k="dd.mm.yyyy";var S="YYYY-MM-DD";function D(t,e,a){var i=parseInt(a,10);var n=parseInt(e,10);var o=parseInt(t,10);var r=Number.isInteger(o)&&Number.isInteger(n)&&Number.isInteger(i)&&n>0&&n<=12&&i>0&&i<=31&&o>0;if(r){return new Date(o,n-1,i)}}function M(t){if(!t){return}var e=t.match(x);if(e){return D(e[3],e[2],e[1])}}function L(t){if(!t){return}var e=t.match(w);if(e){return D(e[1],e[2],e[3])}}function I(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 A(t){return I(t,k)}function j(t){return I(t,S)}function E(t,e){if(t==null||e==null){return false}return t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function z(t,e){var a=new Date(t);a.setDate(a.getDate()+e);return a}function F(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 C(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 V(t){return new Date(t.getFullYear(),t.getMonth(),1)}function U(t){return new Date(t.getFullYear(),t.getMonth()+1,0)}function H(t,e){var a=new Date(t);a.setMonth(e);return a}function _(t,e){var a=new Date(t);a.setFullYear(e);return a}function T(t,e,a){return Y(t,e,a)===t}function Y(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 B(t,e){var a=[];var i=t;while(!E(i,e)){a.push(i);i=z(i,1)}a.push(i);return a}function J(t,e){if(e===void 0){e=1}var a=F(V(t),e);var i=C(U(t),e);return B(a,i)}var O=function(t){var a=t.focusedDay,i=t.today,n=t.day,o=t.language,r=t.onDaySelect,d=t.onKeyboardNavigation,s=t.ref,u=t.inRange,l=t.isSelected;var c=E(n,i);var b=E(n,a);var h=n.getMonth()!==a.getMonth();var f=!u;var p=g[o].formatterShort;function m(t){r(t,n)}return e("td",{"data-day":j(n),class:"duet-date-table-cell","aria-label":p.format(n),role:"button",tabIndex:b?0:-1,onClick:m,onKeyDown:d,"aria-disabled":f||h,"aria-pressed":l?"true":"false",ref:s},e("span",{class:{"duet-date-table-button":true,outside:f,disabled:h,today:c}},n.getDate()))};function P(t,e){var a=[];for(var i=t;i<=e;i++){a.push(i)}return a}function N(t,e){var a=[];for(var i=0;i<t.length;i+=e){a.push(t.slice(i,i+e))}return a}function R(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 K(t){var e=Object.keys(t).map((function(e){return[R(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 Z=function(t){var a=t.selectedDate,i=t.focusedDate,n=t.labelledById,o=t.theme,r=t.language,d=t.min,s=t.max,u=t.onDateSelect,l=t.onKeyboardNavigation,c=t.focusedDayRef,b=t.onFocusEnter,h=t.onFocusExit;var f=g[r].dayLabels;var p=new Date;var m=J(i);function v(t){var e=t.currentTarget;var a=t.relatedTarget;if(a&&!e.contains(a)){h(t)}}return e("div",{role:"application"},e("table",{role:"presentation",class:{"duet-date-table":true,"duet-theme-turva":o==="turva"},"aria-labelledby":n,onFocusin:b,onFocusout:v},e("thead",null,e("tr",null,f.map((function(t){return e("th",{scope:"col"},e("span",{"aria-hidden":"true"},t.substr(0,2)))})))),e("tbody",null,N(m,7).map((function(t){return e("tr",{class:"duet-date-table-row"},t.map((function(t){return e(O,{day:t,today:p,language:r,focusedDay:i,inRange:T(t,d,s),isSelected:E(t,a),onDaySelect:u,onKeyboardNavigation:l,ref:function(e){if(e&&E(t,i)){c(e)}}})})))})))))};var q='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;position:relative;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:top}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-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 G=q;var W=t("duet_date_picker",function(){function t(t){var e=this;a(this,t);this.duetChange=i(this,"duetChange",7);this.duetBlur=i(this,"duetBlur",7);this.duetFocus=i(this,"duetFocus",7);this.proxyId=d("DuetDatePicker");this.monthSelectId=d("DuetDatePicker");this.yearSelectId=d("DuetDatePicker");this.dialogLabelId=d("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"}};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=u(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 o=70;var r=Math.abs(i)>=o&&Math.abs(n)<=o;var d=Math.abs(n)>=o&&Math.abs(i)<=o&&n>0;if(r){e.addMonths(i<0?1:-1)}else if(d){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=K({Escape:function(){return e.hide()},Esc:function(){return e.hide()}});this.handleKeyboardNavigation=K({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=L(a.dataset.day);e.handleDaySelect(t,i)};this.handleDaySelect=function(t,a){var i=L(e.min);var n=L(e.max);e.determineValidity(a);if(T(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=M(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=l();this.placeholderDefaults={fi:"pp.kk.vvvv",en:"dd.mm.yyyy",sv:"dd.mm.åååå"};this.placeholder=u(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(L(this.value));if(this._validity.valid){this.internalValidityError=""}};t.prototype.updateInternalValue=function(){if(this.value===null){return}var t=L(this.value);var e=M(this.inputValue);if(!t){this.inputValue=""}else if(!E(t,e)){this.inputValue=A(t)}};t.prototype.componentWillLoad=function(){r(this);this.determineValidity(L(this.value));this.updateInternalValue();h(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(){f(this.element,this.proxyId,this.name,this.value,this.required)};t.prototype.connectedCallback=function(){c(this,{prop:"placeholder",defaults:"placeholderDefaults"})};t.prototype.disconnectedCallback=function(){b(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(L(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(z(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(F(this.focusedDay))};t.prototype.endOfWeek=function(){this.setFocusedDay(C(this.focusedDay))};t.prototype.setMonth=function(t){var e=H(V(this.focusedDay),t);var a=U(e);var i=H(this.focusedDay,t);this.setFocusedDay(Y(i,e,a))};t.prototype.setYear=function(t){var e=_(V(this.focusedDay),t);var a=U(e);var i=_(this.focusedDay,t);this.setFocusedDay(Y(i,e,a))};t.prototype.setFocusedDay=function(t){this.focusedDay=Y(t,L(this.min),L(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 o=this.required&&t==null;var r=t?!T(t,null,L(this.max)):false;var d=t?!T(t,L(this.min)):false;this._validity={patternMismatch:false,customError:false,stepMismatch:false,tooLong:false,tooShort:false,typeMismatch:false,valueMissing:o,badInput:n,rangeUnderflow:d,rangeOverflow:r,valid:!(o||n||d||r)}};t.prototype.setValue=function(t){var e=j(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 a=L(this.value);var i=(a||this.focusedDay).getFullYear();var o=this.focusedDay.getMonth();var r=this.focusedDay.getFullYear();var d=g[this.language];var u=L(this.min);var l=L(this.max);var c=u!=null&&u.getMonth()===o&&u.getFullYear()===r;var b=l!=null&&l.getMonth()===o&&l.getFullYear()===r;var h=i-this.incrementYears;var f=i+this.incrementYears;if(u){h=Math.max(h,u.getFullYear())}if(l){f=Math.min(f,l.getFullYear())}return e(n,{key:"48dfac6edc6326788eda85f8bf70bf5b4a0ff4ad",class:{"duet-expand":this.expand,"duet-m-0":this.margin==="none"}},e("div",{key:"c3e6cf0d8d6e7ae3e917900e6c0093c53a13a44d",class:"duet-date"},e(y,{key:"a440f6697d91cd0d0de2ab2c7c17d595e39bf9ae",hasFocus:this.inputHasFocus,value:this.value,valueAsDate:a,formattedValue:this.inputValue,language:this.language,onInput:this.handleInputChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onClick:this.toggleOpen,name:this.name,disabled:this.disabled,error:this.error||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})),e("div",{key:"856f8608b56c0a24bc287b35cd6e6edf51b42e1f",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},e("duet-overlay",{key:"dbfa04c5bf7c3f3982b22597fcad4b1029aa4539",visible:this.open,"display-device":"x-small"}),e(s,{key:"443af141eb824070c60ee455ea5dbeec2a37cdb7",moveFocusTo:this.focusedDayNode}),e("div",{key:"107fd0fac02235e7567a3c4c39caa17209a45c29",class:"duet-date-dialog-wrapper",onKeyDown:this.handleEscKey,ref:function(e){return t.dialogWrapperNode=e}},e("duet-visually-hidden",{key:"9cb6d9c06ec92d0d21e7fb0529f3c406ae5b741a","aria-live":"polite"},d.keyboardInstruction),e("div",{key:"0752365441e95a42b6e3a17dc81aaa179342e5ca",class:"duet-date-dialog-mobile-header"},e("duet-label",{key:"6ffc63566ac1bd7484a2dacb2fcce822ce21c3c6",margin:"none"},this.label),e("button",{key:"248c0904984b9c5a67caf1892357d57e5ce60066",class:"duet-date-picker-close",ref:function(e){return t.closeButtonNode=e},onClick:function(){return t.hide()},type:"button"},e("duet-icon",{key:"af984cb01089e8d9406c5b6bf0e67d2eeceb3beb",name:"navigation-close-small",margin:"none",color:"currentColor",size:"xx-small"}),e("duet-visually-hidden",{key:"b8d0f1caeab887aa6b6651dcb193a7fa5525cbb7"},d.closeLabel))),e("div",{key:"dd6610096ef2f1c7d7e5d4e0d1fac457362c5faf",class:"duet-date-dialog-header"},e("div",{key:"d68c8dea57050c6fa051629f74add64e10cd38be",class:"duet-date-dialog-dropdowns"},e("duet-visually-hidden",{key:"58909421fde5e46cc2b1373e7e2d9532d6c1a03e"},e("h2",{key:"612d51f0e60b090a35458d90b0e9866ede633c83",id:this.dialogLabelId,"aria-live":"polite","aria-atomic":"true"},d.monthLabels[o]," ",this.focusedDay.getFullYear())),e("duet-visually-hidden",{key:"b2463d984236267298af6c391d215c89f28c6488"},e("label",{key:"42e90c9b899b24cc40ac4c84e71a2c1d65043f51",htmlFor:this.monthSelectId},d.monthSelectLabel)),e("div",{key:"6d721a0d53346e15ce27eadc9eead200c7919610",class:"duet-date-dialog-select"},e("select",{key:"87df3cd45d626c59170b2f3874af646db4977c70",id:this.monthSelectId,class:"duet-date-month-select",ref:function(e){return t.monthSelectNode=e},onChange:this.handleMonthSelect},d.monthLabels.map((function(t,a){return e("option",{key:t,value:a,selected:a===o,disabled:!T(new Date(r,a,1),u?V(u):null,l?U(l):null)},t)}))),e("div",{key:"eec62361035a4a7da7e473b35c83da7602db752b",class:"duet-date-dialog-select-label","aria-hidden":"true"},e("span",{key:"ec536ccf980e51e293a7e6eea022761c447fdbc1"},d.monthLabelsShort[o]),e("duet-icon",{key:"f1a8731882be82bc403d1eb52575895255322d6f",name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"}))),e("duet-visually-hidden",{key:"00a216897e04d308ce5750c8fa70e22e1ccc8138"},e("label",{key:"5ba713a95d1b746651a9d76bc0039373dfbeaa4d",htmlFor:this.yearSelectId},d.yearSelectLabel)),e("div",{key:"22dd0678e259984875717419a12860953b95cfb5",class:"duet-date-dialog-select"},e("select",{key:"d78d55d784a66a3add24104426f3bcc0a8b0d22b",id:this.yearSelectId,class:"duet-date-year-select",onChange:this.handleYearSelect},P(h,f).map((function(t){return e("option",{key:t,selected:t===r},t)}))),e("div",{key:"7d1ca2d567364c693db485929b0730e2d260c7ca",class:"duet-date-dialog-select-label","aria-hidden":"true"},e("span",{key:"2757b9f9910c6f2e1f7fb8b3d3adc65333bb679f"},this.focusedDay.getFullYear()),e("duet-icon",{key:"dc068d24ccf9116a5c2e76e3bbdea7c356eb8eee",name:"action-arrow-down-small",color:"currentColor",margin:"none",size:"xxx-small"})))),e("div",{key:"34b00c0ca21c0d748927721b8ee5d1b830e1ce3a",class:"duet-date-dialog-buttons"},e("duet-action-button",{key:"1afdaac3260fc7c94c8a138b44f3aa608ea1b59d",accessibleLabel:g[this.language].prevMonthLabel,actionName:g[this.language].prevMonthLabel,class:"duet-date-dialog-prev",onClick:this.handlePreviousMonthClick,disabled:c,"icon-name":"action-arrow-left-small"},d.prevMonthLabel),e("duet-action-button",{key:"c2bef35e310c1ccc274ee52e17dcf790c4c3eb99",accessibleLabel:g[this.language].nextMonthLabel,actionName:g[this.language].nextMonthLabel,class:"duet-date-dialog-next",onClick:this.handleNextMonthClick,disabled:b,"icon-name":"action-arrow-right-small"},d.nextMonthLabel))),e(Z,{key:"a2f57b6196e1ee4ac2f53ed81b484622a49297dc",selectedDate:a,focusedDate:this.focusedDay,onDateSelect:this.handleDaySelect,onKeyboardNavigation:this.handleKeyboardNavigation,labelledById:this.dialogLabelId,language:this.language,theme:this.theme,min:u,max:l,focusedDayRef:function(e){return t.focusedDayNode=e},onFocusEnter:this.enableActiveFocus,onFocusExit:this.disableActiveFocus})),e(s,{key:"be87303e8ba3831c94e72a8d07ca967ce35604a6",moveFocusTo:this.closeButtonNode})))};Object.defineProperty(t.prototype,"element",{get:function(){return o(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}());W.style=G}}}));
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function o(e){try{s(i.next(e))}catch(e){r(e)}}function u(e){try{s(i["throw"](e))}catch(e){r(e)}}function s(e){e.done?n(e.value):a(e.value).then(o,u)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(u){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(i=1,a&&(r=u[0]&2?a["return"]:u[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;if(a=0,r)u=[u[0]&2,r.value];switch(u[0]){case 0:case 1:r=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;a=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){n.label=u[1];break}if(u[0]===6&&n.label<r[1]){n.label=r[1];r=u;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(u);break}if(r[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];a=0}finally{i=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-7d32c253.system.js","./p-053b71e6.system.js","./p-cc5e6288.system.js","./p-e216bea4.system.js","./p-7a3ae8a9.system.js","./p-34d7dd10.system.js","./p-3300a0a4.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,n,i,a,r,o,u,s,c,d,b,l;return{setters:[function(e){t=e.r;n=e.h;i=e.H;a=e.g},function(e){r=e.a},function(e){o=e.D},function(e){u=e.i},function(e){s=e.g},function(e){c=e.f},function(e){d=e.g;b=e.c;l=e.d},function(){}],execute:function(){var h='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-item{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;height:100%;padding:12px 1.5rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:600;line-height:1.25;color:rgb(0, 75, 129);text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer}.duet-submenu-bar-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-submenu-bar-item:focus,.duet-submenu-bar-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-item .label{display:flex;gap:5px;align-items:center;justify-content:center}.duet-submenu-bar-item .leading-icon,.duet-submenu-bar-item .trailing-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-item .leading-icon,.duet-submenu-bar-item .trailing-icon{width:16px;height:16px}}.duet-submenu-bar-item .trailing-icon.trailing-icon-arrow{width:7px;height:7px}.duet-submenu-bar-item .external-icon{width:10px;height:10px}.duet-submenu-bar-item .trailing-icon{position:absolute;right:12px}.duet-submenu-bar-item[aria-expanded=true]{background:rgb(228, 241, 247)}.duet-submenu-bar-item[aria-expanded=true] .trailing-icon.rotate{transform:rotate(180deg)}.duet-submenu-bar-item.active{color:rgb(0, 119, 179)}.duet-submenu-bar-item.active.duet-theme-turva{color:rgb(126, 2, 35)}.duet-submenu-bar-item.active::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-submenu-bar-item.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-submenu-bar-item.duet-theme-turva.active .label::after{background:rgb(126, 2, 35)}.duet-submenu-bar-item.duet-theme-turva.active::after{background:rgb(126, 2, 35)}.duet-submenu-bar-item:hover{color:rgb(8, 42, 77);background:rgb(228, 241, 247)}.duet-submenu-bar-item:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(222, 224, 228)}.duet-submenu-bar-item:hover.duet-theme-turva.active{color:rgb(126, 2, 35)}';var m=h;var f=e("duet_submenu_bar_item",function(){function e(e){t(this,e);this.theme="";this.active=false;this.url=undefined;this.leadingIcon=undefined;this.trailingIcon=undefined;this.accessibleLabel=undefined;this.accessibleExpanded=undefined;this.accessiblePopup="false";this.accessibleLabelExternalDefaults=o;this.accessibleLabelExternal=d(this.accessibleLabelExternalDefaults);this.external=false}e.prototype.componentWillLoad=function(){u(this)};e.prototype.connectedCallback=function(){b(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})};e.prototype.disconnectedCallback=function(){l(this)};e.prototype.handleEscape=function(e){if(c(e)){var t=this.element.closest("duet-submenu-bar");t.open=false;t.setFocus()}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){setTimeout((function(){return t.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";var a=this.url?"link":"button";return n(i,{key:"bbd6de093fd02cb675b6a27822e8fd64ae2e6e36",role:"listitem"},n(t,{key:"857df988d8c2d9ee3c830455d97496903f43af24",target:!this.url?null:this.external?"_blank":"_self",ref:function(t){return e.itemElement=t},class:{"duet-submenu-bar-item":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.url,onKeyUp:function(t){return e.handleEscape(t)},"aria-current":this.active?"true":"false","aria-label":this.url&&s(this)||this.accessibleLabel,"aria-expanded":this.accessibleExpanded!=null?this.accessibleExpanded.toString():undefined,"aria-haspopup":this.accessiblePopup!=null?this.accessiblePopup.toString():undefined,role:a,rel:this.external?"noopener":undefined},this.leadingIcon&&n("duet-icon",{key:"77a2683b345776fdd073d562025d01ad7b42b8cf",class:"leading-icon",theme:this.theme,name:this.leadingIcon,size:"auto",margin:"none",color:"currentColor"}),n("div",{key:"e5e54d900b8e9861fd7f687c302a83e9a5d26087",class:"label"},n("span",{key:"7b8893ae6bd4a6209763cd1e88606495db78f84e",class:"label-text"},n("slot",{key:"bd0380cd2eee95bed2c16884fdc77827a7748da2"})),(this.trailingIcon||this.external)&&n("duet-icon",{key:"94315f7a4d4ab2444536fec20724bbbeaee83a65",class:{"trailing-icon":!!this.trailingIcon,"trailing-icon-arrow":this.trailingIcon==="action-arrow-down-small","external-icon":!!this.external,rotate:this.trailingIcon==="action-arrow-down-small"&&this.accessibleExpanded},theme:this.theme,name:this.trailingIcon?this.trailingIcon:this.external?r.title:"",margin:"none",size:"auto",color:"currentColor"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return e}());f.style=m}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{h as t,r as e,c as i,H as a,g as d,F as s}from"./p-b899b000.js";import{i as l}from"./p-aaa7a7bd.js";import{f as o,d as n}from"./p-9e371678.js";import{i as r}from"./p-a1b7f2a0.js";import{a as h,c as u,d as b,g as p,s as c}from"./p-e4d4cc92.js";import{p as m,s as f}from"./p-1004af75.js";import{b as g,a as y}from"./p-10c530d1.js";import{c as v}from"./p-5e59e970.js";import{p as x}from"./p-9c3c64b9.js";import{g as k,a as w}from"./p-d048f25c.js";const T=({data:e,groupId:i,alignment:a})=>{const d=`duet-editable-table duet-editable-table-content-${i}`;return"string"==typeof e?t("td",{innerHTML:e,class:d,part:`${i}content`,style:{verticalAlign:a}}):t("td",{class:d,part:`${i}content`,style:{verticalAlign:a}},e)},L=class{constructor(t){e(this,t),this.duetTableToggle=i(this,"duetTableToggle",7),this.duetMenuClick=i(this,"duetMenuClick",7),this.hasHeadSlotFirst=!1,this.hasHeadSlotLast=!1,this.hasFootSlot=!1,this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"},this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"},this.toggleColumn=(t,e)=>{e.preventDefault();const{sort_order:i,direction:a,index:d,key:s}=t;this.duetTableToggle.emit({sort_order:i,index:d,direction:a,key:s,component:"duet-editable-table",originalEvent:e})},this.handleKeyDown=(t,e)=>{r(e)&&this.toggleColumn(t,e)},this.language=h(),this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.actions=void 0,this.columns=void 0,this.rows=void 0,this.sortable=!1,this.groupId="",this.theme="",this.accessibleRole=void 0,this.hideHeadVisually=!1}componentWillLoad(){l(this),this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']"),this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']"),this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")}connectedCallback(){u(this)}disconnectedCallback(){b(this)}createLabel(e){const{sort_order:i,direction:a,index:d,label:s}=e,l=p(s);return this.sortable?t("span",{class:"duet-table-label","data-index":d},t("duet-button",{size:"small",icon:i&&1===a?"action-arrow-down-small":i&&-1===a?"action-arrow-up-small":"action-subtract-small","icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":!0,onClick:t=>this.toggleColumn(e,t),onKeyDown:t=>this.handleKeyDown(e,t)},l)):l}getSortedColumns(){return[...this.columns].sort(o(["index"]))}getRowSortOrder(){return[...this.columns].sort(o(["sort_order"])).filter((t=>t.sort_order)).map((t=>-1===t.direction?`-${t.key}`:t.key))}renderTableHeader(){if(!this.columns)return;const e=this.getSortedColumns();return t("tr",{class:{"duet-table-action-header":!!this.actions}},e.map((e=>{if(!1!==e.display){const i=this.createLabel(e);return""!==i?t("th",{scope:"col"},i):t("td",null)}})),this.actions&&t("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&t("duet-visually-hidden",null,this.actionColumnLabel[this.language])))}renderActions(e,i){if(this.actions)return t("td",{class:"duet-text-right"},this.actions.map((a=>t("duet-action-button",{actionMeta:Object.assign({},(null==e?void 0:e.meta)||{},{index:i}),actionId:(null==e?void 0:e.uid)||(null==e?void 0:e.id)||null,actionName:a.name,theme:this.theme,iconName:a.icon,iconColor:a.color,iconSize:a.size,background:a.background,"accessible-label":`${e.actionDescription||""} ${p(a.label)} `}))))}renderTableBody(){const e=this.getSortedColumns(),i=this.getRowSortOrder();return[...this.rows].sort(o(i)).map(((i,a)=>t("tr",{class:{"duet-table-action-row":!!this.actions,"duet-editable-table-row":!0,[`duet-editable-table-row-${this.groupId}`]:!0},"data-meta":JSON.stringify(i.meta)},e.map((e=>{if(!1!==e.display)return t(T,{data:i[e.key]?i[e.key]:i.item,groupId:this.groupId})})),this.actions&&this.renderActions(i,a))))}render(){return t(a,{class:{[`duet-editable-table-${this.variation}`]:!0,"duet-editable-table":!0,[`duet-editable-table-${this.theme}`]:!0,"duet-editable-table-scrollable":"none-scrollable"===this.breakpoint,"duet-editable-table-sortable":this.sortable,"duet-editable-table-actions":!!this.actions,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme}},t("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},t("table",{role:this.accessibleRole},t("caption",null,t("slot",{name:"tcaption"})),t("thead",null,this.hasHeadSlotFirst&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-last"})))),t("tbody",null,this.renderTableBody()),this.hasFootSlot&&t("tfoot",null,t("tr",null,t("td",{class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{name:"tfoot"})))))))}get element(){return d(this)}};L.style=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";const S={none:0,"with-links":16*parseFloat(m),"without-links":16*parseFloat(f)},E=class{constructor(t){e(this,t),this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)",this.handleMediaQueryChange=t=>{this.matchesBreakpoint=g.includes(this.breakpoint)?!t.matches:t.matches},this.matchesBreakpoint=!0,this.language=h(),this.theme=void 0,this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.hideHeadVisually=!1}watchLanguageStateHandler(t,e){t!==e&&setTimeout((()=>this.copyHeadingsToCells()),50)}connectedCallback(){this.mq=matchMedia("none"===this.breakpoint||"none-scrollable"===this.breakpoint?"all":y[this.breakpoint]),this.mq.addEventListener("change",n(this.handleMediaQueryChange,50)),this.handleMediaQueryChange(this.mq),this.observer=new MutationObserver((()=>n(this.copyHeadingsToCells(),50))),this.observer.observe(this.element,{childList:!0,subtree:!0})}componentWillLoad(){if(l(this),this.copyHeadingsToCells(),this.sticky&&"none-scrollable"===this.breakpoint&&console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence'),this.sticky){const t=S[this.stickyDistance];this.element.querySelectorAll(this.headingSelector).forEach((e=>e.style.top=`${t}px`))}}componentDidLoad(){this.observer&&this.observer.takeRecords(),u(this)}disconnectedCallback(){this.observer.disconnect(),this.observer=null,this.mq.removeListener(this.handleMediaQueryChange),this.mq=null,this.matchesBreakpoint=!0,b(this)}copyHeadingsToCells(){const t=this.element.querySelectorAll(this.headingSelector),e=this.element.querySelectorAll("tbody tr"),i=Array.from(t).map((t=>t.textContent.trim()));e.forEach((t=>{t.querySelectorAll("td").forEach(((t,e)=>{if(i[e]){const a=t.querySelector(".duet-table-cell-heading");if(!a||a.textContent!==i[e]){null==a||a.remove();const d=document.createElement("span");d.textContent=i[e],d.classList.add("duet-table-cell-heading"),d.setAttribute("aria-hidden","true"),d.inert=!0,t.prepend(d)}}}))}))}render(){return t(a,{key:"fe804ab98faa5a67150c751bb1c75fffd76d9979",class:{[`duet-table-${this.variation}`]:!0,"duet-table-flattened":!this.matchesBreakpoint,"duet-table-sticky":this.matchesBreakpoint&&this.sticky,"duet-table-scrollable":"none-scrollable"===this.breakpoint,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme,"duet-table-hide-head-visually":this.hideHeadVisually}},t("slot",{key:"5771327fbab3d42432e014a2f527de6c865d4999"}))}get element(){return d(this)}static get watchers(){return{language:["watchLanguageStateHandler"]}}};E.style='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table 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;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(8, 42, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}duet-table.duet-theme-turva th{color:rgb(143, 147, 158)}duet-table tbody th{font-weight:600;color:rgb(8, 42, 77)}duet-table.duet-theme-turva tbody th{color:rgb(23, 28, 58)}duet-table .duet-table-action-row td:last-child{justify-self:end;padding-right:20px !important;white-space:nowrap}duet-table span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(98, 121, 138);text-align:left}.duet-table-sticky thead th{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(222, 224, 228)}.duet-table-striped tbody:not(:first-of-type) th{padding-top:40px !important}.duet-table-striped tbody:only-of-type tr:nth-of-type(odd){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:only-of-type tr:nth-of-type(odd){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(4, 81, 128, 0.04)}.duet-table-striped.duet-theme-turva tbody:not(:only-of-type) tr:nth-of-type(even){background:rgba(23, 28, 58, 0.04)}.duet-table-striped tfoot td{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(222, 224, 228)}.duet-table-striped.duet-table-flattened tbody:not(:first-of-type) th{padding-top:20px !important}.duet-table-striped.duet-table-flattened tr{padding:20px !important}.duet-table-striped.duet-table-flattened tfoot td{border-top:0}.duet-table-striped.duet-table-flattened tfoot tr{border-top:1px solid rgb(212, 223, 229)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(222, 224, 228)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(98, 121, 138)}.duet-table-fixed th:first-child,.duet-table-minimal th:first-child,.duet-table-plain th:first-child{padding-left:0 !important}.duet-table-fixed th:last-child,.duet-table-minimal th:last-child,.duet-table-plain th:last-child{padding-right:0 !important}.duet-theme-turva.duet-table-fixed th,.duet-theme-turva.duet-table-minimal th,.duet-theme-turva.duet-table-plain th{border-bottom-color:rgb(113, 118, 132)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody th,.duet-theme-turva.duet-table-minimal tbody th,.duet-theme-turva.duet-table-plain tbody th{border-bottom-color:rgb(222, 224, 228)}.duet-table-fixed td,.duet-table-minimal td,.duet-table-plain td{padding:16px !important}.duet-table-fixed td:first-child,.duet-table-minimal td:first-child,.duet-table-plain td:first-child{padding-left:0 !important}.duet-table-fixed td:last-child,.duet-table-minimal td:last-child,.duet-table-plain td:last-child{padding-right:0 !important}.duet-table-fixed tbody td,.duet-table-minimal tbody td,.duet-table-plain tbody td{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-table-fixed tbody td,.duet-theme-turva.duet-table-minimal tbody td,.duet-theme-turva.duet-table-plain tbody td{border-bottom-color:rgb(222, 224, 228)}.duet-table-flattened.duet-table-fixed tbody:first-of-type th,.duet-table-flattened.duet-table-minimal tbody:first-of-type th,.duet-table-flattened.duet-table-plain tbody:first-of-type th{padding-top:0 !important}.duet-table-flattened.duet-table-fixed td,.duet-table-flattened.duet-table-minimal td,.duet-table-flattened.duet-table-plain td,.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{border-bottom:0}.duet-table-flattened.duet-table-fixed tr,.duet-table-flattened.duet-table-minimal tr,.duet-table-flattened.duet-table-plain tr{padding:20px 0 !important}.duet-table-flattened.duet-table-fixed tbody th,.duet-table-flattened.duet-table-minimal tbody th,.duet-table-flattened.duet-table-plain tbody th{padding-top:20px !important}.duet-table-flattened.duet-table-fixed tfoot td,.duet-table-flattened.duet-table-minimal tfoot td,.duet-table-flattened.duet-table-plain tfoot td{margin-bottom:4px !important}.duet-table-flattened.duet-table-fixed tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-minimal tbody:not(:only-of-type) tr:first-child,.duet-table-flattened.duet-table-plain tbody:not(:only-of-type) tr:first-child{border-bottom:0}.duet-table-plain.duet-table-flattened tbody tr{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(222, 224, 228)}.duet-table-minimal tbody tr,.duet-table-minimal tbody tr td{vertical-align:top;border-bottom:0 none}.duet-table-minimal tbody tr:last-of-type,.duet-table-minimal tbody tr:last-of-type td{border-bottom:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened tbody tr,.duet-table-minimal.duet-table-flattened tbody tr td{border-bottom:0 none}.duet-table-minimal.duet-table-flattened tbody tr td[data-heading]::before{display:none}.duet-table-minimal.duet-table-flattened tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-fixed table{table-layout:fixed}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td,.duet-table-fixed tbody tr td:first-child{padding:4px !important;vertical-align:text-bottom;border-bottom:0 none}.duet-table-fixed thead{display:none}.duet-table-fixed tbody tr,.duet-table-fixed tbody tr td{border-bottom:0 none}.duet-table-fixed:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-scrollable{position:relative;width:100%;overflow-x:auto;background:linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0)), linear-gradient(-90deg, #fff 0%, rgba(255, 255, 255, 0)) 100% 0, radial-gradient(farthest-side at 0% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)), radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)) 100% 0%;background-repeat:no-repeat;background-attachment:local, local, scroll, scroll;background-size:100px 100%, 100px 100%, 12px 100%, 12px 100%}.duet-table-selected-column{background:rgba(0, 119, 179, 0.08)}.duet-theme-turva .duet-table-selected-column{background:rgba(113, 118, 132, 0.08)}.duet-table-sortable tbody tr td:first-child,.duet-table-sortable thead tr th:first-child{padding:20px}.duet-table-sortable:not(.duet-table-flattened) tfoot{border-top:1px solid rgb(212, 223, 229)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(222, 224, 228)}.duet-table-actions table{table-layout:auto}.duet-table-actions thead th:last-child{width:1px;white-space:nowrap}.duet-editable-table-table.duet-table-flattened tr{display:grid;grid-template-columns:repeat(2, 1fr);grid-auto-rows:auto;gap:10px}.duet-editable-table-table.duet-table-flattened tr.duet-table-action-row td:last-child::before{padding:0;content:""}.duet-editable-table-table.duet-table-flattened td{grid-column:1/2}.duet-editable-table-table.duet-table-flattened td:first-child{grid-row:1;grid-column:1}.duet-editable-table-table.duet-table-flattened td:last-child{grid-row:1;grid-column:2}';const j=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}],$={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"},M=({label:e,categoryLabel:i})=>t("div",{class:"items-header",tabindex:"-1","aria-label":p($)},i&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},p(i)),t("duet-heading",{class:{"filename-header":!0,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},p(e))),z=(t,e,i)=>{const{allowedMimetypes:a,allowedExtensions:d,maxBytes:s}=e;let l=!1,o=k("default",i);if(t){const{name:e,type:n,size:r}=t,h=((t,e)=>{if(!e||!t)return!0;const i=e.split(",");let a=!1;return i.forEach((e=>{const i=e.split("/"),d=t.split("/");i[0]!==d[0]||i[1]!==d[1]&&"*"!==i[1]||(a=!0)})),a})(n,a),u="all"===d||""===d||" "===d||void 0===d||((t,e)=>{if(!e)return!0;const i=t.split(".");return e.split(",").includes(i[i.length-1])})(e.toLowerCase(),d),b=((t,e)=>!e||!t||e>=t)(r,s);h||(o=k("duet-upload-101",i)),u||(o=k("duet-upload-100",i)),b||(o=k("duet-upload-201",i)),l=h&&u&&b}else l=!1;return{valid:l,errorMessage:l?void 0:p(o.message),errorSystem:l?void 0:o.system_message,errorType:l?void 0:o.type}},F=({payload:t,options:e,onFailure:i,onSuccess:a,onProgress:d})=>{const{type:s="POST",xhr:l,uri:o,argument:n=null,headers:r=null}=e;l.open(s,`${o}${n||""}`,!0);const{data:h,name:u}=t;return r&&Object.keys(r).forEach((t=>{l.setRequestHeader(t,r[t])})),"POST"===s&&(l.onreadystatechange=()=>{l.readyState===XMLHttpRequest.DONE&&l.status>=200&&l.status<300&&a(l,u,l.status),l.readyState===XMLHttpRequest.DONE&&l.status>=300&&l.status<999&&i(l,u,l.status)},d(u)),l.send(h),l},C=class{constructor(a){e(this,a),this.duetChange=i(this,"duetChange",3),this.duetBlur=i(this,"duetBlur",7),this.duetFocus=i(this,"duetFocus",7),this.duetReady=i(this,"duetReady",7),this.duetDone=i(this,"duetDone",3),this.duetState=i(this,"duetState",3),this.duetDelete=i(this,"duetDelete",3),this.duetCancel=i(this,"duetCancel",3),this.duetProgress=i(this,"duetProgress",3),this.duetUpload=i(this,"duetUpload",3),this.linkClick=i(this,"linkClick",3),this.buttonId=v("DuetButton"),this.labelId=v("DuetLabel"),this.uploadId=v("DuetUpload"),this.filesInProgress=new Map,this.fileMaxReached=!1,this.bytesMaxReached=!1,this.filesToUploadExceedsLimit=!1,this.filesToUploadTotalSizeIsAboveMax=!1,this.internalStatusMessageLabel=void 0,this.itemRefs=new Map,this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"},this.kick=n((()=>{this.tick=Date.now()}),30),this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"},this.listenForActionEvents=()=>{this.element.addEventListener("duetActionEvent",(t=>{const e=t.detail,{action:i,id:a,originalEvent:d}=e;switch(i){case"delete":this.onDelete(a,d);break;case"cancel":this.onCancel(a,d)}}))},this.verifyValidity=()=>{const{invalid:t,valid:e}=this.getFilesAsArray(),i=this.valid;this.valid=0===t.length&&0!==e.length,this.valid!==i&&this.duetState.emit({originalEvent:void 0,data:{valid:this.valid,from:"componentWillRender"},component:"duet-upload"})},this.getGroupFromItemData=t=>t.valid&&100===t.progress?this.DefaultGroups.success:t.progress>0&&100!==t.progress?this.DefaultGroups.inprogress:t.valid?t.pending?this.DefaultGroups.pending:t.group?t.group:"none":this.DefaultGroups.failure,this.mapFilesToUploadItems=(e,i,a,d)=>i===this.DefaultGroups.success?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,d),type:"success",data:e,showLinks:this.showLinks,linkClickEvent:this.emitEvent?this.linkClick:void 0,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.inprogress?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,d),type:"inprogress",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.pending?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,d),type:"pending",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.failure?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,d),type:"failure",data:e,showLinks:this.showLinks,errorCodes:this.errorCodes,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):e.group?e.html:"none",this.genHashName=()=>Date.now().toString(36)+Math.random(),this.updateValueInMap=(t,e,i,a=!0)=>{try{const a=this.files.get(t);a[e]=i,this.files.set(t,a),this.external&&"url"!==e&&this.trackProgress(t,"uploaded"===e)}catch(t){}a&&this.kick()},this.updateProgress=(t,e)=>{t.lengthComputable?(i=>{this.updateValueInMap(e,"progress",i),this.onProgress(e,i,t)})(t.loaded/t.total*100):console.log("cant read progress")},this.trackProgress=(t,e=!1)=>{e?this.filesInProgress.delete(t):this.filesInProgress.set(t,"inprogress"),0===this.filesInProgress.size&&this.onDone()},this.getFilesAsArray=()=>{const t=[],e=[];return this.files.forEach((i=>{i.valid&&!i.deleted?t.push(i):i.valid||i.deleted||e.push(i)})),{valid:t,invalid:e}},this.resetFormFields=()=>{this.nativeInput.value=""},this.startUpload=async(t,e)=>{const{bytesMaxReached:i,fileMaxReached:a}=this.validateTotals();i||a?this.kick():(this.metaData=e,this.nativeInput.click(),this.onUpload(t,e),t.stopPropagation(),t.preventDefault())},this.transferComplete=t=>{this.updateValueInMap(t,"progress",100,!1),this.trackProgress(t,!0)},this.transferDone=(t,e,i)=>{this.updateValueInMap(e,"status",i,!1),this.updateValueInMap(e,"uploaded",!0,!1);try{const i=JSON.parse(t.response);this.updateValueInMap(e,"url",i.url)}catch(t){this.updateValueInMap(e,"url",null),console.error("Server did not respond with expected response {url: string}")}},this.transferDoneWithFailure=(t,e,i)=>{try{const{error:i}=JSON.parse(t.response);this.updateValueInMap(e,"error",{message:i.message,type:i.type},!1)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}"),this.updateValueInMap(e,"error",{type:i},!1)}this.updateValueInMap(e,"valid",!1,!0)},this.transferFailed=t=>{this.updateValueInMap(t,"error",w("duet-upload-001",this.errorCodes))},this.transferCanceled=t=>{this.files.delete(t),this.validateTotals(t),this.kick()},this.validateTotals=t=>{const e=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&t.size&&(i+=t.size)})),i>=e))})(0,this.maxBytesTotal),i=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&i++})),i>=e))})(0,this.maxFiles);return e&&t&&this.updateValueInMap(t,"error",w("duet-upload-202",this.errorCodes),!1),i&&t&&this.updateValueInMap(t,"error",w("duet-upload-301",this.errorCodes),!1),this.bytesMaxReached=e,this.fileMaxReached=i,{bytesMaxReached:e,fileMaxReached:i}},this.uploadFile=async(t,e=!1,i)=>{!e&&this.deferUpload?(this.updateValueInMap(t.item.name,"pending",!0,!1),this.updateValueInMap(t.item.name,"group","pending",!0)):e&&(this.updateValueInMap(t.item.name,"pending",!1,!1),this.updateValueInMap(t.item.name,"group",void 0,!0));try{if(!this.deferUpload||e){const e=new FormData;e.append("file",t.item),i&&e.append("key",i),e.append("uid",t.uid),e.append("name",t.item.name),e.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta})),t.xhr=await this.makeXHRPostRequest(e)}}catch(e){this.updateValueInMap(t.item.name,"valid",!1,!1)}},this.uploadPendingFiles=()=>{for(const[t,e]of Array.from(this.files.entries()))"pending"===e.group&&!0===e.pending&&this.uploadFile(e,!0,t)},this.getItemFromUID=t=>{for(const[e,i]of Array.from(this.files.entries()))if(i.uid===t)return{value:i,key:e};return null},this.handleExternalUploadButton=(t,e)=>{this.externalUploadButton&&(this.externalUploadButton.disabled=!(!t&&!e))},this.onDelete=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:d,fileMaxReached:s}=this.validateTotals();this.handleExternalUploadButton(d,s),this.kick(),this.duetDelete.emit({originalEvent:e,data:{deletion:a},component:"duet-upload"}),this.external||a.pending||this.makeXHRDeleteRequest(a),this.resetFormFields()},this.onCancel=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:d,fileMaxReached:s}=this.validateTotals();if(this.handleExternalUploadButton(d,s),!this.external){const{xhr:t}=a;t&&t.abort()}this.kick(),this.resetFormFields(),this.duetCancel.emit({originalEvent:e,data:{cancelled:a},component:"duet-upload"})},this.onUpload=(t,e)=>{this.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,component:"duet-upload"})},this.onProgress=(t,e,i)=>{this.duetChange.emit({originalEvent:i,data:{key:t,percentComplete:e},component:"duet-upload"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,component:"duet-upload"})},this.onReady=()=>{this.duetReady.emit({component:"duet-upload"})},this.onDone=()=>{this.duetDone.emit({component:"duet-upload",data:{files:this.files}})},this.filterMap=()=>{const t=Array.from(this.files.values()),e=[],i=[],a=[],d=[];let s=!1;return t.forEach((t=>{const l=this.getGroupFromItemData(t);t.meta&&t.meta.badges&&(s=!0),l===this.DefaultGroups.success?d.push({uid:t.uid,data:t}):l===this.DefaultGroups.inprogress?e.push({uid:t.uid,data:t}):l===this.DefaultGroups.pending?a.push({uid:t.uid,data:t}):l===this.DefaultGroups.failure?i.push({uid:t.uid,data:t}):t.group&&e.push({uid:t.uid,data:t})})),{pending:a,failure:i,success:d,inprogress:e,hasCategory:s}},this.getActions=(t,e)=>e.filter((e=>e.map.includes(t))),this.renderUploadedItems=()=>{this.itemRefs.clear();const e=this.filterMap(),i=e.hasCategory,a=this.hideCancelButton?this.actions.filter((t=>"cancel"!==t.name)):this.actions,d=this.groups.map((d=>{const l=e[d.id];if(null==l?void 0:l.length)return t(s,null,!this.hideGroups&&t(M,{categoryLabel:i?this.categoryLabel:void 0,label:d.label}),l.map((t=>this.mapFilesToUploadItems(t.data,d.id,i,a))))}));return t(s,null,this.showUploadedItemsHeader&&t(M,{categoryLabel:i?this.categoryLabel:void 0,label:this.uploadedItemsHeaderLabel}),d)},this.tick=Date.now(),this.accessibleActiveDescendant=void 0,this.accessibleDescribedBy=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.external=!1,this.middleware=null,this.deferUpload=!1,this.hideButton=!1,this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}],this.uri=void 0,this.showLinks=!1,this.caption=void 0,this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, yhteensä lähetettävänä {filesTotal}.",inProgressWithErrors:"Lähetetään {filesInProgress}, lähetetty {filesUploaded}, yhteensä lähetettävänä {filesTotal}, {filesWithErrors} epäonnistui",done:"Lähetys valmis, {filesTotal} lisätty onnistuneesti",doneWithErrors:"Lähetys valmis, {filesUploaded} lisätty onnistuneesti, {filesWithErrors} epäonnistui",files:"tiedostoa",file:"tiedosto"},sv:{inProgress:"Laddar upp {filesUploaded} av {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Uppladdningen slutförd, {filesTotal} har lagts till",doneWithErrors:"Uppladdningen slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Uploading {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"Upload completed, {filesTotal} added successfully",doneWithErrors:"Upload completed, {filesUploaded} added successfully, {filesWithErrors} failed.",files:"files",file:"file"}},this.statusMessageLabel=p(this.statusLabelDefaults),this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"},this.buttonLabel=p(this.buttonLabelDefaults),this.accessibleButtonLabel=void 0,this.theme="",this.disabled=!1,this.identifier=void 0,this.margin="auto",this.required=!1,this.alignment="middle",this.hideGroups=!1,this.files=new Map,this.valid=!this.required,this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"},this.label=p(this.labelDefaults),this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."},this.description=p(this.descriptionDefaults),this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."},this.fileListEmpty=p(this.fileListEmptyDefaults),this.error="",this.errorCodes=j,this.name=void 0,this.maxBytes=2e8,this.maxBytesTotal=void 0,this.maxFiles=99,this.allowedExtensions="all",this.allowedMimetypes="",this.multiple=!0,this.limitSelection=!1,this.hideCancelButton=!1,this.value=void 0,this.externalUploadButtonId=void 0,this.captionOnBottom=!1,this.showUploadedItemsHeader=!1,this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"},this.headerHeadingLevel="h3",this.hideHeader=!1,this.emitEvent=!1,this.actionButtonTitles={cancel:!1,delete:!1},this.renameDuplicates=!1,this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}watchValidHandler(t,e){t!==e&&this.kick()}componentWillLoad(){this.internalStatusMessageLabel="string"==typeof this.statusMessageLabel?c(this.groups):this.statusMessageLabel,l(this),this.listenForActionEvents(),this.onReady(),this.externalUploadButton=document.querySelector(`#${this.externalUploadButtonId}`),this.processedButtonTitles=x(this.actionButtonTitles)}componentWillRender(){this.verifyValidity()}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async upload(t){const{bytesMaxReached:e,fileMaxReached:i}=this.validateTotals();if(e||i)return this.handleExternalUploadButton(e,i),void this.kick();this.metaData=t,this.nativeInput.click()}async uploadPending(){this.uploadPendingFiles()}async refresh(){this.kick(),await this.setFocus()}async getFiles(){return!(!this.files||0===this.files.size)&&this.getFilesAsArray()}async updateValue(t,e,i){this.updateValueInMap(t,e,i)}async focusActionButton(t){var e;await(null===(e=this.itemRefs.get(t))||void 0===e?void 0:e.focusActionButton())}render(){const e=this.identifier||this.uploadId,i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024),d=Math.round(this.maxBytes/1024/1024);let l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());return l=l.replace(/{maxbytes}/g,`${d.toString()} MB`),l=l.replace(/{maxbytestotal}/g,`${i.toString()} MB`),l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", ")),this.externalUploadButton&&(this.externalUploadButton.accessibleLabel=`${this.externalUploadButton.innerText}. ${l}`),t(a,{key:"d9a06a80ee3dbe6c14afeba29034210c0876e030",class:{"duet-m-0":"none"===this.margin}},t("duet-fieldset",{key:"91dd6b9b6702eda6b91bde8051ba3dc19f61897f","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},t("slot",{key:"db5e4b9f271fe451b5d22f7400ec4c0d3a6f138e",name:"header"}),!this.files.size&&t("duet-empty-state",{key:"27ba6010ee533701bf11a149427d2216c8ce29d9",id:this.labelId,part:this.identifier?`${this.identifier}-empty-state`:"duet-upload-empty-state",icon:"messaging-attachment"},t("duet-paragraph",{key:"e89c1d5f4ec256d1e3a78c3c39d2e70abf10e8e6",margin:"none"},this.fileListEmpty)),!!this.files.size&&t("slot",{key:"42eadc522cef6c31bf92926536586c335f70aa29",name:"fileheader"}),!!this.files.size&&t("duet-upload-aria-status",{key:"73e49bd8b917493fe195e9a41485bc92f7b28f87",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&t("slot",{key:"f4af2ea636e86ad99ea095816a947160842e473a",name:"filefooter"}),t("slot",{key:"4f5808dd9f1d1f59a22358e889b465603fcf66e5",name:"uploadfooter"}),this.captionOnBottom&&t("duet-caption",{key:"098d617ed6b92abb83204dfd0c02f38aee307091",margin:"none",size:"small"},t("div",{key:"df692c821b64ef7d2a8e00f1b798e0d6ea28589b",class:"upload-bottom-caption"},l)),t("slot",{key:"f5c2d00cef8aea857176ccfa0cf3ff52eb4b07ec",name:"afterfooter"}),!this.hideButton&&t(s,{key:"6950dea516b4b35f4e5fb7c9d37afd340a151a14"},t("duet-spacer",{key:"24eac12d73d7ed5ad8fab3be0777d7452bf326d7",size:"large"}),t("duet-button",{key:"fb63b67dfcd988535867d4fde83bd13c110d9f1c",id:this.buttonId,onClick:this.startUpload,"accessible-controls":e,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||`${this.buttonLabel}. ${l}`,"accessible-owns":e,size:"small",variation:"secondary",fixed:!0,icon:"action-add-circle",part:this.identifier?`${this.identifier}-button-upload`:"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&t(s,{key:"749d1166c084a9b2919b909ee7ab9246d2c0ebe7"},t("duet-spacer",{key:"907c8f0f2709cf387eef1b2bb815335ded8ad30d",size:"medium"}),t("duet-alert",{key:"792b424865e2a20fe34eeb248cbd00e376bcd646",part:this.identifier?`${this.identifier}-error-notification`:"duet-upload-error-notification"},this.fileMaxReached&&w("duet-upload-301",this.errorCodes),this.bytesMaxReached&&w("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&w("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&w("duet-upload-203",this.errorCodes))),t("duet-visually-hidden",{key:"31b3a469d2722362b44ee1e89e468f79e313fc7e","aria-hidden":"true"},t("input",{key:"ee5f9699f2d29c0ac92d0ba78c3e007a0cc327cd",ref:t=>{this.nativeInput=t},accept:this.limitSelection?`${this.allowedMimetypes},${this.allowedExtensions}`:void 0,onBlur:this.onBlur,onFocus:this.onFocus,onChange:t=>this.onChange(t),type:"file",class:{"duet-upload":!0},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))}makeXHRPostRequest(t){const e=new XMLHttpRequest,i=t.get("name");e.upload.addEventListener("progress",(t=>{this.updateProgress(t,i)})),e.upload.addEventListener("load",(()=>{this.transferComplete(i)})),e.upload.addEventListener("error",(()=>{this.transferFailed(i)})),e.upload.addEventListener("abort",(()=>{this.transferCanceled(i)}));let a={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:e,argument:null,headers:void 0},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(a=this.middleware(a)),F(a)}makeXHRDeleteRequest(t){const{uid:e,item:i}=t,a=new XMLHttpRequest;let d={payload:{data:null,name},options:{type:"DELETE",xhr:a,uri:this.uri,argument:`?key=${e}&name=${i.name}`,headers:{"x-fileuid":e,"x-filename":i.name}},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(d=this.middleware(d)),F(d)}escapeSpecialCharacters(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")}getRenamedFileName(t,e){const i=new RegExp(`${this.escapeSpecialCharacters(t)} \\(\\d+\\).${e}`),a=Array.from(this.files.entries()).map((t=>{const[e,i]=t;return e})).filter((a=>i.test(a)||a===`${t}.${e}`)).sort(((t,e)=>t.split(".").slice(0,-1).join(".")>e.split(".").slice(0,-1).join(".")?1:-1)).pop().split(".").slice(0,-1).join(".");if(a===t)return`${t} (1).${e}`;const d=parseInt(a.split("(").pop().slice(0,-1));return`${t} (${d+1}).${e}`}renameFiles(t){return t.map((t=>{if(this.files.get(t.name)){const e=t.name.split("."),i=e.pop(),a=e.join("."),d=this.getRenamedFileName(a,i);return new File([t],d,{type:t.type,lastModified:t.lastModified})}return t}))}async onChange(t){var e;let i=Array.from(null===(e=this.nativeInput)||void 0===e?void 0:e.files);if(this.filesToUploadExceedsLimit=!1,this.files.size+i.length>this.maxFiles)return this.filesToUploadExceedsLimit=!0,void this.kick();if(this.filesToUploadTotalSizeIsAboveMax=!1,((t,e,i)=>{let a=0;return!!(i&&(this.files.forEach((t=>{t.valid&&t.size&&(a+=t.size)})),e.forEach((t=>{t.size&&(a+=t.size)})),a>=i))})(0,i,this.maxBytesTotal))return this.filesToUploadTotalSizeIsAboveMax=!0,void this.kick();if(i){this.renameDuplicates&&(i=this.renameFiles(i));for(const t of i){const{valid:e,errorMessage:i,errorType:a,errorSystem:d}=z(t,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),s={uid:this.genHashName(),item:t,size:t.size,meta:this.metaData,uploaded:!1,valid:e,error:{type:e?void 0:a,message:e?void 0:i,system_message:e?void 0:d},progress:0,deleted:!1,xhr:!1,url:!1};this.files.set(t.name,s),e&&!this.external?await this.uploadFile(s):e&&this.external?(this.updateValueInMap(s.item.name,"pending",!0,!1),this.updateValueInMap(s.item.name,"group","pending",!0)):e||this.updateValueInMap(t.name,"valid",!1,!0),this.kick()}}this.resetFormFields(),this.metaData=void 0,this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"})}get element(){return d(this)}static get watchers(){return{valid:["watchValidHandler"]}}};C.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(212, 223, 229)}@media (min-width: 36em){.upload-item-row{flex-direction:row;gap:10px}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;margin-left:-8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;margin-left:auto;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";export{L as duet_editable_table,E as duet_table,C as duet_upload}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,h as t,H as i,g as a}from"./p-b899b000.js";import{a as r}from"./p-f11208c3.js";import{D as o}from"./p-beeb12f1.js";import{i as n}from"./p-aaa7a7bd.js";import{g as s}from"./p-f0cc5629.js";import{g as d,c as m,d as u}from"./p-e4d4cc92.js";import"./p-9c3c64b9.js";const c=class{constructor(t){e(this,t),this.theme="",this.active=!1,this.url=void 0,this.leadingIcon=void 0,this.trailingIcon=void 0,this.accessibleLabel=void 0,this.accessibleExpanded=void 0,this.accessiblePopup="false",this.accessibleLabelExternalDefaults=o,this.accessibleLabelExternal=d(this.accessibleLabelExternalDefaults),this.external=!1}componentWillLoad(){n(this)}connectedCallback(){m(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})}disconnectedCallback(){u(this)}async setFocus(e){setTimeout((()=>this.itemElement.focus(e)),200)}render(){const e=this.url?"a":"button";return t(i,{key:"9a4fa3850a59a9e92ed6453f83ba66510ba98eed",role:"listitem"},t(e,{key:"89b1d29049ab6f5a5cde267a3ff6488c1fc9ee6f",target:this.url?this.external?"_blank":"_self":null,ref:e=>this.itemElement=e,class:{"duet-menu-bar-item":!0,"duet-theme-turva":"turva"===this.theme,active:this.active},href:this.url,role:"a"===e?"link":"button","aria-current":this.active?"true":"false","aria-label":this.url&&s(this)||this.accessibleLabel,"aria-expanded":null!=this.accessibleExpanded?this.accessibleExpanded.toString():void 0,"aria-haspopup":null!=this.accessiblePopup?this.accessiblePopup.toString():void 0,rel:this.external?"noopener":void 0},this.leadingIcon&&t("duet-icon",{key:"4c323e8083d3dabfa32c7ad10d5cef783c25b50e",class:"leading-icon",size:"auto",name:this.leadingIcon,margin:"none",theme:this.theme,color:"currentColor"}),t("slot",{key:"2cdf47895c4330542078da87b401ca6e51467c6c"}),(this.trailingIcon||this.external)&&t("duet-icon",{key:"e0c912d7168f8ae6072f5329d3d451da30adf4db",class:{"trailing-icon":!!this.trailingIcon,"trailing-icon-arrow":"action-arrow-down-small"===this.trailingIcon,"external-icon":!!this.external,rotate:"action-arrow-down-small"===this.trailingIcon&&this.accessibleExpanded},theme:this.theme,name:this.trailingIcon?this.trailingIcon:this.external?r.title:"",margin:"none",size:"auto",color:"currentColor"})))}get element(){return a(this)}};c.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-menu-bar-item{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:inherit;font-weight:inherit;color:inherit;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer}.duet-menu-bar-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-item:focus,.duet-menu-bar-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-item .leading-icon,.duet-menu-bar-item .trailing-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-item .leading-icon,.duet-menu-bar-item .trailing-icon{width:16px;height:16px}}.duet-menu-bar-item .trailing-icon.trailing-icon-arrow{width:7px;height:7px}.duet-menu-bar-item .external-icon{width:10px;height:10px}.duet-menu-bar-item[aria-expanded=true]{color:rgb(0, 119, 179)}.duet-menu-bar-item[aria-expanded=true] .trailing-icon.rotate{transform:rotate(180deg)}.duet-menu-bar-item.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-menu-bar-item.duet-theme-turva[aria-expanded=true]{color:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-item{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-item{padding:0 28px}}.duet-menu-bar-item.active{color:rgb(0, 119, 179)}.duet-menu-bar-item.active::after{position:absolute;top:auto;bottom:2px;left:0;z-index:1;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}@media (min-width: 62em){.duet-menu-bar-item.active::after{z-index:auto;height:2px}}.duet-menu-bar-item.active.duet-theme-turva{color:rgb(198, 12, 48)}.duet-menu-bar-item.active.duet-theme-turva::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-item:hover{color:rgb(0, 119, 179)}.duet-menu-bar-item:hover.duet-theme-turva{color:rgb(198, 12, 48)}}';export{c as duet_menu_bar_item}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,h as e,H as a,g as o}from"./p-b899b000.js";import{a as r}from"./p-f11208c3.js";import{D as i}from"./p-beeb12f1.js";import{i as d}from"./p-aaa7a7bd.js";import{g as s}from"./p-f0cc5629.js";import{g as n,c as b,d as l}from"./p-e4d4cc92.js";import"./p-9c3c64b9.js";const c=class{constructor(e){t(this,e),this.theme="",this.variation="default",this.active=!1,this.url=void 0,this.leadingIcon=void 0,this.trailingIcon=void 0,this.accessibleLabel=void 0,this.accessibleExpanded=void 0,this.accessiblePopup="false",this.accessibleLabelExternalDefaults=i,this.accessibleLabelExternal=n(this.accessibleLabelExternalDefaults),this.external=!1,this.badge=!1}componentWillLoad(){d(this)}connectedCallback(){b(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})}disconnectedCallback(){l(this)}async setFocus(t){setTimeout((()=>this.itemElement.focus(t)),200)}render(){const t=this.url?"a":"button",o="primary"===this.variation||"negative"===this.variation||"turva"===this.theme&&"secondary"===this.variation?"primary":"secondary"===this.variation?"secondary":"default";return e(a,{key:"dd49a814af5543b3c5322f9ba0f14b94c1f2c0ff",role:"listitem"},e(t,{key:"99e8b130d9de3a738aa494473908afa59fcb5c9d",target:this.url?this.external?"_blank":"_self":null,ref:t=>this.itemElement=t,class:{"duet-toolbar-item":!0,"duet-theme-turva":"turva"===this.theme,active:this.active,[o]:!0},href:this.url,role:"a"===t?"link":"button","aria-current":this.active?"true":"false","aria-label":this.url&&s(this)||this.accessibleLabel,"aria-expanded":null!=this.accessibleExpanded?this.accessibleExpanded.toString():void 0,"aria-haspopup":null!=this.accessiblePopup?this.accessiblePopup.toString():void 0,rel:this.external?"noopener":void 0},this.leadingIcon&&e("div",{key:"f2cb988f3e1224d79d1fe65d289e08364b43d75f",class:"duet-toolbar-icon"},e("duet-icon",{key:"8608706b7b512cfe61e35f4eb63a41804ac0085d",size:"x-small",name:this.leadingIcon,margin:"none",theme:this.theme,color:"currentColor"}),this.badge&&e("div",{key:"c4a5b2eba922d2bcaf1e90c63d496d6e0e8a282f",class:"duet-toolbar-badge"})),e("slot",{key:"c4c8114069e098da845703905b77f15c4bb1c743"}),(this.trailingIcon||this.url&&this.external)&&e("div",{key:"7f21cf0cd2a5aeca2685360049504e5daab02c3b",class:"duet-toolbar-icon"},e("duet-icon",{key:"0c39d469df56947c3cec7f2e377906f0f48d0ef6",class:{"trailing-icon":!!this.trailingIcon,"trailing-icon-arrow":"action-arrow-down-small"===this.trailingIcon,"external-icon":!(!this.url||!this.external),rotate:"action-arrow-down-small"===this.trailingIcon&&this.accessibleExpanded},theme:this.theme,name:this.trailingIcon?this.trailingIcon:this.url&&this.external?r.title:"",margin:"none",size:"auto",color:"currentColor"}),this.badge&&"action-arrow-down-small"!==this.trailingIcon&&e("div",{key:"a59af5319ed0f896c0ba81b8c6234d7ebed0d3f2",class:"duet-toolbar-badge"}))))}get element(){return o(this)}};c.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-toolbar-item{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 16px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 75, 129);text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer}.duet-toolbar-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-toolbar-item:focus,.duet-toolbar-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-toolbar-item:focus.primary{box-shadow:0 0 0 4px rgba(8, 42, 77, 0.3), 0 0 0 1px #033866}.duet-theme-turva .duet-toolbar-item:focus.primary,.duet-toolbar-item:focus.primary.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-toolbar-item .duet-toolbar-icon{position:relative;display:inline-flex;font-size:0;line-height:normal;vertical-align:baseline}.duet-toolbar-item .duet-toolbar-icon .duet-toolbar-badge{position:absolute;top:0;left:11px;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-toolbar-item .duet-toolbar-icon .duet-toolbar-badge{background:rgb(247, 178, 40)}.duet-toolbar-item .trailing-icon{width:16px;height:16px}.duet-toolbar-item .trailing-icon.trailing-icon-arrow{width:7px;height:7px}.duet-toolbar-item .external-icon{width:10px;height:10px}.duet-toolbar-item[aria-expanded=true] .trailing-icon.rotate{transform:rotate(180deg)}.duet-toolbar-item.primary,.duet-toolbar-item.secondary{color:rgb(255, 255, 255)}.duet-toolbar-item.primary[aria-expanded=true],.duet-toolbar-item.secondary[aria-expanded=true]{background:rgba(8, 42, 77, 0.2)}.duet-toolbar-item.primary duet-icon,.duet-toolbar-item.secondary duet-icon{color:rgb(198, 225, 238)}.duet-toolbar-item.primary[aria-expanded=true]{background:rgba(8, 42, 77, 0.2)}.duet-toolbar-item.secondary[aria-expanded=true]{background:rgb(3, 56, 102)}.duet-toolbar-item.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-toolbar-item.duet-theme-turva.primary{color:rgb(255, 255, 255)}.duet-toolbar-item.duet-theme-turva.primary[aria-expanded=true]{background:rgba(23, 28, 58, 0.2)}.duet-toolbar-item.duet-theme-turva.primary duet-icon{color:rgb(255, 185, 190)}.duet-toolbar-item:hover{color:rgb(8, 42, 77);background:rgb(240, 247, 250)}.duet-toolbar-item:hover.primary,.duet-toolbar-item:hover.secondary{color:rgb(255, 255, 255)}.duet-toolbar-item:hover.primary{background:rgba(8, 42, 77, 0.2)}.duet-toolbar-item:hover.secondary{background:rgb(3, 56, 102)}.duet-toolbar-item:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 247, 250)}.duet-toolbar-item:hover.duet-theme-turva.primary{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}.duet-toolbar-item.active{color:rgb(8, 42, 77)}.duet-toolbar-item.active.primary,.duet-toolbar-item.active.secondary{font-weight:600;color:rgb(255, 255, 255)}.duet-toolbar-item.active.primary::after,.duet-toolbar-item.active.secondary::after{display:none}.duet-toolbar-item.active.primary{background:rgba(8, 42, 77, 0.2)}.duet-toolbar-item.active.secondary{background:rgb(3, 56, 102)}.duet-toolbar-item.active::after{position:absolute;top:auto;bottom:1px;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-toolbar-item.active::after.duet-theme-turva{background:rgb(198, 12, 48)}.duet-toolbar-item.active.duet-theme-turva{color:rgb(23, 28, 58)}.duet-toolbar-item.active.duet-theme-turva::after{background:rgb(198, 12, 48)}.duet-toolbar-item.active.duet-theme-turva.primary{color:rgb(255, 255, 255);background:rgba(23, 28, 58, 0.2)}';export{c as duet_toolbar_item}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,c as e,h as i,H as a,g as o}from"./p-b899b000.js";import{f as n}from"./p-d004da5f.js";import{i as s}from"./p-aaa7a7bd.js";import{c as r}from"./p-5e59e970.js";import{c as d,r as u}from"./p-df7874f9.js";import{f as l,j as h,e as p,d as c,a as b}from"./p-a1b7f2a0.js";import{a as m,c as g,d as v,g as f}from"./p-e4d4cc92.js";import{c as x,p as w}from"./p-4e261200.js";import{g as y}from"./p-10c530d1.js";import"./p-9c3c64b9.js";import"./p-1004af75.js";const k={search:n,email:{title:"form-email",tags:"form email",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 23.999c-3.205 0-6.218-1.248-8.484-3.514S.001 15.206.001 12.001s1.248-6.218 3.514-8.485C5.782 1.25 8.795.001 12 .001s6.218 1.248 8.485 3.514A11.92 11.92 0 0 1 24 12v2.25A3.754 3.754 0 0 1 20.25 18a3.77 3.77 0 0 1-3.48-2.365A6.009 6.009 0 0 1 12 18c-3.308 0-6-2.692-6-6s2.692-6 6-6 6 2.692 6 6v2.25c0 1.241 1.009 2.25 2.25 2.25s2.25-1.009 2.25-2.25V12c0-2.804-1.092-5.441-3.075-7.424A10.433 10.433 0 0 0 12 1.501c-2.804 0-5.441 1.092-7.424 3.075S1.501 9.196 1.501 12c0 2.805 1.092 5.441 3.075 7.424s4.619 3.074 7.423 3.074c2.257 0 4.494-.746 6.299-2.1a.749.749 0 1 1 .9 1.199A12.049 12.049 0 0 1 12 23.999zM12 7.5c-2.481 0-4.5 2.019-4.5 4.5s2.019 4.5 4.5 4.5 4.5-2.019 4.5-4.5-2.019-4.5-4.5-4.5z"/></svg>'}},C=class{constructor(i){t(this,i),this.duetInput=e(this,"duetInput",7),this.duetChange=e(this,"duetChange",3),this.duetBlur=e(this,"duetBlur",7),this.duetClear=e(this,"duetClear",7),this.duetFocus=e(this,"duetFocus",7),this.inputId=r("DuetInput"),this.proxyId=r("DuetInput"),this.clearId=r("DuetInputClear"),this.labelId=r("DuetLabel"),this.topCaptionId=r("DuetCaptionTop"),this.topCaptionPlaceholderId=r("DuetCaptionPlaceholderTop"),this.chipCountId=r("DuetInputChipCount"),this.errorId=r("DuetError"),this.disallowPatternRegex=null,this.clearLabel={en:"Clear",fi:"Tyhjennä",sv:"Rensa"},this.timeAnnouncement={en:"Time",fi:"Aika",sv:"Tid"},this.showPasswordLabel={en:"Show password",fi:"Näytä salasana",sv:"Visa lösenord"},this.hidePasswordLabel={en:"Hide password",fi:"Piilota salasana",sv:"Dölj lösenord"},this.passwordShownAriaAnnouncement={en:"Password is shown",fi:"Salasana näytetään",sv:"Lösenordet visas"},this.passwordHiddenAriaAnnouncement={en:"Password is hidden",fi:"Salasana on piilotettu",sv:"Lösenordet är dolt"},this.chipsSelectedDesriptionLabel={en:"selected",fi:"valittu",sv:"valt"},this.onInput=t=>{this.disallowPatternRegex&&d(this.nativeInput,this.disallowPatternRegex),this.chips&&this.clearChipSelection(),this.value=this.nativeInput.value||"",this.duetInput.emit({originalEvent:t,value:this.value,component:"duet-input"})},this.onBlur=t=>{t.relatedTarget!==this.nativeInput&&t.relatedTarget!==this.togglePasswordRevealedButton&&("revealable"===this.variation&&this.isPasswordRevealed&&(this.isPasswordRevealed=!1),this.isFocused=!1,this.duetBlur.emit({originalEvent:t,value:this.value,component:"duet-input"}))},this.onFocus=t=>{this.clearChipSelection(),this.isFocused=!0,this.duetFocus.emit({originalEvent:t,value:this.value,component:"duet-input"})},this.onClear=t=>{this.duetClear.emit({originalEvent:t,value:this.value,component:"duet-input"})},this.getAriaDescribedBy=()=>{const t=[];if(this.isCaptionVisible&&this.topCaptionId&&t.push(this.topCaptionId),this.accessibleDescribedBy&&t.push(this.accessibleDescribedBy),this.chips){const e=this.getAllChips();e.length&&(t.push(this.chipCountId),e.forEach((e=>t.push(e.id))))}return this.error&&t.push(this.errorId),t.length>0?t.join(" "):null},this.handleClearClick=t=>{const e=this.clearInput();return this.onClear(t),e},this.keyHandler=t=>(l(t)&&this.clear&&this.handleClearClick(t),h(t)&&"revealable"===this.variation&&(t.target===this.togglePasswordRevealedButton?t.stopPropagation():this.isPasswordRevealed=!1),this.chips&&0===this.nativeInput.value.length&&(p(t)&&(this.isChipSelected()&&(this.getSelectedChip().removeChip(),setTimeout((()=>this.selectLastChip()))),this.selectLastChip()),c(t)&&this.selectChipToLeft(),b(t)&&this.isChipSelected()&&this.selectChipToRight()),t),this.togglePasswordRevealed=()=>{this.isPasswordRevealed=!this.isPasswordRevealed},this.getInputType=()=>"revealable"===this.variation?this.isPasswordRevealed?"text":"password":this.type,this.language=m(),this.isPasswordRevealed=void 0,this.isFocused=!1,this.accessibleActiveDescendant=void 0,this.accessibleAutocomplete=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.accessibleExpanded=void 0,this.accessibleDescribedBy="",this.accessibleHasPopup=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLiveError="polite",this.debounce=0,this.clear=!1,this.caption=void 0,this.echoPlaceholder=!1,this.theme="",this.expand=!1,this.disabled=!1,this.identifier=void 0,this.margin="auto",this.inputAlign="left",this.inputPadding="medium",this.required=!1,this.type="text",this.variation="default",this.chips=!1,this.label="Label",this.labelColor=void 0,this.labelWeight=void 0,this.error="",this.labelHidden=!1,this.numericKeyboard=!1,this.name=void 0,this.pattern=void 0,this.maxlength=void 0,this.minlength=void 0,this.placeholder=void 0,this.component="input",this.role=void 0,this.icon=void 0,this.autoComplete="on",this.disallowPattern=null,this.value=void 0,this.tooltip="",this.tooltipDirection="auto"}disallowedPatternChange(){this.disallowPatternRegex=this.disallowPattern?new RegExp(this.disallowPattern,"gu"):null}valueChanged(){if(this.nativeInput&&this.nativeInput.value!==this.value){const t=u(this.nativeInput);this.nativeInput.value=this.value,t()}this.isCaptionVisible=!!this.caption;const t=()=>this.duetChange.emit({value:this.value,component:"duet-input"});0===this.debounce?t():(clearTimeout(this.timeoutId),this.timeoutId=setTimeout(t,this.debounce))}componentWillLoad(){s(this),this.disallowedPatternChange(),this.isCaptionVisible=!!this.caption,x(this.element,"tooltip","duet-tooltip",1,!0)}componentDidLoad(){"revealable"===this.variation&&this.nativeInput.form&&this.nativeInput.form.addEventListener("submit",(()=>{this.isPasswordRevealed=!1}))}connectedCallback(){g(this)}disconnectedCallback(){v(this)}componentDidRender(){w(this.element,this.proxyId,this.name,this.value,this.required)}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async resetCursor(){if(this.nativeInput){const t=u(this.nativeInput);this.nativeInput.value=this.value,t()}}async clearInput(){this.nativeInput&&(this.nativeInput.value="",this.nativeInput.focus(),this.value="")}getAllChips(){return Array.from(this.element.shadowRoot.querySelectorAll(".duet-input-relative duet-chip"))}isChipSelected(){return this.getAllChips().some((t=>t.selected))}getSelectedChip(){return this.getAllChips().find((t=>t.selected))}clearChipSelection(){this.getAllChips().forEach((t=>t.selected=!1))}selectLastChip(){const t=this.getAllChips();t.length&&(t.forEach((t=>t.selected=!1)),t.at(-1).selected=!0)}selectChipToLeft(){const t=this.getAllChips(),e=t.findIndex((t=>t.selected));t.length&&(t.forEach((t=>t.selected=!1)),-1===e?t.at(-1).selected=!0:0===e?t[0].selected=!0:t[e-1].selected=!0)}selectChipToRight(){const t=this.getAllChips(),e=t.findIndex((t=>t.selected));t.length&&(t.forEach((t=>t.selected=!1)),e>-1&&e<t.length-1&&(t[e+1].selected=!0))}async addChip(t){const e=this.element.shadowRoot.querySelector(".duet-input-relative"),i=e.querySelector("input:not(duet-chip input)");t.id=r("DuetInputChip"),e.insertBefore(t,i)}async hasChip({value:t,text:e}){return this.getAllChips().some((i=>i.value===t&&i.textContent===e))}async getChips(){return this.getAllChips()}async clearChips(){this.getAllChips().forEach((t=>t.remove()))}render(){const t=this.identifier||this.inputId,e={};let o;if(this.numericKeyboard&&(e.inputmode="numeric"),this.pattern&&"tel"!==this.type?e.pattern=this.pattern:this.pattern||"tel"!==this.type||(e.pattern="[0-9+ ]+"),this.value){o=new Date;try{o.setHours(Number(this.value.slice(0,2)),Number(this.value.slice(3,5)),0,0)}catch(t){o=void 0}}const n=!this.icon&&"text"!==this.type&&"tel"!==this.type&&"password"!==this.type&&"time"!==this.type&&"button"!==this.variation;return i(a,{key:"e4e873f95bf94f97147a15b2587cce826ffe328d",class:{"duet-expand":this.expand,"duet-m-0":"none"===this.margin},onKeyUp:t=>this.keyHandler(t)},"time"===this.type&&i("duet-visually-hidden",{key:"6c116b58cda98a99d0561e57f42478e6f95fe85b","aria-live":"polite","aria-atomic":"true"},o?`${this.timeAnnouncement[this.language]} ${o.toLocaleTimeString()}`:""),i("div",{key:"dc417736dc38bf828bb78b5ef7c18b4fd0f55660",class:{"duet-input-container":!0,"duet-theme-turva":"turva"===this.theme,[`duet-input-variation-${this.variation}`]:!0,"duet-label-hidden":this.labelHidden,"duet-input-top-caption-shown":this.isCaptionVisible,"has-icon":"button"!==this.variation&&(!!this.icon||"text"!==this.type&&"tel"!==this.type&&"password"!==this.type&&"time"!==this.type),"has-error":!!this.error,"has-chips":this.chips,"has-clear":this.clear,"has-focus":this.isFocused,disabled:this.disabled}},i("div",{key:"3120dd57e859e1f11c7f871046ff93ca379f7d33",class:"duet-input-label-container"},i("duet-label",{key:"1625fdf912a8f117979ac70414b749e5920d6697",theme:"turva"===this.theme?"turva":"default",margin:this.isCaptionVisible?"small":"auto",color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:t},this.label),this.tooltip&&i("duet-tooltip",{key:"3e8fb18bae9803bd617d98fc326ff4879113505b",class:"duet-input-tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:"turva"===this.theme?"turva":"default"},this.tooltip),i("slot",{key:"f9e4dca121a806252b7d523be78ae0db191ab05a",name:"tooltip"})),this.caption&&i("duet-caption",{key:"c3a0f5039b0a6a78600b26003cf742b6c100b715",id:this.topCaptionId,size:"medium"},this.caption),i("div",{key:"6df3e2e0abb79ce6bf5347c6e52e03be6ac374e1",class:"duet-input-relative"},this.placeholder&&this.echoPlaceholder&&(this.value||"time"===this.type)&&i("duet-caption",{key:"3f6dec06ad90dba4cb28b08ed008252423f6db74",id:this.topCaptionPlaceholderId,class:"duet-input-placeholder",margin:"none",size:"small"},this.placeholder),this.chips&&i("duet-visually-hidden",{key:"a53cd8aa2761ac6ebd7b5d6ee329573595c9aacf",id:this.chipCountId},", ",`${this.getAllChips().length} ${f(this.chipsSelectedDesriptionLabel)}`,","),i("input",Object.assign({key:"37decf03a973f6fa26a76961afc0598ab976b1e7",ref:t=>this.nativeInput=t,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,type:this.getInputType(),class:{"duet-input":!0,disabled:this.disabled,"is-number":"number"===this.component,"is-date":"date"===this.component,"after-chip":this.getAllChips().length>0,"align-right":"right"===this.inputAlign,[`input-padding-${this.inputPadding}`]:!0},value:this.value,disabled:this.disabled,"aria-invalid":this.error?"true":"false","aria-labelledby":this.accessibleLabelledBy?`${this.labelId} ${this.accessibleLabelledBy}`:this.labelId,"aria-controls":this.accessibleControls,"aria-autocomplete":this.accessibleAutocomplete,"aria-activedescendant":this.accessibleActiveDescendant,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-expanded":this.accessibleExpanded,"aria-haspopup":this.accessibleHasPopup,"aria-owns":this.accessibleOwns,"aria-describedby":this.getAriaDescribedBy(),placeholder:this.placeholder,spellcheck:"false",minlength:this.minlength,maxlength:this.maxlength,autocomplete:"password"===this.type?"off":this.autoComplete,required:this.required,role:this.role,name:this.name,id:t},e)),!this.value&&n&&i("div",{key:"2b06ed113322c4e03fdcb04bf528cc9425307013",class:"duet-input-icon"},i("duet-icon",{key:"b5d41a945b099d2c5ade8c121738a9d387599c80",margin:"none",size:"small",icon:k[this.type].svg,color:"currentColor"})),this.clear&&this.value&&i("div",{key:"f89624f414e9005f484f4d31b90edcf6ea81ca44",class:{"duet-input-clear-icon":!0,"duet-input-clear-icon-single":!n,"duet-input-clear-icon-double":!!this.icon,"duet-input-clear-icon-button":"button"===this.variation}},i("button",{key:"aeedec82776de92e930bef230fdaed43552002a6",onClick:this.handleClearClick,id:this.clearId,"aria-label":this.clearLabel[this.language],"aria-keyshortcuts":"Escape"},i("duet-icon",{key:"92d15bab69bbfc0ea9b635c94b0edc5e5ddf4f3f",margin:"none",size:"medium",name:"action-clear-input",color:"currentColor"}))),this.icon&&"button"!==this.variation&&i("div",{key:"e16da8f6c4c252309cd6cf2fd9ad1d3f5ccdb547",class:"duet-input-icon"},i("duet-icon",{key:"ee55dc419577e1bd21eca218717c1ec7a64f38c2",margin:"none",size:"small",name:this.icon,color:"currentColor"})),"button"===this.variation&&i("slot",{key:"104d0b90682cd0508d684bebc22b9d4893d7181e",name:"button"}),"revealable"===this.variation&&i("duet-button",{key:"838c0aef8ef924af565ad34a0004f4d5f187418f",ref:t=>this.togglePasswordRevealedButton=t,onBlur:this.onBlur,onFocus:this.onFocus,onClick:this.togglePasswordRevealed,icon:this.isPasswordRevealed?"action-hide":"action-show",accessibleLabel:this.isPasswordRevealed?this.hidePasswordLabel[this.language]:this.showPasswordLabel[this.language],margin:"none",variation:"input-button-embedded",fixed:!0,iconOnly:!0}),"revealable"===this.variation&&void 0!==this.isPasswordRevealed&&i("duet-visually-hidden",{key:"902ec5a2c111186ed9cda34dcd1ad0d6666b74c7"},i("span",{key:"1c94535e903e542ff97a52cb871e91d4ab244646","aria-live":"polite"},this.isPasswordRevealed?this.passwordShownAriaAnnouncement[this.language]:this.passwordHiddenAriaAnnouncement[this.language])),i("slot",{key:"9e346bbb5e1d4a0e78fe8ff3b79401c7988a4e91"})),i("span",{key:"661e5d3ae11da4b71c4b024b6835b230008ddf42",class:"duet-input-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&i("span",{key:"66b313ab9b88db56592c542e1294012f6fbf3c10",class:"duet-input-error"},this.error))))}get element(){return o(this)}static get watchers(){return{disallowPattern:["disallowedPatternChange"],value:["valueChanged"]}}};C.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}duet-tooltip,::slotted(duet-tooltip){position:relative;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){right:auto}}duet-caption:not(:last-of-type){margin-bottom:0}.duet-input-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-input-icon{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;font-size:0;line-height:normal;color:rgb(8, 42, 77);pointer-events:none;transform:translateY(-50%)}.duet-theme-turva .duet-input-icon{color:rgb(23, 28, 58)}.duet-input-container{position:relative;width:100%;height:100%}.duet-input-container.has-clear .duet-input-clear-icon{position:relative;z-index:250}.duet-input-container.has-clear .duet-input-clear-icon button{position:absolute;top:-24px;right:-24px;min-width:48px;min-height:48px;color:rgb(0, 75, 129)}.duet-input-container.has-clear .duet-input-clear-icon button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-input-container.has-clear .duet-input-clear-icon button:focus,.duet-input-container.has-clear .duet-input-clear-icon button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-input-container.has-clear .duet-input-clear-icon button:active{opacity:0.75;transition:none}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-single button{top:-48px;right:0}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-double button{top:-24px;right:12px}.duet-input-container.has-clear .duet-input-clear-icon.duet-input-clear-icon-button button{top:-24px;right:0}.duet-input-container.has-clear.has-icon .duet-input-clear-icon{top:-24px;right:24px}.duet-input-container.duet-theme-turva.has-clear .duet-input-clear-icon button{color:rgb(8, 42, 77)}.duet-input-container.duet-theme-turva.has-clear .duet-input-clear-icon button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-input-label-container{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between}@media (min-width: 48em){.duet-input-label-container{justify-content:flex-start}}.duet-input{position:relative;z-index:100;display:block !important;width:100% !important;min-width:8rem;max-width:initial !important;height:auto !important;padding:12px 14px !important;margin:initial !important;margin-bottom:initial !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400 !important;font-variant-numeric:tabular-nums;line-height:1.5 !important;color:rgb(8, 42, 77) !important;cursor:initial !important;background:rgb(255, 255, 255) !important;background-clip:initial !important;border:1px solid rgb(127, 150, 165) !important;border-radius:4px !important;box-shadow:initial !important;transition:box-shadow 150ms ease, border 150ms ease !important}.duet-input.input-padding-small{padding:8px 10px !important}.duet-input.input-padding-x-small{padding:4px 6px !important}.duet-input.input-padding-xx-small{padding:0px 2px !important}.duet-input.is-number{padding-right:112px !important}.duet-input.is-date{padding-right:64px !important}.duet-input.after-chip{padding-left:8px !important}.has-error .duet-input{border-color:rgb(214, 28, 82) !important}.has-error .duet-input+.duet-input-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-input{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-input+.duet-input-icon{color:rgb(214, 28, 82) !important}.has-icon .duet-input{padding-right:48px !important}.duet-theme-turva .duet-input{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) !important;border-color:rgb(143, 147, 158) !important}.duet-input.align-right{text-align:right}.duet-input::-ms-clear{display:none}.duet-input::-webkit-contacts-auto-fill-button{display:none !important}.duet-input::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva .duet-input::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-input:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-input:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-input::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva .duet-input::-moz-placeholder{color:rgb(143, 147, 158)}.duet-input:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-input:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-input:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva .duet-input:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-input:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-input:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-input[disabled]{color:rgb(8, 42, 77) !important;cursor:not-allowed !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva .duet-input[disabled]{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #909599 !important}.duet-theme-turva .duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #747475 !important}.has-error .duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-input:hover:not(:disabled){box-shadow:0 0 0 1px #e55039}.duet-input:focus{border-color:rgb(0, 119, 179) !important;outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-input:focus{border-color:rgb(23, 28, 58) !important;box-shadow:0 0 0 1px #171c3a !important}.duet-theme-turva .duet-input:focus+.duet-input-icon{color:rgb(23, 28, 58)}.has-error .duet-input:focus{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-input:focus{box-shadow:0 0 0 1px #e55039}.duet-input:focus+.duet-input-icon{color:rgb(0, 119, 179)}.duet-input[type=search]:not(:placeholder-shown):focus+.duet-input-icon{display:none}.duet-input:not(:focus):not(:hover):invalid{box-shadow:none !important}.duet-input[type=number]::-webkit-inner-spin-button,.duet-input[type=number]::-webkit-outer-spin-button,.duet-input[type=time]::-webkit-inner-spin-button,.duet-input[type=time]::-webkit-outer-spin-button{display:none;margin:0;-webkit-appearance:none}.duet-input::-webkit-search-cancel-button{margin-right:-28px}.duet-input-help{display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-input-help span{display:block;margin-top:8px}.duet-theme-turva .duet-input-help{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(143, 147, 158)}.has-error .duet-input-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-input-help{color:rgb(214, 28, 82)}.duet-label-hidden duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-input-relative{position:relative;width:100%}.duet-input-variation-button{position:relative;width:100%}.duet-input-variation-button .duet-input-relative{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto}.duet-input-variation-button .duet-input-relative duet-button{z-index:250;margin-bottom:0}.duet-input-variation-button .duet-input-relative .duet-input{border-right-width:0 !important;border-top-right-radius:0 !important;border-bottom-right-radius:0 !important}.duet-input-variation-revealable{position:relative;width:100%}.duet-input-variation-revealable ::-ms-reveal{display:none}.duet-input-variation-revealable .duet-input-relative{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;box-shadow:initial;transition:box-shadow 150ms ease, border 150ms ease}.duet-theme-turva .duet-input-variation-revealable .duet-input-relative{border-color:rgb(143, 147, 158)}.duet-input-variation-revealable .duet-input-relative duet-button{z-index:250;margin-bottom:0}.duet-input-variation-revealable .duet-input-relative .duet-input{border-width:0 !important}.duet-input-variation-revealable .duet-input-relative .duet-input:focus,.duet-input-variation-revealable .duet-input-relative .duet-input:hover{border-width:0 !important;box-shadow:none !important}.duet-input-variation-revealable.disabled .duet-input-relative{background:rgb(245, 248, 250);border-color:rgb(212, 223, 229);box-shadow:none}.duet-input-variation-revealable.has-error .duet-input-relative{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.duet-theme-turva.has-error .duet-input-relative{border-color:rgb(214, 28, 82)}.duet-input-variation-revealable.has-focus .duet-input-relative{border-color:rgb(0, 119, 179);box-shadow:0 0 0 1px #0077b3 !important}.duet-input-variation-revealable.duet-theme-turva.has-focus .duet-input-relative{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #909599}.duet-input-variation-revealable.duet-theme-turva:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #747475}.duet-input-variation-revealable.has-error:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #de2362}.duet-input-variation-revealable.duet-theme-turva.has-error:hover:not(.disabled) .duet-input-relative{box-shadow:0 0 0 1px #e55039}.duet-input-container.has-chips .duet-input-relative{display:flex;flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:flex-start;width:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;box-shadow:initial;transition:box-shadow 150ms ease, border 150ms ease}.duet-theme-turva .duet-input-container.has-chips .duet-input-relative{border-color:rgb(143, 147, 158)}.duet-input-container.has-chips .duet-input-relative .duet-input{flex-basis:4rem;flex-grow:1;padding-left:0 !important;margin-left:12px !important;border-width:0 !important}.duet-input-container.has-chips .duet-input-relative .duet-input:focus,.duet-input-container.has-chips .duet-input-relative .duet-input:hover{border-width:0 !important;box-shadow:none !important}';const S=class{constructor(e){t(this,e),this.theme="",this.for=void 0,this.margin="auto",this.size="medium",this.weight="semi-bold",this.color=""}componentWillLoad(){s(this)}render(){const t=y(this.color);return i(a,{class:{"duet-label":!0,"duet-label-small":"small"===this.size,"duet-theme-turva":"turva"===this.theme,"duet-small-margin":"small"===this.margin,"duet-m-0":"none"===this.margin,[`duet-weight-${this.weight}`]:!0}},i("label",{htmlFor:this.for,style:{color:t}},i("span",null,i("slot",null))))}get element(){return o(this)}};S.style='*.sc-duet-label,*.sc-duet-label::after,*.sc-duet-label::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-label-h{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;line-height:1.25;cursor:default}.duet-p-0.sc-duet-label-h{padding:0 !important}.duet-m-0.sc-duet-label-h{margin:0 !important}.duet-m-0.sc-duet-label-h{margin-bottom:0 !important}.duet-small-margin.sc-duet-label-h{margin-top:8px !important;margin-bottom:4px !important}.duet-has-tooltip.sc-duet-label-h{padding-right:48px}@media (min-width: 48em){.duet-has-tooltip.sc-duet-label-h{padding-right:0}}label.sc-duet-label{margin:0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word}label.sc-duet-label span.sc-duet-label{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-label-small.sc-duet-label-h label.sc-duet-label{font-size:0.875rem}.duet-label-small.sc-duet-label-h label.sc-duet-label span.sc-duet-label{font-size:0.875rem}.duet-weight-normal.sc-duet-label-h label.sc-duet-label{font-weight:400 !important}.duet-weight-normal.sc-duet-label-h label.sc-duet-label span.sc-duet-label{font-weight:400 !important}.duet-theme-turva.sc-duet-label-h label.sc-duet-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)}';export{C as duet_input,S as duet_label}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- function n(n){const t=n.element.textContent;return n.accessibleLabel?n.accessibleLabel:(n.download||""===n.download)&&t?`${t}. ${n.accessibleLabelDownload}.`:n.external&&t?`${t}. ${n.accessibleLabelExternal}.`:null}export{n as g}
@@ -1,18 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- function getAccessibleLinkLabel(component) {
5
- const textContext = component.element.textContent;
6
- if (component.accessibleLabel) {
7
- return component.accessibleLabel;
8
- }
9
- if ((!!component.download || component.download === "") && textContext) {
10
- return `${textContext}. ${component.accessibleLabelDownload}.`;
11
- }
12
- if (component.external && textContext) {
13
- return `${textContext}. ${component.accessibleLabelExternal}.`;
14
- }
15
- return null;
16
- }
17
-
18
- export { getAccessibleLinkLabel as g };
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- function getAccessibleLinkLabel(e){var r=e.element.textContent;if(e.accessibleLabel){return e.accessibleLabel}if((!!e.download||e.download==="")&&r){return"".concat(r,". ").concat(e.accessibleLabelDownload,".")}if(e.external&&r){return"".concat(r,". ").concat(e.accessibleLabelExternal,".")}return null}export{getAccessibleLinkLabel as g};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{h}from"./index-4e3ad237.js";var focusElement=function(e){if("setFocus"in e){e.setFocus()}else{e.focus()}};var FocusGuard=function(e){var u=e.moveFocusTo;return h("div",{class:"duet-focus-guard","aria-hidden":"true",tabIndex:0,onFocus:function(){return focusElement(u)}})};export{FocusGuard as F,focusElement as f};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import"./index-4e3ad237.js";var getElementsFromNamedSlot=function(e,t){var n=Array.from(e.querySelectorAll(":scope > *"));return n.filter((function(e){return e.matches("[slot='".concat(t,"']"))}))};var getElementsFromDefaultSlot=function(e){var t=Array.from(e.querySelectorAll(":scope > *"));return t.filter((function(e){return!e.getAttribute("slot")}))};var hasSlot=function(e,t){return t?getElementsFromNamedSlot(e,t).length>0:getElementsFromDefaultSlot(e).length>0};var checkNamedSlotElement=function(e,t,n,r,o){if(r===void 0){r=0}if(o===void 0){o=false}var l=o?"error":"warn";var a=[];var u=getElementsFromNamedSlot(e,t);var f=u.filter((function(e){if(e.matches(n)){return true}a.push('Only elements matcing selector "'.concat(n,'" may be used in slot ').concat(t,", found:\n").concat(e.outerHTML));if(o){e.remove();return false}return true}));if(r&&f.length>r){a.push("Only ".concat(r," element").concat(r>1?"s":""," may be used in slot ").concat(t,", found ").concat(u.length,"."));if(o){f.slice(r).forEach((function(e){return e.remove()}))}}if(a.length>0){console[l]("Duet ".concat(l," in ").concat(e.tagName.toLowerCase(),":\n").concat(a.join("\n")).concat(o?"\nElement".concat(a.length>1?"s":""," removed."):""))}};var cloneDefaultSlotContent=function(e,t){t.innerHTML="";e.childNodes.forEach((function(e){var n=e.cloneNode(true);t.appendChild(n)}))};var proxyInputToSlot=function(e,t,n,r,o,l){if(l===void 0){l=undefined}var a=e.querySelector("input");var u=a||document.createElement("input");if(l===false){u.remove();return}u.id=t;if(n!==undefined&&n!==null){u.name=n}if(o){u.type="text";u.hidden=true;u.required=true}else{u.type="hidden";u.hidden=false;u.required=false}u.value=r;if(!a){e.appendChild(u)}};export{cloneDefaultSlotContent as a,getElementsFromDefaultSlot as b,checkNamedSlotElement as c,getElementsFromNamedSlot as g,hasSlot as h,proxyInputToSlot as p};