@duetds/components 6.10.2 → 6.10.4

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 (591) hide show
  1. package/hydrate/index.js +4370 -3798
  2. package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
  3. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-banner.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
  9. package/lib/cjs/duet-callout.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-chip.cjs.entry.js +168 -0
  15. package/lib/cjs/duet-choice_2.cjs.entry.js +24 -11
  16. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  21. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-editable-table_3.cjs.entry.js +32 -135
  23. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-grid_2.cjs.entry.js +6 -3
  27. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  39. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-number-input.cjs.entry.js +8 -1
  43. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-popup-menu-item.cjs.entry.js +45 -0
  46. package/lib/cjs/duet-popup-menu.cjs.entry.js +113 -0
  47. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-promo-card.cjs.entry.js +1 -1
  49. package/lib/cjs/duet-radio_2.cjs.entry.js +5 -4
  50. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  51. package/lib/cjs/duet-scrollable_3.cjs.entry.js +2 -2
  52. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  53. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  54. package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-show-more.cjs.entry.js +95 -0
  56. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
  60. package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
  61. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  65. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
  66. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  68. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  69. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  70. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  71. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  72. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -1174
  73. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  74. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  75. package/lib/cjs/duet-upload-item.cjs.entry.js +93 -0
  76. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  77. package/lib/cjs/duet.cjs.js +2 -2
  78. package/lib/cjs/errorcodes.utils-5deca818.js +39 -0
  79. package/lib/cjs/floating-ui.dom.esm-3801794e.js +1251 -0
  80. package/lib/cjs/{focus-utils-a7ec8d4d.js → focus-utils-a66763f4.js} +1 -1
  81. package/lib/cjs/{index-b91d0c7f.js → index-4eb7ce33.js} +1 -1
  82. package/lib/cjs/loader.cjs.js +2 -2
  83. package/lib/collection/collection-manifest.json +5 -0
  84. package/lib/collection/components/duet-chip/duet-chip.css +202 -0
  85. package/lib/collection/components/duet-chip/duet-chip.js +395 -0
  86. package/lib/collection/components/duet-choice/duet-choice.css +60 -33
  87. package/lib/collection/components/duet-choice/duet-choice.js +39 -8
  88. package/lib/collection/components/duet-editable-table/duet-editable-table.js +3 -1
  89. package/lib/collection/components/duet-grid/duet-grid.css +260 -116
  90. package/lib/collection/components/duet-grid/duet-grid.js +22 -1
  91. package/lib/collection/components/duet-number-input/duet-number-input.js +23 -0
  92. package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +57 -0
  93. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +361 -0
  94. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +69 -0
  95. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +225 -0
  96. package/lib/collection/components/duet-radio/duet-radio.css +3 -3
  97. package/lib/collection/components/duet-radio/duet-radio.js +9 -3
  98. package/lib/collection/components/duet-scrollable/duet-scrollable.css +1 -1
  99. package/lib/collection/components/duet-show-more/duet-show-more.css +46 -0
  100. package/lib/collection/components/duet-show-more/duet-show-more.js +214 -0
  101. package/lib/collection/components/duet-upload/duet-upload.js +37 -13
  102. package/lib/collection/components/duet-upload-item/duet-upload-item.js +299 -0
  103. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  104. package/lib/dist-custom-elements/duet-alert.js +1 -1
  105. package/lib/dist-custom-elements/duet-badge.js +1 -1
  106. package/lib/dist-custom-elements/duet-banner.js +4 -4
  107. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  108. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  109. package/lib/dist-custom-elements/duet-button.js +1 -1
  110. package/lib/dist-custom-elements/duet-callout.js +3 -3
  111. package/lib/dist-custom-elements/duet-caption.js +1 -1
  112. package/lib/dist-custom-elements/duet-card.js +3 -3
  113. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  114. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  115. package/lib/dist-custom-elements/duet-chip.d.ts +11 -0
  116. package/lib/dist-custom-elements/duet-chip.js +200 -0
  117. package/lib/dist-custom-elements/duet-choice-group.js +6 -6
  118. package/lib/dist-custom-elements/duet-choice.js +28 -14
  119. package/lib/dist-custom-elements/duet-collapsible.js +2 -2
  120. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  121. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  122. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  123. package/lib/dist-custom-elements/duet-date-picker.js +10 -10
  124. package/lib/dist-custom-elements/duet-divider.js +1 -1
  125. package/lib/dist-custom-elements/duet-editable-table.js +10 -8
  126. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  127. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  128. package/lib/dist-custom-elements/duet-footer.js +4 -4
  129. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  130. package/lib/dist-custom-elements/duet-grid.js +1 -1
  131. package/lib/dist-custom-elements/duet-header.js +8 -8
  132. package/lib/dist-custom-elements/duet-heading.js +1 -1
  133. package/lib/dist-custom-elements/duet-hero.js +9 -9
  134. package/lib/dist-custom-elements/duet-icon.js +1 -1
  135. package/lib/dist-custom-elements/duet-input.js +1 -1
  136. package/lib/dist-custom-elements/duet-label.js +1 -1
  137. package/lib/dist-custom-elements/duet-layout.js +1 -1
  138. package/lib/dist-custom-elements/duet-link.js +1 -1
  139. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  140. package/lib/dist-custom-elements/duet-list.js +1 -1
  141. package/lib/dist-custom-elements/duet-logo.js +1 -1
  142. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  143. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  144. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  145. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  146. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  147. package/lib/dist-custom-elements/duet-modal.js +7 -7
  148. package/lib/dist-custom-elements/duet-multiselect.js +8 -8
  149. package/lib/dist-custom-elements/duet-nav.js +1 -1
  150. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  151. package/lib/dist-custom-elements/duet-notification.js +2 -2
  152. package/lib/dist-custom-elements/duet-number-input.js +18 -10
  153. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  154. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  155. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  156. package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +11 -0
  157. package/lib/dist-custom-elements/duet-popup-menu-item.js +75 -0
  158. package/lib/dist-custom-elements/duet-popup-menu.d.ts +11 -0
  159. package/lib/dist-custom-elements/duet-popup-menu.js +142 -0
  160. package/lib/dist-custom-elements/duet-progress.js +1 -1
  161. package/lib/dist-custom-elements/duet-promo-card.js +3 -3
  162. package/lib/dist-custom-elements/duet-radio-group.js +6 -6
  163. package/lib/dist-custom-elements/duet-radio.js +6 -5
  164. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  165. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  166. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  167. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  168. package/lib/dist-custom-elements/duet-select.js +1 -1
  169. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  170. package/lib/dist-custom-elements/duet-show-more.d.ts +11 -0
  171. package/lib/dist-custom-elements/duet-show-more.js +137 -0
  172. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  173. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  174. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  175. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  176. package/lib/dist-custom-elements/duet-slideout.js +2 -2
  177. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  178. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  179. package/lib/dist-custom-elements/duet-step.js +4 -4
  180. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  181. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  182. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  183. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  184. package/lib/dist-custom-elements/duet-submenu-bar.js +2 -2
  185. package/lib/dist-custom-elements/duet-tab-group.js +11 -11
  186. package/lib/dist-custom-elements/duet-tab.js +1 -1
  187. package/lib/dist-custom-elements/duet-table.js +1 -1
  188. package/lib/dist-custom-elements/duet-textarea.js +8 -8
  189. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  190. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  191. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  192. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  193. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  194. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  195. package/lib/dist-custom-elements/duet-tray.js +3 -3
  196. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  197. package/lib/dist-custom-elements/duet-upload-item.d.ts +11 -0
  198. package/lib/dist-custom-elements/duet-upload-item.js +9 -0
  199. package/lib/dist-custom-elements/duet-upload.js +58 -158
  200. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  201. package/lib/dist-custom-elements/index.js +1 -1
  202. package/lib/dist-custom-elements/{p-4197b9ee.js → p-006d0fb1.js} +2 -2
  203. package/lib/dist-custom-elements/{p-05139591.js → p-03297bf3.js} +1 -1
  204. package/lib/dist-custom-elements/{p-e3acab40.js → p-08f20e44.js} +2 -2
  205. package/lib/dist-custom-elements/{p-39c6c68e.js → p-0f04ecb5.js} +1 -1
  206. package/lib/dist-custom-elements/{p-c202693f.js → p-171c70e8.js} +1 -1
  207. package/lib/dist-custom-elements/{p-8fb68cb1.js → p-1b34adf1.js} +2 -2
  208. package/lib/dist-custom-elements/{p-d6a6460a.js → p-1f14a267.js} +1 -1
  209. package/lib/dist-custom-elements/{p-f6b5ce88.js → p-226f50bb.js} +1 -1
  210. package/lib/dist-custom-elements/{p-1b3de4b8.js → p-25d3d458.js} +1 -1
  211. package/lib/dist-custom-elements/{p-2b132855.js → p-25fa826f.js} +1 -1
  212. package/lib/dist-custom-elements/{p-e6f6efa6.js → p-265d42fd.js} +1 -1
  213. package/lib/dist-custom-elements/{p-96b624ec.js → p-26a65533.js} +1 -1
  214. package/lib/dist-custom-elements/{p-419d2da0.js → p-2b8c0c2f.js} +6 -6
  215. package/lib/dist-custom-elements/{p-28658e20.js → p-37255027.js} +8 -8
  216. package/lib/dist-custom-elements/{p-58105b4f.js → p-3e609785.js} +1 -1
  217. package/lib/dist-custom-elements/p-4c575cf4.js +278 -0
  218. package/lib/dist-custom-elements/{p-9e83a449.js → p-5114f1bd.js} +2 -2
  219. package/lib/dist-custom-elements/{p-8638ba69.js → p-5c48ca92.js} +1 -1
  220. package/lib/dist-custom-elements/{p-ea756e9e.js → p-661fee29.js} +6 -6
  221. package/lib/dist-custom-elements/{p-3595aea9.js → p-7681059e.js} +1 -1
  222. package/lib/dist-custom-elements/{p-7d6d90bc.js → p-7c2e755b.js} +1 -1
  223. package/lib/dist-custom-elements/{p-e3ac121c.js → p-80cd62f8.js} +5 -5
  224. package/lib/dist-custom-elements/p-84a78894.js +187 -0
  225. package/lib/dist-custom-elements/{p-62f3b6cb.js → p-8a1632b1.js} +3 -3
  226. package/lib/dist-custom-elements/{p-eb29050b.js → p-a60259d1.js} +1 -1
  227. package/lib/dist-custom-elements/{p-227cc94f.js → p-b98f1d2a.js} +1 -1
  228. package/lib/dist-custom-elements/{p-6de01596.js → p-c85e7fbd.js} +1 -1
  229. package/lib/dist-custom-elements/{p-6f4b6168.js → p-d5e61aac.js} +1 -1
  230. package/lib/dist-custom-elements/{p-a0f68c00.js → p-dbb9df4e.js} +3 -3
  231. package/lib/dist-custom-elements/{p-38b3c30a.js → p-df10a767.js} +71 -274
  232. package/lib/dist-custom-elements/p-e0afb5aa.js +197 -0
  233. package/lib/dist-custom-elements/{p-beca0ced.js → p-e467de13.js} +1 -1
  234. package/lib/dist-custom-elements/{p-2747b8c6.js → p-ffc196f5.js} +4 -4
  235. package/lib/duet/duet.esm.js +1 -1
  236. package/lib/duet/duet.js +1 -1
  237. package/lib/duet/{p-d3323581.system.entry.js → p-000a0a75.system.entry.js} +1 -1
  238. package/lib/duet/{p-6766ef3d.system.entry.js → p-00355028.system.entry.js} +1 -1
  239. package/lib/duet/{p-62b68de6.system.js → p-053be9dd.system.js} +1 -1
  240. package/lib/duet/p-05dd0fb6.entry.js +4 -0
  241. package/lib/duet/{p-1e6f5e74.system.entry.js → p-06969947.system.entry.js} +1 -1
  242. package/lib/duet/p-08c7360e.system.entry.js +4 -0
  243. package/lib/duet/{p-5e7dc52a.system.entry.js → p-099119d3.system.entry.js} +1 -1
  244. package/lib/duet/{p-6ad538a7.system.entry.js → p-0b696003.system.entry.js} +1 -1
  245. package/lib/duet/p-101cc3fe.system.entry.js +4 -0
  246. package/lib/duet/{p-1df0bbf9.system.entry.js → p-110c2c76.system.entry.js} +1 -1
  247. package/lib/duet/{p-8c404f51.system.entry.js → p-11d01178.system.entry.js} +1 -1
  248. package/lib/duet/{p-87f85912.system.entry.js → p-13fa33f3.system.entry.js} +1 -1
  249. package/lib/duet/{p-91a5c4fd.system.entry.js → p-1483de5f.system.entry.js} +1 -1
  250. package/lib/duet/{p-62b435d1.system.entry.js → p-15505723.system.entry.js} +1 -1
  251. package/lib/duet/{p-89d9030e.system.entry.js → p-1616c51d.system.entry.js} +1 -1
  252. package/lib/duet/{p-1f3d12d2.system.entry.js → p-184ee980.system.entry.js} +1 -1
  253. package/lib/duet/p-19ea4e54.entry.js +4 -0
  254. package/lib/duet/{p-cfde4f9a.system.entry.js → p-1ff16557.system.entry.js} +1 -1
  255. package/lib/duet/{p-f88ac93f.system.entry.js → p-20c19d2e.system.entry.js} +1 -1
  256. package/lib/duet/p-26ed5006.system.entry.js +4 -0
  257. package/lib/duet/{p-72a2ff4d.entry.js → p-276da9b8.entry.js} +1 -1
  258. package/lib/duet/{p-94d448f9.system.entry.js → p-28b0deff.system.entry.js} +1 -1
  259. package/lib/duet/{p-03522bb4.entry.js → p-28cf3d78.entry.js} +1 -1
  260. package/lib/duet/{p-af3060c1.system.entry.js → p-2a37e574.system.entry.js} +1 -1
  261. package/lib/duet/{p-de31586c.system.entry.js → p-2a9b8270.system.entry.js} +1 -1
  262. package/lib/duet/{p-245a63f4.entry.js → p-2a9e5e4c.entry.js} +1 -1
  263. package/lib/duet/{p-17d2c223.system.entry.js → p-2bd98cbe.system.entry.js} +1 -1
  264. package/lib/duet/{p-c424c794.entry.js → p-31155f08.entry.js} +1 -1
  265. package/lib/duet/{p-8f7f4724.entry.js → p-322f69c7.entry.js} +1 -1
  266. package/lib/duet/{p-56b92797.entry.js → p-32d31570.entry.js} +1 -1
  267. package/lib/duet/{p-909e088e.system.entry.js → p-32ee127a.system.entry.js} +1 -1
  268. package/lib/duet/{p-d159787d.entry.js → p-35b74797.entry.js} +1 -1
  269. package/lib/duet/{p-058dfaad.entry.js → p-368e63a8.entry.js} +1 -1
  270. package/lib/duet/{p-e7af2cd8.system.entry.js → p-380ead38.system.entry.js} +1 -1
  271. package/lib/duet/{p-c7fbe38a.entry.js → p-38e24930.entry.js} +1 -1
  272. package/lib/duet/{p-6392cafe.entry.js → p-3b33c459.entry.js} +1 -1
  273. package/lib/duet/{p-2f8c7a7d.entry.js → p-3c43d0ee.entry.js} +1 -1
  274. package/lib/duet/{p-30551712.system.entry.js → p-40463065.system.entry.js} +1 -1
  275. package/lib/duet/p-434b31e9.system.js +4 -0
  276. package/lib/duet/{p-5c4a2f44.system.entry.js → p-45046cb8.system.entry.js} +1 -1
  277. package/lib/duet/{p-99a8b5f5.entry.js → p-4667e5cc.entry.js} +1 -1
  278. package/lib/duet/{p-bbadf525.system.entry.js → p-4956fa1c.system.entry.js} +1 -1
  279. package/lib/duet/{p-d18383cd.entry.js → p-4af3a90a.entry.js} +1 -1
  280. package/lib/duet/{p-b906790d.entry.js → p-4f321fb8.entry.js} +1 -1
  281. package/lib/duet/{p-29ce564d.entry.js → p-4f90dd0a.entry.js} +1 -1
  282. package/lib/duet/{p-a6917de1.system.entry.js → p-4fc64fe9.system.entry.js} +1 -1
  283. package/lib/duet/{p-6a42d57c.system.entry.js → p-521b2f02.system.entry.js} +1 -1
  284. package/lib/duet/p-540d7ed6.entry.js +4 -0
  285. package/lib/duet/p-549a1ffd.system.entry.js +4 -0
  286. package/lib/duet/{p-eb9c8e60.entry.js → p-5e2af124.entry.js} +1 -1
  287. package/lib/duet/{p-cad8060d.system.entry.js → p-5ed8969b.system.entry.js} +1 -1
  288. package/lib/duet/{p-420dfc2c.entry.js → p-604adb3e.entry.js} +1 -1
  289. package/lib/duet/{p-c085e346.system.entry.js → p-60c99082.system.entry.js} +1 -1
  290. package/lib/duet/{p-ef033a06.system.entry.js → p-6508eed1.system.entry.js} +1 -1
  291. package/lib/duet/{p-09daf29e.system.entry.js → p-684b2d77.system.entry.js} +1 -1
  292. package/lib/duet/{p-0738bb7d.system.entry.js → p-6892546a.system.entry.js} +1 -1
  293. package/lib/duet/{p-36edc06c.system.entry.js → p-699f593c.system.entry.js} +1 -1
  294. package/lib/duet/p-6b115b63.system.js +4 -0
  295. package/lib/duet/{p-ed78f6fe.system.entry.js → p-6baede6c.system.entry.js} +1 -1
  296. package/lib/duet/{p-42e270f3.entry.js → p-6bb42603.entry.js} +1 -1
  297. package/lib/duet/{p-0dda8331.entry.js → p-6e93b2f3.entry.js} +1 -1
  298. package/lib/duet/{p-dc9bf216.entry.js → p-6ee35830.entry.js} +1 -1
  299. package/lib/duet/{p-9c554b07.entry.js → p-700cc5d1.entry.js} +1 -1
  300. package/lib/duet/{p-ff5f4d38.entry.js → p-721bf508.entry.js} +1 -1
  301. package/lib/duet/{p-a4cc9386.system.entry.js → p-7284cb09.system.entry.js} +1 -1
  302. package/lib/duet/{p-d85d8db5.entry.js → p-72d18d55.entry.js} +1 -1
  303. package/lib/duet/p-756341c2.system.entry.js +4 -0
  304. package/lib/duet/{p-a31222e3.entry.js → p-7565b093.entry.js} +1 -1
  305. package/lib/duet/{p-673127ac.system.entry.js → p-773268e7.system.entry.js} +1 -1
  306. package/lib/duet/{p-30c684e8.entry.js → p-77616680.entry.js} +1 -1
  307. package/lib/duet/{p-f4799c34.system.entry.js → p-7a3071a5.system.entry.js} +1 -1
  308. package/lib/duet/{p-779be7c6.system.entry.js → p-7e061e75.system.entry.js} +1 -1
  309. package/lib/duet/{p-8ec5c49e.entry.js → p-7f588669.entry.js} +1 -1
  310. package/lib/duet/p-8094e185.entry.js +4 -0
  311. package/lib/duet/{p-7dea5e1a.system.entry.js → p-8146f5d7.system.entry.js} +1 -1
  312. package/lib/duet/{p-81668ed2.system.entry.js → p-82330774.system.entry.js} +1 -1
  313. package/lib/duet/{p-1d3647c6.system.entry.js → p-8275330c.system.entry.js} +1 -1
  314. package/lib/duet/p-82b5380b.system.js +4 -0
  315. package/lib/duet/{p-0fbdbb6a.entry.js → p-8445fc10.entry.js} +1 -1
  316. package/lib/duet/{p-0b34d9b5.system.entry.js → p-8584bcfe.system.entry.js} +1 -1
  317. package/lib/duet/{p-07300cb6.entry.js → p-86e7a88a.entry.js} +1 -1
  318. package/lib/duet/p-871eca43.entry.js +4 -0
  319. package/lib/duet/{p-72d1f618.system.entry.js → p-8862fec1.system.entry.js} +1 -1
  320. package/lib/duet/{p-1b11e540.entry.js → p-8cf359d9.entry.js} +1 -1
  321. package/lib/duet/{p-2528a411.system.entry.js → p-8daa915d.system.entry.js} +1 -1
  322. package/lib/duet/{p-379e2995.system.entry.js → p-8db6114f.system.entry.js} +1 -1
  323. package/lib/duet/p-90f06b7a.system.entry.js +4 -0
  324. package/lib/duet/p-91b3d075.entry.js +4 -0
  325. package/lib/duet/p-9226aca2.entry.js +4 -0
  326. package/lib/duet/{p-fd33eb2c.entry.js → p-99a90b30.entry.js} +1 -1
  327. package/lib/duet/{p-3b70cce3.entry.js → p-9ad6fc83.entry.js} +1 -1
  328. package/lib/duet/p-9e72b23c.system.entry.js +4 -0
  329. package/lib/duet/{p-13384099.entry.js → p-9ec0d197.entry.js} +1 -1
  330. package/lib/duet/{p-1a542b7c.system.entry.js → p-a0f76a04.system.entry.js} +1 -1
  331. package/lib/duet/p-a1978b4b.entry.js +4 -0
  332. package/lib/duet/p-a2ddca83.system.entry.js +4 -0
  333. package/lib/duet/{p-a7c64d94.entry.js → p-a5cf2316.entry.js} +1 -1
  334. package/lib/duet/{p-39496689.entry.js → p-a61825d9.entry.js} +1 -1
  335. package/lib/duet/{p-22dd2fab.entry.js → p-a6696d45.entry.js} +1 -1
  336. package/lib/duet/{p-7f8020bf.entry.js → p-a66ca0af.entry.js} +1 -1
  337. package/lib/duet/{p-62c70a95.entry.js → p-a7ed46e3.entry.js} +1 -1
  338. package/lib/duet/{p-85ad609f.entry.js → p-a86ae0c3.entry.js} +1 -1
  339. package/lib/duet/{p-9960de16.entry.js → p-ae7602cb.entry.js} +1 -1
  340. package/lib/duet/{p-cf9279b9.system.entry.js → p-b134229a.system.entry.js} +1 -1
  341. package/lib/duet/p-b362d8f7.entry.js +4 -0
  342. package/lib/duet/{p-65a5fdd5.entry.js → p-b4b5f803.entry.js} +1 -1
  343. package/lib/duet/{p-8cf1327e.entry.js → p-b594282a.entry.js} +1 -1
  344. package/lib/duet/{p-cb5ebe92.system.entry.js → p-b650e679.system.entry.js} +1 -1
  345. package/lib/duet/{p-6a07feba.entry.js → p-b77224fc.entry.js} +1 -1
  346. package/lib/duet/{p-6a89c7d0.system.entry.js → p-b7fe2c37.system.entry.js} +1 -1
  347. package/lib/duet/{p-931c3e1f.system.entry.js → p-bc541e97.system.entry.js} +1 -1
  348. package/lib/duet/{p-93ef4cc2.system.entry.js → p-be295e13.system.entry.js} +1 -1
  349. package/lib/duet/{p-98202339.entry.js → p-c0874730.entry.js} +1 -1
  350. package/lib/duet/{p-1d73a1d2.system.entry.js → p-c0c92199.system.entry.js} +1 -1
  351. package/lib/duet/p-c185ea87.system.entry.js +4 -0
  352. package/lib/duet/{p-fa400061.entry.js → p-c1c6a4f5.entry.js} +1 -1
  353. package/lib/duet/p-c2ff6bb2.entry.js +4 -0
  354. package/lib/duet/{p-637f635a.entry.js → p-c391b2a4.entry.js} +1 -1
  355. package/lib/duet/p-c5efb3f6.entry.js +4 -0
  356. package/lib/duet/p-c6122404.entry.js +4 -0
  357. package/lib/duet/p-c6b09397.js +4 -0
  358. package/lib/duet/p-c79f4b4b.entry.js +4 -0
  359. package/lib/duet/{p-32237f45.entry.js → p-c9198461.entry.js} +1 -1
  360. package/lib/duet/{p-770d0c35.system.entry.js → p-ca2725cd.system.entry.js} +1 -1
  361. package/lib/duet/{p-4a97ca92.system.entry.js → p-ca4d7a6d.system.entry.js} +1 -1
  362. package/lib/duet/{p-ee909d5f.system.entry.js → p-cb4799d1.system.entry.js} +1 -1
  363. package/lib/duet/{p-2a277fb6.entry.js → p-ccb08e8c.entry.js} +1 -1
  364. package/lib/duet/p-cf504df5.js +4 -0
  365. package/lib/duet/{p-b76ce62b.entry.js → p-cff11c78.entry.js} +1 -1
  366. package/lib/duet/{p-22e418ea.entry.js → p-d0175269.entry.js} +1 -1
  367. package/lib/duet/{p-91df8a4a.system.entry.js → p-d029f8dc.system.entry.js} +1 -1
  368. package/lib/duet/{p-5f2e386e.entry.js → p-d42279cd.entry.js} +1 -1
  369. package/lib/duet/{p-b3154717.entry.js → p-d4bc7a19.entry.js} +1 -1
  370. package/lib/duet/{p-1c7ad230.system.entry.js → p-d6dfa7c8.system.entry.js} +1 -1
  371. package/lib/duet/{p-ad3eba9a.entry.js → p-d841291b.entry.js} +1 -1
  372. package/lib/duet/{p-5048f9a7.entry.js → p-d988f03a.entry.js} +1 -1
  373. package/lib/duet/{p-a8a1d1f6.entry.js → p-da4f4b6c.entry.js} +1 -1
  374. package/lib/duet/{p-bd1d0640.system.js → p-dd1393e3.system.js} +1 -1
  375. package/lib/duet/{p-e9939ddb.system.entry.js → p-dee73c08.system.entry.js} +1 -1
  376. package/lib/duet/p-df10a767.js +4 -0
  377. package/lib/duet/{p-4f4ed95d.system.entry.js → p-df213a66.system.entry.js} +1 -1
  378. package/lib/duet/{p-e501bad4.system.entry.js → p-e288bb38.system.entry.js} +1 -1
  379. package/lib/duet/{p-5c444839.entry.js → p-e368e194.entry.js} +1 -1
  380. package/lib/duet/{p-f5728af6.system.entry.js → p-e6315f68.system.entry.js} +1 -1
  381. package/lib/duet/{p-1b426189.entry.js → p-e79c63b6.entry.js} +1 -1
  382. package/lib/duet/{p-2d3dbd85.system.entry.js → p-e8d8c7a2.system.entry.js} +1 -1
  383. package/lib/duet/{p-925f2b45.entry.js → p-e983ff0c.entry.js} +1 -1
  384. package/lib/duet/{p-17dc8da9.system.entry.js → p-ec796dfe.system.entry.js} +1 -1
  385. package/lib/duet/{p-d7425b07.entry.js → p-f58832f6.entry.js} +1 -1
  386. package/lib/duet/p-f5b53f2f.system.entry.js +4 -0
  387. package/lib/duet/{p-073221c9.system.entry.js → p-f74e934b.system.entry.js} +1 -1
  388. package/lib/duet/{p-c794bee3.system.entry.js → p-f78e3197.system.entry.js} +1 -1
  389. package/lib/duet/{p-6c1a2b16.entry.js → p-f90e86d3.entry.js} +1 -1
  390. package/lib/duet/p-f9603b0d.entry.js +4 -0
  391. package/lib/duet/{p-308b881b.js → p-fbd0d098.js} +1 -1
  392. package/lib/duet/{p-6486ab91.entry.js → p-fd1dcee1.entry.js} +1 -1
  393. package/lib/duet/{p-b4e863ee.system.entry.js → p-feaaff49.system.entry.js} +1 -1
  394. package/lib/duet/p-ff5a9358.system.entry.js +4 -0
  395. package/lib/duet/{p-d6a1c0de.entry.js → p-ffa34163.entry.js} +1 -1
  396. package/lib/esm/duet-action-button.entry.js +1 -1
  397. package/lib/esm/duet-alert.entry.js +1 -1
  398. package/lib/esm/duet-badge.entry.js +1 -1
  399. package/lib/esm/duet-banner.entry.js +1 -1
  400. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  401. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  402. package/lib/esm/duet-button_2.entry.js +1 -1
  403. package/lib/esm/duet-callout.entry.js +1 -1
  404. package/lib/esm/duet-caption_4.entry.js +1 -1
  405. package/lib/esm/duet-card.entry.js +1 -1
  406. package/lib/esm/duet-checkbox.entry.js +1 -1
  407. package/lib/esm/duet-checkmark.entry.js +1 -1
  408. package/lib/esm/duet-chip.entry.js +164 -0
  409. package/lib/esm/duet-choice_2.entry.js +24 -11
  410. package/lib/esm/duet-collapsible.entry.js +1 -1
  411. package/lib/esm/duet-combobox.entry.js +1 -1
  412. package/lib/esm/duet-contact-card.entry.js +1 -1
  413. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  414. package/lib/esm/duet-date-picker.entry.js +2 -2
  415. package/lib/esm/duet-divider_2.entry.js +1 -1
  416. package/lib/esm/duet-editable-table_3.entry.js +24 -127
  417. package/lib/esm/duet-empty-state.entry.js +1 -1
  418. package/lib/esm/duet-fieldset.entry.js +1 -1
  419. package/lib/esm/duet-footer.entry.js +1 -1
  420. package/lib/esm/duet-grid_2.entry.js +6 -3
  421. package/lib/esm/duet-header_2.entry.js +1 -1
  422. package/lib/esm/duet-hero.entry.js +1 -1
  423. package/lib/esm/duet-icon.entry.js +1 -1
  424. package/lib/esm/duet-input_2.entry.js +1 -1
  425. package/lib/esm/duet-layout.entry.js +1 -1
  426. package/lib/esm/duet-list_2.entry.js +1 -1
  427. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  428. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  429. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  430. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  431. package/lib/esm/duet-menu-bar.entry.js +1 -1
  432. package/lib/esm/duet-modal.entry.js +2 -2
  433. package/lib/esm/duet-multiselect.entry.js +1 -1
  434. package/lib/esm/duet-nav.entry.js +1 -1
  435. package/lib/esm/duet-notification_2.entry.js +1 -1
  436. package/lib/esm/duet-number-input.entry.js +8 -1
  437. package/lib/esm/duet-page-heading.entry.js +1 -1
  438. package/lib/esm/duet-pagination_2.entry.js +1 -1
  439. package/lib/esm/duet-popup-menu-item.entry.js +41 -0
  440. package/lib/esm/duet-popup-menu.entry.js +109 -0
  441. package/lib/esm/duet-progress.entry.js +1 -1
  442. package/lib/esm/duet-promo-card.entry.js +1 -1
  443. package/lib/esm/duet-radio_2.entry.js +5 -4
  444. package/lib/esm/duet-range-slider.entry.js +1 -1
  445. package/lib/esm/duet-scrollable_3.entry.js +2 -2
  446. package/lib/esm/duet-section-layout.entry.js +1 -1
  447. package/lib/esm/duet-select.entry.js +1 -1
  448. package/lib/esm/duet-shaped-image.entry.js +1 -1
  449. package/lib/esm/duet-show-more.entry.js +91 -0
  450. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  451. package/lib/esm/duet-slideout-link.entry.js +1 -1
  452. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  453. package/lib/esm/duet-slideout-panel.entry.js +2 -2
  454. package/lib/esm/duet-slideout.entry.js +2 -2
  455. package/lib/esm/duet-step_2.entry.js +1 -1
  456. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  457. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  458. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  459. package/lib/esm/duet-submenu-bar.entry.js +1 -1
  460. package/lib/esm/duet-textarea.entry.js +1 -1
  461. package/lib/esm/duet-toggle.entry.js +1 -1
  462. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  463. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  464. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  465. package/lib/esm/duet-toolbar.entry.js +1 -1
  466. package/lib/esm/duet-tooltip.entry.js +2 -1172
  467. package/lib/esm/duet-tray.entry.js +1 -1
  468. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  469. package/lib/esm/duet-upload-item.entry.js +89 -0
  470. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  471. package/lib/esm/duet.js +3 -3
  472. package/lib/esm/errorcodes.utils-c0c33bce.js +36 -0
  473. package/lib/esm/floating-ui.dom.esm-37dc174a.js +1245 -0
  474. package/lib/esm/{focus-utils-552e67ed.js → focus-utils-e2239371.js} +1 -1
  475. package/lib/esm/{index-5aaf4b5b.js → index-b67ea1f1.js} +1 -1
  476. package/lib/esm/loader.js +3 -3
  477. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  478. package/lib/esm-es5/duet-alert.entry.js +1 -1
  479. package/lib/esm-es5/duet-badge.entry.js +1 -1
  480. package/lib/esm-es5/duet-banner.entry.js +1 -1
  481. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  482. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  483. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  484. package/lib/esm-es5/duet-callout.entry.js +1 -1
  485. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  486. package/lib/esm-es5/duet-card.entry.js +1 -1
  487. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  488. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  489. package/lib/esm-es5/duet-chip.entry.js +4 -0
  490. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  491. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  492. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  493. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  494. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  495. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  496. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  497. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  498. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  499. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  500. package/lib/esm-es5/duet-footer.entry.js +1 -1
  501. package/lib/esm-es5/duet-grid_2.entry.js +2 -2
  502. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  503. package/lib/esm-es5/duet-hero.entry.js +1 -1
  504. package/lib/esm-es5/duet-icon.entry.js +1 -1
  505. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  506. package/lib/esm-es5/duet-layout.entry.js +1 -1
  507. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  508. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  509. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  510. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  511. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  512. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  513. package/lib/esm-es5/duet-modal.entry.js +1 -1
  514. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  515. package/lib/esm-es5/duet-nav.entry.js +1 -1
  516. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  517. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  518. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  519. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  520. package/lib/esm-es5/duet-popup-menu-item.entry.js +4 -0
  521. package/lib/esm-es5/duet-popup-menu.entry.js +4 -0
  522. package/lib/esm-es5/duet-progress.entry.js +1 -1
  523. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  524. package/lib/esm-es5/duet-radio_2.entry.js +2 -2
  525. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  526. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  527. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  528. package/lib/esm-es5/duet-select.entry.js +1 -1
  529. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  530. package/lib/esm-es5/duet-show-more.entry.js +4 -0
  531. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  532. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  533. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  534. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  535. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  536. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  537. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  538. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  539. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  540. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  541. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  542. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  543. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  544. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  545. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  546. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  547. package/lib/esm-es5/duet-tooltip.entry.js +2 -2
  548. package/lib/esm-es5/duet-tray.entry.js +1 -1
  549. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  550. package/lib/esm-es5/duet-upload-item.entry.js +4 -0
  551. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  552. package/lib/esm-es5/duet.js +1 -1
  553. package/lib/esm-es5/errorcodes.utils-c0c33bce.js +4 -0
  554. package/lib/esm-es5/floating-ui.dom.esm-37dc174a.js +4 -0
  555. package/lib/esm-es5/focus-utils-e2239371.js +4 -0
  556. package/lib/esm-es5/{index-5aaf4b5b.js → index-b67ea1f1.js} +1 -1
  557. package/lib/esm-es5/loader.js +1 -1
  558. package/lib/types/components/duet-chip/duet-chip.d.ts +97 -0
  559. package/lib/types/components/duet-choice/duet-choice.d.ts +7 -0
  560. package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +1 -0
  561. package/lib/types/components/duet-grid/duet-grid.d.ts +4 -0
  562. package/lib/types/components/duet-number-input/duet-number-input.d.ts +4 -0
  563. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +77 -0
  564. package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +51 -0
  565. package/lib/types/components/duet-radio/duet-radio.d.ts +4 -0
  566. package/lib/types/components/duet-show-more/duet-show-more.d.ts +53 -0
  567. package/lib/types/components/duet-upload/duet-upload.d.ts +2 -1
  568. package/lib/types/components/duet-upload-item/duet-upload-item.d.ts +29 -0
  569. package/lib/types/components.d.ts +417 -0
  570. package/package.json +11 -6
  571. package/lib/collection/components/duet-upload/upload-item.js +0 -44
  572. package/lib/dist-custom-elements/p-00f8d4bc.js +0 -183
  573. package/lib/duet/p-077edef7.entry.js +0 -4
  574. package/lib/duet/p-0952d4a4.system.entry.js +0 -4
  575. package/lib/duet/p-225d9dbe.js +0 -4
  576. package/lib/duet/p-2cab347d.system.entry.js +0 -4
  577. package/lib/duet/p-3a0676ab.entry.js +0 -4
  578. package/lib/duet/p-55952227.system.entry.js +0 -4
  579. package/lib/duet/p-5ad63594.entry.js +0 -4
  580. package/lib/duet/p-6a9319ad.system.entry.js +0 -4
  581. package/lib/duet/p-75898c81.entry.js +0 -4
  582. package/lib/duet/p-78cb4832.entry.js +0 -4
  583. package/lib/duet/p-80f4a443.system.js +0 -4
  584. package/lib/duet/p-8c9d67e4.entry.js +0 -4
  585. package/lib/duet/p-8faea849.entry.js +0 -4
  586. package/lib/duet/p-b17e6185.system.entry.js +0 -4
  587. package/lib/duet/p-c1ccc327.entry.js +0 -4
  588. package/lib/duet/p-c654f863.system.entry.js +0 -4
  589. package/lib/duet/p-f8d00821.entry.js +0 -4
  590. package/lib/esm-es5/focus-utils-552e67ed.js +0 -4
  591. package/lib/types/components/duet-upload/upload-item.d.ts +0 -20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duetds/components",
