@duetds/components 9.1.2 → 9.2.1

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 (828) hide show
  1. package/hydrate/index.js +581 -354
  2. package/lib/cjs/a11y-utils-76311b95.js +20 -0
  3. package/lib/cjs/{app-globals-75ae6194.js → app-globals-940f10af.js} +1 -1
  4. package/lib/cjs/duet-action-button.cjs.entry.js +5 -5
  5. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  6. package/lib/cjs/duet-badge.cjs.entry.js +4 -4
  7. package/lib/cjs/duet-banner.cjs.entry.js +4 -4
  8. package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
  9. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
  10. package/lib/cjs/duet-button_2.cjs.entry.js +7 -7
  11. package/lib/cjs/duet-callout.cjs.entry.js +5 -5
  12. package/lib/cjs/duet-caption_4.cjs.entry.js +14 -25
  13. package/lib/cjs/duet-card.cjs.entry.js +4 -4
  14. package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
  15. package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
  16. package/lib/cjs/duet-chip_3.cjs.entry.js +653 -0
  17. package/lib/cjs/duet-choice_2.cjs.entry.js +4 -4
  18. package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
  19. package/lib/cjs/duet-combobox.cjs.entry.js +43 -39
  20. package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
  21. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  22. package/lib/cjs/duet-date-picker.cjs.entry.js +5 -5
  23. package/lib/cjs/duet-divider_2.cjs.entry.js +5 -5
  24. package/lib/cjs/duet-editable-table_3.cjs.entry.js +11 -11
  25. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  26. package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
  27. package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-footer.cjs.entry.js +4 -4
  29. package/lib/cjs/duet-grid_2.cjs.entry.js +3 -3
  30. package/lib/cjs/duet-header_2.cjs.entry.js +6 -6
  31. package/lib/cjs/duet-hero.cjs.entry.js +4 -4
  32. package/lib/cjs/duet-icon.cjs.entry.js +6 -6
  33. package/lib/cjs/duet-input_2.cjs.entry.js +101 -12
  34. package/lib/cjs/duet-layout.cjs.entry.js +7 -10
  35. package/lib/cjs/duet-list_2.cjs.entry.js +5 -5
  36. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +3 -3
  37. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
  38. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
  39. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +24 -6
  40. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
  41. package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
  42. package/lib/cjs/duet-modal.cjs.entry.js +11 -11
  43. package/lib/cjs/duet-multiselect.cjs.entry.js +9 -9
  44. package/lib/cjs/duet-nav.cjs.entry.js +2 -2
  45. package/lib/cjs/duet-notification_2.cjs.entry.js +8 -8
  46. package/lib/cjs/duet-number-input.cjs.entry.js +4 -4
  47. package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
  48. package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
  49. package/lib/cjs/duet-pagination_2.cjs.entry.js +19 -19
  50. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  51. package/lib/cjs/duet-promo-card.cjs.entry.js +7 -7
  52. package/lib/cjs/duet-radio_2.cjs.entry.js +3 -3
  53. package/lib/cjs/duet-range-slider.cjs.entry.js +3 -3
  54. package/lib/cjs/duet-scrollable_3.cjs.entry.js +49 -28
  55. package/lib/cjs/duet-section-layout.cjs.entry.js +5 -6
  56. package/lib/cjs/duet-select.cjs.entry.js +3 -3
  57. package/lib/cjs/duet-shaped-image.cjs.entry.js +3 -3
  58. package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
  59. package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
  60. package/lib/cjs/duet-slideout-link.cjs.entry.js +4 -4
  61. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
  62. package/lib/cjs/duet-slideout-panel.cjs.entry.js +13 -13
  63. package/lib/cjs/duet-slideout.cjs.entry.js +11 -11
  64. package/lib/cjs/duet-step_2.cjs.entry.js +3 -3
  65. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
  66. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
  67. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +23 -5
  68. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
  69. package/lib/cjs/duet-submenu-bar.cjs.entry.js +8 -8
  70. package/lib/cjs/duet-textarea.cjs.entry.js +7 -7
  71. package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
  72. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
  73. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
  74. package/lib/cjs/duet-toolbar-item.cjs.entry.js +25 -6
  75. package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
  76. package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
  77. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +8 -8
  78. package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
  79. package/lib/cjs/duet-tray.cjs.entry.js +6 -6
  80. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  81. package/lib/cjs/duet-upload-item.cjs.entry.js +5 -5
  82. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  83. package/lib/cjs/duet.cjs.js +3 -3
  84. package/lib/cjs/{errorcodes.utils-388375fb.js → errorcodes.utils-a9512b40.js} +1 -1
  85. package/lib/cjs/{focus-utils-8bf2f9fe.js → focus-utils-c9b32897.js} +1 -1
  86. package/lib/cjs/{index-9e6f7e53.js → index-ce05ed4b.js} +1 -1
  87. package/lib/cjs/{language-utils-0eb766d8.js → language-utils-04d69d6b.js} +1 -1
  88. package/lib/cjs/loader.cjs.js +3 -3
  89. package/lib/cjs/{slot-utils-0975145c.js → slot-utils-83d6d31e.js} +1 -1
  90. package/lib/cjs/{token-utils-ecc7f5a1.js → token-utils-453a4e75.js} +1 -1
  91. package/lib/cjs/{tokens-1c133754.js → tokens-57e06fe4.js} +25 -25
  92. package/lib/cjs/{tokens.module-cf303205.js → tokens.module-fcba867f.js} +25 -25
  93. package/lib/collection/components/duet-action-button/duet-action-button.css +7 -7
  94. package/lib/collection/components/duet-alert/duet-alert.css +12 -12
  95. package/lib/collection/components/duet-badge/duet-badge.css +18 -18
  96. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  97. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  98. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +7 -7
  99. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  100. package/lib/collection/components/duet-button/duet-button.css +39 -39
  101. package/lib/collection/components/duet-callout/duet-callout.css +2 -2
  102. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  103. package/lib/collection/components/duet-caption/duet-caption.css +2 -2
  104. package/lib/collection/components/duet-card/duet-card.css +6 -6
  105. package/lib/collection/components/duet-checkbox/duet-checkbox.css +16 -16
  106. package/lib/collection/components/duet-chip/duet-chip.css +83 -28
  107. package/lib/collection/components/duet-chip/duet-chip.js +102 -6
  108. package/lib/collection/components/duet-choice/duet-checkmark.css +6 -6
  109. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  110. package/lib/collection/components/duet-choice/duet-choice.css +50 -50
  111. package/lib/collection/components/duet-collapsible/duet-collapsible.css +4 -4
  112. package/lib/collection/components/duet-combobox/duet-combobox-select.js +4 -8
  113. package/lib/collection/components/duet-combobox/duet-combobox.css +4 -81
  114. package/lib/collection/components/duet-combobox/duet-combobox.js +37 -25
  115. package/lib/collection/components/duet-contact-card/duet-contact-card.css +1 -1
  116. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  117. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +2 -2
  118. package/lib/collection/components/duet-date-picker/duet-date-picker.css +26 -26
  119. package/lib/collection/components/duet-divider/duet-divider.css +2 -2
  120. package/lib/collection/components/duet-empty-state/duet-empty-state.css +2 -2
  121. package/lib/collection/components/duet-fieldset/duet-fieldset.css +3 -3
  122. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  123. package/lib/collection/components/duet-footer/duet-footer.css +5 -5
  124. package/lib/collection/components/duet-grid-item/duet-grid-item.css +1 -1
  125. package/lib/collection/components/duet-header/duet-header.css +42 -42
  126. package/lib/collection/components/duet-heading/duet-heading.css +3 -3
  127. package/lib/collection/components/duet-hero/duet-hero.css +13 -13
  128. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  129. package/lib/collection/components/duet-input/duet-input.css +39 -37
  130. package/lib/collection/components/duet-input/duet-input.js +96 -7
  131. package/lib/collection/components/duet-label/duet-label.css +1 -1
  132. package/lib/collection/components/duet-layout/duet-layout.css +24 -19
  133. package/lib/collection/components/duet-layout/duet-layout.js +4 -7
  134. package/lib/collection/components/duet-link/duet-link.css +9 -9
  135. package/lib/collection/components/duet-link/duet-link.js +4 -15
  136. package/lib/collection/components/duet-list/duet-list.js +1 -1
  137. package/lib/collection/components/duet-list-item/duet-list-item.css +8 -8
  138. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  139. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  140. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +5 -3
  141. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +2 -2
  142. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  143. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +2 -2
  144. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  145. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +3 -3
  146. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  147. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +4 -1
  148. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +87 -4
  149. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  150. package/lib/collection/components/duet-modal/duet-modal.css +6 -6
  151. package/lib/collection/components/duet-modal/duet-modal.js +6 -6
  152. package/lib/collection/components/duet-multiselect/duet-multiselect.css +24 -24
  153. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  154. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  155. package/lib/collection/components/duet-notification/duet-notification.css +9 -9
  156. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  157. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +12 -12
  158. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
  159. package/lib/collection/components/duet-number-input/duet-number-input.css +5 -5
  160. package/lib/collection/components/duet-overlay/duet-overlay.css +1 -1
  161. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  162. package/lib/collection/components/duet-page-heading/duet-page-heading.css +2 -2
  163. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  164. package/lib/collection/components/duet-pagination/duet-pagination.css +1 -1
  165. package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
  166. package/lib/collection/components/duet-paragraph/duet-paragraph.css +3 -3
  167. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  168. package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +1 -1
  169. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +44 -10
  170. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +13 -5
  171. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +26 -3
  172. package/lib/collection/components/duet-progress/duet-progress.css +6 -6
  173. package/lib/collection/components/duet-promo-card/duet-promo-card.css +1 -1
  174. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  175. package/lib/collection/components/duet-radio/duet-radio.css +10 -10
  176. package/lib/collection/components/duet-range-slider/duet-range-slider.css +21 -21
  177. package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +1 -1
  178. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  179. package/lib/collection/components/duet-scrollable/duet-scrollable.css +3 -0
  180. package/lib/collection/components/duet-scrollable/duet-scrollable.js +38 -16
  181. package/lib/collection/components/duet-section-layout/duet-section-layout.css +24 -15
  182. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -4
  183. package/lib/collection/components/duet-select/duet-select.css +18 -18
  184. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  185. package/lib/collection/components/duet-show-more/duet-show-more.css +1 -1
  186. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  187. package/lib/collection/components/duet-slideout/duet-slideout.css +8 -8
  188. package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
  189. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +1 -1
  190. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  191. package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +2 -2
  192. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  193. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +10 -10
  194. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  195. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +2 -2
  196. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  197. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  198. package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
  199. package/lib/collection/components/duet-step/duet-step.css +4 -4
  200. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  201. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +9 -9
  202. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  203. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +11 -11
  204. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  205. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +6 -6
  206. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  207. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.css +13 -9
  208. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +86 -3
  209. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +9 -9
  210. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  211. package/lib/collection/components/duet-tab-group/duet-tab-group.css +27 -27
  212. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
  213. package/lib/collection/components/duet-table/duet-table.css +30 -30
  214. package/lib/collection/components/duet-table/duet-table.js +2 -2
  215. package/lib/collection/components/duet-textarea/duet-textarea.css +27 -27
  216. package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
  217. package/lib/collection/components/duet-toggle/duet-toggle.css +4 -4
  218. package/lib/collection/components/duet-toolbar/duet-toolbar.css +2 -2
  219. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  220. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +11 -11
  221. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  222. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +5 -5
  223. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  224. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +23 -11
  225. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +88 -4
  226. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +8 -8
  227. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  228. package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +2 -2
  229. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
  230. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +10 -10
  231. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  232. package/lib/collection/components/duet-tray/duet-tray.css +8 -8
  233. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  234. package/lib/collection/components/duet-upload/duet-upload.css +1 -1
  235. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  236. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  237. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  238. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  239. package/lib/collection/utils/a11y-utils.js +16 -0
  240. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  241. package/lib/dist-custom-elements/duet-alert.js +1 -1
  242. package/lib/dist-custom-elements/duet-badge.js +1 -1
  243. package/lib/dist-custom-elements/duet-banner.js +4 -4
  244. package/lib/dist-custom-elements/duet-breadcrumb.js +8 -8
  245. package/lib/dist-custom-elements/duet-breadcrumbs.js +5 -5
  246. package/lib/dist-custom-elements/duet-button.js +1 -1
  247. package/lib/dist-custom-elements/duet-callout.js +5 -5
  248. package/lib/dist-custom-elements/duet-caption.js +1 -1
  249. package/lib/dist-custom-elements/duet-card.js +6 -6
  250. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  251. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  252. package/lib/dist-custom-elements/duet-chip.js +1 -1
  253. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  254. package/lib/dist-custom-elements/duet-choice.js +6 -6
  255. package/lib/dist-custom-elements/duet-collapsible.js +5 -5
  256. package/lib/dist-custom-elements/duet-combobox.js +80 -58
  257. package/lib/dist-custom-elements/duet-contact-card.js +11 -11
  258. package/lib/dist-custom-elements/duet-cookie-consent.js +8 -8
  259. package/lib/dist-custom-elements/duet-date-picker.js +14 -14
  260. package/lib/dist-custom-elements/duet-divider.js +1 -1
  261. package/lib/dist-custom-elements/duet-editable-table.js +8 -8
  262. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  263. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  264. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  265. package/lib/dist-custom-elements/duet-footer.js +9 -9
  266. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  267. package/lib/dist-custom-elements/duet-grid.js +1 -1
  268. package/lib/dist-custom-elements/duet-header.js +11 -11
  269. package/lib/dist-custom-elements/duet-heading.js +1 -1
  270. package/lib/dist-custom-elements/duet-hero.js +10 -10
  271. package/lib/dist-custom-elements/duet-icon.js +1 -1
  272. package/lib/dist-custom-elements/duet-input.js +1 -1
  273. package/lib/dist-custom-elements/duet-label.js +1 -1
  274. package/lib/dist-custom-elements/duet-layout.js +6 -9
  275. package/lib/dist-custom-elements/duet-link.js +1 -1
  276. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  277. package/lib/dist-custom-elements/duet-list.js +1 -1
  278. package/lib/dist-custom-elements/duet-logo.js +1 -1
  279. package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
  280. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +6 -6
  281. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +8 -8
  282. package/lib/dist-custom-elements/duet-menu-bar-item.js +27 -7
  283. package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
  284. package/lib/dist-custom-elements/duet-menu-bar.js +6 -6
  285. package/lib/dist-custom-elements/duet-modal.js +16 -16
  286. package/lib/dist-custom-elements/duet-multiselect.js +16 -16
  287. package/lib/dist-custom-elements/duet-nav.js +2 -2
  288. package/lib/dist-custom-elements/duet-notification-drawer.js +8 -8
  289. package/lib/dist-custom-elements/duet-notification.js +6 -6
  290. package/lib/dist-custom-elements/duet-number-input.js +13 -13
  291. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  292. package/lib/dist-custom-elements/duet-page-heading.js +5 -5
  293. package/lib/dist-custom-elements/duet-pagination.js +27 -27
  294. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  295. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -111
  296. package/lib/dist-custom-elements/duet-popup-menu.js +1 -277
  297. package/lib/dist-custom-elements/duet-progress.js +1 -1
  298. package/lib/dist-custom-elements/duet-promo-card.js +7 -7
  299. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  300. package/lib/dist-custom-elements/duet-radio.js +2 -2
  301. package/lib/dist-custom-elements/duet-range-slider.js +5 -5
  302. package/lib/dist-custom-elements/duet-range-stepper.js +8 -8
  303. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  304. package/lib/dist-custom-elements/duet-section-layout.js +5 -6
  305. package/lib/dist-custom-elements/duet-select.js +1 -1
  306. package/lib/dist-custom-elements/duet-shaped-image.js +3 -3
  307. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  308. package/lib/dist-custom-elements/duet-slideout-lang.js +4 -4
  309. package/lib/dist-custom-elements/duet-slideout-link.js +5 -5
  310. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +7 -7
  311. package/lib/dist-custom-elements/duet-slideout-panel.js +10 -10
  312. package/lib/dist-custom-elements/duet-slideout.js +10 -10
  313. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  314. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  315. package/lib/dist-custom-elements/duet-step.js +6 -6
  316. package/lib/dist-custom-elements/duet-stepper.js +3 -3
  317. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +6 -6
  318. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +9 -9
  319. package/lib/dist-custom-elements/duet-submenu-bar-item.js +27 -7
  320. package/lib/dist-custom-elements/duet-submenu-bar-link.js +5 -5
  321. package/lib/dist-custom-elements/duet-submenu-bar.js +10 -10
  322. package/lib/dist-custom-elements/duet-tab-group.js +20 -20
  323. package/lib/dist-custom-elements/duet-tab.js +3 -3
  324. package/lib/dist-custom-elements/duet-table.js +1 -1
  325. package/lib/dist-custom-elements/duet-textarea.js +14 -14
  326. package/lib/dist-custom-elements/duet-toggle.js +4 -4
  327. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +6 -6
  328. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +8 -8
  329. package/lib/dist-custom-elements/duet-toolbar-item.js +28 -7
  330. package/lib/dist-custom-elements/duet-toolbar-link.js +5 -5
  331. package/lib/dist-custom-elements/duet-toolbar.js +4 -4
  332. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  333. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  334. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  335. package/lib/dist-custom-elements/duet-tray.js +8 -8
  336. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  337. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  338. package/lib/dist-custom-elements/duet-upload.js +22 -22
  339. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  340. package/lib/dist-custom-elements/index.js +1 -1
  341. package/lib/dist-custom-elements/p-01dec611.js +368 -0
  342. package/lib/dist-custom-elements/{p-9635880c.js → p-0cf30970.js} +6 -6
  343. package/lib/dist-custom-elements/{p-dc26d4a2.js → p-0e77715d.js} +25 -25
  344. package/lib/dist-custom-elements/{p-926dfd0d.js → p-1149a5f1.js} +1 -1
  345. package/lib/dist-custom-elements/{p-7dfb4906.js → p-14903ee8.js} +6 -6
  346. package/lib/dist-custom-elements/{p-53d15ae4.js → p-1749d98a.js} +43 -22
  347. package/lib/dist-custom-elements/{p-8979d055.js → p-1cea02c6.js} +3 -3
  348. package/lib/dist-custom-elements/{p-cc58e64e.js → p-1cf7db2a.js} +3 -3
  349. package/lib/dist-custom-elements/{p-c5f82e3b.js → p-28807fbd.js} +2 -2
  350. package/lib/dist-custom-elements/{p-132de48f.js → p-29c84284.js} +4 -4
  351. package/lib/dist-custom-elements/{p-434e64ad.js → p-2cc77e29.js} +9 -9
  352. package/lib/dist-custom-elements/{p-cd8e9097.js → p-329cec9e.js} +2 -2
  353. package/lib/dist-custom-elements/{p-7a8eda34.js → p-3883514c.js} +5 -5
  354. package/lib/dist-custom-elements/{p-39b4be25.js → p-3d136f5c.js} +8 -8
  355. package/lib/dist-custom-elements/{p-1e7abd9f.js → p-55342fcd.js} +8 -19
  356. package/lib/dist-custom-elements/{p-b1aa75c1.js → p-55989a50.js} +7 -7
  357. package/lib/dist-custom-elements/p-570cecb0.js +119 -0
  358. package/lib/dist-custom-elements/{p-16a278f4.js → p-5e4809d5.js} +6 -6
  359. package/lib/dist-custom-elements/{p-a1979351.js → p-6fdef72e.js} +2 -2
  360. package/lib/dist-custom-elements/{p-00d7b302.js → p-72bc5f40.js} +3 -3
  361. package/lib/dist-custom-elements/{p-6081e535.js → p-782759f5.js} +2 -2
  362. package/lib/dist-custom-elements/{p-3caf29d6.js → p-791ee647.js} +2 -2
  363. package/lib/dist-custom-elements/{p-52618a53.js → p-87248c43.js} +3 -3
  364. package/lib/dist-custom-elements/{p-a7559bee.js → p-95fb5b4b.js} +7 -7
  365. package/lib/dist-custom-elements/{p-e399097c.js → p-9f461090.js} +3 -3
  366. package/lib/dist-custom-elements/{p-fac41d14.js → p-9fa78368.js} +1 -1
  367. package/lib/dist-custom-elements/{p-8acea31f.js → p-a407fdb5.js} +3 -3
  368. package/lib/dist-custom-elements/{p-11d8af72.js → p-a89ea763.js} +6 -6
  369. package/lib/dist-custom-elements/{p-fdc2bf62.js → p-aa53a402.js} +12 -12
  370. package/lib/dist-custom-elements/{p-7a7a6a7b.js → p-aad2ab95.js} +9 -9
  371. package/lib/dist-custom-elements/{p-ddb9e9be.js → p-ab30a756.js} +4 -4
  372. package/lib/{esm/duet-popup-menu.entry.js → dist-custom-elements/p-ae917476.js} +69 -20
  373. package/lib/dist-custom-elements/{p-401837cb.js → p-b87d1e74.js} +4 -4
  374. package/lib/dist-custom-elements/{p-7c8f29a0.js → p-be13a7a6.js} +6 -6
  375. package/lib/dist-custom-elements/{p-239cfc2e.js → p-c43f0450.js} +3 -3
  376. package/lib/dist-custom-elements/{p-c77f9e4d.js → p-c8e032e9.js} +4 -4
  377. package/lib/dist-custom-elements/{p-785686e3.js → p-ca700701.js} +1 -1
  378. package/lib/dist-custom-elements/{p-5f658e84.js → p-d00e8f90.js} +107 -18
  379. package/lib/dist-custom-elements/{p-f5924b7d.js → p-d551ba52.js} +2 -2
  380. package/lib/dist-custom-elements/{p-f43704a4.js → p-e685687b.js} +2 -2
  381. package/lib/dist-custom-elements/{p-bec25ec5.js → p-e8594dcd.js} +3 -3
  382. package/lib/dist-custom-elements/p-f0cc5629.js +18 -0
  383. package/lib/dist-custom-elements/{p-74f689ae.js → p-f1a4011f.js} +5 -5
  384. package/lib/{esm/tokens-e0e3d241.js → dist-custom-elements/p-f6000a03.js} +25 -25
  385. package/lib/duet/duet.esm.js +1 -1
  386. package/lib/duet/duet.js +1 -1
  387. package/lib/duet/{p-a1af9ad9.system.entry.js → p-033a796b.system.entry.js} +1 -1
  388. package/lib/duet/{p-5e2f8206.js → p-03ebb87c.js} +1 -1
  389. package/lib/duet/{p-ab78e681.entry.js → p-09f97fb6.entry.js} +1 -1
  390. package/lib/duet/{p-946101a9.js → p-0e91ae89.js} +1 -1
  391. package/lib/duet/{p-14dc7cf5.entry.js → p-0f61ec4f.entry.js} +1 -1
  392. package/lib/duet/{p-8f1823c2.system.entry.js → p-102d7289.system.entry.js} +1 -1
  393. package/lib/duet/p-1117cfde.system.entry.js +4 -0
  394. package/lib/duet/{p-8c84e41c.entry.js → p-1261a1b5.entry.js} +1 -1
  395. package/lib/duet/{p-8f2af04b.system.entry.js → p-13f6afbe.system.entry.js} +1 -1
  396. package/lib/duet/{p-dcf097a9.system.entry.js → p-14a83e9e.system.entry.js} +1 -1
  397. package/lib/duet/{p-e20b0d90.entry.js → p-151b3794.entry.js} +1 -1
  398. package/lib/duet/{p-91bf41a8.system.entry.js → p-16a3016e.system.entry.js} +1 -1
  399. package/lib/duet/p-16e3f6f0.system.entry.js +4 -0
  400. package/lib/duet/{p-7e06948d.entry.js → p-16ee7d09.entry.js} +1 -1
  401. package/lib/duet/p-176154a9.system.entry.js +4 -0
  402. package/lib/duet/{p-f8d41de4.entry.js → p-186dc204.entry.js} +1 -1
  403. package/lib/duet/{p-a4a42c3e.system.entry.js → p-19097787.system.entry.js} +1 -1
  404. package/lib/duet/{p-5e502442.system.entry.js → p-1f32a819.system.entry.js} +1 -1
  405. package/lib/duet/{p-33ca3555.system.entry.js → p-1fb804dc.system.entry.js} +1 -1
  406. package/lib/duet/{p-123e5149.entry.js → p-2091f634.entry.js} +1 -1
  407. package/lib/duet/{p-35bf92a1.system.entry.js → p-22b59f78.system.entry.js} +1 -1
  408. package/lib/duet/{p-50428ca6.entry.js → p-231b853e.entry.js} +1 -1
  409. package/lib/duet/p-25deb7be.system.entry.js +4 -0
  410. package/lib/duet/p-28d2739c.entry.js +4 -0
  411. package/lib/duet/p-2b0552dc.system.entry.js +4 -0
  412. package/lib/duet/{p-8aaadc21.system.entry.js → p-2c42ece3.system.entry.js} +1 -1
  413. package/lib/duet/{p-85f4d527.entry.js → p-306faf90.entry.js} +1 -1
  414. package/lib/duet/p-30947766.entry.js +4 -0
  415. package/lib/duet/{p-2349ea53.entry.js → p-312f509d.entry.js} +1 -1
  416. package/lib/duet/p-3363aa75.entry.js +4 -0
  417. package/lib/duet/{p-f6c25420.system.entry.js → p-36b2ad26.system.entry.js} +1 -1
  418. package/lib/duet/{p-695da2aa.entry.js → p-375948ff.entry.js} +1 -1
  419. package/lib/duet/p-37b8bb50.system.entry.js +4 -0
  420. package/lib/duet/p-386c614c.system.entry.js +4 -0
  421. package/lib/duet/{p-d3101c8a.system.js → p-39fb8819.system.js} +1 -1
  422. package/lib/duet/{p-03eab84c.system.entry.js → p-3beb1c58.system.entry.js} +1 -1
  423. package/lib/duet/{p-12155eae.system.entry.js → p-3c0373cb.system.entry.js} +1 -1
  424. package/lib/duet/{p-e95fa292.js → p-3d9a63aa.js} +1 -1
  425. package/lib/duet/{p-d5e996fd.entry.js → p-3e13fb5c.entry.js} +1 -1
  426. package/lib/duet/{p-c7aea431.entry.js → p-3e15a291.entry.js} +1 -1
  427. package/lib/duet/{p-31ee8ad8.entry.js → p-4068cfee.entry.js} +1 -1
  428. package/lib/duet/{p-20a0e98c.entry.js → p-408a9ccb.entry.js} +1 -1
  429. package/lib/duet/p-4217dab3.system.entry.js +4 -0
  430. package/lib/duet/{p-6d11c049.entry.js → p-446f79d6.entry.js} +1 -1
  431. package/lib/duet/p-46030b7e.entry.js +4 -0
  432. package/lib/duet/{p-c3035dee.system.entry.js → p-48c61eee.system.entry.js} +1 -1
  433. package/lib/duet/p-48c90346.system.js +4 -0
  434. package/lib/duet/p-495d8962.system.entry.js +4 -0
  435. package/lib/duet/{p-bfb824c6.entry.js → p-497263c5.entry.js} +1 -1
  436. package/lib/duet/{p-0d9de644.entry.js → p-4a657e92.entry.js} +1 -1
  437. package/lib/duet/p-4d20e324.system.entry.js +4 -0
  438. package/lib/duet/{p-2c999efc.entry.js → p-50bf90d6.entry.js} +1 -1
  439. package/lib/duet/{p-0853dd3b.system.js → p-514b6b5b.system.js} +1 -1
  440. package/lib/duet/{p-5432aefa.system.entry.js → p-528db5b3.system.entry.js} +1 -1
  441. package/lib/duet/{p-eb8bf9ea.entry.js → p-529aff73.entry.js} +1 -1
  442. package/lib/duet/p-54fbe5c8.entry.js +4 -0
  443. package/lib/duet/p-599c6ee4.system.entry.js +4 -0
  444. package/lib/duet/p-5f6a8312.system.entry.js +4 -0
  445. package/lib/duet/{p-bf40b101.entry.js → p-5fe9bbe0.entry.js} +1 -1
  446. package/lib/duet/p-60754704.entry.js +4 -0
  447. package/lib/duet/p-61fe7d32.entry.js +4 -0
  448. package/lib/duet/{p-3b668f9d.system.entry.js → p-64030845.system.entry.js} +2 -2
  449. package/lib/duet/{p-4f47944f.system.entry.js → p-646fcab7.system.entry.js} +1 -1
  450. package/lib/duet/{p-2f891fbb.system.js → p-6a95a2e3.system.js} +1 -1
  451. package/lib/duet/p-6adc0389.system.entry.js +4 -0
  452. package/lib/duet/{p-697c4f57.entry.js → p-6f106108.entry.js} +1 -1
  453. package/lib/duet/{p-471c18e5.system.entry.js → p-6f53cfb2.system.entry.js} +1 -1
  454. package/lib/duet/{p-fd40d190.system.entry.js → p-739bfa4e.system.entry.js} +1 -1
  455. package/lib/duet/{p-0487aadb.system.entry.js → p-753333e9.system.entry.js} +1 -1
  456. package/lib/duet/{p-8507509a.js → p-75e078ac.js} +1 -1
  457. package/lib/duet/{p-e05007a2.system.entry.js → p-7712eb09.system.entry.js} +1 -1
  458. package/lib/duet/{p-730ac0b8.entry.js → p-783cc158.entry.js} +1 -1
  459. package/lib/duet/{p-8de97e36.entry.js → p-7863c54a.entry.js} +1 -1
  460. package/lib/duet/p-7a3ae8a9.system.js +4 -0
  461. package/lib/duet/{p-11d01633.system.entry.js → p-7a41aff3.system.entry.js} +1 -1
  462. package/lib/duet/{p-4f7a0a49.entry.js → p-7b6bacd8.entry.js} +1 -1
  463. package/lib/duet/{p-6cd9ae43.entry.js → p-7db5f5b6.entry.js} +1 -1
  464. package/lib/duet/p-7f94c928.entry.js +4 -0
  465. package/lib/duet/{p-0fee15c1.system.js → p-8002cdbf.system.js} +1 -1
  466. package/lib/duet/p-8002d713.system.entry.js +4 -0
  467. package/lib/duet/{p-758cb2a2.system.entry.js → p-8087cdcd.system.entry.js} +1 -1
  468. package/lib/duet/{p-3affe362.entry.js → p-81168888.entry.js} +1 -1
  469. package/lib/duet/{p-4a689653.system.js → p-832862b7.system.js} +1 -1
  470. package/lib/duet/{p-91374fa5.system.entry.js → p-832e5af8.system.entry.js} +1 -1
  471. package/lib/duet/{p-73170927.entry.js → p-8486a863.entry.js} +1 -1
  472. package/lib/duet/{p-9ea9329f.entry.js → p-84b5b372.entry.js} +1 -1
  473. package/lib/duet/p-8b3b5673.js +4 -0
  474. package/lib/duet/{p-ae6de40d.entry.js → p-8bee5b14.entry.js} +1 -1
  475. package/lib/duet/{p-a2ddcf90.entry.js → p-8c95d7e7.entry.js} +1 -1
  476. package/lib/duet/p-8d947a43.system.entry.js +4 -0
  477. package/lib/duet/{p-012938af.system.entry.js → p-91b2664a.system.entry.js} +1 -1
  478. package/lib/duet/p-94eab61e.system.js +4 -0
  479. package/lib/duet/{p-8cb3b550.system.entry.js → p-961a7a42.system.entry.js} +1 -1
  480. package/lib/duet/{p-76ebeb39.system.entry.js → p-962a7ed7.system.entry.js} +1 -1
  481. package/lib/duet/p-9832a62e.system.entry.js +4 -0
  482. package/lib/duet/{p-ea7dccdf.system.entry.js → p-9abe2d23.system.entry.js} +1 -1
  483. package/lib/duet/p-9c50306c.system.entry.js +4 -0
  484. package/lib/duet/{p-c3524f86.system.entry.js → p-9c5717a5.system.entry.js} +1 -1
  485. package/lib/duet/p-9d0d4329.system.entry.js +4 -0
  486. package/lib/duet/p-9d7aea44.entry.js +4 -0
  487. package/lib/duet/{p-60327ec6.system.entry.js → p-a033bafa.system.entry.js} +1 -1
  488. package/lib/duet/p-a0c1c7d8.system.entry.js +4 -0
  489. package/lib/duet/p-a0ffaabf.entry.js +4 -0
  490. package/lib/duet/{p-2b3b6d33.entry.js → p-a1e13f21.entry.js} +1 -1
  491. package/lib/duet/{p-8a9f676f.system.entry.js → p-a838f364.system.entry.js} +1 -1
  492. package/lib/duet/{p-934124e4.entry.js → p-a90efe08.entry.js} +1 -1
  493. package/lib/duet/{p-86f0eef8.system.entry.js → p-aba65c68.system.entry.js} +1 -1
  494. package/lib/duet/{p-5ed66d93.entry.js → p-ac538db7.entry.js} +1 -1
  495. package/lib/duet/p-adcd2fb3.entry.js +4 -0
  496. package/lib/duet/{p-ebca186a.system.entry.js → p-b224ee72.system.entry.js} +1 -1
  497. package/lib/duet/{p-966bf379.system.entry.js → p-b274ebde.system.entry.js} +1 -1
  498. package/lib/duet/{p-eb8ddb2c.entry.js → p-b2f64f34.entry.js} +1 -1
  499. package/lib/duet/{p-541301b8.system.entry.js → p-b3ab4a17.system.entry.js} +1 -1
  500. package/lib/duet/{p-e1e9de91.entry.js → p-b4df4c57.entry.js} +1 -1
  501. package/lib/duet/p-b4e4bf04.system.entry.js +4 -0
  502. package/lib/duet/{p-6e0ff6ff.entry.js → p-b5443923.entry.js} +1 -1
  503. package/lib/duet/p-b657f08f.system.entry.js +4 -0
  504. package/lib/duet/{p-64da9c94.system.entry.js → p-ba4bdb0d.system.entry.js} +1 -1
  505. package/lib/duet/{p-00f584d4.js → p-bb2d58bc.js} +1 -1
  506. package/lib/duet/{p-7cc379a7.system.entry.js → p-bc2be70e.system.entry.js} +1 -1
  507. package/lib/duet/p-bc50d23b.entry.js +4 -0
  508. package/lib/duet/{p-9070bf89.system.entry.js → p-bd2768a5.system.entry.js} +1 -1
  509. package/lib/duet/p-c1b1b16d.entry.js +4 -0
  510. package/lib/duet/{p-ecde67f6.entry.js → p-c8783040.entry.js} +1 -1
  511. package/lib/duet/p-cade991a.entry.js +4 -0
  512. package/lib/duet/{p-6c917ed9.entry.js → p-cca4a7db.entry.js} +1 -1
  513. package/lib/duet/p-ccf2bc0a.system.entry.js +4 -0
  514. package/lib/duet/{p-dc7c2dc7.system.entry.js → p-cd0e3537.system.entry.js} +1 -1
  515. package/lib/duet/{p-cf05a9a4.entry.js → p-ce754f76.entry.js} +1 -1
  516. package/lib/duet/{p-b839f59a.system.entry.js → p-ce7987e8.system.entry.js} +1 -1
  517. package/lib/duet/{p-6df59cfe.entry.js → p-cf1206a8.entry.js} +1 -1
  518. package/lib/duet/p-d08a89dc.entry.js +4 -0
  519. package/lib/duet/{p-0b249181.js → p-d11659fd.js} +1 -1
  520. package/lib/duet/p-d22c889b.entry.js +4 -0
  521. package/lib/duet/{p-de5b2f37.system.js → p-d6c69f62.system.js} +1 -1
  522. package/lib/duet/p-d6e16c5d.entry.js +4 -0
  523. package/lib/duet/{p-fc3f42ab.entry.js → p-d6fbbecc.entry.js} +1 -1
  524. package/lib/duet/{p-fe661e98.system.entry.js → p-d8d99c33.system.entry.js} +1 -1
  525. package/lib/duet/{p-064b79e8.entry.js → p-d9ad612c.entry.js} +1 -1
  526. package/lib/duet/{p-22c7d5ee.entry.js → p-d9b32ab3.entry.js} +1 -1
  527. package/lib/duet/{p-d4cf8310.system.entry.js → p-db2c01b7.system.entry.js} +1 -1
  528. package/lib/duet/{p-f368439a.entry.js → p-dcbb4af4.entry.js} +1 -1
  529. package/lib/duet/p-defbfc15.js +4 -0
  530. package/lib/duet/{p-9e4c6ea7.system.js → p-dfbd0dd7.system.js} +1 -1
  531. package/lib/duet/{p-0e255314.system.entry.js → p-e2122bd3.system.entry.js} +1 -1
  532. package/lib/duet/p-e4c8559c.system.js +4 -0
  533. package/lib/duet/p-e5997320.entry.js +4 -0
  534. package/lib/duet/{p-5cd8706b.entry.js → p-e6596826.entry.js} +1 -1
  535. package/lib/duet/{p-4ab05bd1.system.entry.js → p-e7f0d18b.system.entry.js} +1 -1
  536. package/lib/duet/{p-18766573.entry.js → p-e8d31be7.entry.js} +1 -1
  537. package/lib/duet/{p-493a25c0.system.entry.js → p-ead4b210.system.entry.js} +1 -1
  538. package/lib/duet/{p-754100c9.system.entry.js → p-eaeee3a3.system.entry.js} +1 -1
  539. package/lib/duet/{p-6faa9435.system.entry.js → p-eb26c1f5.system.entry.js} +1 -1
  540. package/lib/duet/{p-d46a310c.entry.js → p-eb9677dc.entry.js} +1 -1
  541. package/lib/duet/{p-5446b2c4.entry.js → p-ec58f8ee.entry.js} +1 -1
  542. package/lib/duet/{p-7f96f678.entry.js → p-ec5d2407.entry.js} +1 -1
  543. package/lib/duet/{p-30f2d20a.entry.js → p-ec70084a.entry.js} +1 -1
  544. package/lib/duet/p-ee067380.system.entry.js +4 -0
  545. package/lib/duet/{p-902c3cbe.system.entry.js → p-ee52d40a.system.entry.js} +1 -1
  546. package/lib/duet/{p-c3573c7a.entry.js → p-f0634b57.entry.js} +1 -1
  547. package/lib/duet/p-f0cc5629.js +4 -0
  548. package/lib/duet/{p-337009ba.system.entry.js → p-f28acd06.system.entry.js} +1 -1
  549. package/lib/duet/{p-0b2e581f.entry.js → p-f2957e8e.entry.js} +1 -1
  550. package/lib/duet/{p-8cacd5d4.entry.js → p-f33f42ce.entry.js} +1 -1
  551. package/lib/duet/p-f40c4ff4.entry.js +4 -0
  552. package/lib/duet/{p-632363b9.system.entry.js → p-f48366d3.system.entry.js} +1 -1
  553. package/lib/duet/p-f6000a03.js +4 -0
  554. package/lib/duet/{p-c5332265.system.entry.js → p-f6471762.system.entry.js} +2 -2
  555. package/lib/duet/{p-36637566.system.entry.js → p-f749aa8a.system.entry.js} +2 -2
  556. package/lib/duet/{p-997146fa.system.entry.js → p-f930128c.system.entry.js} +2 -2
  557. package/lib/duet/{p-8980f13e.entry.js → p-fa2ef682.entry.js} +1 -1
  558. package/lib/duet/p-fa3e0628.system.entry.js +4 -0
  559. package/lib/duet/{p-62cf9516.entry.js → p-fbcd3fb7.entry.js} +1 -1
  560. package/lib/duet/p-fc100c70.entry.js +4 -0
  561. package/lib/duet/{p-236df5f1.entry.js → p-fccf2ddc.entry.js} +1 -1
  562. package/lib/duet/{p-2526c848.entry.js → p-fd5d4f14.entry.js} +1 -1
  563. package/lib/duet/p-fdbc3f6c.entry.js +4 -0
  564. package/lib/duet/{p-191f51da.system.entry.js → p-fdbc9c7f.system.entry.js} +1 -1
  565. package/lib/duet/{p-a1a10757.system.entry.js → p-ffdfb64b.system.entry.js} +2 -2
  566. package/lib/esm/a11y-utils-92930863.js +18 -0
  567. package/lib/esm/{app-globals-6cbf18ba.js → app-globals-19322ff1.js} +1 -1
  568. package/lib/esm/duet-action-button.entry.js +5 -5
  569. package/lib/esm/duet-alert.entry.js +4 -4
  570. package/lib/esm/duet-badge.entry.js +4 -4
  571. package/lib/esm/duet-banner.entry.js +4 -4
  572. package/lib/esm/duet-breadcrumb.entry.js +6 -6
  573. package/lib/esm/duet-breadcrumbs.entry.js +7 -7
  574. package/lib/esm/duet-button_2.entry.js +7 -7
  575. package/lib/esm/duet-callout.entry.js +5 -5
  576. package/lib/esm/duet-caption_4.entry.js +14 -25
  577. package/lib/esm/duet-card.entry.js +4 -4
  578. package/lib/esm/duet-checkbox.entry.js +2 -2
  579. package/lib/esm/duet-checkmark.entry.js +4 -4
  580. package/lib/esm/duet-chip_3.entry.js +647 -0
  581. package/lib/esm/duet-choice_2.entry.js +4 -4
  582. package/lib/esm/duet-collapsible.entry.js +4 -4
  583. package/lib/esm/duet-combobox.entry.js +44 -40
  584. package/lib/esm/duet-contact-card.entry.js +5 -5
  585. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  586. package/lib/esm/duet-date-picker.entry.js +5 -5
  587. package/lib/esm/duet-divider_2.entry.js +5 -5
  588. package/lib/esm/duet-editable-table_3.entry.js +11 -11
  589. package/lib/esm/duet-empty-state.entry.js +2 -2
  590. package/lib/esm/duet-fieldset.entry.js +6 -6
  591. package/lib/esm/duet-file-chooser.entry.js +1 -1
  592. package/lib/esm/duet-footer.entry.js +4 -4
  593. package/lib/esm/duet-grid_2.entry.js +3 -3
  594. package/lib/esm/duet-header_2.entry.js +6 -6
  595. package/lib/esm/duet-hero.entry.js +4 -4
  596. package/lib/esm/duet-icon.entry.js +6 -6
  597. package/lib/esm/duet-input_2.entry.js +102 -13
  598. package/lib/esm/duet-layout.entry.js +7 -10
  599. package/lib/esm/duet-list_2.entry.js +5 -5
  600. package/lib/esm/duet-menu-bar-button.entry.js +3 -3
  601. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
  602. package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
  603. package/lib/esm/duet-menu-bar-item.entry.js +24 -6
  604. package/lib/esm/duet-menu-bar-link.entry.js +3 -3
  605. package/lib/esm/duet-menu-bar.entry.js +6 -6
  606. package/lib/esm/duet-modal.entry.js +11 -11
  607. package/lib/esm/duet-multiselect.entry.js +9 -9
  608. package/lib/esm/duet-nav.entry.js +2 -2
  609. package/lib/esm/duet-notification_2.entry.js +8 -8
  610. package/lib/esm/duet-number-input.entry.js +4 -4
  611. package/lib/esm/duet-overlay.entry.js +3 -3
  612. package/lib/esm/duet-page-heading.entry.js +4 -4
  613. package/lib/esm/duet-pagination_2.entry.js +19 -19
  614. package/lib/esm/duet-progress.entry.js +3 -3
  615. package/lib/esm/duet-promo-card.entry.js +7 -7
  616. package/lib/esm/duet-radio_2.entry.js +3 -3
  617. package/lib/esm/duet-range-slider.entry.js +3 -3
  618. package/lib/esm/duet-scrollable_3.entry.js +49 -28
  619. package/lib/esm/duet-section-layout.entry.js +5 -6
  620. package/lib/esm/duet-select.entry.js +3 -3
  621. package/lib/esm/duet-shaped-image.entry.js +3 -3
  622. package/lib/esm/duet-show-more.entry.js +5 -5
  623. package/lib/esm/duet-slideout-lang.entry.js +4 -4
  624. package/lib/esm/duet-slideout-link.entry.js +4 -4
  625. package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
  626. package/lib/esm/duet-slideout-panel.entry.js +13 -13
  627. package/lib/esm/duet-slideout.entry.js +11 -11
  628. package/lib/esm/duet-step_2.entry.js +3 -3
  629. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
  630. package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
  631. package/lib/esm/duet-submenu-bar-item.entry.js +23 -5
  632. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  633. package/lib/esm/duet-submenu-bar.entry.js +8 -8
  634. package/lib/esm/duet-textarea.entry.js +7 -7
  635. package/lib/esm/duet-toggle.entry.js +2 -2
  636. package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
  637. package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
  638. package/lib/esm/duet-toolbar-item.entry.js +25 -6
  639. package/lib/esm/duet-toolbar-link.entry.js +4 -4
  640. package/lib/esm/duet-toolbar.entry.js +4 -4
  641. package/lib/esm/duet-tooltip-button_2.entry.js +8 -8
  642. package/lib/esm/duet-tooltip.entry.js +3 -3
  643. package/lib/esm/duet-tray.entry.js +6 -6
  644. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  645. package/lib/esm/duet-upload-item.entry.js +5 -5
  646. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  647. package/lib/esm/duet.js +4 -4
  648. package/lib/esm/{errorcodes.utils-2a3a0ed1.js → errorcodes.utils-953f4d47.js} +1 -1
  649. package/lib/esm/{focus-utils-1e2c1ed7.js → focus-utils-5147573d.js} +1 -1
  650. package/lib/esm/{index-f384e24a.js → index-940c081d.js} +1 -1
  651. package/lib/esm/{language-utils-b0c1f3cd.js → language-utils-b0c1eb01.js} +1 -1
  652. package/lib/esm/loader.js +4 -4
  653. package/lib/esm/{slot-utils-e698dc9e.js → slot-utils-4a318cb9.js} +1 -1
  654. package/lib/esm/{token-utils-54a23ef5.js → token-utils-3c2fb643.js} +1 -1
  655. package/lib/{dist-custom-elements/p-d5c7ae62.js → esm/tokens-84fb2357.js} +25 -25
  656. package/lib/esm/{tokens.module-b5fab24a.js → tokens.module-216c2ae9.js} +25 -25
  657. package/lib/esm-es5/a11y-utils-92930863.js +4 -0
  658. package/lib/esm-es5/{app-globals-6cbf18ba.js → app-globals-19322ff1.js} +1 -1
  659. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  660. package/lib/esm-es5/duet-alert.entry.js +1 -1
  661. package/lib/esm-es5/duet-badge.entry.js +1 -1
  662. package/lib/esm-es5/duet-banner.entry.js +1 -1
  663. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  664. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  665. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  666. package/lib/esm-es5/duet-callout.entry.js +1 -1
  667. package/lib/esm-es5/duet-caption_4.entry.js +2 -2
  668. package/lib/esm-es5/duet-card.entry.js +1 -1
  669. package/lib/esm-es5/duet-checkbox.entry.js +2 -2
  670. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  671. package/lib/esm-es5/duet-chip_3.entry.js +4 -0
  672. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  673. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  674. package/lib/esm-es5/duet-combobox.entry.js +2 -2
  675. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  676. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  677. package/lib/esm-es5/duet-date-picker.entry.js +2 -2
  678. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  679. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  680. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  681. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  682. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  683. package/lib/esm-es5/duet-footer.entry.js +1 -1
  684. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  685. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  686. package/lib/esm-es5/duet-hero.entry.js +1 -1
  687. package/lib/esm-es5/duet-icon.entry.js +1 -1
  688. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  689. package/lib/esm-es5/duet-layout.entry.js +1 -1
  690. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  691. package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
  692. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  693. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +2 -2
  694. package/lib/esm-es5/duet-menu-bar-item.entry.js +2 -2
  695. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  696. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  697. package/lib/esm-es5/duet-modal.entry.js +1 -1
  698. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  699. package/lib/esm-es5/duet-nav.entry.js +1 -1
  700. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  701. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  702. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  703. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  704. package/lib/esm-es5/duet-pagination_2.entry.js +2 -2
  705. package/lib/esm-es5/duet-progress.entry.js +1 -1
  706. package/lib/esm-es5/duet-promo-card.entry.js +2 -2
  707. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  708. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  709. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  710. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  711. package/lib/esm-es5/duet-select.entry.js +1 -1
  712. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  713. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  714. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  715. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  716. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  717. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  718. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  719. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  720. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  721. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  722. package/lib/esm-es5/duet-submenu-bar-item.entry.js +2 -2
  723. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  724. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  725. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  726. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  727. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  728. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  729. package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
  730. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  731. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  732. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  733. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  734. package/lib/esm-es5/duet-tray.entry.js +1 -1
  735. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  736. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  737. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  738. package/lib/esm-es5/duet.js +1 -1
  739. package/lib/esm-es5/{errorcodes.utils-2a3a0ed1.js → errorcodes.utils-953f4d47.js} +1 -1
  740. package/lib/esm-es5/focus-utils-5147573d.js +4 -0
  741. package/lib/esm-es5/{index-f384e24a.js → index-940c081d.js} +1 -1
  742. package/lib/esm-es5/{language-utils-b0c1f3cd.js → language-utils-b0c1eb01.js} +1 -1
  743. package/lib/esm-es5/loader.js +1 -1
  744. package/lib/esm-es5/{slot-utils-e698dc9e.js → slot-utils-4a318cb9.js} +1 -1
  745. package/lib/esm-es5/{token-utils-54a23ef5.js → token-utils-3c2fb643.js} +1 -1
  746. package/lib/esm-es5/tokens-84fb2357.js +4 -0
  747. package/lib/esm-es5/tokens.module-216c2ae9.js +4 -0
  748. package/lib/types/components/duet-chip/duet-chip.d.ts +24 -2
  749. package/lib/types/components/duet-combobox/duet-combobox-select.d.ts +2 -1
  750. package/lib/types/components/duet-combobox/duet-combobox.d.ts +3 -1
  751. package/lib/types/components/duet-input/duet-input.d.ts +22 -1
  752. package/lib/types/components/duet-link/duet-link.d.ts +0 -1
  753. package/lib/types/components/duet-menu-bar-item/duet-menu-bar-item.d.ts +17 -0
  754. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +7 -2
  755. package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +6 -1
  756. package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +4 -0
  757. package/lib/types/components/duet-submenu-bar-item/duet-submenu-bar-item.d.ts +17 -0
  758. package/lib/types/components/duet-toolbar-item/duet-toolbar-item.d.ts +17 -0
  759. package/lib/types/components.d.ts +112 -10
  760. package/lib/types/utils/a11y-utils.d.ts +11 -0
  761. package/package.json +4 -4
  762. package/lib/cjs/duet-chip.cjs.entry.js +0 -290
  763. package/lib/cjs/duet-popup-menu-item.cjs.entry.js +0 -83
  764. package/lib/cjs/duet-popup-menu.cjs.entry.js +0 -250
  765. package/lib/dist-custom-elements/p-9ef37cc5.js +0 -327
  766. package/lib/duet/p-01ce7028.system.entry.js +0 -4
  767. package/lib/duet/p-04085d32.entry.js +0 -4
  768. package/lib/duet/p-053113a9.system.entry.js +0 -4
  769. package/lib/duet/p-08727974.entry.js +0 -4
  770. package/lib/duet/p-1b5ce17e.system.entry.js +0 -4
  771. package/lib/duet/p-1c8c9651.entry.js +0 -4
  772. package/lib/duet/p-20393f34.system.entry.js +0 -4
  773. package/lib/duet/p-22a5ac0a.entry.js +0 -4
  774. package/lib/duet/p-22cb3c28.system.entry.js +0 -4
  775. package/lib/duet/p-26c71746.system.js +0 -4
  776. package/lib/duet/p-2e108879.js +0 -4
  777. package/lib/duet/p-2fc10b59.entry.js +0 -4
  778. package/lib/duet/p-3233973c.system.entry.js +0 -4
  779. package/lib/duet/p-344d401b.entry.js +0 -4
  780. package/lib/duet/p-38ab5505.entry.js +0 -4
  781. package/lib/duet/p-3a5b7cf7.system.entry.js +0 -4
  782. package/lib/duet/p-45d596e8.entry.js +0 -4
  783. package/lib/duet/p-47e4eada.entry.js +0 -4
  784. package/lib/duet/p-50c83774.js +0 -4
  785. package/lib/duet/p-54f1f550.system.entry.js +0 -4
  786. package/lib/duet/p-59ae9e27.system.entry.js +0 -4
  787. package/lib/duet/p-63f80431.system.entry.js +0 -4
  788. package/lib/duet/p-6a0ed208.entry.js +0 -4
  789. package/lib/duet/p-6a34f6be.entry.js +0 -4
  790. package/lib/duet/p-6d405ca2.system.entry.js +0 -4
  791. package/lib/duet/p-6e8ebe18.entry.js +0 -4
  792. package/lib/duet/p-6fde361f.system.entry.js +0 -4
  793. package/lib/duet/p-76eec0c0.system.entry.js +0 -4
  794. package/lib/duet/p-86ba2e23.entry.js +0 -4
  795. package/lib/duet/p-8ab41ea5.entry.js +0 -4
  796. package/lib/duet/p-8d25bac7.entry.js +0 -4
  797. package/lib/duet/p-91115d1e.system.js +0 -4
  798. package/lib/duet/p-9d3ef1e0.system.entry.js +0 -4
  799. package/lib/duet/p-9d521ea1.system.entry.js +0 -4
  800. package/lib/duet/p-a2c01fc7.system.entry.js +0 -4
  801. package/lib/duet/p-a365e326.entry.js +0 -4
  802. package/lib/duet/p-a81e7736.entry.js +0 -4
  803. package/lib/duet/p-aa8648b3.system.entry.js +0 -4
  804. package/lib/duet/p-ae4cd43d.entry.js +0 -4
  805. package/lib/duet/p-b3bbea88.system.entry.js +0 -4
  806. package/lib/duet/p-b5aaa528.system.entry.js +0 -4
  807. package/lib/duet/p-b64eb2b3.system.entry.js +0 -4
  808. package/lib/duet/p-b93605ee.system.entry.js +0 -4
  809. package/lib/duet/p-c2ca9373.entry.js +0 -4
  810. package/lib/duet/p-cb9d279b.system.entry.js +0 -4
  811. package/lib/duet/p-ce289a58.system.entry.js +0 -4
  812. package/lib/duet/p-d3b84b94.entry.js +0 -4
  813. package/lib/duet/p-d5c7ae62.js +0 -4
  814. package/lib/duet/p-e408682d.system.entry.js +0 -4
  815. package/lib/duet/p-e69bd7e8.entry.js +0 -4
  816. package/lib/duet/p-ea445202.system.entry.js +0 -4
  817. package/lib/duet/p-ec6a0e13.entry.js +0 -4
  818. package/lib/duet/p-f1bf4f9e.entry.js +0 -4
  819. package/lib/duet/p-f5063a7d.system.js +0 -4
  820. package/lib/duet/p-f9eb5cbb.system.entry.js +0 -4
  821. package/lib/esm/duet-chip.entry.js +0 -286
  822. package/lib/esm/duet-popup-menu-item.entry.js +0 -79
  823. package/lib/esm-es5/duet-chip.entry.js +0 -4
  824. package/lib/esm-es5/duet-popup-menu-item.entry.js +0 -4
  825. package/lib/esm-es5/duet-popup-menu.entry.js +0 -4
  826. package/lib/esm-es5/focus-utils-1e2c1ed7.js +0 -4
  827. package/lib/esm-es5/tokens-e0e3d241.js +0 -4
  828. package/lib/esm-es5/tokens.module-b5fab24a.js +0 -4
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,c as i,h as e,F as a,H as s,g as n}from"./p-00f584d4.js";import{i as o}from"./p-aaa7a7bd.js";import{c as r}from"./p-5e59e970.js";import{d as h}from"./p-9e371678.js";import{k as l,l as d,d as c,b as p,a as u,c as b,m as g,n as m}from"./p-a1b7f2a0.js";import{g as f,c as v,d as k}from"./p-5e2f8206.js";import{p as y}from"./p-9c3c64b9.js";import{b as w,a as x}from"./p-e95fa292.js";import"./p-50c83774.js";const S=class{constructor(e){t(this,e),this.duetPageChange=i(this,"duetPageChange",3),this.listId=r("duet-pagination-list"),this.firstRenderDone=!1,this.handleMediaQueryChange=t=>{this.matchesCompactBreakpoint=w.includes(this.compactBreakpoint)?t.matches:!t.matches},this.actionChain=async(t,i)=>{if(0===t)this.current=1;else if(t>this.totalPages)this.current=this.totalPages;else if(i!==t){const i=Math.ceil(t/this.visibleItems)-1;i!==this.internalSectionIndex&&(this.internalSectionIndex=i,await this.setFocus())}return!0},this.emitPageEvent=(t,i)=>{const e=Number(i||this.current);this.duetPageChange.emit({component:"duet-pagination",from:e*this.take,to:e*this.take+this.take,current:e,take:this.take,type:"page",originalEvent:t})},this.getEnteredNumber=h((t=>{this.emitPageEvent(t,this.numbersStore),this.current=Number(this.numbersStore),this.numbersStore="",this.duetPageChange.emit({component:"duet-pagination",from:this.current*this.take,to:this.current*this.take+this.take,current:this.current,take:this.take,type:"jump",originalEvent:t})}),500),this.processedPageLinks=null,this.numbersStore="",this.matchesCompactBreakpoint=!1,this.totalPages=10,this.internalSectionIndex=0,this.theme="",this.disabled=!1,this.variation="default",this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.accessibleLabelsDefaults={en:{next_page:"Next page",previous_page:"Previous page",first_page:"First page",last_page:"Last page",jump_to:"Jump to page",go_to:"Go to page",description:"You may use arrow keys to select page number",pagination_label:"Pagination, choose a number to jump to a page",select_label:"Total pages {0}, choose a number to jump to a page",prev_section:"Show previous {0} page numbers, screen reader user should use arrowkeys to navigate",next_section:"Show next {0} page numbers, screen reader user should use arrowkeys to navigate"},fi:{next_page:"Seuraava sivu",previous_page:"Edellinen sivu",first_page:"Ensimmäinen sivu",last_page:"Viimeinen sivu",jump_to:"Siirry sivulle",go_to:"Siirry sivulle",description:"Voit käyttää nuolinäppäimiä sivunumeron valitsemiseen",pagination_label:"Sivutus, valitse sivunumero siirtyäksesi sivulle",select_label:"Sivuja yhteensä {0}, valitse sivunumero siirtyäksesi sivulle",prev_section:"Näytä edelliset {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi",next_section:"Näytä seuraavat {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi"},sv:{next_page:"Nästa sida",previous_page:"Föregående sida",first_page:"Första sidan",last_page:"Sista sidan",jump_to:"Hoppa till sida",go_to:"Hoppa till sida",description:"Du kan använda piltangenterna för att välja sida",pagination_label:"Paginering, välj en siffra för att hoppa till en sida",select_label:"Totalt antal sidor {0}, välj en siffra för att hoppa till en sida",prev_section:"Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",next_section:"Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera"}},this.accessibleLabels=f(this.accessibleLabelsDefaults),this.take=5,this.visibleItems=5,this.total=1e3,this.compactBreakpoint="x-small",this.ariaControls="",this.current=1,this.pageLinks=void 0}watchPropTotalHandler(){return this.calculatePageTake(),!0}watchStateHandler(t,i){return this.actionChain(t,i)}componentWillLoad(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1,this.calculatePageTake(),o(this),this.refresh()}componentDidLoad(){this.firstRenderDone=!0}componentWillRender(){0!==this.internalSectionIndex&&this.internalSectionIndex!==this.totalPages&&this.calculatePageTake()}componentDidRender(){this.firstRenderDone&&!this.processedPageLinks&&this.setFocus()}connectedCallback(){this.mq=matchMedia("none"===this.compactBreakpoint?"all":x[this.compactBreakpoint]),this.mq.addEventListener("change",h(this.handleMediaQueryChange,50)),this.handleMediaQueryChange(this.mq),v(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})}disconnectedCallback(){this.mq.removeEventListener("change",this.handleMediaQueryChange),this.mq=null,this.matchesCompactBreakpoint=!1,k(this)}async refresh(){this.processedPageLinks=y(this.pageLinks)}calculatePageTake(){this.totalPages=Math.ceil(this.total/this.take)}async onMouseHandler(t,i){this.disabled||(this.processedPageLinks||(t.preventDefault(),t.stopPropagation(),this.current=this.current+i),this.emitPageEvent(t))}async onKeyboardDown(t){if(this.disabled)return;let i=this.current;(c(t)||p(t))&&i--,(u(t)||b(t))&&i++,l(t)&&i<=this.totalPages&&(this.current=i,this.processedPageLinks?(this.emitPageEvent(t,i-1),window.open(this.processedPageLinks[i-1],"_self","")):this.emitPageEvent(t)),d(t)&&this.shouldDisplayNavigation()&&(this.numbersStore=this.numbersStore+t.key,Number(this.numbersStore)>this.totalPages&&(this.numbersStore=this.totalPages+""),this.getEnteredNumber(t))}async setFocus(){const t=this.nativeNav.querySelector(`[data-id='${this.current}']`);t&&await t.setFocus()}pageClickHandler(t){const i=Number(t.target.getAttribute("data-id"));this.processedPageLinks||(t.preventDefault(),this.current=i),this.emitPageEvent(t,i)}selectClickHandler(t){t.preventDefault();const i=Number(t.target.value);this.current=i,this.processedPageLinks?(this.emitPageEvent(t,i-1),window.open(this.processedPageLinks[i-1],"_self","")):this.emitPageEvent(t,i)}sectionClickHandler(t,i){t.preventDefault();let e=this.internalSectionIndex+i;e*(this.take*this.visibleItems)>this.total&&(e=this.internalSectionIndex),this.internalSectionIndex=e>=0?e:0}jumpToStart(t){this.processedPageLinks||(t.preventDefault(),this.internalSectionIndex=0,this.current=1),this.emitPageEvent(t)}jumpToEnd(t){this.processedPageLinks||(t.preventDefault(),this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1),this.current=this.totalPages),this.emitPageEvent(t)}renderPageButton(t){return e("duet-button",{disabled:this.disabled,class:{"duet-pagination-link":!0},id:`page-${t}-button`,color:t!==this.current?"turva"!==this.theme?"secondary":"secondary-turva":"turva"!==this.theme?"primary":"primary-turva","data-id":t,"center-text":!0,variation:"plain",margin:"none",accessibleLabel:`${this.accessibleLabels.go_to} ${t}`,onClick:t=>this.pageClickHandler(t),theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[t-1]:void 0},e("div",{class:"duet-pagination-page-number","aria-hidden":!0},t))}renderPageNumbers(){const t=[];let i=this.internalSectionIndex*this.visibleItems;do{if(i++,i>this.totalPages)break;t.push(e("li",{class:{"duet-pagination-item":!0,"duet-pagination-item-is-active":i===this.current},role:"menuitem"},this.renderPageButton(i)))}while(i<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t}renderSelect(){const t=[];for(let i=1;i<=this.totalPages;i++)t.push({value:i.toString(),label:i.toString()});const i=e("duet-select",{disabled:this.disabled,theme:this.theme,class:"duet-pagination-select",variation:"compact",items:JSON.stringify(t),value:this.current.toString(),label:this.accessibleLabels.select_label.replace("{0}",`${this.totalPages}`),labelHidden:!0,onDuetChange:t=>this.selectClickHandler(t)});return e("li",null,i,e("span",{class:"duet-pagination-total-pages","aria-hidden":"true"},"/ ",this.totalPages))}shouldDisplayNavigation(){return!("compact"===this.variation||this.matchesCompactBreakpoint||2*this.visibleItems>this.total/this.take)}render(){return e(s,{key:"238ac01f83f3e796534c0ef17857631a329f6a42",onKeyDown:t=>this.onKeyboardDown(t),class:{"duet-theme-turva":"turva"===this.theme}},e("nav",{key:"2db66f288ef50d588016e131d548b22a77f99dd6",role:"navigation","aria-labelledby":this.accessibleLabelledBy?`${this.accessibleLabelledBy} ${this.listId}`:this.listId,"aria-describedby":this.accessibleDescribedBy?`${this.accessibleDescribedBy} ${this.listId}`:this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:t=>this.nativeNav=t,"aria-controls":this.ariaControls,class:{"duet-pagination-nav":!0,[`duet-pagination-variation-${this.variation}`]:!0}},""!==this.numbersStore&&e("div",{key:"4c03feef0a35eaa9ec13e5c3d5103ae1facbd832","aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":`${this.accessibleLabels.jump_to} ${this.numbersStore}`,part:"navigation-overlay"},e("duet-badge",{key:"6ac1a80080fe006f2c576999b9ef0718c6339a04",theme:this.theme},"jump to page : ",this.numbersStore)),e("ol",{key:"0ebf21ab341811673ea978e22a085cba7eaaf75c",id:this.listId,class:{"duet-pagination":!0,"duet-pagination-is-dimmed":""!==this.numbersStore},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},("compact"===this.variation||this.matchesCompactBreakpoint)&&e("li",{key:"63a2904ccc7d0c008332625069c9083610c471ab",class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"fd709f59213de7f819c05b997b84d8ed39ec4566",disabled:0===this.internalSectionIndex&&this.current<=1||this.disabled,"data-direction":"back",accessibleLabel:this.accessibleLabels.first_page,title:this.accessibleLabels.first_page,onClick:t=>this.jumpToStart(t),"icon-name":"action-move-to-first",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:void 0})),e("li",{key:"7000cadb2b9214ac7e460fc9df1893017243aba5",class:{"duet-pagination-page-button":!0,"duet-pagination-button-first":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"a1fbc90286ef69e26c2050f5dd1e77cfd5f8496d",disabled:!!(0===this.internalSectionIndex&&this.current<=1||this.current<=1&&this.processedPageLinks||this.disabled),"data-direction":"back",onClick:t=>this.onMouseHandler(t,-1),"accessible-label":this.accessibleLabels.previous_page,title:this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current-2]:void 0})),0!==this.internalSectionIndex&&this.shouldDisplayNavigation()&&e(a,{key:"6c3b28e93bf637ceeb7c58fc743f381ef1db509c"},e("li",{key:"33f0f34c511b50fd228ea44bf6f4feb408ede264",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{key:"746eb995e69baaf75b731923c1827a995fc2cc3a",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:"turva"!==this.theme?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:t=>this.jumpToStart(t),theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:void 0},e("div",{key:"067f6fb84943bf3f448f0474041ae821871fb8a2",class:"duet-pagination-page-number"},"1"))),e("li",{key:"d8a1df197cee21fe581338838587bbdb8800d874",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{key:"464fc5efe12433ea2ba6d3c287ecb5e2110626d8",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,-1),theme:this.theme},e("div",{key:"0c6467cfe44e34a16fcb222040ad894f4733a799",class:"duet-pagination-page-number","aria-hidden":"true"},"…")))),this.shouldDisplayNavigation()&&this.renderPageNumbers()||this.renderSelect(),(this.internalSectionIndex+1)*this.visibleItems<this.totalPages&&this.shouldDisplayNavigation()&&e(a,{key:"0bc436817f1dcb0fddc29e58e55b41b0829969ed"},(this.internalSectionIndex+1)*this.visibleItems!=this.totalPages-1&&e("li",{key:"acaac82b2aa83002ea653aa9cad50488124405ec",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},e("duet-button",{key:"4bb24fe4575b9bd1673a51413d40826be404c6b7",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}",`${this.visibleItems}`),onClick:t=>this.sectionClickHandler(t,1),theme:this.theme},e("div",{key:"e044660e2a3ece57534cdf03382241a986c319a9",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),e("li",{key:"ec2abf76d2fec68bf91289013be139ba4348ed0a",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},e("duet-button",{key:"06dec4fc55486effcff9f16fe9118e4e920edd66",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:"turva"!==this.theme?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:t=>this.jumpToEnd(t),theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.processedPageLinks.length-1]:void 0},e("div",{key:"d92331de76576b275c1189fce2634abf12f49eb7",class:"duet-pagination-page-number"},this.totalPages)))),e("li",{key:"ba8c5fa8c6a228e7585c1d6bd0a913b92174b7dd",class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"fb7c84dfeda7e02cd891269391b07cefaaa1a4e4",disabled:!!(this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.current===this.totalPages&&this.processedPageLinks)||this.disabled,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,title:this.accessibleLabels.next_page,onClick:t=>this.onMouseHandler(t,1),"icon-name":"action-move-to-next",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current]:void 0})),("compact"===this.variation||this.matchesCompactBreakpoint)&&e("li",{key:"45f6d91ce4a38bc672c600b11ce700a383154d0b",class:{"duet-pagination-page-button":!0,"duet-pagination-button-last":!0},role:"menuitem",part:"navigation-arrow"},e("duet-action-button",{key:"0168ec664180f13c8ed94f258cc24277c46daa32",disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1||this.disabled,accessibleLabel:this.accessibleLabels.last_page,title:this.accessibleLabels.last_page,onClick:t=>this.jumpToEnd(t),"icon-name":"action-move-to-last",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.totalPages-1]:void 0})))))}get element(){return n(this)}static get watchers(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"],pageLinks:["refresh"]}}};S.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;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}.duet-pagination .duet-pagination-select{margin:0 4px 0 12px !important}.duet-pagination-total-pages{margin:0;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;color:rgb(0, 41, 77);text-align:left}:host(.duet-theme-turva) .duet-pagination-total-pages{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}';const _=class{constructor(e){t(this,e),this.duetRangeStepUpdate=i(this,"duetRangeStepUpdate",7),this.leftBn=r("duetRangeStepper-left"),this.rightBn=r("duetRangeStepper-right"),this.handleClick=(t,i)=>{t.preventDefault(),this.stepIndex+=i,this.clampStepIndex(),this.handleStepClick(t)},this.buttonLeftDisabled=!1,this.buttonRightDisabled=!1,this.theme="",this.disabled=!1,this.stepIndex=1,this.stepSize=50,this.total=1e3,this.ariaLabelsDefaults={en:{next_increment:"Next range increment",previous_increment:"Previous range increment",x_of_y:"{0}–{1} of {2}"},fi:{next_increment:"Seuraava välillä",previous_increment:"Edellinen välillä",x_of_y:"{0}–{1} / {2}"},sv:{next_increment:"Nästa intervall",previous_increment:"Föregående intervall",x_of_y:"{0}–{1} av {2}"}},this.ariaLabels=f(this.ariaLabelsDefaults),this.ariaControls=""}watchStepIndexStateHandler(t){this.leftBnRef&&this.rightBnRef&&(t<=1?(this.element===document.activeElement&&this.rightBnRef.setFocus(),this.buttonLeftDisabled=!0):this.buttonLeftDisabled=!1,t>=this.total/this.stepSize?(this.element===document.activeElement&&this.leftBnRef.setFocus(),this.buttonRightDisabled=!0):this.buttonRightDisabled=!1)}watchStepSizeStateHandler(t,i){t!==i&&(this.stepIndex*t>this.total&&(this.stepIndex=Math.ceil(this.total/t)),this.watchStepIndexStateHandler(this.stepIndex))}handleStepClick(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})}componentWillLoad(){o(this),this.clampStepIndex()}componentDidLoad(){this.watchStepIndexStateHandler(this.stepIndex)}connectedCallback(){v(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})}disconnectedCallback(){k(this)}clampStepIndex(){this.stepIndex<1?this.stepIndex=1:this.stepIndex*this.stepSize>this.total&&(this.stepIndex=Math.ceil(this.total/this.stepSize))}getFrom(){return Math.floor((this.stepIndex-1)*this.stepSize)+1}getTo(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)}generateStepSize(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))}generatePreviousIncrementLabel(){return 1===this.getFrom()?"":this.ariaLabels.x_of_y.replace("{0}",String(Math.max(this.getFrom()-this.stepSize,1))).replace("{1}",String(Math.min(this.getFrom()-1,this.total))).replace("{2}",String(this.total))}generateNextIncrementLabel(){return this.getTo()===this.total?"":this.ariaLabels.x_of_y.replace("{0}",String(this.getTo()+1)).replace("{1}",String(Math.min(this.getTo()+this.stepSize,this.total))).replace("{2}",String(this.total))}async onKeyboardDown(t){if(this.disabled)return;let i=this.stepIndex,e=1;(c(t)||p(t)||g(t))&&(i--,e=-1,this.leftBnRef.setFocus()),(u(t)||b(t)||m(t))&&(i++,e=1),l(t)&&i>0&&i*this.stepSize<=this.total&&this.handleClick(t,e)}render(){return e("div",{key:"445012532d2a6b852f7d08b13eb99611532fe3d3",class:{"duet-range-stepper":!0,"duet-theme-turva":"turva"===this.theme},onKeyDown:t=>this.onKeyboardDown(t),"aria-controls":this.ariaControls},e("span",{key:"1f5877f95b12a10e3abf60bd7e27af705738bca6",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),e("duet-action-button",{key:"586bd002d9344e99cf366a49e5d2144ac06e66fe",disabled:this.disabled||this.buttonLeftDisabled,class:"duet-range-step-button duet-range-step-minus",onClick:t=>this.handleClick(t,-1),id:this.leftBn,"accessible-label":`${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`,ref:t=>this.leftBnRef=t,part:"navigation-arrow",iconName:"action-arrow-left-small",title:""}),e("duet-action-button",{key:"96fff336833646be477a30c639d8674b27f168d1",disabled:this.disabled||this.buttonRightDisabled,class:"duet-range-step-button duet-range-step-plus",onClick:t=>this.handleClick(t,1),"accessible-label":`${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`,id:this.rightBn,ref:t=>this.rightBnRef=t,part:"navigation-arrow",iconName:"action-arrow-right-small",title:""}))}get element(){return n(this)}static get watchers(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}}};_.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;display:inline-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(0, 41, 77)}.duet-range-stepper ::part(button){border:0}";export{S as duet_pagination,_ as duet_range_stepper}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- const r="rgb(178, 180, 179)",o="rgb(207, 210, 212)",a="rgb(255, 255, 255)",e="rgb(207, 207, 209)",l="rgb(0, 119, 179)",g="rgb(198, 12, 48)",c="'(min-width: 62em)'",i="'(min-width: 48em)'",b="'(min-width: 36em)'",t="'(min-width: 64.0625em)'",s="'(max-width: 35.9375em)'",n="'(min-width: 76.25em)'",u="'(max-width: 22.5em)'",p="'(min-width: 106.25em)'",x="'(max-width: 20.5em)'",m="4rem",d="3rem",y=Object.freeze({__proto__:null,colorBrandBlue:"rgb(0, 161, 212)",colorBrandGrayTurva:r,colorCategoryFamily:"rgb(11, 114, 136)",colorCategoryFamilyTurva:"rgb(199, 12, 112)",colorCategoryFinance:"rgb(122, 1, 196)",colorCategoryHome:"rgb(211, 36, 131)",colorCategoryHomeTurva:"rgb(161, 10, 78)",colorCategoryPet:"rgb(168, 1, 78)",colorCategoryTravel:"rgb(213, 66, 3)",colorCategoryTravelTurva:"rgb(9, 129, 148)",colorCategoryUnionTurva:"rgb(169, 69, 124)",colorCategoryVehicle:"rgb(54, 74, 129)",colorCategoryVehicleTurva:"rgb(23, 28, 58)",colorDanger:"rgb(222, 35, 98)",colorDanger00:"rgb(255, 240, 243)",colorDanger100:"rgb(255, 211, 219)",colorDanger1000:"rgb(89, 0, 45)",colorDanger200:"rgb(255, 173, 190)",colorDanger300:"rgb(252, 136, 162)",colorDanger400:"rgb(243, 98, 134)",colorDanger50:"rgb(255, 225, 231)",colorDanger500:"rgb(231, 62, 107)",colorDanger600:"rgb(214, 28, 82)",colorDanger700:"rgb(185, 16, 74)",colorDanger800:"rgb(153, 9, 66)",colorDanger900:"rgb(120, 4, 56)",colorDangerTurva:"rgb(224, 42, 13)",colorData01:"rgb(122, 1, 196)",colorData02:"rgb(0, 155, 204)",colorData03:"rgb(27, 171, 75)",colorData04:"rgb(255, 86, 34)",colorData05:"rgb(245, 76, 154)",colorData06:"rgb(194, 21, 101)",colorData07:"rgb(192, 101, 247)",colorData08:"rgb(0, 105, 191)",colorData09:"rgb(19, 120, 53)",colorData10:"rgb(179, 60, 24)",colorData11:"rgb(13, 163, 166)",colorData12:"rgb(11, 114, 136)",colorData13:"rgb(179, 137, 24)",colorData14:"rgb(128, 98, 17)",colorData15:"rgb(0, 41, 77)",colorGray:o,colorGrayDark:"rgb(144, 149, 153)",colorGrayDarkTurva:"rgb(116, 116, 117)",colorGrayDarker:"rgb(101, 119, 135)",colorGrayDarkerTurva:"rgb(68, 68, 69)",colorGrayLight:"rgb(225, 227, 230)",colorGrayLightTurva:"rgb(228, 228, 230)",colorGrayLighter:"rgb(245, 248, 250)",colorGrayLighterTurva:"rgb(245, 245, 247)",colorGrayLightest:a,colorGrayLightestTurva:"rgb(255, 255, 255)",colorGrayTurva:e,colorLtBlue00:"rgb(240, 247, 250)",colorLtBlue100:"rgb(217, 236, 245)",colorLtBlue1000:"rgb(8, 42, 77)",colorLtBlue200:"rgb(198, 225, 238)",colorLtBlue300:"rgb(172, 210, 229)",colorLtBlue400:"rgb(131, 188, 217)",colorLtBlue50:"rgb(228, 241, 247)",colorLtBlue500:"rgb(50, 153, 204)",colorLtBlue600:"rgb(0, 119, 179)",colorLtBlue700:"rgb(0, 97, 155)",colorLtBlue800:"rgb(0, 75, 129)",colorLtBlue900:"rgb(3, 56, 102)",colorLtGray00:"rgb(245, 248, 250)",colorLtGray100:"rgb(212, 223, 229)",colorLtGray1000:"rgb(17, 28, 38)",colorLtGray200:"rgb(181, 198, 208)",colorLtGray300:"rgb(153, 174, 186)",colorLtGray400:"rgb(127, 150, 165)",colorLtGray50:"rgb(228, 236, 239)",colorLtGray500:"rgb(98, 121, 138)",colorLtGray600:"rgb(81, 105, 123)",colorLtGray700:"rgb(62, 84, 102)",colorLtGray800:"rgb(45, 64, 81)",colorLtGray900:"rgb(30, 45, 59)",colorPrimary:l,colorPrimaryDark:"rgb(0, 77, 128)",colorPrimaryDarkTurva:"rgb(148, 9, 37)",colorPrimaryDarker:"rgb(0, 98, 154)",colorPrimaryDarkerTurva:"rgb(173, 11, 43)",colorPrimaryLight:"rgb(205, 229, 241)",colorPrimaryLightTurva:"rgb(244, 207, 214)",colorPrimaryLighter:"rgb(230, 242, 248)",colorPrimaryLighterTurva:"rgb(249, 230, 234)",colorPrimaryLightest:"rgb(243, 249, 252)",colorPrimaryLightestTurva:"rgb(252, 243, 244)",colorPrimaryTurva:g,colorSecondary:"rgb(0, 41, 77)",colorSecondaryTurva:"rgb(23, 28, 58)",colorSuccess:"rgb(0, 135, 90)",colorSuccess00:"rgb(244, 250, 247)",colorSuccess100:"rgb(218, 246, 233)",colorSuccess1000:"rgb(4, 38, 33)",colorSuccess200:"rgb(191, 239, 218)",colorSuccess300:"rgb(163, 229, 202)",colorSuccess400:"rgb(134, 215, 185)",colorSuccess50:"rgb(231, 248, 239)",colorSuccess500:"rgb(105, 196, 166)",colorSuccess600:"rgb(77, 171, 143)",colorSuccess700:"rgb(48, 131, 105)",colorSuccess800:"rgb(29, 106, 88)",colorSuccess900:"rgb(13, 71, 59)",colorSuccessTurva:"rgb(8, 135, 78)",colorTurvaGray00:"rgb(245, 247, 250)",colorTurvaGray100:"rgb(222, 224, 228)",colorTurvaGray1000:"rgb(8, 13, 38)",colorTurvaGray200:"rgb(199, 202, 207)",colorTurvaGray300:"rgb(175, 178, 186)",colorTurvaGray400:"rgb(143, 147, 158)",colorTurvaGray50:"rgb(234, 235, 239)",colorTurvaGray500:"rgb(113, 118, 132)",colorTurvaGray600:"rgb(98, 104, 122)",colorTurvaGray700:"rgb(71, 78, 101)",colorTurvaGray800:"rgb(45, 52, 79)",colorTurvaGray900:"rgb(23, 28, 58)",colorTurvaRed00:"rgb(255, 241, 241)",colorTurvaRed100:"rgb(255, 213, 215)",colorTurvaRed1000:"rgb(51, 5, 20)",colorTurvaRed200:"rgb(255, 185, 190)",colorTurvaRed300:"rgb(252, 148, 158)",colorTurvaRed400:"rgb(240, 102, 119)",colorTurvaRed50:"rgb(255, 227, 228)",colorTurvaRed500:"rgb(221, 49, 77)",colorTurvaRed600:"rgb(198, 12, 48)",colorTurvaRed700:"rgb(164, 4, 40)",colorTurvaRed800:"rgb(126, 2, 35)",colorTurvaRed900:"rgb(87, 4, 29)",colorWarning:"rgb(247, 178, 40)",colorWarning00:"rgb(255, 251, 242)",colorWarning100:"rgb(255, 244, 198)",colorWarning1000:"rgb(38, 26, 4)",colorWarning200:"rgb(255, 232, 160)",colorWarning300:"rgb(255, 217, 120)",colorWarning400:"rgb(255, 199, 79)",colorWarning50:"rgb(255, 247, 221)",colorWarning500:"rgb(247, 178, 40)",colorWarning600:"rgb(212, 151, 32)",colorWarning700:"rgb(156, 110, 22)",colorWarning800:"rgb(126, 87, 16)",colorWarning900:"rgb(81, 55, 9)",colorWarningTurva:"rgb(250, 164, 15)",fontFamilyHeading:"'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyHeadingTurva:"'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyText:"'localtapiola-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontFamilyTextTurva:"'turva-sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",fontSizeLarge:"1.25rem",fontSizeMedium:"1rem",fontSizeSmall:"0.875rem",fontSizeXLarge:"1.5rem",fontSizeXSmall:"0.75rem",fontSizeXxLarge:"2.25rem",fontSizeXxxLarge:"3rem",fontSizeXxxxLarge:"4.5rem",fontWeightBold:"700",fontWeightExtraBold:"800",fontWeightNormal:"400",fontWeightSemiBold:"600",letterSpacingHeading:"-0.01rem",lineHeightMedium:"1.5",lineHeightSmall:"1.25",lineHeightXSmall:"1.1",mediaQueryLarge:c,mediaQueryMedium:i,mediaQuerySmall:b,mediaQueryXLarge:t,mediaQueryXSmall:s,mediaQueryXxLarge:n,mediaQueryXxSmall:u,mediaQueryXxxLarge:p,mediaQueryXxxSmall:x,opacity30:"0.30",opacity50:"0.50",opacity75:"0.75",opacity85:"0.85",radiusCircle:"50%",radiusDefault:"4px",radiusIntermediate:"12px",radiusLarge:"16px",radiusMedium:"8px",radiusPill:"20rem",radiusSharp:"0",shadowCard:"0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)",shadowCardTurva:"0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07)",shadowDefault:"0 2px 6px 0 rgba(0, 41, 77, 0.07)",shadowDefaultTurva:"0 2px 6px 0 rgba(117, 117, 117, 0.13)",shadowError:"0 0 0 1px #de2362",shadowErrorTurva:"0 0 0 1px #e55039",shadowFocus:"0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3",shadowFocusInput:"0 0 0 1px #0077b3",shadowFocusInputTurva:"0 0 0 1px #171c3a",shadowFocusTurva:"0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a",shadowHover:"0 2px 10px 0 rgba(0, 41, 77, 0.1)",shadowHoverInput:"0 0 0 1px #909599",shadowHoverInputTurva:"0 0 0 1px #747475",shadowHoverTurva:"0 2px 10px 0 rgba(117, 117, 117, 0.15)",shadowModal:"0 2px 20px 0 rgba(0, 0, 0, 0.2)",shadowTooltip:"0 2px 10px 0 rgba(0, 41, 77, 0.07)",shadowTooltipTurva:"0 2px 10px 0 rgba(117, 117, 117, 0.13)",sizeButtonBorder:"1px",sizeButtonMinWidth:"8rem",sizeButtonTinyBorder:"1px",sizeFormBorder:"1px",sizeHeader:m,sizeIconLarge:"30px",sizeIconMedium:"24px",sizeIconSmall:"20px",sizeIconXLarge:"36px",sizeIconXSmall:"16px",sizeIconXxLarge:"48px",sizeIconXxSmall:"10px",sizeIconXxxLarge:"72px",sizeIconXxxSmall:"7px",sizeLayoutMaxWidth:"1110px",sizeMediumBorder:"2px",sizeNavigation:d,sizeStepMedium:"40px",sizeStepSmall:"30px",sizeTappableSquare:"48px",spaceLarge:"20px",spaceMedium:"16px",spaceSmall:"12px",spaceXLarge:"28px",spaceXSmall:"8px",spaceXxLarge:"36px",spaceXxSmall:"4px",spaceXxxLarge:"48px",spaceXxxSmall:"2px",spaceXxxxLarge:"72px",spaceXxxxxLarge:"94px",transitionQuickly:"300ms ease",transitionSlowly:"600ms ease",zIndexDeep:"-999999",zIndexDefault:"1",zIndexDropdown:"600",zIndexHeader:"400",zIndexMask:"200",zIndexMaskButtons:"250",zIndexMasked:"100",zIndexModal:"900",zIndexOverlay:"700",zIndexPopup:"950",zIndexSpinner:"800",zIndexSticky:"300",zIndexToast:"500"});export{s as a,b,i as c,c as d,t as e,n as f,p as g,x as h,g as i,e as j,l as k,o as l,u as m,a as n,r as o,d as p,m as s,y as t}
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{s(i.next(e))}catch(e){a(e)}}function u(e){try{s(i["throw"](e))}catch(e){a(e)}}function s(e){e.done?n(e.value):r(e.value).then(o,u)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(u){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(i=1,r&&(a=u[0]&2?r["return"]:u[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;if(r=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;r=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];r=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-d3101c8a.system.js","./p-e216bea4.system.js","./p-34d7dd10.system.js"],(function(e){"use strict";var t,n,i,r,a,o;return{setters:[function(e){t=e.r;n=e.h;i=e.H;r=e.g},function(e){a=e.i},function(e){o=e.f}],execute:function(){var u='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-item{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;height:100%;padding:12px 1.5rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:600;line-height:1.25;color:rgb(0, 77, 128);text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer}.duet-submenu-bar-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-submenu-bar-item:focus,.duet-submenu-bar-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-item .label{display:flex;gap:5px;align-items:center;justify-content:center}.duet-submenu-bar-item .leading-icon,.duet-submenu-bar-item .trailing-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-item .leading-icon,.duet-submenu-bar-item .trailing-icon{width:16px;height:16px}}.duet-submenu-bar-item .trailing-icon.trailing-icon-arrow{width:7px;height:7px}.duet-submenu-bar-item .trailing-icon{position:absolute;right:12px}.duet-submenu-bar-item[aria-expanded=true]{background:rgb(230, 242, 248)}.duet-submenu-bar-item[aria-expanded=true] .trailing-icon.rotate{transform:rotate(180deg)}.duet-submenu-bar-item.active{color:rgb(0, 119, 179)}.duet-submenu-bar-item.active.duet-theme-turva{color:rgb(148, 9, 37)}.duet-submenu-bar-item.active::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-submenu-bar-item.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-submenu-bar-item.duet-theme-turva.active .label::after{background:rgb(148, 9, 37)}.duet-submenu-bar-item.duet-theme-turva.active::after{background:rgb(148, 9, 37)}.duet-submenu-bar-item:hover{color:rgb(0, 41, 77);background:rgb(230, 242, 248)}.duet-submenu-bar-item:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(228, 228, 230)}.duet-submenu-bar-item:hover.duet-theme-turva.active{color:rgb(148, 9, 37)}';var s=u;var c=e("duet_submenu_bar_item",function(){function e(e){t(this,e);this.theme="";this.active=false;this.url=undefined;this.leadingIcon=undefined;this.trailingIcon=undefined;this.accessibleLabel=undefined;this.accessibleExpanded=undefined;this.accessiblePopup="false"}e.prototype.componentWillLoad=function(){a(this)};e.prototype.handleEscape=function(e){if(o(e)){var t=this.element.closest("duet-submenu-bar");t.open=false;t.setFocus()}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){setTimeout((function(){return t.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";var r=this.url?"link":"button";return n(i,{key:"0e1724544b134f6de86d56dd739a9635f337e717",role:"listitem"},n(t,{key:"6f04e57ea3e9bf27a1967283e2375a281d675529",ref:function(t){return e.itemElement=t},class:{"duet-submenu-bar-item":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.url,onKeyUp:function(t){return e.handleEscape(t)},"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel,"aria-expanded":this.accessibleExpanded!=null?this.accessibleExpanded.toString():undefined,"aria-haspopup":this.accessiblePopup!=null?this.accessiblePopup.toString():undefined,role:r},this.leadingIcon&&n("duet-icon",{key:"e1b98f949d70182538731d1d7f07bd961fd79836",class:"leading-icon",theme:this.theme,name:this.leadingIcon,size:"auto",margin:"none",color:"currentColor"}),n("div",{key:"af220f398f6bdc969c4de91c5bdf03cb814631f0",class:"label"},n("span",{key:"6b376bcca90ac606bd44f4dc04026d8eda710004",class:"label-text"},n("slot",{key:"cec40ee0c2ca47ee02e3b0ede33d41d8a0e6d797"})),this.trailingIcon&&n("duet-icon",{key:"243fd913a9c6d73489e2d1bcfa60566fa72bfcf6",class:{"trailing-icon":true,"trailing-icon-arrow":this.trailingIcon==="action-arrow-down-small",rotate:this.trailingIcon==="action-arrow-down-small"&&this.accessibleExpanded},theme:this.theme,name:this.trailingIcon,margin:"none",size:"auto",color:"currentColor"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());c.style=s}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- System.register(["./p-d3101c8a.system.js","./p-e216bea4.system.js"],(function(e){"use strict";var t,r,a,o,n;return{setters:[function(e){t=e.r;r=e.h;a=e.H;o=e.g},function(e){n=e.i}],execute:function(){var d='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:4px !important;margin-bottom:2px !important;display:inline-block;width:auto;vertical-align:middle}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-badge{display:inline-block;width:100%;padding:4.4444444444px 12px 5.4444444444px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.75rem;font-style:normal;font-weight:600;line-height:1.25;color:rgb(0, 41, 77);text-align:center;word-break:break-word;vertical-align:middle;background:#d9ebf4;border-radius:20rem}.duet-badge.duet-p-0{padding:0 !important}.duet-badge.duet-m-0{margin:0 !important}.duet-badge.duet-theme-turva{padding:5.4444444444px 12px 4.4444444444px;font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-badge.warning{background:#fdecc9}.duet-badge.warning.duet-theme-turva{background:#fee8c3}.duet-badge.danger{background:#f8d3e0}.duet-badge.danger.duet-theme-turva{background:#f9d4cf}.duet-badge.success{background:#cce7de}.duet-badge.success.duet-theme-turva{background:#cee7dc}.duet-badge.subtle{color:rgb(101, 119, 135);background:none;outline:1px solid rgb(225, 227, 230);outline-offset:-1px}.duet-badge.subtle.duet-theme-turva{color:rgb(68, 68, 69);background:none;outline-color:rgb(228, 228, 230)}.duet-badge.background-strong.default{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-badge.background-strong.default.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(23, 28, 58)}.duet-badge.background-strong.warning{background:#f9c153}.duet-badge.background-strong.warning.duet-theme-turva{background:#fbb63f}.duet-badge.background-strong.danger{color:rgb(255, 255, 255);background:rgb(222, 35, 98)}.duet-badge.background-strong.danger.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(224, 42, 13)}.duet-badge.background-strong.success{color:rgb(255, 255, 255);background:rgb(0, 135, 90)}.duet-badge.background-strong.success.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(8, 135, 78)}.duet-badge.background-strong.subtle{border-color:rgb(207, 210, 212);outline-color:rgb(0, 41, 77)}.duet-badge.background-strong.subtle.duet-theme-turva{border-color:rgb(207, 207, 209);outline-color:rgb(23, 28, 58)}';var g=d;var u=e("duet_badge",function(){function e(e){t(this,e);this.theme="";this.variation="default";this.background="normal";this.margin="auto"}e.prototype.componentWillLoad=function(){n(this)};e.prototype.render=function(){var e;var t="background-".concat(this.background);return r(a,{key:"a98ddf68ce6e0d104c642e48a2d5d6d5660498f4",class:{"duet-m-0":this.margin==="none"}},r("span",{key:"aa121dca4645858c43d9d81bc29ec710723a026f",class:(e={"duet-badge":true},e[this.variation]=true,e[t]=true,e["duet-theme-turva"]=this.theme==="turva",e)},r("slot",{key:"9baaff220b3bfaca21de1951ecc81fa1dde17c03"})))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());u.style=g}}}));
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,r,i){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function o(e){try{s(i.next(e))}catch(e){n(e)}}function d(e){try{s(i["throw"](e))}catch(e){n(e)}}function s(e){e.done?r(e.value):a(e.value).then(o,d)}s((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,o;return o={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function d(e){return function(t){return s([e,t])}}function s(d){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,d[0]&&(r=0)),r)try{if(i=1,a&&(n=d[0]&2?a["return"]:d[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,d[1])).done)return n;if(a=0,n)d=[d[0]&2,n.value];switch(d[0]){case 0:case 1:n=d;break;case 4:r.label++;return{value:d[1],done:false};case 5:r.label++;a=d[1];d=[0];continue;case 7:d=r.ops.pop();r.trys.pop();continue;default:if(!(n=r.trys,n=n.length>0&&n[n.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!n||d[1]>n[0]&&d[1]<n[3])){r.label=d[1];break}if(d[0]===6&&r.label<n[1]){r.label=n[1];n=d;break}if(n&&r.label<n[2]){r.label=n[2];r.ops.push(d);break}if(n[2])r.ops.pop();r.trys.pop();continue}d=t.call(e,r)}catch(e){d=[6,e];a=0}finally{i=n=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-d3101c8a.system.js","./p-e216bea4.system.js","./p-34d7dd10.system.js","./p-0fee15c1.system.js","./p-0c4bbd65.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,r,i,a,n,o,d,s,u,c,l;return{setters:[function(e){t=e.r;r=e.h;i=e.g},function(e){a=e.i},function(e){n=e.s;o=e.u},function(e){d=e.a;s=e.g;u=e.c;c=e.d},function(e){l=e.a},function(){}],execute:function(){var b="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-notification{display:block;padding:16px;color:rgb(0, 41, 77);cursor:pointer;border-bottom:1px solid rgb(225, 227, 230);transition:300ms ease}:host(:last-of-type) .duet-notification{border-bottom:0}.duet-notification.duet-theme-turva{color:rgb(23, 28, 58);border-bottom-color:rgb(228, 228, 230)}.duet-notification.duet-notification-highlight{font-weight:600;background:rgb(243, 249, 252)}.duet-notification.duet-notification-highlight.duet-theme-turva{background:rgb(245, 245, 247)}@media (min-width: 62em){.duet-notification:hover{background:rgb(243, 249, 252)}.duet-notification:hover.duet-theme-turva{background:rgb(245, 245, 247)}}.duet-notification a{text-decoration:none}.duet-notification a:focus{outline:0}:host(.user-is-tabbing) .duet-notification:focus-within{z-index:1;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-notification:focus-within.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-notification-container{position:relative;display:flex}.duet-notification-badge-container{position:relative;width:16px}.duet-notification-badge{position:absolute;top:6px;left:-2px;width:8px;height:8px;background:rgb(0, 119, 179);border-radius:50%}.duet-theme-turva .duet-notification-badge{background:rgb(198, 12, 48)}.duet-notification-content{flex:1}.duet-notification-date{position:absolute;top:2px;right:0;width:96px;font-size:0.75rem;font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:right;text-transform:uppercase}@media (max-width: 35.9375em){.duet-notification-date{width:auto}}.duet-theme-turva .duet-notification-date{color:rgb(68, 68, 69)}::slotted(duet-heading){padding-right:80px !important}::slotted(duet-paragraph){margin-bottom:2px !important}";var h=b;var f=e("duet_notification",function(){function e(e){t(this,e);this.language=d();this.accessibleLabelUnreadDefaults={en:"Unread",fi:"Lukematon",sv:"Oläst"};this.accessibleLabelUnread=s(this.accessibleLabelUnreadDefaults,this.language);this.url="#";this.date="";this.highlight=false;this.external=false;this.theme=""}e.prototype.componentWillLoad=function(){a(this)};e.prototype.connectedCallback=function(){u(this,{prop:"accessibleLabelUnread",defaults:"accessibleLabelUnreadDefaults"});n(this)};e.prototype.disconnectedCallback=function(){c(this);o(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.linkElement.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",{key:"7c7b69217ccc0410e4d2a3b33b241e0657a502d3",role:"listitem",class:{"duet-notification":true,"duet-notification-highlight":this.highlight,"duet-theme-turva":this.theme==="turva"}},r("a",{key:"cdf2aa9efddcb0471a0a967feb2534a3c37a93c4",ref:function(t){return e.linkElement=t},href:this.url,target:this.external?"_blank":"_self"},r("div",{key:"668b15b89a94d14dc95f763e71db811832aa8df9",class:"duet-notification-container"},r("div",{key:"ed6d05d93c06e30bd35b5d0c8e00ea310b6d20a1",class:"duet-notification-badge-container"},this.highlight&&r("div",{key:"28834605820009251e38ab8fc51f6cb91161ada6",class:"duet-notification-badge"},r("duet-visually-hidden",{key:"613ae447d1252abb249ab19e2f08196f86c1a55c"},this.accessibleLabelUnread,":"))),r("div",{key:"dece54d84ef9cb9306bff4932a0373d14fc67bf0",class:"duet-notification-content"},r("slot",{key:"43d66402c4b87e0bc492e56178fd59b57fb2410e"})),r("div",{key:"04a0d2f31316d13ea68ee2b6de3d26f128c63113",class:"duet-notification-date"},this.date))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());f.style=h;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;display:block;width:100%}.duet-drawer{position:relative}@media (min-width: 62em){.duet-drawer{display:inline-block}}.duet-drawer-toggle{position:relative;display:flex;align-items:center;width:100%;height:48px;padding:0 20px;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:48px;color:rgb(0, 41, 77);text-align:left;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(225, 227, 230);border-radius:0;-webkit-appearance:none;appearance:none}@media (min-width: 62em){.duet-drawer-toggle{z-index:200;width:auto;max-width:200px;padding:0 30px 0 12px;overflow:hidden;font-size:0.875rem;line-height:4rem;border:0;border-radius:4px;transition:border 300ms ease}}.duet-theme-turva .duet-drawer-toggle{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);background-color:rgb(255, 255, 255);border-color:rgb(228, 228, 230)}.duet-drawer-toggle:active{opacity:0.75}.duet-drawer-toggle:focus{outline:0}:host(.user-is-tabbing) .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-theme-turva .duet-drawer-toggle:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-drawer-toggle:hover{color:rgb(0, 77, 128)}.duet-theme-turva .duet-drawer-toggle:hover{color:rgb(68, 68, 69)}.duet-drawer-toggle::after{display:none !important}@media (min-width: 62em){.duet-drawer-toggle::after{position:absolute;top:auto;bottom:0;left:0;display:block !important;width:100%;height:3px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(3px)}.duet-theme-turva .duet-drawer-toggle::after{background:rgb(198, 12, 48)}}.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(0, 77, 128);border-bottom:1px solid rgb(245, 248, 250);border-radius:0}.duet-theme-turva .duet-drawer-toggle[aria-expanded=true],.duet-theme-turva .duet-drawer-toggle[aria-expanded=true]:hover{color:rgb(68, 68, 69);border-color:rgb(245, 245, 247)}@media (min-width: 62em){.duet-drawer-toggle[aria-expanded=true],.duet-drawer-toggle[aria-expanded=true]:hover{border:0}.duet-drawer-toggle[aria-expanded=true]::after,.duet-drawer-toggle[aria-expanded=true]:hover::after{left:0;width:100%;transform:translateY(0)}}.duet-drawer-icon{position:relative;display:inline-flex;min-width:12px;margin-right:12px;font-size:0;line-height:normal;vertical-align:baseline}@media (min-width: 62em){.duet-drawer-icon{margin-right:8px}}.duet-drawer-label{line-height:1}.duet-drawer-caret{position:absolute;top:50%;right:20px;display:flex;width:10px;height:10px;margin-left:8px;line-height:normal;pointer-events:none;transition:300ms ease;transform:translateY(-50%);transform-origin:50% 50%}@media (min-width: 62em){.duet-drawer-caret{right:16px;width:7px;height:7px}}.duet-drawer-caret duet-icon{width:10px}.duet-drawer-toggle[aria-expanded=true] .duet-drawer-caret{transform:translateY(-50%) rotate(180deg)}.duet-drawer-badge{position:absolute;top:0;right:0;display:inline-block;width:6px;height:6px;background:rgb(247, 178, 40);border-radius:50%;box-shadow:0 0 0 1px #c18b1f}.duet-theme-turva .duet-drawer-badge{background:rgb(250, 164, 15)}.duet-drawer-content{display:none;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(225, 227, 230)}.duet-drawer-content:focus{outline:0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255);border-color:rgb(225, 227, 230)}@media (min-width: 62em){.duet-drawer-content{position:absolute;top:100%;z-index:600;display:block;width:450px;max-height:420px;padding-left:0;overflow-y:auto;visibility:hidden;background-color:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;border-top-left-radius:0;border-top-right-radius:0;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:300ms ease;transform:scale(0.95) translateZ(0) translateY(-10px);transform-origin:50% 0;scrollbar-width:none}.duet-drawer-content::-webkit-scrollbar{display:none}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255)}.duet-drawer-content.duet-drawer-left{right:0}.duet-drawer-content.duet-drawer-right{left:0}}.duet-drawer-content.duet-drawer-open{display:block}@media (min-width: 62em){.duet-drawer-content.duet-drawer-open{visibility:visible;opacity:1;transform:scale(1) translateZ(0) translateY(0)}}';var p=g;var m=27;var w=e("duet_notification_drawer",function(){function e(e){var r=this;t(this,e);this.handleKeyDown=function(e){if(r.isOpen&&e.keyCode===m){r.close()}};this.toggleMenu=function(e){e.stopPropagation();r.isOpen?r.close():r.open()};this.updateNotificationState=function(){r.hasNotifications=r.element.children.length>0};this.isOpen=false;this.hasNotifications=undefined;this.icon="";this.label="Label";this.language=d();this.accessibleLabelNotificationsDefaults={en:"No notifications",fi:"Ei ilmoituksia",sv:"Inga notifikationer"};this.accessibleLabelNotifications=s(this.accessibleLabelNotificationsDefaults);this.badge=false;this.theme="";this.direction="left"}e.prototype.componentWillLoad=function(){a(this);this.updateNotificationState()};e.prototype.connectedCallback=function(){this.observer=new MutationObserver(this.updateNotificationState);this.observer.observe(this.element,{childList:true});n(this)};e.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;o(this)};e.prototype.handleClickFocusOutside=function(e){var t=e.target;if(this.isOpen&&!this.element.contains(t)){this.close(false)}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.drawerButtonEl.focus(e);return[2]}))}))};e.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=this.element.closest("duet-header");if(e){e.closeMenus()}this.isOpen=true;this.drawerContentEl.scrollTop=0;return[2]}))}))};e.prototype.close=function(){return __awaiter(this,arguments,void 0,(function(e){if(e===void 0){e=true}return __generator(this,(function(t){this.isOpen=false;if(e){this.setFocus({preventScroll:true})}return[2]}))}))};e.prototype.render=function(){var e=this;return r("div",{key:"9630eb1dc5e08775957ccac9822cb72c129e524b",class:{"duet-drawer":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:this.handleKeyDown},r("button",{key:"8b07b937da50cf3ad1d3dc447fd1ed96402f251d",ref:function(t){return e.drawerButtonEl=t},type:"button",class:"duet-drawer-toggle",id:"duet-drawer-toggle","aria-controls":"duet-drawer-content","aria-expanded":this.isOpen?"true":"false",onClick:this.toggleMenu},this.icon&&r("div",{key:"c11b7256d445ad06da88c8b4f58eec225c1ae7d9",class:"duet-drawer-icon"},r("duet-icon",{key:"dd2f20c37d01b52572bb4928770cb9259b2c6a50",margin:"none",size:"x-small",name:this.icon,color:"currentColor"}),this.badge&&r("div",{key:"d4da99aeb8bf07b4840ac76ce3d0691be3dedcd2",class:"duet-drawer-badge"})),r("span",{key:"47c6df40631ba9b0410acf27f88c229d97d31ec9",class:"duet-drawer-label"},this.label),r("div",{key:"efa2f3f60ae80b313069e37711bbced9d2a850eb",class:"duet-drawer-caret"},r("duet-icon",{key:"22a85823a808bf6bdff1342476ed39ef53bc18f3",margin:"none",size:"auto",icon:l.svg,color:"currentColor"}))),r("div",{key:"31645dd77653b2a31b175a527b3c392580904813",id:"duet-drawer-content",class:{"duet-drawer-content":true,"duet-drawer-right":this.direction==="right","duet-drawer-left":this.direction==="left","duet-drawer-open":this.isOpen},ref:function(t){return e.drawerContentEl=t}},this.hasNotifications?r("div",{role:"list"},r("slot",null)):r("duet-empty-state",{size:"small"},r("duet-paragraph",{size:"small",margin:"none"},this.accessibleLabelNotifications))))};Object.defineProperty(e.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return e}());w.style=p}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,c,h as t,H as i,g as o}from"./p-00f584d4.js";import{i as d}from"./p-aaa7a7bd.js";import{D as h}from"./p-beeb12f1.js";import{c as s}from"./p-5e59e970.js";import{i as r,h as a,s as u,u as n,f as l}from"./p-a1b7f2a0.js";import{g as p,a as b,c as g,d as m}from"./p-5e2f8206.js";import{h as f,c as k}from"./p-8507509a.js";import"./p-9c3c64b9.js";const v=class{constructor(t){e(this,t),this.duetChoiceReady=c(this,"duetChoiceReady",7),this.duetChoiceRemove=c(this,"duetChoiceRemove",7),this.duetChange=c(this,"duetChange",7),this.duetFocus=c(this,"duetFocus",7),this.duetBlur=c(this,"duetBlur",7),this.hasHeader=!1,this.choiceId=s("DuetChoice"),this.expandId=s("DuetChoiceExpand"),this.headerId=s("DuetChoiceHeader"),this.infoButtonId=s("DuetChoiceInfoButton"),this.onMouseEnter=()=>{this.isHovering=!0},this.onMouseLeave=()=>{this.isHovering=!1},this.onClick=e=>{this.toggleChecked(e)},this.handleKeyDown=e=>{r(e)&&this.toggleChecked(e),a(e)&&this.hasInfo&&this.toggleInfo()},this.onChange=()=>{this.checked=this.nativeInput.checked||!1,this.duetChange.emit({checked:this.checked,value:this.value,component:"duet-choice"})},this.onBlur=e=>{this.duetBlur.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-choice"})},this.onFocus=e=>{this.duetFocus.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-choice"})},this.toggleChecked=e=>{e.preventDefault(),e.stopPropagation(),this.getDisabled()||"radio"===this.type&&this.checked||(this.checked=!this.checked,this.duetChange.emit({originalEvent:e,checked:this.checked,value:this.value,component:"duet-choice"}))},this.toggleInfo=()=>{this.isInfoOpen=!this.isInfoOpen,this.isInfoOpen&&setTimeout((()=>{var e;null===(e=this.infoContainer)||void 0===e||e.focus()}),150)},this.isHovering=!1,this.isInfoOpen=!1,this.theme="",this.label="label",this.accessibleLabelInfoButtonDefaults=h,this.accessibleLabelInfoButton=p(this.accessibleLabelInfoButtonDefaults),this.accessibleActiveDescendant=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.caption="",this.value=void 0,this.type="checkbox",this.name=void 0,this.checked=!1,this.collapsible=!1,this.collapsibleForceExpanded=!1,this.margin="auto",this.icon="",this.expand=!1,this.padding="auto",this.identifier=void 0,this.groupDirection=void 0,this.groupDisabled=void 0,this.groupResponsive=void 0,this.disabled=!1,this.required=!1,this.infoLabelDefaults={fi:"Lisätietoja vaihtoehdosta",en:"More information about",sv:"Mera information om"},this.infoLabel=p(this.infoLabelDefaults,b()),this.collapsibleNotificationDefaults={fi:"Tämä valinta sisältää lisätietoja, jotka avautuivat alle",en:"This choice has additional information opened below",sv:"Det här val har mer information som öppnades nedan"},this.collapsibleNotification=p(this.collapsibleNotificationDefaults,b())}componentWillLoad(){d(this),this.hasInfo=f(this.element,"info"),this.hasHeader=f(this.element,"header"),this.hasAdditional=f(this.element,"additional"),this.hasLabel=f(this.element,"label"),this.hasBeforeText=f(this.element,"before-text"),this.duetChoiceReady.emit()}connectedCallback(){g(this,[{prop:"accessibleLabelInfoButton",defaults:"accessibleLabelInfoButtonDefaults"},{prop:"infoLabel",defaults:"infoLabelDefaults"},{prop:"collapsibleNotification",defaults:"collapsibleNotificationDefaults"}]),u(this),this.duetChoiceReady.emit()}disconnectedCallback(){m(this),n(this),this.duetChoiceRemove.emit()}async setFocus(e){this.nativeInput.focus(e)}async toggleInfoMethod(){this.isInfoOpen=!this.isInfoOpen}handleEscape(e){l(e)&&this.isInfoOpen&&(this.isInfoOpen=!1,this.infoButtonEl&&this.infoButtonEl.focus())}isCollapsibleAnnounceable(){if(!this.collapsible||!this.getExpanded())return!1;const e=Array.from(this.element.querySelectorAll(`#${this.choiceId}-collapsible-content > *`)||[]),c=["duet-paragraph","duet-heading","duet-fieldset"];return e.every((e=>c.includes(e.tagName.toLowerCase())))}getAriaDescribedby(){return this.accessibleDescribedBy?this.accessibleDescribedBy:this.collapsible||this.hasInfo?this.hasHeader?this.headerId:this.isCollapsibleAnnounceable()?this.expandId:`${this.choiceId}-collapsible-notification`:null}getDisabled(){return this.disabled||this.groupDisabled}getExpanded(){return this.checked||this.collapsibleForceExpanded}getClassNames(){return this.hasInfo&&!this.collapsible?{checked:this.checked,"duet-choice-card-info":!0,"duet-choice-card-info-expanded":this.isInfoOpen,"duet-choice-card-collapsed":!this.isInfoOpen,"duet-theme-turva":"turva"===this.theme}:!this.hasInfo&&this.collapsible?{checked:this.checked,"duet-choice-card-collapsible":!0,"duet-choice-card-collapsible-expanded":this.getExpanded(),"duet-choice-card-collapsed":!this.getExpanded(),"duet-choice-card-collapsible-disabled":this.getDisabled(),"duet-theme-turva":"turva"===this.theme}:{checked:this.checked,"duet-choice-default-slot":!0}}render(){const e=this.identifier||this.choiceId;return t(i,{class:{horizontal:"horizontal"===this.groupDirection&&!this.groupResponsive,"horizontal-responsive":"horizontal"===this.groupDirection&&this.groupResponsive,"duet-m-0":"none"===this.margin,"duet-expand":this.expand,"duet-theme-turva":"turva"===this.theme,"no-hover":this.isHovering,disabled:this.getDisabled()}},t("div",{class:{"duet-choice-card-flextainer":!0,"duet-theme-turva":"turva"===this.theme}},t("div",{class:{"duet-choice-card":!0,"has-icon":!!this.icon,"has-info":this.hasInfo,checked:this.checked,info:this.isInfoOpen,collapsible:this.collapsible,"collapsible-force-expanded":this.collapsibleForceExpanded,"duet-p-0":"none"===this.padding}},t("input",{class:"duet-choice-input",type:this.type,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,disabled:this.getDisabled(),required:this.required,id:e,name:this.name,value:this.value,checked:this.checked,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-owns":this.accessibleOwns,"aria-describedby":this.getAriaDescribedby(),onKeyDown:this.handleKeyDown,ref:e=>this.nativeInput=e}),t("label",{htmlFor:e,class:{"duet-choice-label":!0,"has-before-text":this.hasBeforeText},onClick:this.onClick},this.hasBeforeText&&t("slot",{name:"before-text"}),this.icon&&t("div",{class:"duet-choice-card-icon"},t("duet-icon",{margin:"none",size:"small",name:this.icon,color:"currentColor"})),t("div",{class:"duet-choice-card-text"},t("div",null,this.hasLabel?t("slot",{name:"label"}):this.label),this.caption&&t("div",null,t("duet-spacer",{size:"xx-small"}),t("duet-caption",{margin:"none",selected:this.checked},this.caption)),this.hasAdditional&&t("div",null,t("duet-spacer",{size:"xx-small"}),t("slot",{name:"additional"}))),t("div",null,t("div",{class:{"duet-checkmark-container":!0,"duet-checkmark-radio":"radio"===this.type}},this.checked&&t("div",{class:"duet-checkmark"}))))),this.hasInfo&&!this.collapsible&&t("button",{ref:e=>this.infoButtonEl=e,id:this.infoButtonId,class:{"duet-choice-info-toggle":!0,"duet-theme-turva":"turva"===this.theme},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onClick:this.toggleInfo,disabled:this.getDisabled(),"aria-expanded":this.isInfoOpen?"true":"false","aria-label":`${this.infoLabel} ${this.label}`,"aria-controls":this.expandId,tabindex:"radio"!==this.type||this.checked?"0":"-1",type:"button",onKeyUp:e=>this.handleEscape(e)},t("div",{class:"duet-choice-info-icon"},t("duet-icon",{icon:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M13.5 17.25A2.252 2.252 0 0 1 11.25 15v-3.75h-.75a.75.75 0 0 1 0-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 0 1 0 1.5z"/><circle cx="11.625" cy="7.125" r="1.125"/><path d="M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z"/></svg>',margin:"none",size:"small",color:"currentColor"})))),this.collapsible&&t("span",{id:`${this.choiceId}-collapsible-notification`,hidden:!0},this.collapsibleNotification),this.collapsible||this.hasInfo?t("div",{class:this.getClassNames(),id:this.expandId},t("span",{class:{"duet-choice-section-visible":this.collapsible?this.getExpanded():this.isInfoOpen,"duet-choice-section-hidden":this.collapsible?!this.getExpanded():!this.isInfoOpen}},t("span",{id:this.headerId},t("slot",{name:"header"})),this.hasInfo?t("span",{ref:e=>this.infoContainer=e,tabindex:"0",class:"duet-choice-info-container",onKeyUp:e=>this.handleEscape(e)},t("span",null,t("slot",{name:"info"})),t("slot",null)):t("span",{id:`${this.choiceId}-collapsible-content`},t("slot",null)))):null)}get element(){return o(this)}};v.style='*.sc-duet-choice,*.sc-duet-choice::after,*.sc-duet-choice::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;flex-direction:column;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-choice-h:last-child,.sc-duet-choice-h:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){.sc-duet-choice-h{width:100%}}.duet-expand.sc-duet-choice-h{width:100% !important}.duet-m-0.sc-duet-choice-h{margin:0 !important}.duet-fixed.sc-duet-choice-h{width:auto !important}.vertical.sc-duet-choice-h{margin-right:0 !important}@media (min-width: 48em){.horizontal.sc-duet-choice-h{margin-bottom:0 !important}}@media (min-width: 48em){.horizontal-responsive.sc-duet-choice-h{margin-bottom:0 !important;margin-right:16px !important}.horizontal-responsive.sc-duet-choice-h:last-child,.horizontal-responsive.sc-duet-choice-h:last-of-type{margin-right:0 !important}}.sc-duet-choice-h:last-child:not(:only-child){margin-right:0 !important}.duet-choice-card.sc-duet-choice{position:relative;display:block;width:100%;min-width:8rem;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;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:rgb(0, 41, 77) !important;text-align:left;background:rgb(255, 255, 255);border-width:1px}.duet-choice-card.duet-p-0.sc-duet-choice{padding:0 !important}.duet-choice-card.duet-m-0.sc-duet-choice{margin:0 !important}.duet-theme-turva.sc-duet-choice .duet-choice-card.sc-duet-choice{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58) !important}.duet-choice-card-flextainer.sc-duet-choice{display:flex}.duet-choice-label.sc-duet-choice{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;gap:12px;align-items:center;justify-content:flex-start;width:100%;height:100%;min-height:3.875rem;padding:calc(1rem + 1px);font-size:1rem;font-weight:600;text-decoration:none;word-break:break-word;cursor:pointer;border:1px solid rgb(225, 227, 230);border-radius:8px;transition:background-color 150ms ease, border-color 300ms ease}.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-icon.sc-duet-choice,.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-text.sc-duet-choice{align-self:flex-start;margin-top:0.25rem}.duet-choice-label.sc-duet-choice>div.sc-duet-choice:last-child{flex:1;align-self:flex-start;justify-self:flex-end;margin-top:0.25rem}.has-info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-top-right-radius:0;border-bottom-right-radius:0}.info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-bottom-right-radius:0;border-bottom-left-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(228, 228, 230)}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(228, 228, 230)}.duet-choice-label.sc-duet-choice:active{opacity:0.75;transition:none !important}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice{padding:1rem;background:rgb(243, 249, 252);border-color:rgb(0, 119, 179) !important;border-width:2px}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice{background:rgb(245, 245, 247);border-color:rgb(23, 28, 58) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(198, 12, 48)}.checked.collapsible.sc-duet-choice>.duet-choice-label.sc-duet-choice,.collapsible-force-expanded.collapsible.sc-duet-choice>.duet-choice-label.sc-duet-choice{padding-bottom:calc(1rem + 2px) !important;border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(0, 119, 179);border-width:2px}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(144, 149, 153)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(23, 28, 58)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(116, 116, 117)}.duet-theme-turva .info .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(116, 116, 117)}.sc-duet-choice-h:not(.no-hover):not(.disabled):not([checked]):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){padding:1rem}input.sc-duet-choice:focus{outline:0}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3)}.user-is-tabbing.sc-duet-choice-h input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:checked:focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2)}.user-is-tabbing.duet-theme-turva.sc-duet-choice-h input.sc-duet-choice:not(:checked):focus+.duet-choice-label.sc-duet-choice{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(101, 119, 135) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(225, 227, 230) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(116, 116, 117)}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(101, 119, 135) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:hover,input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:active,input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:focus{box-shadow:none !important;opacity:1 !important;transition:none !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(116, 116, 117) !important;background:rgb(245, 245, 247) !important;border-color:rgb(228, 228, 230) !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(116, 116, 117) !important}.checked.sc-duet-choice>input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{border-color:rgb(144, 149, 153) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{border-color:rgb(116, 116, 117) !important}.duet-checkmark-container.sc-duet-choice{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(144, 149, 153);border-radius:4px;transition:border 300ms ease}.duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(116, 116, 117)}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio.sc-duet-choice{border-radius:50%}[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(207, 210, 212) !important;border-color:rgb(207, 210, 212) !important}.duet-theme-turva.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(207, 207, 209) !important}.checked.sc-duet-choice>[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(207, 210, 212) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(207, 207, 209) !important;border-color:rgb(207, 207, 209) !important}.duet-checkmark.sc-duet-choice{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid rgb(255, 255, 255);border-right:2px solid rgb(255, 255, 255);opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}.duet-choice-card-icon.sc-duet-choice{position:relative;color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(173, 11, 43)}.duet-choice-card-icon.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-section-hidden.sc-duet-choice{display:none}.duet-choice-card-info.duet-choice-card-collapsed.sc-duet-choice,.duet-choice-card-collapsed.duet-choice-card-collapsible.sc-duet-choice{position:relative;width:auto;padding:0 !important;background:unset !important;border:0;border-radius:0}.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:20px !important;position:relative;width:100%;font-weight:400;color:rgb(0, 41, 77);border:1px solid rgb(225, 227, 230);border-top:0;border-radius:0 0 8px 8px;transition:border-color 300ms ease}@media (min-width: 36em){.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:28px !important}}.duet-theme-turva.sc-duet-choice .duet-choice-card-info.sc-duet-choice,.duet-theme-turva.sc-duet-choice .duet-choice-card-collapsible.sc-duet-choice{color:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.checked.sc-duet-choice>.duet-choice-card-info.sc-duet-choice,.checked.sc-duet-choice>.duet-choice-card-collapsible.sc-duet-choice{display:block}.duet-choice-card-info-expanded.sc-duet-choice,.duet-choice-card-collapsible-expanded.sc-duet-choice{display:block}.duet-choice-card-collapsible.sc-duet-choice{background:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-top:0}.duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{background:rgb(255, 255, 255);border-color:rgb(228, 228, 230)}.duet-choice-card-collapsible.checked.sc-duet-choice{padding:19px !important;padding-top:20px !important;border-color:rgb(0, 119, 179);border-width:2px}@media (min-width: 36em){.duet-choice-card-collapsible.checked.sc-duet-choice{padding:27px !important;padding-top:28px !important}}.duet-choice-card-collapsible.checked.duet-theme-turva.sc-duet-choice{border-color:rgb(23, 28, 58)}.duet-choice-card-collapsible-disabled.sc-duet-choice{background:rgb(245, 248, 250);border-color:rgb(225, 227, 230)}.duet-choice-card-collapsible-disabled.checked.sc-duet-choice{border-color:rgb(225, 227, 230)}.duet-choice-card-collapsible-disabled.duet-theme-turva.sc-duet-choice{background:rgb(245, 245, 247);border-color:rgb(228, 228, 230)}.duet-choice-card-collapsible-disabled.duet-theme-turva.checked.sc-duet-choice{border-color:rgb(228, 228, 230)}.duet-choice-card-info.sc-duet-choice{font-size:0.875rem;line-height:1.5;background:rgb(245, 248, 250);transition:150ms ease-out}.duet-choice-card-info.duet-theme-turva.sc-duet-choice{background:rgb(245, 245, 247);border-color:rgb(228, 228, 230)}.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container.sc-duet-choice-s>*,.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container .sc-duet-choice-s>*{display:none}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-container.sc-duet-choice:focus{display:block;outline:none;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(0, 119, 179);border-width:2px}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(116, 116, 117)}[collapsible-force-expanded].sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){padding:19px !important;padding-top:20px !important}@media (min-width: 36em){[collapsible-force-expanded].sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){padding:27px !important;padding-top:28px !important}}.duet-choice-info-toggle.sc-duet-choice{display:flex;flex-shrink:0;align-items:flex-start;justify-content:center;width:57.6px;padding-top:1.25rem;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-left:0 none;border-top-right-radius:8px;border-bottom-right-radius:8px;-webkit-appearance:none;appearance:none}.duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 248, 250);border-bottom-color:transparent;border-bottom-right-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 245, 247)}.duet-choice-info-toggle[disabled].sc-duet-choice{pointer-events:none;background:rgb(245, 248, 250) !important;border-color:rgb(225, 227, 230) !important}.duet-choice-info-toggle[disabled].sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(144, 149, 153) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice{background:rgb(245, 245, 247) !important;border-color:rgb(228, 228, 230) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(116, 116, 117) !important}.duet-choice-info-toggle.sc-duet-choice:focus{outline:none}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.checked.sc-duet-choice+.duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(0, 119, 179) !important}.duet-choice-info-toggle.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(198, 12, 48)}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(144, 149, 153)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(116, 116, 117)}.duet-choice-input.sc-duet-choice{position:absolute !important;width:100%;height:100%;opacity:0}';const x=class{constructor(c){e(this,c),this.choiceGroupName="duet-choice-group",this.choices=new Set,this.onSelect=e=>{if("duet-choice"!==e.detail.component)return;const c=e.target;c&&this.choices.has(c)&&(this.value=c.value)},this.onChoiceReady=e=>{const c=e.target;c.closest("duet-choice-group")!==this.element||this.choices.has(c)||(this.choices.add(c),this.updateChoices())},this.onChoiceRemove=e=>{this.choices.delete(e.target),this.updateChoices()},this.direction="vertical",this.margin="auto",this.theme="",this.error="",this.name=void 0,this.label="Label",this.labelHidden=!1,this.caption=void 0,this.tooltip=void 0,this.tooltipDirection="auto",this.responsive=!1,this.breakpoint="small",this.value=void 0,this.disabled=void 0,this.required=!1,this.accessibleLiveError="polite"}async connectedCallback(){this.setInitialValue(),this.updateChoices()}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0)}componentWillLoad(){d(this),k(this.element,"tooltip","duet-tooltip",1,!0)}setInitialValue(){void 0===this.initialValue&&(this.initialValue=this.value)}async getInitialValue(){return this.initialValue}async updateChoices(){var e;const c=null!==(e=this.value)&&void 0!==e?e:this.initialValue;let t=!1;for(const e of Array.from(this.choices))e.name=this.name,e.required=this.required,e.groupDisabled=this.disabled,e.groupDirection=this.direction,e.groupResponsive=this.responsive,t||e.value!==c?e.checked=!1:(t=!0,e.checked=!0,void 0===this.value&&(this.value=c));t||(this.value=void 0)}render(){return t(i,{onDuetChange:this.onSelect,onDuetChoiceReady:this.onChoiceReady,onDuetChoiceRemove:this.onChoiceRemove,class:{horizontal:"horizontal"===this.direction,"duet-choice-group-breakpoint-x-small":this.responsive&&"x-small"===this.breakpoint,"duet-choice-group-breakpoint-small":this.responsive&&"small"===this.breakpoint,"duet-choice-group-breakpoint-medium":this.responsive&&"medium"===this.breakpoint,"duet-choice-group-breakpoint-large":this.responsive&&"large"===this.breakpoint,"duet-choice-group-breakpoint-x-large":this.responsive&&"x-large"===this.breakpoint}},t("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,compactLabel:!0,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme,"accessible-live-error":this.accessibleLiveError},this.tooltip&&t("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),t("slot",{name:"tooltip"}),t("div",{class:{[this.choiceGroupName]:!0,"duet-no-stacking":!this.responsive}},t("slot",null))))}get element(){return o(this)}static get watchers(){return{value:["setInitialValue","updateChoices"],disabled:["updateChoices"],name:["updateChoices"],direction:["updateChoices"],responsive:["updateChoices"]}}};x.style="*.sc-duet-choice-group,*.sc-duet-choice-group::after,*.sc-duet-choice-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-group-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%}.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:block;margin-bottom:-12px}.horizontal.sc-duet-choice-group-h .duet-choice-group.duet-no-stacking.sc-duet-choice-group{display:flex}@media (min-width: 48em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{margin-bottom:0}}@media (max-width: 35.9375em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:flex}}.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}@media (max-width: 22.5em){.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}}.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 36em){.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 48em){.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 62em){.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 64.0625em){.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.duet-choice-group.sc-duet-choice-group{position:relative;width:100%;margin-bottom:-12px}";export{v as duet_choice,x as duet_choice_group}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,h as t,H as o,g as a}from"./p-00f584d4.js";import{i}from"./p-aaa7a7bd.js";import{h as l,c as n}from"./p-8507509a.js";const c=class{constructor(t){e(this,t),this.hasAuthorSlot=!1,this.theme="",this.margin="auto"}componentWillLoad(){i(this),this.hasAuthorSlot=l(this.element,"author"),n(this.element,"author","span")}render(){return t(o,{key:"f15d0650bf33e9ca7f1ce28065ff46f9ec08066d"},t("div",{key:"ee7e16c113b6a5229be9cbe4e6f52972b0403a4d",class:{"duet-callout":!0,"duet-theme-turva":"turva"===this.theme,"duet-m-0":"none"===this.margin}},t("figure",{key:"b1209eb4a81b1c71e016f311cb8143e8358fb70f",class:"container"},t("duet-icon",{key:"ca683a906622a8c8225b07176b1ee19df3dcbe6d",class:"callout-icon",shape:"brand-rotated",background:"primary-lighter","background-opacity":"0.75","background-rotation":"turva"===this.theme?"0":"7",color:"secondary",icon:'<svg viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.6591 0.557547L9.2031 2.33355C7.0911 5.21355 6.1311 7.18155 5.8431 8.90955C7.4751 9.34155 8.7231 10.5415 8.7231 12.6535C8.7231 15.2935 6.9471 16.9255 4.6431 16.9255C2.0511 16.9255 0.227096 15.1975 0.227096 12.2695C0.227096 8.28555 2.3871 4.34955 6.6591 0.557547ZM17.9871 8.95755C19.6191 9.34155 20.8671 10.5415 20.8671 12.6535C20.8671 15.2935 19.1391 16.9255 16.8351 16.9255C14.2431 16.9255 12.4191 15.1975 12.4191 12.2695C12.4191 8.28555 14.5791 4.34955 18.8511 0.557547L21.3951 2.33355C19.2351 5.21355 18.3231 7.18155 17.9871 8.95755Z"/>\n </svg>\n ',size:"auto",margin:"none",theme:this.theme}),t("blockquote",{key:"e9198af97b7db83a4c6fbe60f65ed1122cb9b398"},t("slot",{key:"378ba5f182620048730e714c00d4433d9bd684ff"})),this.hasAuthorSlot&&t("figcaption",{key:"b170bece235f975d0a0139d5c0bdc0571c782146",class:"author"},t("span",{key:"7917d19b5a7d199798346250719da6618b31107c"},"— "),t("slot",{key:"be8a7f6bfee1c152a8cc79978d0163d299fe52d8",name:"author"})))))}get element(){return a(this)}};c.style=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}blockquote,figure{margin:0}.duet-callout{margin-bottom:28px !important;display:flex;align-items:center;justify-content:center;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"}.duet-callout .container{display:flex;flex-direction:column;gap:8px;align-items:center;max-width:688px;text-align:center}.duet-callout .callout-icon{width:50px;padding-bottom:8px}.duet-callout blockquote{font-size:2.7vw;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}@media (max-width: 37.037037037rem){.duet-callout blockquote{font-size:1rem}}@media (min-width: 46.2962962963rem){.duet-callout blockquote{font-size:1.25rem}}.duet-callout .author{color:rgb(0, 41, 77)}.duet-callout.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-callout.duet-theme-turva .author,.duet-callout.duet-theme-turva blockquote{color:rgb(23, 28, 58)}.duet-callout.duet-m-0{margin:0 !important}';export{c as duet_callout}
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,a,i){function r(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function n(e){try{d(i.next(e))}catch(e){o(e)}}function s(e){try{d(i["throw"](e))}catch(e){o(e)}}function d(e){e.done?a(e.value):r(e.value).then(n,s)}d((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,n;return n={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return d([e,t])}}function d(s){if(i)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(a=0)),a)try{if(i=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:a.label++;return{value:s[1],done:false};case 5:a.label++;r=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(s[0]===6&&a.label<o[1]){a.label=o[1];o=s;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(s);break}if(o[2])a.ops.pop();a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e];r=0}finally{i=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-d3101c8a.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-e12066c8.system.js","./p-0fee15c1.system.js","./p-0853dd3b.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,a,i,r,o,n,s,d,u,l,h,c;return{setters:[function(e){t=e.r;a=e.c;i=e.h;r=e.H;o=e.g},function(e){n=e.i},function(e){s=e.c},function(e){d=e.c},function(e){u=e.g;l=e.c;h=e.d},function(e){c=e.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;margin-right:16px !important;margin-bottom:12px !important;display:block;width:100%;max-width:100%;text-align:left}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}duet-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-textarea-container{position:relative;width:100%;height:100%}.duet-textarea-container .duet-input-top-caption{display:none}.duet-textarea-container.duet-input-top-caption-shown .duet-input-top-caption{display:flex !important}.duet-textarea-wrapper{position:relative}.duet-textarea-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-textarea{padding:15px !important;position:relative;z-index:100;display:block;width:100%;min-width:8rem;min-height:160px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(0, 41, 77);resize:vertical;background:rgb(255, 255, 255);border:1px solid rgb(144, 149, 153);border-radius:4px;transition:150ms ease}.duet-theme-turva .duet-textarea{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(116, 116, 117)}.has-error .duet-textarea{border-color:rgb(222, 35, 98) !important}.duet-theme-turva.has-error .duet-textarea{border-color:rgb(224, 42, 13) !important}.duet-textarea::-webkit-input-placeholder{color:rgb(101, 119, 135);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva .duet-textarea::-webkit-input-placeholder{color:rgb(116, 116, 117)}.duet-textarea:focus::-webkit-input-placeholder{color:rgb(207, 210, 212)}.duet-theme-turva .duet-textarea:focus::-webkit-input-placeholder{color:rgb(207, 207, 209)}.duet-textarea::-moz-placeholder{color:rgb(101, 119, 135);opacity:1 !important}.duet-theme-turva .duet-textarea::-moz-placeholder{color:rgb(116, 116, 117)}.duet-textarea:focus::-moz-placeholder{color:rgb(207, 210, 212)}.duet-theme-turva .duet-textarea:focus::-moz-placeholder{color:rgb(207, 207, 209)}.duet-textarea:-ms-input-placeholder{color:rgb(101, 119, 135)}.duet-theme-turva .duet-textarea:-ms-input-placeholder{color:rgb(116, 116, 117)}.duet-textarea:focus:-ms-input-placeholder{color:rgb(207, 210, 212)}.duet-theme-turva .duet-textarea:focus:-ms-input-placeholder{color:rgb(207, 207, 209)}.duet-textarea[disabled]{color:rgb(101, 119, 135) !important;cursor:not-allowed !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-theme-turva .duet-textarea[disabled]{color:rgb(116, 116, 117) !important;background:rgb(245, 245, 247) !important;border-color:rgb(245, 245, 247) !important}.duet-textarea[disabled]::-webkit-input-placeholder{color:rgb(0, 41, 77);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva .duet-textarea[disabled]::-webkit-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled]::-moz-placeholder{color:rgb(0, 41, 77);opacity:1 !important}.duet-theme-turva .duet-textarea[disabled]::-moz-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled]:-ms-input-placeholder{color:rgb(0, 41, 77)}.duet-theme-turva .duet-textarea[disabled]:-ms-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #747475}.has-error .duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #e55039}.duet-textarea:focus{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-textarea:focus{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error .duet-textarea:focus{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-textarea:focus{box-shadow:0 0 0 1px #e55039}.duet-textarea:not(:focus):not(:hover):invalid{box-shadow:none}.duet-textarea-help{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;line-height:1.25}.duet-textarea-help span{display:block;margin-top:8px}.duet-theme-turva .duet-textarea-help{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(116, 116, 117)}.has-error .duet-textarea-help{color:rgb(222, 35, 98)}.duet-theme-turva.has-error .duet-textarea-help{color:rgb(224, 42, 13)}.duet-label-hidden duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-character-count{display:block;margin:8px 0 0 auto}';var f=p;var b=function(e){var t=e.value,a=e.maxlength,r=e.label,o=e.theme;if(a==null){return}var n=t.length;var s=Math.max(a-n,0);var d=s/a<=.1;return i("div",{class:"duet-character-count"},i("duet-caption",{margin:"none",theme:o,size:"small"},i("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true",class:"duet-textarea-counter-remaining"},d&&"".concat(s," ").concat(r)),i("span",{"aria-hidden":"true"},n,"/",a)))};var m=e("duet_textarea",function(){function e(e){var i=this;t(this,e);this.duetInput=a(this,"duetInput",7);this.duetChange=a(this,"duetChange",7);this.duetBlur=a(this,"duetBlur",7);this.duetFocus=a(this,"duetFocus",7);this.textareaId=s("DuetTextarea");this.topCaptionId=s("DuetCaptionTop");this.topCaptionPlaceholderId=s("DuetCaptionPlaceholderTop");this.labelId=s("DuetLabel");this.errorId=s("DuetError");this.characterCountId=s("DuetCharacterCount");this.disallowPatternRegex=null;this.counterLabelDefaults={fi:"merkkiä jäljellä",en:"characters remaining",sv:"tecken kvar"};this.handleInput=function(e){if(i.disallowPatternRegex){d(i.nativeInput,i.disallowPatternRegex)}i.value=i.nativeInput.value;i.isCaptionVisible=!!i.caption;i.duetInput.emit({originalEvent:e,value:i.value,component:"duet-textarea"})};this.handleChange=function(e){i.value=i.nativeInput.value;i.duetChange.emit({originalEvent:e,value:i.value,component:"duet-textarea"})};this.handleBlur=function(e){i.duetBlur.emit({originalEvent:e,value:i.value,component:"duet-textarea"})};this.handleFocus=function(e){if(i.counter){i.hiddenCounterLabel.textContent="".concat(Math.max(i.maxlength-i.value.length,0),"/").concat(i.maxlength," ").concat(i.counterLabel)}i.duetFocus.emit({originalEvent:e,value:i.value,component:"duet-textarea"})};this.getDescribedBy=function(){var e=[];if(i.isCaptionVisible&&i.topCaptionId){e.push(i.topCaptionId)}if(i.accessibleDescribedBy){e.push(i.accessibleDescribedBy)}if(i.error){e.push(i.errorId)}if(i.counter){e.push(i.characterCountId)}return e.length>0?e.join(" "):null};this.margin="auto";this.accessibleActiveDescendant=undefined;this.accessibleAutocomplete=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLiveError="polite";this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.theme="";this.expand=false;this.disabled=false;this.identifier=undefined;this.required=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.labelHidden=false;this.name=undefined;this.placeholder=undefined;this.caption=undefined;this.echoPlaceholder=false;this.maxlength=undefined;this.minlength=undefined;this.error="";this.role=undefined;this.tooltip="";this.tooltipDirection="auto";this.value="";this.disallowPattern=null;this.counter=false;this.counterLabel=u(this.counterLabelDefaults)}e.prototype.disallowedPatternChange=function(){this.disallowPatternRegex=this.disallowPattern?new RegExp(this.disallowPattern,"gu"):null};e.prototype.componentWillLoad=function(){n(this);this.disallowedPatternChange();this.isCaptionVisible=!!this.caption;c(this.element,"tooltip","duet-tooltip",1,true);if(this.counter&&this.maxlength==null){console.warn("[DUET WARNING]: counter will only take effect if maxlength is set")}};e.prototype.connectedCallback=function(){l(this,{prop:"counterLabel",defaults:"counterLabelDefaults"})};e.prototype.disconnectedCallback=function(){h(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.nativeInput.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.identifier||this.textareaId;return i(r,{key:"95fd5e5a71db0cbdbdb4e4f51c031eb38e98eb20",class:{"duet-m-0":this.margin==="none","duet-has-counter":this.counter&&!this.error,"duet-expand":this.expand}},i("div",{key:"417ef9e56fbc4667adfcddd29e709b86b3c29496",class:{"duet-textarea-container":true,"duet-theme-turva":this.theme==="turva","duet-label-hidden":this.labelHidden,"duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error}},i("duet-label",{key:"c970faa68895f7c718c3461ff56b36ba51ca2b39",theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},margin:this.isCaptionVisible?"small":"auto",color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:t},this.label),this.tooltip&&i("duet-tooltip",{key:"e819a4b2a028a99b64c2065f4c9f6029600d2acb",direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:this.theme==="turva"?"turva":"default"},this.tooltip),i("slot",{key:"3ec4fdbb3f16f533c56b73d7f9c435345f4ce0ce",name:"tooltip"}),this.caption&&i("duet-caption",{key:"ac0b106adb6889cb8eb4878fb26f4e8e2dda7188",id:this.topCaptionId,size:"medium",theme:this.theme==="turva"?"turva":"default"},this.caption),i("div",{key:"7214df64bab9dce0d99d3ff2a96ff2e010d2fb83",class:"duet-textarea-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&i("duet-caption",{key:"ff3814fd43da859de1cf2269bf6e2b55cc34fd9c",id:this.topCaptionPlaceholderId,class:"duet-textarea-placeholder",size:"small"},this.placeholder),i("textarea",{key:"56f4f30b7d7ee1407aefe788835ada1305f7bcf9",onInput:this.handleInput,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus,ref:function(t){return e.nativeInput=t},class:{"duet-textarea":true,disabled:this.disabled},value:this.value,disabled:this.disabled,"aria-labelledby":this.accessibleLabelledBy?"".concat(this.labelId," ").concat(this.accessibleLabelledBy):this.labelId,"aria-controls":this.accessibleControls,"aria-autocomplete":this.accessibleAutocomplete,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.getDescribedBy(),"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,placeholder:this.placeholder,spellcheck:"false",required:this.required,minlength:this.minlength,maxlength:this.maxlength,role:this.role,name:this.name,id:t})),i("duet-grid",{key:"622cfa8317fe37f645b1180c6ad35f59b8351fa4",alignment:"stretch"},i("duet-grid-item",{key:"9a1ef5419a5f72b2d23986eef1681b547067c5f4",margin:"none",fill:true},i("div",{key:"d7e0dcd97261a2ee0744b19efb5c6f78ab6b2a9f",class:"duet-textarea-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&i("span",{key:"e1673fe8bdc7e4560a701074a103b0ef8f6fd5f8"},this.error))),i("duet-grid-item",{key:"8be9f6e9ca8afbe0734c4a366d4a7c43fdc01cdb",margin:"none",class:"duet-character-count-caption"},this.counter&&i(b,{key:"853baf2df8a6816d1af92476a4af383e5d656ea2",theme:this.theme,value:this.value,maxlength:this.maxlength,label:this.counterLabel}))),this.counter&&i("duet-visually-hidden",{key:"9f13bfdda388bd779ebad2bcbd33058f3242f79c",class:"duet-visually-hidden",id:this.characterCountId,ref:function(t){e.hiddenCounterLabel=t}})))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disallowPattern:["disallowedPatternChange"]}},enumerable:false,configurable:true});return e}());m.style=f}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{h as t,r as e,c as i,H as a,g as s,F as d}from"./p-00f584d4.js";import{i as l}from"./p-aaa7a7bd.js";import{f as o,d as n}from"./p-9e371678.js";import{i as r}from"./p-a1b7f2a0.js";import{a as h,c as u,d as b,g as p,s as c}from"./p-5e2f8206.js";import{p as m,s as f}from"./p-50c83774.js";import{b as g,a as y}from"./p-e95fa292.js";import{c as v}from"./p-5e59e970.js";import{p as x}from"./p-9c3c64b9.js";import{g as k,a as w}from"./p-0b249181.js";const T=({data:e,groupId:i,alignment:a})=>{const s=`duet-editable-table duet-editable-table-content-${i}`;return"string"==typeof e?t("td",{innerHTML:e,class:s,part:`${i}content`,style:{verticalAlign:a}}):t("td",{class:s,part:`${i}content`,style:{verticalAlign:a}},e)},L=class{constructor(t){e(this,t),this.duetTableToggle=i(this,"duetTableToggle",7),this.duetMenuClick=i(this,"duetMenuClick",7),this.hasHeadSlotFirst=!1,this.hasHeadSlotLast=!1,this.hasFootSlot=!1,this.sortableDefaultLabel={fi:"Järjestä",en:"Click to sort",sv:"Klicka för att sortera"},this.actionColumnLabel={en:"Actions for rows",fi:"Toiminnot rivillä",sv:"Åtgärder för rader"},this.toggleColumn=(t,e)=>{e.preventDefault();const{sort_order:i,direction:a,index:s,key:d}=t;this.duetTableToggle.emit({sort_order:i,index:s,direction:a,key:d,component:"duet-editable-table",originalEvent:e})},this.handleKeyDown=(t,e)=>{r(e)&&this.toggleColumn(t,e)},this.language=h(),this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.actions=void 0,this.columns=void 0,this.rows=void 0,this.sortable=!1,this.groupId="",this.theme="",this.accessibleRole=void 0,this.hideHeadVisually=!1}componentWillLoad(){l(this),this.hasHeadSlotFirst=!!this.element.querySelector("[slot='thead-first']"),this.hasHeadSlotLast=!!this.element.querySelector("[slot='thead-last']"),this.hasFootSlot=!!this.element.querySelector("[slot='tfoot']")}connectedCallback(){u(this)}disconnectedCallback(){b(this)}createLabel(e){const{sort_order:i,direction:a,index:s,label:d}=e,l=p(d);return this.sortable?t("span",{class:"duet-table-label","data-index":s},t("duet-button",{size:"small",icon:i&&1===a?"action-arrow-down-small":i&&-1===a?"action-arrow-up-small":"action-subtract-small","icon-size":"medium-small","accessible-label":this.sortableDefaultLabel[this.language],variation:"plain",margin:"none","icon-right":!0,onClick:t=>this.toggleColumn(e,t),onKeyDown:t=>this.handleKeyDown(e,t)},l)):l}getSortedColumns(){return[...this.columns].sort(o(["index"]))}getRowSortOrder(){return[...this.columns].sort(o(["sort_order"])).filter((t=>t.sort_order)).map((t=>-1===t.direction?`-${t.key}`:t.key))}renderTableHeader(){if(!this.columns)return;const e=this.getSortedColumns();return t("tr",{class:{"duet-table-action-header":!!this.actions}},e.map((e=>{if(!1!==e.display){const i=this.createLabel(e);return""!==i?t("th",{scope:"col"},i):t("td",null)}})),this.actions&&t("th",{scope:"col",class:"duet-table-action-header-heading"},this.actions&&t("duet-visually-hidden",null,this.actionColumnLabel[this.language])))}renderActions(e,i){if(this.actions)return t("td",{class:"duet-text-right"},this.actions.map((a=>t("duet-action-button",{actionMeta:Object.assign({},(null==e?void 0:e.meta)||{},{index:i}),actionId:(null==e?void 0:e.uid)||(null==e?void 0:e.id)||null,actionName:a.name,theme:this.theme,iconName:a.icon,iconColor:a.color,iconSize:a.size,background:a.background,"accessible-label":`${e.actionDescription||""} ${p(a.label)} `}))))}renderTableBody(){const e=this.getSortedColumns(),i=this.getRowSortOrder();return[...this.rows].sort(o(i)).map(((i,a)=>t("tr",{class:{"duet-table-action-row":!!this.actions,"duet-editable-table-row":!0,[`duet-editable-table-row-${this.groupId}`]:!0},"data-meta":JSON.stringify(i.meta)},e.map((e=>{if(!1!==e.display)return t(T,{data:i[e.key]?i[e.key]:i.item,groupId:this.groupId})})),this.actions&&this.renderActions(i,a))))}render(){return t(a,{class:{[`duet-editable-table-${this.variation}`]:!0,"duet-editable-table":!0,[`duet-editable-table-${this.theme}`]:!0,"duet-editable-table-scrollable":"none-scrollable"===this.breakpoint,"duet-editable-table-sortable":this.sortable,"duet-editable-table-actions":!!this.actions,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme}},t("duet-table",{class:"duet-editable-table-table",sticky:this.sticky,stickyDistance:this.stickyDistance,margin:this.margin,theme:this.theme,variation:this.variation,breakpoint:this.breakpoint,"hide-head-visually":this.hideHeadVisually},t("table",{role:this.accessibleRole},t("caption",null,t("slot",{name:"tcaption"})),t("thead",null,this.hasHeadSlotFirst&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-first"}))),this.renderTableHeader(),this.hasHeadSlotLast&&t("tr",null,t("td",{class:"duet-editable-table-actions-menu",colSpan:99},t("slot",{name:"thead-last"})))),t("tbody",null,this.renderTableBody()),this.hasFootSlot&&t("tfoot",null,t("tr",null,t("td",{class:"duet-editable-table-footer-menu",colSpan:99},t("slot",{name:"tfoot"})))))))}get element(){return s(this)}};L.style=".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";const S={none:0,"with-links":16*parseFloat(m),"without-links":16*parseFloat(f)},E=class{constructor(t){e(this,t),this.headingSelector="thead tr > :not(*.duet-editable-table-actions-menu)",this.handleMediaQueryChange=t=>{this.matchesBreakpoint=g.includes(this.breakpoint)?!t.matches:t.matches},this.matchesBreakpoint=!0,this.language=h(),this.theme=void 0,this.margin="auto",this.variation="striped",this.sticky=!1,this.stickyDistance="with-links",this.breakpoint="small",this.hideHeadVisually=!1}watchLanguageStateHandler(t,e){t!==e&&setTimeout((()=>this.copyHeadingsToCells()),50)}connectedCallback(){this.mq=matchMedia("none"===this.breakpoint||"none-scrollable"===this.breakpoint?"all":y[this.breakpoint]),this.mq.addEventListener("change",n(this.handleMediaQueryChange,50)),this.handleMediaQueryChange(this.mq),this.observer=new MutationObserver((()=>n(this.copyHeadingsToCells(),50))),this.observer.observe(this.element,{childList:!0,subtree:!0})}componentWillLoad(){if(l(this),this.copyHeadingsToCells(),this.sticky&&"none-scrollable"===this.breakpoint&&console.warn('[DUET WARNING]: sticky and breakpoint="none-scrollable" are incompatible. Scrollable takes precedence'),this.sticky){const t=S[this.stickyDistance];this.element.querySelectorAll(this.headingSelector).forEach((e=>e.style.top=`${t}px`))}}componentDidLoad(){this.observer&&this.observer.takeRecords(),u(this)}disconnectedCallback(){this.observer.disconnect(),this.observer=null,this.mq.removeListener(this.handleMediaQueryChange),this.mq=null,this.matchesBreakpoint=!0,b(this)}copyHeadingsToCells(){const t=this.element.querySelectorAll(this.headingSelector),e=this.element.querySelectorAll("tbody tr"),i=Array.from(t).map((t=>t.textContent.trim()));e.forEach((t=>{t.querySelectorAll("td").forEach(((t,e)=>{if(i[e]){const a=t.querySelector(".duet-table-cell-heading");if(!a||a.textContent!==i[e]){null==a||a.remove();const s=document.createElement("span");s.textContent=i[e],s.classList.add("duet-table-cell-heading"),s.setAttribute("aria-hidden","true"),s.inert=!0,t.prepend(s)}}}))}))}render(){return t(a,{key:"0ba86b55e9fd8e291fc94aad48b312107970d243",class:{[`duet-table-${this.variation}`]:!0,"duet-table-flattened":!this.matchesBreakpoint,"duet-table-sticky":this.matchesBreakpoint&&this.sticky,"duet-table-scrollable":"none-scrollable"===this.breakpoint,"duet-m-0":"none"===this.margin,"duet-theme-turva":"turva"===this.theme,"duet-table-hide-head-visually":this.hideHeadVisually}},t("slot",{key:"886e2b664a351ba71a333ee8c256ed02465b0114"}))}get element(){return s(this)}static get watchers(){return{language:["watchLanguageStateHandler"]}}};E.style='duet-table{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;font-variant-numeric:tabular-nums}duet-table table,duet-table thead,duet-table tbody,duet-table tfoot,duet-table th,duet-table td,duet-table tr{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}duet-table.duet-m-0{margin:0 !important}duet-table table{width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;text-align:left;border-spacing:0;border-collapse:separate}duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead,duet-table.duet-table-hide-head-visually.duet-table-hide-head-visually thead *{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}duet-table.duet-theme-turva table{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}duet-table td{-webkit-hyphens:auto;hyphens:auto;color:rgb(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 span.duet-table-cell-heading{display:none}.duet-table-flattened table,.duet-table-flattened thead,.duet-table-flattened tbody,.duet-table-flattened tfoot,.duet-table-flattened th,.duet-table-flattened td,.duet-table-flattened tr{display:block}.duet-table-flattened thead tr{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-table-flattened td{line-height:1.25}.duet-table-flattened td:not(:last-child){margin-bottom:16px !important}.duet-table-flattened td span.duet-table-cell-heading{margin-bottom:4px !important;display:block;font-size:1rem;font-weight:600;color:rgb(0, 41, 77)}.duet-table-flattened.duet-theme-turva td span.duet-table-cell-heading{color:rgb(23, 28, 58)}.duet-table-flattened tbody td,.duet-table-flattened tbody th,.duet-table-flattened tfoot td{padding:0 !important;text-align:left !important}.duet-table-flattened tbody th{font-weight:600;line-height:1.25;color:rgb(101, 119, 135);text-align:left}.duet-table-sticky thead th{position:sticky;top:0;background:rgb(255, 255, 255)}.duet-table-striped td,.duet-table-striped th{padding:20px !important}@media (max-width: 35.9375em){.duet-table-striped td,.duet-table-striped th{padding:20px 12px !important}}.duet-table-striped tbody th{background:rgb(255, 255, 255)}.duet-table-striped.duet-table-sticky thead th{border-bottom:1px solid rgb(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}';const j=[{type:"default",system_message:"unknown error",message:{fi:"Tapahtui tuntematon virhe, ole hyvä ja yritä uudelleen.",sv:"Ett okänt fel uppstod, försök igen.",en:"An unknown error occured, please try again."}},{type:"400",system_message:"Bad Request: The server could not understand the request due to invalid syntax.",message:{fi:"Tiedostoa ei hyväksytty.",sv:"Servern avvisade din fil.",en:"The server rejected your file."}},{type:"401",system_message:"Not Authenticated: The client must authenticate itself to get the requested response...",message:{fi:"Vain kirjautunut käyttäjä voi lähettää tiedostoja.",sv:"Du måste vara inloggad för att ladda upp filer.",en:"You need to be logged in to upload files."}},{type:"403",system_message:"No Access: The client does not have access rights to the content.",message:{fi:"Ei oikeuksia lähettää tiedostoja.",sv:"Du har inte rätt åtkomsträttigheter för att ladda upp filer.",en:"You do not have the correct access rights to upload files."}},{type:"413",system_message:"Payload too large",message:{fi:"Tiedosto oli liian vastaanotettavaksi.",sv:"Filen var för stor för servern att hantera.",en:"The file was to large for the server to handle."}},{type:"415",system_message:"Unsupported media type",message:{fi:"Tiedoston tyyppi oli väärä.",sv:"Servern avvisade filen eftersom den hade fel typ.",en:"The server rejected the file because it had the wrong type."}},{type:"429",system_message:"Too many request from same address",message:{fi:"Liian monta yritystä, ole hyvä ja yritä myöhemmin uudelleen.",sv:"Servern har fått många förfrågningar från dig, försök igen senare.",en:"The server has received to many request from you, please try again later."}},{type:"500",system_message:"Internal Server Error",message:{fi:"Palvelin ilmoitti tuntemattomasta virheestä ja lataus epäonnistui.",sv:"Servern rapporterade ett okänt fel och uppladdningen misslyckades.",en:"The server reported an unknown error and the upload failed."}},{type:"duet-upload-100",system_message:"File extension not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den type.",en:"You cannot upload files with that extension."}},{type:"duet-upload-001",system_message:"File transfer failed",message:{fi:"Tiedoston lähetys keskeytyi, ole hyvä ja yritä uudelleen.",sv:"Din anslutning till servern avbröts, försök igen.",en:"Your connection to the server was interrupted, try again."}},{type:"duet-upload-101",system_message:"File mimetype not allowed",message:{fi:"Tiedoston tyyppi ei ole sallittu.",sv:"Du kan inte ladda upp filer av den typ.",en:"You cannot upload files of that type."}},{type:"duet-upload-201",system_message:"File is too large",message:{fi:"Tiedosto on liian iso.",sv:"Filen är större än tillåtet.",en:"The file is larger than permitted."}},{type:"duet-upload-202",system_message:"The combined size of all files is too large",message:{fi:"Tiedostojen yhteenlaskettu koko on liian iso.",sv:"Du har nått den maximala kombinerade filstorleken.",en:"You have reached the maximum combined filesize."}},{type:"duet-upload-203",system_message:"Files to upload exceed total byte size limit",message:{fi:"Yritit lisätä tiedostoja, jotka ylittäisivät suurimman sallitun yhteenlasketun koon.",sv:"Du försökte lägga till filer som skulle överskrida den maximala kombinerade storleken.",en:"You tried to add files that would exceed the maximum combined size."}},{type:"duet-upload-301",system_message:"The maximum file limit has been reached",message:{fi:"Liitteiden maksimimäärä saavutettu.",sv:"Maximalt antal bilagor har uppnåtts.",en:"Maximum number of attachments reached."}},{type:"duet-upload-302",system_message:"Files to upload exceeds limits",message:{fi:"Et voi lähettää enempää kuin enimmäismäärän liitteitä.",sv:"Du kan inte ladda upp fler än det maximala antalet bilagor.",en:"You can't upload more than maximum number of attachments."}}],$={fi:"Liiteluettelo",sv:"Lista över bilagor",en:"Attachments list"},M=({label:e,categoryLabel:i})=>t("div",{class:"items-header",tabindex:"-1","aria-label":p($)},i&&t("duet-heading",{class:"category-header",border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},p(i)),t("duet-heading",{class:{"filename-header":!0,"no-category":!i},border:"solid",color:"gray-darker",level:"h3","visual-level":"h6",weight:"semibold",margin:"none","aria-hidden":"true"},p(e))),z=(t,e,i)=>{const{allowedMimetypes:a,allowedExtensions:s,maxBytes:d}=e;let l=!1,o=k("default",i);if(t){const{name:e,type:n,size:r}=t,h=((t,e)=>{if(!e||!t)return!0;const i=e.split(",");let a=!1;return i.forEach((e=>{const i=e.split("/"),s=t.split("/");i[0]!==s[0]||i[1]!==s[1]&&"*"!==i[1]||(a=!0)})),a})(n,a),u="all"===s||""===s||" "===s||void 0===s||((t,e)=>{if(!e)return!0;const i=t.split(".");return e.split(",").includes(i[i.length-1])})(e.toLowerCase(),s),b=((t,e)=>!e||!t||e>=t)(r,d);h||(o=k("duet-upload-101",i)),u||(o=k("duet-upload-100",i)),b||(o=k("duet-upload-201",i)),l=h&&u&&b}else l=!1;return{valid:l,errorMessage:l?void 0:p(o.message),errorSystem:l?void 0:o.system_message,errorType:l?void 0:o.type}},F=({payload:t,options:e,onFailure:i,onSuccess:a,onProgress:s})=>{const{type:d="POST",xhr:l,uri:o,argument:n=null,headers:r=null}=e;l.open(d,`${o}${n||""}`,!0);const{data:h,name:u}=t;return r&&Object.keys(r).forEach((t=>{l.setRequestHeader(t,r[t])})),"POST"===d&&(l.onreadystatechange=()=>{l.readyState===XMLHttpRequest.DONE&&l.status>=200&&l.status<300&&a(l,u,l.status),l.readyState===XMLHttpRequest.DONE&&l.status>=300&&l.status<999&&i(l,u,l.status)},s(u)),l.send(h),l},C=class{constructor(a){e(this,a),this.duetChange=i(this,"duetChange",3),this.duetBlur=i(this,"duetBlur",7),this.duetFocus=i(this,"duetFocus",7),this.duetReady=i(this,"duetReady",7),this.duetDone=i(this,"duetDone",3),this.duetState=i(this,"duetState",3),this.duetDelete=i(this,"duetDelete",3),this.duetCancel=i(this,"duetCancel",3),this.duetProgress=i(this,"duetProgress",3),this.duetUpload=i(this,"duetUpload",3),this.linkClick=i(this,"linkClick",3),this.buttonId=v("DuetButton"),this.labelId=v("DuetLabel"),this.uploadId=v("DuetUpload"),this.filesInProgress=new Map,this.fileMaxReached=!1,this.bytesMaxReached=!1,this.filesToUploadExceedsLimit=!1,this.filesToUploadTotalSizeIsAboveMax=!1,this.internalStatusMessageLabel=void 0,this.itemRefs=new Map,this.DefaultGroups={inprogress:"inprogress",success:"success",pending:"pending",failure:"failure"},this.kick=n((()=>{this.tick=Date.now()}),30),this.categoryLabel={en:"Category",sv:"Filtyp",fi:"Tiedostotyyppi"},this.listenForActionEvents=()=>{this.element.addEventListener("duetActionEvent",(t=>{const e=t.detail,{action:i,id:a,originalEvent:s}=e;switch(i){case"delete":this.onDelete(a,s);break;case"cancel":this.onCancel(a,s)}}))},this.verifyValidity=()=>{const{invalid:t,valid:e}=this.getFilesAsArray(),i=this.valid;this.valid=0===t.length&&0!==e.length,this.valid!==i&&this.duetState.emit({originalEvent:void 0,data:{valid:this.valid,from:"componentWillRender"},component:"duet-upload"})},this.getGroupFromItemData=t=>t.valid&&100===t.progress?this.DefaultGroups.success:t.progress>0&&100!==t.progress?this.DefaultGroups.inprogress:t.valid?t.pending?this.DefaultGroups.pending:t.group?t.group:"none":this.DefaultGroups.failure,this.mapFilesToUploadItems=(e,i,a,s)=>i===this.DefaultGroups.success?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,s),type:"success",data:e,showLinks:this.showLinks,linkClickEvent:this.emitEvent?this.linkClick:void 0,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.inprogress?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,s),type:"inprogress",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.pending?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,s),type:"pending",data:e,showLinks:this.showLinks,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):i===this.DefaultGroups.failure?t("duet-upload-item",{theme:this.theme,actions:this.getActions(i,s),type:"failure",data:e,showLinks:this.showLinks,errorCodes:this.errorCodes,categoryLabel:this.categoryLabel,label:this.uploadedItemsHeaderLabel,showCategory:a,buttonTitles:this.processedButtonTitles,ref:t=>{this.itemRefs.set(e.uid,t)}}):e.group?e.html:"none",this.genHashName=()=>Date.now().toString(36)+Math.random(),this.updateValueInMap=(t,e,i,a=!0)=>{try{const a=this.files.get(t);a[e]=i,this.files.set(t,a),this.external&&"url"!==e&&this.trackProgress(t,"uploaded"===e)}catch(t){}a&&this.kick()},this.updateProgress=(t,e)=>{t.lengthComputable?(i=>{this.updateValueInMap(e,"progress",i),this.onProgress(e,i,t)})(t.loaded/t.total*100):console.log("cant read progress")},this.trackProgress=(t,e=!1)=>{e?this.filesInProgress.delete(t):this.filesInProgress.set(t,"inprogress"),0===this.filesInProgress.size&&this.onDone()},this.getFilesAsArray=()=>{const t=[],e=[];return this.files.forEach((i=>{i.valid&&!i.deleted?t.push(i):i.valid||i.deleted||e.push(i)})),{valid:t,invalid:e}},this.resetFormFields=()=>{this.nativeInput.value=""},this.startUpload=async(t,e)=>{const{bytesMaxReached:i,fileMaxReached:a}=this.validateTotals();i||a?this.kick():(this.metaData=e,this.nativeInput.click(),this.onUpload(t,e),t.stopPropagation(),t.preventDefault())},this.transferComplete=t=>{this.updateValueInMap(t,"progress",100,!1),this.trackProgress(t,!0)},this.transferDone=(t,e,i)=>{this.updateValueInMap(e,"status",i,!1),this.updateValueInMap(e,"uploaded",!0,!1);try{const i=JSON.parse(t.response);this.updateValueInMap(e,"url",i.url)}catch(t){this.updateValueInMap(e,"url",null),console.error("Server did not respond with expected response {url: string}")}},this.transferDoneWithFailure=(t,e,i)=>{try{const{error:i}=JSON.parse(t.response);this.updateValueInMap(e,"error",{message:i.message,type:i.type},!1)}catch(t){console.error("Server did not respond with expected response error:{message: string, type: int}"),this.updateValueInMap(e,"error",{type:i},!1)}this.updateValueInMap(e,"valid",!1,!0)},this.transferFailed=t=>{this.updateValueInMap(t,"error",w("duet-upload-001",this.errorCodes))},this.transferCanceled=t=>{this.files.delete(t),this.validateTotals(t),this.kick()},this.validateTotals=t=>{const e=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&t.size&&(i+=t.size)})),i>=e))})(0,this.maxBytesTotal),i=((t,e)=>{let i=0;return!!(e&&(this.files.forEach((t=>{t.valid&&i++})),i>=e))})(0,this.maxFiles);return e&&t&&this.updateValueInMap(t,"error",w("duet-upload-202",this.errorCodes),!1),i&&t&&this.updateValueInMap(t,"error",w("duet-upload-301",this.errorCodes),!1),this.bytesMaxReached=e,this.fileMaxReached=i,{bytesMaxReached:e,fileMaxReached:i}},this.uploadFile=async(t,e=!1,i)=>{!e&&this.deferUpload?(this.updateValueInMap(t.item.name,"pending",!0,!1),this.updateValueInMap(t.item.name,"group","pending",!0)):e&&(this.updateValueInMap(t.item.name,"pending",!1,!1),this.updateValueInMap(t.item.name,"group",void 0,!0));try{if(!this.deferUpload||e){const e=new FormData;e.append("file",t.item),i&&e.append("key",i),e.append("uid",t.uid),e.append("name",t.item.name),e.append("metadata",JSON.stringify({uid:t.uid,url:this.uri,size:t.item.size,meta:t.meta})),t.xhr=await this.makeXHRPostRequest(e)}}catch(e){this.updateValueInMap(t.item.name,"valid",!1,!1)}},this.uploadPendingFiles=()=>{for(const[t,e]of Array.from(this.files.entries()))"pending"===e.group&&!0===e.pending&&this.uploadFile(e,!0,t)},this.getItemFromUID=t=>{for(const[e,i]of Array.from(this.files.entries()))if(i.uid===t)return{value:i,key:e};return null},this.handleExternalUploadButton=(t,e)=>{this.externalUploadButton&&(this.externalUploadButton.disabled=!(!t&&!e))},this.onDelete=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();this.handleExternalUploadButton(s,d),this.kick(),this.duetDelete.emit({originalEvent:e,data:{deletion:a},component:"duet-upload"}),this.external||a.pending||this.makeXHRDeleteRequest(a),this.resetFormFields()},this.onCancel=(t,e)=>{const i=this.getItemFromUID(t).key,a=this.files.get(i);this.files.delete(i);const{bytesMaxReached:s,fileMaxReached:d}=this.validateTotals();if(this.handleExternalUploadButton(s,d),!this.external){const{xhr:t}=a;t&&t.abort()}this.kick(),this.resetFormFields(),this.duetCancel.emit({originalEvent:e,data:{cancelled:a},component:"duet-upload"})},this.onUpload=(t,e)=>{this.duetUpload.emit({originalEvent:t,metaData:e,component:"duet-upload"})},this.onBlur=t=>{this.duetBlur.emit({originalEvent:t,component:"duet-upload"})},this.onProgress=(t,e,i)=>{this.duetChange.emit({originalEvent:i,data:{key:t,percentComplete:e},component:"duet-upload"})},this.onFocus=t=>{this.duetFocus.emit({originalEvent:t,component:"duet-upload"})},this.onReady=()=>{this.duetReady.emit({component:"duet-upload"})},this.onDone=()=>{this.duetDone.emit({component:"duet-upload",data:{files:this.files}})},this.filterMap=()=>{const t=Array.from(this.files.values()),e=[],i=[],a=[],s=[];let d=!1;return t.forEach((t=>{const l=this.getGroupFromItemData(t);t.meta&&t.meta.badges&&(d=!0),l===this.DefaultGroups.success?s.push({uid:t.uid,data:t}):l===this.DefaultGroups.inprogress?e.push({uid:t.uid,data:t}):l===this.DefaultGroups.pending?a.push({uid:t.uid,data:t}):l===this.DefaultGroups.failure?i.push({uid:t.uid,data:t}):t.group&&e.push({uid:t.uid,data:t})})),{pending:a,failure:i,success:s,inprogress:e,hasCategory:d}},this.getActions=(t,e)=>e.filter((e=>e.map.includes(t))),this.renderUploadedItems=()=>{this.itemRefs.clear();const e=this.filterMap(),i=e.hasCategory,a=this.hideCancelButton?this.actions.filter((t=>"cancel"!==t.name)):this.actions,s=this.groups.map((s=>{const l=e[s.id];if(null==l?void 0:l.length)return t(d,null,!this.hideGroups&&t(M,{categoryLabel:i?this.categoryLabel:void 0,label:s.label}),l.map((t=>this.mapFilesToUploadItems(t.data,s.id,i,a))))}));return t(d,null,this.showUploadedItemsHeader&&t(M,{categoryLabel:i?this.categoryLabel:void 0,label:this.uploadedItemsHeaderLabel}),s)},this.tick=Date.now(),this.accessibleActiveDescendant=void 0,this.accessibleDescribedBy=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.external=!1,this.middleware=null,this.deferUpload=!1,this.hideButton=!1,this.actions=[{icon:"action-delete",color:"color-danger",size:"x-small",background:"gray-lightest",name:"delete",map:["success","failure"],label:{fi:"Poista tiedosto",en:"Delete the file",sv:"Ta bort filen"}},{icon:"navigation-close",color:"primary",size:"x-small",background:"gray-lightest",name:"cancel",map:["inprogress","pending"],label:{fi:"Keskeytä lähetys",en:"Cancel the upload",sv:"Stop överföringen"}}],this.uri=void 0,this.showLinks=!1,this.caption=void 0,this.statusLabelDefaults={fi:{inProgress:"Lähetetään {filesUploaded}, yhteensä lähetettävänä {filesTotal}.",inProgressWithErrors:"Lähetetään {filesInProgress}, lähetetty {filesUploaded}, yhteensä lähetettävänä {filesTotal}, {filesWithErrors} epäonnistui",done:"Lähetys valmis, {filesTotal} lisätty onnistuneesti",doneWithErrors:"Lähetys valmis, {filesUploaded} lisätty onnistuneesti, {filesWithErrors} epäonnistui",files:"tiedostoa",file:"tiedosto"},sv:{inProgress:"Laddar upp {filesUploaded} av {filesTotal}",inProgressWithErrors:"Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades",done:"Uppladdningen slutförd, {filesTotal} har lagts till",doneWithErrors:"Uppladdningen slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades",files:"filer",file:"fil"},en:{inProgress:"Uploading {filesUploaded} of {filesTotal}",inProgressWithErrors:"Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed",done:"Upload completed, {filesTotal} added successfully",doneWithErrors:"Upload completed, {filesUploaded} added successfully, {filesWithErrors} failed.",files:"files",file:"file"}},this.statusMessageLabel=p(this.statusLabelDefaults),this.buttonLabelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add an attachment"},this.buttonLabel=p(this.buttonLabelDefaults),this.accessibleButtonLabel=void 0,this.theme="",this.disabled=!1,this.identifier=void 0,this.margin="auto",this.required=!1,this.alignment="middle",this.hideGroups=!1,this.files=new Map,this.valid=!this.required,this.labelDefaults={fi:"Lisää liite",sv:"Lägg till en bilaga",en:"Add attachments"},this.label=p(this.labelDefaults),this.descriptionDefaults={en:"You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytestotal} of files at a time, and add up to {maxfiles} attachments at a time each no larger than {maxbytes}.",sv:"Du kan bifoga följande filtyper: {filetypes} - samt de vanligaste videofilerna. Du kan ladda upp {maxbytestotal} av filer åt gången, och lägga till upp till {maxfiles} bilagor åt gången varje inte större än {maxbytes}.",fi:"Voit liittää seuraavat tiedostotyypit: {filetypes} - sekä yleisimmät videotiedostot. Voit lähettää {maxbytestotal} tiedostoa kerrallaan, ja lisätä enintään {maxfiles} liitettä kerrallaan, jokainen enintään {maxbytes} kokoisena."},this.description=p(this.descriptionDefaults),this.fileListEmptyDefaults={fi:"Ei vielä lisättyjä tiedostoja.",sv:"Inga filer har lagts till ännu.",en:"No files added yet."},this.fileListEmpty=p(this.fileListEmptyDefaults),this.error="",this.errorCodes=j,this.name=void 0,this.maxBytes=2e8,this.maxBytesTotal=void 0,this.maxFiles=99,this.allowedExtensions="all",this.allowedMimetypes="",this.multiple=!0,this.limitSelection=!1,this.hideCancelButton=!1,this.value=void 0,this.externalUploadButtonId=void 0,this.captionOnBottom=!1,this.showUploadedItemsHeader=!1,this.uploadedItemsHeaderLabel={fi:"Ladattu tiedosto",sv:"Lägg till en bilaga",en:"Uploaded file"},this.headerHeadingLevel="h3",this.hideHeader=!1,this.emitEvent=!1,this.actionButtonTitles={cancel:!1,delete:!1},this.renameDuplicates=!1,this.groups=[{id:this.DefaultGroups.success,label:{fi:"Valmiit tiedostot",sv:"Files success",en:"Files success"}},{id:this.DefaultGroups.failure,label:{fi:"Tiedostot, joissa on virheitä",sv:"Filer med fel",en:"Files with errors"}},{id:this.DefaultGroups.inprogress,label:{fi:"Kesken olevat tiedostot",sv:"Filer inprogress",en:"Files inprogress"}},{id:this.DefaultGroups.pending,label:{en:"Files to upload",sv:"Filer att ladda",fi:"Ladattavat tiedostot"}}]}watchValidHandler(t,e){t!==e&&this.kick()}componentWillLoad(){this.internalStatusMessageLabel="string"==typeof this.statusMessageLabel?c(this.groups):this.statusMessageLabel,l(this),this.listenForActionEvents(),this.onReady(),this.externalUploadButton=document.querySelector(`#${this.externalUploadButtonId}`),this.processedButtonTitles=x(this.actionButtonTitles)}componentWillRender(){this.verifyValidity()}async setFocus(t){this.nativeInput&&this.nativeInput.focus(t)}async upload(t){const{bytesMaxReached:e,fileMaxReached:i}=this.validateTotals();if(e||i)return this.handleExternalUploadButton(e,i),void this.kick();this.metaData=t,this.nativeInput.click()}async uploadPending(){this.uploadPendingFiles()}async refresh(){this.kick(),await this.setFocus()}async getFiles(){return!(!this.files||0===this.files.size)&&this.getFilesAsArray()}async updateValue(t,e,i){this.updateValueInMap(t,e,i)}async focusActionButton(t){var e;await(null===(e=this.itemRefs.get(t))||void 0===e?void 0:e.focusActionButton())}render(){const e=this.identifier||this.uploadId,i=Math.round((this.maxBytesTotal?this.maxBytesTotal:this.maxBytes*this.maxFiles)/1024/1024),s=Math.round(this.maxBytes/1024/1024);let l=this.description.replace(/{maxfiles}/g,this.maxFiles.toString());return l=l.replace(/{maxbytes}/g,`${s.toString()} MB`),l=l.replace(/{maxbytestotal}/g,`${i.toString()} MB`),l=l.replace(/{filetypes}/g,this.allowedExtensions.split(",").join(", ")),this.externalUploadButton&&(this.externalUploadButton.accessibleLabel=`${this.externalUploadButton.innerText}. ${l}`),t(a,{key:"1fffd7c0a260c23f1c330eb08b9fdfc30f37a9a1",class:{"duet-m-0":"none"===this.margin}},t("duet-fieldset",{key:"e197c24d5a1632aaaac794a4e1d77907966e03a0","label-heading-level":this.headerHeadingLevel,"label-hidden":this.hideHeader,label:this.label},t("slot",{key:"4b8f19faef9a6ddf6985f4a6d74fa53f5b495c41",name:"header"}),!this.files.size&&t("duet-empty-state",{key:"c85f948d069554ecd23262b6aafa29a2ea9fccc3",id:this.labelId,part:this.identifier?`${this.identifier}-empty-state`:"duet-upload-empty-state",icon:"messaging-attachment"},t("duet-paragraph",{key:"ba5bc112450715996ddc1eecc729285319f9297b",margin:"none"},this.fileListEmpty)),!!this.files.size&&t("slot",{key:"b76d9a2f51f0bd1439acd7cb30a238cead9ffe1f",name:"fileheader"}),!!this.files.size&&t("duet-upload-aria-status",{key:"568e8e06757a0e08e14716e69861e3f233cbf2c4",invalid:this.getFilesAsArray().invalid.length,valid:this.getFilesAsArray().valid.length,inprogress:this.filesInProgress.size,total:this.files.size,statusMessageLabel:this.internalStatusMessageLabel}),!!this.files.size&&this.renderUploadedItems(),!!this.files.size&&t("slot",{key:"534c6bd31b64a7e3352b4ab57d9c2d74f8b585b5",name:"filefooter"}),t("slot",{key:"53d1caf7a4725aae80ed9734db2a9ca76888128d",name:"uploadfooter"}),this.captionOnBottom&&t("duet-caption",{key:"dbf302852c9f56952e4c510a73884f6aa57c63bb",margin:"none",size:"small"},t("div",{key:"5c042c4a5ec8ba2338e5f59f41829a0bf09def86",class:"upload-bottom-caption"},l)),t("slot",{key:"3a882d40064790a16af1f6b503da0dc281df31db",name:"afterfooter"}),!this.hideButton&&t(d,{key:"7d15d7e6e7fff5286c4b39506ab45d4afb1a46b0"},t("duet-spacer",{key:"9c10df439e588302c1d9141cd74e06b55a13aacc",size:"large"}),t("duet-button",{key:"32abaa4a27ad8ff0833fec5df3eb84c91a53571b",id:this.buttonId,onClick:this.startUpload,"accessible-controls":e,disabled:this.fileMaxReached,"accessible-label":this.accessibleButtonLabel||`${this.buttonLabel}. ${l}`,"accessible-owns":e,size:"small",variation:"secondary",fixed:!0,icon:"action-add-circle",part:this.identifier?`${this.identifier}-button-upload`:"duet-upload-button-upload"},this.buttonLabel)),(this.fileMaxReached||this.bytesMaxReached||this.filesToUploadExceedsLimit||this.filesToUploadTotalSizeIsAboveMax)&&t(d,{key:"714dc5703ac4d5e3238fca2691c2608f40a8c381"},t("duet-spacer",{key:"532a4bee3077d383db9ef6f7968593e09c1cf503",size:"medium"}),t("duet-alert",{key:"d233e8abac003d1e9cea525b7ec2868fe5365cd8",part:this.identifier?`${this.identifier}-error-notification`:"duet-upload-error-notification"},this.fileMaxReached&&w("duet-upload-301",this.errorCodes),this.bytesMaxReached&&w("duet-upload-202",this.errorCodes),this.filesToUploadExceedsLimit&&w("duet-upload-302",this.errorCodes),this.filesToUploadTotalSizeIsAboveMax&&w("duet-upload-203",this.errorCodes))),t("duet-visually-hidden",{key:"d7291fd3058c60bc3799b54c936ae85135c9f855","aria-hidden":"true"},t("input",{key:"8b8cf4a76f5da959a5ab9b15bf6c6fa0fd8b594d",ref:t=>{this.nativeInput=t},accept:this.limitSelection?`${this.allowedMimetypes},${this.allowedExtensions}`:void 0,onBlur:this.onBlur,onFocus:this.onFocus,onChange:t=>this.onChange(t),type:"file",class:{"duet-upload":!0},disabled:this.disabled,"aria-hidden":"true",required:this.required,name:this.name,id:this.identifier,multiple:this.multiple,tabIndex:-1}))))}makeXHRPostRequest(t){const e=new XMLHttpRequest,i=t.get("name");e.upload.addEventListener("progress",(t=>{this.updateProgress(t,i)})),e.upload.addEventListener("load",(()=>{this.transferComplete(i)})),e.upload.addEventListener("error",(()=>{this.transferFailed(i)})),e.upload.addEventListener("abort",(()=>{this.transferCanceled(i)}));let a={payload:{data:t,name:i},options:{type:"POST",uri:this.uri,xhr:e,argument:null,headers:void 0},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(a=this.middleware(a)),F(a)}makeXHRDeleteRequest(t){const{uid:e,item:i}=t,a=new XMLHttpRequest;let s={payload:{data:null,name},options:{type:"DELETE",xhr:a,uri:this.uri,argument:`?key=${e}&name=${i.name}`,headers:{"x-fileuid":e,"x-filename":i.name}},onFailure:this.transferDoneWithFailure,onSuccess:this.transferDone,onProgress:this.trackProgress};return this.middleware&&(s=this.middleware(s)),F(s)}escapeSpecialCharacters(t){return(t+"").replace(/[\\"'(){}\[\]*?$^+]/g,"\\$&").replace(/\u0000/g,"\\0")}getRenamedFileName(t,e){const i=new RegExp(`${this.escapeSpecialCharacters(t)} \\(\\d+\\).${e}`),a=Array.from(this.files.entries()).map((t=>{const[e,i]=t;return e})).filter((a=>i.test(a)||a===`${t}.${e}`)).sort(((t,e)=>t.split(".").slice(0,-1).join(".")>e.split(".").slice(0,-1).join(".")?1:-1)).pop().split(".").slice(0,-1).join(".");if(a===t)return`${t} (1).${e}`;const s=parseInt(a.split("(").pop().slice(0,-1));return`${t} (${s+1}).${e}`}renameFiles(t){return t.map((t=>{if(this.files.get(t.name)){const e=t.name.split("."),i=e.pop(),a=e.join("."),s=this.getRenamedFileName(a,i);return new File([t],s,{type:t.type,lastModified:t.lastModified})}return t}))}async onChange(t){var e;let i=Array.from(null===(e=this.nativeInput)||void 0===e?void 0:e.files);if(this.filesToUploadExceedsLimit=!1,this.files.size+i.length>this.maxFiles)return this.filesToUploadExceedsLimit=!0,void this.kick();if(this.filesToUploadTotalSizeIsAboveMax=!1,((t,e,i)=>{let a=0;return!!(i&&(this.files.forEach((t=>{t.valid&&t.size&&(a+=t.size)})),e.forEach((t=>{t.size&&(a+=t.size)})),a>=i))})(0,i,this.maxBytesTotal))return this.filesToUploadTotalSizeIsAboveMax=!0,void this.kick();if(i){this.renameDuplicates&&(i=this.renameFiles(i));for(const t of i){const{valid:e,errorMessage:i,errorType:a,errorSystem:s}=z(t,{maxBytes:this.maxBytes,allowedExtensions:this.allowedExtensions,allowedMimetypes:this.allowedMimetypes},this.errorCodes),d={uid:this.genHashName(),item:t,size:t.size,meta:this.metaData,uploaded:!1,valid:e,error:{type:e?void 0:a,message:e?void 0:i,system_message:e?void 0:s},progress:0,deleted:!1,xhr:!1,url:!1};this.files.set(t.name,d),e&&!this.external?await this.uploadFile(d):e&&this.external?(this.updateValueInMap(d.item.name,"pending",!0,!1),this.updateValueInMap(d.item.name,"group","pending",!0)):e||this.updateValueInMap(t.name,"valid",!1,!0),this.kick()}}this.resetFormFields(),this.metaData=void 0,this.duetChange.emit({originalEvent:t,data:{files:this.files},component:"duet-upload"})}get element(){return s(this)}static get watchers(){return{valid:["watchValidHandler"]}}};C.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:20px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:16px;line-height:1.4rem}.items-header{display:none;flex-direction:row;margin-bottom:0}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:16px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(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}";export{L as duet_editable_table,E as duet_table,C as duet_upload}
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{c(i.next(e))}catch(e){a(e)}}function u(e){try{c(i["throw"](e))}catch(e){a(e)}}function c(e){e.done?n(e.value):r(e.value).then(o,u)}c((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return c([e,t])}}function c(u){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(i=1,r&&(a=u[0]&2?r["return"]:u[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;if(r=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;r=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];r=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-d3101c8a.system.js","./p-e216bea4.system.js"],(function(e){"use strict";var t,n,i,r,a;return{setters:[function(e){t=e.r;n=e.h;i=e.H;r=e.g},function(e){a=e.i}],execute:function(){var o='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}.duet-menu-bar-item{position:relative;display:flex;gap:8px;align-items:center;justify-content:center;height:100%;padding:0 12px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:inherit;font-weight:inherit;color:inherit;color:inherit;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer}.duet-menu-bar-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-menu-bar-item:focus,.duet-menu-bar-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-menu-bar-item .leading-icon,.duet-menu-bar-item .trailing-icon{width:20px;height:20px}@media (min-width: 62em){.duet-menu-bar-item .leading-icon,.duet-menu-bar-item .trailing-icon{width:16px;height:16px}}.duet-menu-bar-item .trailing-icon.trailing-icon-arrow{width:7px;height:7px}.duet-menu-bar-item[aria-expanded=true]{color:rgb(0, 119, 179)}.duet-menu-bar-item[aria-expanded=true] .trailing-icon.rotate{transform:rotate(180deg)}.duet-menu-bar-item.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-menu-bar-item.duet-theme-turva[aria-expanded=true]{color:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-item{padding:0 16px}}@media (min-width: 76.25em){.duet-menu-bar-item{padding:0 28px}}.duet-menu-bar-item.active{color:rgb(0, 119, 179)}.duet-menu-bar-item.active::after{position:absolute;top:auto;bottom:2px;left:0;z-index:1;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(2px)}@media (min-width: 62em){.duet-menu-bar-item.active::after{z-index:auto;height:2px}}.duet-menu-bar-item.active.duet-theme-turva{color:rgb(198, 12, 48)}.duet-menu-bar-item.active.duet-theme-turva::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-menu-bar-item:hover{color:rgb(0, 119, 179)}.duet-menu-bar-item:hover.duet-theme-turva{color:rgb(198, 12, 48)}}';var u=o;var c=e("duet_menu_bar_item",function(){function e(e){t(this,e);this.theme="";this.active=false;this.url=undefined;this.leadingIcon=undefined;this.trailingIcon=undefined;this.accessibleLabel=undefined;this.accessibleExpanded=undefined;this.accessiblePopup="false"}e.prototype.componentWillLoad=function(){a(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){setTimeout((function(){return t.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";return n(i,{key:"8e7241649b951194c60825a37fe5510977544e0c",role:"listitem"},n(t,{key:"5b09cb58b5161434694f4aed6d07d0c4e1b1cd55",ref:function(t){return e.itemElement=t},class:{"duet-menu-bar-item":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.url,role:"".concat(t==="a"?"link":"button"),"aria-current":this.active?"true":"false","aria-label":this.accessibleLabel,"aria-expanded":this.accessibleExpanded!=null?this.accessibleExpanded.toString():undefined,"aria-haspopup":this.accessiblePopup!=null?this.accessiblePopup.toString():undefined},this.leadingIcon&&n("duet-icon",{key:"09390cfac47f512732ef0e06d619dbbeeaf78e85",class:"leading-icon",size:"auto",name:this.leadingIcon,margin:"none",theme:this.theme,color:"currentColor"}),n("slot",{key:"c40f41f6be5fa7273bcb2c74dc7eabbf99b8497d"}),this.trailingIcon&&n("duet-icon",{key:"f5df545b4fab627ee14271992a8372992a78268d",class:{"trailing-icon":true,"trailing-icon-arrow":this.trailingIcon==="action-arrow-down-small",rotate:this.trailingIcon==="action-arrow-down-small"&&this.accessibleExpanded},theme:this.theme,name:this.trailingIcon,margin:"none",size:"auto",color:"currentColor"})))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return e}());c.style=u}}}));
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function c(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function o(e){try{d(n.next(e))}catch(e){r(e)}}function a(e){try{d(n["throw"](e))}catch(e){r(e)}}function d(e){e.done?i(e.value):c(e.value).then(o,a)}d((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,c,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return d([e,t])}}function d(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(i=0)),i)try{if(n=1,c&&(r=a[0]&2?c["return"]:a[0]?c["throw"]||((r=c["return"])&&r.call(c),0):c.next)&&!(r=r.call(c,a[1])).done)return r;if(c=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;c=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];c=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-d3101c8a.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-34d7dd10.system.js"],(function(e){"use strict";var t,i,n,c,r,o,a,d,u;return{setters:[function(e){t=e.r;i=e.c;n=e.h;c=e.H;r=e.g},function(e){o=e.i},function(e){a=e.c},function(e){d=e.s;u=e.u}],execute:function(){var h='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;position:relative;display:inline-block;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.input){margin-top:6px !important;margin-right:0 !important;margin-bottom:6px !important;margin-left:4px !important}.duet-chip-container{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:1px;hyphens:none;line-height:1.1;color:rgb(0, 41, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-color:rgb(207, 210, 212);border-style:solid;border-width:1px;border-radius:8px;transition:background-color 300ms ease, color 300ms ease, border-color 300ms ease}.duet-chip-container.duet-p-0{padding:0 !important}.duet-chip-container.duet-m-0{margin:0 !important}.duet-chip-container.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255);border-color:rgb(207, 207, 209)}.duet-chip-container.duet-theme-turva:hover{border-color:rgb(198, 12, 48)}.duet-chip-container:hover{padding:0 !important;border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-disabled{color:rgb(101, 119, 135) !important;cursor:default;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-chip-container.duet-chip-disabled.duet-theme-turva{color:rgb(116, 116, 117) !important;background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled:hover{background:rgb(245, 248, 250);border-color:rgb(245, 248, 250)}.duet-chip-container.duet-chip-disabled:hover.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-disabled button,.duet-chip-container.duet-chip-disabled label{cursor:default}.duet-chip-container button,.duet-chip-container label{display:flex;align-items:center;width:100%;height:100%;padding:8px 14px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:600;line-height:1rem;color:rgb(0, 41, 77) !important;cursor:pointer}.duet-chip-container button:focus,.duet-chip-container label:focus{outline:none}.duet-chip-container .duet-chip-icon-container{display:flex;align-items:center;height:16px;padding:0;transition:padding 300ms ease}.duet-chip-container.duet-chip-has-icon .duet-chip-icon-container{width:24px;height:16px;padding-right:10px}.duet-chip-container.duet-chip-has-icon.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-has-icon.duet-chip-radio-checked .duet-chip-icon-container{padding-right:11px;padding-left:3px}.duet-chip-container.duet-chip-has-icon button,.duet-chip-container.duet-chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-has-popup button,.duet-chip-container.duet-chip-has-popup label{padding-right:8px}.duet-chip-container duet-icon:not(.check-mark){width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container duet-icon.check-mark{width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked,.duet-chip-container.duet-chip-radio-checked{padding:0 !important;background:rgb(230, 242, 248);border-color:rgb(0, 119, 179);border-width:2px}.duet-chip-container.duet-chip-filter-checked:hover,.duet-chip-container.duet-chip-radio-checked:hover{background:rgb(205, 229, 241)}.duet-chip-container.duet-chip-filter-checked.chip-has-icon button,.duet-chip-container.duet-chip-filter-checked.chip-has-icon label,.duet-chip-container.duet-chip-radio-checked.chip-has-icon button,.duet-chip-container.duet-chip-radio-checked.chip-has-icon label{padding-left:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container{padding-right:10px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon:not(.check-mark),.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon:not(.check-mark){width:0;overflow:hidden;visibility:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon.check-mark,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon.check-mark{width:auto;visibility:visible;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(198, 12, 48)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva:hover,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva:hover{background:rgb(228, 228, 230)}.duet-chip-container .duet-chip-popup-disclosure{padding-right:4.5px;padding-left:12.5px}.duet-chip-container .duet-chip-popup-disclosure duet-icon{transition:transform 300ms ease}.duet-chip-container.duet-chip-filter-popup-open{background:rgb(243, 249, 252);border-color:rgb(243, 249, 252)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input{display:flex;align-items:center;padding-right:0 !important}.duet-chip-container.duet-chip-input .duet-chip-input-button{flex-grow:1}.duet-chip-container.duet-chip-input .duet-chip-remove-button{width:26px;padding:8px 16px 8px 0;margin:-8px 0}.duet-chip-container.large button,.duet-chip-container.large label{padding:15px 22px}:host(.user-is-tabbing) .duet-chip-focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-chip-focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-chip-container input,*::slotted([slot=input]){position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;margin:0;cursor:pointer;border-width:2px;border-radius:8px;opacity:0;appearance:none}*::slotted([slot=input]:not([aria-disabled=true])){z-index:1}';var s=h;var p=e("duet_chip",function(){function e(e){var n=this;t(this,e);this.duetChange=i(this,"duetChange",3);this.duetRemove=i(this,"duetRemove",3);this.duetFocus=i(this,"duetFocus",7);this.duetBlur=i(this,"duetBlur",7);this.chipId=a("DuetChip");this.enforceNoDisabledSelected=function(){if(n.disabled&&n.checked){console.error("Duet error: pre-selected chip may not be disabled");n.disabled=false}};this.radioInputListenersRemove=function(e){e.removeEventListener("change",n.onRadioChange);e.removeEventListener("click",n.onRadioClick);e.removeEventListener("focus",n.onFocus);e.removeEventListener("blur",n.onBlur)};this.radioInputListenersAdd=function(e){e.addEventListener("change",n.onRadioChange);e.addEventListener("click",n.onRadioClick);e.addEventListener("focus",n.onFocus);e.addEventListener("blur",n.onBlur)};this.radioInputSetUp=function(){var e=n.element.querySelector("input[slot=input]");var t=e||document.createElement("input");t.slot="input";t.ariaDisabled=n.disabled?"true":undefined;t.id=n.identifier||n.chipId;t.type="radio";t.name=n.name;t.value=n.value;t.checked=n.checked;if(e){n.radioInputListenersRemove(t)}else{n.element.appendChild(t)}n.radioInputListenersAdd(t);n.focusableElement=t};this.popupSetUp=function(){var e=document.querySelector("duet-popup-menu#".concat(n.popup));if(e){n.popupElement=e;e.controller=n.element;var t=n.element.textContent;var i=n.value;if(!e.id){e.id="popup-menu"}e.addEventListener("duetToggle",(function(e){n.popupOpen=e.detail.open}));var c=function(){e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.active=false}))};e.querySelectorAll("duet-popup-menu-item").forEach((function(e){e.addEventListener("click",(function(r){var o;var a=(o=e.value)!==null&&o!==void 0?o:e.innerText;if(!e.active){c();e.active=true;n.element.textContent=e.innerText;n.value=a;n.checked=true}else{c();n.element.textContent=t;n.value=i;n.checked=false}n.emitChange(r);setTimeout((function(){if(n.popupElement.isOpen()){n.popupElement.hide()}}))}))}))}};this.onFocus=function(e){n.focus=true;n.duetFocus.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.onBlur=function(e){n.focus=false;n.duetBlur.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.emitChange=function(e){n.duetChange.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"})};this.onFilterChange=function(e){n.checked=!n.checked;n.emitChange(e)};this.onRadioChange=function(e){var t=n.focusableElement;var i=t.checked;n.checked=i;n.emitChange(e)};this.onRadioClick=function(e){if(n.disabled){e.preventDefault()}};this.onFilterClick=function(e){if(n.disabled){e.stopPropagation();e.preventDefault();return}if(n.popupElement){e.stopPropagation();e.preventDefault();n.popupElement.toggle()}};this.onRemoveClick=function(e){e.stopPropagation();e.preventDefault();n.duetRemove.emit({originalEvent:e,checked:n.checked,value:n.value,component:"duet-chip"});n.element.remove()};this.focus=false;this.popupElement=undefined;this.popupOpen=undefined;this.accessibleLabel=undefined;this.variation="button";this.size="medium";this.popup=undefined;this.icon="";this.theme="";this.identifier=undefined;this.value=undefined;this.name=undefined;this.checked=false;this.disabled=false;this.accessibleExpanded=undefined;this.accessiblePopup="false"}e.prototype.clearOtherRadioButtons=function(){var e=this;if(this.variation==="radio"&&this.checked){var t=document.querySelectorAll('duet-chip[variation="radio"][name="'.concat(this.name,'"]'));t.forEach((function(t){if(t!==e.element){t.checked=false}}))}};e.prototype.componentWillLoad=function(){o(this);this.popupSetUp();this.enforceNoDisabledSelected()};e.prototype.connectedCallback=function(){d(this)};e.prototype.disconnectedCallback=function(){u(this)};e.prototype.componentDidRender=function(){if(this.variation==="radio"){this.radioInputSetUp()}};e.prototype.getAccessibleExpanded=function(){if(this.accessibleExpanded!=null){return(!!this.accessibleExpanded).toString()}if(this.popupElement){return this.popupOpen?"true":"false"}return undefined};e.prototype.getAccessiblePopup=function(){if(this.popupElement){return"true"}else{return this.accessiblePopup!=null?this.accessiblePopup.toString():undefined}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){setTimeout((function(){return t.focusableElement.focus(e)}),200);return[2]}))}))};e.prototype.render=function(){var e,t;var i=this;var r;var o=this.identifier||this.chipId;var a=(e={"duet-chip-container":true},e["duet-chip-".concat(this.variation)]=true,e["duet-chip-focus"]=this.focus,e["duet-chip-has-icon"]=!!this.icon,e["duet-chip-has-popup"]=this.variation==="filter"&&!!this.popupElement,e["duet-theme-turva"]=this.theme==="turva",e["duet-chip-filter-checked"]=this.variation==="filter"&&this.checked,e["duet-chip-radio-checked"]=this.variation==="radio"&&this.checked,e["duet-chip-filter-popup-open"]=this.popupOpen,e["duet-chip-disabled"]=this.disabled,e[this.size]=true,e);var d={onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return i.focusableElement=e}};return n(c,{key:"83bf513ef7192b64d92eb428ca47fbdf317468d9",class:(t={},t[this.variation]=true,t)},this.variation==="button"&&n("span",{key:"750fdb0037f02571a465c86dfed9f81a4e4f1110",class:a},n("button",Object.assign({key:"49d5409a3600f91d6feefdafb207d17e330f53a3",id:o,"aria-label":this.accessibleLabel,"aria-disabled":this.disabled?"true":undefined,name:this.name,value:this.value,onClick:this.disabled?function(e){return e.stopPropagation()}:undefined},d),n("span",{key:"609549b8eb1bc7b9c3e7049f94dc9678b9dc259f",class:"duet-chip-icon-container"},this.icon&&n("duet-icon",{key:"9167ad7ccd13479061d6849af2938bc868e51677",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),n("slot",{key:"f8ab715a57220b96dbdbd2478207c4ba40ba325b"}))),this.variation==="input"&&n("span",{key:"0f1faa69c817a88de8716de8b261fa63688c899b",class:a},n("button",Object.assign({key:"1955c7a24051d1c5b7671bf4a8438ee1c014b7cc",id:o,class:"duet-chip-input-button",value:this.value,"aria-label":this.accessibleLabel},d),n("span",{key:"3d69ad3ec1037f7b8278156392e902a2317f758c",class:"duet-chip-icon-container"},this.icon&&n("duet-icon",{key:"c056e4f37ca87f98fb8743d5b723232e8335f83c",name:this.icon,size:"x-small",margin:"none",color:"currentColor"})),n("slot",{key:"f257712ed166db7feb280d894bb1c111fa6fe171"})),n("button",{key:"0735914e5223ab4aed75f03e08e39af6a10ced8e",class:"duet-chip-remove-button",onClick:this.onRemoveClick},n("duet-icon",{key:"3478c9f87f043e61f96a7595a35db8849c0c730c",name:"activity-close",size:"xx-small",margin:"none",color:"currentColor"}))),this.variation==="filter"&&n("span",{key:"a656fd6ce69c6201d0dd7407170c88c47e8f2a67",class:a},n("input",Object.assign({key:"51dd1e0898d2af86d493e25b9d623d422a1e3ca8","aria-haspopup":this.getAccessiblePopup(),"aria-controls":(r=this.popupElement)===null||r===void 0?void 0:r.id,"aria-expanded":this.getAccessibleExpanded(),"aria-disabled":this.disabled?"true":undefined,id:o,type:"checkbox",name:this.name,value:this.value,checked:this.checked,onClick:this.onFilterClick,onChange:this.onFilterChange},d)),n("label",{key:"60a550a09fcebb26e886503f0d9c637e6e2447cc",htmlFor:o},this.icon&&n("span",{key:"ba317cf437844d8c8694956e114687fa0d531daf",class:"duet-chip-icon-container"},n("duet-icon",{key:"4e6bd4e5e0003bf649929dfdb36ca0f5b00e3e4c",name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),n("duet-icon",{key:"7d427ed0b6d4d15a1eb1b3c0515e3d0d119a5197",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),n("slot",{key:"943da2eae596920b321008ca6d927411109555db"}),this.popupElement&&n("span",{key:"ccff1c7a99e9bf1b96449d061526a6f207907dfe",class:"duet-chip-popup-disclosure"},n("duet-icon",{key:"b381a2ae097f9de261f971882520688b0857a02f",name:"action-arrow-down-small",size:"xxx-small",margin:"none",color:"currentColor"})))),this.variation==="radio"&&n("span",{key:"804eec75bc2347e568c5ebe9c994d909df7a6d15",class:a},n("slot",{key:"74bef72f091082f56c3cbdc01c6284a347de775f",name:"input"}),n("label",{key:"2a1fb8e4e0da4b7aa89fad54677e8cc3c0ea318f",htmlFor:o},this.icon&&n("span",{key:"6bf61ec47a6647c05ef31fcef2d955740a37e55e",class:"duet-chip-icon-container"},n("duet-icon",{key:"0c780d8a156ebb569408bbac96838b8627818b79",name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),n("duet-icon",{key:"ed9beaf0e2c72f762c8abcc8ebec1a149ce4f31e",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor",class:"check-mark"})),n("slot",{key:"b1c9725c085d8d27b273eae4eba95b8c911343db"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["clearOtherRadioButtons"]}},enumerable:false,configurable:true});return e}());p.style=s}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,c as t,h as s,H as o,g as a}from"./p-00f584d4.js";import{i}from"./p-aaa7a7bd.js";import{c as n}from"./p-5e59e970.js";import{i as r}from"./p-a1b7f2a0.js";import{a as h,g as l,c,d}from"./p-5e2f8206.js";import"./p-9c3c64b9.js";const m=class{constructor(s){e(this,s),this.duetToggle=t(this,"duetToggle",7),this.contentId=n("DuetShowMore"),this.buttonId=n("DuetShowMoreButton"),this.handleKeyDown=e=>{r(e)&&this.handleClick(e)},this.handleClick=e=>{e.preventDefault();const t=!this.open;this.open=t,t?(setTimeout((()=>{this.contentElement.focus()}),100),setTimeout((()=>{this.buttonAriaOpen=t}),500)):this.buttonAriaOpen=t,this.duetToggle.emit({component:"duet-show-more",originalEvent:e})},this.buttonAriaOpen=!1,this.theme="",this.language=h(),this.showMoreLabelDefaults={fi:"Näytä lisää",sv:"Visa mer",en:"Show more"},this.showMoreLabel=l(this.showMoreLabelDefaults),this.showLessLabelDefaults={fi:"Näytä vähemmän",sv:"Visa mindre",en:"Show less"},this.showLessLabel=l(this.showLessLabelDefaults),this.showMoreAccessibleLabelDefaults={fi:"Näytä lisää tästä aiheesta",sv:"Visa mer om detta ämne",en:"Show more about this subject"},this.showMoreAccessibleLabel=l(this.showMoreAccessibleLabelDefaults),this.showLessAccessibleLabelDefaults={fi:"Näytä vähemmän tästä aiheesta",sv:"Visa mindre om detta ämne",en:"Show less about this subject"},this.showLessAccessibleLabel=l(this.showLessAccessibleLabelDefaults),this.margin="auto",this.buttonMargin="auto",this.buttonPadding="auto",this.open=!1}componentWillLoad(){i(this),this.buttonAriaOpen=this.open}connectedCallback(){c(this,[{prop:"showMoreLabel",defaults:"showMoreLabelDefaults"},{prop:"showLessLabel",defaults:"showLessLabelDefaults"},{prop:"showMoreAccessibleLabel",defaults:"showMoreAccessibleLabelDefaults"},{prop:"showLessAccessibleLabel",defaults:"showLessAccessibleLabelDefaults"}])}disconnectedCallback(){d(this)}render(){return s(o,{key:"3d096f18fbcc4cff02f201f2c065b56feaceb874"},s("div",{key:"99bd8d06faa921138031f41728d197eccabc8a9b",class:{"duet-show-more":!0,"duet-theme-turva":"turva"===this.theme,"duet-m-0":"none"===this.margin,open:this.open}},s("div",{key:"6dc1a29a0a0fdf48284af668e0a3800a54c7414d",ref:e=>this.contentElement=e,class:{content:!0},id:this.contentId,tabindex:this.open?"0":""},s("div",{key:"98d549c12cab0e82c0da5a93755943c7cdd7e020",class:{"slotted-content":!0}},s("slot",{key:"88d8df19994904032fbd80b186b80df1ad5c04a1"}))),s("duet-button",{key:"2d26e042783015ec2cf5aa6d43b05a64d1cac673",id:this.buttonId,variation:"plain","accessible-label":this.buttonAriaOpen?this.showLessAccessibleLabel:this.showMoreAccessibleLabel,"accessible-expanded":this.buttonAriaOpen?"true":"false","accessible-controls":this.contentId,onClick:this.handleClick,onKeyDown:this.handleKeyDown,"icon-right":!0,icon:this.open?"action-arrow-up-small":"action-arrow-down-small","icon-size":"medium-small",size:"small",margin:this.buttonMargin,padding:this.buttonPadding,theme:"turva"===this.theme?"turva":"default"},this.open?this.showLessLabel:this.showMoreLabel)))}get element(){return a(this)}};m.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;display:block}.duet-show-more{margin-bottom:16px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}.duet-show-more.duet-m-0{margin:0 !important}.duet-show-more .slotted-content{display:none}.duet-show-more.open .slotted-content{display:block}.duet-show-more.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)}';export{m as duet_show_more}