@duetds/components 10.0.0-alpha.9 → 10.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1238) hide show
  1. package/hydrate/index.d.ts +38 -7
  2. package/hydrate/index.js +9613 -4173
  3. package/hydrate/index.mjs +46160 -0
  4. package/lib/cjs/_commonjsHelpers-4N64IRaP.js +10 -0
  5. package/lib/cjs/a11y-utils-DzwEPbds.js +46 -0
  6. package/lib/cjs/action-arrow-down-small-CDsSJFvZ.js +21 -0
  7. package/lib/cjs/action-new-window-small-BWlVx6YN.js +21 -0
  8. package/lib/cjs/{app-globals-2b7fff72.js → app-globals-BtFYkwDf.js} +2 -2
  9. package/lib/cjs/{common-strings-2984301e.js → common-strings-CC6Xpjb8.js} +30 -0
  10. package/lib/cjs/duet-action-button.cjs.entry.js +84 -29
  11. package/lib/cjs/duet-alert.cjs.entry.js +106 -49
  12. package/lib/cjs/duet-badge.cjs.entry.js +31 -9
  13. package/lib/cjs/duet-banner.cjs.entry.js +71 -28
  14. package/lib/cjs/duet-breadcrumb.cjs.entry.js +37 -26
  15. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +20 -14
  16. package/lib/cjs/duet-button_2.cjs.entry.js +152 -72
  17. package/lib/cjs/duet-callout.cjs.entry.js +13 -10
  18. package/lib/cjs/duet-caption_4.cjs.entry.js +212 -47
  19. package/lib/cjs/duet-card.cjs.entry.js +93 -35
  20. package/lib/cjs/duet-checkbox.cjs.entry.js +68 -32
  21. package/lib/cjs/duet-checkmark.cjs.entry.js +21 -9
  22. package/lib/cjs/duet-chip.cjs.entry.js +60 -33
  23. package/lib/cjs/duet-choice_2.cjs.entry.js +279 -130
  24. package/lib/cjs/duet-collapsible.cjs.entry.js +92 -33
  25. package/lib/cjs/duet-combobox.cjs.entry.js +99 -58
  26. package/lib/cjs/duet-contact-card.cjs.entry.js +17 -18
  27. package/lib/cjs/duet-cookie-consent.cjs.entry.js +14 -11
  28. package/lib/cjs/duet-date-picker.cjs.entry.js +158 -57
  29. package/lib/cjs/duet-divider_2.cjs.entry.js +30 -14
  30. package/lib/cjs/duet-editable-table_3.cjs.entry.js +556 -210
  31. package/lib/cjs/duet-empty-state.cjs.entry.js +15 -9
  32. package/lib/cjs/duet-fieldset.cjs.entry.js +51 -18
  33. package/lib/cjs/duet-file-chooser.cjs.entry.js +18 -11
  34. package/lib/cjs/duet-footer.cjs.entry.js +56 -30
  35. package/lib/cjs/duet-grid_2.cjs.entry.js +169 -64
  36. package/lib/cjs/duet-header_2.cjs.entry.js +302 -91
  37. package/lib/cjs/duet-hero.cjs.entry.js +159 -35
  38. package/lib/cjs/duet-icon.cjs.entry.js +64 -20
  39. package/lib/cjs/duet-indicator.cjs.entry.js +61 -0
  40. package/lib/cjs/duet-input_2.cjs.entry.js +225 -86
  41. package/lib/cjs/duet-layout.cjs.entry.js +33 -13
  42. package/lib/cjs/duet-list_2.cjs.entry.js +58 -14
  43. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +24 -16
  44. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +19 -14
  45. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +21 -16
  46. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +40 -19
  47. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +18 -10
  48. package/lib/cjs/duet-menu-bar.cjs.entry.js +37 -59
  49. package/lib/cjs/duet-modal.cjs.entry.js +122 -35
  50. package/lib/cjs/duet-multiselect.cjs.entry.js +88 -42
  51. package/lib/cjs/duet-nav.cjs.entry.js +12 -8
  52. package/lib/cjs/duet-notification_2.cjs.entry.js +98 -32
  53. package/lib/cjs/duet-number-input.cjs.entry.js +191 -70
  54. package/lib/cjs/duet-overlay.cjs.entry.js +36 -14
  55. package/lib/cjs/duet-page-heading.cjs.entry.js +16 -11
  56. package/lib/cjs/duet-pagination_2.cjs.entry.js +162 -87
  57. package/lib/cjs/duet-panel.cjs.entry.js +52 -0
  58. package/lib/cjs/duet-phone-input.cjs.entry.js +115 -45
  59. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +226 -102
  60. package/lib/cjs/duet-progress.cjs.entry.js +32 -13
  61. package/lib/cjs/duet-promo-card.cjs.entry.js +27 -13
  62. package/lib/cjs/duet-radio_2.cjs.entry.js +114 -55
  63. package/lib/cjs/duet-range-slider.cjs.entry.js +73 -37
  64. package/lib/cjs/duet-scrollable_3.cjs.entry.js +233 -88
  65. package/lib/cjs/duet-section-layout.cjs.entry.js +17 -10
  66. package/lib/cjs/duet-select.cjs.entry.js +89 -46
  67. package/lib/cjs/duet-shaped-image.cjs.entry.js +16 -11
  68. package/lib/cjs/duet-share-chart-item.cjs.entry.js +22 -0
  69. package/lib/cjs/duet-share-chart.cjs.entry.js +85 -0
  70. package/lib/cjs/duet-show-more.cjs.entry.js +81 -38
  71. package/lib/cjs/duet-slideout-lang.cjs.entry.js +10 -10
  72. package/lib/cjs/duet-slideout-link.cjs.entry.js +49 -16
  73. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +25 -14
  74. package/lib/cjs/duet-slideout-panel.cjs.entry.js +50 -36
  75. package/lib/cjs/duet-slideout.cjs.entry.js +85 -52
  76. package/lib/cjs/duet-status-icon.cjs.entry.js +28 -15
  77. package/lib/cjs/duet-step_2.cjs.entry.js +72 -24
  78. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +25 -10
  79. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +27 -18
  80. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +40 -19
  81. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +18 -9
  82. package/lib/cjs/duet-submenu-bar.cjs.entry.js +27 -21
  83. package/lib/cjs/duet-textarea.cjs.entry.js +146 -71
  84. package/lib/cjs/duet-toggle.cjs.entry.js +55 -29
  85. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +22 -11
  86. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +27 -16
  87. package/lib/cjs/duet-toolbar-item.cjs.entry.js +46 -19
  88. package/lib/cjs/duet-toolbar-link.cjs.entry.js +21 -10
  89. package/lib/cjs/duet-toolbar.cjs.entry.js +12 -10
  90. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +24 -27
  91. package/lib/cjs/duet-tooltip.cjs.entry.js +98 -46
  92. package/lib/cjs/duet-tray.cjs.entry.js +63 -24
  93. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +30 -11
  94. package/lib/cjs/duet-upload-item.cjs.entry.js +12 -22
  95. package/lib/cjs/duet-visually-hidden.cjs.entry.js +4 -7
  96. package/lib/cjs/duet.cjs.js +8 -8
  97. package/lib/cjs/{errorcodes.utils-e3a0f607.js → errorcodes.utils-BuseNrD9.js} +2 -2
  98. package/lib/cjs/floating-ui.dom.browser.min-Cj0r5YDz.js +709 -0
  99. package/lib/cjs/{focus-utils-47d23c45.js → focus-utils-Cbk0cnOs.js} +1 -1
  100. package/lib/cjs/form-search-CzPfHB80.js +21 -0
  101. package/lib/cjs/{index-7b1d76ef.js → index-blgG8IJB.js} +1853 -1361
  102. package/lib/cjs/{label-874fd84f.js → label-DeanNJa0.js} +1 -1
  103. package/lib/cjs/{language-utils-a6a152b8.js → language-utils-DWW8tvkB.js} +10 -2
  104. package/lib/cjs/loader.cjs.js +3 -5
  105. package/lib/cjs/{slot-utils-7e6aa48b.js → slot-utils-Byx247xX.js} +6 -1
  106. package/lib/cjs/{teleport-c6f8391a.js → teleport-D5NDbuu0.js} +22 -7
  107. package/lib/cjs/themeable-component-DcR7DztR.js +74 -0
  108. package/lib/cjs/{token-utils-5000595c.js → token-utils-BJtlJxnJ.js} +80 -9
  109. package/lib/cjs/{tokens-57e06fe4.js → tokens-BxWzRxOl.js} +150 -8
  110. package/lib/cjs/{tokens.module-7c947029.js → tokens.module-DJt2h4FX.js} +99 -3
  111. package/lib/cjs/{watch-options-30a12622.js → watch-options-D4JNsU3B.js} +0 -20
  112. package/lib/collection/collection-manifest.json +5 -1
  113. package/lib/collection/common/themeable-component.js +61 -3
  114. package/lib/collection/common-strings.js +28 -0
  115. package/lib/collection/components/duet-action-button/duet-action-button.css +29 -12
  116. package/lib/collection/components/duet-action-button/duet-action-button.js +94 -35
  117. package/lib/collection/components/duet-alert/duet-alert.css +96 -58
  118. package/lib/collection/components/duet-alert/duet-alert.js +146 -59
  119. package/lib/collection/components/duet-badge/duet-badge.css +24 -9
  120. package/lib/collection/components/duet-badge/duet-badge.js +30 -6
  121. package/lib/collection/components/duet-banner/duet-banner.css +51 -24
  122. package/lib/collection/components/duet-banner/duet-banner.js +95 -30
  123. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.css +10 -8
  124. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +26 -28
  125. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +18 -7
  126. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +15 -6
  127. package/lib/collection/components/duet-button/duet-button.css +140 -32
  128. package/lib/collection/components/duet-button/duet-button.js +174 -93
  129. package/lib/collection/components/duet-callout/duet-callout.css +7 -2
  130. package/lib/collection/components/duet-callout/duet-callout.js +10 -4
  131. package/lib/collection/components/duet-caption/duet-caption.css +8 -4
  132. package/lib/collection/components/duet-caption/duet-caption.js +19 -7
  133. package/lib/collection/components/duet-card/duet-card.css +48 -16
  134. package/lib/collection/components/duet-card/duet-card.js +134 -40
  135. package/lib/collection/components/duet-checkbox/duet-checkbox.css +30 -8
  136. package/lib/collection/components/duet-checkbox/duet-checkbox.js +89 -50
  137. package/lib/collection/components/duet-chip/duet-chip.css +66 -25
  138. package/lib/collection/components/duet-chip/duet-chip.js +73 -41
  139. package/lib/collection/components/duet-choice/duet-checkmark.css +4 -0
  140. package/lib/collection/components/duet-choice/duet-checkmark.js +22 -7
  141. package/lib/collection/components/duet-choice/duet-choice.css +164 -41
  142. package/lib/collection/components/duet-choice/duet-choice.js +244 -142
  143. package/lib/collection/components/duet-choice-group/duet-choice-group.css +4 -4
  144. package/lib/collection/components/duet-choice-group/duet-choice-group.js +109 -48
  145. package/lib/collection/components/duet-collapsible/duet-collapsible.css +36 -13
  146. package/lib/collection/components/duet-collapsible/duet-collapsible.js +100 -38
  147. package/lib/collection/components/duet-combobox/duet-combobox.css +9 -2
  148. package/lib/collection/components/duet-combobox/duet-combobox.js +106 -59
  149. package/lib/collection/components/duet-contact-card/duet-contact-card.css +8 -4
  150. package/lib/collection/components/duet-contact-card/duet-contact-card.js +21 -19
  151. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +23 -14
  152. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +12 -6
  153. package/lib/collection/components/duet-date-picker/date-picker-day.js +6 -1
  154. package/lib/collection/components/duet-date-picker/date-utils.js +6 -1
  155. package/lib/collection/components/duet-date-picker/duet-date-picker.css +103 -46
  156. package/lib/collection/components/duet-date-picker/duet-date-picker.js +176 -73
  157. package/lib/collection/components/duet-divider/duet-divider.css +12 -6
  158. package/lib/collection/components/duet-divider/duet-divider.js +15 -5
  159. package/lib/collection/components/duet-editable-table/duet-editable-table.css +2 -2
  160. package/lib/collection/components/duet-editable-table/duet-editable-table.js +88 -31
  161. package/lib/collection/components/duet-empty-state/duet-empty-state.css +11 -6
  162. package/lib/collection/components/duet-empty-state/duet-empty-state.js +15 -6
  163. package/lib/collection/components/duet-fieldset/duet-fieldset.css +13 -6
  164. package/lib/collection/components/duet-fieldset/duet-fieldset.js +58 -20
  165. package/lib/collection/components/duet-file-chooser/duet-file-chooser.css +2 -2
  166. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +18 -8
  167. package/lib/collection/components/duet-footer/duet-footer.css +43 -14
  168. package/lib/collection/components/duet-footer/duet-footer.js +62 -34
  169. package/lib/collection/components/duet-grid/duet-grid.css +2 -6
  170. package/lib/collection/components/duet-grid/duet-grid.js +151 -70
  171. package/lib/collection/components/duet-grid-item/duet-grid-item.css +6 -2
  172. package/lib/collection/components/duet-grid-item/duet-grid-item.js +40 -13
  173. package/lib/collection/components/duet-header/duet-header.css +165 -65
  174. package/lib/collection/components/duet-header/duet-header.js +180 -91
  175. package/lib/collection/components/duet-heading/duet-heading.css +11 -6
  176. package/lib/collection/components/duet-heading/duet-heading.js +39 -15
  177. package/lib/collection/components/duet-hero/duet-hero.css +326 -18
  178. package/lib/collection/components/duet-hero/duet-hero.js +202 -56
  179. package/lib/collection/components/duet-icon/duet-icon.css +17 -5
  180. package/lib/collection/components/duet-icon/duet-icon.js +71 -24
  181. package/lib/collection/components/duet-indicator/duet-indicator.css +50 -0
  182. package/lib/collection/components/duet-indicator/duet-indicator.js +138 -0
  183. package/lib/collection/components/duet-input/duet-input.css +143 -68
  184. package/lib/collection/components/duet-input/duet-input.js +320 -146
  185. package/lib/collection/components/duet-label/duet-label.css +8 -4
  186. package/lib/collection/components/duet-label/duet-label.js +25 -10
  187. package/lib/collection/components/duet-layout/duet-layout.css +4 -4
  188. package/lib/collection/components/duet-layout/duet-layout.js +36 -13
  189. package/lib/collection/components/duet-link/duet-link.css +149 -25
  190. package/lib/collection/components/duet-link/duet-link.js +120 -32
  191. package/lib/collection/components/duet-list/duet-list.css +4 -4
  192. package/lib/collection/components/duet-list/duet-list.js +41 -12
  193. package/lib/collection/components/duet-list-item/duet-list-item.css +29 -9
  194. package/lib/collection/components/duet-list-item/duet-list-item.js +50 -4
  195. package/lib/collection/components/duet-logo/duet-logo.css +36 -8
  196. package/lib/collection/components/duet-logo/duet-logo.js +112 -12
  197. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +108 -6
  198. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +60 -59
  199. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +17 -8
  200. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +33 -22
  201. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +28 -12
  202. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +20 -12
  203. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +19 -9
  204. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +18 -10
  205. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +28 -10
  206. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +39 -16
  207. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +25 -10
  208. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +19 -8
  209. package/lib/collection/components/duet-modal/duet-modal.css +23 -25
  210. package/lib/collection/components/duet-modal/duet-modal.js +197 -43
  211. package/lib/collection/components/duet-multiselect/duet-multiselect.css +71 -30
  212. package/lib/collection/components/duet-multiselect/duet-multiselect.js +104 -54
  213. package/lib/collection/components/duet-nav/duet-nav.css +8 -4
  214. package/lib/collection/components/duet-nav/duet-nav.js +10 -3
  215. package/lib/collection/components/duet-notification/duet-notification.css +33 -26
  216. package/lib/collection/components/duet-notification/duet-notification.js +46 -9
  217. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +38 -36
  218. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +58 -25
  219. package/lib/collection/components/duet-number-input/duet-number-input.css +29 -14
  220. package/lib/collection/components/duet-number-input/duet-number-input.js +208 -107
  221. package/lib/collection/components/duet-overlay/duet-overlay.css +5 -1
  222. package/lib/collection/components/duet-overlay/duet-overlay.js +41 -16
  223. package/lib/collection/components/duet-page-heading/duet-page-heading.css +44 -16
  224. package/lib/collection/components/duet-page-heading/duet-page-heading.js +17 -9
  225. package/lib/collection/components/duet-pagination/duet-pagination.css +8 -4
  226. package/lib/collection/components/duet-pagination/duet-pagination.js +132 -78
  227. package/lib/collection/components/duet-panel/duet-panel.css +99 -0
  228. package/lib/collection/components/duet-panel/duet-panel.js +233 -0
  229. package/lib/collection/components/duet-paragraph/duet-paragraph.css +19 -6
  230. package/lib/collection/components/duet-paragraph/duet-paragraph.js +32 -11
  231. package/lib/collection/components/duet-phone-input/duet-phone-input.css +46 -2
  232. package/lib/collection/components/duet-phone-input/duet-phone-input.js +211 -58
  233. package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +14 -6
  234. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +184 -90
  235. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +30 -12
  236. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +66 -31
  237. package/lib/collection/components/duet-progress/duet-progress.css +27 -8
  238. package/lib/collection/components/duet-progress/duet-progress.js +36 -14
  239. package/lib/collection/components/duet-promo-card/duet-promo-card.css +18 -12
  240. package/lib/collection/components/duet-promo-card/duet-promo-card.js +47 -11
  241. package/lib/collection/components/duet-radio/duet-radio.css +41 -8
  242. package/lib/collection/components/duet-radio/duet-radio.js +70 -52
  243. package/lib/collection/components/duet-radio-group/duet-radio-group.css +4 -4
  244. package/lib/collection/components/duet-radio-group/duet-radio-group.js +78 -30
  245. package/lib/collection/components/duet-range-slider/duet-range-slider.css +64 -19
  246. package/lib/collection/components/duet-range-slider/duet-range-slider.js +87 -48
  247. package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +8 -4
  248. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +44 -15
  249. package/lib/collection/components/duet-scrollable/duet-scrollable.css +29 -19
  250. package/lib/collection/components/duet-scrollable/duet-scrollable.js +170 -29
  251. package/lib/collection/components/duet-section-layout/duet-section-layout.css +4 -4
  252. package/lib/collection/components/duet-section-layout/duet-section-layout.js +16 -6
  253. package/lib/collection/components/duet-select/duet-select.css +55 -24
  254. package/lib/collection/components/duet-select/duet-select.js +114 -68
  255. package/lib/collection/components/duet-shaped-image/duet-shaped-image.css +6 -6
  256. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +17 -9
  257. package/lib/collection/components/duet-share-chart/duet-share-chart.css +82 -0
  258. package/lib/collection/components/duet-share-chart/duet-share-chart.js +141 -0
  259. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +67 -0
  260. package/lib/collection/components/duet-show-more/duet-show-more.css +15 -8
  261. package/lib/collection/components/duet-show-more/duet-show-more.js +88 -38
  262. package/lib/collection/components/duet-slideout/duet-slideout.css +72 -40
  263. package/lib/collection/components/duet-slideout/duet-slideout.js +89 -51
  264. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +10 -6
  265. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +5 -2
  266. package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +24 -11
  267. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +50 -15
  268. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +63 -40
  269. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +47 -30
  270. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +29 -16
  271. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +25 -11
  272. package/lib/collection/components/duet-spacer/duet-spacer.css +2 -2
  273. package/lib/collection/components/duet-spacer/duet-spacer.js +16 -6
  274. package/lib/collection/components/duet-spinner/duet-spinner.css +10 -16
  275. package/lib/collection/components/duet-spinner/duet-spinner.js +22 -24
  276. package/lib/collection/components/duet-status-icon/duet-status-icon.js +30 -15
  277. package/lib/collection/components/duet-step/duet-step.css +28 -13
  278. package/lib/collection/components/duet-step/duet-step.js +27 -18
  279. package/lib/collection/components/duet-stepper/duet-stepper.css +4 -4
  280. package/lib/collection/components/duet-stepper/duet-stepper.js +46 -11
  281. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +34 -16
  282. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +25 -16
  283. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +49 -15
  284. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +25 -13
  285. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +29 -8
  286. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +26 -8
  287. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.css +33 -10
  288. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +38 -15
  289. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +34 -9
  290. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +17 -5
  291. package/lib/collection/components/duet-tab/duet-tab.css +15 -11
  292. package/lib/collection/components/duet-tab/duet-tab.js +88 -24
  293. package/lib/collection/components/duet-tab-group/duet-tab-group.css +131 -85
  294. package/lib/collection/components/duet-tab-group/duet-tab-group.js +173 -56
  295. package/lib/collection/components/duet-table/duet-table-styles.js +68 -4
  296. package/lib/collection/components/duet-table/duet-table.js +43 -14
  297. package/lib/collection/components/duet-textarea/duet-textarea.css +68 -23
  298. package/lib/collection/components/duet-textarea/duet-textarea.js +231 -103
  299. package/lib/collection/components/duet-toggle/duet-toggle.css +38 -11
  300. package/lib/collection/components/duet-toggle/duet-toggle.js +88 -39
  301. package/lib/collection/components/duet-toolbar/duet-toolbar.css +11 -4
  302. package/lib/collection/components/duet-toolbar/duet-toolbar.js +11 -6
  303. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +42 -12
  304. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +28 -14
  305. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +21 -8
  306. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +23 -9
  307. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +52 -30
  308. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +48 -19
  309. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +60 -10
  310. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +23 -9
  311. package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +24 -14
  312. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +9 -11
  313. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +48 -16
  314. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +18 -14
  315. package/lib/collection/components/duet-tooltip/duet-tooltip.css +4 -4
  316. package/lib/collection/components/duet-tooltip/duet-tooltip.js +101 -46
  317. package/lib/collection/components/duet-tray/duet-tray.css +43 -27
  318. package/lib/collection/components/duet-tray/duet-tray.js +63 -21
  319. package/lib/collection/components/duet-upload/duet-upload.css +6 -6
  320. package/lib/collection/components/duet-upload/duet-upload.js +433 -227
  321. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +35 -13
  322. package/lib/collection/components/duet-upload-item/duet-upload-item.js +19 -20
  323. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.css +3 -3
  324. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  325. package/lib/collection/index.js +1 -0
  326. package/lib/collection/utils/a11y-utils.js +20 -0
  327. package/lib/collection/utils/language-utils.js +7 -0
  328. package/lib/collection/utils/slot-utils.js +4 -0
  329. package/lib/collection/utils/teleport.js +22 -7
  330. package/lib/collection/utils/test-utils.js +2 -2
  331. package/lib/collection/utils/token-utils.js +59 -7
  332. package/lib/collection/utils/turva2-color-tokens.js +42 -0
  333. package/lib/duet/duet.esm.js +1 -1
  334. package/lib/duet/p-01ce999b.entry.js +4 -0
  335. package/lib/duet/p-04c9c13e.entry.js +4 -0
  336. package/lib/duet/p-0d1a4928.entry.js +4 -0
  337. package/lib/duet/p-0fabcede.entry.js +4 -0
  338. package/lib/duet/p-1380370e.entry.js +4 -0
  339. package/lib/duet/p-140b87f4.entry.js +4 -0
  340. package/lib/duet/p-141f03da.entry.js +4 -0
  341. package/lib/duet/p-14d64261.entry.js +4 -0
  342. package/lib/duet/p-1U75pxcR.js +4 -0
  343. package/lib/duet/p-1d8da041.entry.js +4 -0
  344. package/lib/duet/p-24f206ab.entry.js +4 -0
  345. package/lib/duet/p-276f8827.entry.js +4 -0
  346. package/lib/duet/p-28325583.entry.js +4 -0
  347. package/lib/duet/p-29e677bc.entry.js +4 -0
  348. package/lib/duet/p-2c4f4896.entry.js +4 -0
  349. package/lib/duet/p-2d0eb4b5.entry.js +4 -0
  350. package/lib/duet/p-30ae4852.entry.js +4 -0
  351. package/lib/duet/p-320e4688.entry.js +4 -0
  352. package/lib/duet/p-36d2a441.entry.js +4 -0
  353. package/lib/duet/p-3a108321.entry.js +4 -0
  354. package/lib/duet/p-3b52f20d.entry.js +4 -0
  355. package/lib/duet/p-40956ec6.entry.js +4 -0
  356. package/lib/duet/p-43f15ad6.entry.js +4 -0
  357. package/lib/duet/p-4862f0c6.entry.js +4 -0
  358. package/lib/duet/{p-7d5c5b60.entry.js → p-486a4bc6.entry.js} +1 -1
  359. package/lib/duet/p-4d14780b.entry.js +4 -0
  360. package/lib/duet/p-4de6cd49.entry.js +4 -0
  361. package/lib/duet/p-540fc47b.entry.js +4 -0
  362. package/lib/duet/p-57ba8f5f.entry.js +4 -0
  363. package/lib/duet/p-581e1e08.entry.js +4 -0
  364. package/lib/duet/p-5db08755.entry.js +4 -0
  365. package/lib/duet/p-5f329414.entry.js +4 -0
  366. package/lib/duet/p-5iZMFvpJ.js +4 -0
  367. package/lib/duet/p-6043a6de.entry.js +4 -0
  368. package/lib/duet/p-6662042f.entry.js +4 -0
  369. package/lib/duet/p-6862c7d5.entry.js +4 -0
  370. package/lib/duet/p-6b2823ed.entry.js +4 -0
  371. package/lib/duet/p-6cf8e63d.entry.js +4 -0
  372. package/lib/duet/p-6d90a89c.entry.js +4 -0
  373. package/lib/duet/p-6qQ9c51e.js +4 -0
  374. package/lib/duet/p-72c7816e.entry.js +4 -0
  375. package/lib/duet/p-7a8f23b7.entry.js +4 -0
  376. package/lib/duet/p-823522c9.entry.js +4 -0
  377. package/lib/duet/p-83c7bfe0.entry.js +4 -0
  378. package/lib/duet/p-8857eb7b.entry.js +4 -0
  379. package/lib/duet/{p-e5229df1.entry.js → p-8f2fbd03.entry.js} +1 -1
  380. package/lib/duet/p-90981fbb.entry.js +4 -0
  381. package/lib/duet/p-90eed96d.entry.js +4 -0
  382. package/lib/duet/p-93303c68.entry.js +4 -0
  383. package/lib/duet/p-94f1de2c.entry.js +4 -0
  384. package/lib/duet/p-960ada39.entry.js +4 -0
  385. package/lib/duet/{p-597e4a0d.entry.js → p-9dc2b0d2.entry.js} +1 -1
  386. package/lib/duet/p-9ee8ddc9.entry.js +4 -0
  387. package/lib/duet/p-9fd10aed.entry.js +4 -0
  388. package/lib/duet/p-B0pM7dNk.js +4 -0
  389. package/lib/duet/p-BDAqOMlM.js +4 -0
  390. package/lib/duet/p-BVgBUIYF.js +4 -0
  391. package/lib/duet/{p-81287261.js → p-B_NkY9T0.js} +1 -1
  392. package/lib/duet/p-Bg75Vqqq.js +4 -0
  393. package/lib/duet/p-BhYt_2Vd.js +5 -0
  394. package/lib/duet/p-BmMFVM-y.js +4 -0
  395. package/lib/duet/p-BtxOyTe3.js +4 -0
  396. package/lib/duet/p-CVPfl9fc.js +4 -0
  397. package/lib/duet/p-CooAqTCj.js +4 -0
  398. package/lib/duet/{p-b3d6e031.js → p-CxgSYSyh.js} +1 -1
  399. package/lib/duet/p-DJzDRf9m.js +4 -0
  400. package/lib/duet/p-DOuLHrH5.js +4 -0
  401. package/lib/duet/{p-a45e3f8b.js → p-Db8rvjPI.js} +1 -1
  402. package/lib/duet/p-DvwKrUS6.js +4 -0
  403. package/lib/duet/p-a1e60676.entry.js +4 -0
  404. package/lib/duet/p-a28d4312.entry.js +4 -0
  405. package/lib/duet/p-a9692b2a.entry.js +4 -0
  406. package/lib/duet/p-a9cf57f5.entry.js +4 -0
  407. package/lib/duet/p-ab74c20e.entry.js +4 -0
  408. package/lib/duet/p-ac_1YilV.js +4 -0
  409. package/lib/duet/p-afabb51f.entry.js +4 -0
  410. package/lib/duet/p-b2464865.entry.js +4 -0
  411. package/lib/duet/p-b2f22262.entry.js +4 -0
  412. package/lib/duet/p-ba39d3ad.entry.js +4 -0
  413. package/lib/duet/p-bb8634c4.entry.js +4 -0
  414. package/lib/duet/p-bcb8d390.entry.js +4 -0
  415. package/lib/duet/p-bd0ad7c3.entry.js +4 -0
  416. package/lib/duet/p-ca3fe683.entry.js +4 -0
  417. package/lib/duet/p-d26c644d.entry.js +4 -0
  418. package/lib/duet/p-d31cafc9.entry.js +4 -0
  419. package/lib/duet/p-d35a4b95.entry.js +4 -0
  420. package/lib/duet/p-d4e2e471.entry.js +4 -0
  421. package/lib/duet/p-d8ebfd49.entry.js +4 -0
  422. package/lib/duet/p-d9f504b7.entry.js +4 -0
  423. package/lib/duet/{p-8cbd3dfd.entry.js → p-db22799a.entry.js} +1 -1
  424. package/lib/duet/p-db594a93.entry.js +4 -0
  425. package/lib/duet/p-dc4d385d.entry.js +4 -0
  426. package/lib/duet/p-dc57fff7.entry.js +4 -0
  427. package/lib/duet/p-de255274.entry.js +4 -0
  428. package/lib/duet/{p-546cf344.entry.js → p-de639eff.entry.js} +1 -1
  429. package/lib/duet/p-e195c5e2.entry.js +4 -0
  430. package/lib/duet/p-e2e7b3bd.entry.js +4 -0
  431. package/lib/duet/p-e3780362.entry.js +4 -0
  432. package/lib/duet/p-e7c058b0.entry.js +4 -0
  433. package/lib/duet/p-ec5b54f3.entry.js +4 -0
  434. package/lib/duet/p-f6720f8c.entry.js +4 -0
  435. package/lib/duet/p-f6f6b960.entry.js +4 -0
  436. package/lib/duet/p-fb4ab1f5.entry.js +4 -0
  437. package/lib/duet/p-fd120a7b.entry.js +4 -0
  438. package/lib/duet/p-fe34272e.entry.js +4 -0
  439. package/lib/duet/p-vVCYtBMj.js +4 -0
  440. package/lib/duet/p-xwlQQBxs.js +4 -0
  441. package/lib/esm/_commonjsHelpers-DvwKrUS6.js +8 -0
  442. package/lib/esm/a11y-utils-BuWx2D09.js +43 -0
  443. package/lib/esm/action-arrow-down-small-Bk3GShyI.js +19 -0
  444. package/lib/esm/action-new-window-small-EH8_HdAm.js +19 -0
  445. package/lib/esm/{app-globals-e00fbe9c.js → app-globals-DRDLN5wE.js} +2 -2
  446. package/lib/esm/common-strings-CVPfl9fc.js +53 -0
  447. package/lib/esm/duet-action-button.entry.js +84 -27
  448. package/lib/esm/duet-alert.entry.js +106 -47
  449. package/lib/esm/duet-badge.entry.js +31 -7
  450. package/lib/esm/duet-banner.entry.js +71 -26
  451. package/lib/esm/duet-breadcrumb.entry.js +38 -25
  452. package/lib/esm/duet-breadcrumbs.entry.js +20 -12
  453. package/lib/esm/duet-button_2.entry.js +152 -70
  454. package/lib/esm/duet-callout.entry.js +13 -8
  455. package/lib/esm/duet-caption_4.entry.js +212 -45
  456. package/lib/esm/duet-card.entry.js +93 -33
  457. package/lib/esm/duet-checkbox.entry.js +68 -30
  458. package/lib/esm/duet-checkmark.entry.js +21 -7
  459. package/lib/esm/duet-chip.entry.js +60 -31
  460. package/lib/esm/duet-choice_2.entry.js +280 -129
  461. package/lib/esm/duet-collapsible.entry.js +92 -31
  462. package/lib/esm/duet-combobox.entry.js +99 -56
  463. package/lib/esm/duet-contact-card.entry.js +17 -16
  464. package/lib/esm/duet-cookie-consent.entry.js +14 -9
  465. package/lib/esm/duet-date-picker.entry.js +158 -55
  466. package/lib/esm/duet-divider_2.entry.js +30 -12
  467. package/lib/esm/duet-editable-table_3.entry.js +556 -208
  468. package/lib/esm/duet-empty-state.entry.js +15 -7
  469. package/lib/esm/duet-fieldset.entry.js +51 -16
  470. package/lib/esm/duet-file-chooser.entry.js +18 -9
  471. package/lib/esm/duet-footer.entry.js +56 -28
  472. package/lib/esm/duet-grid_2.entry.js +169 -62
  473. package/lib/esm/duet-header_2.entry.js +303 -90
  474. package/lib/esm/duet-hero.entry.js +159 -33
  475. package/lib/esm/duet-icon.entry.js +64 -18
  476. package/lib/esm/duet-indicator.entry.js +59 -0
  477. package/lib/esm/duet-input_2.entry.js +226 -85
  478. package/lib/esm/duet-layout.entry.js +33 -11
  479. package/lib/esm/duet-list_2.entry.js +58 -12
  480. package/lib/esm/duet-menu-bar-button.entry.js +24 -14
  481. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +19 -12
  482. package/lib/esm/duet-menu-bar-dropdown.entry.js +21 -14
  483. package/lib/esm/duet-menu-bar-item.entry.js +40 -17
  484. package/lib/esm/duet-menu-bar-link.entry.js +18 -8
  485. package/lib/esm/duet-menu-bar.entry.js +37 -57
  486. package/lib/esm/duet-modal.entry.js +122 -33
  487. package/lib/esm/duet-multiselect.entry.js +88 -40
  488. package/lib/esm/duet-nav.entry.js +12 -6
  489. package/lib/esm/duet-notification_2.entry.js +98 -30
  490. package/lib/esm/duet-number-input.entry.js +192 -69
  491. package/lib/esm/duet-overlay.entry.js +36 -12
  492. package/lib/esm/duet-page-heading.entry.js +16 -9
  493. package/lib/esm/duet-pagination_2.entry.js +162 -85
  494. package/lib/esm/duet-panel.entry.js +50 -0
  495. package/lib/esm/duet-phone-input.entry.js +115 -43
  496. package/lib/esm/duet-popup-menu_2.entry.js +223 -97
  497. package/lib/esm/duet-progress.entry.js +32 -11
  498. package/lib/esm/duet-promo-card.entry.js +27 -11
  499. package/lib/esm/duet-radio_2.entry.js +114 -53
  500. package/lib/esm/duet-range-slider.entry.js +73 -35
  501. package/lib/esm/duet-scrollable_3.entry.js +233 -86
  502. package/lib/esm/duet-section-layout.entry.js +17 -8
  503. package/lib/esm/duet-select.entry.js +89 -44
  504. package/lib/esm/duet-shaped-image.entry.js +16 -9
  505. package/lib/esm/duet-share-chart-item.entry.js +20 -0
  506. package/lib/esm/duet-share-chart.entry.js +83 -0
  507. package/lib/esm/duet-show-more.entry.js +81 -36
  508. package/lib/esm/duet-slideout-lang.entry.js +10 -8
  509. package/lib/esm/duet-slideout-link.entry.js +49 -14
  510. package/lib/esm/duet-slideout-panel-dropdown.entry.js +25 -12
  511. package/lib/esm/duet-slideout-panel.entry.js +50 -34
  512. package/lib/esm/duet-slideout.entry.js +85 -50
  513. package/lib/esm/duet-status-icon.entry.js +28 -13
  514. package/lib/esm/duet-step_2.entry.js +73 -23
  515. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +25 -8
  516. package/lib/esm/duet-submenu-bar-dropdown.entry.js +27 -16
  517. package/lib/esm/duet-submenu-bar-item.entry.js +40 -17
  518. package/lib/esm/duet-submenu-bar-link.entry.js +18 -7
  519. package/lib/esm/duet-submenu-bar.entry.js +27 -19
  520. package/lib/esm/duet-textarea.entry.js +146 -69
  521. package/lib/esm/duet-toggle.entry.js +55 -27
  522. package/lib/esm/duet-toolbar-dropdown-link.entry.js +22 -9
  523. package/lib/esm/duet-toolbar-dropdown.entry.js +27 -14
  524. package/lib/esm/duet-toolbar-item.entry.js +46 -17
  525. package/lib/esm/duet-toolbar-link.entry.js +21 -8
  526. package/lib/esm/duet-toolbar.entry.js +12 -8
  527. package/lib/esm/duet-tooltip-button_2.entry.js +24 -25
  528. package/lib/esm/duet-tooltip.entry.js +97 -43
  529. package/lib/esm/duet-tray.entry.js +63 -22
  530. package/lib/esm/duet-upload-aria-status.entry.js +30 -9
  531. package/lib/esm/duet-upload-item.entry.js +12 -20
  532. package/lib/esm/duet-visually-hidden.entry.js +4 -5
  533. package/lib/esm/duet.js +7 -6
  534. package/lib/esm/{errorcodes.utils-416994cc.js → errorcodes.utils-CjUqHglR.js} +3 -3
  535. package/lib/esm/floating-ui.dom.browser.min-B_NkY9T0.js +702 -0
  536. package/lib/{dist-custom-elements/p-e30dc66d.js → esm/focus-utils-Do5KtPgs.js} +1 -1
  537. package/lib/esm/form-search-CevX33LA.js +19 -0
  538. package/lib/esm/{index-1a6cee61.js → index-BhYt_2Vd.js} +1851 -1357
  539. package/lib/{dist-custom-elements/p-8db11326.js → esm/keyboard-utils-Db8rvjPI.js} +1 -1
  540. package/lib/{dist-custom-elements/p-42619f94.js → esm/label-BRuShBbJ.js} +1 -1
  541. package/lib/esm/{language-utils-8a9d5323.js → language-utils-D2jecvOr.js} +10 -3
  542. package/lib/esm/loader.js +4 -4
  543. package/lib/esm/{slot-utils-bf214ae5.js → slot-utils-nDLvv_4O.js} +6 -2
  544. package/lib/esm/{teleport-546f382d.js → teleport-CooAqTCj.js} +22 -7
  545. package/lib/esm/themeable-component-C0nhBgYw.js +72 -0
  546. package/lib/{dist-custom-elements/p-0562173d.js → esm/token-utils-Dks4GBDa.js} +80 -10
  547. package/lib/esm/{tokens-84fb2357.js → tokens-DOuLHrH5.js} +151 -7
  548. package/lib/esm/{tokens.module-2d02f5ff.js → tokens.module-BDAqOMlM.js} +100 -4
  549. package/lib/{dist-custom-elements/p-7d8a2628.js → esm/watch-options-BmMFVM-y.js} +1 -20
  550. package/lib/index.js +1 -1
  551. package/lib/loader/cdn.js +1 -2
  552. package/lib/loader/index.cjs.js +1 -2
  553. package/lib/loader/index.es2017.js +0 -1
  554. package/lib/loader/index.js +1 -2
  555. package/lib/types/common-strings.d.ts +3 -0
  556. package/lib/types/common-types.d.ts +1 -1
  557. package/lib/types/components/duet-alert/duet-alert.d.ts +20 -10
  558. package/lib/types/components/duet-badge/duet-badge.d.ts +1 -0
  559. package/lib/types/components/duet-banner/duet-banner.d.ts +6 -0
  560. package/lib/types/components/duet-breadcrumbs/duet-breadcrumb.d.ts +2 -4
  561. package/lib/types/components/duet-card/duet-card.d.ts +10 -0
  562. package/lib/types/components/duet-chip/duet-chip.d.ts +1 -0
  563. package/lib/types/components/duet-choice/duet-choice.d.ts +4 -8
  564. package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +3 -2
  565. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +4 -1
  566. package/lib/types/components/duet-combobox/duet-combobox.d.ts +2 -0
  567. package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +4 -0
  568. package/lib/types/components/duet-fieldset/duet-fieldset.d.ts +3 -0
  569. package/lib/types/components/duet-grid/duet-grid.d.ts +10 -7
  570. package/lib/types/components/duet-hero/duet-hero.d.ts +9 -0
  571. package/lib/types/components/duet-indicator/duet-indicator.d.ts +24 -0
  572. package/lib/types/components/duet-input/duet-input.d.ts +21 -13
  573. package/lib/types/components/duet-link/duet-link.d.ts +3 -0
  574. package/lib/types/components/duet-list-item/duet-list-item.d.ts +9 -3
  575. package/lib/types/components/duet-logo/duet-logo.d.ts +8 -0
  576. package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +5 -4
  577. package/lib/types/components/duet-modal/duet-modal.d.ts +17 -1
  578. package/lib/types/components/duet-notification/duet-notification.d.ts +1 -0
  579. package/lib/types/components/duet-number-input/duet-number-input.d.ts +13 -8
  580. package/lib/types/components/duet-overlay/duet-overlay.d.ts +4 -0
  581. package/lib/types/components/duet-panel/duet-panel.d.ts +47 -0
  582. package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +1 -0
  583. package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +23 -1
  584. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +10 -6
  585. package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +1 -0
  586. package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +4 -0
  587. package/lib/types/components/duet-radio-group/duet-radio-group.d.ts +1 -0
  588. package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +18 -0
  589. package/lib/types/components/duet-select/duet-select.d.ts +2 -1
  590. package/lib/types/components/duet-share-chart/duet-share-chart.d.ts +34 -0
  591. package/lib/types/components/duet-share-chart-item/duet-share-chart-item.d.ts +13 -0
  592. package/lib/types/components/duet-show-more/duet-show-more.d.ts +1 -0
  593. package/lib/types/components/duet-slideout/duet-slideout.d.ts +4 -5
  594. package/lib/types/components/duet-spinner/duet-spinner.d.ts +6 -3
  595. package/lib/types/components/duet-status-icon/duet-status-icon.d.ts +1 -0
  596. package/lib/types/components/duet-stepper/duet-stepper.d.ts +5 -2
  597. package/lib/types/components/duet-tab/duet-tab.d.ts +10 -0
  598. package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +9 -0
  599. package/lib/types/components/duet-textarea/duet-textarea.d.ts +21 -9
  600. package/lib/types/components/duet-toggle/duet-toggle.d.ts +4 -0
  601. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +1 -1
  602. package/lib/types/components.d.ts +2136 -73
  603. package/lib/types/index.d.ts +1 -0
  604. package/lib/types/stencil-public-runtime.d.ts +35 -6
  605. package/lib/types/utils/a11y-utils.d.ts +11 -0
  606. package/lib/types/utils/language-utils.d.ts +1 -0
  607. package/lib/types/utils/slot-utils.d.ts +1 -0
  608. package/lib/types/utils/teleport.d.ts +4 -1
  609. package/lib/types/utils/token-utils.d.ts +4 -0
  610. package/lib/types/utils/turva2-color-tokens.d.ts +39 -0
  611. package/package.json +37 -17
  612. package/lib/cjs/a11y-utils-be617c0c.js +0 -25
  613. package/lib/cjs/action-arrow-down-small-ef77a2d1.js +0 -8
  614. package/lib/cjs/action-new-window-small-fa51dfb9.js +0 -8
  615. package/lib/cjs/floating-ui.dom.esm-806e7c53.js +0 -1355
  616. package/lib/cjs/form-search-d61b2843.js +0 -8
  617. package/lib/cjs/themeable-component-996b489c.js +0 -15
  618. package/lib/dist-custom-elements/duet-action-button.d.ts +0 -11
  619. package/lib/dist-custom-elements/duet-action-button.js +0 -9
  620. package/lib/dist-custom-elements/duet-alert.d.ts +0 -11
  621. package/lib/dist-custom-elements/duet-alert.js +0 -9
  622. package/lib/dist-custom-elements/duet-badge.d.ts +0 -11
  623. package/lib/dist-custom-elements/duet-badge.js +0 -9
  624. package/lib/dist-custom-elements/duet-banner.d.ts +0 -11
  625. package/lib/dist-custom-elements/duet-banner.js +0 -157
  626. package/lib/dist-custom-elements/duet-breadcrumb.d.ts +0 -11
  627. package/lib/dist-custom-elements/duet-breadcrumb.js +0 -101
  628. package/lib/dist-custom-elements/duet-breadcrumbs.d.ts +0 -11
  629. package/lib/dist-custom-elements/duet-breadcrumbs.js +0 -88
  630. package/lib/dist-custom-elements/duet-button.d.ts +0 -11
  631. package/lib/dist-custom-elements/duet-button.js +0 -9
  632. package/lib/dist-custom-elements/duet-callout.d.ts +0 -11
  633. package/lib/dist-custom-elements/duet-callout.js +0 -72
  634. package/lib/dist-custom-elements/duet-caption.d.ts +0 -11
  635. package/lib/dist-custom-elements/duet-caption.js +0 -9
  636. package/lib/dist-custom-elements/duet-card.d.ts +0 -11
  637. package/lib/dist-custom-elements/duet-card.js +0 -174
  638. package/lib/dist-custom-elements/duet-checkbox.d.ts +0 -11
  639. package/lib/dist-custom-elements/duet-checkbox.js +0 -9
  640. package/lib/dist-custom-elements/duet-checkmark.d.ts +0 -11
  641. package/lib/dist-custom-elements/duet-checkmark.js +0 -9
  642. package/lib/dist-custom-elements/duet-chip.d.ts +0 -11
  643. package/lib/dist-custom-elements/duet-chip.js +0 -9
  644. package/lib/dist-custom-elements/duet-choice-group.d.ts +0 -11
  645. package/lib/dist-custom-elements/duet-choice-group.js +0 -228
  646. package/lib/dist-custom-elements/duet-choice.d.ts +0 -11
  647. package/lib/dist-custom-elements/duet-choice.js +0 -454
  648. package/lib/dist-custom-elements/duet-collapsible.d.ts +0 -11
  649. package/lib/dist-custom-elements/duet-collapsible.js +0 -176
  650. package/lib/dist-custom-elements/duet-combobox.d.ts +0 -11
  651. package/lib/dist-custom-elements/duet-combobox.js +0 -702
  652. package/lib/dist-custom-elements/duet-contact-card.d.ts +0 -11
  653. package/lib/dist-custom-elements/duet-contact-card.js +0 -134
  654. package/lib/dist-custom-elements/duet-cookie-consent.d.ts +0 -11
  655. package/lib/dist-custom-elements/duet-cookie-consent.js +0 -106
  656. package/lib/dist-custom-elements/duet-date-picker.d.ts +0 -11
  657. package/lib/dist-custom-elements/duet-date-picker.js +0 -937
  658. package/lib/dist-custom-elements/duet-divider.d.ts +0 -11
  659. package/lib/dist-custom-elements/duet-divider.js +0 -9
  660. package/lib/dist-custom-elements/duet-editable-table.d.ts +0 -11
  661. package/lib/dist-custom-elements/duet-editable-table.js +0 -258
  662. package/lib/dist-custom-elements/duet-empty-state.d.ts +0 -11
  663. package/lib/dist-custom-elements/duet-empty-state.js +0 -9
  664. package/lib/dist-custom-elements/duet-fieldset.d.ts +0 -11
  665. package/lib/dist-custom-elements/duet-fieldset.js +0 -9
  666. package/lib/dist-custom-elements/duet-file-chooser.d.ts +0 -11
  667. package/lib/dist-custom-elements/duet-file-chooser.js +0 -86
  668. package/lib/dist-custom-elements/duet-footer.d.ts +0 -11
  669. package/lib/dist-custom-elements/duet-footer.js +0 -223
  670. package/lib/dist-custom-elements/duet-grid-item.d.ts +0 -11
  671. package/lib/dist-custom-elements/duet-grid-item.js +0 -9
  672. package/lib/dist-custom-elements/duet-grid.d.ts +0 -11
  673. package/lib/dist-custom-elements/duet-grid.js +0 -9
  674. package/lib/dist-custom-elements/duet-header.d.ts +0 -11
  675. package/lib/dist-custom-elements/duet-header.js +0 -698
  676. package/lib/dist-custom-elements/duet-heading.d.ts +0 -11
  677. package/lib/dist-custom-elements/duet-heading.js +0 -9
  678. package/lib/dist-custom-elements/duet-hero.d.ts +0 -11
  679. package/lib/dist-custom-elements/duet-hero.js +0 -299
  680. package/lib/dist-custom-elements/duet-icon.d.ts +0 -11
  681. package/lib/dist-custom-elements/duet-icon.js +0 -9
  682. package/lib/dist-custom-elements/duet-input.d.ts +0 -11
  683. package/lib/dist-custom-elements/duet-input.js +0 -9
  684. package/lib/dist-custom-elements/duet-label.d.ts +0 -11
  685. package/lib/dist-custom-elements/duet-label.js +0 -70
  686. package/lib/dist-custom-elements/duet-layout.d.ts +0 -11
  687. package/lib/dist-custom-elements/duet-layout.js +0 -94
  688. package/lib/dist-custom-elements/duet-link.d.ts +0 -11
  689. package/lib/dist-custom-elements/duet-link.js +0 -9
  690. package/lib/dist-custom-elements/duet-list-item.d.ts +0 -11
  691. package/lib/dist-custom-elements/duet-list-item.js +0 -9
  692. package/lib/dist-custom-elements/duet-list.d.ts +0 -11
  693. package/lib/dist-custom-elements/duet-list.js +0 -9
  694. package/lib/dist-custom-elements/duet-logo.d.ts +0 -11
  695. package/lib/dist-custom-elements/duet-logo.js +0 -9
  696. package/lib/dist-custom-elements/duet-menu-bar-button.d.ts +0 -11
  697. package/lib/dist-custom-elements/duet-menu-bar-button.js +0 -94
  698. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.d.ts +0 -11
  699. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +0 -87
  700. package/lib/dist-custom-elements/duet-menu-bar-dropdown.d.ts +0 -11
  701. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +0 -108
  702. package/lib/dist-custom-elements/duet-menu-bar-item.d.ts +0 -11
  703. package/lib/dist-custom-elements/duet-menu-bar-item.js +0 -108
  704. package/lib/dist-custom-elements/duet-menu-bar-link.d.ts +0 -11
  705. package/lib/dist-custom-elements/duet-menu-bar-link.js +0 -70
  706. package/lib/dist-custom-elements/duet-menu-bar.d.ts +0 -11
  707. package/lib/dist-custom-elements/duet-menu-bar.js +0 -207
  708. package/lib/dist-custom-elements/duet-modal.d.ts +0 -11
  709. package/lib/dist-custom-elements/duet-modal.js +0 -382
  710. package/lib/dist-custom-elements/duet-multiselect.d.ts +0 -11
  711. package/lib/dist-custom-elements/duet-multiselect.js +0 -346
  712. package/lib/dist-custom-elements/duet-nav.d.ts +0 -11
  713. package/lib/dist-custom-elements/duet-nav.js +0 -54
  714. package/lib/dist-custom-elements/duet-notification-drawer.d.ts +0 -11
  715. package/lib/dist-custom-elements/duet-notification-drawer.js +0 -168
  716. package/lib/dist-custom-elements/duet-notification.d.ts +0 -11
  717. package/lib/dist-custom-elements/duet-notification.js +0 -95
  718. package/lib/dist-custom-elements/duet-number-input.d.ts +0 -11
  719. package/lib/dist-custom-elements/duet-number-input.js +0 -484
  720. package/lib/dist-custom-elements/duet-overlay.d.ts +0 -11
  721. package/lib/dist-custom-elements/duet-overlay.js +0 -9
  722. package/lib/dist-custom-elements/duet-page-heading.d.ts +0 -11
  723. package/lib/dist-custom-elements/duet-page-heading.js +0 -87
  724. package/lib/dist-custom-elements/duet-pagination.d.ts +0 -11
  725. package/lib/dist-custom-elements/duet-pagination.js +0 -493
  726. package/lib/dist-custom-elements/duet-paragraph.d.ts +0 -11
  727. package/lib/dist-custom-elements/duet-paragraph.js +0 -9
  728. package/lib/dist-custom-elements/duet-phone-input.d.ts +0 -11
  729. package/lib/dist-custom-elements/duet-phone-input.js +0 -2122
  730. package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +0 -11
  731. package/lib/dist-custom-elements/duet-popup-menu-item.js +0 -9
  732. package/lib/dist-custom-elements/duet-popup-menu.d.ts +0 -11
  733. package/lib/dist-custom-elements/duet-popup-menu.js +0 -9
  734. package/lib/dist-custom-elements/duet-progress.d.ts +0 -11
  735. package/lib/dist-custom-elements/duet-progress.js +0 -9
  736. package/lib/dist-custom-elements/duet-promo-card.d.ts +0 -11
  737. package/lib/dist-custom-elements/duet-promo-card.js +0 -105
  738. package/lib/dist-custom-elements/duet-radio-group.d.ts +0 -11
  739. package/lib/dist-custom-elements/duet-radio-group.js +0 -213
  740. package/lib/dist-custom-elements/duet-radio.d.ts +0 -11
  741. package/lib/dist-custom-elements/duet-radio.js +0 -230
  742. package/lib/dist-custom-elements/duet-range-slider.d.ts +0 -11
  743. package/lib/dist-custom-elements/duet-range-slider.js +0 -181
  744. package/lib/dist-custom-elements/duet-range-stepper.d.ts +0 -11
  745. package/lib/dist-custom-elements/duet-range-stepper.js +0 -234
  746. package/lib/dist-custom-elements/duet-scrollable.d.ts +0 -11
  747. package/lib/dist-custom-elements/duet-scrollable.js +0 -9
  748. package/lib/dist-custom-elements/duet-section-layout.d.ts +0 -11
  749. package/lib/dist-custom-elements/duet-section-layout.js +0 -56
  750. package/lib/dist-custom-elements/duet-select.d.ts +0 -11
  751. package/lib/dist-custom-elements/duet-select.js +0 -9
  752. package/lib/dist-custom-elements/duet-shaped-image.d.ts +0 -11
  753. package/lib/dist-custom-elements/duet-shaped-image.js +0 -64
  754. package/lib/dist-custom-elements/duet-show-more.d.ts +0 -11
  755. package/lib/dist-custom-elements/duet-show-more.js +0 -9
  756. package/lib/dist-custom-elements/duet-slideout-lang.d.ts +0 -11
  757. package/lib/dist-custom-elements/duet-slideout-lang.js +0 -76
  758. package/lib/dist-custom-elements/duet-slideout-link.d.ts +0 -11
  759. package/lib/dist-custom-elements/duet-slideout-link.js +0 -98
  760. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.d.ts +0 -11
  761. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +0 -93
  762. package/lib/dist-custom-elements/duet-slideout-panel.d.ts +0 -11
  763. package/lib/dist-custom-elements/duet-slideout-panel.js +0 -224
  764. package/lib/dist-custom-elements/duet-slideout.d.ts +0 -11
  765. package/lib/dist-custom-elements/duet-slideout.js +0 -328
  766. package/lib/dist-custom-elements/duet-spacer.d.ts +0 -11
  767. package/lib/dist-custom-elements/duet-spacer.js +0 -9
  768. package/lib/dist-custom-elements/duet-spinner.d.ts +0 -11
  769. package/lib/dist-custom-elements/duet-spinner.js +0 -9
  770. package/lib/dist-custom-elements/duet-status-icon.d.ts +0 -11
  771. package/lib/dist-custom-elements/duet-status-icon.js +0 -111
  772. package/lib/dist-custom-elements/duet-step.d.ts +0 -11
  773. package/lib/dist-custom-elements/duet-step.js +0 -147
  774. package/lib/dist-custom-elements/duet-stepper.d.ts +0 -11
  775. package/lib/dist-custom-elements/duet-stepper.js +0 -151
  776. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.d.ts +0 -11
  777. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +0 -81
  778. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.d.ts +0 -11
  779. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +0 -152
  780. package/lib/dist-custom-elements/duet-submenu-bar-item.d.ts +0 -11
  781. package/lib/dist-custom-elements/duet-submenu-bar-item.js +0 -113
  782. package/lib/dist-custom-elements/duet-submenu-bar-link.d.ts +0 -11
  783. package/lib/dist-custom-elements/duet-submenu-bar-link.js +0 -72
  784. package/lib/dist-custom-elements/duet-submenu-bar.d.ts +0 -11
  785. package/lib/dist-custom-elements/duet-submenu-bar.js +0 -192
  786. package/lib/dist-custom-elements/duet-tab-group.d.ts +0 -11
  787. package/lib/dist-custom-elements/duet-tab-group.js +0 -312
  788. package/lib/dist-custom-elements/duet-tab.d.ts +0 -11
  789. package/lib/dist-custom-elements/duet-tab.js +0 -150
  790. package/lib/dist-custom-elements/duet-table.d.ts +0 -11
  791. package/lib/dist-custom-elements/duet-table.js +0 -9
  792. package/lib/dist-custom-elements/duet-textarea.d.ts +0 -11
  793. package/lib/dist-custom-elements/duet-textarea.js +0 -301
  794. package/lib/dist-custom-elements/duet-toggle.d.ts +0 -11
  795. package/lib/dist-custom-elements/duet-toggle.js +0 -146
  796. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.d.ts +0 -11
  797. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +0 -80
  798. package/lib/dist-custom-elements/duet-toolbar-dropdown.d.ts +0 -11
  799. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +0 -107
  800. package/lib/dist-custom-elements/duet-toolbar-item.d.ts +0 -11
  801. package/lib/dist-custom-elements/duet-toolbar-item.js +0 -120
  802. package/lib/dist-custom-elements/duet-toolbar-link.d.ts +0 -11
  803. package/lib/dist-custom-elements/duet-toolbar-link.js +0 -74
  804. package/lib/dist-custom-elements/duet-toolbar.d.ts +0 -11
  805. package/lib/dist-custom-elements/duet-toolbar.js +0 -67
  806. package/lib/dist-custom-elements/duet-tooltip-button.d.ts +0 -11
  807. package/lib/dist-custom-elements/duet-tooltip-button.js +0 -9
  808. package/lib/dist-custom-elements/duet-tooltip-popup.d.ts +0 -11
  809. package/lib/dist-custom-elements/duet-tooltip-popup.js +0 -9
  810. package/lib/dist-custom-elements/duet-tooltip.d.ts +0 -11
  811. package/lib/dist-custom-elements/duet-tooltip.js +0 -9
  812. package/lib/dist-custom-elements/duet-tray.d.ts +0 -11
  813. package/lib/dist-custom-elements/duet-tray.js +0 -146
  814. package/lib/dist-custom-elements/duet-upload-aria-status.d.ts +0 -11
  815. package/lib/dist-custom-elements/duet-upload-aria-status.js +0 -9
  816. package/lib/dist-custom-elements/duet-upload-item.d.ts +0 -11
  817. package/lib/dist-custom-elements/duet-upload-item.js +0 -9
  818. package/lib/dist-custom-elements/duet-upload.d.ts +0 -11
  819. package/lib/dist-custom-elements/duet-upload.js +0 -1444
  820. package/lib/dist-custom-elements/duet-visually-hidden.d.ts +0 -11
  821. package/lib/dist-custom-elements/duet-visually-hidden.js +0 -9
  822. package/lib/dist-custom-elements/index.d.ts +0 -33
  823. package/lib/dist-custom-elements/index.js +0 -29
  824. package/lib/dist-custom-elements/p-081025d8.js +0 -82
  825. package/lib/dist-custom-elements/p-0871ccd4.js +0 -56
  826. package/lib/dist-custom-elements/p-115c79b6.js +0 -6
  827. package/lib/dist-custom-elements/p-18248c41.js +0 -81
  828. package/lib/dist-custom-elements/p-196352e6.js +0 -39
  829. package/lib/dist-custom-elements/p-2768f969.js +0 -268
  830. package/lib/dist-custom-elements/p-30810e37.js +0 -60
  831. package/lib/dist-custom-elements/p-35375593.js +0 -161
  832. package/lib/dist-custom-elements/p-3c70317f.js +0 -63
  833. package/lib/dist-custom-elements/p-4150399b.js +0 -205
  834. package/lib/dist-custom-elements/p-548610a6.js +0 -2130
  835. package/lib/dist-custom-elements/p-592cf939.js +0 -102
  836. package/lib/dist-custom-elements/p-59782228.js +0 -61
  837. package/lib/dist-custom-elements/p-5d871374.js +0 -316
  838. package/lib/dist-custom-elements/p-5e91471a.js +0 -63
  839. package/lib/dist-custom-elements/p-60316b82.js +0 -642
  840. package/lib/dist-custom-elements/p-63963e6b.js +0 -124
  841. package/lib/dist-custom-elements/p-6620a58c.js +0 -607
  842. package/lib/dist-custom-elements/p-77667998.js +0 -232
  843. package/lib/dist-custom-elements/p-77d42564.js +0 -124
  844. package/lib/dist-custom-elements/p-8258c05e.js +0 -100
  845. package/lib/dist-custom-elements/p-8a840972.js +0 -194
  846. package/lib/dist-custom-elements/p-8d263ac9.js +0 -94
  847. package/lib/dist-custom-elements/p-91cdfcdd.js +0 -73
  848. package/lib/dist-custom-elements/p-940f9ee8.js +0 -1630
  849. package/lib/dist-custom-elements/p-993aea39.js +0 -175
  850. package/lib/dist-custom-elements/p-9df4cfa4.js +0 -25
  851. package/lib/dist-custom-elements/p-9e31e365.js +0 -214
  852. package/lib/dist-custom-elements/p-9ee4d52e.js +0 -321
  853. package/lib/dist-custom-elements/p-a9b78a2b.js +0 -441
  854. package/lib/dist-custom-elements/p-aaa7a7bd.js +0 -13
  855. package/lib/dist-custom-elements/p-aaa95dbc.js +0 -370
  856. package/lib/dist-custom-elements/p-ad615991.js +0 -115
  857. package/lib/dist-custom-elements/p-afb6f7fb.js +0 -23
  858. package/lib/dist-custom-elements/p-b322feac.js +0 -206
  859. package/lib/dist-custom-elements/p-b632bf7b.js +0 -178
  860. package/lib/dist-custom-elements/p-ca3cb21e.js +0 -116
  861. package/lib/dist-custom-elements/p-ccee2b7f.js +0 -127
  862. package/lib/dist-custom-elements/p-cea716f7.js +0 -503
  863. package/lib/dist-custom-elements/p-d004da5f.js +0 -6
  864. package/lib/dist-custom-elements/p-df2458b1.js +0 -80
  865. package/lib/dist-custom-elements/p-e58296e6.js +0 -110
  866. package/lib/dist-custom-elements/p-ed1ef4c3.js +0 -55
  867. package/lib/dist-custom-elements/p-ed6a907e.js +0 -61
  868. package/lib/dist-custom-elements/p-ed6f3abc.js +0 -165
  869. package/lib/dist-custom-elements/p-ee0c73c3.js +0 -50
  870. package/lib/dist-custom-elements/p-f11208c3.js +0 -6
  871. package/lib/dist-custom-elements/p-f4067b03.js +0 -154
  872. package/lib/dist-custom-elements/p-f6000a03.js +0 -753
  873. package/lib/dist-custom-elements/p-f6270dca.js +0 -83
  874. package/lib/duet/duet.js +0 -127
  875. package/lib/duet/p-00556ef0.entry.js +0 -4
  876. package/lib/duet/p-00e58acf.system.entry.js +0 -4
  877. package/lib/duet/p-02d914b6.system.js +0 -4
  878. package/lib/duet/p-03dfd146.system.entry.js +0 -4
  879. package/lib/duet/p-043d8cac.entry.js +0 -4
  880. package/lib/duet/p-053b71e6.system.js +0 -4
  881. package/lib/duet/p-078dc32d.system.js +0 -4
  882. package/lib/duet/p-083bbc28.js +0 -4
  883. package/lib/duet/p-097593e0.system.entry.js +0 -4
  884. package/lib/duet/p-0c4bbd65.system.js +0 -4
  885. package/lib/duet/p-0d7da85a.js +0 -4
  886. package/lib/duet/p-0dc9089b.system.js +0 -4
  887. package/lib/duet/p-115c79b6.js +0 -4
  888. package/lib/duet/p-12739ce5.entry.js +0 -4
  889. package/lib/duet/p-154681bc.system.entry.js +0 -4
  890. package/lib/duet/p-16bc0f6a.system.entry.js +0 -4
  891. package/lib/duet/p-20a9379e.entry.js +0 -4
  892. package/lib/duet/p-21124f63.system.entry.js +0 -4
  893. package/lib/duet/p-222fb4e2.entry.js +0 -4
  894. package/lib/duet/p-2306d206.entry.js +0 -4
  895. package/lib/duet/p-232405fe.system.entry.js +0 -4
  896. package/lib/duet/p-280babbe.entry.js +0 -4
  897. package/lib/duet/p-29cfae19.system.entry.js +0 -4
  898. package/lib/duet/p-2acb5228.system.entry.js +0 -4
  899. package/lib/duet/p-2bb44297.system.js +0 -4
  900. package/lib/duet/p-2d3cfed7.entry.js +0 -4
  901. package/lib/duet/p-2ea79237.entry.js +0 -4
  902. package/lib/duet/p-2f4a1c87.system.entry.js +0 -4
  903. package/lib/duet/p-30424dea.entry.js +0 -4
  904. package/lib/duet/p-32f2bb6f.system.entry.js +0 -4
  905. package/lib/duet/p-36d473db.entry.js +0 -4
  906. package/lib/duet/p-36e38e72.entry.js +0 -4
  907. package/lib/duet/p-380e506a.system.entry.js +0 -4
  908. package/lib/duet/p-3931d796.system.entry.js +0 -4
  909. package/lib/duet/p-396397f0.entry.js +0 -4
  910. package/lib/duet/p-39c8d5f4.entry.js +0 -4
  911. package/lib/duet/p-3c43bf45.system.entry.js +0 -4
  912. package/lib/duet/p-3c548017.entry.js +0 -4
  913. package/lib/duet/p-3edeecdd.system.entry.js +0 -4
  914. package/lib/duet/p-41982d26.system.js +0 -4
  915. package/lib/duet/p-422bf802.system.entry.js +0 -4
  916. package/lib/duet/p-42789990.system.entry.js +0 -4
  917. package/lib/duet/p-44ac35f1.entry.js +0 -4
  918. package/lib/duet/p-49957220.system.js +0 -4
  919. package/lib/duet/p-49cbde53.entry.js +0 -4
  920. package/lib/duet/p-49d89759.system.entry.js +0 -4
  921. package/lib/duet/p-4af1174c.entry.js +0 -4
  922. package/lib/duet/p-4bbc1e3f.system.entry.js +0 -4
  923. package/lib/duet/p-4cff3036.system.js +0 -4
  924. package/lib/duet/p-4d228791.entry.js +0 -4
  925. package/lib/duet/p-4e095335.entry.js +0 -4
  926. package/lib/duet/p-4f872b2e.system.entry.js +0 -4
  927. package/lib/duet/p-4f945200.system.js +0 -4
  928. package/lib/duet/p-4ffcbae2.entry.js +0 -4
  929. package/lib/duet/p-534baf68.system.entry.js +0 -4
  930. package/lib/duet/p-55b6ebd2.system.entry.js +0 -4
  931. package/lib/duet/p-565c967d.system.entry.js +0 -4
  932. package/lib/duet/p-56d5d3bd.system.entry.js +0 -4
  933. package/lib/duet/p-570fd695.system.entry.js +0 -4
  934. package/lib/duet/p-5a148896.entry.js +0 -4
  935. package/lib/duet/p-5a47d2bb.entry.js +0 -4
  936. package/lib/duet/p-5acfa4bf.entry.js +0 -4
  937. package/lib/duet/p-5b5a4a8f.entry.js +0 -4
  938. package/lib/duet/p-5cbadb53.system.entry.js +0 -4
  939. package/lib/duet/p-5cc339cf.entry.js +0 -4
  940. package/lib/duet/p-5d1a4238.entry.js +0 -4
  941. package/lib/duet/p-5e01a303.system.entry.js +0 -4
  942. package/lib/duet/p-5f668b4a.system.entry.js +0 -4
  943. package/lib/duet/p-5ffa7838.entry.js +0 -4
  944. package/lib/duet/p-61173f11.system.js +0 -5
  945. package/lib/duet/p-622e1ffc.js +0 -4
  946. package/lib/duet/p-64f2d5cf.system.entry.js +0 -4
  947. package/lib/duet/p-650c6251.system.entry.js +0 -4
  948. package/lib/duet/p-69e55527.system.entry.js +0 -4
  949. package/lib/duet/p-6ac3b242.entry.js +0 -4
  950. package/lib/duet/p-6ac7d70c.entry.js +0 -4
  951. package/lib/duet/p-6c8f09c8.system.entry.js +0 -4
  952. package/lib/duet/p-6eec1445.system.entry.js +0 -4
  953. package/lib/duet/p-6fc78573.entry.js +0 -4
  954. package/lib/duet/p-705dbeac.system.entry.js +0 -4
  955. package/lib/duet/p-71a37f03.entry.js +0 -4
  956. package/lib/duet/p-752fa0fc.system.js +0 -4
  957. package/lib/duet/p-760919c7.system.entry.js +0 -4
  958. package/lib/duet/p-7be5b9a7.js +0 -4
  959. package/lib/duet/p-7c119b9b.system.entry.js +0 -4
  960. package/lib/duet/p-7cd899ca.system.entry.js +0 -4
  961. package/lib/duet/p-7d8a2628.js +0 -4
  962. package/lib/duet/p-7ea9d8e4.system.entry.js +0 -4
  963. package/lib/duet/p-7fc6af46.system.entry.js +0 -4
  964. package/lib/duet/p-7fe5e652.entry.js +0 -4
  965. package/lib/duet/p-86038989.entry.js +0 -4
  966. package/lib/duet/p-872b746e.entry.js +0 -4
  967. package/lib/duet/p-875d3971.entry.js +0 -4
  968. package/lib/duet/p-88daf9bb.system.entry.js +0 -4
  969. package/lib/duet/p-89ac2008.system.entry.js +0 -4
  970. package/lib/duet/p-89cf1a91.system.js +0 -4
  971. package/lib/duet/p-8d43c8cf.entry.js +0 -4
  972. package/lib/duet/p-8f450e25.entry.js +0 -4
  973. package/lib/duet/p-8f477bd6.system.js +0 -4
  974. package/lib/duet/p-8faaaf5f.system.js +0 -4
  975. package/lib/duet/p-907b42ae.system.entry.js +0 -4
  976. package/lib/duet/p-9183c04b.system.entry.js +0 -4
  977. package/lib/duet/p-91b68d54.entry.js +0 -4
  978. package/lib/duet/p-92d47024.system.entry.js +0 -4
  979. package/lib/duet/p-939f268d.entry.js +0 -4
  980. package/lib/duet/p-93c115a9.system.entry.js +0 -4
  981. package/lib/duet/p-943bf2b1.system.entry.js +0 -4
  982. package/lib/duet/p-9592f6ba.entry.js +0 -4
  983. package/lib/duet/p-96d76a4b.entry.js +0 -4
  984. package/lib/duet/p-98636086.system.js +0 -4
  985. package/lib/duet/p-9a57fac7.entry.js +0 -4
  986. package/lib/duet/p-9b16ba14.system.entry.js +0 -4
  987. package/lib/duet/p-9b61d7b9.system.entry.js +0 -4
  988. package/lib/duet/p-9d429df0.system.entry.js +0 -4
  989. package/lib/duet/p-9e5b11f7.entry.js +0 -4
  990. package/lib/duet/p-9ee0f850.entry.js +0 -4
  991. package/lib/duet/p-a083b91a.js +0 -5
  992. package/lib/duet/p-a11e1a80.system.entry.js +0 -4
  993. package/lib/duet/p-a1e5f0d4.entry.js +0 -4
  994. package/lib/duet/p-a4b80c74.entry.js +0 -4
  995. package/lib/duet/p-a7b0d8ce.entry.js +0 -4
  996. package/lib/duet/p-aaa7a7bd.js +0 -4
  997. package/lib/duet/p-abc0c9c6.system.js +0 -4
  998. package/lib/duet/p-ad07b21e.system.entry.js +0 -4
  999. package/lib/duet/p-ad0d289a.system.entry.js +0 -4
  1000. package/lib/duet/p-ad2b37b0.entry.js +0 -4
  1001. package/lib/duet/p-adc2d7ce.system.entry.js +0 -4
  1002. package/lib/duet/p-aef92a68.entry.js +0 -4
  1003. package/lib/duet/p-afad5fd3.system.js +0 -4
  1004. package/lib/duet/p-b15523c2.entry.js +0 -4
  1005. package/lib/duet/p-b17984d6.system.entry.js +0 -4
  1006. package/lib/duet/p-b2df3729.entry.js +0 -4
  1007. package/lib/duet/p-b327a269.entry.js +0 -4
  1008. package/lib/duet/p-b33512d6.js +0 -4
  1009. package/lib/duet/p-b48b58e1.entry.js +0 -4
  1010. package/lib/duet/p-b864159a.system.js +0 -4
  1011. package/lib/duet/p-b8775dc1.system.entry.js +0 -4
  1012. package/lib/duet/p-ba03d034.system.js +0 -4
  1013. package/lib/duet/p-bbb92080.entry.js +0 -4
  1014. package/lib/duet/p-bd5b0381.entry.js +0 -4
  1015. package/lib/duet/p-bdb001df.entry.js +0 -4
  1016. package/lib/duet/p-be097905.entry.js +0 -4
  1017. package/lib/duet/p-beeb12f1.js +0 -4
  1018. package/lib/duet/p-c118fad4.js +0 -4
  1019. package/lib/duet/p-c1483141.entry.js +0 -4
  1020. package/lib/duet/p-c2e74c89.system.entry.js +0 -4
  1021. package/lib/duet/p-c40ee5d3.entry.js +0 -4
  1022. package/lib/duet/p-c480533b.entry.js +0 -4
  1023. package/lib/duet/p-c487869c.entry.js +0 -4
  1024. package/lib/duet/p-c507caa0.entry.js +0 -4
  1025. package/lib/duet/p-c58f3932.entry.js +0 -4
  1026. package/lib/duet/p-c5d88a34.system.entry.js +0 -4
  1027. package/lib/duet/p-c6bf2cc4.system.entry.js +0 -4
  1028. package/lib/duet/p-c6f29010.system.entry.js +0 -4
  1029. package/lib/duet/p-ca29569e.system.js +0 -4
  1030. package/lib/duet/p-ca3cb21e.js +0 -4
  1031. package/lib/duet/p-ca901ab9.entry.js +0 -4
  1032. package/lib/duet/p-cc5e6288.system.js +0 -4
  1033. package/lib/duet/p-cc67e773.js +0 -4
  1034. package/lib/duet/p-cdba12cc.system.js +0 -4
  1035. package/lib/duet/p-ce282523.entry.js +0 -4
  1036. package/lib/duet/p-cebffd48.system.entry.js +0 -4
  1037. package/lib/duet/p-cf2d66a9.system.entry.js +0 -4
  1038. package/lib/duet/p-cf511280.system.entry.js +0 -4
  1039. package/lib/duet/p-d004da5f.js +0 -4
  1040. package/lib/duet/p-d2875f04.system.entry.js +0 -4
  1041. package/lib/duet/p-d40b4a20.entry.js +0 -4
  1042. package/lib/duet/p-d4554cf2.entry.js +0 -4
  1043. package/lib/duet/p-d4ddd4d1.entry.js +0 -4
  1044. package/lib/duet/p-d5317013.system.entry.js +0 -4
  1045. package/lib/duet/p-d68e93e4.system.entry.js +0 -4
  1046. package/lib/duet/p-d6a321fd.system.entry.js +0 -4
  1047. package/lib/duet/p-d835a292.entry.js +0 -4
  1048. package/lib/duet/p-d840dcdc.system.entry.js +0 -4
  1049. package/lib/duet/p-dac4bc08.system.entry.js +0 -4
  1050. package/lib/duet/p-db2ccb9d.system.js +0 -4
  1051. package/lib/duet/p-e0b83f6c.system.entry.js +0 -4
  1052. package/lib/duet/p-e12066c8.system.js +0 -4
  1053. package/lib/duet/p-e216bea4.system.js +0 -4
  1054. package/lib/duet/p-e29d9d5b.system.entry.js +0 -4
  1055. package/lib/duet/p-e3857119.js +0 -4
  1056. package/lib/duet/p-e45d4dc4.system.entry.js +0 -4
  1057. package/lib/duet/p-e4c8559c.system.js +0 -4
  1058. package/lib/duet/p-e50214f5.system.entry.js +0 -4
  1059. package/lib/duet/p-e6b5a1c7.system.js +0 -4
  1060. package/lib/duet/p-e7c3186e.system.entry.js +0 -4
  1061. package/lib/duet/p-e89a92a9.entry.js +0 -4
  1062. package/lib/duet/p-eb02c981.system.entry.js +0 -4
  1063. package/lib/duet/p-ed086770.system.entry.js +0 -4
  1064. package/lib/duet/p-eebfe28d.system.entry.js +0 -4
  1065. package/lib/duet/p-ef520403.entry.js +0 -4
  1066. package/lib/duet/p-f0260e4c.entry.js +0 -4
  1067. package/lib/duet/p-f07eace6.system.entry.js +0 -4
  1068. package/lib/duet/p-f1083d8c.system.entry.js +0 -4
  1069. package/lib/duet/p-f10d7817.entry.js +0 -4
  1070. package/lib/duet/p-f11208c3.js +0 -4
  1071. package/lib/duet/p-f18245aa.system.entry.js +0 -4
  1072. package/lib/duet/p-f4063bd4.entry.js +0 -4
  1073. package/lib/duet/p-f56098f1.system.entry.js +0 -4
  1074. package/lib/duet/p-f6000a03.js +0 -4
  1075. package/lib/duet/p-f67921d2.system.entry.js +0 -4
  1076. package/lib/duet/p-f6b21d17.system.js +0 -4
  1077. package/lib/duet/p-f7fe4161.system.entry.js +0 -4
  1078. package/lib/duet/p-f97dd407.entry.js +0 -4
  1079. package/lib/duet/p-fcfae4d6.entry.js +0 -4
  1080. package/lib/esm/a11y-utils-c3a7fd7e.js +0 -23
  1081. package/lib/esm/action-arrow-down-small-82273dc8.js +0 -6
  1082. package/lib/esm/action-new-window-small-1945be91.js +0 -6
  1083. package/lib/esm/body-scroll-46854769.js +0 -234
  1084. package/lib/esm/bodyScrollLock.es6-ecbf187e.js +0 -184
  1085. package/lib/esm/common-strings-af765cad.js +0 -25
  1086. package/lib/esm/create-id-149a1b6d.js +0 -11
  1087. package/lib/esm/floating-ui.dom.esm-ebc91b33.js +0 -1348
  1088. package/lib/esm/focus-utils-7bc146cd.js +0 -18
  1089. package/lib/esm/form-search-ea8e19ae.js +0 -6
  1090. package/lib/esm/input-utils-85681162.js +0 -53
  1091. package/lib/esm/is-internet-explorer-2c48f686.js +0 -9
  1092. package/lib/esm/js-utils-9b9e0039.js +0 -47
  1093. package/lib/esm/keyboard-utils-daf80d44.js +0 -58
  1094. package/lib/esm/label-de5c8cbd.js +0 -20
  1095. package/lib/esm/polyfills/core-js.js +0 -11
  1096. package/lib/esm/polyfills/dom.js +0 -79
  1097. package/lib/esm/polyfills/es5-html-element.js +0 -1
  1098. package/lib/esm/polyfills/index.js +0 -34
  1099. package/lib/esm/polyfills/system.js +0 -6
  1100. package/lib/esm/string-utils-192eb3c8.js +0 -61
  1101. package/lib/esm/themeable-component-860041c5.js +0 -13
  1102. package/lib/esm/token-utils-b9ba8c5e.js +0 -138
  1103. package/lib/esm/watch-options-e96ecd92.js +0 -57
  1104. package/lib/esm-es5/a11y-utils-c3a7fd7e.js +0 -4
  1105. package/lib/esm-es5/action-arrow-down-small-82273dc8.js +0 -4
  1106. package/lib/esm-es5/action-new-window-small-1945be91.js +0 -4
  1107. package/lib/esm-es5/app-globals-e00fbe9c.js +0 -4
  1108. package/lib/esm-es5/body-scroll-46854769.js +0 -4
  1109. package/lib/esm-es5/bodyScrollLock.es6-ecbf187e.js +0 -4
  1110. package/lib/esm-es5/common-strings-af765cad.js +0 -4
  1111. package/lib/esm-es5/create-id-149a1b6d.js +0 -4
  1112. package/lib/esm-es5/duet-action-button.entry.js +0 -4
  1113. package/lib/esm-es5/duet-alert.entry.js +0 -4
  1114. package/lib/esm-es5/duet-badge.entry.js +0 -4
  1115. package/lib/esm-es5/duet-banner.entry.js +0 -4
  1116. package/lib/esm-es5/duet-breadcrumb.entry.js +0 -4
  1117. package/lib/esm-es5/duet-breadcrumbs.entry.js +0 -4
  1118. package/lib/esm-es5/duet-button_2.entry.js +0 -4
  1119. package/lib/esm-es5/duet-callout.entry.js +0 -4
  1120. package/lib/esm-es5/duet-caption_4.entry.js +0 -4
  1121. package/lib/esm-es5/duet-card.entry.js +0 -4
  1122. package/lib/esm-es5/duet-checkbox.entry.js +0 -4
  1123. package/lib/esm-es5/duet-checkmark.entry.js +0 -4
  1124. package/lib/esm-es5/duet-chip.entry.js +0 -4
  1125. package/lib/esm-es5/duet-choice_2.entry.js +0 -4
  1126. package/lib/esm-es5/duet-collapsible.entry.js +0 -4
  1127. package/lib/esm-es5/duet-combobox.entry.js +0 -4
  1128. package/lib/esm-es5/duet-contact-card.entry.js +0 -4
  1129. package/lib/esm-es5/duet-cookie-consent.entry.js +0 -4
  1130. package/lib/esm-es5/duet-date-picker.entry.js +0 -4
  1131. package/lib/esm-es5/duet-divider_2.entry.js +0 -4
  1132. package/lib/esm-es5/duet-editable-table_3.entry.js +0 -4
  1133. package/lib/esm-es5/duet-empty-state.entry.js +0 -4
  1134. package/lib/esm-es5/duet-fieldset.entry.js +0 -4
  1135. package/lib/esm-es5/duet-file-chooser.entry.js +0 -4
  1136. package/lib/esm-es5/duet-footer.entry.js +0 -4
  1137. package/lib/esm-es5/duet-grid_2.entry.js +0 -4
  1138. package/lib/esm-es5/duet-header_2.entry.js +0 -4
  1139. package/lib/esm-es5/duet-hero.entry.js +0 -4
  1140. package/lib/esm-es5/duet-icon.entry.js +0 -4
  1141. package/lib/esm-es5/duet-input_2.entry.js +0 -4
  1142. package/lib/esm-es5/duet-layout.entry.js +0 -4
  1143. package/lib/esm-es5/duet-list_2.entry.js +0 -4
  1144. package/lib/esm-es5/duet-menu-bar-button.entry.js +0 -4
  1145. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +0 -4
  1146. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +0 -4
  1147. package/lib/esm-es5/duet-menu-bar-item.entry.js +0 -4
  1148. package/lib/esm-es5/duet-menu-bar-link.entry.js +0 -4
  1149. package/lib/esm-es5/duet-menu-bar.entry.js +0 -4
  1150. package/lib/esm-es5/duet-modal.entry.js +0 -4
  1151. package/lib/esm-es5/duet-multiselect.entry.js +0 -4
  1152. package/lib/esm-es5/duet-nav.entry.js +0 -4
  1153. package/lib/esm-es5/duet-notification_2.entry.js +0 -4
  1154. package/lib/esm-es5/duet-number-input.entry.js +0 -4
  1155. package/lib/esm-es5/duet-overlay.entry.js +0 -4
  1156. package/lib/esm-es5/duet-page-heading.entry.js +0 -4
  1157. package/lib/esm-es5/duet-pagination_2.entry.js +0 -4
  1158. package/lib/esm-es5/duet-phone-input.entry.js +0 -4
  1159. package/lib/esm-es5/duet-popup-menu_2.entry.js +0 -4
  1160. package/lib/esm-es5/duet-progress.entry.js +0 -4
  1161. package/lib/esm-es5/duet-promo-card.entry.js +0 -4
  1162. package/lib/esm-es5/duet-radio_2.entry.js +0 -4
  1163. package/lib/esm-es5/duet-range-slider.entry.js +0 -4
  1164. package/lib/esm-es5/duet-scrollable_3.entry.js +0 -4
  1165. package/lib/esm-es5/duet-section-layout.entry.js +0 -4
  1166. package/lib/esm-es5/duet-select.entry.js +0 -4
  1167. package/lib/esm-es5/duet-shaped-image.entry.js +0 -4
  1168. package/lib/esm-es5/duet-show-more.entry.js +0 -4
  1169. package/lib/esm-es5/duet-slideout-lang.entry.js +0 -4
  1170. package/lib/esm-es5/duet-slideout-link.entry.js +0 -4
  1171. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +0 -4
  1172. package/lib/esm-es5/duet-slideout-panel.entry.js +0 -4
  1173. package/lib/esm-es5/duet-slideout.entry.js +0 -4
  1174. package/lib/esm-es5/duet-status-icon.entry.js +0 -4
  1175. package/lib/esm-es5/duet-step_2.entry.js +0 -4
  1176. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +0 -4
  1177. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +0 -4
  1178. package/lib/esm-es5/duet-submenu-bar-item.entry.js +0 -4
  1179. package/lib/esm-es5/duet-submenu-bar-link.entry.js +0 -4
  1180. package/lib/esm-es5/duet-submenu-bar.entry.js +0 -4
  1181. package/lib/esm-es5/duet-textarea.entry.js +0 -4
  1182. package/lib/esm-es5/duet-toggle.entry.js +0 -4
  1183. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +0 -4
  1184. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +0 -4
  1185. package/lib/esm-es5/duet-toolbar-item.entry.js +0 -4
  1186. package/lib/esm-es5/duet-toolbar-link.entry.js +0 -4
  1187. package/lib/esm-es5/duet-toolbar.entry.js +0 -4
  1188. package/lib/esm-es5/duet-tooltip-button_2.entry.js +0 -4
  1189. package/lib/esm-es5/duet-tooltip.entry.js +0 -4
  1190. package/lib/esm-es5/duet-tray.entry.js +0 -4
  1191. package/lib/esm-es5/duet-upload-aria-status.entry.js +0 -4
  1192. package/lib/esm-es5/duet-upload-item.entry.js +0 -4
  1193. package/lib/esm-es5/duet-visually-hidden.entry.js +0 -4
  1194. package/lib/esm-es5/duet.js +0 -4
  1195. package/lib/esm-es5/errorcodes.utils-416994cc.js +0 -4
  1196. package/lib/esm-es5/floating-ui.dom.esm-ebc91b33.js +0 -4
  1197. package/lib/esm-es5/focus-utils-7bc146cd.js +0 -4
  1198. package/lib/esm-es5/form-search-ea8e19ae.js +0 -4
  1199. package/lib/esm-es5/index-1a6cee61.js +0 -4
  1200. package/lib/esm-es5/index.js +0 -3
  1201. package/lib/esm-es5/input-utils-85681162.js +0 -4
  1202. package/lib/esm-es5/is-internet-explorer-2c48f686.js +0 -4
  1203. package/lib/esm-es5/js-utils-9b9e0039.js +0 -4
  1204. package/lib/esm-es5/keyboard-utils-daf80d44.js +0 -4
  1205. package/lib/esm-es5/label-de5c8cbd.js +0 -4
  1206. package/lib/esm-es5/language-utils-8a9d5323.js +0 -4
  1207. package/lib/esm-es5/loader.js +0 -4
  1208. package/lib/esm-es5/slot-utils-bf214ae5.js +0 -4
  1209. package/lib/esm-es5/string-utils-192eb3c8.js +0 -4
  1210. package/lib/esm-es5/teleport-546f382d.js +0 -4
  1211. package/lib/esm-es5/themeable-component-860041c5.js +0 -4
  1212. package/lib/esm-es5/token-utils-b9ba8c5e.js +0 -4
  1213. package/lib/esm-es5/tokens-84fb2357.js +0 -4
  1214. package/lib/esm-es5/tokens.module-2d02f5ff.js +0 -4
  1215. package/lib/esm-es5/watch-options-e96ecd92.js +0 -4
  1216. package/lib/loader/package.json +0 -11
  1217. /package/lib/cjs/{body-scroll-dba42314.js → body-scroll-FWPe3_T_.js} +0 -0
  1218. /package/lib/cjs/{bodyScrollLock.es6-dd2d7d91.js → bodyScrollLock.es6-B2sCDud5.js} +0 -0
  1219. /package/lib/cjs/{create-id-1f8c438f.js → create-id-DtslnIOq.js} +0 -0
  1220. /package/lib/cjs/{input-utils-1096a2c5.js → input-utils-DUKdslOM.js} +0 -0
  1221. /package/lib/cjs/{is-internet-explorer-e7f58ebc.js → is-internet-explorer-BTLb_loH.js} +0 -0
  1222. /package/lib/cjs/{js-utils-92e24ba1.js → js-utils-hJ4A2edy.js} +0 -0
  1223. /package/lib/cjs/{keyboard-utils-f7c9f980.js → keyboard-utils-D9UlHbik.js} +0 -0
  1224. /package/lib/cjs/{string-utils-7b13c16e.js → string-utils-B35hEUBv.js} +0 -0
  1225. /package/lib/duet/{p-8354d1f1.js → p-B1B-PPrh.js} +0 -0
  1226. /package/lib/duet/{p-9e371678.js → p-BlUsLmbQ.js} +0 -0
  1227. /package/lib/duet/{p-fc09c464.js → p-C6CAT054.js} +0 -0
  1228. /package/lib/duet/{p-9c3c64b9.js → p-C6E9F6QT.js} +0 -0
  1229. /package/lib/duet/{p-df7874f9.js → p-CLDy7YaM.js} +0 -0
  1230. /package/lib/duet/{p-5e59e970.js → p-Cfr_DJqU.js} +0 -0
  1231. /package/lib/duet/{p-43b89e38.js → p-DxESMgwA.js} +0 -0
  1232. /package/lib/{dist-custom-elements/p-fc09c464.js → esm/body-scroll-C6CAT054.js} +0 -0
  1233. /package/lib/{dist-custom-elements/p-8354d1f1.js → esm/bodyScrollLock.es6-B1B-PPrh.js} +0 -0
  1234. /package/lib/{dist-custom-elements/p-5e59e970.js → esm/create-id-Cfr_DJqU.js} +0 -0
  1235. /package/lib/{dist-custom-elements/p-df7874f9.js → esm/input-utils-CLDy7YaM.js} +0 -0
  1236. /package/lib/{dist-custom-elements/p-43b89e38.js → esm/is-internet-explorer-DxESMgwA.js} +0 -0
  1237. /package/lib/{dist-custom-elements/p-9e371678.js → esm/js-utils-BlUsLmbQ.js} +0 -0
  1238. /package/lib/{dist-custom-elements/p-9c3c64b9.js → esm/string-utils-C6E9F6QT.js} +0 -0
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,o){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,a){function l(e){try{s(o.next(e))}catch(e){a(e)}}function n(e){try{s(o["throw"](e))}catch(e){a(e)}}function s(e){e.done?i(e.value):r(e.value).then(l,n)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,r,a,l;return l={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function n(e){return function(t){return s([e,t])}}function s(n){if(o)throw new TypeError("Generator is already executing.");while(l&&(l=0,n[0]&&(i=0)),i)try{if(o=1,r&&(a=n[0]&2?r["return"]:n[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,n[1])).done)return a;if(r=0,a)n=[n[0]&2,a.value];switch(n[0]){case 0:case 1:a=n;break;case 4:i.label++;return{value:n[1],done:false};case 5:i.label++;r=n[1];n=[0];continue;case 7:n=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(n[0]===6||n[0]===2)){i=0;continue}if(n[0]===3&&(!a||n[1]>a[0]&&n[1]<a[3])){i.label=n[1];break}if(n[0]===6&&i.label<a[1]){i.label=a[1];a=n;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(n);break}if(a[2])i.ops.pop();i.trys.pop();continue}n=t.call(e,i)}catch(e){n=[6,e];r=0}finally{o=a=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,i){if(i||arguments.length===2)for(var o=0,r=t.length,a;o<r;o++){if(a||!(o in t)){if(!a)a=Array.prototype.slice.call(t,0,o);a[o]=t[o]}}return e.concat(a||Array.prototype.slice.call(t))};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-1a6cee61.js";import{D as DuetInternalLabel}from"./label-de5c8cbd.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{f as isEscapeKey,o as isTabKey,j as isEnterKey,d as isArrowLeftKey,b as isArrowUpKey,a as isArrowRightKey,c as isArrowDownKey}from"./keyboard-utils-daf80d44.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-8a9d5323.js";import{c as checkNamedSlotElement}from"./slot-utils-bf214ae5.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";var duetMultiselectCss='.duet-internal-label{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-multiselect-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){.duet-multiselect-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-multiselect-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-multiselect-container{position:relative;width:100%}.duet-multiselect-wrapper{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25}.duet-theme-turva .duet-multiselect-wrapper{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-multiselect{display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:8rem;padding:12px 14px !important;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-multiselect .duet-multiselect-label{overflow:hidden;text-overflow:ellipsis}.duet-multiselect:hover{border-color:rgb(127, 150, 165);box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-multiselect:hover{border-color:rgb(143, 147, 158);box-shadow:0 0 0 1px #747475}.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #e55039}.duet-multiselect:focus,.duet-multiselect.duet-multiselect-active{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-multiselect:focus,.duet-theme-turva .duet-multiselect.duet-multiselect-active{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error .duet-multiselect:focus,.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:focus,.duet-theme-turva.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #e55039}.duet-multiselect[disabled]{color:rgb(8, 42, 77) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:rgb(8, 42, 77) !important}.duet-theme-turva .duet-multiselect[disabled]{color:rgb(23, 28, 58) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important;-webkit-text-fill-color:rgb(23, 28, 58) !important}.duet-multiselect>:first-child{flex:1;min-height:24px}.duet-multiselect .duet-multiselect-badge{padding:4px 8px 4px;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-weight:600;line-height:1.25;color:rgb(8, 42, 77);background:#d9ebf4;border-radius:20rem}.duet-theme-turva .duet-multiselect .duet-multiselect-badge{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-multiselect .duet-multiselect-icon{margin-left:12px}.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-multiselect .duet-multiselect-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva .duet-multiselect{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(143, 147, 158)}.duet-multiselect svg{width:20px;height:20px;color:rgb(8, 42, 77);pointer-events:none}.duet-theme-turva .duet-multiselect svg{color:rgb(23, 28, 58)}.duet-multiselect svg.duet-multiselect-icon--rotate{transform:rotate(180deg)}.duet-multiselect-checkboxes{position:absolute;z-index:700;width:100%;padding:16px;margin:8px 0 0;visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}.duet-theme-turva .duet-multiselect-checkboxes{background:rgb(255, 255, 255);border-color:rgb(222, 224, 228);box-shadow:0 4px 10px 0 rgba(23, 28, 58, 0.15)}.duet-multiselect-checkboxes.duet-multiselect-checkboxes-active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons{padding:8px 0;margin:-16px;margin-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{padding:6px 16px;margin:-4px 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:0.875rem;font-weight:600;color:rgb(0, 119, 179);cursor:pointer;border-radius:4px}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus,.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:first-child{border-right:1px solid rgb(212, 223, 229)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(198, 12, 48)}.duet-theme-turva .duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(23, 28, 58)}.duet-multiselect-checkboxes .duet-multiselect-all-control-buttons button:hover{color:rgb(8, 42, 77)}.duet-multiselect-checkboxes fieldset{margin-top:8px;margin-bottom:12px}.duet-multiselect-checkboxes fieldset+fieldset{margin-top:28px}.duet-multiselect-checkboxes legend{margin-bottom:12px;font-size:1rem;font-weight:600}.duet-multiselect-help{display:block;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(98, 121, 138);border-radius:4px}.duet-multiselect-help span{display:block;margin-top:8px}.duet-theme-turva .duet-multiselect-help{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(143, 147, 158)}.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-multiselect-help{color:rgb(214, 28, 82)}.duet-label-hidden .duet-internal-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var DuetMultiselectStyle0=duetMultiselectCss;function toggleInArray(e,t){return e.includes(t)?e.filter((function(e){return e!==t})):__spreadArray(__spreadArray([],e,true),[t],false)}var DuetMultiselect=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.errorId=createID("DuetError");this.labelId=createID("DuetLabel");this.topCaptionId=createID("DuetCaptionTop");this.selectedLangObject={en:"selected",fi:"valittu",sv:"vald"};this.selectAllLabel={en:"Select all",fi:"Valitse kaikki",sv:"Välj alla"};this.clearAllLabel={en:"Clear all",fi:"Tyhjennä kaikki",sv:"Rensa alla"};this.placeholderLabel={en:"Hint",fi:"Vihje",sv:"Tips"};this.onChange=function(e){t.duetChange.emit({originalEvent:e,value:t.value,component:"duet-multiselect"})};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-multiselect"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-multiselect"})};this.onMultiselectKeyDown=function(e){if(isEscapeKey(e)||isTabKey(e)){if(t.checkboxesVisible){t.checkboxesVisible=false;t.multiselectElement.focus();e.preventDefault()}}};this.onMultiselectInputKeyDown=function(e){if(isEnterKey(e)){e.preventDefault();t.toggleCheckboxes();setTimeout((function(){if(t.checkboxesVisible){var e=t.element.shadowRoot.querySelector("#".concat(t.getOptionIdentifier(t.allControls?-2:0)));if(e){e.focus()}}}),200)}};this.onCheckboxKeyDown=function(e,i){var o;if(isArrowLeftKey(e)||isArrowUpKey(e)){o=t.element.shadowRoot.querySelector("#".concat(t.getOptionIdentifier(i-1)))}else if(isArrowRightKey(e)||isArrowDownKey(e)){o=t.element.shadowRoot.querySelector("#".concat(t.getOptionIdentifier(i+1)))}if(o){o.focus();e.preventDefault();t.activeDescendant=o.id}};this.toggleCheckboxes=function(){t.checkboxesVisible=!t.checkboxesVisible};this.toggleCheckbox=function(e,i){t.value=toggleInArray(t.value,i);t.onChange(e)};this.handleSelectAllClick=function(e){t.value=t.processedItems;t.onChange(e)};this.handleClearAllClick=function(e){t.value=[];t.onChange(e)};this.getOptionIdentifier=function(e){return"".concat(t.identifier,"-option-").concat(e)};this.getDescribedBy=function(){var e=[];if(t.isCaptionVisible&&t.topCaptionId){e.push(t.topCaptionId)}if(t.accessibleDescribedBy){e.push(t.accessibleDescribedBy)}if(t.error){e.push(t.errorId)}return e.length>0?e.join(" "):null};this.processedItems=[];this.processedGroups=[];this.checkboxesVisible=false;this.activeDescendant="";this.language=getLanguage();this.margin="auto";this.error="";this.accessibleLiveError="polite";this.expand=false;this.value=[];this.theme="";this.labelHidden=false;this.identifier=createID("DuetMultiselect");this.allControls=false;this.placeholder="";this.caption=undefined;this.items=undefined;this.disabled=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.accessibleDescribedBy=undefined;this.tooltip="";this.tooltipDirection="auto"}e.prototype.handleFocus=function(e){var t=this;var i=e.composedPath().every((function(e){return e!==t.element}));if(i){this.checkboxesVisible=false}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.isCaptionVisible=!!this.caption;checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true);this.refresh()};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.multiselectElement){this.multiselectElement.focus(e)}return[2]}))}))};e.prototype.selectWithValues=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){t=this.processedItems.filter((function(t){return e.includes(t.value)}));this.value=Array.from(new Set(__spreadArray(__spreadArray([],this.value,true),t,true)));return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(i){e=parsePossibleJSON(this.items);this.processedItems=[];this.processedGroups=[];if(!e||e.length===0){return[2]}if(e[0].items!==undefined){this.processedGroups=e}else{this.processedGroups=[{label:"",items:e}]}this.processedGroups.forEach((function(e){return e.items.forEach((function(e){return t.processedItems.push(e)}))}));return[2]}))}))};e.prototype.render=function(){var e=this;var t;return h(Host,{key:"1b13e9b24543872be153e64448b3bb2b39e6ecfa",class:{"duet-m-0":this.margin==="none","duet-expand":this.expand}},h("div",{key:"148190880c310174f1ed2dc45c1b7c5ca7982b7e",class:{"duet-multiselect-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva","duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error},onKeyDown:function(t){return e.onMultiselectKeyDown(t)}},h(DuetInternalLabel,{key:"35cd85ac5dc7968e292e5eb933ed48b019dfc082",theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:this.identifier},this.label),this.tooltip&&h("duet-tooltip",{key:"452e8f79d16ed35179561fd9fa825e801c507feb",class:"duet-multiselect-tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),h("slot",{key:"32f0a1109ad84ef710d7a2aace8e03f379c5b9b1",name:"tooltip"}),this.caption&&h("duet-caption",{key:"9ba0a2c54c3ad861040ae2e14125a3ddc6cd5b92",id:this.topCaptionId,size:"medium"},this.caption),h("div",{key:"bee1499120506543ecbac607eb0b0306f7fcfbd3",class:"duet-multiselect-wrapper"},h("button",{key:"b3e6894a5a491d6e356cf50dfd58ed57db236fd0",id:this.identifier,ref:function(t){return e.multiselectElement=t},class:{"duet-multiselect":true,"duet-multiselect-active":this.checkboxesVisible},tabindex:"0",onClick:function(){return e.toggleCheckboxes()},onFocus:function(t){return e.onFocus(t)},onBlur:function(t){return e.onBlur(t)},role:"combobox","aria-expanded":this.checkboxesVisible?"true":"false","aria-haspopup":"listbox","aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-owns":"".concat(this.identifier,"-checkboxes"),onKeyDown:function(t){return e.onMultiselectInputKeyDown(t)},disabled:this.disabled},h("span",{key:"b865f7a0b5603a2a935e2649ad7b3ae854abe6d8",role:"textbox","aria-readonly":"true","aria-multiline":"false","aria-autocomplete":"none","aria-controls":"".concat(this.identifier,"-checkboxes"),"aria-label":this.placeholderLabel[this.language],class:"duet-multiselect-label"},this.placeholder),this.value&&this.value.length>0&&h("span",{key:"e8bc27379ed2a2c31bee87eed60d21b7cb9557a7",class:"duet-multiselect-badge"},this.value.length,h("duet-visually-hidden",{key:"6e21a7842a61e51aec25e639404c7bf077e16a92"},this.selectedLangObject[this.language],", ",this.value.map((function(e){return e.label})).join(", "))),h("svg",{key:"e69223cfb0e77ad42d993efe14e38b545cf3a229",class:{"duet-multiselect-icon":true,"duet-multiselect-icon--rotate":this.checkboxesVisible},fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},h("path",{key:"a03919b6f6aec79f2b154c6cbdec5394c1ceaf41",d:"m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z"}))),h("div",{key:"d30b64085be0ade634ec6e386eb5e783eb3b79f0",id:"".concat(this.identifier,"-checkboxes"),role:"listbox",class:{"duet-multiselect-checkboxes":true,"duet-multiselect-checkboxes-active":this.checkboxesVisible},"aria-activedescendant":this.activeDescendant,"aria-multiselectable":"true"},((t=this.processedItems)===null||t===void 0?void 0:t.length)&&this.allControls&&h("div",{key:"40ad894b3d59aa5abf6fa669f5618b437cc00f4b",class:"duet-multiselect-all-control-buttons"},h("button",{key:"358f2c22e2464177f04a70259dfa600769259fdb",class:"duet-multiselect-select-all",onClick:this.handleSelectAllClick,id:this.getOptionIdentifier(-2),onKeyDown:function(t){return e.onCheckboxKeyDown(t,-2)}},this.selectAllLabel[this.language]),h("button",{key:"46e3c1b0935603c8d55dde1b42b74c29e9eeb37c",class:"duet-multiselect-clear-all",onClick:this.handleClearAllClick,id:this.getOptionIdentifier(-1),onKeyDown:function(t){return e.onCheckboxKeyDown(t,-1)}},this.clearAllLabel[this.language])),this.processedItems&&this.processedGroups.map((function(t){return h("fieldset",null,t.label&&h("legend",null,t.label),t.items.map((function(t,i){var o,r;return h("duet-checkbox",{identifier:e.getOptionIdentifier(i),role:"option",label:t.label,value:t.value,key:t.value,checked:(o=e.value)===null||o===void 0?void 0:o.includes(t),"accessible-selected":((r=e.value)===null||r===void 0?void 0:r.includes(t))?"true":undefined,disabled:!e.checkboxesVisible||t.disabled,onDuetChange:function(i){return e.toggleCheckbox(i,t)},onKeyDown:function(t){return e.onCheckboxKeyDown(t,i)},theme:e.theme})})))})))),h("span",{key:"c3c35d45455da55d81b525e818ca55637515947e",class:"duet-multiselect-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&h("span",{key:"2ae201bcc57bb193bdd5124911af931a2694817a"},this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{items:["refresh"]}},enumerable:false,configurable:true});return e}();DuetMultiselect.style=DuetMultiselectStyle0;export{DuetMultiselect as duet_multiselect};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-1a6cee61.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetNavCss="*,*::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%}:host([sticky]){position:relative;z-index:300}.container{position:relative;z-index:400}::slotted(*[slot=mobile]){display:inherit}::slotted(*[slot=desktop]){display:none}@media (min-width: 62em){::slotted(*[slot=mobile]){display:none}::slotted(*[slot=desktop]){display:inherit}}.sticky{position:sticky;top:0}@media (min-width: 62em){.sticky{position:relative;top:unset}}";var DuetNavStyle0=duetNavCss;var DuetNav=function(){function e(e){registerInstance(this,e);this.theme="";this.sticky=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){return h(Host,{key:"18c30d07ccac6e0656b4ba4c6feb5ddb07c6b06c"},h("div",{key:"16eac13a9c78bccfdac8a70aff193d775ec1a1e6",class:{container:true,sticky:this.sticky}},h("slot",{key:"6b0fbbbab38fb9fc7e634878f424d238f8f6fab4"}),h("slot",{key:"b6cf57d0876c972a5ccbce533217241277c402bf",name:"mobile"}),h("slot",{key:"2ad38e43fa1db17085c50ba3cfc3423dc0fdd880",name:"desktop"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetNav.style=DuetNavStyle0;export{DuetNav as duet_nav};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,r){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function n(t){try{s(r.next(t))}catch(t){o(t)}}function d(t){try{s(r["throw"](t))}catch(t){o(t)}}function s(t){t.done?i(t.value):a(t.value).then(n,d)}s((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,n;return n={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function d(t){return function(e){return s([t,e])}}function s(d){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,d[0]&&(i=0)),i)try{if(r=1,a&&(o=d[0]&2?a["return"]:d[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,d[1])).done)return o;if(a=0,o)d=[d[0]&2,o.value];switch(d[0]){case 0:case 1:o=d;break;case 4:i.label++;return{value:d[1],done:false};case 5:i.label++;a=d[1];d=[0];continue;case 7:d=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){i.label=d[1];break}if(d[0]===6&&i.label<o[1]){i.label=o[1];o=d;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(d);break}if(o[2])i.ops.pop();i.trys.pop();continue}d=e.call(t,i)}catch(t){d=[6,t];a=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,h,g as getElement}from"./index-1a6cee61.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-daf80d44.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-8a9d5323.js";import{a as actionArrowDownSmall}from"./action-arrow-down-small-82273dc8.js";import"./string-utils-192eb3c8.js";var duetNotificationCss="*,*::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%}:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:0.7}.duet-notification{display:block;padding:16px;padding-bottom:0;cursor:pointer}:host(:first-of-type) .duet-notification{border-top-left-radius:8px;border-top-right-radius:8px}:host(:last-of-type) .duet-notification{border-bottom:0;border-bottom-right-radius:8px;border-bottom-left-radius:8px}.duet-notification.duet-theme-turva{color:rgb(23, 28, 58);border-bottom-color:rgb(222, 224, 228)}.duet-notification.duet-notification-highlight{font-weight:600}.duet-notification.duet-notification-highlight.duet-theme-turva{background:rgb(245, 247, 250)}@media (min-width: 62em){.duet-notification:hover{background:rgb(240, 247, 250)}.duet-notification:hover.duet-theme-turva{background:rgb(245, 247, 250)}}.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;padding-bottom:16px;border-bottom:1px solid rgb(212, 223, 229)}.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(8, 42, 77);text-align:right;text-transform:uppercase;opacity:0.7}@media (max-width: 35.9375em){.duet-notification-date{width:auto}}.duet-theme-turva .duet-notification-date{color:rgb(113, 118, 132)}@media (min-width: 62em){:host(:not([highlight])) ::slotted(duet-heading),:host(:not([highlight])) ::slotted(duet-paragraph){opacity:1}.duet-notification{padding:16px;border-bottom:1px solid rgb(212, 223, 229)}.duet-notification:hover{background:rgb(228, 241, 247)}.duet-notification.duet-notification-highlight{font-weight:600;background:rgb(240, 247, 250)}.duet-notification-container{padding-bottom:0;border-bottom-style:none}}::slotted(duet-heading){padding-right:80px !important}::slotted(duet-paragraph){margin-bottom:2px !important}";var DuetNotificationStyle0=duetNotificationCss;var DuetNotification=function(){function t(t){registerInstance(this,t);this.language=getLanguage();this.accessibleLabelUnreadDefaults={en:"Unread",fi:"Lukematon",sv:"Oläst"};this.accessibleLabelUnread=getLocaleString(this.accessibleLabelUnreadDefaults,this.language);this.url="#";this.date="";this.highlight=false;this.external=false;this.theme=""}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelUnread",defaults:"accessibleLabelUnreadDefaults"});subscribeTabbingChange(this)};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);unsubscribeTabbingChange(this)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.linkElement.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;return h("div",{key:"53bf3fb42fabb1085aaa8de5091a92d3f2e2ff2a",role:"listitem",class:{"duet-notification":true,"duet-notification-highlight":this.highlight,"duet-theme-turva":this.theme==="turva"}},h("a",{key:"fbe3d967cc547d2af9d278c4932020280f13cbf7",ref:function(e){return t.linkElement=e},href:this.url,target:this.external?"_blank":"_self"},h("div",{key:"adcc72e86dfef46c9236b2ce62c3e6c4ebf09356",class:"duet-notification-container"},h("div",{key:"aaf3d1dc837c9e164542046406e7e3420272634c",class:"duet-notification-badge-container"},this.highlight&&h("div",{key:"6982bb6d18d19f198c4ac129764a5f9aa7642109",class:"duet-notification-badge"},h("duet-visually-hidden",{key:"49beecb60f8a1bade31c9c1a99808778ae1855df"},this.accessibleLabelUnread,":"))),h("div",{key:"5af9a7fc09f3a855d94527067934ea3af667056d",class:"duet-notification-content"},h("slot",{key:"344506570c443641459719001e49ba16bfefbcb5"})),h("div",{key:"3597fe58bd170ae199f8a1cf0a0b4643b26fca53",class:"duet-notification-date"},this.date))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetNotification.style=DuetNotificationStyle0;var duetNotificationDrawerCss='*,*::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(8, 42, 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(212, 223, 229);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(222, 224, 228)}.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, 75, 129)}.duet-theme-turva .duet-drawer-toggle:hover{color:rgb(113, 118, 132)}.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, 75, 129);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(113, 118, 132);border-color:rgb(245, 247, 250)}@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(247, 178, 40)}.duet-drawer-content{display:none;background-color:rgb(255, 255, 255);border-bottom:1px solid rgb(212, 223, 229)}.duet-drawer-content:focus{outline:0}.duet-theme-turva .duet-drawer-content{background-color:rgb(255, 255, 255);border-color:rgb(212, 223, 229)}@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(212, 223, 229);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}.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 DuetNotificationDrawerStyle0=duetNotificationDrawerCss;var ESC_KEY=27;var DuetNotificationDrawer=function(){function t(t){var e=this;registerInstance(this,t);this.handleKeyDown=function(t){if(e.isOpen&&t.keyCode===ESC_KEY){e.close()}};this.toggleMenu=function(t){t.stopPropagation();e.isOpen?e.close():e.open()};this.updateNotificationState=function(){e.hasNotifications=e.element.children.length>0};this.isOpen=false;this.hasNotifications=undefined;this.icon="";this.label="Label";this.language=getLanguage();this.accessibleLabelNotificationsDefaults={en:"No notifications",fi:"Ei ilmoituksia",sv:"Inga notifikationer"};this.accessibleLabelNotifications=getLocaleString(this.accessibleLabelNotificationsDefaults);this.badge=false;this.theme="";this.direction="left"}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.updateNotificationState()};t.prototype.connectedCallback=function(){this.observer=new MutationObserver(this.updateNotificationState);this.observer.observe(this.element,{childList:true});subscribeTabbingChange(this)};t.prototype.disconnectedCallback=function(){this.observer.disconnect();this.observer=null;unsubscribeTabbingChange(this)};t.prototype.handleClickFocusOutside=function(t){var e=t.target;if(this.isOpen&&!this.element.contains(e)){this.close(false)}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.drawerButtonEl.focus(t);return[2]}))}))};t.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=this.element.closest("duet-header");if(t){t.closeMenus()}this.isOpen=true;this.drawerContentEl.scrollTop=0;return[2]}))}))};t.prototype.close=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t=true}return __generator(this,(function(e){this.isOpen=false;if(t){this.setFocus({preventScroll:true})}return[2]}))}))};t.prototype.render=function(){var t=this;return h("div",{key:"684aa1ca53fe55ed070c4c196fd3c43deb08e687",class:{"duet-drawer":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:this.handleKeyDown},h("button",{key:"6b4409fd5268778305473af525a945d47d9c39da",ref:function(e){return t.drawerButtonEl=e},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&&h("div",{key:"c9267c1af9c1c5915c7d6ede76e91ca27f50a9b5",class:"duet-drawer-icon"},h("duet-icon",{key:"2ef2cadda49403ad82f2cd6954f04042b2428f54",margin:"none",size:"x-small",name:this.icon,color:"currentColor"}),this.badge&&h("div",{key:"163a12602500df35689a05fbcde4c58cbd55afc7",class:"duet-drawer-badge"})),h("span",{key:"154857b69805d0d6cfe60e1559b34ce1a8b8e576",class:"duet-drawer-label"},this.label),h("div",{key:"03cfd2876e6313e194f1092491135389b2c67aa2",class:"duet-drawer-caret"},h("duet-icon",{key:"13706101d1d24e17c8e295b632de914dea29e653",margin:"none",size:"auto",icon:actionArrowDownSmall.svg,color:"currentColor"}))),h("div",{key:"731f3d300edc47c3ee18617d848b51720c63bff6",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(e){return t.drawerContentEl=e}},this.hasNotifications?h("div",{role:"list"},h("slot",null)):h("duet-empty-state",{size:"small"},h("duet-paragraph",{size:"small",margin:"none"},this.accessibleLabelNotifications))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetNotificationDrawer.style=DuetNotificationDrawerStyle0;export{DuetNotification as duet_notification,DuetNotificationDrawer as duet_notification_drawer};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,i){function a(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{o(i.next(t))}catch(t){r(t)}}function u(t){try{o(i["throw"](t))}catch(t){r(t)}}function o(t){t.done?n(t.value):a(t.value).then(s,u)}o((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,a,r,s;return s={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function u(t){return function(e){return o([t,e])}}function o(u){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,u[0]&&(n=0)),n)try{if(i=1,a&&(r=u[0]&2?a["return"]:u[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;if(a=0,r)u=[u[0]&2,r.value];switch(u[0]){case 0:case 1:r=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;a=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){n.label=u[1];break}if(u[0]===6&&n.label<r[1]){n.label=r[1];r=u;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(u);break}if(r[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(t){u=[6,t];a=0}finally{i=r=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-1a6cee61.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{a as isArrowRightKey,b as isArrowUpKey,c as isArrowDownKey,d as isArrowLeftKey,e as isBackspaceKey,s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-daf80d44.js";import{a as getLanguage,b as getLocale,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-8a9d5323.js";import{c as checkNamedSlotElement,p as proxyInputToSlot}from"./slot-utils-bf214ae5.js";import"./string-utils-192eb3c8.js";var actionAdd={title:"action-add",tags:"action add plus",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M12 24a.75.75 0 0 1-.75-.75v-10.5H.75a.75.75 0 0 1 0-1.5h10.5V.75a.75.75 0 0 1 1.5 0v10.5h10.5a.75.75 0 0 1 0 1.5h-10.5v10.5A.75.75 0 0 1 12 24z"/></svg>'};var actionSubtract={title:"action-subtract",tags:"action subtract minus remove delete cancel",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.75 12.788a.75.75 0 0 1 0-1.5h22.5a.75.75 0 0 1 0 1.5z"/></svg>'};function SafeParseFloat(t,e){var n;if(typeof t==="string"){if(t===""){return null}var i=t.replace("−","-").replace("‐","-").replace("−","-").replace("–","-").replace("—","-");if(e){i=ConvertToEnUS(i,e,false)}i=i.replace(/\s+/g,"");n=parseFloat(i)}if(typeof t==="number"){n=parseFloat(String(t))}if(!isNaN(Number(n))){return Number(n)}if(t===null||t===undefined){return null}throw new Error("Invalid value passed to SafeParseFloat")}function ConvertToEnUS(t,e,n){if(n===void 0){n=false}var i;var a=new Intl.NumberFormat(e).format(1/2).replace(/[0-9]/g,"");var r=new Intl.NumberFormat("en-US").format(1/2).replace(/[0-9]/g,"");var s=new Intl.NumberFormat(e).format(1e3).replace(/[0-9]/g,"");var u=new Intl.NumberFormat("en-US").format(1e3).replace(/[0-9]/g,"");i=t.replace(a,"DECIMALSEPARATOR");if(n){i=i.replace(s,"THOUSANDSEPARATOR")}else{i=i.replace(s,"")}i=i.replace("DECIMALSEPARATOR",r);i=i.replace("THOUSANDSEPARATOR",u);return i}var roundTo=function(t,e){return Math.round(t/e)*e};var clamp=function(t,e,n){return Math.min(Math.max(t,e),n)};var duetNumberInputCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;min-width:calc(33.333% - 8px);max-width:100%;line-height:1.25;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}.duet-number-container{position:relative;width:100%}.duet-number-buttons{-webkit-user-select:none;user-select:none;position:absolute;top:1px;right:1px;z-index:200;width:96px;height:calc(100% - 2px)}.duet-number-buttons .duet-number-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:50%;height:100%;text-align:center;cursor:pointer;background:transparent;-webkit-appearance:none;appearance:none}.duet-number-buttons .duet-number-button[aria-disabled=true],.duet-number-buttons .duet-number-button:disabled{pointer-events:none}.duet-number-buttons .duet-number-button[aria-disabled=true] duet-icon,.duet-number-buttons .duet-number-button:disabled duet-icon{opacity:0.4}.duet-number-buttons .duet-number-button:active duet-icon{transform:translateY(1px)}.duet-number-buttons .duet-number-button:focus{outline:0}:host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{z-index:2;box-shadow:0 0 0 2px #0077b3 !important}.duet-theme-turva :host(.user-is-tabbing) .duet-number-buttons .duet-number-button:focus{box-shadow:0 0 0 2px #171c3a !important}.duet-number-buttons .duet-number-button:first-of-type{border-left:1px solid rgb(181, 198, 208)}.duet-number-buttons .duet-number-button:first-of-type::before{position:absolute;top:0;left:-6px;width:6px;height:100%;content:"";background:linear-gradient(to left, rgba(181, 198, 208, 0.2) 0%, rgba(181, 198, 208, 0.2) 1px, rgba(181, 198, 208, 0.1) 1px, rgba(181, 198, 208, 0) 100%)}.duet-number-buttons .duet-number-button:last-of-type{border-top-right-radius:4px;border-bottom-right-radius:4px}.duet-number-buttons .duet-number-button:last-of-type::before{position:absolute;top:20%;left:0;width:1px;height:60%;content:"";background:rgb(212, 223, 229)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:first-of-type::before{background:linear-gradient(to left, rgba(199, 202, 207, 0.2) 0%, rgba(199, 202, 207, 0.2) 1px, rgba(199, 202, 207, 0.1) 1px, rgba(199, 202, 207, 0) 100%)}:host(.duet-theme-turva) .duet-number-buttons .duet-number-button:last-of-type::before{background:rgb(222, 224, 228)}';var DuetNumberInputStyle0=duetNumberInputCss;var DuetNumberInput=function(){function t(t){var e=this;registerInstance(this,t);this.duetChange=createEvent(this,"duetChange",3);this.duetInput=createEvent(this,"duetInput",3);this.duetBlur=createEvent(this,"duetBlur",7);this.duetFocus=createEvent(this,"duetFocus",7);this.inputId=createID("DuetInput");this.proxyId=createID("DuetInput");this.handleFocus=function(){e.focusedValue=e.value};this.handleKeyDown=function(t){if(isArrowRightKey(t)||isArrowUpKey(t)){e.add(t)}else if(isArrowDownKey(t)||isArrowLeftKey(t)){e.subtract(t)}else if(isBackspaceKey(t)){e.clearValue(t)}};this.handleChange=function(t){t.stopPropagation();var n=t.target;if(n&&n.value){try{var i=SafeParseFloat(n.value,e.locale);if(isNaN(i)||i==null){i=e.min||0}e.setValue(i);e.duetInput.emit({component:"duet-number-input",originalEvent:t,value:SafeParseFloat(e.value,e.locale).toString(),valueAsNumber:i})}catch(i){if(n.value!=="-"){e.clearValue(t)}e.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}}else{e.duetInput.emit({component:"duet-number-input",originalEvent:t,value:null,valueAsNumber:null})}};this.handleBlur=function(t){var n=t.target;if(!n){return}if(n.value){try{var i=SafeParseFloat(n.value,e.locale);if(e.rounding){i=roundTo(i,e.step)}i=clamp(i,e.min,e.max);if(i!==SafeParseFloat(e.value,e.locale)||i!==SafeParseFloat(e.focusedValue,e.locale)){e.setValue(i);e.emitChange(t)}}catch(n){e.emitNull(t)}}else{e.emitNull(t)}};this.emitChange=function(t){var n=SafeParseFloat(e.value,e.locale);e.duetChange.emit({originalEvent:t,value:n.toString(),valueAsNumber:n,component:"duet-number-input"})};this.emitNull=function(t){e.duetChange.emit({originalEvent:t,value:null,valueAsNumber:null,component:"duet-number-input"})};this.localizeValue=function(t){return t.toLocaleString(e.locale)};this.setValue=function(t){e.value=e.localizeValue(t);e.duetInputElement.value="".concat(e.value," ").concat(e.unit)};this.add=function(t){if(t){t.preventDefault()}var n=SafeParseFloat(e.value,e.locale);if(n===e.max){return}var i=n==null?e.min:n+e.step;if(i%e.step!==0){var a=i%e.step;i-=a}var r=clamp(i,e.min,e.max);e.value=e.localizeValue(r);e.emitChange(t)};this.subtract=function(t){if(t){t.preventDefault()}var n=SafeParseFloat(e.value,e.locale);if(n===e.min){return}var i=n-e.step;if(i%e.step!==0){var a=e.step-i%e.step;i+=a}i=clamp(i,e.min,e.max);e.value=e.localizeValue(i);e.emitChange(t)};this.language=getLanguage();this.locale=getLocale(this.language).locale;this.unit=getLocale(this.language).money;this.focusedValue=undefined;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleLiveDefaults={fi:"{current} euroa valittuna",en:"{current} euros selected",sv:"{current} euro valt"};this.accessibleLive=getLocaleString(this.accessibleLiveDefaults,this.language);this.accessibleLiveEnabled=true;this.accessibleAddDefaults={fi:"Lisää summaan",en:"Add to the amount",sv:"Lägg till beloppet"};this.accessibleAdd=getLocaleString(this.accessibleAddDefaults,this.language);this.accessibleSubtractDefaults={fi:"Vähennä summasta",en:"Subtract from the amount",sv:"Dra från beloppet"};this.accessibleSubtract=getLocaleString(this.accessibleSubtractDefaults,this.language);this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.min=0;this.labelDefaults={fi:"Nimilappu",en:"Label",sv:"Etikett"};this.label=getLocaleString(this.labelDefaults,this.language);this.labelHidden=false;this.max=1e6;this.name=undefined;this.error="";this.tooltip="";this.step=5e3;this.rounding=true;this.role=undefined;this.disabled=false;this.required=false;this.value=undefined}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);if(this.value){this.value=this.localizeValue(SafeParseFloat(this.value,this.locale))}checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,[{prop:"accessibleLive",defaults:"accessibleLiveDefaults"},{prop:"accessibleAdd",defaults:"accessibleAddDefaults"},{prop:"accessibleSubtract",defaults:"accessibleSubtractDefaults"},{prop:"label",defaults:"labelDefaults"}]);subscribeTabbingChange(this)};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);unsubscribeTabbingChange(this)};t.prototype.componentDidRender=function(){proxyInputToSlot(this.element,this.proxyId,this.name,this.value?"".concat(this.value," ").concat(this.unit):"",this.required)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.duetInputElement.setFocus(t);return[2]}))}))};t.prototype.getValueAsNumber=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){t=SafeParseFloat(this.value,this.locale);return[2,this.value===undefined||this.value===null||isNaN(t)?null:t]}))}))};t.prototype.clearValue=function(t){this.duetInputElement.value="";if(this.value!==null){this.value=null;this.emitNull(t)}};t.prototype.formatAnnouncement=function(){var t=!!this.value?SafeParseFloat(this.value,this.locale):null;if(t==null){return""}return this.accessibleLive.replace("{current}",t.toString(10))};t.prototype.render=function(){var t=this;var e=this.identifier||this.inputId;var n="".concat(this.localizeValue(this.max)," ").concat(this.unit).length;var i=!!this.value?SafeParseFloat(this.value,this.locale):null;return h(Host,{key:"5ed199d090d8a0872fb5fb71f1059e43aba26d4c",class:{"duet-theme-turva":this.theme==="turva","duet-expand":this.expand,"duet-m-0":this.margin==="none"}},h("div",{key:"63f6850749d3a91de8dc708c6d9e83cbc77162bc",class:"duet-number-container"},h("duet-input",{key:"070cabe6a0925a671ad9ddc7070d1348f794dbcf",ref:function(e){return t.duetInputElement=e},onDuetChange:function(e){return t.handleChange(e)},onDuetFocus:this.handleFocus,onDuetBlur:function(e){return t.handleBlur(e)},onKeyDown:function(e){return t.handleKeyDown(e)},label:this.label,value:this.value?"".concat(this.value," ").concat(this.unit):"",error:this.error,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":i!=null?i:"",maxlength:n,name:this.name,component:"number",required:this.required,disabled:this.disabled,role:this.role,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:e,theme:this.theme,margin:"none",expand:true,numericKeyboard:true,autoComplete:"off",type:"text",accessibleActiveDescendant:this.accessibleActiveDescendant,accessibleLabelledBy:this.accessibleLabelledBy,accessibleDescription:this.accessibleDescription,accessibleDetails:this.accessibleDetails,accessibleControls:this.accessibleControls,accessibleOwns:this.accessibleOwns,accessibleDescribedBy:this.accessibleDescribedBy},h("slot",{key:"94b40f1c3b6ce0692bc5d7cf0222e028bad4e4b2",name:"tooltip"}),h("div",{key:"1b502276d16f8ad84edca78924a0c5870e6ddafe",class:{"duet-number-buttons":true,"duet-no-label":this.labelHidden}},h("button",{key:"601d8355b9dc371e36c8a9a92460cc696e38451a",disabled:this.disabled,"aria-disabled":i==null||i===this.min?"true":"false",class:"duet-number-button duet-number-button-subtract",onClick:this.subtract,type:"button"},h("duet-visually-hidden",{key:"d2955734b439b22cfa02f9d98545dbc733ba6394"},this.accessibleSubtract," ",this.step),h("duet-icon",{key:"9c5b59351156afacc9e65d4a942ee47ee6ee34be",icon:actionSubtract.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})),h("button",{key:"0424d9c8941778cb4c0b347dc68d38f4d00dc084",disabled:this.disabled,"aria-disabled":i===this.max?"true":"false",class:"duet-number-button duet-number-button-add",onClick:this.add,type:"button"},h("duet-visually-hidden",{key:"48141d6126c58f0516df731b9432e599a2112c3b"},this.accessibleAdd," ",this.step),h("duet-icon",{key:"0e025a57bde24ea190b80b33719e3debcde1a007",icon:actionAdd.svg,size:"small",margin:"none",color:this.theme==="turva"?"secondary-turva":"secondary"})))),this.accessibleLiveEnabled&&h("duet-visually-hidden",{key:"75e4d922c576062fae39183be5ae2c5730609cb2","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement())))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetNumberInput.style=DuetNumberInputStyle0;export{DuetNumberInput as duet_number_input};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,H as Host}from"./index-1a6cee61.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetOverlayCss=".duet-overlay{position:fixed;top:0;left:0;display:block;width:100%;height:100%;visibility:visible;background:rgb(8, 42, 77);opacity:0.3}.duet-overlay.duet-theme-turva{background:rgb(23, 28, 58)}.duet-overlay.keep-stacking-context{position:absolute;top:unset;left:unset;z-index:unset !important}.duet-overlay.modal-overlay{z-index:-1}.duet-overlay.hidden{visibility:hidden;opacity:0}.duet-overlay.dark{opacity:0.85}.duet-overlay.white{background:rgb(255, 255, 255);opacity:0.9}.duet-overlay.white.duet-theme-turva{background:rgb(255, 255, 255)}.duet-overlay.display-x-small{display:none}@media (max-width: 35.9375em){.duet-overlay.display-x-small{display:block}}.duet-overlay.display-x-small.not{display:block}@media (max-width: 35.9375em){.duet-overlay.display-x-small.not{display:none}}.duet-overlay.display-small{display:none}@media (min-width: 36em){.duet-overlay.display-small{display:block}}.duet-overlay.display-small.not{display:block}@media (min-width: 36em){.duet-overlay.display-small.not{display:none}}.duet-overlay.display-medium{display:none}@media (min-width: 48em){.duet-overlay.display-medium{display:block}}.duet-overlay.display-medium.not{display:block}@media (min-width: 48em){.duet-overlay.display-medium.not{display:none}}.duet-overlay.display-large{display:none}@media (min-width: 62em){.duet-overlay.display-large{display:block}}.duet-overlay.display-large.not{display:block}@media (min-width: 62em){.duet-overlay.display-large.not{display:none}}.duet-overlay.transition-slowly{transition:600ms ease}.duet-overlay.transition-quickly{transition:300ms ease}";var DuetOverlayStyle0=duetOverlayCss;var DuetOverlay=function(){function e(e){var t=this;registerInstance(this,e);this.getDisplayBreakpoint=function(){if(t.displayDevice.startsWith("not")){return t.displayDevice.substring(t.displayDevice.indexOf("-")+1)}return t.displayDevice};this.visible=true;this.keepStackingContext=false;this.modalOverlay=false;this.theme="";this.displayDevice="all";this.transition="slowly";this.zIndex="400";this.variation="default"}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e;return h(Host,{key:"6254397e108eb85239cdee7db4eafacacb751b11","aria-hidden":"true"},h("div",{key:"7e79408fc79451cf3c58266423c307c7645ae146",style:{zIndex:this.zIndex},class:(e={"duet-overlay":true,"duet-theme-turva":this.theme==="turva","keep-stacking-context":this.keepStackingContext},e["transition-".concat(this.transition)]=this.transition!=="immediate",e["display-x-small"]=this.getDisplayBreakpoint()==="x-small",e["display-small"]=this.getDisplayBreakpoint()==="small",e["display-medium"]=this.getDisplayBreakpoint()==="medium",e["display-large"]=this.getDisplayBreakpoint()==="large",e.not=this.displayDevice.startsWith("not"),e.hidden=!this.visible,e[this.variation]=true,e)}))};return e}();DuetOverlay.style=DuetOverlayStyle0;export{DuetOverlay as duet_overlay};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,g as getElement}from"./index-1a6cee61.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetPageHeadingCss='*,*::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-page-heading{position:relative;display:block;width:100%;margin:0 auto;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";color:rgb(8, 42, 77)}.duet-page-heading.duet-p-0{padding:0 !important}.duet-page-heading.duet-m-0{margin:0 !important}.duet-page-heading.auto{overflow:visible}.duet-page-heading.auto .heading,.duet-page-heading.auto .background{max-width:none}.duet-page-heading.fluid,.duet-page-heading.narrow{padding:0 16px}@media (min-width: 36em){.duet-page-heading.fluid{padding:0 28px}}@media (min-width: 62em){.duet-page-heading.fluid{padding:0 56px}}@media (min-width: 76.25em){.duet-page-heading.fluid{max-width:1110px;padding:0}}.duet-page-heading.narrow{max-width:888px}@media (min-width: 36em){.duet-page-heading.narrow{padding:0 48px}}@media (min-width: 48em){.duet-page-heading.narrow{padding:0 72px}}.duet-page-heading .heading{max-width:744px;padding:48px 90px 16px 0}@media (min-width: 48em){.duet-page-heading .heading{padding:72px 150px 40px 0}}.duet-page-heading:not(.has-icon) .heading{padding-right:0}.duet-page-heading .background{position:absolute;top:0;right:0;left:0;width:100%;max-width:744px;height:104px;margin:0 auto;margin:0 auto}@media (min-width: 48em){.duet-page-heading .background{height:165px}}.duet-page-heading .background .background-mask{position:absolute;top:-20px;right:0;display:block;width:286px;height:331px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIxIiBoZWlnaHQ9IjI1NyIgdmlld0JveD0iMCAwIDcyMSAyNTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yODIwXzY5OTkxKSI+CjxwYXRoIGQ9Ik04MC4xNzA1IDIzLjE4MTVDOTEuOTY5OSAxOC44NjU5IDEwMi44NyAxMS42NTU5IDExMi45MDkgMS41NjQ0OEMxMjMuNzcgLTguMzA1MjcgMTM0LjM4MiAtMTguMjAxMSAxNDQuODI2IC0yOC4xODgyQzE1NS4yNDMgLTM4LjE2MjIgMTY1LjkwOCAtNDguMDg0MSAxNzYuNzQzIC01Ny45Mjc4QzE3OC44MTYgLTU5LjA0OSAxODAuNDk4IC02MC4yODc3IDE4MS43ODggLTYxLjY1NjdDMTgzLjA2NiAtNjMuMDEyNiAxODUuNDY1IC02Mi4yODI1IDE4OS4wMTIgLTU5LjQ3OTNDMTg0LjczNSAtNTEuMTM1IDE4MC43NTkgLTQyLjk2MDIgMTc3LjAxNyAtMzQuOTAyN0MxNzMuMjg4IC0yNi44NDUyIDE2Ny42ODEgLTE5LjEyNjggMTYwLjIxMSAtMTEuNzYwM0MxNTIuNzUzIC00LjM4MDgzIDE0NC45NTYgMy4zMTE1MiAxMzYuODQ3IDExLjM2OUMxMjguNzI0IDE5LjQyNjUgMTIwLjk2NiAyNy4xNDUgMTEzLjQ4MyAzNC40OTg0Qzk3LjQ5OCA0OS44MTggNzkuNjYyIDU2LjAyNDEgNjAuMDAwOCA1My4xNjg4QzQwLjI4NzQgNTAuMzEzNSAyNS41NDE0IDM5LjA3NDcgMTUuNjk3NyAxOS40Nzg2QzMuOTI0NDUgLTIuMzcyOTkgLTEuMjI1NTUgLTI0LjQ3MjQgMC4yNDc3NDMgLTQ2Ljc4MDNDMS4yNTE2NyAtNjcuNDg0NiAzLjQwMjkzIC04Ny43OTc4IDYuODA1ODQgLTEwNy43NzJDMTAuMTk1NyAtMTI3LjczMyAxNS43MTA4IC0xNDcuNDg2IDIzLjMzOCAtMTY3LjA0M0MyNi4zMTA3IC0xNzQuMDMxIDI5LjAwOTUgLTE4MC44NSAzMS40NzM3IC0xODcuNTY0QzMzLjkxMTggLTE5NC4yMjcgMzYuNTMyNCAtMjAwLjY2OCAzOS4yNTc0IC0yMDYuODQ4QzQxLjgxMjggLTIwOS41NzIgNDMuNDY4NiAtMjEyLjEyOCA0NC4xODU3IC0yMTQuNTRDNTMuMDI1NSAtMjI5LjM3NyA2Mi44MyAtMjM3Ljk5NSA3My42Mzg1IC0yNDAuNDMzQzg0LjM5NDggLTI0Mi44NzEgOTguMTM2OSAtMjM5LjgyMSAxMTQuODEyIC0yMzEuMzJDMTI3Ljk0MiAtMjI1LjYwOSAxMzMuMzkyIC0yMTYuMTA1IDEzMS4xNDkgLTIwMi43OTNDMTMwLjE3MSAtMTkwLjgzNyAxMjcuOTk0IC0xNzkuMjU5IDEyNC42MTcgLTE2OC4wMkMxMjAuMDQxIC0xNTIuNzc5IDExNS40MzggLTEzNy41NTEgMTEwLjg0OSAtMTIyLjMyMkMxMDYuMjczIC0xMDcuMDgxIDEwMS4yNzkgLTkxLjk2OTkgOTUuODk0MyAtNzcuMDAyM0M4NS41OTQzIC00OC42MDU3IDc5LjQyNzQgLTE5LjQyNjcgNzcuNDA2NSAxMC41NjA2Qzc3LjcxOTQgMTIuNDEyIDc4LjA0NTMgMTQuMjYzNSA3OC4zNTgzIDE2LjA4ODhDNzguNjcxMiAxNy45NDAyIDc5LjI3MDkgMjAuMyA4MC4xNzA1IDIzLjE5NDRNMTEwLjkxNCAtMjk2Ljc1N0MxMDkuNTQ1IC0yOTguMDM1IDEwNy4zMTYgLTI5OS4zNTIgMTA0LjIzOSAtMzAwLjczNEMxMDEuMTYyIC0zMDIuMDkgOTguMjQxMiAtMzA0LjA1OSA5NS41NDIzIC0zMDYuNjI3QzkwLjA3OTQgLTMxMS43NzcgODYuOTc2MyAtMzE4LjE2NiA4Ni4yMzMyIC0zMjUuODE5Qzg1LjQ2NCAtMzMzLjQ3MiA4Ny4zODA1IC0zNDAuNTUyIDkxLjk2OTkgLTM0Ny4wNThDOTMuMjIxNSAtMzQ4LjQxNCA5NC4xNDcyIC0zNDkuMjM1IDk0LjY4MTggLTM0OS41MjJDOTUuMTkwMyAtMzQ5Ljc5NiA5Ni4xMDI5IC0zNTAuNjA0IDk3LjM5MzcgLTM1MS45OTlDMTA5LjY3NSAtMzU3LjkwNiAxMjIuNDE0IC0zNTYuNjkzIDEzNS42MzQgLTM0OC4zMzZDMTQ2Ljk1MSAtMzQyLjMyNSAxNTIuMDg4IC0zMzMuMzE2IDE1MS4xMzYgLTMyMS4zNkwxNDguMjI5IC0zMTEuNzM4QzE0NC42NjkgLTI5Ny4wNyAxMzUuNTY5IC0yOTEuNTAzIDEyMC45MTQgLTI5NS4wNjJDMTE5LjA1IC0yOTQuNzIzIDExNS43MzggLTI5NS4yOTcgMTEwLjkxNCAtMjk2Ljc0NCIgZmlsbD0iI0Y1RjVGNyIvPgo8cGF0aCBkPSJNMjQyLjc2NyAyMTUuNTE4QzI0NS4wODggMjEzLjU4OCAyNDcuMjc4IDIxMi4xMDIgMjQ5LjM3NyAyMTAuOTY4QzI1MS40NSAyMDkuODU5IDI1My41MzYgMjA4Ljc1MSAyNTUuNjIyIDIwNy42MDRDMjc0LjIyNyAxOTIuMjg0IDI5MC41NzcgMTc3LjE2IDMwNC43MjMgMTYyLjE5M0MzMTUuNjg4IDE0OC45NDYgMzI2LjYxNCAxMzUuODU2IDMzNy40ODggMTIyLjk4N0MzNDguMzYxIDExMC4xMTkgMzU4Ljg4MyA5Ni45Mzc1IDM2OS4wNjYgODMuNDE3MUMzNzYuNDQ1IDczLjQzMDEgMzg0LjU4MSA2My44NjAyIDM5My40NDcgNTQuNzQ2NkM0MDIuMyA0NS42NDYxIDQxMC44MjYgMzYuMjMyNyA0MTkuMDAxIDI2LjQ4MDNDNDIxLjgwNCAyMi45NzMxIDQyNC4yMjkgMjAuMDAwNCA0MjYuMjg5IDE3LjU0OTNDNDI4LjMyMyAxNS4xMjQzIDQzMC41MDEgMTIuOTMzOCA0MzIuODM1IDExLjAxNzNDNDM0LjkwOCA5LjkwOTA2IDQzNi43NDYgOS41ODMwMSA0MzguMzYzIDEwLjA2NTRDNDM5Ljk1MyAxMC41NDc5IDQ0MS43OTIgMTAuMjQ4IDQ0My45MDQgOS4xMTM3MUM0NDMuMTg3IDExLjUxMjcgNDQyLjgyMiAxMy4zOTAzIDQ0Mi44ODcgMTQuNjk0QzQ0Mi45MjYgMTYuMDIzOSA0NDIuMjg3IDE3LjM2NjggNDQxLjAwOSAxOC43MjI3QzQyNC42NDcgNDYuOTYzIDQwNy42ODQgNzIuODE3MyAzOTAuMTIyIDk2LjMxMTdDMzc2LjY0MSAxMTQuOTU2IDM2My4xNDcgMTMyLjkwOSAzNDkuNjM5IDE1MC4yMjRDMzM2LjEwNiAxNjcuNTI1IDMyMi4yMiAxODUuMzYxIDMwNy45NDQgMjAzLjc1OEMzMDEuNTI5IDIxMC41MzcgMjk1LjM4OCAyMTcuMiAyODkuNDk1IDIyMy43MTlDMjgzLjU4OSAyMzAuMjI1IDI3Ny40MzUgMjM2LjkgMjcxLjAyIDI0My42NjdDMjU4LjkyMSAyNTQuODggMjQ0LjQ4OCAyNTkuMjM0IDIyNy43MzQgMjU2Ljc5NkMxOTYuODYgMjUxLjg4MSAxNzYuMDI1IDIzNi44NzQgMTY1LjIxNyAyMTEuNzg5QzE1NC42OTUgMTg4LjU2OCAxNDkuNTMyIDE2Ni41MDggMTQ5LjcwMiAxNDUuNjA4QzE0Ny45NDIgMTEzLjY3OCAxNDguMzA3IDgxLjk0MzggMTUwLjgxIDUwLjQxOEMxNTMuMyAxOC44NzkyIDE1OC4zMiAtMTIuMzIwNyAxNjUuODY5IC00My4yMDc3QzE4MC4xNzIgLTEwNS4yMDMgMTk4LjU2OCAtMTY2LjQwMyAyMjEuMTExIC0yMjYuODA4QzIzMi4wODkgLTI1Ny41MjYgMjQ0LjQyMyAtMjg3LjYxOCAyNTguMSAtMzE3LjA5NkMyNzEuNzc2IC0zNDYuNTc1IDI4Ni4zNzkgLTM3NS41MDcgMzAxLjk3MiAtNDA0LjAwOEMzMTIuOTUgLTQyNS45OSAzMjQuNjMyIC00NDcuMzQ2IDMzNi45NzkgLTQ2OC4wNjNDMzQ5LjMxMyAtNDg4Ljc1NCAzNjIuNDk1IC01MDkuMjI0IDM3Ni40MzIgLTUyOS40NTlDNDAzLjg2NCAtNTY4LjI5OSA0MzQuMTkgLTYwMy42NzEgNDY3LjM5OCAtNjM1LjU3NUM0NzUuNjM4IC02NDIuNjgxIDQ4My45OTUgLTY0OS4zMTcgNDkyLjQwNSAtNjU1LjUxQzUwMC44MjggLTY2MS42NzcgNTEwLjM5NyAtNjY2LjY1OCA1MjEuMTU0IC02NzAuMzk5QzU0NS4yNzQgLTY3Ny45NjEgNTY3LjcxMiAtNjc2Ljg3OSA1ODguMzkxIC02NjcuMTY2QzYwNC43MjcgLTY2MC40NzggNjEzLjY3MSAtNjQ5LjUxMyA2MTUuMjEgLTYzNC4yMTlDNjE3LjU5NiAtNjI0Ljc1NCA2MTguMTk1IC02MTMuNjcxIDYxNi45ODMgLTYwMC45NTlDNjEwLjMyIC01NTguNDgxIDU5Ny44NTYgLTUxNS41MzQgNTc5LjU1MSAtNDcyLjE5NkM1NjUuNDMxIC00MzkuODIzIDU0OS4wODEgLTQwOC43NTMgNTMwLjUyOCAtMzc5LjAwMUM1MTEuOTM2IC0zNDkuMjYxIDQ5Mi42MTQgLTMxOS45NTIgNDcyLjYgLTI5MS4wOTlDNDY1LjQ1NiAtMjgxLjkyIDQ1Ny45NDYgLTI3MS41MDMgNDUwLjEyMyAtMjU5LjkxMkM0MzMuNTc4IC0yMzYuOTc4IDQxNS42MzcgLTIxNS4xMjYgMzk2LjI4OSAtMTk0LjM1N0MzNzYuOTAyIC0xNzMuNTYxIDM1NS44NDUgLTE1NC4zOTYgMzMzLjA2OCAtMTM2LjgyQzMyMC4zODIgLTEyNi42OSAzMTIuNTMzIC0xMTUuMDg2IDMwOS40ODIgLTEwMi4wNDhDMzA0LjE4OSAtODQuNDQ2OCAyOTguOTc0IC02Ny4wNDExIDI5My43OTggLTQ5Ljg0NEMyODguNjIxIC0zMi42NDY5IDI4My43NzEgLTE1LjExMDggMjc5LjI4NiAyLjcxMjFDMjc1LjI3MSAxOC45NzA1IDI3MS4zMDcgMzQuOTgxIDI2Ny40MjIgNTAuODM1MkMyNjMuNTIzIDY2LjY2MzMgMjU5Ljk2NCA4Mi44NDM0IDI1Ni43NyA5OS4zMzY1QzI1My41NDkgMTE1LjgwMyAyNTAuNjgxIDEzMi42MjIgMjQ4LjE1MiAxNDkuNzQxQzI0NS42MDkgMTY2Ljg2IDI0My4xMzIgMTgzLjc5NyAyNDAuNzQ2IDIwMC40OThDMjQxLjA0NiAyMDIuMzM3IDI0MS4zMDcgMjA0LjM5NiAyNDEuNTE1IDIwNi42MTNDMjQxLjY5OCAyMDguODY4IDI0Mi4xMjggMjExLjg0MSAyNDIuNzggMjE1LjUxOE01NjQuMzIyIC02MjIuMDgxQzU2MS43MjggLTYxOS4zNDMgNTU4LjExNiAtNjE2LjA4MyA1NTMuNDg4IC02MTIuMjM3QzU0Mi4yMzYgLTU5OC4xNjkgNTMwLjk1OCAtNTgzLjkwNiA1MTkuNjI4IC01NjkuNDU5QzUwOC4yNTkgLTU1NC45ODcgNDk4LjA1IC01MzkuOTQxIDQ4OS4wMTUgLTUyNC4zNzRDNDU5LjIzNiAtNDc0Ljg2OSA0MzIuNzY5IC00MjMuOTU2IDQwOS42MDEgLTM3MS42MDhDMzg2LjQxOSAtMzE5LjI0OCAzNjUuMTkzIC0yNjUuNDQgMzQ1LjkzNiAtMjEwLjE3MkMzNDUuNzAyIC0yMDkuMzc3IDM0NS43MDIgLTIwOC43MTIgMzQ2LjAxNSAtMjA4LjE5QzM0Ni4yNjIgLTIwNy42NTYgMzQ2LjE4NCAtMjA2LjU4NyAzNDUuNzE1IC0yMDUuMDA5QzM0OS4zNzggLTIwNS42MjIgMzUxLjM2IC0yMDYuMzM5IDM1MS42MDggLTIwNy4xNDdDMzU1LjQ2NyAtMjExLjIxNSAzNTkuNTA5IC0yMTUuMjMxIDM2My43NDYgLTIxOS4xOTRDMzY3Ljk5NyAtMjIzLjE0NSAzNzEuNzY1IC0yMjcuNjgyIDM3NS4wNzYgLTIzMi44MTlDNDAyLjg4NiAtMjY3LjE2MSA0MjguNzE0IC0zMDIuMTQyIDQ1Mi41MzUgLTMzNy43MzZDNDc2LjM2OCAtMzczLjMwMyA0OTguNTMzIC00MTAuNjk2IDUxOS4wNjggLTQ0OS44ODhDNTQzLjg1MyAtNDk3LjM3MiA1NTkuNTc3IC01NDYuNzM0IDU2Ni4yNTIgLTU5Ny45MzRDNTY2LjY0MyAtNjAyLjE4NSA1NjYuOTE3IC02MDYuMDE4IDU2Ny4xIC02MDkuNDZDNTY3LjI0MyAtNjEyLjkwMiA1NjYuMzE3IC02MTcuMSA1NjQuMzM2IC02MjIuMDgxIiBmaWxsPSIjRjVGNUY3Ii8+CjxwYXRoIGQ9Ik02OTYuNTE1IDE4OS4wNjRDNzA0LjYzOCAxODQuMzk2IDcxMi42ODIgMTc5LjYxMSA3MjAuNjg4IDE3NC43MzVWMTM0LjA1N0M2OTcuODE5IDE0OC41MDMgNjczLjgwMyAxNTkuNjM3IDY0OC42MDEgMTY3LjQyMUM2MjIuMDgyIDE3NS42MzUgNTk0LjU1OCAxODAuNjY3IDU2Ni4wMTggMTgyLjU1OEM1NTAuOTIgMTgzLjI2MiA1NDEuMjk4IDE4MS44OTMgNTM3LjEgMTc4LjQzOEM1MzIuODc2IDE3NS4wMDkgNTI5LjA5NSAxNjUuNzUyIDUyNS43NTcgMTUwLjc0NUw1MjMuOTU4IDEzMC41NDlDNTIzLjMzMiAxMTguMTI0IDUyNC43NjYgMTA2Ljc1NSA1MjguMzM5IDk2LjQyODlDNTMxLjg1OSA4Ni4xNTUgNTM2LjEyMiA3NS42MjAzIDU0MS4xMTYgNjQuODc3QzU0NS42MTQgNjQuNDg1OSA1NDkuNTY0IDY0LjM2ODUgNTUzLjAzMiA2NC41MzhDNTU2LjQ3NSA2NC42OTQ1IDU2MC40MzggNjQuNTc3MSA1NjQuOTQ5IDY0LjE3MjlDNTg1Ljg3NSA2NC4zNjg1IDYwNy42MzYgNjEuNzQ3OSA2MzAuMjY5IDU2LjI4NDlDNjUyLjA4MiA1MC42MjY1IDY3MC40IDQxLjI3ODIgNjg1LjI3NyAyOC4yNTMzQzY5NC45MzggMTkuNzc4NiA3MDQuMDI1IDEwLjM3ODMgNzEyLjU2NSAwLjA5MTMwODZINjM5LjUyNkM2MjAuMjU2IDE2Ljk4ODUgNTk2Ljk0NCAyNy40ODQxIDU2OS41MzkgMzEuNDYwN0M1NjcuNjYxIDMxLjc3MzYgNTY2LjM1NyAzMS44MTI3IDU2NS41NzUgMzEuNTY1QzU2NC43NTQgMzEuMzMwMyA1NjMuODI4IDMxLjUxMjggNTYyLjgxMSAzMi4wNDc0QzU2MS45OSAzMS44MTI3IDU2MS42NTEgMzEuNDk5OCA1NjEuNzgxIDMxLjA4MjZDNTYxLjg5OCAzMC42OTE1IDU2MS41NDYgMzAuMzY1NSA1NjAuNzUxIDMwLjEzMDhDNTYwLjk5OSAyOS4zMzU1IDU2MC45MDcgMjguODY2MSA1NjAuNTE2IDI4Ljc2MThDNTYwLjA5OSAyOC42MTg0IDU2MC4wMzQgMjguMTYyIDU2MC4yOTUgMjcuMzUzN0M1NjUuMzc5IDE4LjE3NDkgNTcwLjc3NyA5LjEwMDU1IDU3Ni40MzYgMC4wOTEzMDg2SDQzMC4xNzZDNDI0LjIwNCAxMi42NzMgNDE5LjA1NCAyNS45NDU2IDQxNC44MyAzOS45ODc1QzQwNi40NzMgNjEuOTU2NSA0MDQuMjgyIDgyLjI2OTcgNDA4LjI4NSAxMDAuOTY2QzQxMi4wMTQgMTIwLjQ1OCA0MTguODMzIDEzOC40NjMgNDI4LjcyOCAxNTQuOTgyQzQzOC42MTEgMTcxLjUyOCA0NTIuNDU4IDE4NS4wODcgNDcwLjI1NCAxOTUuN0M0OTAuNzM3IDIwOC44ODEgNTEyLjE0NSAyMTcuNzIxIDUzNC40MDEgMjIyLjI0NUM1NTYuNjQ0IDIyNi43NTcgNTc5Ljg2NSAyMjYuNTA5IDYwNC4xMTUgMjIxLjU2N0M2MDkuNjQzIDIyMC42MTYgNjE1LjI2MyAyMTkuNDY4IDYyMC45MjEgMjE4LjA5OUM2MjYuNTY3IDIxNi43NTYgNjMyLjI3NyAyMTUuMTkyIDYzOC4wNTMgMjEzLjQxOUM2NTkuMDU3IDIwNy41MjUgNjc4LjU2MiAxOTkuMzkgNjk2LjU0MSAxODkuMDc3IiBmaWxsPSIjRjVGNUY3Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMjgyMF82OTk5MSI+CjxyZWN0IHdpZHRoPSI3MjEiIGhlaWdodD0iMjU2Ljg0OCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K");background-repeat:no-repeat;background-size:contain}@media (min-width: 48em){.duet-page-heading .background .background-mask{top:-40px;width:502px;height:577px}}.duet-page-heading .background .brand-shape{position:absolute;top:-157px;right:-20px;width:185px;height:185px;background:rgb(0, 119, 179);border-radius:20%;mix-blend-mode:normal;opacity:0.2;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shape{top:-280px;right:-40px;width:325px;height:325px}}.duet-page-heading .background .brand-shape.second-shape{top:-182px;right:100px;width:207px;height:207px;background:rgb(11, 114, 136);opacity:0.1}@media (min-width: 48em){.duet-page-heading .background .brand-shape.second-shape{top:-325px;right:200px;width:365px;height:365px}}.duet-page-heading .background .brand-shaped-icon{position:absolute;top:20px;right:16px;display:flex;align-items:center;justify-content:center;width:85px;width:60px;height:85px;height:60px;background:rgba(0, 119, 179, 0.75);border-radius:25%;mix-blend-mode:normal;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon{right:36px;width:93px;height:93px}}.duet-page-heading .background .brand-shaped-icon duet-icon{width:60px;height:60px;transform:rotate(-7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon duet-icon{width:75px;height:75px}}.duet-page-heading.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(8, 42, 77)}.duet-page-heading.duet-theme-turva .brand-shaped-icon{background:rgba(198, 12, 48, 0.9);-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-repeat:no-repeat;mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");mask-repeat:no-repeat}.duet-page-heading.duet-theme-turva .brand-shaped-icon duet-icon{position:relative;top:-3px}.duet-page-heading .progress-indicator{display:flex;flex-direction:row;gap:4px}.duet-page-heading .progress-step{width:100%;height:4px;background-color:rgb(181, 198, 208);border-radius:2px}.duet-page-heading .progress-step.active{background-color:rgb(0, 119, 179)}';var DuetPageHeadingStyle0=duetPageHeadingCss;var DuetPageHeading=function(){function M(M){registerInstance(this,M);this.theme="";this.icon="";this.layout="narrow";this.progressCurrentStep=undefined;this.progressTotalSteps=undefined}M.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};M.prototype.progressIndicator=function(){var M=this;return h("div",{class:"progress-indicator"},Array.from({length:Math.ceil(this.progressTotalSteps)},(function(N,g){var j=g+1;return h("div",{class:{"progress-step":true,active:j<=M.progressCurrentStep}})})))};M.prototype.render=function(){var M;var N=this.layout==="narrow"?"narrow":this.layout==="fluid"?"fluid":"auto";return h("div",{key:"deaabf405a74eed099dfdb2ce2f2591bda47302d",class:(M={"duet-page-heading":true,"duet-theme-turva":this.theme==="turva","has-icon":!!this.icon},M[N]=true,M)},h("div",{key:"4df93b3838da36392423572f2b34b7568b6ec245",class:"background"},this.theme==="turva"&&h("div",{key:"b2c4fb7eb26966f6aeaa1ae9a18fa191d63acfdf",class:"background-mask"}),this.theme!=="turva"&&h("div",{key:"967ad60ff667516345b59b415fe184f3e6f76c26",class:"brand-shape"}),this.theme!=="turva"&&h("div",{key:"6207bf2635e9e179dd260378af5ec14ac5edd4c1",class:"brand-shape second-shape"}),this.icon&&h("div",{key:"ae2e52d038a7ed804b89a6359a9277d96977a504",class:"brand-shaped-icon"},h("duet-icon",{key:"985c43c04d9bcdee61446b316fa9bba3f2c668ef",background:"none",name:this.icon,margin:"none",size:"auto",responsive:false}))),h("div",{key:"065c80122d1f6a301fdea66dc6ab8c47b6a22914",class:"heading"},h("slot",{key:"390772e5cfb95e14cd2504d06874104d9e524cbc",name:"heading"}),this.progressCurrentStep&&this.progressTotalSteps&&h("div",{key:"b622068c0b3186ee1c596c8d69eb3e0ec4d4ea31"},h("duet-spacer",{key:"79f7d891c78edd17403b871e0ceb437876bd6c62",size:"large"}),h("div",{key:"f9f84a6e0937792baeb1e3f838443e884516197f",role:"presentation"},this.progressIndicator()))))};Object.defineProperty(M.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return M}();DuetPageHeading.style=DuetPageHeadingStyle0;export{DuetPageHeading as duet_page_heading};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function r(t){try{u(n.next(t))}catch(t){s(t)}}function o(t){try{u(n["throw"](t))}catch(t){s(t)}}function u(t){t.done?i(t.value):a(t.value).then(r,o)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,r;return r={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function o(t){return function(e){return u([t,e])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,o[0]&&(i=0)),i)try{if(n=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){i.label=o[1];break}if(o[0]===6&&i.label<s[1]){i.label=s[1];s=o;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(o);break}if(s[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t];a=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-1a6cee61.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{d as debounce}from"./js-utils-9b9e0039.js";import{k as isArrowKey,l as isNumber,d as isArrowLeftKey,b as isArrowUpKey,a as isArrowRightKey,c as isArrowDownKey,m as isMinusKey,n as isPlusKey}from"./keyboard-utils-daf80d44.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-8a9d5323.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";import{b as breakpointTokensUpTo,a as breakpointToToken}from"./token-utils-b9ba8c5e.js";import"./tokens.module-2d02f5ff.js";var shouldDisplayNavigation=function(t,e,i){if(t*2>e/i){return false}return true};var duetPaginationCss='*,*::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(8, 42, 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)}';var DuetPaginationStyle0=duetPaginationCss;var DuetPagination=function(){function t(t){var e=this;registerInstance(this,t);this.duetPageChange=createEvent(this,"duetPageChange",3);this.listId=createID("duet-pagination-list");this.firstRenderDone=false;this.handleMediaQueryChange=function(t){e.matchesCompactBreakpoint=breakpointTokensUpTo.includes(e.compactBreakpoint)?t.matches:!t.matches};this.actionChain=function(t,i){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:if(!(t===0))return[3,1];this.current=1;return[3,4];case 1:if(!(t>this.totalPages))return[3,2];this.current=this.totalPages;return[3,4];case 2:if(!(i!==t))return[3,4];e=Math.ceil(t/this.visibleItems)-1;if(!(e!==this.internalSectionIndex))return[3,4];this.internalSectionIndex=e;return[4,this.setFocus()];case 3:n.sent();n.label=4;case 4:return[2,true]}}))}))};this.emitPageEvent=function(t,i){var n=Number(i||e.current);e.duetPageChange.emit({component:"duet-pagination",from:n*e.take,to:n*e.take+e.take,current:n,take:e.take,type:"page",originalEvent:t})};this.getEnteredNumber=debounce((function(t){e.emitPageEvent(t,e.numbersStore);e.current=Number(e.numbersStore);e.numbersStore="";e.duetPageChange.emit({component:"duet-pagination",from:e.current*e.take,to:e.current*e.take+e.take,current:e.current,take:e.take,type:"jump",originalEvent:t})}),500);this.processedPageLinks=null;this.numbersStore="";this.matchesCompactBreakpoint=false;this.totalPages=10;this.internalSectionIndex=0;this.theme="";this.disabled=false;this.variation="default";this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;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=getLocaleString(this.accessibleLabelsDefaults);this.take=5;this.visibleItems=5;this.total=1e3;this.compactBreakpoint="x-small";this.ariaControls="";this.current=1;this.pageLinks=undefined}t.prototype.watchPropTotalHandler=function(){this.calculatePageTake();return true};t.prototype.watchStateHandler=function(t,e){return this.actionChain(t,e)};t.prototype.componentWillLoad=function(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1;this.calculatePageTake();inheritGlobalTheme(this);this.refresh()};t.prototype.componentDidLoad=function(){this.firstRenderDone=true};t.prototype.componentWillRender=function(){if(this.internalSectionIndex!==0&&this.internalSectionIndex!==this.totalPages){this.calculatePageTake()}};t.prototype.componentDidRender=function(){if(this.firstRenderDone&&!this.processedPageLinks){this.setFocus()}};t.prototype.connectedCallback=function(){var t=this.compactBreakpoint==="none"?"all":breakpointToToken[this.compactBreakpoint];this.mq=matchMedia(t);this.mq.addEventListener("change",debounce(this.handleMediaQueryChange,50));this.handleMediaQueryChange(this.mq);connectLanguageChangeObserver(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})};t.prototype.disconnectedCallback=function(){this.mq.removeEventListener("change",this.handleMediaQueryChange);this.mq=null;this.matchesCompactBreakpoint=false;disconnectLanguageChangeObserver(this)};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.processedPageLinks=parsePossibleJSON(this.pageLinks);return[2]}))}))};t.prototype.calculatePageTake=function(){this.totalPages=Math.ceil(this.total/this.take)};t.prototype.onMouseHandler=function(t,e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){if(this.disabled){return[2]}if(!this.processedPageLinks){t.preventDefault();t.stopPropagation();this.current=this.current+e}this.emitPageEvent(t);return[2]}))}))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){if(this.disabled){return[2]}e=this.current;if(isArrowLeftKey(t)||isArrowUpKey(t)){e--}if(isArrowRightKey(t)||isArrowDownKey(t)){e++}if(isArrowKey(t)){if(e<=this.totalPages){this.current=e;if(this.processedPageLinks){this.emitPageEvent(t,e-1);window.open(this.processedPageLinks[e-1],"_self","")}else{this.emitPageEvent(t)}}}if(isNumber(t)&&this.shouldDisplayNavigation()){this.numbersStore=this.numbersStore+t.key;if(Number(this.numbersStore)>this.totalPages){this.numbersStore=this.totalPages+""}this.getEnteredNumber(t)}return[2]}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:t=this.nativeNav.querySelector("[data-id='".concat(this.current,"']"));e=t;if(!e)return[3,2];return[4,t.setFocus()];case 1:e=i.sent();i.label=2;case 2:e;return[2]}}))}))};t.prototype.pageClickHandler=function(t){var e=Number(t.target.getAttribute("data-id"));if(!this.processedPageLinks){t.preventDefault();this.current=e}this.emitPageEvent(t,e)};t.prototype.selectClickHandler=function(t){t.preventDefault();var e=Number(t.target.value);this.current=e;if(this.processedPageLinks){this.emitPageEvent(t,e-1);window.open(this.processedPageLinks[e-1],"_self","")}else{this.emitPageEvent(t,e)}};t.prototype.sectionClickHandler=function(t,e){t.preventDefault();var i=this.internalSectionIndex+e;var n=this.take*this.visibleItems;if(i*n>this.total){i=this.internalSectionIndex}var a=i;this.internalSectionIndex=a>=0?a:0};t.prototype.jumpToStart=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=0;this.current=1}this.emitPageEvent(t)};t.prototype.jumpToEnd=function(t){if(!this.processedPageLinks){t.preventDefault();this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1);this.current=this.totalPages}this.emitPageEvent(t)};t.prototype.renderPageButton=function(t){var e=this;return h("duet-button",{disabled:this.disabled,class:{"duet-pagination-link":true},id:"page-".concat(t,"-button"),color:t!==this.current?this.theme!=="turva"?"secondary":"secondary-turva":this.theme!=="turva"?"primary":"primary-turva","data-id":t,"center-text":true,variation:"plain",margin:"none",accessibleLabel:"".concat(this.accessibleLabels.go_to," ").concat(t),onClick:function(t){return e.pageClickHandler(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[t-1]:undefined},h("div",{class:"duet-pagination-page-number","aria-hidden":true},t))};t.prototype.renderPageNumbers=function(){var t=[];var e=this.internalSectionIndex*this.visibleItems;do{e++;if(e>this.totalPages){break}t.push(h("li",{class:{"duet-pagination-item":true,"duet-pagination-item-is-active":e===this.current},role:"menuitem"},this.renderPageButton(e)))}while(e<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t};t.prototype.renderSelect=function(){var t=this;var e=[];for(var i=1;i<=this.totalPages;i++){e.push({value:i.toString(),label:i.toString()})}var n=h("duet-select",{disabled:this.disabled,theme:this.theme,class:"duet-pagination-select",variation:"compact",items:JSON.stringify(e),value:this.current.toString(),label:this.accessibleLabels.select_label.replace("{0}","".concat(this.totalPages)),labelHidden:true,onDuetChange:function(e){return t.selectClickHandler(e)},margin:"none"});return h("li",null,n,h("span",{class:"duet-pagination-total-pages","aria-hidden":"true"},"/ ",this.totalPages))};t.prototype.shouldDisplayNavigation=function(){if(this.variation!=="compact"&&!this.matchesCompactBreakpoint){return shouldDisplayNavigation(this.visibleItems,this.total,this.take)}return false};t.prototype.render=function(){var t;var e=this;return h(Host,{key:"5943ffdd76ef98748f029896f38e97bde1865d98",onKeyDown:function(t){return e.onKeyboardDown(t)},class:{"duet-theme-turva":this.theme==="turva"}},h("nav",{key:"76a6858bee8b90ea73b0fe7213b9f271c9eb509e",role:"navigation","aria-labelledby":this.accessibleLabelledBy?"".concat(this.accessibleLabelledBy," ").concat(this.listId):this.listId,"aria-describedby":this.accessibleDescribedBy?"".concat(this.accessibleDescribedBy," ").concat(this.listId):this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:function(t){return e.nativeNav=t},"aria-controls":this.ariaControls,class:(t={"duet-pagination-nav":true},t["duet-pagination-variation-".concat(this.variation)]=true,t)},this.numbersStore!==""&&h("div",{key:"c323069e8b3a2883c45ac5f6354b550cf529657e","aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":"".concat(this.accessibleLabels.jump_to," ").concat(this.numbersStore),part:"navigation-overlay"},h("duet-badge",{key:"38ac9c11afc3eab57815de9cdf648ff21df38621",theme:this.theme},"jump to page : ",this.numbersStore)),h("ol",{key:"ccbb3b8d012e3e4defd979d88a327df68e0e2058",id:this.listId,class:{"duet-pagination":true,"duet-pagination-is-dimmed":this.numbersStore!==""},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},(this.variation==="compact"||this.matchesCompactBreakpoint)&&h("li",{key:"93bf21a9d7c68782301a6723fd6e9db55d572345",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"2d1521d6ca50e80ef5c0b3267bccb168a2d6e62d",disabled:this.internalSectionIndex===0&&this.current<=1||this.disabled,"data-direction":"back",accessibleLabel:this.accessibleLabels.first_page,title:this.accessibleLabels.first_page,onClick:function(t){return e.jumpToStart(t)},"icon-name":"action-move-to-first",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined})),h("li",{key:"98a6f6692c652c74d6c463d2466eca429358891c",class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"8a43fa4728ae1b53ef977bdf1c7a44d5034bdd04",disabled:!!(this.internalSectionIndex===0&&this.current<=1||this.current<=1&&this.processedPageLinks||this.disabled),"data-direction":"back",onClick:function(t){return e.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]:undefined})),this.internalSectionIndex!==0&&this.shouldDisplayNavigation()&&h(Fragment,{key:"bea57a7da7eb4e8feb17560ae2ae442590aa5ee2"},h("li",{key:"7e62beaf647d200436162f87098f67d8a5c928d8",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"c98c4fcdcb94567e691930005974e605406cce33",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:this.theme!=="turva"?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:function(t){return e.jumpToStart(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[0]:undefined},h("div",{key:"b8760ceeb730e809cd7996be57bd9e93ebdbd653",class:"duet-pagination-page-number"},"1"))),h("li",{key:"3c948e1d9eac9dec1337744db26662d738aead11",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"3e59a62a9d1ef3e51cd6f71aa912ca4794454b4b",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return e.sectionClickHandler(t,-1)},theme:this.theme},h("div",{key:"d8c79ebb7e0a7164008563da0346de380d7d204b",class:"duet-pagination-page-number","aria-hidden":"true"},"…")))),this.shouldDisplayNavigation()&&this.renderPageNumbers()||this.renderSelect(),(this.internalSectionIndex+1)*this.visibleItems<this.totalPages&&this.shouldDisplayNavigation()&&h(Fragment,{key:"e9e3c57605ca7050408b9397aee62faeb16cd270"},(this.internalSectionIndex+1)*this.visibleItems!==this.totalPages-1&&h("li",{key:"5854f40f93fe8e24d9f0fbe0c113195f3ca722c2",class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{key:"aa268bf3709899c5e8f5f277e94ff8d70ebcd764",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}","".concat(this.visibleItems)),onClick:function(t){return e.sectionClickHandler(t,1)},theme:this.theme},h("div",{key:"b1e1c1cb874bf04dca88bf6d3386b2fb4d3df947",class:"duet-pagination-page-number","aria-hidden":"true"},"…"))),h("li",{key:"da069480127ea148dbc13a4e175a474f2c14cfb9",class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{key:"b76da37a208b7456e89e084b6d586d70a90cc1e7",disabled:this.disabled,class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:function(t){return e.jumpToEnd(t)},theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.processedPageLinks.length-1]:undefined},h("div",{key:"a2cb2f2a14057653ca92dae498804862835c70cf",class:"duet-pagination-page-number"},this.totalPages)))),h("li",{key:"eeebc9e7bdfaccd7e438d2f580056923d00a8756",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"b97ef02ea16c8fb216e88dc74e3fe87b76ac2f09",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:function(t){return e.onMouseHandler(t,1)},"icon-name":"action-move-to-next",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.current]:undefined})),(this.variation==="compact"||this.matchesCompactBreakpoint)&&h("li",{key:"45ee2be07aca3f3526fc9a3b23deea0d04c0b36e",class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{key:"0519bda2be03889de093f73535907ab63388877d",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:function(t){return e.jumpToEnd(t)},"icon-name":"action-move-to-last",theme:this.theme,url:this.processedPageLinks?this.processedPageLinks[this.totalPages-1]:undefined})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"],pageLinks:["refresh"]}},enumerable:false,configurable:true});return t}();DuetPagination.style=DuetPaginationStyle0;var duetRangeStepperCss="*,*::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(8, 42, 77)}.duet-range-stepper ::part(button){border:0}";var DuetRangeStepperStyle0=duetRangeStepperCss;var DuetRangeStepper=function(){function t(t){var e=this;registerInstance(this,t);this.duetRangeStepUpdate=createEvent(this,"duetRangeStepUpdate",7);this.leftBn=createID("duetRangeStepper-left");this.rightBn=createID("duetRangeStepper-right");this.handleClick=function(t,i){t.preventDefault();e.stepIndex+=i;e.clampStepIndex();e.handleStepClick(t)};this.buttonLeftDisabled=false;this.buttonRightDisabled=false;this.theme="";this.disabled=false;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=getLocaleString(this.ariaLabelsDefaults);this.ariaControls=""}t.prototype.watchStepIndexStateHandler=function(t){if(this.leftBnRef&&this.rightBnRef){if(t<=1){if(this.element===document.activeElement){this.rightBnRef.setFocus()}this.buttonLeftDisabled=true}else{this.buttonLeftDisabled=false}if(t>=this.total/this.stepSize){if(this.element===document.activeElement){this.leftBnRef.setFocus()}this.buttonRightDisabled=true}else{this.buttonRightDisabled=false}}};t.prototype.watchStepSizeStateHandler=function(t,e){if(t!==e){if(this.stepIndex*t>this.total){this.stepIndex=Math.ceil(this.total/t)}this.watchStepIndexStateHandler(this.stepIndex)}};t.prototype.handleStepClick=function(t){this.duetRangeStepUpdate.emit({originalEvent:t,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.clampStepIndex()};t.prototype.componentDidLoad=function(){this.watchStepIndexStateHandler(this.stepIndex)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};t.prototype.clampStepIndex=function(){if(this.stepIndex<1){this.stepIndex=1}else if(this.stepIndex*this.stepSize>this.total){this.stepIndex=Math.ceil(this.total/this.stepSize)}};t.prototype.getFrom=function(){return Math.floor((this.stepIndex-1)*this.stepSize)+1};t.prototype.getTo=function(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)};t.prototype.generateStepSize=function(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))};t.prototype.generatePreviousIncrementLabel=function(){if(this.getFrom()===1){return""}return 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))};t.prototype.generateNextIncrementLabel=function(){if(this.getTo()===this.total){return""}return 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))};t.prototype.onKeyboardDown=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i;return __generator(this,(function(n){if(this.disabled){return[2]}e=this.stepIndex;i=1;if(isArrowLeftKey(t)||isArrowUpKey(t)||isMinusKey(t)){e--;i=-1;this.leftBnRef.setFocus()}if(isArrowRightKey(t)||isArrowDownKey(t)||isPlusKey(t)){e++;i=1}if(isArrowKey(t)){if(e>0&&e*this.stepSize<=this.total){this.handleClick(t,i)}}return[2]}))}))};t.prototype.render=function(){var t=this;return h("div",{key:"92bfdf2b82bf4c6c299cbbc288a81c13449b0edc",class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(e){return t.onKeyboardDown(e)},"aria-controls":this.ariaControls},h("span",{key:"c0c007aa816eec8a7ae151b272b3bc948cba4a94",class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),h("duet-action-button",{key:"86d4d9ed69039243ca294fc4158237d08ddf7083",disabled:this.disabled||this.buttonLeftDisabled,class:"duet-range-step-button duet-range-step-minus",onClick:function(e){return t.handleClick(e,-1)},id:this.leftBn,"accessible-label":"".concat(this.ariaLabels.previous_increment," ").concat(this.generatePreviousIncrementLabel()),ref:function(e){return t.leftBnRef=e},part:"navigation-arrow",iconName:"action-arrow-left-small",title:""}),h("duet-action-button",{key:"0807cc9746426dfca2540572c26e8987de685d58",disabled:this.disabled||this.buttonRightDisabled,class:"duet-range-step-button duet-range-step-plus",onClick:function(e){return t.handleClick(e,1)},"accessible-label":"".concat(this.ariaLabels.next_increment," ").concat(this.generateNextIncrementLabel()),id:this.rightBn,ref:function(e){return t.rightBnRef=e},part:"navigation-arrow",iconName:"action-arrow-right-small",title:""}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}},enumerable:false,configurable:true});return t}();DuetRangeStepper.style=DuetRangeStepperStyle0;export{DuetPagination as duet_pagination,DuetRangeStepper as duet_range_stepper};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,o,n,i){function a(e){return e instanceof n?e:new n((function(o){o(e)}))}return new(n||(n=Promise))((function(n,t){function r(e){try{C(i.next(e))}catch(e){t(e)}}function s(e){try{C(i["throw"](e))}catch(e){t(e)}}function C(e){e.done?n(e.value):a(e.value).then(r,s)}C((i=i.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var n={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},i,a,t,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(o){return C([e,o])}}function C(s){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(n=0)),n)try{if(i=1,a&&(t=s[0]&2?a["return"]:s[0]?a["throw"]||((t=a["return"])&&t.call(a),0):a.next)&&!(t=t.call(a,s[1])).done)return t;if(a=0,t)s=[s[0]&2,t.value];switch(s[0]){case 0:case 1:t=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(t=n.trys,t=t.length>0&&t[t.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!t||s[1]>t[0]&&s[1]<t[3])){n.label=s[1];break}if(s[0]===6&&n.label<t[1]){n.label=t[1];t=s;break}if(t&&n.label<t[2]){n.label=t[2];n.ops.push(s);break}if(t[2])n.ops.pop();n.trys.pop();continue}s=o.call(e,n)}catch(e){s=[6,e];a=0}finally{i=t=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,o,n){if(n||arguments.length===2)for(var i=0,a=o.length,t;i<a;i++){if(t||!(i in o)){if(!t)t=Array.prototype.slice.call(o,0,i);t[i]=o[i]}}return e.concat(t||Array.prototype.slice.call(o))};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-1a6cee61.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-daf80d44.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-8a9d5323.js";import{c as checkNamedSlotElement}from"./slot-utils-bf214ae5.js";import"./string-utils-192eb3c8.js";var countries={AF:{isoCode:"AF",en:"Afghanistan",fi:"Afganistan",sv:"Afghanistan",telephoneCountryCode:"93"},AL:{isoCode:"AL",en:"Albania",fi:"Albania",sv:"Albanien",telephoneCountryCode:"355"},DZ:{isoCode:"DZ",en:"Algeria",fi:"Algeria",sv:"Algeriet",telephoneCountryCode:"213"},AS:{isoCode:"AS",en:"American Samoa",fi:"Amerikan Samoa",sv:"Amerikanska Samoa",telephoneCountryCode:"1"},AD:{isoCode:"AD",en:"Andorra",fi:"Andorra",sv:"Andorra",telephoneCountryCode:"376"},AO:{isoCode:"AO",en:"Angola",fi:"Angola",sv:"Angola",telephoneCountryCode:"244"},AI:{isoCode:"AI",en:"Anguilla",fi:"Anguilla",sv:"Anguilla",telephoneCountryCode:"1"},AQ:{isoCode:"AQ",en:"Antarctica",fi:"Antarktis",sv:"Antarktis"},AG:{isoCode:"AG",en:"Antigua and Barbuda",fi:"Antigua ja Barbuda",sv:"Antigua och Barbuda",telephoneCountryCode:"1"},AR:{isoCode:"AR",en:"Argentina",fi:"Argentiina",sv:"Argentina",telephoneCountryCode:"54"},AM:{isoCode:"AM",en:"Armenia",fi:"Armenia",sv:"Armenien",telephoneCountryCode:"374"},AW:{isoCode:"AW",en:"Aruba",fi:"Aruba",sv:"Aruba",telephoneCountryCode:"297"},AU:{isoCode:"AU",en:"Australia",fi:"Australia",sv:"Australien",telephoneCountryCode:"61"},AT:{isoCode:"AT",en:"Austria",fi:"Itävalta",sv:"Österrike",telephoneCountryCode:"43"},AZ:{isoCode:"AZ",en:"Azerbaijan",fi:"Azerbaidžan",sv:"Azerbajdzjan",telephoneCountryCode:"994"},BS:{isoCode:"BS",en:"Bahamas",fi:"Bahama",sv:"Bahamas",telephoneCountryCode:"1"},BH:{isoCode:"BH",en:"Bahrain",fi:"Bahrain",sv:"Bahrain",telephoneCountryCode:"973"},BD:{isoCode:"BD",en:"Bangladesh",fi:"Bangladesh",sv:"Bangladesh",telephoneCountryCode:"880"},BB:{isoCode:"BB",en:"Barbados",fi:"Barbados",sv:"Barbados",telephoneCountryCode:"1"},BY:{isoCode:"BY",en:"Belarus",fi:"Valko-Venäjä",sv:"Belarus",telephoneCountryCode:"375"},BE:{isoCode:"BE",en:"Belgium",fi:"Belgia",sv:"Belgien",telephoneCountryCode:"32"},BZ:{isoCode:"BZ",en:"Belize",fi:"Belize",sv:"Belize",telephoneCountryCode:"501"},BJ:{isoCode:"BJ",en:"Benin",fi:"Benin",sv:"Benin",telephoneCountryCode:"229"},BM:{isoCode:"BM",en:"Bermuda",fi:"Bermuda",sv:"Bermuda",telephoneCountryCode:"1"},BT:{isoCode:"BT",en:"Bhutan",fi:"Bhutan",sv:"Bhutan",telephoneCountryCode:"975"},BO:{isoCode:"BO",en:"Bolivia",fi:"Bolivia",sv:"Bolivia",telephoneCountryCode:"591"},BA:{isoCode:"BA",en:"Bosnia and Herzegovina",fi:"Bosnia ja Hertsegovina",sv:"Bosnien och Hercegovina",telephoneCountryCode:"387"},BW:{isoCode:"BW",en:"Botswana",fi:"Botswana",sv:"Botswana",telephoneCountryCode:"267"},BV:{isoCode:"BV",en:"Bouvet Island",fi:"Bouvet’nsaari",sv:"Bouvetön"},BR:{isoCode:"BR",en:"Brazil",fi:"Brasilia",sv:"Brasilien",telephoneCountryCode:"55"},IO:{isoCode:"IO",en:"British Indian Ocean Territory",fi:"Brittiläinen Intian valtameren alue",sv:"Brittiska territoriet i Indiska Oceanen",telephoneCountryCode:"246"},BN:{isoCode:"BN",en:"Brunei Darussalam",fi:"Brunei",sv:"Brunei",telephoneCountryCode:"673"},BG:{isoCode:"BG",en:"Bulgaria",fi:"Bulgaria",sv:"Bulgarien",telephoneCountryCode:"359"},BF:{isoCode:"BF",en:"Burkina Faso",fi:"Burkina Faso",sv:"Burkina Faso",telephoneCountryCode:"226"},BI:{isoCode:"BI",en:"Burundi",fi:"Burundi",sv:"Burundi",telephoneCountryCode:"257"},KH:{isoCode:"KH",en:"Cambodia",fi:"Kambodža",sv:"Kambodja",telephoneCountryCode:"855"},CM:{isoCode:"CM",en:"Cameroon",fi:"Kamerun",sv:"Kamerun",telephoneCountryCode:"237"},CA:{isoCode:"CA",en:"Canada",fi:"Kanada",sv:"Kanada",telephoneCountryCode:"1"},CV:{isoCode:"CV",en:"Cape Verde",fi:"Kap Verde",sv:"Kap Verde",telephoneCountryCode:"238"},KY:{isoCode:"KY",en:"Cayman Islands",fi:"Caymansaaret",sv:"Caymanöarna",telephoneCountryCode:"1"},CF:{isoCode:"CF",en:"Central African Republic",fi:"Keski-Afrikan tasavalta",sv:"Centralafrikanska republiken",telephoneCountryCode:"236"},TD:{isoCode:"TD",en:"Chad",fi:"Tšad",sv:"Tchad",telephoneCountryCode:"235"},CL:{isoCode:"CL",en:"Chile",fi:"Chile",sv:"Chile",telephoneCountryCode:"56"},CN:{isoCode:"CN",en:"People's Republic of China",fi:"Kiina",sv:"Kina",telephoneCountryCode:"86"},CX:{isoCode:"CX",en:"Christmas Island",fi:"Joulusaari",sv:"Julön",telephoneCountryCode:"61"},CC:{isoCode:"CC",en:"Cocos (Keeling) Islands",fi:"Kookossaaret",sv:"Kokosöarna",telephoneCountryCode:"61"},CO:{isoCode:"CO",en:"Colombia",fi:"Kolumbia",sv:"Colombia",telephoneCountryCode:"57"},KM:{isoCode:"KM",en:"Comoros",fi:"Komorit",sv:"Komorerna",telephoneCountryCode:"269"},CG:{isoCode:"CG",en:"Republic of the Congo",fi:"Kongon tasavalta",sv:"Kongo-Brazzaville",telephoneCountryCode:"242"},CD:{isoCode:"CD",en:"Democratic Republic of the Congo",fi:"Kongon demokraattinen tasavalta",sv:"Demokratiska republiken Kongo",telephoneCountryCode:"243"},CK:{isoCode:"CK",en:"Cook Islands",fi:"Cookinsaaret",sv:"Cooköarna",telephoneCountryCode:"682"},CR:{isoCode:"CR",en:"Costa Rica",fi:"Costa Rica",sv:"Costa Rica",telephoneCountryCode:"506"},CI:{isoCode:"CI",en:"Cote D'Ivoire",fi:"Norsunluurannikko",sv:"Elfenbenskusten",telephoneCountryCode:"225"},HR:{isoCode:"HR",en:"Croatia",fi:"Kroatia",sv:"Kroatien",telephoneCountryCode:"385"},CU:{isoCode:"CU",en:"Cuba",fi:"Kuuba",sv:"Kuba",telephoneCountryCode:"53"},CY:{isoCode:"CY",en:"Cyprus",fi:"Kypros",sv:"Cypern",telephoneCountryCode:"357"},CZ:{isoCode:"CZ",en:"Czech Republic",fi:"Tšekki",sv:"Tjeckien",telephoneCountryCode:"420"},DK:{isoCode:"DK",en:"Denmark",fi:"Tanska",sv:"Danmark",telephoneCountryCode:"45"},DJ:{isoCode:"DJ",en:"Djibouti",fi:"Djibouti",sv:"Djibouti",telephoneCountryCode:"253"},DM:{isoCode:"DM",en:"Dominica",fi:"Dominica",sv:"Dominica",telephoneCountryCode:"1"},DO:{isoCode:"DO",en:"Dominican Republic",fi:"Dominikaaninen tasavalta",sv:"Dominikanska republiken",telephoneCountryCode:"1"},EC:{isoCode:"EC",en:"Ecuador",fi:"Ecuador",sv:"Ecuador",telephoneCountryCode:"593"},EG:{isoCode:"EG",en:"Egypt",fi:"Egypti",sv:"Egypten",telephoneCountryCode:"20"},SV:{isoCode:"SV",en:"El Salvador",fi:"El Salvador",sv:"El Salvador",telephoneCountryCode:"503"},GQ:{isoCode:"GQ",en:"Equatorial Guinea",fi:"Päiväntasaajan Guinea",sv:"Ekvatorialguinea",telephoneCountryCode:"240"},ER:{isoCode:"ER",en:"Eritrea",fi:"Eritrea",sv:"Eritrea",telephoneCountryCode:"291"},EE:{isoCode:"EE",en:"Estonia",fi:"Viro",sv:"Estland",telephoneCountryCode:"372"},ET:{isoCode:"ET",en:"Ethiopia",fi:"Etiopia",sv:"Etiopien",telephoneCountryCode:"251"},FK:{isoCode:"FK",en:"Falkland Islands (Malvinas)",fi:"Falklandinsaaret",sv:"Falklandsöarna",telephoneCountryCode:"500"},FO:{isoCode:"FO",en:"Faroe Islands",fi:"Färsaaret",sv:"Färöarna",telephoneCountryCode:"298"},FJ:{isoCode:"FJ",en:"Fiji",fi:"Fidži",sv:"Fiji",telephoneCountryCode:"679"},FI:{isoCode:"FI",en:"Finland",fi:"Suomi",sv:"Finland",telephoneCountryCode:"358"},FR:{isoCode:"FR",en:"France",fi:"Ranska",sv:"Frankrike",telephoneCountryCode:"33"},GF:{isoCode:"GF",en:"French Guiana",fi:"Ranskan Guayana",sv:"Franska Guyana",telephoneCountryCode:"594"},PF:{isoCode:"PF",en:"French Polynesia",fi:"Ranskan Polynesia",sv:"Franska Polynesien",telephoneCountryCode:"689"},TF:{isoCode:"TF",en:"French Southern Territories",fi:"Ranskan eteläiset alueet",sv:"Franska södra territorierna"},GA:{isoCode:"GA",en:"Gabon",fi:"Gabon",sv:"Gabon",telephoneCountryCode:"241"},GM:{isoCode:"GM",en:"Republic of The Gambia",fi:"Gambia",sv:"Gambia",telephoneCountryCode:"220"},GE:{isoCode:"GE",en:"Georgia",fi:"Georgia",sv:"Georgien",telephoneCountryCode:"995"},DE:{isoCode:"DE",en:"Germany",fi:"Saksa",sv:"Tyskland",telephoneCountryCode:"49"},GH:{isoCode:"GH",en:"Ghana",fi:"Ghana",sv:"Ghana",telephoneCountryCode:"233"},GI:{isoCode:"GI",en:"Gibraltar",fi:"Gibraltar",sv:"Gibraltar",telephoneCountryCode:"350"},GR:{isoCode:"GR",en:"Greece",fi:"Kreikka",sv:"Grekland",telephoneCountryCode:"30"},GL:{isoCode:"GL",en:"Greenland",fi:"Grönlanti",sv:"Grönland",telephoneCountryCode:"299"},GD:{isoCode:"GD",en:"Grenada",fi:"Grenada",sv:"Grenada",telephoneCountryCode:"1"},GP:{isoCode:"GP",en:"Guadeloupe",fi:"Guadeloupe",sv:"Guadeloupe",telephoneCountryCode:"590"},GU:{isoCode:"GU",en:"Guam",fi:"Guam",sv:"Guam",telephoneCountryCode:"1"},GT:{isoCode:"GT",en:"Guatemala",fi:"Guatemala",sv:"Guatemala",telephoneCountryCode:"502"},GN:{isoCode:"GN",en:"Guinea",fi:"Guinea",sv:"Guinea",telephoneCountryCode:"224"},GW:{isoCode:"GW",en:"Guinea-Bissau",fi:"Guinea-Bissau",sv:"Guinea Bissau",telephoneCountryCode:"245"},GY:{isoCode:"GY",en:"Guyana",fi:"Guyana",sv:"Guyana",telephoneCountryCode:"592"},HT:{isoCode:"HT",en:"Haiti",fi:"Haiti",sv:"Haiti",telephoneCountryCode:"509"},HM:{isoCode:"HM",en:"Heard Island and McDonald Islands",fi:"Heard ja McDonaldinsaaret",sv:"Heard- och McDonaldsöarna"},VA:{isoCode:"VA",en:"Holy See (Vatican City State)",fi:"Vatikaanivaltio",sv:"Vatikanstaten",telephoneCountryCode:"39"},HN:{isoCode:"HN",en:"Honduras",fi:"Honduras",sv:"Honduras",telephoneCountryCode:"504"},HK:{isoCode:"HK",en:"Hong Kong",fi:"Hongkong",sv:"Hongkong",telephoneCountryCode:"852"},HU:{isoCode:"HU",en:"Hungary",fi:"Unkari",sv:"Ungern",telephoneCountryCode:"36"},IS:{isoCode:"IS",en:"Iceland",fi:"Islanti",sv:"Island",telephoneCountryCode:"354"},IN:{isoCode:"IN",en:"India",fi:"Intia",sv:"Indien",telephoneCountryCode:"91"},ID:{isoCode:"ID",en:"Indonesia",fi:"Indonesia",sv:"Indonesien",telephoneCountryCode:"62"},IR:{isoCode:"IR",en:"Islamic Republic of Iran",fi:"Iran",sv:"Iran",telephoneCountryCode:"98"},IQ:{isoCode:"IQ",en:"Iraq",fi:"Irak",sv:"Irak",telephoneCountryCode:"964"},IE:{isoCode:"IE",en:"Ireland",fi:"Irlanti",sv:"Irland",telephoneCountryCode:"353"},IL:{isoCode:"IL",en:"Israel",fi:"Israel",sv:"Israel",telephoneCountryCode:"972"},IT:{isoCode:"IT",en:"Italy",fi:"Italia",sv:"Italien",telephoneCountryCode:"39"},JM:{isoCode:"JM",en:"Jamaica",fi:"Jamaika",sv:"Jamaica",telephoneCountryCode:"1"},JP:{isoCode:"JP",en:"Japan",fi:"Japani",sv:"Japan",telephoneCountryCode:"81"},JO:{isoCode:"JO",en:"Jordan",fi:"Jordania",sv:"Jordanien",telephoneCountryCode:"962"},KZ:{isoCode:"KZ",en:"Kazakhstan",fi:"Kazakstan",sv:"Kazakstan",telephoneCountryCode:"7"},KE:{isoCode:"KE",en:"Kenya",fi:"Kenia",sv:"Kenya",telephoneCountryCode:"254"},KI:{isoCode:"KI",en:"Kiribati",fi:"Kiribati",sv:"Kiribati",telephoneCountryCode:"686"},KP:{isoCode:"KP",en:"North Korea",fi:"Korean demokraattinen kansantasavalta",sv:"Nordkorea",telephoneCountryCode:"850"},KR:{isoCode:"KR",en:"South Korea",fi:"Korean tasavalta",sv:"Sydkorea",telephoneCountryCode:"82"},KW:{isoCode:"KW",en:"Kuwait",fi:"Kuwait",sv:"Kuwait",telephoneCountryCode:"965"},KG:{isoCode:"KG",en:"Kyrgyzstan",fi:"Kirgisia",sv:"Kirgizistan",telephoneCountryCode:"996"},LA:{isoCode:"LA",en:"Lao People's Democratic Republic",fi:"Laos",sv:"Laos",telephoneCountryCode:"856"},LV:{isoCode:"LV",en:"Latvia",fi:"Latvia",sv:"Lettland",telephoneCountryCode:"371"},LB:{isoCode:"LB",en:"Lebanon",fi:"Libanon",sv:"Libanon",telephoneCountryCode:"961"},LS:{isoCode:"LS",en:"Lesotho",fi:"Lesotho",sv:"Lesotho",telephoneCountryCode:"266"},LR:{isoCode:"LR",en:"Liberia",fi:"Liberia",sv:"Liberia",telephoneCountryCode:"231"},LY:{isoCode:"LY",en:"Libya",fi:"Libya",sv:"Libyen",telephoneCountryCode:"218"},LI:{isoCode:"LI",en:"Liechtenstein",fi:"Liechtenstein",sv:"Liechtenstein",telephoneCountryCode:"423"},LT:{isoCode:"LT",en:"Lithuania",fi:"Liettua",sv:"Litauen",telephoneCountryCode:"370"},LU:{isoCode:"LU",en:"Luxembourg",fi:"Luxemburg",sv:"Luxemburg",telephoneCountryCode:"352"},MO:{isoCode:"MO",en:"Macao",fi:"Macao",sv:"Macau",telephoneCountryCode:"853"},MG:{isoCode:"MG",en:"Madagascar",fi:"Madagaskar",sv:"Madagaskar",telephoneCountryCode:"261"},MW:{isoCode:"MW",en:"Malawi",fi:"Malawi",sv:"Malawi",telephoneCountryCode:"265"},MY:{isoCode:"MY",en:"Malaysia",fi:"Malesia",sv:"Malaysia",telephoneCountryCode:"60"},MV:{isoCode:"MV",en:"Maldives",fi:"Malediivit",sv:"Maldiverna",telephoneCountryCode:"960"},ML:{isoCode:"ML",en:"Mali",fi:"Mali",sv:"Mali",telephoneCountryCode:"223"},MT:{isoCode:"MT",en:"Malta",fi:"Malta",sv:"Malta",telephoneCountryCode:"356"},MH:{isoCode:"MH",en:"Marshall Islands",fi:"Marshallinsaaret",sv:"Marshallöarna",telephoneCountryCode:"692"},MQ:{isoCode:"MQ",en:"Martinique",fi:"Martinique",sv:"Martinique",telephoneCountryCode:"596"},MR:{isoCode:"MR",en:"Mauritania",fi:"Mauritania",sv:"Mauretanien",telephoneCountryCode:"222"},MU:{isoCode:"MU",en:"Mauritius",fi:"Mauritius",sv:"Mauritius",telephoneCountryCode:"230"},YT:{isoCode:"YT",en:"Mayotte",fi:"Mayotte",sv:"Mayotte",telephoneCountryCode:"262"},MX:{isoCode:"MX",en:"Mexico",fi:"Meksiko",sv:"Mexiko",telephoneCountryCode:"52"},FM:{isoCode:"FM",en:"Micronesia, Federated States of",fi:"Mikronesian liittovaltio",sv:"Mikronesiska federationen",telephoneCountryCode:"691"},MD:{isoCode:"MD",en:"Moldova, Republic of",fi:"Moldova",sv:"Moldavien",telephoneCountryCode:"373"},MC:{isoCode:"MC",en:"Monaco",fi:"Monaco",sv:"Monaco",telephoneCountryCode:"377"},MN:{isoCode:"MN",en:"Mongolia",fi:"Mongolia",sv:"Mongoliet",telephoneCountryCode:"976"},MS:{isoCode:"MS",en:"Montserrat",fi:"Montserrat",sv:"Montserrat",telephoneCountryCode:"1"},MA:{isoCode:"MA",en:"Morocco",fi:"Marokko",sv:"Marocko",telephoneCountryCode:"212"},MZ:{isoCode:"MZ",en:"Mozambique",fi:"Mosambik",sv:"Moçambique",telephoneCountryCode:"258"},MM:{isoCode:"MM",en:"Myanmar",fi:"Myanmar",sv:"Burma",telephoneCountryCode:"95"},NA:{isoCode:"NA",en:"Namibia",fi:"Namibia",sv:"Namibia",telephoneCountryCode:"264"},NR:{isoCode:"NR",en:"Nauru",fi:"Nauru",sv:"Nauru",telephoneCountryCode:"674"},NP:{isoCode:"NP",en:"Nepal",fi:"Nepal",sv:"Nepal",telephoneCountryCode:"977"},NL:{isoCode:"NL",en:"Netherlands",fi:"Alankomaat",sv:"Nederländerna",telephoneCountryCode:"31"},NC:{isoCode:"NC",en:"New Caledonia",fi:"Uusi-Kaledonia",sv:"Nya Kaledonien",telephoneCountryCode:"687"},NZ:{isoCode:"NZ",en:"New Zealand",fi:"Uusi-Seelanti",sv:"Nya Zeeland",telephoneCountryCode:"64"},NI:{isoCode:"NI",en:"Nicaragua",fi:"Nicaragua",sv:"Nicaragua",telephoneCountryCode:"505"},NE:{isoCode:"NE",en:"Niger",fi:"Niger",sv:"Niger",telephoneCountryCode:"227"},NG:{isoCode:"NG",en:"Nigeria",fi:"Nigeria",sv:"Nigeria",telephoneCountryCode:"234"},NU:{isoCode:"NU",en:"Niue",fi:"Niue",sv:"Niue",telephoneCountryCode:"683"},NF:{isoCode:"NF",en:"Norfolk Island",fi:"Norfolkinsaari",sv:"Norfolkön",telephoneCountryCode:"672"},MK:{isoCode:"MK",en:"The Republic of North Macedonia",fi:"Pohjois-Makedonia",sv:"Nordmakedonien",telephoneCountryCode:"389"},MP:{isoCode:"MP",en:"Northern Mariana Islands",fi:"Pohjois-Mariaanit",sv:"Nordmarianerna",telephoneCountryCode:"1"},NO:{isoCode:"NO",en:"Norway",fi:"Norja",sv:"Norge",telephoneCountryCode:"47"},OM:{isoCode:"OM",en:"Oman",fi:"Oman",sv:"Oman",telephoneCountryCode:"968"},PK:{isoCode:"PK",en:"Pakistan",fi:"Pakistan",sv:"Pakistan",telephoneCountryCode:"92"},PW:{isoCode:"PW",en:"Palau",fi:"Palau",sv:"Palau",telephoneCountryCode:"680"},PS:{isoCode:"PS",en:"State of Palestine",fi:"Palestiina",sv:"Palestinska territoriet, ockuperade",telephoneCountryCode:"970"},PA:{isoCode:"PA",en:"Panama",fi:"Panama",sv:"Panama",telephoneCountryCode:"507"},PG:{isoCode:"PG",en:"Papua New Guinea",fi:"Papua-Uusi-Guinea",sv:"Papua Nya Guinea",telephoneCountryCode:"675"},PY:{isoCode:"PY",en:"Paraguay",fi:"Paraguay",sv:"Paraguay",telephoneCountryCode:"595"},PE:{isoCode:"PE",en:"Peru",fi:"Peru",sv:"Peru",telephoneCountryCode:"51"},PH:{isoCode:"PH",en:"Philippines",fi:"Filippiinit",sv:"Filippinerna",telephoneCountryCode:"63"},PN:{isoCode:"PN",en:"Pitcairn",fi:"Pitcairn",sv:"Pitcairnöarna"},PL:{isoCode:"PL",en:"Poland",fi:"Puola",sv:"Polen",telephoneCountryCode:"48"},PT:{isoCode:"PT",en:"Portugal",fi:"Portugali",sv:"Portugal",telephoneCountryCode:"351"},PR:{isoCode:"PR",en:"Puerto Rico",fi:"Puerto Rico",sv:"Puerto Rico",telephoneCountryCode:"1"},QA:{isoCode:"QA",en:"Qatar",fi:"Qatar",sv:"Qatar",telephoneCountryCode:"974"},RE:{isoCode:"RE",en:"Reunion",fi:"Réunion",sv:"Réunion",telephoneCountryCode:"262"},RO:{isoCode:"RO",en:"Romania",fi:"Romania",sv:"Rumänien",telephoneCountryCode:"40"},RU:{isoCode:"RU",en:"Russian Federation",fi:"Venäjä",sv:"Ryssland",telephoneCountryCode:"7"},RW:{isoCode:"RW",en:"Rwanda",fi:"Ruanda",sv:"Rwanda",telephoneCountryCode:"250"},SH:{isoCode:"SH",en:"Saint Helena",fi:"Saint Helena",sv:"Sankta Helena",telephoneCountryCode:"290"},KN:{isoCode:"KN",en:"Saint Kitts and Nevis",fi:"Saint Kitts ja Nevis",sv:"Saint Kitts och Nevis",telephoneCountryCode:"1"},LC:{isoCode:"LC",en:"Saint Lucia",fi:"Saint Lucia",sv:"Saint Lucia",telephoneCountryCode:"1"},PM:{isoCode:"PM",en:"Saint Pierre and Miquelon",fi:"Saint-Pierre ja Miquelon",sv:"Saint-Pierre och Miquelon",telephoneCountryCode:"508"},VC:{isoCode:"VC",en:"Saint Vincent and the Grenadines",fi:"Saint Vincent ja Grenadiinit",sv:"Saint Vincent och Grenadinerna",telephoneCountryCode:"1"},WS:{isoCode:"WS",en:"Samoa",fi:"Samoa",sv:"Samoa",telephoneCountryCode:"685"},SM:{isoCode:"SM",en:"San Marino",fi:"San Marino",sv:"San Marino",telephoneCountryCode:"378"},ST:{isoCode:"ST",en:"Sao Tome and Principe",fi:"São Tomé ja Príncipe",sv:"São Tomé och Príncipe",telephoneCountryCode:"239"},SA:{isoCode:"SA",en:"Saudi Arabia",fi:"Saudi-Arabia",sv:"Saudiarabien",telephoneCountryCode:"966"},SN:{isoCode:"SN",en:"Senegal",fi:"Senegal",sv:"Senegal",telephoneCountryCode:"221"},SC:{isoCode:"SC",en:"Seychelles",fi:"Seychellit",sv:"Seychellerna",telephoneCountryCode:"248"},SL:{isoCode:"SL",en:"Sierra Leone",fi:"Sierra Leone",sv:"Sierra Leone",telephoneCountryCode:"232"},SG:{isoCode:"SG",en:"Singapore",fi:"Singapore",sv:"Singapore",telephoneCountryCode:"65"},SK:{isoCode:"SK",en:"Slovakia",fi:"Slovakia",sv:"Slovakien",telephoneCountryCode:"421"},SI:{isoCode:"SI",en:"Slovenia",fi:"Slovenia",sv:"Slovenien",telephoneCountryCode:"386"},SB:{isoCode:"SB",en:"Solomon Islands",fi:"Salomonsaaret",sv:"Salomonöarna",telephoneCountryCode:"677"},SO:{isoCode:"SO",en:"Somalia",fi:"Somalia",sv:"Somalia",telephoneCountryCode:"252"},ZA:{isoCode:"ZA",en:"South Africa",fi:"Etelä-Afrikka",sv:"Sydafrika",telephoneCountryCode:"27"},GS:{isoCode:"GS",en:"South Georgia and the South Sandwich Islands",fi:"Etelä-Georgia ja Eteläiset Sandwichsaaret",sv:"Sydgeorgien och Sydsandwichöarna"},ES:{isoCode:"ES",en:"Spain",fi:"Espanja",sv:"Spanien",telephoneCountryCode:"34"},LK:{isoCode:"LK",en:"Sri Lanka",fi:"Sri Lanka",sv:"Sri Lanka",telephoneCountryCode:"94"},SD:{isoCode:"SD",en:"Sudan",fi:"Sudan",sv:"Sudan",telephoneCountryCode:"249"},SR:{isoCode:"SR",en:"Suriname",fi:"Suriname",sv:"Surinam",telephoneCountryCode:"597"},SJ:{isoCode:"SJ",en:"Svalbard and Jan Mayen",fi:"Svalbard ja Jan Mayen",sv:"Svalbard och Jan Mayen",telephoneCountryCode:"47"},SZ:{isoCode:"SZ",en:"Eswatini",fi:"Swazimaa",sv:"Eswatini",telephoneCountryCode:"268"},SE:{isoCode:"SE",en:"Sweden",fi:"Ruotsi",sv:"Sverige",telephoneCountryCode:"46"},CH:{isoCode:"CH",en:"Switzerland",fi:"Sveitsi",sv:"Schweiz",telephoneCountryCode:"41"},SY:{isoCode:"SY",en:"Syrian Arab Republic",fi:"Syyria",sv:"Syrien",telephoneCountryCode:"963"},TW:{isoCode:"TW",en:"Taiwan, Province of China",fi:"Taiwan",sv:"Taiwan",telephoneCountryCode:"886"},TJ:{isoCode:"TJ",en:"Tajikistan",fi:"Tadžikistan",sv:"Tadzjikistan",telephoneCountryCode:"992"},TZ:{isoCode:"TZ",en:"United Republic of Tanzania",fi:"Tansania",sv:"Tanzania",telephoneCountryCode:"255"},TH:{isoCode:"TH",en:"Thailand",fi:"Thaimaa",sv:"Thailand",telephoneCountryCode:"66"},TL:{isoCode:"TL",en:"Timor-Leste",fi:"Itä-Timor",sv:"Östtimor",telephoneCountryCode:"670"},TG:{isoCode:"TG",en:"Togo",fi:"Togo",sv:"Togo",telephoneCountryCode:"228"},TK:{isoCode:"TK",en:"Tokelau",fi:"Tokelau",sv:"Tokelauöarna",telephoneCountryCode:"690"},TO:{isoCode:"TO",en:"Tonga",fi:"Tonga",sv:"Tonga",telephoneCountryCode:"676"},TT:{isoCode:"TT",en:"Trinidad and Tobago",fi:"Trinidad ja Tobago",sv:"Trinidad och Tobago",telephoneCountryCode:"1"},TN:{isoCode:"TN",en:"Tunisia",fi:"Tunisia",sv:"Tunisien",telephoneCountryCode:"216"},TR:{isoCode:"TR",en:"Türkiye",fi:"Turkki",sv:"Turkiet",telephoneCountryCode:"90"},TM:{isoCode:"TM",en:"Turkmenistan",fi:"Turkmenistan",sv:"Turkmenistan",telephoneCountryCode:"993"},TC:{isoCode:"TC",en:"Turks and Caicos Islands",fi:"Turks- ja Caicossaaret",sv:"Turks- och Caicosöarna",telephoneCountryCode:"1"},TV:{isoCode:"TV",en:"Tuvalu",fi:"Tuvalu",sv:"Tuvalu",telephoneCountryCode:"688"},UG:{isoCode:"UG",en:"Uganda",fi:"Uganda",sv:"Uganda",telephoneCountryCode:"256"},UA:{isoCode:"UA",en:"Ukraine",fi:"Ukraina",sv:"Ukraina",telephoneCountryCode:"380"},AE:{isoCode:"AE",en:"United Arab Emirates",fi:"Arabiemiirikunnat",sv:"Förenade Arabemiraten",telephoneCountryCode:"971"},GB:{isoCode:"GB",en:"United Kingdom",fi:"Yhdistynyt kuningaskunta",sv:"Storbritannien",telephoneCountryCode:"44"},US:{isoCode:"US",en:"United States of America",fi:"Yhdysvallat",sv:"USA",telephoneCountryCode:"1"},UM:{isoCode:"UM",en:"United States Minor Outlying Islands",fi:"Yhdysvaltain pienet erillissaaret",sv:"USA:s yttre öar"},UY:{isoCode:"UY",en:"Uruguay",fi:"Uruguay",sv:"Uruguay",telephoneCountryCode:"598"},UZ:{isoCode:"UZ",en:"Uzbekistan",fi:"Uzbekistan",sv:"Uzbekistan",telephoneCountryCode:"998"},VU:{isoCode:"VU",en:"Vanuatu",fi:"Vanuatu",sv:"Vanuatu",telephoneCountryCode:"678"},VE:{isoCode:"VE",en:"Venezuela",fi:"Venezuela",sv:"Venezuela",telephoneCountryCode:"58"},VN:{isoCode:"VN",en:"Vietnam",fi:"Vietnam",sv:"Vietnam",telephoneCountryCode:"84"},VG:{isoCode:"VG",en:"Virgin Islands, British",fi:"Brittiläiset Neitsytsaaret",sv:"Brittiska Jungfruöarna",telephoneCountryCode:"1"},VI:{isoCode:"VI",en:"Virgin Islands, U.S.",fi:"Yhdysvaltain Neitsytsaaret",sv:"Amerikanska Jungfruöarna",telephoneCountryCode:"1"},WF:{isoCode:"WF",en:"Wallis and Futuna",fi:"Wallis ja Futunasaaret",sv:"Wallis- och Futunaöarna",telephoneCountryCode:"681"},EH:{isoCode:"EH",en:"Western Sahara",fi:"Länsi-Sahara",sv:"Västsahara",telephoneCountryCode:"212"},YE:{isoCode:"YE",en:"Yemen",fi:"Jemen",sv:"Jemen",telephoneCountryCode:"967"},ZM:{isoCode:"ZM",en:"Zambia",fi:"Sambia",sv:"Zambia",telephoneCountryCode:"260"},ZW:{isoCode:"ZW",en:"Zimbabwe",fi:"Zimbabwe",sv:"Zimbabwe",telephoneCountryCode:"263"},AX:{isoCode:"AX",en:"Åland Islands",fi:"Ahvenanmaa",sv:"Åland",telephoneCountryCode:"358"},BQ:{isoCode:"BQ",en:"Bonaire, Sint Eustatius and Saba",fi:"Bonaire, Sint Eustatius ja Saba",sv:"Bonaire, Saint Eustatius och Saba",telephoneCountryCode:"599"},CW:{isoCode:"CW",en:"Curaçao",fi:"Curaçao",sv:"Curacao",telephoneCountryCode:"599"},GG:{isoCode:"GG",en:"Guernsey",fi:"Guernsey",sv:"Guernsey",telephoneCountryCode:"44"},IM:{isoCode:"IM",en:"Isle of Man",fi:"Mansaari",sv:"Isle of Man",telephoneCountryCode:"44"},JE:{isoCode:"JE",en:"Jersey",fi:"Jersey",sv:"Jersey",telephoneCountryCode:"44"},ME:{isoCode:"ME",en:"Montenegro",fi:"Montenegro",sv:"Montenegro",telephoneCountryCode:"382"},BL:{isoCode:"BL",en:"Saint Barthélemy",fi:"Saint-Barthélemy",sv:"Saint-Barthélemy",telephoneCountryCode:"590"},MF:{isoCode:"MF",en:"Saint Martin (French part)",fi:"Saint-Martin",sv:"Saint Martin (franska delen)",telephoneCountryCode:"590"},RS:{isoCode:"RS",en:"Serbia",fi:"Serbia",sv:"Serbien",telephoneCountryCode:"381"},SX:{isoCode:"SX",en:"Sint Maarten (Dutch part)",fi:"Sint Maarten",sv:"Sint Maarten (nederländska delen)",telephoneCountryCode:"1"},SS:{isoCode:"SS",en:"South Sudan",fi:"Etelä-Sudan",sv:"Sydsudan",telephoneCountryCode:"211"},XK:{isoCode:"XK",en:"Kosovo",fi:"Kosovo",sv:"Kosovo",telephoneCountryCode:"383"}};var primaryCountriesForSharedCountryCodes={1:"US",7:"RU",39:"IT",44:"GB",47:"NO",61:"AU",212:"MA",262:"RE",358:"FI",590:"GP",599:"CW"};var duetPhoneInputCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}span.flag-container{display:flex;align-items:center;justify-content:center;width:30px;height:30px}";var DuetPhoneInputStyle0=duetPhoneInputCss;var DuetPhoneInput=function(){function e(e){var o=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetInput=createEvent(this,"duetInput",3);this.duetBlur=createEvent(this,"duetBlur",7);this.duetFocus=createEvent(this,"duetFocus",7);this.countriesToList=Object.values(countries).filter((function(e){return!!e.telephoneCountryCode}));this.countryFlagCDNUrl="https://cdn.duetds.com/api/assets/country-flags/";this.inputId=createID("DuetInput");this.setListFirstCountries=function(){var e=(typeof o.listFirst==="string"?o.listFirst.split(","):o.listFirst).map((function(e){return e.trim().toUpperCase()}));var n=Object.values(countries).filter((function(o){return e.includes(o.isoCode)}));var i=o.countriesToList.filter((function(o){return!e.includes(o.isoCode)}));i.sort((function(e,n){return e[o.language]>n[o.language]?1:-1}));o.countriesToList=__spreadArray(__spreadArray([],n,true),i,true)};this.handleFocus=function(){};this.handleChange=function(){};this.handleBlur=function(){};this.handleInput=function(){var e,n;var i=(e=o.duetInputElement.value)===null||e===void 0?void 0:e.trim();var a=o.currentCountry!=="error"&&((n=o.currentCountry)===null||n===void 0?void 0:n.telephoneCountryCode)||"";var t=o.findCountryCode(i)||"";if(!i){o.currentCountry=undefined;return}if(a===t){return}if(t){o.currentCountry=o.findCountryForCode(t);return}if(a!=="error"){o.currentCountry="error"}return};this.handleCountryCodeSelectorOpen=function(){o.countryCodePopup.controller=o.countryCodeButton;o.countryCodePopup.show()};this.handleCountryCodeSelectorSelect=function(e){var n=e.target.closest("duet-popup-menu-item");var i=countries[n.value];o.currentCountry=i;o.countryCodePopup.hide();o.setInputCountryCode()};this.language=getLanguage();this.currentCountry=undefined;this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleDescribedBy=undefined;this.disabled=false;this.required=false;this.labelDefaults={fi:"Puhelinnumero",en:"Phone number",sv:"Telefonnummer"};this.label=getLocaleString(this.labelDefaults,this.language);this.labelHidden=false;this.name=undefined;this.error="";this.tooltip="";this.listFirst=["FI","SE"]}Object.defineProperty(e.prototype,"countries",{get:function(){return this.countriesToList},set:function(e){var o=e;var n="";var i=function(e){var o=["en","fi","sv","isoCode","telephoneCountryCode"];return o.every((function(o){return Object.keys(e).includes(o)}))&&/^[A-Z]{2}$/.test(e["isoCode"])&&/^[1-9][0-9]{0,2}$/.test(e["telephoneCountryCode"])};if(typeof e==="string"){o=JSON.parse(e)}if(Array.isArray(o)){if(o.every((function(e){return typeof e==="string"}))){this.countriesToList=Object.values(countries).filter((function(e){return o.includes(e.isoCode)&&!!e.telephoneCountryCode}))}else if(o.every((function(e){return i(e)}))){this.countriesToList=o}else{n="Invalid array provided for countries in Phone Input"}}else{n="Country list for Phone Input must be an array"}if(n){console.error(n);this.countriesToList=Object.values(countries).filter((function(e){return!!e.telephoneCountryCode}))}this.setListFirstCountries()},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"value",{get:function(){var e;return(e=this.duetInputElement.value)===null||e===void 0?void 0:e.replace(/\s/g,"")},set:function(e){this._value=e},enumerable:false,configurable:true});e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true);this.setListFirstCountries()};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"label",defaults:"labelDefaults"});subscribeTabbingChange(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);unsubscribeTabbingChange(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){this.duetInputElement.setFocus(e);return[2]}))}))};e.prototype.setInputCountryCode=function(){if(this.currentCountry==="error"){return}var e="+".concat(this.currentCountry.telephoneCountryCode," ");var o=this.duetInputElement.value;if(!(o===null||o===void 0?void 0:o.trim().startsWith("+"))){this.duetInputElement.value="".concat(e).concat((o===null||o===void 0?void 0:o.trimStart())||"");return}var n=this.findCountryCode(o);console.log("Old code",n);if(n){this.duetInputElement.value=o.replace("+".concat(n),e).replace(" "," ");return}this.duetInputElement.value=o.replace("+",e)};e.prototype.findCountryCode=function(e){var o=e.trim();if(!o.startsWith("+")){return undefined}var n=Object.values(countries).find((function(e){return o.startsWith("+".concat(e.telephoneCountryCode))}));return n===null||n===void 0?void 0:n.telephoneCountryCode};e.prototype.findCountryForCode=function(e){var o=primaryCountriesForSharedCountryCodes[e]||"";return o?countries[o]:Object.values(countries).find((function(o){return o.telephoneCountryCode===e}))};e.prototype.renderFlag=function(e,o){if(o===void 0){o=false}var n={height:o?"34px":"24px",width:o?"27px":"24px","margin-right":o?"0":"10px","object-fit":"contain","object-position":"center",filter:"drop-shadow(0 0 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 2px 6px rgba(0, 41, 77, 0.1))"};return h("img",{src:"".concat(this.countryFlagCDNUrl).concat(e,".svg"),"aria-hidden":"true",style:n,loading:"lazy"})};e.prototype.getFlagForButton=function(){if(!this.currentCountry||this.currentCountry==="error"){return h("duet-icon",{name:!this.currentCountry?"form-country":"messaging-alert",margin:"none"})}return this.renderFlag(this.currentCountry.isoCode,true)};e.prototype.render=function(){var e=this;var o=(typeof this.listFirst==="string"?this.listFirst.split(","):this.listFirst).map((function(e){return e.trim().toUpperCase()})).pop();var n=this.identifier||this.inputId;return h(Host,{class:{"duet-theme-turva":this.theme==="turva","duet-expand":this.expand,"duet-m-0":this.margin==="none"}},h("div",{class:"duet-phone-input-container"},h("duet-popup-menu",{ref:function(o){return e.countryCodePopup=o},scrollLimit:10,showFilterInput:true},this.countriesToList.map((function(n){return n.isoCode===o?h(Fragment,null,h("duet-popup-menu-item",{value:n.isoCode,onClick:e.handleCountryCodeSelectorSelect},h("duet-grid",{alignment:"center"},e.renderFlag(n.isoCode),h("span",null,n[e.language]," (+",n.telephoneCountryCode,")"))),h("duet-spacer",{size:"x-small"}),h("duet-divider",{margin:"small"})):h("duet-popup-menu-item",{value:n.isoCode,onClick:e.handleCountryCodeSelectorSelect},h("duet-grid",{alignment:"center"},e.renderFlag(n.isoCode),h("span",null,n[e.language]," (+",n.telephoneCountryCode,")")))}))),h("duet-input",{ref:function(o){return e.duetInputElement=o},onDuetChange:this.handleChange,onDuetFocus:this.handleFocus,onDuetBlur:this.handleBlur,onDuetInput:this.handleInput,label:this.label,value:this._value,error:this.error,name:this.name,component:"phone",variation:"button-left",type:"tel",disallowPattern:"[^\\+0-9 ]",required:this.required,disabled:this.disabled,labelHidden:this.labelHidden,tooltip:this.tooltip,identifier:n,theme:this.theme,margin:"none",expand:true},h("duet-button",{ref:function(o){return e.countryCodeButton=o},slot:"button-left",variation:"input-button-left-secondary",margin:"none",fixed:true,icon:"action-arrow-down-small",iconSize:"small",iconRight:true,onClick:this.handleCountryCodeSelectorOpen},h("span",{class:"flag-container"},this.getFlagForButton())),h("slot",{name:"tooltip"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPhoneInput.style=DuetPhoneInputStyle0;export{DuetPhoneInput as duet_phone_input};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n["throw"](e))}catch(e){o(e)}}function u(e){e.done?i(e.value):r(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return u([e,t])}}function u(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=o=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
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-1a6cee61.js";import{I as spaceXSmall}from"./tokens.module-2d02f5ff.js";import{o as offset,f as flip,s as shift,c as computePosition,b as autoUpdate}from"./floating-ui.dom.esm-ebc91b33.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as focusElement}from"./focus-utils-7bc146cd.js";import{c as isArrowDownKey,f as isEscapeKey,b as isArrowUpKey,o as isTabKey}from"./keyboard-utils-daf80d44.js";import{a as getLanguage}from"./language-utils-8a9d5323.js";import{T as Teleport}from"./teleport-546f382d.js";import{a as actionNewWindowSmall}from"./action-new-window-small-1945be91.js";import"./string-utils-192eb3c8.js";var duetPopupMenuCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-popup-menu-list{position:absolute;top:0;left:0;z-index:950;width:max-content;min-width:175px;padding:8px;margin:0;color:rgb(8, 42, 77);list-style:none;visibility:hidden !important;background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:transform 300ms ease, visibility 300ms ease, opacity 300ms ease;transform:scaleY(0);transform-origin:top center}.duet-popup-menu-list.open{visibility:visible !important;opacity:1;transform:scaleY(1)}.duet-popup-menu-list.fixed{position:fixed}.duet-popup-menu-list.scroll-visible{overflow-y:scroll;scroll-margin:20px}.duet-popup-menu-list.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255)}::slotted(duet-notification){max-width:360px}";var DuetPopupMenuStyle0=duetPopupMenuCss;var DuetPopupMenu=function(){function e(e){var t=this;registerInstance(this,e);this.duetToggle=createEvent(this,"duetToggle",7);this.filterLabel={en:"Filter menu",fi:"Suodata valikkoa",sv:"Filtrera meny"};this.setOpenButton=function(e){if(!e){return}try{var i=e;i.accessiblePopup="true";i.accessibleExpanded=false;if(t.controllerIcon){i.setAttribute("trailing-icon","action-arrow-down-small")}t.openButton=i}catch(e){}};this.openButtonEventListener=function(){t.toggle()};this.updatePlacement=function(){return __awaiter(t,void 0,void 0,(function(){var e,t;return __generator(this,(function(i){switch(i.label){case 0:if(!this.openButton){return[2]}e=[offset({mainAxis:this.mainAxisOffset,crossAxis:this.crossAxisOffset}),this.allowVerticalFlip&&flip(),shift({padding:5})].filter(Boolean);return[4,computePosition(this.openButton,this.menuElement,{middleware:e,placement:this.placement,strategy:this.position})];case 1:t=i.sent();this.menuY=t.y;this.menuX=t.x;return[2]}}))}))};this.getNonFilteredItems=function(){return t.showFilterInput?t.itemElements.filter((function(e){return e.style.display!=="none"})):t.itemElements};this.filterItems=function(){var e;var i=(e=t.filterInput.value)===null||e===void 0?void 0:e.toLocaleLowerCase();var n=t.itemElements;n.forEach((function(e){e.style.display=!i||e.textContent.toLowerCase().includes(i)||e.value.toLowerCase().includes(i)?"":"none"}))};this.handleKeyDownOnFilter=function(e){var i;if(isArrowDownKey(e)){(i=t.getNonFilteredItems()[0])===null||i===void 0?void 0:i.setFocus()}};this.open=false;this.menuY=undefined;this.menuX=undefined;this.language=getLanguage();this.accessibleLabel=undefined;this.accessibleRole="menu";this.theme="";this.skipTeleport=undefined;this.placement="bottom-start";this.forcePlacement=false;this.allowVerticalFlip=true;this.position="absolute";this.mainAxisOffset=0;this.crossAxisOffset=0;this.controllerIcon="action-arrow-down-small";this.scrollLimit=undefined;this.showFilterInput=undefined}Object.defineProperty(e.prototype,"controller",{get:function(){return this._controller},set:function(e){if(this._controller===e){return}this._controller=e;if(typeof e==="string"){this.setOpenButton(document.getElementById(e));if(this.openButton){this.openButton.addEventListener("click",this.openButtonEventListener)}}else{this.setOpenButton(e)}},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"opener",{get:function(){return this._controller},set:function(e){this.controller=e},enumerable:false,configurable:true});e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.componentDidLoad=function(){{this.updatePlacement()}};e.prototype.connectedCallback=function(){if(!this.teleport){this.teleport=new Teleport(this.element)}if(this.teleport){this.teleport.activate()}};e.prototype.disconnectedCallback=function(){if(this.autoUpdateCleanup){this.autoUpdateCleanup()}if(this.openButton){this.openButton.removeEventListener("click",this.openButtonEventListener);if(this.controllerIcon){this.openButton.removeAttribute("trailing-icon")}}};e.prototype.handleKeyUp=function(e){if(this.open){if(isEscapeKey(e)){this.hide()}}};e.prototype.handleKeyDown=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,i;return __generator(this,(function(n){switch(n.label){case 0:t=this.getNonFilteredItems();if(!this.open)return[3,5];if(!isArrowDownKey(e))return[3,2];e.preventDefault();return[4,this.getFocusedItemIndex()];case 1:i=n.sent();if(i!==-1){if(i<t.length-1){t[i+1].setFocus()}else{t[0].setFocus()}}n.label=2;case 2:if(!isArrowUpKey(e))return[3,4];e.preventDefault();return[4,this.getFocusedItemIndex()];case 3:i=n.sent();if(i!==-1){if(i===0){if(this.showFilterInput){this.filterInput.setFocus()}else{t[t.length-1].setFocus()}}else{t[i-1].setFocus()}}n.label=4;case 4:if(isTabKey(e)&&this.accessibleRole==="menu"){e.preventDefault();this.hide()}n.label=5;case 5:return[2]}}))}))};e.prototype.handleClick=function(e){var t=this;var i=e.composedPath().every((function(e){return e!==t.element&&e!==t.openButton}));if(this.open&&i){this.hide()}};e.prototype.isOpen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.open]}))}))};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.autoUpdateCleanup){this.autoUpdateCleanup()}this.open=false;return[2]}))}))};e.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.open){this.hide()}else{this.show()}return[2]}))}))};e.prototype.handleOpenChange=function(e,t){var i=this;if(!!e===!!t){return}if(this.open&&!t){if(this.openButton){this.openButton.accessibleExpanded=true}if(this.accessibleRole!=="listbox"){this.teleport.makeSiblingsInert()}this.updatePlacement();if(this.menuElement&&this.openButton){this.autoUpdateCleanup=autoUpdate(this.openButton,this.menuElement,this.updatePlacement)}if(this.showFilterInput){this.filterInput.value="";this.filterItems()}setTimeout((function(){if(i.accessibleRole==="menu"){i.itemElements[0].setFocus()}i.duetToggle.emit({open:i.open,component:"duet-popup-menu"})}),200)}else if(!this.open&&t){if(this.openButton){this.openButton.accessibleExpanded=false}if(this.autoUpdateCleanup){this.autoUpdateCleanup()}setTimeout((function(){if(i.accessibleRole==="menu"){focusElement(i.openButton)}i.duetToggle.emit({open:i.open,component:"duet-popup-menu"});if(i.accessibleRole!=="listbox"){i.teleport.removeInertFromSiblings()}}),200)}};Object.defineProperty(e.prototype,"itemElements",{get:function(){return Array.from(this.element.querySelectorAll(":scope duet-popup-menu-item"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"popupMenuStyleHeight",{get:function(){var e=":scope duet-popup-menu-item, :scope duet-notification";var t=Array.from(this.element.querySelectorAll(e));if(t.length>0&&this.scrollLimit){var i=Number(spaceXSmall.replace("px",""))*2;return"".concat(t[0].offsetHeight*this.scrollLimit+i,"px")}else{return"auto"}},enumerable:false,configurable:true});e.prototype.getFocusedItemIndex=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(i){switch(i.label){case 0:e=this.getNonFilteredItems();t=0;i.label=1;case 1:if(!(t<e.length))return[3,4];return[4,e[t].isFocused()];case 2:if(i.sent()){return[2,t]}i.label=3;case 3:t++;return[3,1];case 4:return[2,-1]}}))}))};e.prototype.render=function(){var e=this;var t={top:"".concat(this.menuY,"px"),left:"".concat(this.menuX,"px"),position:this.position,overflowY:"auto",height:this.popupMenuStyleHeight};return h(Host,{key:"d44b11810713e51b35f01a1e527de4e8fbb20a94"},h("div",{key:"ef92e91fadf1fffee766178607e5cc6835295a56",ref:function(t){e.menuElement=t},style:t,class:{open:this.open,"duet-popup-menu-list":true,"duet-theme-turva":this.theme==="turva","scroll-visible":this.scrollLimit<this.itemElements.length},role:this.accessibleRole,"aria-label":this.accessibleLabel},this.showFilterInput&&h("div",{key:"6c81b3737473a220d8e3f0f00a2dc8fbaeadcc5d"},h("duet-input",{key:"8667feda1fb7b281082220a6c770847ecec7b03f",ref:function(t){return e.filterInput=t},label:this.filterLabel[this.language],"label-hidden":true,expand:true,margin:"none",type:"search",onDuetInput:this.filterItems,onKeyDown:this.handleKeyDownOnFilter}),h("duet-spacer",{key:"27190fdb00333f8f4ffd28cc6d2be99a7eb74355",size:"xx-small"})),h("slot",{key:"08e56b30c4235a91e15d9e60a667ed351f9dc7a1"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["handleOpenChange"]}},enumerable:false,configurable:true});return e}();DuetPopupMenu.style=DuetPopupMenuStyle0;var duetPopupMenuItemCss='*,*::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:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start}.duet-popup-menu-item{display:flex;flex-grow:1;gap:12px;align-items:center;height:100%;padding:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-popup-menu-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-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-popup-menu-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-popup-menu-item.active{background:rgb(240, 247, 250)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(245, 247, 250)}.duet-popup-menu-item:hover{background:rgb(228, 241, 247)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(222, 224, 228)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}.duet-popup-menu-item .duet-popup-menu-item-trailing{padding-left:20px}.active-descendant{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .active-descendant,.active-descendant.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var DuetPopupMenuItemStyle0=duetPopupMenuItemCss;var DuetPopupMenuItem=function(){function e(e){var t=this;registerInstance(this,e);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.onFocus=function(e){t.focus=true;t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-popup-menu-item"})};this.onBlur=function(e){t.focus=false;t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-popup-menu-item"})};this.focus=false;this.accessibleLabel=undefined;this.accessibleRole="menuitem";this.theme="";this.url=undefined;this.external=false;this.targetLanguage=undefined;this.value=undefined;this.leadingIcon=undefined;this.leadingIconColor=undefined;this.trailingIcon=undefined;this.trailingText=undefined;this.active=false;this.activeDescendant=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};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.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.isFocused=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.focus]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";var i={"duet-popup-menu-item":true,active:this.active,"duet-theme-turva":this.theme==="turva","active-descendant":this.activeDescendant};return h(Host,{key:"a7f1f878bedeaec0d9004d0f459191e517120535",role:this.accessibleRole},h(t,{key:"446558736ab7c3c53c5710c5d34ab10382e7583e",ref:function(t){return e.itemElement=t},tabIndex:this.accessibleRole==="listitem"?0:-1,onFocus:this.onFocus,onBlur:this.onBlur,role:"".concat(t==="a"?"link":"button"),"aria-label":this.accessibleLabel,class:i,value:this.value,href:this.url,target:this.external?"_blank":undefined,rel:this.external?"noopener":undefined,lang:t==="button"?undefined:this.targetLanguage,hreflang:t==="button"?undefined:this.targetLanguage},this.leadingIcon&&h("duet-icon",{key:"fa381a4a648aedb7f83347a3f6544b74834e56d2",name:this.leadingIcon,size:"x-small",color:this.leadingIconColor?this.leadingIconColor:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),h("span",{key:"9971da5dbe2e6f1943993c5127d72fa9b805c96c",class:"duet-popup-menu-item-label"},h("slot",{key:"c48319658f4f85dc4e052fac934a53dccfa8f6f8"})),(this.trailingIcon||this.active||this.url&&this.external)&&h("duet-icon",{key:"8dc79acb180e7c8f71a2abd13e556fd8cec0a4cf",name:this.url&&this.external?actionNewWindowSmall.title:this.active?"messaging-checked-small":this.trailingIcon,size:this.url&&this.external||this.active?"xx-small":"x-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&h("span",{key:"0d97c88cad0940ac0ac9fb4ddc63b68132b38fc8",class:"duet-popup-menu-item-trailing"},this.trailingText)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPopupMenuItem.style=DuetPopupMenuItemStyle0;export{DuetPopupMenu as duet_popup_menu,DuetPopupMenuItem as duet_popup_menu_item};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-1a6cee61.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-8a9d5323.js";import"./string-utils-192eb3c8.js";var duetProgressCss="*,*::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:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(240, 247, 250);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(255, 241, 241)}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-progress .progress-bar>span{background-color:rgb(198, 12, 48)}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);border:0 none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(240, 247, 250);border-radius:0}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(240, 247, 250)}.duet-progress.duet-theme-turva progress[value]{color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-bar{background-color:rgb(255, 241, 241)}.duet-progress.duet-theme-turva progress[value]::-webkit-progress-value{background-color:rgb(198, 12, 48)}.duet-progress.duet-theme-turva progress[value] ::-moz-progress-bar{background-color:rgb(255, 241, 241)}";var DuetProgressStyle0=duetProgressCss;var DuetProgress=function(){function e(e){registerInstance(this,e);this.progressId=createID("DuetProgress");this.progressLabelId=createID("DuetProgressLabel");this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabel=undefined;this.accessibleLabelUploadDefaults={fi:["lähetys valmis","lähetys käynnissä"],sv:["Uppladdningen är klar","Uppladdning pågår"],en:["upload completed","upload in progress"]};this.accessibleLabelUpload=getLocaleString(this.accessibleLabelUploadDefaults);this.progress=0;this.caption=undefined;this.height="10px";this.theme=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelUpload",defaults:"accessibleLabelUploadDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){return h(Host,null,h("div",{"aria-live":this.accessibleLabel?"polite":"off","aria-hidden":this.accessibleLabel?"false":"true","aria-atomic":"true",style:{height:this.height},id:this.progressId,class:{"duet-progress":true,"duet-progress-done":this.progress===100,"duet-progress-start":this.progress===0,"duet-progress-inprogress":this.progress<99&&this.progress!==0,"duet-theme-turva":this.theme==="turva"}},h("duet-visually-hidden",null,h("label",{htmlFor:this.progressLabelId},h("span",null,this.accessibleLabel,this.progress!==0&&", ".concat(this.accessibleLabelUpload[this.progress<99?1:0])))),this.caption&&h("div",{class:"duet-progress-caption"},h("span",null,this.caption)),h("progress",{id:this.progressLabelId,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:"progressbar",value:this.progress,max:"100","aria-valuemin":"0","aria-valuemax":"100"},h("div",{class:"progress-bar"},h("span",{style:{width:"".concat(this.progress,"%;")}},"Progress: ",this.progress,"%")))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetProgress.style=DuetProgressStyle0;export{DuetProgress as duet_progress};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,a,o){function r(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function i(e){try{s(o.next(e))}catch(e){n(e)}}function d(e){try{s(o["throw"](e))}catch(e){n(e)}}function s(e){e.done?a(e.value):r(e.value).then(i,d)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,r,n,i;return i={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function d(e){return function(t){return s([e,t])}}function s(d){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,d[0]&&(a=0)),a)try{if(o=1,r&&(n=d[0]&2?r["return"]:d[0]?r["throw"]||((n=r["return"])&&n.call(r),0):r.next)&&!(n=n.call(r,d[1])).done)return n;if(r=0,n)d=[d[0]&2,n.value];switch(d[0]){case 0:case 1:n=d;break;case 4:a.label++;return{value:d[1],done:false};case 5:a.label++;r=d[1];d=[0];continue;case 7:d=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(d[0]===6||d[0]===2)){a=0;continue}if(d[0]===3&&(!n||d[1]>n[0]&&d[1]<n[3])){a.label=d[1];break}if(d[0]===6&&a.label<n[1]){a.label=n[1];n=d;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(d);break}if(n[2])a.ops.pop();a.trys.pop();continue}d=t.call(e,a)}catch(e){d=[6,e];r=0}finally{o=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
- */import{r as registerInstance,h,H as Host,g as getElement}from"./index-1a6cee61.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{h as hasSlot,c as checkNamedSlotElement}from"./slot-utils-bf214ae5.js";import{g as getColorByName}from"./token-utils-b9ba8c5e.js";import"./tokens.module-2d02f5ff.js";var duetPromoCardCss='*,*::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:block;width:auto}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-promo-card{display:flex;flex-direction:column;width:100%;height:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;color:rgb(8, 42, 77);text-align:left;border-radius:20px}.duet-promo-card.duet-p-0{padding:0 !important}.duet-promo-card.duet-m-0{margin:0 !important}.duet-promo-card .content-wrapper{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}.duet-promo-card .content-wrapper:focus{border-radius:20px;outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-promo-card .image{position:relative;width:100%;overflow:hidden;border-top-left-radius:20px;border-top-right-radius:20px;object-fit:cover}.duet-promo-card .content{display:flex;flex-direction:column;flex-grow:1;gap:8px;padding:20px}@media (min-width: 36em){.duet-promo-card .content{padding:28px}}.duet-promo-card .action{display:flex;flex-grow:1;align-items:flex-end;padding-top:16px}.duet-promo-card.no-bg-color .content{padding:20px 0 0}.duet-promo-card.no-bg-color .image{border-radius:16px}.duet-promo-card.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-promo-card.duet-theme-turva .content-wrapper:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-promo-card-link{transition:box-shadow 300ms ease}.duet-promo-card-link:hover{box-shadow:0 2px 6px 0 rgba(0, 41, 77, 0.07), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(0, 41, 77, 0.1)}.duet-promo-card-link:hover.duet-theme-turva{box-shadow:0 2px 6px 0 rgba(117, 117, 117, 0.13), 0 -1px 0 0 rgba(0, 0, 0, 0.09), -1px 0 0 0 rgba(0, 0, 0, 0.07), 1px 0 0 0 rgba(0, 0, 0, 0.07), 0 1px 0 0 rgba(0, 0, 0, 0.07), 0 2px 10px 0 rgba(117, 117, 117, 0.15)}';var DuetPromoCardStyle0=duetPromoCardCss;var DuetPromoCard=function(){function e(e){registerInstance(this,e);this.theme="";this.margin="auto";this.backgroundColor="";this.textColor="secondary";this.image="";this.headingLevel="h3";this.url=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasPreHeadingSlot=hasSlot(this.element,"pre-heading");this.hasHeadingSlot=hasSlot(this.element,"heading");this.hasDescriptionSlot=hasSlot(this.element,"description");this.hasActionSlot=hasSlot(this.element,"action");checkNamedSlotElement(this.element,"heading","span");checkNamedSlotElement(this.element,"description","span")};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.url&&this.aOrDivElement){this.aOrDivElement.focus(e)}return[2]}))}))};e.prototype.render=function(){var e=this;var t=getColorByName(this.backgroundColor,this.theme);var a={backgroundColor:t?t:"none"};var o=this.url?"a":"div";return h(Host,{key:"99a3a523ca9804792e3d26b2fe2f44cf8788f499",class:{"duet-m-0":this.margin==="none"}},h("aside",{key:"8eb59e651e552f3f868629c95c347a72a0b995d6",class:{"duet-promo-card":true,"duet-theme-turva":this.theme==="turva","no-bg-color":!this.backgroundColor,"duet-promo-card-link":!!this.url},style:a},h(o,{key:"67c66449cd7f9747924020549c6155d62829b4f2",href:this.url,class:"content-wrapper",ref:function(t){return e.aOrDivElement=t}},h("img",{key:"cac126cf7f9a7db193b307363726031b62167336",class:"image",src:this.image,alt:"",role:"presentation"}),h("div",{key:"8071631c045ed93e6bd62c612c9b1d908f3c1787",class:"content"},this.hasPreHeadingSlot&&h("div",{key:"28bc028c6c51578ade7239ee3a97a465d2280b19",class:"pre-heading"},h("slot",{key:"e288ca8c4477fda34700eb895a71a22a131fca2d",name:"pre-heading"})),this.hasHeadingSlot&&h("div",{key:"b914a1a7e943261ef27bc33bb053a0c606f1eada",class:"heading"},h("duet-heading",{key:"3ad22ba8a74eddb6fa6e5c7e181b02b79f8bc9af",theme:this.theme,level:this.headingLevel,"visual-level":"h3",margin:"none",color:this.textColor},h("span",{key:"bd2b4f58517ca81d73a876481e534158c079c19f"},h("slot",{key:"710aee32ab320dc22c4e06b0f2dab01503d56ce4",name:"heading"})))),this.hasDescriptionSlot&&h("div",{key:"0383f84bbf8a31012ab0533f3577811cfc22fb29",class:"description"},h("duet-paragraph",{key:"ddd7e8b4844058575e473783326ac6a08b4ad7f7",theme:this.theme,margin:"none",color:this.textColor},h("span",{key:"d56f8bd9374662a5ae5767ff43d167ebb96e4ba2"},h("slot",{key:"bf26792909ae05d5d466c4d6441f574da8bc8917",name:"description"})))),this.hasActionSlot&&h("div",{key:"fc0ffe648d30b194b1ca946f99e414222e4a31fa",class:"action"},h("slot",{key:"735077add3c5f5b3c97762c5daed1b5e3668d4c2",name:"action"}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPromoCard.style=DuetPromoCardStyle0;export{DuetPromoCard as duet_promo_card};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function r(e){try{d(n.next(e))}catch(e){o(e)}}function s(e){try{d(n["throw"](e))}catch(e){o(e)}}function d(e){e.done?i(e.value):a(e.value).then(r,s)}d((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(e){return function(t){return d([e,t])}}function d(s){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(i=0)),i)try{if(n=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(s[0]===6&&i.label<o[1]){i.label=o[1];o=s;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(s);break}if(o[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];a=0}finally{n=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
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-1a6cee61.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{g as getElementsFromNamedSlot,h as hasSlot,c as checkNamedSlotElement}from"./slot-utils-bf214ae5.js";import{f as findCheckedOption,w as watchForOptions}from"./watch-options-e96ecd92.js";var duetRadioCss='*,*::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:28px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.vertical){margin-right:0 !important}:host(.horizontal){margin-bottom:0 !important;width:auto}:host(.horizontal) .duet-label .duet-label-content{max-width:100%}@media (min-width: 48em){:host(.horizontal-responsive){margin-right:28px !important;margin-bottom:0 !important;width:auto}:host(.horizontal-responsive):last-child,:host(.horizontal-responsive):last-of-type{margin-right:0 !important}:host(.horizontal-responsive) .duet-label .duet-label-content{max-width:100%}}:host(.duet-m-0){margin:0 !important}:host(:last-child:not(:only-child)){margin-right:0 !important;margin-bottom:0 !important}.duet-label{position:relative;z-index:100;display:flex;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;hyphens:auto;line-height:1.5;color:rgb(8, 42, 77);word-break:break-word;overflow-wrap:break-word;cursor:pointer;background:transparent}.duet-theme-turva .duet-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-label .duet-label-content{flex-grow:1;font-size:1rem}.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-radio-container{position:relative;width:100%;height:100%}.duet-label::before{z-index:100;flex-shrink:0;width:20px;height:20px;margin:2px 10px 1px 1px;content:"";background:rgb(255, 255, 255);border:1px solid rgb(8, 42, 77);border-radius:50%}.duet-theme-turva .duet-label::before{border-color:rgb(23, 28, 58)}.duet-label.focus::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-label.focus::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-label.checked::after{position:absolute;top:6px;left:5px;z-index:200;flex-shrink:0;width:12px;height:12px;content:"";background:rgb(0, 119, 179);border-radius:50%}.duet-theme-turva .duet-label.checked::after{background:rgb(23, 28, 58)}.duet-label.disabled{color:rgb(98, 121, 138)}.duet-theme-turva .duet-label.disabled{color:rgb(143, 147, 158)}.duet-label.disabled::before{border-color:rgb(181, 198, 208)}.duet-theme-turva .duet-label.disabled::before{border-color:rgb(143, 147, 158)}.duet-label.disabled.checked::before{border:1px solid rgb(127, 150, 165)}.duet-label.disabled.checked::after{background:rgb(127, 150, 165)}.duet-theme-turva .duet-label.disabled.checked::after{background:rgb(143, 147, 158);border-color:rgb(143, 147, 158)}*::slotted([slot=input]){padding:14px !important;position:absolute;top:0;left:0;z-index:200;width:100%;height:100%;cursor:pointer;opacity:0}*::slotted([slot=input][disabled]){cursor:default}';var DuetRadioStyle0=duetRadioCss;var DuetRadio=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",7);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.radioId=createID("DuetRadio");this.radioInputListenersRemove=function(e){e.removeEventListener("change",t.onChange);e.removeEventListener("focus",t.onFocus);e.removeEventListener("blur",t.onBlur)};this.radioInputListenersAdd=function(e){e.addEventListener("change",t.onChange);e.addEventListener("focus",t.onFocus);e.addEventListener("blur",t.onBlur)};this.radioInputSetUp=function(){var e=t.element.querySelector("input[slot=input]");var i=e||document.createElement("input");i.slot="input";i.disabled=t.disabled||t.groupDisabled?true:undefined;i.id=t.identifier||t.radioId;i.type="radio";i.name=t.name;i.value=t.value;i.checked=t.checked;if(t.accessibleIndex){i.tabIndex=Number(t.accessibleIndex)}i.required=t.required;i.role=t.role;if(t.accessibleControls){i.setAttribute("aria-controls",t.accessibleControls)}if(t.accessibleActiveDescendant){i.setAttribute("aria-activedescendant",t.accessibleActiveDescendant)}if(t.accessibleOwns){i.setAttribute("aria-owns",t.accessibleOwns)}if(t.accessibleDescribedBy){i.setAttribute("aria-describedby",t.accessibleDescribedBy)}if(t.accessibleLabelledBy){i.setAttribute("aria-labelledby",t.accessibleLabelledBy)}if(t.accessibleDetails){i.setAttribute("aria-details",t.accessibleDetails)}if(t.accessibleDescription){i.setAttribute("aria-description",t.accessibleDescription)}if(t.hasLabel){var n=getElementsFromNamedSlot(t.element,"label");i.ariaLabel=n.length>0?n[0].textContent:t.labelElement.textContent}else{i.ariaLabel=t.labelElement.textContent}if(e){t.radioInputListenersRemove(i)}else{t.element.appendChild(i)}t.radioInputListenersAdd(i);t.focusableElement=i};this.onClick=function(e){e.stopPropagation()};this.onChange=function(e){var i=t.focusableElement;var n=i.checked;t.checked=n;if(t.checked&&!t.blockEvents){t.duetChange.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-radio"})}};this.onBlur=function(e){t.focus=false;t.duetBlur.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-radio"})};this.onFocus=function(e){t.focus=true;t.duetFocus.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-radio"})};this.focus=false;this.accessibleActiveDescendant=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleIndex=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.theme="";this.disabled=false;this.required=false;this.blockEvents=false;this.identifier=undefined;this.label="label";this.name=undefined;this.role=undefined;this.groupDisabled=undefined;this.groupDirection=undefined;this.groupResponsive=undefined;this.checked=undefined;this.value=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasLabel=hasSlot(this.element,"label");if(this.value===undefined){this.value=this.identifier}};e.prototype.componentDidRender=function(){this.radioInputSetUp()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.focusableElement.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return h(Host,{key:"71feb70b911cc0fba0477c38c4c78027fabb993a",onClick:this.onClick,class:{horizontal:this.groupDirection==="horizontal"&&!this.groupResponsive,"horizontal-responsive":this.groupDirection==="horizontal"&&this.groupResponsive,"duet-m-0":this.margin==="none"}},h("div",{key:"26f49063c919e1f8b1985bb2cd00edccec3629e4",class:{"duet-radio-container":true,"duet-theme-turva":this.theme==="turva"}},h("slot",{key:"0188449e087a008b708a81d62230b656f4396191",name:"input"}),h("label",{key:"517939dfd2bc7e479da99c060f25c54bf01fa74a",inert:true,ref:function(t){return e.labelElement=t},class:{"duet-label":true,checked:this.checked,focus:this.focus,disabled:this.disabled||this.groupDisabled}},h("div",{key:"483eac94eeac2d2b5e0fc62672d6605253cf982b",class:"duet-label-content"},this.hasLabel?h("slot",{name:"label"}):this.label))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetRadio.style=DuetRadioStyle0;var duetRadioGroupCss="*,*::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%}:host(.horizontal) .duet-radio-group{display:block}@media (min-width: 48em){:host(.horizontal) .duet-radio-group{display:flex}}:host(.horizontal) .duet-radio-group.duet-no-stacking{display:flex}.deut-radio-group{width:100%}";var DuetRadioGroupStyle0=duetRadioGroupCss;var DuetRadioGroup=function(){function e(e){var t=this;registerInstance(this,e);this.onSelect=function(e){var i=e.target;if(i){t.value=i.value}e.cancelBubble=true};this.direction="vertical";this.margin="auto";this.theme="";this.error="";this.tooltip="";this.tooltipDirection="auto";this.name=undefined;this.label="Label";this.labelHidden=false;this.caption="";this.responsive=false;this.value=undefined;this.disabled=undefined;this.required=false;this.accessibleLiveError="polite"}e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var i=this;return __generator(this,(function(n){switch(n.label){case 0:e=this.element;if(!(this.value===undefined))return[3,2];t=findCheckedOption(e,"duet-radio");if(!(t!==undefined))return[3,2];return[4,t.componentOnReady()];case 1:n.sent();if(this.value===undefined){this.value=t.value}n.label=2;case 2:this.mutationO=watchForOptions(e,"duet-radio",(function(e){if(e!==undefined){e.componentOnReady().then((function(){i.value=e.value}))}else{i.updateRadios()}}));this.updateRadios();return[2]}}))}))};e.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true)};e.prototype.updateRadios=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,a,o;return __generator(this,(function(r){e=Array.from(this.element.querySelectorAll("duet-radio"));t=this.value;i=false;for(n=0,a=e;n<a.length;n++){o=a[n];o.name=this.name;o.required=this.required;o.groupDisabled=this.disabled;o.groupDirection=this.direction;o.groupResponsive=this.responsive;if(!i&&o.value===t){i=true;o.checked=true}else{o.checked=false}}if(!i){this.value=undefined}return[2]}))}))};e.prototype.render=function(){return h(Host,{key:"f3c3b14c2b0d936385748b6cfb3c09a0fde813ff",onDuetChange:this.onSelect,class:{horizontal:this.direction==="horizontal"}},h("duet-fieldset",{key:"dc64cd942714993dc800b15e44055402b833ac63",label:this.label,labelHidden:this.labelHidden,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme,"accessible-live-error":this.accessibleLiveError},this.tooltip&&h("duet-tooltip",{key:"c4e8b11b406cf10c2d2bec5f31bf04d972a02a05",slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),h("slot",{key:"c3ea1e7fe615d332469195adcd29807d5a71e16c",name:"tooltip"}),h("div",{key:"196baf0e73047d0bff685702fdf92a783563b5ec",class:{"duet-radio-group":true,"duet-no-stacking":!this.responsive}},h("slot",{key:"52e895a33bda7b26e7b95e28219ce7466ab5234a"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:["updateRadios"],value:["updateRadios"],disabled:["updateRadios"],direction:["updateRadios"],responsive:["updateRadios"]}},enumerable:false,configurable:true});return e}();DuetRadioGroup.style=DuetRadioGroupStyle0;export{DuetRadio as duet_radio,DuetRadioGroup as duet_radio_group};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,r,a){function n(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function o(e){try{u(a.next(e))}catch(e){i(e)}}function s(e){try{u(a["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):n(e.value).then(o,s)}u((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(s){if(a)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(r=0)),r)try{if(a=1,n&&(i=s[0]&2?n["return"]:s[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;if(n=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;n=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];n=0}finally{a=i=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
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-1a6cee61.js";import{i as colorPrimaryTurva,j as colorGrayTurva,k as colorPrimary,l as colorGray}from"./tokens.module-2d02f5ff.js";import{D as DuetInternalLabel}from"./label-de5c8cbd.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{i as isInternetExplorer}from"./is-internet-explorer-2c48f686.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-daf80d44.js";import{p as proxyInputToSlot}from"./slot-utils-bf214ae5.js";var duetRangeSliderCss='.duet-internal-label{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:12px !important;position:relative;z-index:100;display:inline-flex;width:auto;margin-top:8px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600 !important;line-height:1.25;line-height:1.25;color:rgb(8, 42, 77);text-align:left;word-break:break-word;cursor:default}.duet-internal-label.duet-p-0{padding:0 !important}.duet-internal-label.duet-m-0{margin:0 !important}.duet-internal-label span{font-size:1rem;font-weight:600 !important;word-break:break-word}.duet-internal-label.duet-m-0{margin-bottom:0 !important}.duet-internal-label.duet-small-margin{margin-top:8px !important;margin-bottom:4px !important}.duet-internal-label.duet-has-tooltip{padding-right:48px}@media (min-width: 48em){.duet-internal-label.duet-has-tooltip{padding-right:0}}.duet-internal-label.duet-internal-label-small{font-size:0.875rem}.duet-internal-label.duet-internal-label-small span{font-size:0.875rem}.duet-internal-label.duet-weight-normal{font-weight:400 !important}.duet-internal-label.duet-weight-normal span{font-weight:400 !important}.duet-internal-label.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;text-align:left;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-range-container{position:relative;width:100%}.duet-output{position:absolute;top:12px;right:0;z-index:200;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);background:rgb(255, 255, 255)}.duet-theme-turva .duet-output{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-range-disabled .duet-output{color:rgb(127, 150, 165)}.duet-range-disabled.duet-theme-turva .duet-output{color:rgb(143, 147, 158)}.duet-range{position:relative;z-index:100;width:100%;height:4px;background:rgb(181, 198, 208);border-radius:4px}.duet-theme-turva .duet-range{background:rgb(199, 202, 207)}.duet-ie .duet-range{display:block;width:auto;height:26px;background:transparent !important}.duet-range::-moz-range-track{height:1px;background:transparent !important;border:0;-moz-appearance:none}.duet-range::-ms-track{color:transparent;background:transparent;border:0}.duet-range:focus,.duet-range:active{outline:0}:host(.user-is-tabbing) .duet-range:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px rgba(0, 119, 179, 0.75)}:host(.user-is-tabbing) .duet-theme-turva .duet-range:focus{box-shadow:0 0 0 1px #fff, 0 0 0 3px rgba(23, 28, 58, 0.75)}.duet-range::-webkit-slider-runnable-track{background:transparent}.duet-range::-webkit-slider-thumb{position:relative;width:24px;height:24px;cursor:-webkit-grab;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%;transition:box-shadow 300ms ease;-webkit-appearance:none}.duet-theme-turva .duet-range::-webkit-slider-thumb{border-color:rgb(143, 147, 158)}.duet-range:active::-webkit-slider-thumb{cursor:-webkit-grabbing}.duet-range::-moz-range-thumb{position:relative;width:24px;height:24px;cursor:-moz-grab;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%;appearance:none}.duet-theme-turva .duet-range::-moz-range-thumb{border-color:rgb(143, 147, 158)}.duet-range:active::-moz-range-thumb{cursor:-moz-grabbing}.duet-range::-ms-thumb{position:relative;width:24px;height:24px;overflow:visible;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:50%}.duet-theme-turva .duet-range::-ms-thumb{border-color:rgb(143, 147, 158)}.duet-range:disabled{background:rgb(181, 198, 208) !important}.duet-theme-turva .duet-range:disabled{background:rgb(199, 202, 207) !important}.duet-range:disabled::-webkit-slider-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-theme-turva .duet-range:disabled::-webkit-slider-thumb{background:rgb(199, 202, 207);border-color:transparent}.duet-range:disabled::-moz-range-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-theme-turva .duet-range:disabled::-moz-range-thumb{background:rgb(199, 202, 207);border-color:transparent}.duet-range:disabled::-ms-thumb{cursor:default;background:rgb(181, 198, 208);border-color:transparent}.duet-theme-turva .duet-range:disabled::-ms-thumb{background:rgb(199, 202, 207);border-color:transparent}.duet-range::-ms-fill-lower{height:4px;background:rgb(0, 119, 179)}.duet-theme-turva .duet-range::-ms-fill-lower{background:rgb(198, 12, 48)}.duet-range::-ms-fill-upper{height:4px;background:rgb(181, 198, 208)}.duet-theme-turva .duet-range::-ms-fill-upper{background:rgb(199, 202, 207)}.duet-label-hidden .duet-internal-label,.duet-label-hidden output{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var DuetRangeSliderStyle0=duetRangeSliderCss;var colors={turva:{active:colorPrimaryTurva,inactive:colorGrayTurva},default:{active:colorPrimary,inactive:colorGray}};var DuetRangeSlider=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetInput=createEvent(this,"duetInput",7);this.rangeId=createID("DuetRange");this.proxyId=createID("DuetRange");this.onInput=function(e){var r=e.target;if(r){t.value=parseFloat(r.value)||0}t.duetInput.emit({originalEvent:e,value:t.value,component:"duet-range-slider"})};this.onChange=function(e){var r=e.target;if(r){t.value=parseFloat(r.value)||0}clearTimeout(t.timeoutId);t.timeoutId=setTimeout((function(){t.duetChange.emit({originalEvent:e,value:t.value,component:"duet-range-slider"})}),t.debounce)};this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.name=undefined;this.required=false;this.disabled=false;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.min=0;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.labelHidden=false;this.unit="";this.max=100;this.step=1;this.locale="fi-FI";this.value=0;this.debounce=0}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){subscribeTabbingChange(this)};e.prototype.disconnectedCallback=function(){unsubscribeTabbingChange(this)};e.prototype.componentDidRender=function(){proxyInputToSlot(this.element,this.proxyId,this.name,this.value,this.required)};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.calculatePercentage=function(){return(this.value-this.min)/(this.max-this.min)*100};e.prototype.render=function(){var e=this;var t=this.identifier||this.rangeId;var r=this.theme==="turva"?"turva":"default";var a=colors[r],n=a.inactive,i=a.active;var o=this.calculatePercentage();var s={background:"-webkit-linear-gradient(left,".concat(i," 0%,").concat(i," ").concat(o,"%,").concat(n," ").concat(o,"%)")};return h(Host,{key:"a5b73233046d9c726d46880676d3518abf0e9d03",class:{"duet-m-0":this.margin==="none","duet-expand":this.expand}},h("div",{key:"31ebe611a5680ccab5c4c039fed7113015b40aa5",class:{"duet-range-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva","duet-ie":isInternetExplorer(),"duet-range-disabled":this.disabled}},h(DuetInternalLabel,{key:"dc2023593be13175d1ecf78cc06f6acda0ff2403",theme:r,color:this.labelColor,weight:this.labelWeight,margin:"small",for:t},this.label),h("output",{key:"91b355bc7b3c1b3ce01cd9064d0293d332705d27","aria-hidden":"true",htmlFor:t,class:"duet-output"},this.value.toLocaleString(this.locale),this.unit),h("input",{key:"087487d605107ce8e1aef0b3fb453a4fb165d28f",onInput:this.onInput,onChange:this.onChange,ref:function(t){return e.nativeInput=t},type:"range",min:this.min,max:this.max,step:this.step,value:this.value,style:s,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.value,"aria-valuetext":"".concat(this.value," ").concat(this.unit),"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,id:t,name:this.name,disabled:this.disabled,required:this.required,class:"duet-range"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetRangeSlider.style=DuetRangeSliderStyle0;export{DuetRangeSlider as duet_range_slider};