3
- "version": "6.10.2",
3
+ "version": "6.10.4",
4
4
  "description": "This package includes Duet Design System Web Components and related utilities.",
5
5
  "bugs": {
6
6
  "email": "duetdesignsystem@lahitapiola.fi"
@@ -43,17 +43,22 @@
43
43
  "start": "run-p koa stencil:koa",
44
44
  "start:dev": "npm run stencil:dev",
45
45
  "koa": "lerna exec 'npm run start:dev:watch' --scope '@duetds/server'",
46
+ "koa:percy": "lerna exec 'npm run start:dev&' --scope '@duetds/server'",
46
47
  "koa:ci": "lerna exec 'npm run koa:serve:ci' --scope '@duetds/server'",
47
- "duet:build:testsite": "stencil build --serve"
48
+ "koa:kill": "kill -9 $(lsof -ti:3334)",
49
+ "duet:build:testsite": "stencil build --serve",
50
+ "test:percy": "run-s build koa:percy percy-snapshot koa:kill",
51
+ "percy-snapshot": "npx percy snapshot ./percy.js"
48
52
  },
49
53
  "dependencies": {
50
54
  "@floating-ui/dom": "1.2.9",
51
55
  "body-scroll-lock": "3.1.5"
52
56
  },
53
57
  "devDependencies": {
54
- "@duetds/fonts": "2.0.60",
55
- "@duetds/icons": "3.0.60",
56
- "@duetds/tokens": "3.0.60",
58
+ "@duetds/fonts": "2.0.62",
59
+ "@duetds/icons": "3.0.62",
60
+ "@duetds/tokens": "3.0.62",
61
+ "@percy/cli": "1.21.0",
57
62
  "@rollup/plugin-replace": "5.0.2",
58
63
  "@stencil/core": "3.1.0",
59
64
  "@stencil/sass": "3.0.0",
@@ -79,5 +84,5 @@
79
84
  "collection": "lib/collection/collection-manifest.json",
80
85
  "es2015": "lib/esm/index.js",
81
86
  "es2017": "lib/esm/index.js",
82
- "gitHead": "628f4175b4b065e159bed155e11da147735d9a3a"
87
+ "gitHead": "adf4afbc3474e6534ce26cc7ef08cbe372eb3507"
83
88
  }
@@ -1,44 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import { h } from "@stencil/core";
5
- import { getLocaleString } from "../../utils/language-utils";
6
- import { getI18nError } from "./errorcodes.utils";
7
- import { formatBytes } from "./upload.helpers";
8
- //tiedosto latautuu
9
- const fileUploadingInfo = {
10
- fi: "Tiedosto latautuu",
11
- sv: "Filen laddas upp",
12
- en: "File is uploading",
13
- };
14
- export const UploadItem = ({ data, showLinks, type, actions, errorCodes, theme, label, categoryLabel, showCategory, onLinkClick, }) => {
15
- const { uid, item, size, uploaded, url, meta, progress, error } = data;
16
- const { name } = item;
17
- const linkClickHandler = (event) => {
18
- if (onLinkClick) {
19
- event.preventDefault();
20
- onLinkClick(name, url || "", meta);
21
- }
22
- };
23
- const getFileNameLine = () => {
24
- switch (type) {
25
- case "inprogress":
26
- return (h("span", { class: "duet-upload-item-name", role: "status" }, h("duet-paragraph", { class: "duet-upload-item-name", color: "gray-darker", margin: "none", weight: "semi-bold" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name), h("duet-visually-hidden", null, h("duet-paragraph", null, getLocaleString(fileUploadingInfo))), h("duet-progress", { progress: Math.ceil(progress), "aria-hidden": true })));
27
- case "pending":
28
- return (h("span", { class: "duet-upload-item-name" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name));
29
- case "failure":
30
- return (h("span", { class: "duet-upload-item-error", role: "status" }, h("duet-paragraph", { class: "duet-upload-item-name", color: "danger", margin: "none", weight: "semi-bold" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name), h("duet-paragraph", { class: "duet-upload-item-error-label", size: "small", margin: "none", color: "danger" }, getI18nError(error.type, errorCodes))));
31
- default:
32
- return uploaded && url && showLinks ? (h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" }, h("duet-link", { onClick: linkClickHandler, url: url, external: true }, ContentName), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), SizeText)) : (h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" }, ContentName, h("duet-spacer", { size: "xx-small", direction: "horizontal" }), SizeText));
33
- }
34
- };
35
- const ContentName = (h("span", { class: "duet-upload-item-name" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name));
36
- const SizeText = (h("span", { class: "duet-upload-item-size", style: { fontSize: "14px", fontWeight: "400" } }, "(", formatBytes(size), ")"));
37
- const Badges = meta && meta.badges ? (h("span", null, meta.badges.map(badgeText => (h("duet-badge", { color: "primary" }, badgeText))))) : undefined;
38
- const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${name}`;
39
- return (h("div", { class: {
40
- "upload-item-row": true,
41
- } }, showCategory && (h("div", { class: "item-categories" }, h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(categoryLabel)), Badges)), h("div", { class: { "item-name": true, "no-category": !showCategory } }, !!label && (h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(label))), getFileNameLine()), h("div", { class: "item-actions" }, actions.map(actionItem => {
42
- return (h("duet-action-button", { actionMeta: Object.assign({}, meta || {}), actionId: uid || null, actionName: actionItem.name, theme: theme, iconName: actionItem.icon, iconColor: actionItem.color, iconSize: actionItem.size, background: actionItem.background, "accessible-label": `${actionDescription} ${getLocaleString(actionItem.label)} `, accessibleTitle: false }));
43
- }))));
44
- };
@@ -1,183 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import { p as proxyCustomElement, H, h, d as Host } from './p-2b132855.js';
5
- import { a as media_query_large, m as media_query_medium, b as media_query_small } from './p-b519ac77.js';
6
- import { w as watchForOptions, a as watchForElement } from './p-12721178.js';
7
-
8
- const duetGridCss = ".sc-duet-grid-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex !important;flex-direction:column !important;align-items:flex-start !important;justify-content:flex-start !important;width:100%;max-width:100%;height:auto}.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-x-small.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}@media (max-width: 22.5em){.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}@media (min-width: 36em){.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-small.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}@media (min-width: 48em){.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-medium.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}@media (min-width: 62em){.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-large.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}@media (min-width: 64.0625em){.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-x-large.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}.duet-grid-wrap.sc-duet-grid-h{flex-wrap:wrap !important}.duet-no-stacking.sc-duet-grid-h{flex-direction:row !important}.duet-no-stacking.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}@media (max-width: 35.9375em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 36em){.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 48em){.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 62em){.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 64.0625em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-align-top.duet-no-stacking.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-no-stacking.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-no-stacking.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-no-stacking.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-no-stacking.sc-duet-grid-h{align-items:baseline !important}.duet-grid-align-top.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:baseline !important}@media (min-width: 36em){.duet-grid-align-top.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 36em){.duet-grid-align-bottom.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 36em){.duet-grid-align-center.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:center !important}}@media (min-width: 36em){.duet-grid-align-stretch.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 36em){.duet-grid-align-baseline.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 48em){.duet-grid-align-top.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 48em){.duet-grid-align-bottom.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 48em){.duet-grid-align-center.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:center !important}}@media (min-width: 48em){.duet-grid-align-stretch.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 48em){.duet-grid-align-baseline.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 62em){.duet-grid-align-top.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 62em){.duet-grid-align-bottom.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 62em){.duet-grid-align-center.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 62em){.duet-grid-align-stretch.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 62em){.duet-grid-align-baseline.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 64.0625em){.duet-grid-align-top.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 64.0625em){.duet-grid-align-bottom.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 64.0625em){.duet-grid-align-center.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 64.0625em){.duet-grid-align-stretch.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 64.0625em){.duet-grid-align-baseline.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:baseline !important}}.duet-grid-distribution-left.sc-duet-grid-h{justify-content:flex-start !important}.duet-grid-distribution-right.sc-duet-grid-h{justify-content:flex-end !important}.duet-grid-distribution-center.sc-duet-grid-h{justify-content:center !important}.duet-grid-distribution-between.sc-duet-grid-h{justify-content:space-between !important}.duet-grid-distribution-around.sc-duet-grid-h{justify-content:space-around !important}.duet-grid-distribution-evenly.sc-duet-grid-h{justify-content:space-evenly !important}@media (max-width: 35.9375em){.duet-grid-mobile-left.sc-duet-grid-h{align-items:flex-start !important;justify-content:flex-start !important;text-align:left !important}}@media (max-width: 35.9375em){.duet-grid-mobile-center.sc-duet-grid-h{align-items:center !important;justify-content:center !important;text-align:center !important}.duet-grid-mobile-center.sc-duet-grid-h *.sc-duet-grid{text-align:center !important}}@media (max-width: 35.9375em){.duet-grid-mobile-right.sc-duet-grid-h{align-items:flex-end !important;justify-content:flex-end !important;text-align:right !important}.duet-grid-mobile-right.sc-duet-grid-h *.sc-duet-grid{text-align:right !important}}";
9
-
10
- function isGridItem(element) {
11
- return element.tagName.toLowerCase() === "duet-grid-item";
12
- }
13
- const DuetGrid = /*@__PURE__*/ proxyCustomElement(class extends H {
14
- constructor() {
15
- super();
16
- this.__registerHost();
17
- this.mql = [
18
- window.matchMedia(media_query_large.replace(/'/g, "")),
19
- window.matchMedia(media_query_medium.replace(/'/g, "")),
20
- window.matchMedia(media_query_small.replace(/'/g, "")),
21
- ];
22
- this.distributeFormElement = false;
23
- this.responsive = false;
24
- this.breakpoint = "small";
25
- this.direction = "horizontal";
26
- this.rowReverse = false;
27
- this.alignment = "top";
28
- this.distribution = "default";
29
- this.mobile = "";
30
- }
31
- /**
32
- * Private functions
33
- */
34
- /**
35
- * Returns the element height including margins
36
- * @param element - element
37
- * @returns {number}
38
- */
39
- outerHeight(element) {
40
- const height = element.offsetHeight, style = window.getComputedStyle(element);
41
- return ["top", "bottom"]
42
- .map(side => parseInt(style[`margin-${side}`]))
43
- .reduce((total, side) => total + side, height);
44
- }
45
- /**
46
- * Component lifecycle events.
47
- */
48
- async connectedCallback() {
49
- const el = this.element;
50
- this.distributeFormElement = this.alignment === "form_distribute";
51
- this.mutationO = watchForOptions(el, "duet-grid-item", () => {
52
- this.updateGridItems();
53
- });
54
- // the next two functions are used to watch for changes in the grid items, and are process intensive - so only run when needed
55
- if (this.distributeFormElement) {
56
- this.mutation1 = watchForElement(el, "duet-input", () => {
57
- this.updateGridItemsWithInputFields();
58
- });
59
- // listen for potential mediaquery changes and reset layout
60
- for (let i = 0; i < this.mql.length; i++) {
61
- // addEventListener is not available in Stencil hydrate
62
- if (this.mql[i].addEventListener) {
63
- this.mql[i].addEventListener("change", this.updateGridItemsWithInputFields.bind(this));
64
- }
65
- }
66
- }
67
- this.updateGridItems();
68
- }
69
- disconnectedCallback() {
70
- if (this.mutationO) {
71
- this.mutationO.disconnect();
72
- this.mutationO = undefined;
73
- }
74
- if (this.mutation1) {
75
- this.mutation1.disconnect();
76
- this.mutation1 = undefined;
77
- }
78
- // listen for potential mediaquery changes and reset layout
79
- for (let i = 0; i < this.mql.length; i++) {
80
- // addEventListener is not available in Stencil hydrate
81
- if (this.mql[i].removeEventListener) {
82
- this.mql[i].removeEventListener("change", this.updateGridItemsWithInputFields.bind(this));
83
- }
84
- }
85
- }
86
- /**
87
- * Local methods
88
- */
89
- async updateGridItems() {
90
- const items = Array.from(this.element.children).filter(isGridItem);
91
- items.forEach(item => {
92
- item.responsive = this.responsive;
93
- item.breakpoint = this.breakpoint;
94
- item.direction = this.direction;
95
- });
96
- }
97
- async updateGridItemsWithInputFields() {
98
- const items = Array.from(this.element.children).filter(isGridItem);
99
- // if layout changes to columns instead of row, remove all padding
100
- const hasColumnLayout = window ? window.getComputedStyle(this.element).flexDirection === "column" : false;
101
- let maxHeight = 0;
102
- const sizes = [];
103
- items.forEach(item => {
104
- const inputErrorDom = item.querySelector("span.duet-input-error");
105
- const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
106
- sizes.push(height);
107
- });
108
- maxHeight = Math.max(...sizes);
109
- items.forEach(item => {
110
- const inputErrorDom = item.querySelector("span.duet-input-error");
111
- const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
112
- if (height < maxHeight && !hasColumnLayout) {
113
- item.setAttribute("style", `padding-bottom: ${maxHeight - height}px;`);
114
- }
115
- else if (height === maxHeight || hasColumnLayout) {
116
- item.setAttribute("style", `padding-bottom: 0px;`);
117
- }
118
- });
119
- }
120
- /**
121
- * render() function
122
- * Always the last one in the class.
123
- */
124
- render() {
125
- return (h(Host, { class: {
126
- "duet-grid": true,
127
- "duet-no-stacking": !this.responsive,
128
- "duet-grid-align-top": this.alignment === "top",
129
- "duet-grid-align-bottom": this.alignment === "bottom" || this.alignment === "form_distribute",
130
- "duet-grid-align-center": this.alignment === "center",
131
- "duet-grid-align-stretch": this.alignment === "stretch",
132
- "duet-grid-align-baseline": this.alignment === "baseline",
133
- "duet-grid-distribution-left": this.distribution === "left",
134
- "duet-grid-distribution-right": this.distribution === "right",
135
- "duet-grid-distribution-center": this.distribution === "center",
136
- "duet-grid-distribution-between": this.distribution === "space-between",
137
- "duet-grid-distribution-around": this.distribution === "space-around",
138
- "duet-grid-distribution-evenly": this.distribution === "space-evenly",
139
- "duet-grid-mobile-left": this.mobile === "left",
140
- "duet-grid-mobile-center": this.mobile === "center",
141
- "duet-grid-mobile-right": this.mobile === "right",
142
- "duet-grid-direction-horizontal": this.direction === "horizontal",
143
- "duet-grid-direction-vertical": this.direction === "vertical",
144
- "duet-grid-breakpoint-x-small": this.breakpoint === "x-small",
145
- "duet-grid-breakpoint-small": this.breakpoint === "small",
146
- "duet-grid-breakpoint-medium": this.breakpoint === "medium",
147
- "duet-grid-breakpoint-large": this.breakpoint === "large",
148
- "duet-grid-breakpoint-x-large": this.breakpoint === "x-large",
149
- "duet-grid-row-reverse": this.rowReverse,
150
- } }));
151
- }
152
- get element() { return this; }
153
- static get watchers() { return {
154
- "responsive": ["updateGridItems"],
155
- "breakpoint": ["updateGridItems"],
156
- "direction": ["updateGridItems"]
157
- }; }
158
- static get style() { return duetGridCss; }
159
- }, [2, "duet-grid", {
160
- "responsive": [4],
161
- "breakpoint": [1],
162
- "direction": [1],
163
- "rowReverse": [4, "row-reverse"],
164
- "alignment": [1],
165
- "distribution": [1],
166
- "mobile": [1],
167
- "distributeFormElement": [32]
168
- }]);
169
- function defineCustomElement() {
170
- if (typeof customElements === "undefined") {
171
- return;
172
- }
173
- const components = ["duet-grid"];
174
- components.forEach(tagName => { switch (tagName) {
175
- case "duet-grid":
176
- if (!customElements.get(tagName)) {
177
- customElements.define(tagName, DuetGrid);
178
- }
179
- break;
180
- } });
181
- }
182
-
183
- export { DuetGrid as D, defineCustomElement as d };
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,c as t,h as i,H as a,g as o}from"./p-308b881b.js";import{a as s}from"./p-115c79b6.js";import{f as l,t as n}from"./p-b519ac77.js";import{i as r}from"./p-4ebf1618.js";import{c}from"./p-c1325e35.js";import{i as d}from"./p-f077c646.js";import{s as p}from"./p-5a9d75e1.js";const h=class{constructor(i){e(this,i),this.duetToggle=t(this,"duetToggle",7),this.id=c("DuetCollapsible"),this.handleKeyDown=e=>{d(e)&&this.handleClick(e)},this.getFontSizeFromTokens=(e=this.headingSize)=>{if(e){const t=e.replace(/-/g,"_");return n[`font_size_${t}`]}return l},this.getEquivalentIconSize=(e=this.headingSize)=>{switch(e){case"x-small":case"small":case"medium":default:return"xx-small";case"large":return"x-small";case"x-large":return"small";case"xx-large":return"medium";case"xxx-large":return"x-large";case"xxxx-large":return"xxx-large"}},this.handleClick=e=>{e.preventDefault(),this.open=!this.open,this.duetToggle.emit({component:"duet-collapsible",originalEvent:e})},this.theme="",this.accessibleLabel=void 0,this.heading="",this.headingFullWidth=!1,this.centerHeading=!1,this.headingWeight="semibold",this.headingSize=void 0,this.headingLevel=void 0,this.margin="auto",this.open=!1}componentWillLoad(){r(this),this.hasAfterHeading=!!this.element.querySelector(":scope > [slot='after-heading']")}async setFocus(e){this.nativeButton&&(this.element.classList.add("user-is-tabbing"),this.nativeButton.focus(e))}render(){const e=this.headingLevel?p(this.headingLevel):"div";return i(a,{class:{"duet-m-0":"none"===this.margin}},i(e,null,i("button",{class:{"duet-collapsible-heading":!0,"duet-collapsible-heading-centered":this.centerHeading,"duet-theme-turva":"turva"===this.theme,"duet-collapsible-normal-weight":"normal"===this.headingWeight,"has-after-heading":this.hasAfterHeading,"full-width":this.headingFullWidth},style:{"font-size":this.getFontSizeFromTokens()},role:"button",ref:e=>this.nativeButton=e,"aria-label":this.accessibleLabel,"aria-expanded":this.open?"true":"false","aria-controls":this.id,onClick:this.handleClick,onKeyDown:this.handleKeyDown},i("div",{class:"duet-collapsible-heading-icon"},i("duet-icon",{margin:"none",color:"turva"===this.theme?"secondary-turva":"secondary",size:this.getEquivalentIconSize(),icon:s.svg})),i("div",{class:"duet-collapsible-heading-content",part:"duet-collapsible-heading-content"},this.heading),this.hasAfterHeading&&i("div",{part:"duet-collapsible-after-heading"},i("slot",{name:"after-heading"})))),i("div",{id:this.id,class:{"duet-collapsible-content":!0,"duet-theme-turva":"turva"===this.theme},part:"duet-collapsible-content"},i("slot",null)))}get element(){return o(this)}};h.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=after-heading]){display:inline-block}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;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:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}:host(.duet-theme-turva){font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}.duet-collapsible-content{display:none;padding-left:18px;margin-top: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:1rem;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77)}@media (max-width: 35.9375em){.duet-collapsible-content{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}:host([open])>.duet-collapsible-content{display:block}.duet-collapsible-heading{-webkit-user-select:none;user-select:none;display:flex;align-items:center;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77);text-align:left;cursor:pointer;border-radius:4px}.duet-collapsible-heading.full-width{width:100%}.duet-collapsible-heading.duet-collapsible-heading-centered{margin:auto}.duet-collapsible-heading.duet-collapsible-normal-weight{font-weight:400}.duet-collapsible-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-collapsible-heading .duet-collapsible-heading-content{min-width:0}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div{margin-left:16px}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div.float-right{margin-left:auto}.duet-collapsible-heading:focus{outline:0}:host(.user-is-tabbing) .duet-collapsible-heading:focus{border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-collapsible-heading.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-collapsible-heading-icon{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:rgb(0, 41, 77);transition:transform 300ms ease}.duet-collapsible-heading-icon:last-child,.duet-collapsible-heading-icon:last-of-type{margin-right:0 !important}[aria-expanded=true] .duet-collapsible-heading-icon{transform:rotate(180deg)}';export{h as duet_collapsible}
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,a,i){function n(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function o(e){try{s(i.next(e))}catch(t){r(t)}}function l(e){try{s(i["throw"](e))}catch(t){r(t)}}function s(e){e.done?a(e.value):n(e.value).then(o,l)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,n,r,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return s([e,t])}}function s(l){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(a=0)),a)try{if(i=1,n&&(r=l[0]&2?n["return"]:l[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;if(n=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;n=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(r=a.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){a.label=l[1];break}if(l[0]===6&&a.label<r[1]){a.label=r[1];r=l;break}if(r&&a.label<r[2]){a.label=r[2];a.ops.push(l);break}if(r[2])a.ops.pop();a.trys.pop();continue}l=t.call(e,a)}catch(s){l=[6,s];n=0}finally{i=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,a){if(a||arguments.length===2)for(var i=0,n=t.length,r;i<n;i++){if(r||!(i in t)){if(!r)r=Array.prototype.slice.call(t,0,i);r[i]=t[i]}}return e.concat(r||Array.prototype.slice.call(t))};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-62b68de6.system.js","./p-33b3aba4.system.js","./p-34ea0849.system.js","./p-51721695.system.js","./p-c8dc599d.system.js","./p-8c6e3c4f.system.js","./p-71a46879.system.js","./p-5f6bd5db.system.js","./p-b6d51921.system.js"],(function(e){"use strict";var t,a,i,n,r,o,l,s,d,u,p,h,c,f,b,m,g,y,v,x,k;return{setters:[function(e){t=e.h;a=e.r;i=e.c;n=e.H;r=e.g;o=e.F},function(e){l=e.i},function(e){s=e.f;d=e.d},function(e){u=e.i},function(e){p=e.g;h=e.c;c=e.d;f=e.a;b=e.s},function(e){m=e.p;g=e.s},function(e){y=e.b;v=e.a},function(e){x=e.c},function(e){k=e.p}],execute:function(){var w=function(e,a){var i=e.data,n=e.groupId,r=e.alignment;var o="duet-editable-table duet-editable-table-content-".concat(n);if(typeof i==="string"){return t("td",{innerHTML:i,class:o,part:"".concat(n,"content"),style:{verticalAlign:r}})}else{return t("td",{class:o,part:"".concat(n,"content"),style:{verticalAlign:r}},i)}};var L=".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}";var D=e("duet_editable_table",function(){function e(e){var t=this;a(this,e);this.duetTableToggle=i(this,"duetTableToggle",7);this.duetMenuClick=i(this,"duetMenuClick",7);this.hasHeadSlotFirst=false;this.hasHeadSlotLast=false;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=function(e,a){a.preventDefault();var i=e.sort_order,n=e.direction,r=e.index,o=e.key;t.duetTableToggle.emit({sort_order:i,index:r,direction:n,key:o,component:"duet-editable-table",originalEvent:a})};this.handleKeyDown=function(e,a){if(u(a)){t.toggleColumn(e,a)}};this.language=p();this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.actions=undefined;this.columns=undefined;this.rows=undefined;this.sortable=false;this.groupId="";this.theme="";this.accessibleRole=undefined;this.hideHeadVisually=false}e.prototype.componentWillLoad=function(){l(this);this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']");this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']")};e.prototype.connectedCallback=function(){h(this)};e.prototype.disconnectedCallback=function(){c(this)};e.prototype.createLabel=function(e){var a=this;var i=e.sort_order,n=e.direction,r=e.index,o=e.label;var l=f(o);if(!this.sortable){return l}var s=function(){if(!!i&&n===1){return"action-arrow-down-small"}else if(!!i&&n===-1){return"action-arrow-up-small"}return"action-subtract-small"};return t("span",{class:"duet-table-label","data-index":r},t("duet-button",{size:"small",icon:s(),"icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":true,onClick:function(t){return a.toggleColumn(e,t)},onKeyDown:function(t){return a.handleKeyDown(e,t)}},l))};e.prototype.getSortedColumns=function(){return __spreadArray([],this.columns,true).sort(s(["index"]))};e.prototype.getRowSortOrder=function(){var e=__spreadArray([],this.columns,true).sort(s(["sort_order"]));return e.filter((function(e){return e.sort_order})).map((function(e){return e.direction===-1?"-".concat(e.key):e.key}))};e.prototype.renderTableHeader=function(){var e=this;if(!this.columns){return}var a=this.getSortedColumns();return t("tr",{class:{"duet-table-action-header":!!this.actions}},a.map((function(a){if(a.display!==false){var i=e.createLabel(a);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])))};e.prototype.renderActions=function(e,a){var i=this;if(!this.actions){return}return t("td",{class:"duet-text-right"},this.actions.map((function(n){return t("duet-action-button",{actionMeta:Object.assign({},(e===null||e===void 0?void 0:e.meta)||{},{index:a}),actionId:(e===null||e===void 0?void 0:e.uid)||(e===null||e===void 0?void 0:e.id)||null,actionName:n.name,theme:i.theme,iconName:n.icon,iconColor:n.color,iconSize:n.size,background:n.background,"accessible-label":"".concat(e.actionDescription||""," ").concat(f(n.label)," ")})})))};e.prototype.renderTableBody=function(){var e=this;var a=this.getSortedColumns();var i=this.getRowSortOrder();var n=__spreadArray([],this.rows,true).sort(s(i));return n.map((function(i,n){var r;return t("tr",{class:(r={"duet-table-action-row":!!e.actions,"duet-editable-table-row":true},r["duet-editable-table-row-".concat(e.groupId)]=true,r),"data-meta":JSON.stringify(i.meta)},a.map((function(a){var n=i[a.key]?i[a.key]:i.item;if(a.display!==false){return t(w,{data:n,groupId:e.groupId})}})),e.actions&&e.renderActions(i,n))}))};e.prototype.render=function(){var e;return t(n,{class:(e={},e["duet-editable-table-".concat(this.variation)]=true,e["duet-editable-table"]=true,e["duet-editable-table-".concat(this.theme)]=true,e["duet-editable-table-scrollable"]=this.breakpoint==="none-scrollable",e["duet-editable-table-sortable"]=this.sortable,e["duet-editable-table-actions"]=!!this.actions,e["duet-m-0"]=this.margin==="none",e["duet-theme-turva"]=this.theme==="turva",e)},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()),t("tfoot",null,t("tr",null,t("th",{class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{name:"tfoot"})))))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());D.style=L;var M='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(0, 41, 77)}duet-table.duet-theme-turva td{color:rgb(23, 28, 58)}duet-table th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}duet-table.duet-theme-turva th{color:rgb(116, 116, 117)}duet-table tbody th{font-weight:600;color:rgb(0, 41, 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-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 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(101, 119, 135);text-align:left}.duet-table-flattened td[data-heading]::before{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(0, 41, 77);content:attr(data-heading)}.duet-table-flattened.duet-theme-turva td[data-heading]::before{color:rgb(23, 28, 58)}.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(225, 227, 230)}.duet-table-striped.duet-table-sticky.duet-theme-turva thead th{border-bottom-color:rgb(228, 228, 230)}.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(0, 80, 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(0, 80, 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(225, 227, 230)}.duet-table-striped.duet-theme-turva tfoot td{border-top-color:rgb(228, 228, 230)}.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(225, 227, 230)}.duet-table-striped.duet-table-flattened.duet-theme-turva tfoot tr{border-top-color:rgb(228, 228, 230)}.duet-table-fixed th,.duet-table-minimal th,.duet-table-plain th{padding:16px !important;border-bottom:1px solid rgb(101, 119, 135)}.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(68, 68, 69)}.duet-table-fixed tbody th,.duet-table-minimal tbody th,.duet-table-plain tbody th{padding-top:40px !important;border-bottom-color:rgb(225, 227, 230)}.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(228, 228, 230)}.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(225, 227, 230)}.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(228, 228, 230)}.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(225, 227, 230)}.duet-table-plain.duet-table-flattened.duet-theme-turva tbody tr{border-bottom-color:rgb(228, 228, 230)}.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(225, 227, 230)}.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(225, 227, 230)}.duet-table-minimal.duet-table-flattened.duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.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(225, 227, 230)}.duet-table-fixed:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.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(68, 68, 69, 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(225, 227, 230)}.duet-table-sortable:not(.duet-table-flattened).duet-theme-turva tfoot{border-top-color:rgb(228, 228, 230)}.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}';var I={none:0,"with-links":parseFloat(m)*16,"without-links":parseFloat(g)*16};var _=e("duet_table",function(){function e(e){var t=this;a(this,e);this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)";this.handleMediaQueryChange=function(e){t.matchesBreakpoint=y.includes(t.breakpoint)?!e.matches:e.matches};this.matchesBreakpoint=true;this.language=p();this.theme=undefined;this.margin="auto";this.variation="striped";this.sticky=false;this.stickyDistance="with-links";this.breakpoint="small";this.hideHeadVisually=false}e.prototype.watchLanguageStateHandler=function(e,t){var a=this;if(e!==t){setTimeout((function(){return a.copyHeadingsToCells()}),50)}};e.prototype.connectedCallback=function(){var e=this;var t=this.breakpoint==="none"||this.breakpoint==="none-scrollable"?"all":v[this.breakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",d(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);this.observer=new MutationObserver((function(){return d(e.copyHeadingsToCells(),50)}));this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.componentWillLoad=function(){l(this);this.copyHeadingsToCells();if(this.sticky&&this.breakpoint==="none-scrollable"){console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence')}if(this.sticky){var e=I[this.stickyDistance];var t=this.element.querySelectorAll(this.headingSelector);t.forEach((function(t){return t.style.top="".concat(e,"px")}))}};e.prototype.componentDidLoad=function(){this.observer?this.observer.takeRecords():null;h(this)};e.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;this.mq.removeListener(this.handleMediaQueryChange);this.mq=null;this.matchesBreakpoint=true;c(this)};e.prototype.copyHeadingsToCells=function(){var e=this.element.querySelectorAll(this.headingSelector);var t=this.element.querySelectorAll("tbody tr");var a=Array.from(e).map((function(e){return e.textContent.trim()}));t.forEach((function(e){e.querySelectorAll("td").forEach((function(e,t){if(a[t]){e.dataset.heading=a[t]}}))}))};e.prototype.render=function(){var e;return t(n,{class:(e={},e["duet-table-".concat(this.variation)]=true,e["duet-table-flattened"]=!this.matchesBreakpoint,e["duet-table-sticky"]=this.matchesBreakpoint&&this.sticky,e["duet-table-scrollable"]=this.breakpoint==="none-scrollable",e["duet-m-0"]=this.margin==="none",e["duet-theme-turva"]=this.theme==="turva",e["duet-table-hide-head-visually"]=this.hideHeadVisually,e)},t("slot",null))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{language:["watchLanguageStateHandler"]}},enumerable:false,configurable:true});return e}());_.style=M;var E=[{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-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."}}];var F=function(e,t){var a={type:undefined,system_message:undefined,message:undefined};t=k(t);a=t.filter((function(t){return t.type==e}))[0];if(!a){a=t.filter((function(e){return e.type==="default"}))[0]}return a};var C=function(e,t){var a=F(e,t);var i=f(a.message);if(i===""||!i){return a.system_message}else{return i}};var S=function(e,t){if(t===void 0){t=2}if(e===0){return"0 Bytes"}var a=1024;var i=t<0?0:t;var n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];var r=Math.floor(Math.log(e)/Math.log(a));return parseFloat((e/Math.pow(a,r)).toFixed(i))+" "+n[r]};var T={fi:"Tiedosto latautuu",sv:"Filen laddas upp",en:"File is uploading"};var z=function(e){var a=e.data,i=e.showLinks,n=e.type,r=e.actions,o=e.errorCodes,l=e.theme,s=e.label,d=e.categoryLabel,u=e.showCategory,p=e.onLinkClick;var h=a.uid,c=a.item,b=a.size,m=a.uploaded,g=a.url,y=a.meta,v=a.progress,x=a.error;var k=c.name;var w=function(e){if(p){e.preventDefault();p(k,g||"",y)}};var L=function(){switch(n){case"inprogress":return t("span",{class:"duet-upload-item-name",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"gray-darker",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),k),t("duet-visually-hidden",null,t("duet-paragraph",null,f(T))),t("duet-progress",{progress:Math.ceil(v),"aria-hidden":true}));case"pending":return t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),k);case"failure":return t("span",{class:"duet-upload-item-error",role:"status"},t("duet-paragraph",{class:"duet-upload-item-name",color:"danger",margin:"none",weight:"semi-bold"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),k),t("duet-paragraph",{class:"duet-upload-item-error-label",size:"small",margin:"none",color:"danger"},C(x.type,o)));default:return m&&g&&i?t("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},t("duet-link",{onClick:w,url:g,external:true},D),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),M):t("duet-paragraph",{color:"secondary",margin:"none",weight:"semi-bold"},D,t("duet-spacer",{size:"xx-small",direction:"horizontal"}),M)}};var D=t("span",{class:"duet-upload-item-name"},t("duet-icon",{margin:"none",size:"x-small",name:"messaging-attachment"}),t("duet-spacer",{size:"xx-small",direction:"horizontal"}),k);var M=t("span",{class:"duet-upload-item-size",style:{fontSize:"14px",fontWeight:"400"}},"(",S(b),")");var I=y&&y.badges?t("span",null,y.badges.map((function(e){return t("duet-badge",{color:"primary"},e)}))):undefined;var _="".concat(y&&y.badges?y.badges.join(","):""," ").concat(k);return t("div",{class:{"upload-item-row":true}},u&&t("div",{class:"item-categories"},t("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},f(d)),I),t("div",{class:{"item-name":true,"no-category":!u}},!!s&&t("duet-heading",{class:"heading",color:"color-secondary",level:"h6",weight:"semibold"},f(s)),L()),t("div",{class:"item-actions"},r.map((function(e){return t("duet-action-button",{actionMeta:Object.assign({},y||{}),actionId:h||null,actionName:e.name,theme:l,iconName:e.icon,iconColor:e.color,iconSize:e.size,background:e.background,"accessible-label":"".concat(_," ").concat(f(e.label)," "),accessibleTitle:false})}))))};var B=function(e){var a=e.label,i=e.categoryLabel;return t("div",{class:"items-header"},i&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none"},f(i)),t("duet-heading",{class:{"filename-header":true,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none"},f(a)))};var U=function(e,t){if(!t){return true}var a=e.split(".");var i=t.split(",");var n=a[a.length-1];return i.includes(n)};var A=function(e,t){if(!t||!e){return true}var a=t.split(",");var i=false;a.forEach((function(t){var a=t.split("/");var n=e.split("/");if(a[0]===n[0]&&(a[1]===n[1]||a[1]==="*")){i=true}}));return i};var R=function(e,t){if(!t||!e){return true}return t>=e};var P=function(e,t,a){var i=t.allowedMimetypes,n=t.allowedExtensions,r=t.maxBytes;var o=false;var l=F("default",a);if(e){var s=e.name,d=e.type,u=e.size;var p=A(d,i);var h=n==="all"||n===""||n===" "||n===undefined?true:U(s.toLowerCase(),n);var c=R(u,r);if(!p){l=F("duet-upload-101",a)}if(!h){l=F("duet-upload-100",a)}if(!c){l=F("duet-upload-201",a)}o=p&&h&&c}else{o=false}return{valid:o,errorMessage:o?undefined:f(l.message),errorSystem:o?undefined:l.system_message,errorType:o?undefined:l.type}};var H=function(e,t){var a=0;if(t){e.forEach((function(e){if(e.valid&&e.size){a+=e.size}}));if(a>=t){return true}}return false};var j=function(e,t){var a=0;if(t){e.forEach((function(e){if(e.valid){a++}}));if(a>=t){return true}}return false};var V=function(e,t,a){if(e+t>a){return true}return false};var q=function(e){var t=e.payload,a=e.options,i=e.onFailure,n=e.onSuccess,r=e.onProgress;var o=a.type,l=o===void 0?"POST":o,s=a.xhr,d=a.uri,u=a.argument,p=u===void 0?null:u,h=a.headers,c=h===void 0?null:h;s.open(l,"".concat(d).concat(p||""),true);var f=t.data,b=t.name;if(c){Object.keys(c).forEach((function(e){s.setRequestHeader(e,c[e])}))}if(l==="POST"){s.onreadystatechange=function(){if(s.readyState===XMLHttpRequest.DONE&&s.status>=200&&s.status<300){n(s,b,s.status)}if(s.readyState===XMLHttpRequest.DONE&&s.status>=300&&s.status<999){i(s,b,s.status)}};r(b)}s.send(f);return s};var G="*,*::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(225, 227, 230)}@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}";var O=e("duet_upload",function(){function e(e){var n=this;a(this,e);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=x("DuetButton");this.labelId=x("DuetLabel");this.uploadId=x("DuetUpload");this.filesInProgress=new Map;this.fileMaxReached=false;this.bytesMaxReached=false;this.filesToUploadExceedsLimit=false;this.internalStatusMessageLabel=undefined;this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"};this.kick=d((function(){n.tick=Date.now()}),30);this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"};this.listenForActionEvents=function(){n.element.addEventListener("duetActionEvent",(function(e){var t=e.detail;var a=t.action,i=t.id,r=t.originalEvent;switch(a){case"delete":n.onDelete(i,r);break;case"cancel":n.onCancel(i,r);break}}))};this.verifyValidity=function(){var e=n.getFilesAsArray(),t=e.invalid,a=e.valid;var i=n.valid;n.valid=t.length===0&&a.length!==0;if(n.valid!==i){n.duetState.emit({originalEvent:undefined,data:{valid:n.valid,from:"componentWillRender"},component:"duet-upload"})}};this.getGroupFromItemData=function(e){if(e.valid&&e.progress===100){return n.DefaultGroups.success}else if(e.progress>0&&e.progress!==100){return n.DefaultGroups.inprogress}else if(!e.valid){return n.DefaultGroups.failure}else if(e.pending){return n.DefaultGroups.pending}else if(e.group){return e.group}else{return"none"}};this.mapFilesToUploadItems=function(e,a,i){if(a===n.DefaultGroups.success){return t(z,{theme:n.theme,actions:n.getActions(a),type:"success",data:e,showLinks:n.showLinks,onLinkClick:n.emitEvent?n.onLinkClick:undefined,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i})}else if(a===n.DefaultGroups.inprogress){return t(z,{theme:n.theme,actions:n.getActions(a),type:"inprogress",data:e,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i})}else if(a===n.DefaultGroups.pending){return t(z,{theme:n.theme,actions:n.getActions(a),type:"pending",data:e,showLinks:n.showLinks,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i})}else if(a===n.DefaultGroups.failure){return t(z,{theme:n.theme,actions:n.getActions(a),type:"failure",data:e,showLinks:n.showLinks,errorCodes:n.errorCodes,categoryLabel:n.categoryLabel,label:n.uploadedItemsHeaderLabel,showCategory:i})}else if(e.group){return e.html}else{return"none"}};this.genHashName=function(){return Date.now().toString(36)+Math.random()};this.updateValueInMap=function(e,t,a,i){if(i===void 0){i=true}try{var r=n.files.get(e);r[t]=a;n.files.set(e,r);if(n.external&&t!=="url"){n.trackProgress(e,t==="uploaded")}}catch(o){}if(i){n.kick()}};this.updateProgress=function(e,t){var a=function(a){n.updateValueInMap(t,"progress",a);n.onProgress(t,a,e)};if(e.lengthComputable){var i=e.loaded/e.total*100;a(i)}else{console.log("cant read progress")}};this.trackProgress=function(e,t){if(t===void 0){t=false}if(t){n.filesInProgress.delete(e)}else{n.filesInProgress.set(e,"inprogress")}if(n.filesInProgress.size===0){n.onDone()}};this.getFilesAsArray=function(){var e=[];var t=[];n.files.forEach((function(a){if(a.valid&&!a.deleted){e.push(a)}else if(!a.valid&&!a.deleted){t.push(a)}}));return{valid:e,invalid:t}};this.resetFormFields=function(){n.nativeInput.value=""};this.startUpload=function(e,t){if(t===void 0){t=undefined}return __awaiter(n,void 0,void 0,(function(){var a,i,n;return __generator(this,(function(r){a=this.validateTotals(),i=a.bytesMaxReached,n=a.fileMaxReached;if(i||n){this.kick();return[2]}this.metaData=t;this.nativeInput.click();this.onUpload(e,t);e.stopPropagation();e.preventDefault();return[2]}))}))};this.transferComplete=function(e){n.updateValueInMap(e,"progress",100,false);n.trackProgress(e,true)};this.transferDone=function(e,t,a){n.updateValueInMap(t,"status",a,false);n.updateValueInMap(t,"uploaded",true,false);try{var i=JSON.parse(e.response);n.updateValueInMap(t,"url",i.url)}catch(r){n.updateValueInMap(t,"url",null);console.error("Server did not respond with expected response {url: string}")}return};this.transferDoneWithFailure=function(e,t,a){try{var i=JSON.parse(e.response).error;n.updateValueInMap(t,"error",{message:i.message,type:i.type},false)}catch(r){console.error("Server did not respond with expected response error:{message: string, type: int}");n.updateValueInMap(t,"error",{type:a},false)}n.updateValueInMap(t,"valid",false,true)};this.transferFailed=function(e){n.updateValueInMap(e,"error",C("duet-upload-001",n.errorCodes))};this.transferCanceled=function(e){n.files.delete(e);n.validateTotals(e);n.kick()};this.validateTotals=function(e){var t=H(n.files,n.maxBytesTotal);var a=j(n.files,n.maxFiles);if(t&&e){n.updateValueInMap(e,"error",C("duet-upload-202",n.errorCodes),false)}if(a&&e){n.updateValueInMap(e,"error",C("duet-upload-301",n.errorCodes),false)}n.bytesMaxReached=t;n.fileMaxReached=a;return{bytesMaxReached:t,fileMaxReached:a}};this.uploadFile=function(e,t,a){if(t===void 0){t=false}return __awaiter(n,void 0,void 0,(function(){var i,n,r;return __generator(this,(function(o){switch(o.label){case 0:if(!t&&this.deferUpload){this.updateValueInMap(e.item.name,"pending",true,false);this.updateValueInMap(e.item.name,"group","pending",true)}else if(t){this.updateValueInMap(e.item.name,"pending",false,false);this.updateValueInMap(e.item.name,"group",undefined,true)}o.label=1;case 1:o.trys.push([1,4,,5]);if(!(!this.deferUpload||t))return[3,3];i=new FormData;i.append("file",e.item);if(a){i.append("key",a)}i.append("uid",e.uid);i.append("name",e.item.name);i.append("metadata",JSON.stringify({uid:e.uid,url:this.uri,size:e.item.size,meta:e.meta}));n=e;return[4,this.makeXHRPostRequest(i)];case 2:n.xhr=o.sent();o.label=3;case 3:return[3,5];case 4:r=o.sent();this.updateValueInMap(e.item.name,"valid",false,false);return[3,5];case 5:return[2]}}))}))};this.uploadPendingFiles=function(){for(var e=0,t=Array.from(n.files.entries());e<t.length;e++){var a=t[e],i=a[0],r=a[1];if(r.group==="pending"&&r.pending===true){n.uploadFile(r,true,i)}}};this.getItemFromUID=function(e){for(var t=0,a=Array.from(n.files.entries());t<a.length;t++){var i=a[t],r=i[0],o=i[1];if(o.uid===e){return{value:o,key:r}}}return null};this.handleExternalUploadButton=function(e,t){if(n.externalUploadButton){if(e||t){n.externalUploadButton.disabled=true}else{n.externalUploadButton.disabled=false}}};this.onDelete=function(e,t){var a=n.getItemFromUID(e);var i=a.key;var r=n.files.get(i);n.files.delete(i);var o=n.validateTotals(),l=o.bytesMaxReached,s=o.fileMaxReached;n.handleExternalUploadButton(l,s);n.kick();n.duetDelete.emit({originalEvent:t,data:{deletion:r},component:"duet-upload"});if(!n.external&&!r.pending){n.makeXHRDeleteRequest(r)}n.resetFormFields()};this.onCancel=function(e,t){var a=n.getItemFromUID(e).key;var i=n.files.get(a);n.files.delete(a);var r=n.validateTotals(),o=r.bytesMaxReached,l=r.fileMaxReached;n.handleExternalUploadButton(o,l);if(!n.external){var s=i.xhr;if(s){s.abort()}}n.kick();n.resetFormFields();n.duetCancel.emit({originalEvent:t,data:{cancelled:i},component:"duet-upload"})};this.onUpload=function(e,t){n.duetUpload.emit({originalEvent:e,metaData:t,component:"duet-upload"})};this.onBlur=function(e){n.duetBlur.emit({originalEvent:e,component:"duet-upload"})};this.onProgress=function(e,t,a){n.duetChange.emit({originalEvent:a,data:{key:e,percentComplete:t},component:"duet-upload"})};this.onFocus=function(e){n.duetFocus.emit({originalEvent:e,component:"duet-upload"})};this.onReady=function(){n.duetReady.emit({component:"duet-upload"})};this.onDone=function(){n.duetDone.emit({component:"duet-upload",data:{files:n.files}})};this.onLinkClick=function(e,t,a){if(n.emitEvent){n.linkClick.emit({component:"duet-upload",data:{name:e,url:t,meta:a}})}};this.filterMap=function(){var e=Array.from(n.files.values());var t=[];var a=[];var i=[];var r=[];var o=false;e.forEach((function(e){var l=n.getGroupFromItemData(e);if(e.meta&&!!e.meta.badges){o=true}if(l===n.DefaultGroups.success){r.push({uid:e.uid,data:e})}else if(l===n.DefaultGroups.inprogress){t.push({uid:e.uid,data:e})}else if(l===n.DefaultGroups.pending){i.push({uid:e.uid,data:e})}else if(l===n.DefaultGroups.failure){a.push({uid:e.uid,data:e})}else if(e.group){t.push({uid:e.uid,data:e})}}));return{pending:i,failure:a,success:r,inprogress:t,hasCategory:o}};this.getActions=function(e){return n.actions.filter((function(t){return t.map.includes(e)}))};this.renderUploadedItems=function(){var e=n.filterMap();var a=e.hasCategory;var i=n.groups.map((function(i){var r=e[i.id];if(!(r===null||r===void 0?void 0:r.length)){return}return t(o,null,!n.hideGroups&&t(B,{categoryLabel:a?n.categoryLabel:undefined,label:i.label}),r.map((function(e){return n.mapFilesToUploadItems(e.data,i.id,a)})))}));return t(o,null,n.showUploadedItemsHeader&&t(B,{categoryLabel:a?n.categoryLabel:undefined,label:n.uploadedItemsHeaderLabel}),i)};this.tick=Date.now();this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.external=false;this.middleware=null;this.deferUpload=false;this.hideButton=false;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=undefined;this.showLinks=false;this.caption=undefined;this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded} lähetettävästä {filesTotal} tiedostosta",inProgressWithErrors:"Lähetetään {filesInProgress} tiedostoa, lähetetty {filesUploaded} lähetettävästä {filesTotal} tiedostosta, {filesWithErrors} tiedostossa on virheitä",done:"Kaikki {filesTotal} tiedostoa lähetetty onnistuneesti",doneWithErrors:"Lataus valmis, {filesUploaded} tiedostoa ladattu onnistuneesti, {filesWithErrors} tiedostossa oli virheitä",files:"tiedostot",file:"tiedosto"},sv:{inProgress:"Adding {filesUploaded} of {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Alla {filesTotal} har lagts till",doneWithErrors:"Handling slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Adding {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"All {filesTotal} added successfully",doneWithErrors:"Action completed, {filesUploaded} has been added successfully, {filesWithErrors} had errors",files:"File",file:"file"}};this.statusMessageLabel=f(this.statusLabelDefaults);this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"};this.buttonLabel=f(this.buttonLabelDefaults);this.accessibleButtonLabel=undefined;this.theme="";this.disabled=false;this.identifier=undefined;this.margin="auto";this.required=false;this.alignment="middle";this.hideGroups=false;this.files=new Map;this.valid=!this.required;this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"};this.label=f(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=f(this.descriptionDefaults);this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."};this.fileListEmpty=f(this.fileListEmptyDefaults);this.error="";this.errorCodes=E;this.name=undefined;this.maxBytes=2e8;this.maxBytesTotal=undefined;this.maxFiles=99;this.allowedExtensions="all";this.allowedMimetypes="*";this.multiple=true;this.limitSelection=false;this.value=undefined;this.externalUploadButtonId=undefined;this.captionOnBottom=false;this.showUploadedItemsHeader=false;this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"};this.hideHeader=false;this.emitEvent=false;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"}}]}e.prototype.watchValidHandler=function(e,t){if(e!==t){this.kick()}};e.prototype.componentWillLoad=function(){if(typeof this.statusMessageLabel==="string"){this.internalStatusMessageLabel=b(this.groups)}else{this.internalStatusMessageLabel=this.statusMessageLabel}l(this);this.listenForActionEvents();this.onReady();this.externalUploadButton=document.querySelector("#".concat(this.externalUploadButtonId))};e.prototype.componentWillRender=function(){this.verifyValidity()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeInput){this.nativeInput.focus(e)}return[2]}))}))};e.prototype.upload=function(e){if(e===void 0){e=undefined}return __awaiter(this,void 0,void 0,(function(){var t,a,i;return __generator(this,(function(n){t=this.validateTotals(),a=t.bytesMaxReached,i=t.fileMaxReached;if(a||i){this.handleExternalUploadButton(a,i);this.kick();return[2]}this.metaData=e;this.nativeInput.click();return[2]}))}))};e.prototype.uploadPending=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.uploadPendingFiles();return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.kick();return[4,this.setFocus()];case 1:e.sent();return[2]}}))}))};e.prototype.getFiles=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.files||this.files.size===0){return[2,false]}return[2,this.getFilesAsArray()]}))}))};e.prototype.updateValue=function(e,t,a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.updateValueInMap(e,t,a);return[2]}))}))};e.prototype.render=function(){var e=this;var a=this.identifier||this.uploadId;var i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024);var r=Math.round(this.maxBytes/1024/1024);var l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());l=l.replace(/{maxbytes}/g,"".concat(r.toString()," MB"));l=l.replace(/{maxbytestotal}/g,"".concat(i.toString()," MB"));l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", "));if(this.externalUploadButton){this.externalUploadButton.ariaLabel=l}return t(n,{class:{"duet-m-0":this.margin==="none"}},t("duet-fieldset",{"label-hidden":this.hideHeader,label:this.label,caption:!this.captionOnBottom?l:undefined},t("slot",{name:"header"}),!this.files.size&&t("duet-empty-state",{id:this.labelId,part:this.identifier?"".concat(this.identifier,"-empty-state"):"duet-upload-empty-state",icon:"messaging-attachment"},t("duet-paragraph",{margin:"none"},this.fileListEmpty)),!!this.files.size&&t("slot",{name:"fileheader"}),!!this.files.size&&t("duet-upload-aria-status",{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",{name:"filefooter"}),t("slot",{name:"uploadfooter"}),this.captionOnBottom&&t("duet-caption",{margin:"none",size:"small"},t("div",{class:"upload-bottom-caption"},l)),t("slot",{name:"afterfooter"}),!this.hideButton&&t(o,null,t("duet-spacer",{size:"large"}),t("duet-button",{id:this.buttonId,onClick:this.startUpload,"accessible-controls":a,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel,"accessible-owns":a,size:"small",variation:"secondary",fixed:true,icon:"action-add-circle",part:this.identifier?"".concat(this.identifier,"-button-upload"):"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit)&&t(o,null,t("duet-spacer",{size:"medium"}),t("duet-alert",{part:this.identifier?"".concat(this.identifier,"-error-notification"):"duet-upload-error-notification"},this.fileMaxReached&&C("duet-upload-301",this.errorCodes),this.bytesMaxReached&&C("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&C("duet-upload-302",this.errorCodes))),t("duet-visually-hidden",{"aria-hidden":"true"},t("input",{ref:function(t){e.nativeInput=t},accept:!this.limitSelection?undefined:"".concat(this.allowedMimetypes,",").concat(this.allowedExtensions),onBlur:this.onBlur,onFocus:this.onFocus,onChange:function(t){return e.onChange(t)},type:"file",class:{"duet-upload":true},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))};e.prototype.makeXHRPostRequest=function(e){var t=this;var a=new XMLHttpRequest;var i=e.get("name");a.upload.addEventListener("progress",(function(e){t.updateProgress(e,i)}));a.upload.addEventListener("load",(function(){t.transferComplete(i)}));a.upload.addEventListener("error",(function(){t.transferFailed(i)}));a.upload.addEventListener("abort",(function(){t.transferCanceled(i)}));var n={payload:{data:e,name:i},options:{type:"POST",uri:this.uri,xhr:a,argument:null,headers:undefined},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){n=this.middleware(n)}return q(n)};e.prototype.makeXHRDeleteRequest=function(e){var t=e.uid,a=e.item;var i=new XMLHttpRequest;var n={"x-fileuid":t,"x-filename":a.name};var r={payload:{data:null,name:name},options:{type:"DELETE",xhr:i,uri:this.uri,argument:"?key=".concat(t,"&name=").concat(a.name),headers:n},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};if(this.middleware){r=this.middleware(r)}return q(r)};e.prototype.onChange=function(e){return __awaiter(this,void 0,void 0,(function(){var t,a,i,n,r,o,l,s,d,u,p,h;return __generator(this,(function(c){switch(c.label){case 0:a=Array.from((t=this.nativeInput)===null||t===void 0?void 0:t.files);this.filesToUploadExceedsLimit=false;if(V(this.files.size,a.length,this.maxFiles)){this.filesToUploadExceedsLimit=true;this.kick();return[2]}if(!a)return[3,6];i=0,n=a;c.label=1;case 1:if(!(i<n.length))return[3,6];r=n[i];o=P(r,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),l=o.valid,s=o.errorMessage,d=o.errorType,u=o.errorSystem;p=this.genHashName();h={uid:p,item:r,size:r.size,meta:this.metaData,uploaded:false,valid:l,error:{type:l?undefined:d,message:l?undefined:s,system_message:l?undefined:u},progress:0,deleted:false,xhr:false,url:false};this.files.set(r.name,h);if(!(l&&!this.external))return[3,3];return[4,this.uploadFile(h)];case 2:c.sent();return[3,4];case 3:if(l&&this.external){this.updateValueInMap(h.item.name,"pending",true,false);this.updateValueInMap(h.item.name,"group","pending",true)}else if(!l){this.updateValueInMap(r.name,"valid",false,true)}c.label=4;case 4:this.kick();c.label=5;case 5:i++;return[3,1];case 6:this.resetFormFields();this.metaData=undefined;this.duetChange.emit({originalEvent:e,data:{files:this.files},component:"duet-upload"});return[2]}}))}))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{valid:["watchValidHandler"]}},enumerable:false,configurable:true});return e}());O.style=G}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{h as o}from"./p-308b881b.js";const s=o=>{"setFocus"in o?o.setFocus():o.focus()},a=({moveFocusTo:a})=>o("div",{class:"duet-focus-guard","aria-hidden":"true",tabIndex:0,onFocus:()=>s(a)});export{a as F,s as f}
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,o,n){function a(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,i){function r(t){try{s(n.next(t))}catch(e){i(e)}}function l(t){try{s(n["throw"](t))}catch(e){i(e)}}function s(t){t.done?o(t.value):a(t.value).then(r,l)}s((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return s([t,e])}}function s(l){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(o=0)),o)try{if(n=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:o.label++;return{value:l[1],done:false};case 5:o.label++;a=l[1];l=[0];continue;case 7:l=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(l[0]===6&&o.label<i[1]){o.label=i[1];i=l;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(l);break}if(i[2])o.ops.pop();o.trys.pop();continue}l=e.call(t,o)}catch(s){l=[6,s];a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-62b68de6.system.js","./p-33b3aba4.system.js","./p-c8dc599d.system.js","./p-5f6bd5db.system.js","./p-51721695.system.js","./p-b6d51921.system.js"],(function(t){"use strict";var e,o,n,a,i,r,l,s,c,d,u,b,h;return{setters:[function(t){e=t.r;o=t.h;n=t.H;a=t.g;i=t.c},function(t){r=t.i},function(t){l=t.a;s=t.g},function(t){c=t.c},function(t){d=t.d;u=t.b;b=t.a;h=t.c},function(){}],execute:function(){var p="*,*::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;-webkit-tap-highlight-color:transparent}:host{position:relative !important}:host .duet-scrollable-items{display:flex}:host .duet-scrollable-items .duet-scrollable-button{position:relative;flex:0 0 auto;flex-basis:40px;padding:10px;cursor:pointer}:host .duet-scrollable-items .duet-scrollable-button:active{transform:scale(0.8)}:host .duet-scrollable-items .duet-scrollable-button--left{left:-12px}:host .duet-scrollable-items .duet-scrollable-button--right{right:-12px}:host .duet-scrollable-items .duet-scrollable-button--occluded{display:none}:host .duet-scrollable-items .duet-scrollable-list{display:flex;flex-wrap:nowrap;gap:20px;padding-top:2px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scroll-snap-type:x mandatory;scroll-behavior:smooth;scroll-margin:0 20px;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;}:host .duet-scrollable-items .duet-scrollable-list:not(.buttons){white-space:normal}:host .duet-scrollable-items .duet-scrollable-list::-webkit-scrollbar{display:none}:host .duet-scrollable-items .duet-scrollable-list.collapsed{flex-wrap:wrap}:host .duet-scrollable-items.center{justify-content:center}:host .duet-scrollable-items.center .duet-scrollable-list.collapsed{justify-content:center}.collapse{width:100%;text-align:center}.collapse.hide{visibility:hidden}::slotted(*){scroll-snap-align:center;margin-left:0;-webkit-transition:-webkit-transform 0.2s ease-in-out;transition:-webkit-transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out}";var g=t("duet_scrollable",function(){function t(t){var o=this;e(this,t);this.currentIndex=0;this.tabListElement=undefined;this.tabListClass="duet-scrollable-list";this.hasCollapseButtonLabelSlot=false;this.resizeObserver=new ResizeObserver((function(t){var e,n,a,i;if((t===null||t===void 0?void 0:t.length)===1){var r=(n=(e=t[0])===null||e===void 0?void 0:e.target)===null||n===void 0?void 0:n.getBoundingClientRect().width;var l=(i=(a=t[0])===null||a===void 0?void 0:a.target)===null||i===void 0?void 0:i.scrollWidth;o.isTabContentSmallerThanWrapper=l>r+5}}));this.collapsedOnClick=function(){o.collapsed=!o.collapsed};this.tablistAtStart=true;this.isTabContentSmallerThanWrapper=false;this.tablistAtEnd=false;this.childrenData={};this.theme="";this.identifier="";this.collapsed=false;this.buttons=true;this.center=false;this.selected=0}t.prototype.watchPropHandler=function(t){this.scrollToTab(t,"center")};t.prototype.componentWillLoad=function(){r(this);this.hasCollapseButtonLabelSlot=!!this.host.querySelector(":scope > [slot='collapse-button-label']");var t=this.host.querySelectorAll(":scope > :not([slot='collapse-button-label'])");this.childrenData={hasChildren:t&&t.length>0,numberOfChildren:t&&t.length}};t.prototype.componentDidLoad=function(){this.resizeObserver.observe(this.tabListElement)};t.prototype.disconnectedCallback=function(){this.resizeObserver.disconnect()};t.prototype.getLastVisibleElement=function(){var t=this.tabListElement.clientWidth;var e=Array.from(this.host.querySelectorAll("button")).findIndex((function(e){return e.getBoundingClientRect().x>t}));return e};t.prototype.getFirstVisibleElement=function(){var t=this.host.querySelectorAll("button");var e=Array.from(t).map((function(t){return t.getBoundingClientRect().x-t.getBoundingClientRect().width}));var o=e.findIndex((function(t){return t>0}));return o};t.prototype.updateScrollButtons=function(t){if(t===void 0){t=this.tabListElement}if(!this.buttons){return}if(t.scrollLeft<=0){this.tablistAtStart=true}else if(t.scrollLeft>0){this.tablistAtStart=false}if(t.clientWidth+t.scrollLeft+10>=t.scrollWidth){this.tablistAtEnd=true}else if(t.clientWidth+t.scrollLeft+10<t.scrollWidth){this.tablistAtEnd=false}};t.prototype.scrollToTab=function(t,e){var o=this;if(t===void 0){t=this.currentIndex}if(!this.childrenData.hasChildren){return}if(t+1>=this.childrenData.numberOfChildren){t=this.childrenData.numberOfChildren-1}if(t<0){t=0}var n=this.host.querySelectorAll("button");var a=n[0].getBoundingClientRect().x;var i=5;var r=function(){if(n[0].getBoundingClientRect().x===a){i--;if(i!==0){window.requestAnimationFrame(r);return}o.updateScrollButtons()}else{window.requestAnimationFrame(r);a=n[0].getBoundingClientRect().x}};n[t].scrollIntoView({behavior:"smooth",inline:e});window.requestAnimationFrame(r)};t.prototype.scrollLeft=function(){this.tablistAtEnd=false;var t=this.getFirstVisibleElement()-1;this.scrollToTab(t,"center")};t.prototype.scrollRight=function(){this.tablistAtStart=false;var t=this.getLastVisibleElement()+1;this.scrollToTab(t,"center")};t.prototype.render=function(){var t;var e=this;return o(n,{class:{"duet-theme-turva":this.theme==="turva","duet-theme-default":this.theme==="default"}},this.hasCollapseButtonLabelSlot&&o("div",{class:{collapse:true,hide:!this.isTabContentSmallerThanWrapper&&!this.collapsed}},o("duet-button",{variation:"plain",margin:"none","center-text":true,onClick:function(){return e.collapsedOnClick()}},o("slot",{name:"collapse-button-label"}))),o("div",{class:{"duet-scrollable-items":true,buttons:this.buttons,center:this.center}},o("button",{part:"".concat(this.identifier,"-button-left"),"aria-hidden":"true",class:{"duet-scrollable-button":true,"duet-scrollable-button--left":true,"duet-scrollable-button--occluded":!this.isTabContentSmallerThanWrapper},onClick:function(){return e.scrollLeft()},disabled:this.tablistAtStart,tabindex:"-1",hidden:!this.buttons},o("duet-icon",{name:"action-arrow-left-small",size:"small",margin:"none"})),o("div",{class:(t={},t[this.tabListClass]=true,t.collapsed=this.collapsed,t),onScroll:function(){return e.updateScrollButtons()},ref:function(t){return e.tabListElement=t}},o("slot",null)),o("button",{part:"".concat(this.identifier,"-button-right"),"aria-hidden":"true",class:{"duet-scrollable-button":true,"duet-scrollable-button--right":true,"duet-scrollable-button--occluded":!this.isTabContentSmallerThanWrapper},onClick:function(){return e.scrollRight()},disabled:this.tablistAtEnd,tabindex:"-1",hidden:!this.buttons},o("duet-icon",{name:"action-arrow-right-small",size:"small",margin:"none"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:["watchPropHandler"]}},enumerable:false,configurable:true});return t}());g.style=p;var f=".sc-duet-tab-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-tab.sc-duet-tab{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:none;width:100%}.duet-tab.selected.sc-duet-tab{display:block}";var m=t("duet_tab",function(){function t(t){e(this,t);this.label=undefined;this.caption=undefined;this.selected=undefined;this.accessibleDescriptionDefault=null;this.accessibleDescription=this.accessibleDescriptionDefault?l(this.accessibleDescriptionDefault):null}t.prototype.render=function(){{return o("div",{role:"tabpanel",class:{"duet-tab":true,selected:this.selected},"aria-description":this.accessibleDescription},o("slot",null))}};return t}());m.style=f;var v='*,*::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;-webkit-tap-highlight-color:transparent;display:block;width:100%}.duet-tab-group-tabs{margin-bottom:28px !important;display:block;width:100%;max-width:100%;padding-top:2px;list-style:none}.duet-tab-group-tabs.duet-m-0{margin:0 !important}.duet-tab-group-tabs.duet-tab-group-collapses.duet-tab-group-hidden{display:none}@media (min-width: 36em){.duet-tab-group-tabs.duet-tab-group-collapses.duet-tab-group-hidden{display:block}}.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom:1px solid rgb(225, 227, 230)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom-color:rgb(228, 228, 230)}.duet-tab-variation-checked .duet-tab-group-tabs{display:flex;gap:4px;padding-right:12px;padding-left:12px;overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-variation-checked .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-group-tabs{gap:8px;padding-right:16px;padding-left:16px;overflow:visible}}.duet-tab-plain-scrolling .duet-tab-group-tabs{display:flex;overflow-x:scroll;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-plain-scrolling .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-plain-scrolling .duet-tab-group-tabs{display:block;overflow:auto}}@media (min-width: 36em){duet-select{display:none !important}}.duet-tab-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:20px;margin-top:-2px;overflow:visible;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.1;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer;background:rgb(255, 255, 255);border:2px solid rgb(225, 227, 230);border-radius:0;transition:150ms ease}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button.duet-m-0{margin:0 !important}.duet-theme-turva .duet-tab-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(228, 228, 230)}.duet-tab-button.duet-p-0{padding:0 !important}@media (min-width: 36em){.duet-tab-button{display:inline-block;width:auto;margin-left:-2px;border-right:2px solid rgb(225, 227, 230);border-radius:0}}.duet-tab-button:hover{z-index:200;border-color:rgb(144, 149, 153)}.duet-theme-turva .duet-tab-button:hover{border-color:rgb(116, 116, 117)}.duet-tab-button:active{opacity:0.75;transition:none}.duet-tab-button.selected{z-index:201;color:rgb(255, 255, 255);background:rgb(0, 41, 77);border-color:rgb(0, 41, 77);outline:0;box-shadow:none !important}.duet-theme-turva .duet-tab-button.selected{color:rgb(255, 255, 255);background-color:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.duet-tab-button:focus{z-index:200;outline:0}:host(.user-is-tabbing) .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}:host(.user-is-tabbing) .duet-theme-turva .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tab-button:first-child{border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.duet-tab-button:first-child{border-top-right-radius:0;border-bottom-left-radius:4px}}.duet-tab-button:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-tab-button:last-child{border-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}}.duet-tab-variation-plain .duet-tab-button{display:inline-block;width:auto;padding-right:0;padding-left:0;margin-left:0;border:0;border-radius:0;transition:none}.duet-tab-variation-plain .duet-tab-button+.duet-tab-button{margin-left:36px}.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(0, 119, 179);background:rgb(255, 255, 255);border-bottom:3px solid rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(198, 12, 48);border-bottom-color:rgb(198, 12, 48)}.duet-tab-variation-checked .duet-tab-button{position:relative;display:inline-block;flex-basis:0;flex-grow:1;width:200px;min-width:200px;padding:8px 4px;border-color:rgb(207, 210, 212);border-bottom-color:rgb(0, 119, 179);border-radius:4px 4px 0 0;transition:none}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button{border-color:rgb(207, 210, 212);border-bottom-color:rgb(68, 68, 69)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button{min-width:0;padding:16px}}.duet-tab-variation-checked .duet-tab-button.stackable-tab{min-width:0}.duet-tab-variation-checked .duet-tab-button:first-child{margin-left:auto}.duet-tab-variation-checked .duet-tab-button:last-child{margin-right:auto}.duet-tab-variation-checked .duet-tab-button:active{opacity:1;transition:none}.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(0, 119, 179);background:linear-gradient(180deg, rgb(243, 249, 252) 0%, rgb(255, 255, 255) 100%);border-color:rgb(0, 119, 179);border-bottom-color:#fff}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(23, 28, 58);background:linear-gradient(180deg, rgb(245, 245, 247) 0%, rgb(255, 255, 255) 100%);border-color:rgb(68, 68, 69);border-bottom-color:#fff}.duet-tab-variation-checked .duet-tab-button .checked-tab-content{display:flex;flex-direction:row;justify-content:space-between}.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:column;height:100%}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:row}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description{display:flex;flex-direction:column;overflow:hidden;overflow-wrap:break-word}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:center}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:left}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{margin-top:4px;font-size:0.875rem;font-weight:400;color:rgb(101, 119, 135)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{font-size:1rem;text-align:left}}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{color:rgb(68, 68, 69)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(68, 68, 69)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:-1;margin-top:8px;margin-bottom:8px}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:1}}.duet-tab-group-content{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(0, 41, 77);text-align:left}.duet-tab-group-content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}.duet-theme-turva .duet-tab-group-content:focus{outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tab-group-content.checked-group-content{padding:28px 0 28px 0}.duet-tab-group-content.checked-group-content::after{position:absolute;top:-2px;left:0;width:100%;height:2px;content:" ";background-color:rgb(0, 119, 179)}.duet-theme-turva .duet-tab-group-content{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-theme-turva .duet-tab-group-content.checked-group-content::after{background-color:rgb(68, 68, 69)}';var k=t("duet_tab_group",function(){function t(t){var n=this;e(this,t);this.duetChange=i(this,"duetChange",3);this.duetTabChange=i(this,"duetTabChange",7);this.duetTabChangeRequested=i(this,"duetTabChangeRequested",7);this.id=c("DuetTabGroup");this.handleKeyDown=function(t){var e;if(d(t)||u(t)){e=t.target.previousElementSibling}else if(b(t)||h(t)){e=t.target.nextElementSibling}if(e){t.preventDefault();e.click();e.focus()}};this.onTabSelect=function(t){if(n.tabChangeConfirm){if(t!==n.selected){var e={value:t,component:"duet-tab-group"};n.duetTabChangeRequested.emit(e)}}else{n.openTab(t)}};this.scrollToActive=function(){if(n.variation==="checked"||n.variation==="plain-scrolling"){setTimeout((function(){var t=n.tabsContainer.querySelector(".selected");if(t){t.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}}),50)}};this.renderTab=function(){var t=n.tabs.map((function(t,e){return o("button",{role:"tab",id:n.getButtonId(e),"aria-controls":n.getTabId(e),"aria-selected":t.selected?"true":"false","aria-description":n.getAccessibleDescription(e),tabindex:e===0?"0":"-1",part:"".concat(n.identifier,"-button ").concat(t.selected?"".concat(n.identifier,"-button--selected"):""),type:"button",class:{"duet-p-0":n.padding==="none","duet-tab-button":true,"stackable-tab":n.variation==="checked"&&n.tabs.length<=3,selected:t.selected},onClick:function(){return n.onTabSelect(e)},onKeyDown:function(t){return n.handleKeyDown(t)}},n.variation==="checked"?o("div",{class:{"checked-tab-content":true,"stackable-checked-tab-content":n.tabs.length<=3}},o("div",{class:{"checked-tab-description":true,"stackable-description":n.tabs.length<=3}},o("p",null,t.label),o("p",{class:{"tab-caption":true,selected:t.selected}},t.caption)),o("div",{class:{"stackable-checkmark":n.tabs.length<=3}},o("duet-checkmark",{theme:n.theme,checked:t.selected,type:"radio","presentation-only":true,center:true}))):t.label)}));if(n.scrolls){return o("duet-scrollable",{selected:n.selected,identifier:n.identifier},t)}return t};this.tabs=[];this.selected=undefined;this.theme="";this.scrolls=false;this.collapses=true;this.accessibleLabel=undefined;this.variation="default";this.language=s();this.labelDefaults={fi:"Valitse",en:"Choose",sv:"Välj"};this.label=l(this.labelDefaults,this.language);this.labelHidden=true;this.identifier=this.id;this.margin="auto";this.padding="auto";this.setTabIndex=false;this.tabChangeConfirm=false}t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){switch(e.label){case 0:if(typeof MutationObserver!=="undefined"){this.mutationO=new MutationObserver((function(){t.updateTabs()}));this.mutationO.observe(this.element,{attributes:true,attributeFilter:["label"],childList:true,characterData:true,subtree:true})}return[4,this.updateTabs()];case 1:e.sent();return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};t.prototype.componentWillLoad=function(){r(this)};t.prototype.componentDidLoad=function(){this.scrollToActive()};t.prototype.openTab=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(o){if(t>=this.tabs.length){throw new Error("[duet-tabs] Index ".concat(t," is out of bounds of tabs length"))}this.selected=t;this.tabs.forEach((function(e,o){e.selected=o===t}));this.scrollToActive();e={value:t,component:"duet-tab-group"};this.duetChange.emit(e);this.duetTabChange.emit(e);return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){console.log("[duet-tabs] Refresh method is deprecated and will be removed in the future version.");return[2]}))}))};t.prototype.getTabs=function(){var t=this;var e=Array.from(this.element.querySelectorAll("duet-tab"));var o=e.filter((function(e){return e.closest("duet-tab-group")===t.element}));if(o.length===0){throw new Error("[duet-tabs] Must have at least one tab")}return o};t.prototype.getButtonId=function(t){return"".concat(this.id,"-button-").concat(t)};t.prototype.getTabId=function(t){return"".concat(this.id,"-tab-").concat(t)};t.prototype.getAccessibleDescription=function(t){var e=this.tabs[t].getAttribute("accessible-description")||null;return e};t.prototype.updateTabs=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this.tabs=this.getTabs();this.tabs.forEach((function(e,o){e.id=t.getTabId(o);e.setAttribute("aria-labelledby",t.getButtonId(o));if(e.selected){t.selected=o}}));return[2]}))}))};t.prototype.render=function(){var t;var e=this;var n=this.variation==="plain-scrolling"?"duet-tab-variation-plain":"duet-tab-variation-".concat(this.variation);var a=this.variation==="checked"||this.variation==="plain-scrolling";return o("div",{class:(t={"duet-tab-group":true,"duet-theme-turva":this.theme==="turva"},t[n]=true,t["duet-tab-plain-scrolling"]=this.variation==="plain-scrolling",t["duet-tab-group-scrolls"]=this.scrolls,t["duet-tab-group-collapses"]=this.collapses,t),"aria-label":this.accessibleLabel},!a&&this.tabs.length>3&&this.collapses&&o("duet-select",{value:this.selected.toString(),expand:true,label:this.label,labelHidden:this.labelHidden,theme:this.theme,onDuetChange:function(t){return e.onTabSelect(Number(t.detail.value))},items:this.tabs.map((function(t,e){return{label:t.label,value:e.toString()}}))}),o("div",{role:"tablist",class:{"duet-m-0":this.margin==="none"||this.variation==="checked","duet-tab-group-tabs":true,"duet-tab-group-hidden":this.tabs.length>3&&!a,"duet-tab-group-collapses":this.collapses},ref:function(t){e.tabsContainer=t}},this.renderTab()),o("div",{role:"tabpanel",tabindex:this.setTabIndex?null:"0",class:{"duet-tab-group-content":true,"duet-m-0":this.margin==="none","checked-group-content":this.variation==="checked"}},o("slot",null)))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});return t}());k.style=v}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,h as e,H as o,g as i}from"./p-308b881b.js";import{m as n,a as r}from"./p-b519ac77.js";import{i as a}from"./p-4ebf1618.js";import{c as s}from"./p-c1325e35.js";import{g as l,a as c,c as u,d as p}from"./p-076452be.js";import"./p-5a9d75e1.js";function d(t){return t.split("-")[1]}function h(t){return"y"===t?"height":"width"}function f(t){return t.split("-")[0]}function b(t){return["top","bottom"].includes(f(t))?"x":"y"}function m(t,e,o){let{reference:i,floating:n}=t;const r=i.x+i.width/2-n.width/2,a=i.y+i.height/2-n.height/2,s=b(e),l=h(s),c=i[l]/2-n[l]/2,u="x"===s;let p;switch(f(e)){case"top":p={x:r,y:i.y-n.height};break;case"bottom":p={x:r,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:a};break;case"left":p={x:i.x-n.width,y:a};break;default:p={x:i.x,y:i.y}}switch(d(e)){case"start":p[s]-=c*(o&&u?-1:1);break;case"end":p[s]+=c*(o&&u?-1:1)}return p}function g(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function x(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function w(t,e){var o;void 0===e&&(e={});const{x:i,y:n,platform:r,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:d=!1,padding:h=0}=e,f=g(h),b=s[d?"floating"===p?"reference":"floating":p],m=x(await r.getClippingRect({element:null==(o=await(null==r.isElement?void 0:r.isElement(b)))||o?b:b.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),w="floating"===p?{...a.floating,x:i,y:n}:a.reference,y=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),v=await(null==r.isElement?void 0:r.isElement(y))&&await(null==r.getScale?void 0:r.getScale(y))||{x:1,y:1},k=x(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:w,offsetParent:y,strategy:l}):w);return{top:(m.top-k.top+f.top)/v.y,bottom:(k.bottom-m.bottom+f.bottom)/v.y,left:(m.left-k.left+f.left)/v.x,right:(k.right-m.right+f.right)/v.x}}const y=Math.min,v=Math.max;function k(t,e,o){return v(t,y(e,o))}const S=t=>({name:"arrow",options:t,async fn(e){const{element:o,padding:i=0}=t||{},{x:n,y:r,placement:a,rects:s,platform:l,elements:c}=e;if(null==o)return{};const u=g(i),p={x:n,y:r},f=b(a),m=h(f),x=await l.getDimensions(o),w="y"===f,y=w?"top":"left",v=w?"bottom":"right",S=w?"clientHeight":"clientWidth",C=s.reference[m]+s.reference[f]-p[f]-s.floating[m],j=p[f]-s.reference[f],A=await(null==l.getOffsetParent?void 0:l.getOffsetParent(o));let z=A?A[S]:0;z&&await(null==l.isElement?void 0:l.isElement(A))||(z=c.floating[S]||s.floating[m]);const R=u[y],I=z-x[m]-u[v],U=z/2-x[m]/2+(C/2-j/2),T=k(R,U,I),D=null!=d(a)&&U!=T&&s.reference[m]/2-(U<R?u[y]:u[v])-x[m]/2<0;return{[f]:p[f]-(D?U<R?R-U:I-U:0),data:{[f]:T,centerOffset:U-T}}}}),C={left:"right",right:"left",bottom:"top",top:"bottom"};function j(t){return t.replace(/left|right|bottom|top/g,(t=>C[t]))}const A={start:"end",end:"start"};function z(t){return t.replace(/start|end/g,(t=>A[t]))}const R=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var o;const{placement:i,middlewareData:n,rects:r,initialPlacement:a,platform:s,elements:l}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:x=!0,...y}=t,v=f(i),k=f(a)===a,S=await(null==s.isRTL?void 0:s.isRTL(l.floating)),C=p||(k||!x?[j(a)]:function(t){const e=j(t);return[z(t),e,z(e)]}(a));p||"none"===g||C.push(...function(t,e,o,i){const n=d(t);let r=function(t,e,o){const i=["left","right"],n=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return o?e?n:i:e?i:n;case"left":case"right":return e?r:a;default:return[]}}(f(t),"start"===o,i);return n&&(r=r.map((t=>t+"-"+n)),e&&(r=r.concat(r.map(z)))),r}(a,x,g,S));const A=[a,...C],R=await w(e,y),I=[];let U=(null==(o=n.flip)?void 0:o.overflows)||[];if(c&&I.push(R[v]),u){const{main:t,cross:e}=function(t,e,o){void 0===o&&(o=!1);const i=d(t),n=b(t),r=h(n);let a="x"===n?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=j(a)),{main:a,cross:j(a)}}(i,r,S);I.push(R[t],R[e])}if(U=[...U,{placement:i,overflows:I}],!I.every((t=>t<=0))){var T,D;const t=((null==(T=n.flip)?void 0:T.index)||0)+1,e=A[t];if(e)return{data:{index:t,overflows:U},reset:{placement:e}};let o=null==(D=U.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:D.placement;if(!o)switch(m){case"bestFit":{var E;const t=null==(E=U.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:E[0];t&&(o=t);break}case"initialPlacement":o=a}if(i!==o)return{reset:{placement:o}}}return{}}}};function I(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function U(t){return I(t).getComputedStyle(t)}function T(t){return t instanceof I(t).Node}function D(t){return T(t)?(t.nodeName||"").toLowerCase():""}function E(t){return t instanceof I(t).HTMLElement}function F(t){return t instanceof I(t).Element}function B(t){return"undefined"!=typeof ShadowRoot&&(t instanceof I(t).ShadowRoot||t instanceof ShadowRoot)}function M(t){const{overflow:e,overflowX:o,overflowY:i,display:n}=U(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function L(t){return["table","td","th"].includes(D(t))}function H(t){const e=P(),o=U(t);return"none"!==o.transform||"none"!==o.perspective||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function P(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function $(t){return["html","body","#document"].includes(D(t))}const N=Math.min,O=Math.max,W=Math.round;function V(t){const e=U(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const n=E(t),r=n?t.offsetWidth:o,a=n?t.offsetHeight:i,s=W(o)!==r||W(i)!==a;return s&&(o=r,i=a),{width:o,height:i,fallback:s}}function X(t){return F(t)?t:t.contextElement}const Y={x:1,y:1};function _(t){const e=X(t);if(!E(e))return Y;const o=e.getBoundingClientRect(),{width:i,height:n,fallback:r}=V(e);let a=(r?W(o.width):o.width)/i,s=(r?W(o.height):o.height)/n;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const K={x:0,y:0};function q(t,e,o){var i,n;if(void 0===e&&(e=!0),!P())return K;const r=t?I(t):window;return!o||e&&o!==r?K:{x:(null==(i=r.visualViewport)?void 0:i.offsetLeft)||0,y:(null==(n=r.visualViewport)?void 0:n.offsetTop)||0}}function G(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const n=t.getBoundingClientRect(),r=X(t);let a=Y;e&&(i?F(i)&&(a=_(i)):a=_(t));const s=q(r,o,i);let l=(n.left+s.x)/a.x,c=(n.top+s.y)/a.y,u=n.width/a.x,p=n.height/a.y;if(r){const t=I(r),e=i&&F(i)?I(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=_(o),e=o.getBoundingClientRect(),i=getComputedStyle(o);e.x+=(o.clientLeft+parseFloat(i.paddingLeft))*t.x,e.y+=(o.clientTop+parseFloat(i.paddingTop))*t.y,l*=t.x,c*=t.y,u*=t.x,p*=t.y,l+=e.x,c+=e.y,o=I(o).frameElement}}return x({width:u,height:p,x:l,y:c})}function J(t){return((T(t)?t.ownerDocument:t.document)||window.document).documentElement}function Q(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Z(t){return G(J(t)).left+Q(t).scrollLeft}function tt(t){if("html"===D(t))return t;const e=t.assignedSlot||t.parentNode||B(t)&&t.host||J(t);return B(e)?e.host:e}function et(t){const e=tt(t);return $(e)?e.ownerDocument.body:E(e)&&M(e)?e:et(e)}function ot(t,e){var o;void 0===e&&(e=[]);const i=et(t),n=i===(null==(o=t.ownerDocument)?void 0:o.body),r=I(i);return n?e.concat(r,r.visualViewport||[],M(i)?i:[]):e.concat(i,ot(i))}function it(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=I(t),i=J(t),n=o.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(n){r=n.width,a=n.height;const t=P();(!t||t&&"fixed"===e)&&(s=n.offsetLeft,l=n.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=J(t),o=Q(t),i=t.ownerDocument.body,n=O(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=O(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+Z(t);const s=-o.scrollTop;return"rtl"===U(i).direction&&(a+=O(e.clientWidth,i.clientWidth)-n),{width:n,height:r,x:a,y:s}}(J(t));else if(F(e))i=function(t,e){const o=G(t,!0,"fixed"===e),i=o.top+t.clientTop,n=o.left+t.clientLeft,r=E(t)?_(t):{x:1,y:1};return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:n*r.x,y:i*r.y}}(e,o);else{const o=q(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return x(i)}function nt(t,e){const o=tt(t);return!(o===e||!F(o)||$(o))&&("fixed"===U(o).position||nt(o,e))}function rt(t,e){return E(t)&&"fixed"!==U(t).position?e?e(t):t.offsetParent:null}function at(t,e){const o=I(t);if(!E(t))return o;let i=rt(t,e);for(;i&&L(i)&&"static"===U(i).position;)i=rt(i,e);return i&&("html"===D(i)||"body"===D(i)&&"static"===U(i).position&&!H(i))?o:i||function(t){let e=tt(t);for(;E(e)&&!$(e);){if(H(e))return e;e=tt(e)}return null}(t)||o}function st(t,e,o){const i=E(e),n=J(e),r="fixed"===o,a=G(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(i||!i&&!r)if(("body"!==D(e)||M(n))&&(s=Q(e)),E(e)){const t=G(e,!0,r,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else n&&(l.x=Z(n));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}const lt={getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t;const r=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=ot(t).filter((t=>F(t)&&"body"!==D(t))),n=null;const r="fixed"===U(t).position;let a=r?tt(t):t;for(;F(a)&&!$(a);){const e=U(a),o=H(a);o||"fixed"!==e.position||(n=null),(r?!o&&!n:!o&&"static"===e.position&&n&&["absolute","fixed"].includes(n.position)||M(a)&&!o&&nt(t,a))?i=i.filter((t=>t!==a)):n=e,a=tt(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=r.reduce(((t,o)=>{const i=it(e,o,n);return t.top=O(i.top,t.top),t.right=N(i.right,t.right),t.bottom=N(i.bottom,t.bottom),t.left=O(i.left,t.left),t}),it(e,r[0],n));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const n=E(o),r=J(o);if(o===r)return e;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((n||!n&&"fixed"!==i)&&(("body"!==D(o)||M(r))&&(a=Q(o)),E(o))){const t=G(o);s=_(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},isElement:F,getDimensions:function(t){return V(t)},getOffsetParent:at,getDocumentElement:J,getScale:_,async getElementRects(t){let{reference:e,floating:o,strategy:i}=t;const n=this.getOffsetParent||at,r=this.getDimensions;return{reference:st(e,await n(o),i),floating:{x:0,y:0,...await r(o)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===U(t).direction},ct=class{constructor(e){t(this,e),this.mql=[window.matchMedia(n.replace(/'/g,"")),window.matchMedia(r.replace(/'/g,""))],this.tooltipId=s("DuetTooltip"),this.openTooltip=()=>{this.focusTarget="tooltip",this.active=!0},this.closeTooltip=(t=!1)=>{t&&(this.focusTarget="trigger"),this.active=!1},this.toggleOpen=()=>{this.active?this.closeTooltip():this.openTooltip()},this.handleFocusOut=t=>{if(!this.active)return;const e=t.relatedTarget;null==e||this.element.shadowRoot.contains(e)||this.element.contains(e)||this.closeTooltip()},this.handleKeyDown=t=>{(27===t.keyCode||t.target===this.scrollableEl&&t.shiftKey&&9===t.keyCode)&&this.closeTooltip(!0)},this.handleCloseClick=()=>{this.closeTooltip(!0)},this.updatePlacement=async()=>{var t,e;let o=!0;("large"!==this.breakpoint||this.mql[1].matches)&&("medium"!==this.breakpoint||this.mql[0].matches)||(o=!1);let i=o?"top-start":"top-end";"left"===this.direction?i="top-end":"right"===this.direction&&(i="top-start");const n=await((t,e,o)=>{const i=new Map,n={platform:lt,...o},r={...n.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:a}=o,s=r.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:p}=m(c,i,l),d=i,h={},f=0;for(let b=0;b<s.length;b++){const{name:o,fn:r}=s[b],{x:g,y:x,data:w,reset:y}=await r({x:u,y:p,initialPlacement:i,placement:d,strategy:n,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});u=null!=g?g:u,p=null!=x?x:p,h={...h,[o]:{...h[o],...w}},y&&f<=50&&(f++,"object"==typeof y&&(y.placement&&(d=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:t,floating:e,strategy:n}):y.rects),({x:u,y:p}=m(c,d,l))),b=-1)}return{x:u,y:p,placement:d,strategy:n,middlewareData:h}})(t,e,{...n,platform:r})})(this.buttonEl,this.tooltipEl,{placement:i,middleware:[R(),(r={padding:5},void 0===r&&(r={}),{name:"shift",options:r,async fn(t){const{x:e,y:o,placement:i}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=r,c={x:e,y:o},u=await w(t,l),p=b(f(i)),d="x"===p?"y":"x";let h=c[p],m=c[d];n&&(h=k(h+u["y"===p?"top":"left"],h,h-u["y"===p?"bottom":"right"])),a&&(m=k(m+u["y"===d?"top":"left"],m,m-u["y"===d?"bottom":"right"]));const g=s.fn({...t,[p]:h,[d]:m});return{...g,data:{x:g.x-e,y:g.y-o}}}}),S({element:this.arrowEl})]});var r;this.tooltipY=n.y,this.tooltipX=n.x,this.placement=n.placement,this.arrowY=null===(t=n.middlewareData.arrow)||void 0===t?void 0:t.y,this.arrowX=null===(e=n.middlewareData.arrow)||void 0===e?void 0:e.x},this.placement="bottom",this.tooltipY=void 0,this.tooltipX=void 0,this.arrowX=void 0,this.arrowY=void 0,this.theme="",this.language=l(),this.accessibleLabelDefault={fi:"Näytä lisätietoja",en:"Show more information",sv:"Visa mer tilläggsuppgifter"},this.accessibleLabel=c(this.accessibleLabelDefault,this.language),this.accessibleInputLabel=void 0,this.accessibleCloseLabelDefault={fi:"Sulje lisätiedot",en:"Close details",sv:"Stäng tilläggsuppgifter"},this.accessibleCloseLabel=c(this.accessibleCloseLabelDefault,this.language),this.label="",this.breakpoint="medium",this.direction="auto",this.positionVertical="0",this.positionHorizontal="0",this.active=!1}watchLanguageStateHandler(t,e){t!==e&&this.accessibleLabel===this.accessibleLabelDefault[e]&&(this.accessibleLabel=c(this.accessibleLabelDefault,t)),t!==e&&this.accessibleCloseLabel===this.accessibleCloseLabelDefault[e]&&(this.accessibleCloseLabel=c(this.accessibleCloseLabelDefault,t))}componentWillLoad(){a(this)}componentDidLoad(){this.updatePlacement()}componentDidUpdate(){switch(this.focusTarget){case"tooltip":this.scrollableEl.focus({preventScroll:!0});break;case"trigger":this.buttonEl.focus({preventScroll:!0})}this.focusTarget=null}connectedCallback(){u(this)}disconnectedCallback(){p(this)}onScroll(){clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout((()=>{this.active&&this.updatePlacement()}),100)}handleWindowResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.updatePlacement()}),100)}handleDocumentClick(t){this.active&&t.composedPath().every((t=>t!==this.element))&&this.closeTooltip()}async handleActiveChange(t){t?this.updatePlacement():setTimeout((()=>this.updatePlacement()),300)}render(){const t={top:`${this.tooltipY}px`,left:`${this.tooltipX}px`,display:"block"},i={top:this.arrowY?`${this.arrowY}px`:void 0,left:this.arrowX?`${this.arrowX}px`:void 0};return e(o,{style:{transform:`translateY(${this.positionVertical}) translateX(${this.positionHorizontal})`,zIndex:this.active?"201":""}},e("button",{ref:t=>this.buttonEl=t,"aria-controls":this.tooltipId,"aria-expanded":this.active?"true":"false",onClick:this.toggleOpen,type:"button",class:{"duet-tooltip-button":!0,"duet-tooltip-button-has-label":!!this.label,"duet-theme-turva":"turva"===this.theme}},e("svg",{"aria-hidden":"true",role:"img",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("path",{d:"m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z"}),e("circle",{cx:"11.625",cy:"7.125",r:"1.125"}),e("path",{d:"m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z"})),this.label?e("span",{class:"duet-tooltip-label"},this.label):e("duet-visually-hidden",null,this.accessibleInputLabel?`${this.accessibleInputLabel}, ${this.accessibleLabel}`:this.accessibleLabel)),e("div",{ref:t=>this.tooltipEl=t,style:t,class:{"duet-tooltip":!0,"duet-theme-turva":"turva"===this.theme,"duet-tooltip-has-label":!!this.label,"duet-tooltip-active":!0===this.active},onClick:t=>t.stopPropagation(),onKeyDown:this.handleKeyDown,onFocusout:this.handleFocusOut},e("div",{ref:t=>this.scrollableEl=t,class:"duet-tooltip-scrollable",tabindex:"0",id:this.tooltipId},e("slot",null)),e("div",{ref:t=>this.arrowEl=t,class:{arrow:!0,[this.placement]:!0},style:i},e("div",{class:{"arrow-container":!0,[this.placement]:!0}})),e("button",{type:"button",class:"duet-tooltip-close",onClick:this.handleCloseClick},e("duet-icon",{name:"navigation-close-small",margin:"none",color:"currentColor",size:"xxx-small"}),e("duet-visually-hidden",null,this.accessibleCloseLabel))))}get element(){return i(this)}static get watchers(){return{language:["watchLanguageStateHandler"],active:["handleActiveChange"]}}};ct.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;position:relative;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}.duet-tooltip{position:absolute;z-index:950;display:none;width:282px;min-height:48px;max-height:340px;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, 41, 77);visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:300ms ease;transform-origin:100% 100%}.duet-tooltip.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);border-color:rgb(228, 228, 230);box-shadow:0 2px 10px 0 rgba(117, 117, 117, 0.13)}.duet-tooltip .arrow{position:absolute;width:22px;height:22px;pointer-events:none}.duet-tooltip .arrow.bottom,.duet-tooltip .arrow.bottom-start,.duet-tooltip .arrow.bottom-end{top:-21px}.duet-tooltip .arrow-container{position:relative;width:100%;height:100%;pointer-events:none}.duet-tooltip .arrow-container::after{position:absolute;z-index:200;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container::before{position:absolute;z-index:100;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container.top::after,.duet-tooltip .arrow-container.top-start::after,.duet-tooltip .arrow-container.top-end::after{bottom:2px;left:2px;border:10px solid transparent;border-top:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.top::before,.duet-tooltip .arrow-container.top-start::before,.duet-tooltip .arrow-container.top-end::before{bottom:-1px;left:1px;border:11px solid transparent;border-top:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip .arrow-container.top::before,.duet-theme-turva .duet-tooltip .arrow-container.top-start::before,.duet-theme-turva .duet-tooltip .arrow-container.top-end::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip .arrow-container.bottom::after,.duet-tooltip .arrow-container.bottom-start::after,.duet-tooltip .arrow-container.bottom-end::after{bottom:1px;left:2px;border:10px solid transparent;border-bottom:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.bottom::before,.duet-tooltip .arrow-container.bottom-start::before,.duet-tooltip .arrow-container.bottom-end::before{bottom:1px;left:1px;border:11px solid transparent;border-bottom:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip .arrow-container.bottom::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-start::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-end::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip.duet-tooltip-has-label{right:auto !important;left:0;width:282px !important;transform-origin:0 0 !important}.duet-tooltip.duet-tooltip-active{visibility:visible;opacity:1;transition-property:transform, opacity}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button.duet-theme-turva{color:rgb(198, 12, 48)}.duet-tooltip-button:hover{color:rgb(0, 77, 128)}.duet-tooltip-button:hover.duet-theme-turva{color:rgb(148, 9, 37)}.duet-tooltip-button:focus{background:transparent !important;outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}:host(.user-is-tabbing) .duet-tooltip-button.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-scrollable{padding:20px !important;width:100%;max-height:250px;padding-right:25px !important;overflow-y:auto;-webkit-hyphens:auto;hyphens:auto;border-radius:4px;-webkit-overflow-scrolling:touch}.duet-tooltip-scrollable:focus{outline:none}:host(.user-is-tabbing) .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-theme-turva .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-tooltip-scrollable::-webkit-scrollbar{width:4px}.duet-tooltip-scrollable::-webkit-scrollbar-track{border-radius:4px}.duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(225, 227, 230);border-radius:4px}.duet-theme-turva .duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(228, 228, 230)}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.25;text-align:left;white-space:normal;vertical-align:top}.duet-theme-turva .duet-tooltip-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-tooltip-close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0 !important;padding:0 !important;margin:0 !important;line-height:normal;color:rgb(0, 41, 77);cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;-webkit-appearance:none;appearance:none}.duet-tooltip-close:focus{outline:none;box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva .duet-tooltip-close:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px rgb(23, 28, 58)}';export{ct as duet_tooltip}