@duetds/components 10.0.0-alpha.3 → 10.0.0-alpha.30

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 (1231) hide show
  1. package/hydrate/index.d.ts +38 -7
  2. package/hydrate/index.js +11784 -4278
  3. package/hydrate/index.mjs +46035 -0
  4. package/lib/cjs/_commonjsHelpers-4N64IRaP.js +10 -0
  5. package/lib/cjs/{a11y-utils-8177cf00.js → a11y-utils-D2e4DE4A.js} +1 -1
  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-718a3704.js → app-globals-P2FPiN9v.js} +2 -2
  9. package/lib/cjs/{common-strings-2984301e.js → common-strings-CSqtNIxt.js} +29 -0
  10. package/lib/cjs/duet-action-button.cjs.entry.js +84 -29
  11. package/lib/cjs/duet-alert.cjs.entry.js +102 -48
  12. package/lib/cjs/duet-badge.cjs.entry.js +31 -9
  13. package/lib/cjs/duet-banner.cjs.entry.js +64 -27
  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 +162 -68
  17. package/lib/cjs/duet-callout.cjs.entry.js +13 -10
  18. package/lib/cjs/duet-caption_4.cjs.entry.js +211 -75
  19. package/lib/cjs/duet-card.cjs.entry.js +95 -34
  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 +356 -0
  23. package/lib/cjs/duet-choice_2.cjs.entry.js +276 -128
  24. package/lib/cjs/duet-collapsible.cjs.entry.js +94 -29
  25. package/lib/cjs/duet-combobox.cjs.entry.js +85 -48
  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 +163 -57
  29. package/lib/cjs/duet-divider_2.cjs.entry.js +30 -14
  30. package/lib/cjs/duet-editable-table_3.cjs.entry.js +553 -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 +164 -64
  36. package/lib/cjs/duet-header_2.cjs.entry.js +302 -91
  37. package/lib/cjs/duet-hero.cjs.entry.js +149 -32
  38. package/lib/cjs/duet-icon.cjs.entry.js +64 -20
  39. package/lib/cjs/duet-indicator.cjs.entry.js +53 -0
  40. package/lib/cjs/duet-input_2.cjs.entry.js +204 -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 -58
  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 +91 -32
  53. package/lib/cjs/duet-number-input.cjs.entry.js +185 -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 +53 -0
  58. package/lib/cjs/duet-phone-input.cjs.entry.js +2072 -0
  59. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +552 -0
  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 +269 -130
  65. package/lib/cjs/duet-section-layout.cjs.entry.js +17 -10
  66. package/lib/cjs/duet-select.cjs.entry.js +89 -43
  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 +61 -10
  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 +110 -60
  76. package/lib/cjs/duet-status-icon.cjs.entry.js +99 -0
  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 +109 -50
  84. package/lib/cjs/duet-toggle.cjs.entry.js +50 -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-4e8a9de4.js → errorcodes.utils-B_Hqvx-5.js} +2 -2
  98. package/lib/cjs/floating-ui.dom.browser.min-Cj0r5YDz.js +709 -0
  99. package/lib/cjs/{focus-utils-2a0030aa.js → focus-utils-B7QfRXd-.js} +1 -1
  100. package/lib/cjs/form-search-CzPfHB80.js +21 -0
  101. package/lib/cjs/index-B1t_Yumd.js +3107 -0
  102. package/lib/cjs/{keyboard-utils-681e11ec.js → keyboard-utils-D9UlHbik.js} +4 -0
  103. package/lib/cjs/{label-2abeac23.js → label-e--2ISFA.js} +1 -1
  104. package/lib/cjs/{language-utils-b5940c7b.js → language-utils-Ce6b_uA3.js} +10 -2
  105. package/lib/cjs/loader.cjs.js +3 -5
  106. package/lib/cjs/{slot-utils-382633cf.js → slot-utils-C8k-6Rvc.js} +6 -1
  107. package/lib/cjs/{teleport-c6f8391a.js → teleport-D5NDbuu0.js} +22 -7
  108. package/lib/cjs/themeable-component-DmPMm0Cz.js +74 -0
  109. package/lib/cjs/{token-utils-5000595c.js → token-utils-COKjUxmn.js} +80 -9
  110. package/lib/cjs/{tokens-57e06fe4.js → tokens-9aevMbB1.js} +150 -8
  111. package/lib/cjs/{tokens.module-7c947029.js → tokens.module-Bhh9B2g8.js} +99 -3
  112. package/lib/cjs/{watch-options-30a12622.js → watch-options-D4JNsU3B.js} +0 -20
  113. package/lib/collection/collection-manifest.json +7 -1
  114. package/lib/collection/common/themeable-component.js +61 -3
  115. package/lib/collection/common-strings.js +27 -0
  116. package/lib/collection/components/duet-action-button/duet-action-button.css +29 -12
  117. package/lib/collection/components/duet-action-button/duet-action-button.js +92 -33
  118. package/lib/collection/components/duet-alert/duet-alert.css +88 -59
  119. package/lib/collection/components/duet-alert/duet-alert.js +141 -57
  120. package/lib/collection/components/duet-badge/duet-badge.css +21 -9
  121. package/lib/collection/components/duet-badge/duet-badge.js +30 -6
  122. package/lib/collection/components/duet-banner/duet-banner.css +30 -24
  123. package/lib/collection/components/duet-banner/duet-banner.js +68 -28
  124. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.css +10 -8
  125. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +26 -28
  126. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +18 -7
  127. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +15 -6
  128. package/lib/collection/components/duet-button/duet-button.css +149 -48
  129. package/lib/collection/components/duet-button/duet-button.js +175 -91
  130. package/lib/collection/components/duet-callout/duet-callout.css +7 -2
  131. package/lib/collection/components/duet-callout/duet-callout.js +10 -4
  132. package/lib/collection/components/duet-caption/duet-caption.css +7 -3
  133. package/lib/collection/components/duet-caption/duet-caption.js +18 -6
  134. package/lib/collection/components/duet-card/duet-card.css +45 -16
  135. package/lib/collection/components/duet-card/duet-card.js +115 -37
  136. package/lib/collection/components/duet-checkbox/duet-checkbox.css +26 -8
  137. package/lib/collection/components/duet-checkbox/duet-checkbox.js +86 -47
  138. package/lib/collection/components/duet-chip/duet-chip.css +63 -25
  139. package/lib/collection/components/duet-chip/duet-chip.js +70 -36
  140. package/lib/collection/components/duet-choice/duet-checkmark.css +4 -0
  141. package/lib/collection/components/duet-choice/duet-checkmark.js +22 -7
  142. package/lib/collection/components/duet-choice/duet-choice.css +90 -38
  143. package/lib/collection/components/duet-choice/duet-choice.js +228 -133
  144. package/lib/collection/components/duet-choice-group/duet-choice-group.css +4 -4
  145. package/lib/collection/components/duet-choice-group/duet-choice-group.js +108 -47
  146. package/lib/collection/components/duet-collapsible/duet-collapsible.css +49 -13
  147. package/lib/collection/components/duet-collapsible/duet-collapsible.js +116 -28
  148. package/lib/collection/components/duet-combobox/duet-combobox.css +9 -2
  149. package/lib/collection/components/duet-combobox/duet-combobox.js +88 -46
  150. package/lib/collection/components/duet-contact-card/duet-contact-card.css +8 -4
  151. package/lib/collection/components/duet-contact-card/duet-contact-card.js +21 -19
  152. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +23 -14
  153. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +11 -5
  154. package/lib/collection/components/duet-date-picker/date-picker-day.js +6 -1
  155. package/lib/collection/components/duet-date-picker/date-utils.js +6 -1
  156. package/lib/collection/components/duet-date-picker/duet-date-picker.css +99 -46
  157. package/lib/collection/components/duet-date-picker/duet-date-picker.js +177 -69
  158. package/lib/collection/components/duet-divider/duet-divider.css +12 -6
  159. package/lib/collection/components/duet-divider/duet-divider.js +14 -4
  160. package/lib/collection/components/duet-editable-table/duet-editable-table.css +2 -2
  161. package/lib/collection/components/duet-editable-table/duet-editable-table.js +83 -26
  162. package/lib/collection/components/duet-empty-state/duet-empty-state.css +11 -6
  163. package/lib/collection/components/duet-empty-state/duet-empty-state.js +14 -5
  164. package/lib/collection/components/duet-fieldset/duet-fieldset.css +13 -6
  165. package/lib/collection/components/duet-fieldset/duet-fieldset.js +58 -20
  166. package/lib/collection/components/duet-file-chooser/duet-file-chooser.css +2 -2
  167. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +17 -7
  168. package/lib/collection/components/duet-footer/duet-footer.css +43 -14
  169. package/lib/collection/components/duet-footer/duet-footer.js +55 -27
  170. package/lib/collection/components/duet-grid/duet-grid.css +2 -6
  171. package/lib/collection/components/duet-grid/duet-grid.js +144 -68
  172. package/lib/collection/components/duet-grid-item/duet-grid-item.css +6 -2
  173. package/lib/collection/components/duet-grid-item/duet-grid-item.js +40 -13
  174. package/lib/collection/components/duet-header/duet-header.css +165 -65
  175. package/lib/collection/components/duet-header/duet-header.js +165 -76
  176. package/lib/collection/components/duet-heading/duet-heading.css +11 -5
  177. package/lib/collection/components/duet-heading/duet-heading.js +56 -12
  178. package/lib/collection/components/duet-hero/duet-hero.css +326 -18
  179. package/lib/collection/components/duet-hero/duet-hero.js +170 -53
  180. package/lib/collection/components/duet-icon/duet-icon.css +17 -5
  181. package/lib/collection/components/duet-icon/duet-icon.js +71 -24
  182. package/lib/collection/components/duet-indicator/duet-indicator.css +46 -0
  183. package/lib/collection/components/duet-indicator/duet-indicator.js +104 -0
  184. package/lib/collection/components/duet-input/duet-input.css +155 -53
  185. package/lib/collection/components/duet-input/duet-input.js +241 -138
  186. package/lib/collection/components/duet-label/duet-label.css +8 -4
  187. package/lib/collection/components/duet-label/duet-label.js +23 -8
  188. package/lib/collection/components/duet-layout/duet-layout.css +4 -7
  189. package/lib/collection/components/duet-layout/duet-layout.js +35 -12
  190. package/lib/collection/components/duet-link/duet-link.css +166 -22
  191. package/lib/collection/components/duet-link/duet-link.js +121 -70
  192. package/lib/collection/components/duet-list/duet-list.css +4 -4
  193. package/lib/collection/components/duet-list/duet-list.js +38 -9
  194. package/lib/collection/components/duet-list-item/duet-list-item.css +25 -5
  195. package/lib/collection/components/duet-list-item/duet-list-item.js +50 -4
  196. package/lib/collection/components/duet-logo/duet-logo.css +33 -8
  197. package/lib/collection/components/duet-logo/duet-logo.js +111 -11
  198. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +110 -8
  199. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +59 -57
  200. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +17 -8
  201. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +33 -22
  202. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +28 -12
  203. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +20 -12
  204. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +19 -9
  205. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +18 -10
  206. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +28 -10
  207. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +39 -16
  208. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +25 -10
  209. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +19 -8
  210. package/lib/collection/components/duet-modal/duet-modal.css +23 -25
  211. package/lib/collection/components/duet-modal/duet-modal.js +193 -39
  212. package/lib/collection/components/duet-multiselect/duet-multiselect.css +67 -29
  213. package/lib/collection/components/duet-multiselect/duet-multiselect.js +98 -48
  214. package/lib/collection/components/duet-nav/duet-nav.css +8 -4
  215. package/lib/collection/components/duet-nav/duet-nav.js +10 -3
  216. package/lib/collection/components/duet-notification/duet-notification.css +33 -26
  217. package/lib/collection/components/duet-notification/duet-notification.js +39 -9
  218. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +38 -36
  219. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +57 -24
  220. package/lib/collection/components/duet-number-input/duet-number-input.css +26 -14
  221. package/lib/collection/components/duet-number-input/duet-number-input.js +190 -95
  222. package/lib/collection/components/duet-overlay/duet-overlay.css +5 -1
  223. package/lib/collection/components/duet-overlay/duet-overlay.js +40 -15
  224. package/lib/collection/components/duet-page-heading/duet-page-heading.css +44 -16
  225. package/lib/collection/components/duet-page-heading/duet-page-heading.js +17 -9
  226. package/lib/collection/components/duet-pagination/duet-pagination.css +8 -4
  227. package/lib/collection/components/duet-pagination/duet-pagination.js +130 -76
  228. package/lib/collection/components/duet-panel/duet-panel.css +98 -0
  229. package/lib/collection/components/duet-panel/duet-panel.js +234 -0
  230. package/lib/collection/components/duet-paragraph/duet-paragraph.css +19 -6
  231. package/lib/collection/components/duet-paragraph/duet-paragraph.js +29 -8
  232. package/lib/collection/components/duet-phone-input/duet-phone-input.css +61 -0
  233. package/lib/collection/components/duet-phone-input/duet-phone-input.js +930 -0
  234. package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +14 -6
  235. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +235 -76
  236. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +30 -12
  237. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +64 -29
  238. package/lib/collection/components/duet-progress/duet-progress.css +27 -8
  239. package/lib/collection/components/duet-progress/duet-progress.js +36 -14
  240. package/lib/collection/components/duet-promo-card/duet-promo-card.css +15 -12
  241. package/lib/collection/components/duet-promo-card/duet-promo-card.js +28 -11
  242. package/lib/collection/components/duet-radio/duet-radio.css +35 -8
  243. package/lib/collection/components/duet-radio/duet-radio.js +67 -49
  244. package/lib/collection/components/duet-radio-group/duet-radio-group.css +4 -4
  245. package/lib/collection/components/duet-radio-group/duet-radio-group.js +78 -30
  246. package/lib/collection/components/duet-range-slider/duet-range-slider.css +60 -18
  247. package/lib/collection/components/duet-range-slider/duet-range-slider.js +85 -46
  248. package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +8 -4
  249. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +43 -14
  250. package/lib/collection/components/duet-scrollable/duet-scrollable.css +84 -47
  251. package/lib/collection/components/duet-scrollable/duet-scrollable.js +160 -43
  252. package/lib/collection/components/duet-section-layout/duet-section-layout.css +4 -7
  253. package/lib/collection/components/duet-section-layout/duet-section-layout.js +16 -6
  254. package/lib/collection/components/duet-select/duet-select.css +51 -23
  255. package/lib/collection/components/duet-select/duet-select.js +109 -60
  256. package/lib/collection/components/duet-shaped-image/duet-shaped-image.css +6 -6
  257. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +17 -9
  258. package/lib/collection/components/duet-share-chart/duet-share-chart.css +82 -0
  259. package/lib/collection/components/duet-share-chart/duet-share-chart.js +141 -0
  260. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +67 -0
  261. package/lib/collection/components/duet-show-more/duet-show-more.css +15 -8
  262. package/lib/collection/components/duet-show-more/duet-show-more.js +87 -37
  263. package/lib/collection/components/duet-slideout/duet-slideout.css +68 -33
  264. package/lib/collection/components/duet-slideout/duet-slideout.js +109 -54
  265. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +10 -6
  266. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +5 -2
  267. package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +41 -13
  268. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +135 -12
  269. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +63 -40
  270. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +47 -30
  271. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +29 -16
  272. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +25 -11
  273. package/lib/collection/components/duet-spacer/duet-spacer.css +2 -2
  274. package/lib/collection/components/duet-spacer/duet-spacer.js +14 -4
  275. package/lib/collection/components/duet-spinner/duet-spinner.css +7 -4
  276. package/lib/collection/components/duet-spinner/duet-spinner.js +21 -10
  277. package/lib/collection/components/duet-status-icon/duet-status-icon.js +197 -0
  278. package/lib/collection/components/duet-step/duet-step.css +28 -13
  279. package/lib/collection/components/duet-step/duet-step.js +25 -16
  280. package/lib/collection/components/duet-stepper/duet-stepper.css +4 -4
  281. package/lib/collection/components/duet-stepper/duet-stepper.js +45 -10
  282. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +34 -16
  283. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +25 -16
  284. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +49 -15
  285. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +25 -13
  286. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +29 -8
  287. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +26 -8
  288. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.css +33 -10
  289. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +38 -15
  290. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +34 -9
  291. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +17 -5
  292. package/lib/collection/components/duet-tab/duet-tab.css +15 -11
  293. package/lib/collection/components/duet-tab/duet-tab.js +88 -24
  294. package/lib/collection/components/duet-tab-group/duet-tab-group.css +232 -129
  295. package/lib/collection/components/duet-tab-group/duet-tab-group.js +228 -83
  296. package/lib/collection/components/duet-table/duet-table-styles.js +68 -4
  297. package/lib/collection/components/duet-table/duet-table.js +42 -13
  298. package/lib/collection/components/duet-textarea/duet-textarea.css +61 -22
  299. package/lib/collection/components/duet-textarea/duet-textarea.js +159 -74
  300. package/lib/collection/components/duet-toggle/duet-toggle.css +23 -10
  301. package/lib/collection/components/duet-toggle/duet-toggle.js +62 -38
  302. package/lib/collection/components/duet-toolbar/duet-toolbar.css +11 -4
  303. package/lib/collection/components/duet-toolbar/duet-toolbar.js +11 -6
  304. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +36 -12
  305. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +28 -14
  306. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +21 -8
  307. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +23 -9
  308. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +52 -30
  309. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +48 -19
  310. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +42 -10
  311. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +23 -9
  312. package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +24 -14
  313. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +9 -11
  314. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +48 -16
  315. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +18 -14
  316. package/lib/collection/components/duet-tooltip/duet-tooltip.css +4 -4
  317. package/lib/collection/components/duet-tooltip/duet-tooltip.js +100 -45
  318. package/lib/collection/components/duet-tray/duet-tray.css +43 -27
  319. package/lib/collection/components/duet-tray/duet-tray.js +63 -21
  320. package/lib/collection/components/duet-upload/duet-upload.css +6 -6
  321. package/lib/collection/components/duet-upload/duet-upload.js +419 -213
  322. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +35 -13
  323. package/lib/collection/components/duet-upload-item/duet-upload-item.js +17 -18
  324. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.css +3 -3
  325. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  326. package/lib/collection/data/countries.js +1762 -0
  327. package/lib/collection/index.js +1 -0
  328. package/lib/collection/utils/keyboard-utils.js +3 -0
  329. package/lib/collection/utils/language-utils.js +7 -0
  330. package/lib/collection/utils/slot-utils.js +4 -0
  331. package/lib/collection/utils/teleport.js +22 -7
  332. package/lib/collection/utils/test-utils.js +2 -2
  333. package/lib/collection/utils/token-utils.js +59 -7
  334. package/lib/collection/utils/turva2-color-tokens.js +42 -0
  335. package/lib/duet/duet.esm.js +1 -1
  336. package/lib/duet/p-05b44a92.entry.js +4 -0
  337. package/lib/duet/p-0c4bde0e.entry.js +4 -0
  338. package/lib/duet/p-0cf754a3.entry.js +4 -0
  339. package/lib/duet/p-11303551.entry.js +4 -0
  340. package/lib/duet/p-11dc2ca3.entry.js +4 -0
  341. package/lib/duet/p-14b9af85.entry.js +4 -0
  342. package/lib/duet/p-17b2fad7.entry.js +4 -0
  343. package/lib/duet/p-19c8adaa.entry.js +4 -0
  344. package/lib/duet/p-1UeoYjt6.js +4 -0
  345. package/lib/duet/p-25bfc839.entry.js +4 -0
  346. package/lib/duet/p-2690a420.entry.js +4 -0
  347. package/lib/duet/p-2f0a1808.entry.js +4 -0
  348. package/lib/duet/p-2f34aa4c.entry.js +4 -0
  349. package/lib/duet/p-37bdc3b9.entry.js +4 -0
  350. package/lib/duet/p-39e7cc4b.entry.js +4 -0
  351. package/lib/duet/p-3c5f5035.entry.js +4 -0
  352. package/lib/duet/p-3e08bd06.entry.js +4 -0
  353. package/lib/duet/p-3f932150.entry.js +4 -0
  354. package/lib/duet/p-414f4b06.entry.js +4 -0
  355. package/lib/duet/p-4457a9cc.entry.js +4 -0
  356. package/lib/duet/p-450983a5.entry.js +4 -0
  357. package/lib/duet/p-492d90a6.entry.js +4 -0
  358. package/lib/duet/p-4a743428.entry.js +4 -0
  359. package/lib/duet/p-4b4d9bdc.entry.js +4 -0
  360. package/lib/duet/p-4d4f7a6e.entry.js +4 -0
  361. package/lib/duet/p-4efa7172.entry.js +4 -0
  362. package/lib/duet/p-513683f8.entry.js +4 -0
  363. package/lib/duet/p-51e85e15.entry.js +4 -0
  364. package/lib/duet/{p-6be341c4.entry.js → p-52bb0826.entry.js} +1 -1
  365. package/lib/duet/p-52e64670.entry.js +4 -0
  366. package/lib/duet/p-52f52f3f.entry.js +4 -0
  367. package/lib/duet/p-559a54d1.entry.js +4 -0
  368. package/lib/duet/p-56331c29.entry.js +4 -0
  369. package/lib/duet/p-5c4687b0.entry.js +4 -0
  370. package/lib/duet/p-5f2507ee.entry.js +4 -0
  371. package/lib/duet/p-5iZMFvpJ.js +4 -0
  372. package/lib/duet/p-625bf656.entry.js +4 -0
  373. package/lib/duet/p-638d143f.entry.js +4 -0
  374. package/lib/duet/p-63d75040.entry.js +4 -0
  375. package/lib/duet/p-64482bf0.entry.js +4 -0
  376. package/lib/duet/p-64db9820.entry.js +4 -0
  377. package/lib/duet/p-653a4f52.entry.js +4 -0
  378. package/lib/duet/p-67cbf570.entry.js +4 -0
  379. package/lib/duet/p-6d0a6cef.entry.js +4 -0
  380. package/lib/duet/p-7ab7b977.entry.js +4 -0
  381. package/lib/duet/p-7d8ba1c8.entry.js +4 -0
  382. package/lib/duet/p-80157aab.entry.js +4 -0
  383. package/lib/duet/p-81fdf21e.entry.js +4 -0
  384. package/lib/duet/p-835532a3.entry.js +4 -0
  385. package/lib/duet/p-87d63c67.entry.js +4 -0
  386. package/lib/duet/p-88b2a4ab.entry.js +4 -0
  387. package/lib/duet/p-89119c58.entry.js +4 -0
  388. package/lib/duet/p-8a22e0f7.entry.js +4 -0
  389. package/lib/duet/p-9278d908.entry.js +4 -0
  390. package/lib/duet/p-93d1d4cb.entry.js +4 -0
  391. package/lib/duet/p-963f5510.entry.js +4 -0
  392. package/lib/duet/p-9bdedc1c.entry.js +4 -0
  393. package/lib/duet/p-9c452a9d.entry.js +4 -0
  394. package/lib/duet/p-9fd3fbde.entry.js +4 -0
  395. package/lib/duet/p-9fe9aaec.entry.js +4 -0
  396. package/lib/duet/p-9ff0f670.entry.js +4 -0
  397. package/lib/duet/p-BVgBUIYF.js +4 -0
  398. package/lib/duet/p-BW-c05c3.js +4 -0
  399. package/lib/duet/p-BWvtXbhA.js +4 -0
  400. package/lib/duet/{p-81287261.js → p-B_NkY9T0.js} +1 -1
  401. package/lib/duet/p-Bh9dkusU.js +4 -0
  402. package/lib/duet/p-BmMFVM-y.js +4 -0
  403. package/lib/duet/p-Bt_DCuTi.js +4 -0
  404. package/lib/duet/p-CZ7vOBA_.js +4 -0
  405. package/lib/duet/p-CcCc0HYj.js +4 -0
  406. package/lib/duet/p-CjRTMlgs.js +5 -0
  407. package/lib/duet/p-CooAqTCj.js +4 -0
  408. package/lib/duet/p-Db8rvjPI.js +4 -0
  409. package/lib/duet/p-DcQPCCbT.js +4 -0
  410. package/lib/duet/p-Df3Doz7n.js +4 -0
  411. package/lib/duet/{p-8c9eb171.js → p-DmZj36y3.js} +1 -1
  412. package/lib/duet/p-DvwKrUS6.js +4 -0
  413. package/lib/duet/p-DzEPksgg.js +4 -0
  414. package/lib/duet/p-a22b9c52.entry.js +4 -0
  415. package/lib/duet/p-a39af7a5.entry.js +4 -0
  416. package/lib/{esm-es5/duet-grid_2.entry.js → duet/p-a49e7633.entry.js} +2 -2
  417. package/lib/duet/p-a5ebee52.entry.js +4 -0
  418. package/lib/duet/p-ac7bf279.entry.js +4 -0
  419. package/lib/duet/p-ae22406a.entry.js +4 -0
  420. package/lib/duet/p-b17749b1.entry.js +4 -0
  421. package/lib/duet/p-b8e1621d.entry.js +4 -0
  422. package/lib/duet/p-ba0fc0f3.entry.js +4 -0
  423. package/lib/duet/p-bba12747.entry.js +4 -0
  424. package/lib/duet/p-bf4c10ea.entry.js +4 -0
  425. package/lib/duet/p-c2afba51.entry.js +4 -0
  426. package/lib/duet/p-c74cd476.entry.js +4 -0
  427. package/lib/duet/p-c8c7616a.entry.js +4 -0
  428. package/lib/duet/p-ca8ad275.entry.js +4 -0
  429. package/lib/duet/p-cf054af5.entry.js +4 -0
  430. package/lib/duet/p-d27678ec.entry.js +4 -0
  431. package/lib/duet/p-d49e4c1a.entry.js +4 -0
  432. package/lib/duet/p-da90aae6.entry.js +4 -0
  433. package/lib/duet/p-dceb943b.entry.js +4 -0
  434. package/lib/duet/{p-ff4f7076.entry.js → p-df64aa65.entry.js} +1 -1
  435. package/lib/duet/p-e04410c6.entry.js +4 -0
  436. package/lib/duet/p-e057762a.entry.js +4 -0
  437. package/lib/duet/p-ea09620e.entry.js +4 -0
  438. package/lib/duet/p-ebd27669.entry.js +4 -0
  439. package/lib/duet/p-ec601f3c.entry.js +4 -0
  440. package/lib/duet/p-ec7bdfaf.entry.js +4 -0
  441. package/lib/duet/p-qH1epSqB.js +4 -0
  442. package/lib/duet/p-vVCYtBMj.js +4 -0
  443. package/lib/esm/_commonjsHelpers-DvwKrUS6.js +8 -0
  444. package/lib/{dist-custom-elements/p-afb6f7fb.js → esm/a11y-utils-CfJGGdQJ.js} +1 -1
  445. package/lib/esm/action-arrow-down-small-Bk3GShyI.js +19 -0
  446. package/lib/esm/action-new-window-small-EH8_HdAm.js +19 -0
  447. package/lib/esm/{app-globals-00959ca9.js → app-globals-DGW8k4EA.js} +2 -2
  448. package/lib/esm/common-strings-BWvtXbhA.js +52 -0
  449. package/lib/esm/duet-action-button.entry.js +84 -27
  450. package/lib/esm/duet-alert.entry.js +102 -46
  451. package/lib/esm/duet-badge.entry.js +31 -7
  452. package/lib/esm/duet-banner.entry.js +64 -25
  453. package/lib/esm/duet-breadcrumb.entry.js +38 -25
  454. package/lib/esm/duet-breadcrumbs.entry.js +20 -12
  455. package/lib/esm/duet-button_2.entry.js +162 -66
  456. package/lib/esm/duet-callout.entry.js +13 -8
  457. package/lib/esm/duet-caption_4.entry.js +211 -73
  458. package/lib/esm/duet-card.entry.js +95 -32
  459. package/lib/esm/duet-checkbox.entry.js +68 -30
  460. package/lib/esm/duet-checkmark.entry.js +21 -7
  461. package/lib/{dist-custom-elements/p-3431b690.js → esm/duet-chip.entry.js} +68 -82
  462. package/lib/esm/duet-choice_2.entry.js +277 -127
  463. package/lib/esm/duet-collapsible.entry.js +94 -27
  464. package/lib/esm/duet-combobox.entry.js +85 -46
  465. package/lib/esm/duet-contact-card.entry.js +17 -16
  466. package/lib/esm/duet-cookie-consent.entry.js +14 -9
  467. package/lib/esm/duet-date-picker.entry.js +163 -55
  468. package/lib/esm/duet-divider_2.entry.js +30 -12
  469. package/lib/esm/duet-editable-table_3.entry.js +553 -208
  470. package/lib/esm/duet-empty-state.entry.js +15 -7
  471. package/lib/esm/duet-fieldset.entry.js +51 -16
  472. package/lib/esm/duet-file-chooser.entry.js +18 -9
  473. package/lib/esm/duet-footer.entry.js +56 -28
  474. package/lib/esm/duet-grid_2.entry.js +164 -62
  475. package/lib/esm/duet-header_2.entry.js +303 -90
  476. package/lib/esm/duet-hero.entry.js +149 -30
  477. package/lib/esm/duet-icon.entry.js +64 -18
  478. package/lib/esm/duet-indicator.entry.js +51 -0
  479. package/lib/esm/duet-input_2.entry.js +205 -85
  480. package/lib/esm/duet-layout.entry.js +33 -11
  481. package/lib/esm/duet-list_2.entry.js +58 -12
  482. package/lib/esm/duet-menu-bar-button.entry.js +24 -14
  483. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +19 -12
  484. package/lib/esm/duet-menu-bar-dropdown.entry.js +21 -14
  485. package/lib/esm/duet-menu-bar-item.entry.js +40 -17
  486. package/lib/esm/duet-menu-bar-link.entry.js +18 -8
  487. package/lib/esm/duet-menu-bar.entry.js +37 -56
  488. package/lib/esm/duet-modal.entry.js +122 -33
  489. package/lib/esm/duet-multiselect.entry.js +88 -40
  490. package/lib/esm/duet-nav.entry.js +12 -6
  491. package/lib/esm/duet-notification_2.entry.js +91 -30
  492. package/lib/esm/duet-number-input.entry.js +186 -69
  493. package/lib/esm/duet-overlay.entry.js +36 -12
  494. package/lib/esm/duet-page-heading.entry.js +16 -9
  495. package/lib/esm/duet-pagination_2.entry.js +162 -85
  496. package/lib/esm/duet-panel.entry.js +51 -0
  497. package/lib/esm/duet-phone-input.entry.js +2070 -0
  498. package/lib/esm/duet-popup-menu_2.entry.js +549 -0
  499. package/lib/esm/duet-progress.entry.js +32 -11
  500. package/lib/esm/duet-promo-card.entry.js +27 -11
  501. package/lib/esm/duet-radio_2.entry.js +114 -53
  502. package/lib/esm/duet-range-slider.entry.js +73 -35
  503. package/lib/esm/duet-scrollable_3.entry.js +269 -128
  504. package/lib/esm/duet-section-layout.entry.js +17 -8
  505. package/lib/esm/duet-select.entry.js +89 -41
  506. package/lib/esm/duet-shaped-image.entry.js +16 -9
  507. package/lib/esm/duet-share-chart-item.entry.js +20 -0
  508. package/lib/esm/duet-share-chart.entry.js +83 -0
  509. package/lib/esm/duet-show-more.entry.js +81 -36
  510. package/lib/esm/duet-slideout-lang.entry.js +10 -8
  511. package/lib/esm/duet-slideout-link.entry.js +61 -8
  512. package/lib/esm/duet-slideout-panel-dropdown.entry.js +25 -12
  513. package/lib/esm/duet-slideout-panel.entry.js +50 -34
  514. package/lib/esm/duet-slideout.entry.js +110 -58
  515. package/lib/esm/duet-status-icon.entry.js +97 -0
  516. package/lib/esm/duet-step_2.entry.js +73 -23
  517. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +25 -8
  518. package/lib/esm/duet-submenu-bar-dropdown.entry.js +27 -16
  519. package/lib/esm/duet-submenu-bar-item.entry.js +40 -17
  520. package/lib/esm/duet-submenu-bar-link.entry.js +18 -7
  521. package/lib/esm/duet-submenu-bar.entry.js +27 -19
  522. package/lib/esm/duet-textarea.entry.js +109 -48
  523. package/lib/esm/duet-toggle.entry.js +50 -27
  524. package/lib/esm/duet-toolbar-dropdown-link.entry.js +22 -9
  525. package/lib/esm/duet-toolbar-dropdown.entry.js +27 -14
  526. package/lib/esm/duet-toolbar-item.entry.js +46 -17
  527. package/lib/esm/duet-toolbar-link.entry.js +21 -8
  528. package/lib/esm/duet-toolbar.entry.js +12 -8
  529. package/lib/esm/duet-tooltip-button_2.entry.js +24 -25
  530. package/lib/esm/duet-tooltip.entry.js +97 -43
  531. package/lib/esm/duet-tray.entry.js +63 -22
  532. package/lib/esm/duet-upload-aria-status.entry.js +30 -9
  533. package/lib/esm/duet-upload-item.entry.js +12 -20
  534. package/lib/esm/duet-visually-hidden.entry.js +4 -5
  535. package/lib/esm/duet.js +7 -6
  536. package/lib/esm/{errorcodes.utils-d9431251.js → errorcodes.utils-qEQnnnLR.js} +3 -3
  537. package/lib/esm/floating-ui.dom.browser.min-B_NkY9T0.js +702 -0
  538. package/lib/{dist-custom-elements/p-e30dc66d.js → esm/focus-utils-D7bOJ91T.js} +1 -1
  539. package/lib/esm/form-search-CevX33LA.js +19 -0
  540. package/lib/esm/{index-1d0b7c66.js → index-CjRTMlgs.js} +2069 -1238
  541. package/lib/esm/{keyboard-utils-439bcc8b.js → keyboard-utils-Db8rvjPI.js} +4 -1
  542. package/lib/{dist-custom-elements/p-42619f94.js → esm/label-DI1u_MFQ.js} +1 -1
  543. package/lib/esm/{language-utils-14969cef.js → language-utils-DMUadJDW.js} +10 -3
  544. package/lib/esm/loader.js +4 -4
  545. package/lib/esm/{slot-utils-4e5ed4eb.js → slot-utils-DmMljwEF.js} +6 -2
  546. package/lib/{dist-custom-elements/p-ca3cb21e.js → esm/teleport-CooAqTCj.js} +22 -7
  547. package/lib/esm/themeable-component-CULFNCJP.js +72 -0
  548. package/lib/esm/{token-utils-b9ba8c5e.js → token-utils-Dw-GA7-4.js} +80 -10
  549. package/lib/{dist-custom-elements/p-f6000a03.js → esm/tokens-DcQPCCbT.js} +151 -7
  550. package/lib/{dist-custom-elements/p-cea716f7.js → esm/tokens.module-Bh9dkusU.js} +100 -4
  551. package/lib/{dist-custom-elements/p-7d8a2628.js → esm/watch-options-BmMFVM-y.js} +1 -20
  552. package/lib/index.js +1 -1
  553. package/lib/loader/cdn.js +1 -2
  554. package/lib/loader/index.cjs.js +1 -2
  555. package/lib/loader/index.es2017.js +0 -1
  556. package/lib/loader/index.js +1 -2
  557. package/lib/types/common-strings.d.ts +3 -0
  558. package/lib/types/common-types.d.ts +1 -1
  559. package/lib/types/components/duet-alert/duet-alert.d.ts +20 -10
  560. package/lib/types/components/duet-badge/duet-badge.d.ts +1 -0
  561. package/lib/types/components/duet-banner/duet-banner.d.ts +2 -0
  562. package/lib/types/components/duet-breadcrumbs/duet-breadcrumb.d.ts +2 -4
  563. package/lib/types/components/duet-button/duet-button.d.ts +1 -1
  564. package/lib/types/components/duet-card/duet-card.d.ts +6 -0
  565. package/lib/types/components/duet-chip/duet-chip.d.ts +1 -0
  566. package/lib/types/components/duet-choice/duet-choice.d.ts +1 -5
  567. package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +3 -2
  568. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +8 -1
  569. package/lib/types/components/duet-combobox/duet-combobox.d.ts +1 -0
  570. package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +4 -0
  571. package/lib/types/components/duet-fieldset/duet-fieldset.d.ts +3 -0
  572. package/lib/types/components/duet-grid/duet-grid.d.ts +9 -7
  573. package/lib/types/components/duet-heading/duet-heading.d.ts +6 -0
  574. package/lib/types/components/duet-hero/duet-hero.d.ts +6 -2
  575. package/lib/types/components/duet-indicator/duet-indicator.d.ts +17 -0
  576. package/lib/types/components/duet-input/duet-input.d.ts +13 -15
  577. package/lib/types/components/duet-link/duet-link.d.ts +3 -7
  578. package/lib/types/components/duet-list-item/duet-list-item.d.ts +9 -3
  579. package/lib/types/components/duet-logo/duet-logo.d.ts +8 -0
  580. package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +5 -4
  581. package/lib/types/components/duet-modal/duet-modal.d.ts +17 -1
  582. package/lib/types/components/duet-number-input/duet-number-input.d.ts +5 -2
  583. package/lib/types/components/duet-overlay/duet-overlay.d.ts +4 -0
  584. package/lib/types/components/duet-panel/duet-panel.d.ts +47 -0
  585. package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +1 -0
  586. package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +178 -0
  587. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +19 -5
  588. package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +1 -0
  589. package/lib/types/components/duet-radio-group/duet-radio-group.d.ts +1 -0
  590. package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +18 -1
  591. package/lib/types/components/duet-select/duet-select.d.ts +2 -0
  592. package/lib/types/components/duet-share-chart/duet-share-chart.d.ts +34 -0
  593. package/lib/types/components/duet-share-chart-item/duet-share-chart-item.d.ts +13 -0
  594. package/lib/types/components/duet-show-more/duet-show-more.d.ts +1 -0
  595. package/lib/types/components/duet-slideout/duet-slideout.d.ts +4 -3
  596. package/lib/types/components/duet-slideout-link/duet-slideout-link.d.ts +17 -0
  597. package/lib/types/components/duet-spinner/duet-spinner.d.ts +1 -0
  598. package/lib/types/components/duet-status-icon/duet-status-icon.d.ts +27 -0
  599. package/lib/types/components/duet-stepper/duet-stepper.d.ts +5 -2
  600. package/lib/types/components/duet-tab/duet-tab.d.ts +10 -0
  601. package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +24 -4
  602. package/lib/types/components/duet-textarea/duet-textarea.d.ts +4 -2
  603. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +1 -1
  604. package/lib/types/components.d.ts +2350 -52
  605. package/lib/types/data/countries.d.ts +22 -0
  606. package/lib/types/index.d.ts +1 -0
  607. package/lib/types/stencil-public-runtime.d.ts +35 -6
  608. package/lib/types/utils/keyboard-utils.d.ts +1 -0
  609. package/lib/types/utils/language-utils.d.ts +1 -0
  610. package/lib/types/utils/slot-utils.d.ts +1 -0
  611. package/lib/types/utils/teleport.d.ts +4 -1
  612. package/lib/types/utils/token-utils.d.ts +4 -0
  613. package/lib/types/utils/turva2-color-tokens.d.ts +39 -0
  614. package/package.json +30 -16
  615. package/lib/cjs/action-arrow-down-small-ef77a2d1.js +0 -8
  616. package/lib/cjs/action-new-window-small-fa51dfb9.js +0 -8
  617. package/lib/cjs/duet-chip_3.cjs.entry.js +0 -699
  618. package/lib/cjs/floating-ui.dom.esm-806e7c53.js +0 -1355
  619. package/lib/cjs/form-search-d61b2843.js +0 -8
  620. package/lib/cjs/index-21e67ab3.js +0 -2278
  621. package/lib/cjs/themeable-component-996b489c.js +0 -15
  622. package/lib/dist-custom-elements/duet-action-button.d.ts +0 -11
  623. package/lib/dist-custom-elements/duet-action-button.js +0 -9
  624. package/lib/dist-custom-elements/duet-alert.d.ts +0 -11
  625. package/lib/dist-custom-elements/duet-alert.js +0 -9
  626. package/lib/dist-custom-elements/duet-badge.d.ts +0 -11
  627. package/lib/dist-custom-elements/duet-badge.js +0 -9
  628. package/lib/dist-custom-elements/duet-banner.d.ts +0 -11
  629. package/lib/dist-custom-elements/duet-banner.js +0 -157
  630. package/lib/dist-custom-elements/duet-breadcrumb.d.ts +0 -11
  631. package/lib/dist-custom-elements/duet-breadcrumb.js +0 -101
  632. package/lib/dist-custom-elements/duet-breadcrumbs.d.ts +0 -11
  633. package/lib/dist-custom-elements/duet-breadcrumbs.js +0 -88
  634. package/lib/dist-custom-elements/duet-button.d.ts +0 -11
  635. package/lib/dist-custom-elements/duet-button.js +0 -9
  636. package/lib/dist-custom-elements/duet-callout.d.ts +0 -11
  637. package/lib/dist-custom-elements/duet-callout.js +0 -72
  638. package/lib/dist-custom-elements/duet-caption.d.ts +0 -11
  639. package/lib/dist-custom-elements/duet-caption.js +0 -9
  640. package/lib/dist-custom-elements/duet-card.d.ts +0 -11
  641. package/lib/dist-custom-elements/duet-card.js +0 -171
  642. package/lib/dist-custom-elements/duet-checkbox.d.ts +0 -11
  643. package/lib/dist-custom-elements/duet-checkbox.js +0 -9
  644. package/lib/dist-custom-elements/duet-checkmark.d.ts +0 -11
  645. package/lib/dist-custom-elements/duet-checkmark.js +0 -9
  646. package/lib/dist-custom-elements/duet-chip.d.ts +0 -11
  647. package/lib/dist-custom-elements/duet-chip.js +0 -9
  648. package/lib/dist-custom-elements/duet-choice-group.d.ts +0 -11
  649. package/lib/dist-custom-elements/duet-choice-group.js +0 -228
  650. package/lib/dist-custom-elements/duet-choice.d.ts +0 -11
  651. package/lib/dist-custom-elements/duet-choice.js +0 -454
  652. package/lib/dist-custom-elements/duet-collapsible.d.ts +0 -11
  653. package/lib/dist-custom-elements/duet-collapsible.js +0 -158
  654. package/lib/dist-custom-elements/duet-combobox.d.ts +0 -11
  655. package/lib/dist-custom-elements/duet-combobox.js +0 -702
  656. package/lib/dist-custom-elements/duet-contact-card.d.ts +0 -11
  657. package/lib/dist-custom-elements/duet-contact-card.js +0 -134
  658. package/lib/dist-custom-elements/duet-cookie-consent.d.ts +0 -11
  659. package/lib/dist-custom-elements/duet-cookie-consent.js +0 -106
  660. package/lib/dist-custom-elements/duet-date-picker.d.ts +0 -11
  661. package/lib/dist-custom-elements/duet-date-picker.js +0 -932
  662. package/lib/dist-custom-elements/duet-divider.d.ts +0 -11
  663. package/lib/dist-custom-elements/duet-divider.js +0 -9
  664. package/lib/dist-custom-elements/duet-editable-table.d.ts +0 -11
  665. package/lib/dist-custom-elements/duet-editable-table.js +0 -258
  666. package/lib/dist-custom-elements/duet-empty-state.d.ts +0 -11
  667. package/lib/dist-custom-elements/duet-empty-state.js +0 -9
  668. package/lib/dist-custom-elements/duet-fieldset.d.ts +0 -11
  669. package/lib/dist-custom-elements/duet-fieldset.js +0 -9
  670. package/lib/dist-custom-elements/duet-file-chooser.d.ts +0 -11
  671. package/lib/dist-custom-elements/duet-file-chooser.js +0 -86
  672. package/lib/dist-custom-elements/duet-footer.d.ts +0 -11
  673. package/lib/dist-custom-elements/duet-footer.js +0 -223
  674. package/lib/dist-custom-elements/duet-grid-item.d.ts +0 -11
  675. package/lib/dist-custom-elements/duet-grid-item.js +0 -9
  676. package/lib/dist-custom-elements/duet-grid.d.ts +0 -11
  677. package/lib/dist-custom-elements/duet-grid.js +0 -9
  678. package/lib/dist-custom-elements/duet-header.d.ts +0 -11
  679. package/lib/dist-custom-elements/duet-header.js +0 -698
  680. package/lib/dist-custom-elements/duet-heading.d.ts +0 -11
  681. package/lib/dist-custom-elements/duet-heading.js +0 -9
  682. package/lib/dist-custom-elements/duet-hero.d.ts +0 -11
  683. package/lib/dist-custom-elements/duet-hero.js +0 -299
  684. package/lib/dist-custom-elements/duet-icon.d.ts +0 -11
  685. package/lib/dist-custom-elements/duet-icon.js +0 -9
  686. package/lib/dist-custom-elements/duet-input.d.ts +0 -11
  687. package/lib/dist-custom-elements/duet-input.js +0 -9
  688. package/lib/dist-custom-elements/duet-label.d.ts +0 -11
  689. package/lib/dist-custom-elements/duet-label.js +0 -70
  690. package/lib/dist-custom-elements/duet-layout.d.ts +0 -11
  691. package/lib/dist-custom-elements/duet-layout.js +0 -94
  692. package/lib/dist-custom-elements/duet-link.d.ts +0 -11
  693. package/lib/dist-custom-elements/duet-link.js +0 -9
  694. package/lib/dist-custom-elements/duet-list-item.d.ts +0 -11
  695. package/lib/dist-custom-elements/duet-list-item.js +0 -9
  696. package/lib/dist-custom-elements/duet-list.d.ts +0 -11
  697. package/lib/dist-custom-elements/duet-list.js +0 -9
  698. package/lib/dist-custom-elements/duet-logo.d.ts +0 -11
  699. package/lib/dist-custom-elements/duet-logo.js +0 -9
  700. package/lib/dist-custom-elements/duet-menu-bar-button.d.ts +0 -11
  701. package/lib/dist-custom-elements/duet-menu-bar-button.js +0 -94
  702. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.d.ts +0 -11
  703. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +0 -87
  704. package/lib/dist-custom-elements/duet-menu-bar-dropdown.d.ts +0 -11
  705. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +0 -108
  706. package/lib/dist-custom-elements/duet-menu-bar-item.d.ts +0 -11
  707. package/lib/dist-custom-elements/duet-menu-bar-item.js +0 -108
  708. package/lib/dist-custom-elements/duet-menu-bar-link.d.ts +0 -11
  709. package/lib/dist-custom-elements/duet-menu-bar-link.js +0 -70
  710. package/lib/dist-custom-elements/duet-menu-bar.d.ts +0 -11
  711. package/lib/dist-custom-elements/duet-menu-bar.js +0 -206
  712. package/lib/dist-custom-elements/duet-modal.d.ts +0 -11
  713. package/lib/dist-custom-elements/duet-modal.js +0 -382
  714. package/lib/dist-custom-elements/duet-multiselect.d.ts +0 -11
  715. package/lib/dist-custom-elements/duet-multiselect.js +0 -346
  716. package/lib/dist-custom-elements/duet-nav.d.ts +0 -11
  717. package/lib/dist-custom-elements/duet-nav.js +0 -54
  718. package/lib/dist-custom-elements/duet-notification-drawer.d.ts +0 -11
  719. package/lib/dist-custom-elements/duet-notification-drawer.js +0 -168
  720. package/lib/dist-custom-elements/duet-notification.d.ts +0 -11
  721. package/lib/dist-custom-elements/duet-notification.js +0 -95
  722. package/lib/dist-custom-elements/duet-number-input.d.ts +0 -11
  723. package/lib/dist-custom-elements/duet-number-input.js +0 -484
  724. package/lib/dist-custom-elements/duet-overlay.d.ts +0 -11
  725. package/lib/dist-custom-elements/duet-overlay.js +0 -9
  726. package/lib/dist-custom-elements/duet-page-heading.d.ts +0 -11
  727. package/lib/dist-custom-elements/duet-page-heading.js +0 -87
  728. package/lib/dist-custom-elements/duet-pagination.d.ts +0 -11
  729. package/lib/dist-custom-elements/duet-pagination.js +0 -493
  730. package/lib/dist-custom-elements/duet-paragraph.d.ts +0 -11
  731. package/lib/dist-custom-elements/duet-paragraph.js +0 -9
  732. package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +0 -11
  733. package/lib/dist-custom-elements/duet-popup-menu-item.js +0 -9
  734. package/lib/dist-custom-elements/duet-popup-menu.d.ts +0 -11
  735. package/lib/dist-custom-elements/duet-popup-menu.js +0 -9
  736. package/lib/dist-custom-elements/duet-progress.d.ts +0 -11
  737. package/lib/dist-custom-elements/duet-progress.js +0 -9
  738. package/lib/dist-custom-elements/duet-promo-card.d.ts +0 -11
  739. package/lib/dist-custom-elements/duet-promo-card.js +0 -105
  740. package/lib/dist-custom-elements/duet-radio-group.d.ts +0 -11
  741. package/lib/dist-custom-elements/duet-radio-group.js +0 -213
  742. package/lib/dist-custom-elements/duet-radio.d.ts +0 -11
  743. package/lib/dist-custom-elements/duet-radio.js +0 -230
  744. package/lib/dist-custom-elements/duet-range-slider.d.ts +0 -11
  745. package/lib/dist-custom-elements/duet-range-slider.js +0 -181
  746. package/lib/dist-custom-elements/duet-range-stepper.d.ts +0 -11
  747. package/lib/dist-custom-elements/duet-range-stepper.js +0 -234
  748. package/lib/dist-custom-elements/duet-scrollable.d.ts +0 -11
  749. package/lib/dist-custom-elements/duet-scrollable.js +0 -9
  750. package/lib/dist-custom-elements/duet-section-layout.d.ts +0 -11
  751. package/lib/dist-custom-elements/duet-section-layout.js +0 -56
  752. package/lib/dist-custom-elements/duet-select.d.ts +0 -11
  753. package/lib/dist-custom-elements/duet-select.js +0 -9
  754. package/lib/dist-custom-elements/duet-shaped-image.d.ts +0 -11
  755. package/lib/dist-custom-elements/duet-shaped-image.js +0 -64
  756. package/lib/dist-custom-elements/duet-show-more.d.ts +0 -11
  757. package/lib/dist-custom-elements/duet-show-more.js +0 -9
  758. package/lib/dist-custom-elements/duet-slideout-lang.d.ts +0 -11
  759. package/lib/dist-custom-elements/duet-slideout-lang.js +0 -76
  760. package/lib/dist-custom-elements/duet-slideout-link.d.ts +0 -11
  761. package/lib/dist-custom-elements/duet-slideout-link.js +0 -79
  762. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.d.ts +0 -11
  763. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +0 -93
  764. package/lib/dist-custom-elements/duet-slideout-panel.d.ts +0 -11
  765. package/lib/dist-custom-elements/duet-slideout-panel.js +0 -224
  766. package/lib/dist-custom-elements/duet-slideout.d.ts +0 -11
  767. package/lib/dist-custom-elements/duet-slideout.js +0 -311
  768. package/lib/dist-custom-elements/duet-spacer.d.ts +0 -11
  769. package/lib/dist-custom-elements/duet-spacer.js +0 -9
  770. package/lib/dist-custom-elements/duet-spinner.d.ts +0 -11
  771. package/lib/dist-custom-elements/duet-spinner.js +0 -9
  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 -339
  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-02f97b91.js +0 -39
  825. package/lib/dist-custom-elements/p-087d8c5a.js +0 -60
  826. package/lib/dist-custom-elements/p-115c79b6.js +0 -6
  827. package/lib/dist-custom-elements/p-1296f851.js +0 -63
  828. package/lib/dist-custom-elements/p-174a9d1d.js +0 -73
  829. package/lib/dist-custom-elements/p-1ccd7c39.js +0 -80
  830. package/lib/dist-custom-elements/p-1f4fbc7a.js +0 -138
  831. package/lib/dist-custom-elements/p-22147601.js +0 -642
  832. package/lib/dist-custom-elements/p-29be247b.js +0 -80
  833. package/lib/dist-custom-elements/p-2c70b9f4.js +0 -50
  834. package/lib/dist-custom-elements/p-2f25dfb3.js +0 -154
  835. package/lib/dist-custom-elements/p-330bcf1d.js +0 -205
  836. package/lib/dist-custom-elements/p-35375593.js +0 -161
  837. package/lib/dist-custom-elements/p-36ab2d57.js +0 -83
  838. package/lib/dist-custom-elements/p-3ce1f7b8.js +0 -214
  839. package/lib/dist-custom-elements/p-41dca9e4.js +0 -63
  840. package/lib/dist-custom-elements/p-430f3778.js +0 -100
  841. package/lib/dist-custom-elements/p-43c4a1af.js +0 -81
  842. package/lib/dist-custom-elements/p-4da43fbc.js +0 -232
  843. package/lib/dist-custom-elements/p-68c629a8.js +0 -127
  844. package/lib/dist-custom-elements/p-6b77d4d3.js +0 -338
  845. package/lib/dist-custom-elements/p-81287261.js +0 -1348
  846. package/lib/dist-custom-elements/p-89b10856.js +0 -102
  847. package/lib/dist-custom-elements/p-956e3bce.js +0 -110
  848. package/lib/dist-custom-elements/p-993aea39.js +0 -175
  849. package/lib/dist-custom-elements/p-9df4cfa4.js +0 -25
  850. package/lib/dist-custom-elements/p-9f9423c6.js +0 -56
  851. package/lib/dist-custom-elements/p-9fa4eb51.js +0 -94
  852. package/lib/dist-custom-elements/p-a2147aff.js +0 -268
  853. package/lib/dist-custom-elements/p-aaa7a7bd.js +0 -13
  854. package/lib/dist-custom-elements/p-ab34075b.js +0 -124
  855. package/lib/dist-custom-elements/p-ad615991.js +0 -115
  856. package/lib/dist-custom-elements/p-b0925e24.js +0 -318
  857. package/lib/dist-custom-elements/p-b8de9a9c.js +0 -165
  858. package/lib/dist-custom-elements/p-c7d815f6.js +0 -194
  859. package/lib/dist-custom-elements/p-ca700701.js +0 -55
  860. package/lib/dist-custom-elements/p-d004da5f.js +0 -6
  861. package/lib/dist-custom-elements/p-d1f89e90.js +0 -124
  862. package/lib/dist-custom-elements/p-d2a5148f.js +0 -61
  863. package/lib/dist-custom-elements/p-d77db171.js +0 -2130
  864. package/lib/dist-custom-elements/p-dad518a5.js +0 -303
  865. package/lib/dist-custom-elements/p-de4ee016.js +0 -209
  866. package/lib/dist-custom-elements/p-de8f018a.js +0 -55
  867. package/lib/dist-custom-elements/p-df2042f8.js +0 -206
  868. package/lib/dist-custom-elements/p-e176f419.js +0 -61
  869. package/lib/dist-custom-elements/p-e37d189b.js +0 -607
  870. package/lib/dist-custom-elements/p-f11208c3.js +0 -6
  871. package/lib/dist-custom-elements/p-fe9e47d9.js +0 -287
  872. package/lib/duet/duet.js +0 -127
  873. package/lib/duet/p-021a4763.system.entry.js +0 -4
  874. package/lib/duet/p-031167a1.system.entry.js +0 -4
  875. package/lib/duet/p-051c4536.entry.js +0 -4
  876. package/lib/duet/p-053b71e6.system.js +0 -4
  877. package/lib/duet/p-05ca5aea.entry.js +0 -4
  878. package/lib/duet/p-07847129.system.entry.js +0 -4
  879. package/lib/duet/p-0a305aee.entry.js +0 -4
  880. package/lib/duet/p-0c4bbd65.system.js +0 -4
  881. package/lib/duet/p-0d7da85a.js +0 -4
  882. package/lib/duet/p-0dc9089b.system.js +0 -4
  883. package/lib/duet/p-0e348f96.system.entry.js +0 -4
  884. package/lib/duet/p-0e8e80b1.entry.js +0 -4
  885. package/lib/duet/p-0ee85b71.entry.js +0 -4
  886. package/lib/duet/p-115c79b6.js +0 -4
  887. package/lib/duet/p-1183d305.system.entry.js +0 -4
  888. package/lib/duet/p-1268b5a0.system.entry.js +0 -4
  889. package/lib/duet/p-153b6150.system.entry.js +0 -4
  890. package/lib/duet/p-192bba35.system.entry.js +0 -4
  891. package/lib/duet/p-1e17463d.system.js +0 -4
  892. package/lib/duet/p-1e904342.entry.js +0 -4
  893. package/lib/duet/p-1e9e887d.entry.js +0 -4
  894. package/lib/duet/p-209d6065.system.entry.js +0 -4
  895. package/lib/duet/p-20d056ac.entry.js +0 -4
  896. package/lib/duet/p-20eaf445.system.entry.js +0 -4
  897. package/lib/duet/p-215f4257.system.entry.js +0 -4
  898. package/lib/duet/p-237efb0c.system.entry.js +0 -4
  899. package/lib/duet/p-2437b4cb.js +0 -4
  900. package/lib/duet/p-250fb070.entry.js +0 -4
  901. package/lib/duet/p-25af4a6c.entry.js +0 -4
  902. package/lib/duet/p-25d79094.entry.js +0 -4
  903. package/lib/duet/p-27260106.entry.js +0 -4
  904. package/lib/duet/p-27ed5ca7.system.entry.js +0 -4
  905. package/lib/duet/p-2810c6dc.system.entry.js +0 -4
  906. package/lib/duet/p-2814473c.system.entry.js +0 -4
  907. package/lib/duet/p-29152853.entry.js +0 -4
  908. package/lib/duet/p-2a0ad29c.system.entry.js +0 -4
  909. package/lib/duet/p-2a979523.entry.js +0 -4
  910. package/lib/duet/p-2b2cd3be.entry.js +0 -4
  911. package/lib/duet/p-2b35de7b.entry.js +0 -4
  912. package/lib/duet/p-2b45d2e4.entry.js +0 -4
  913. package/lib/duet/p-2b6a7397.js +0 -4
  914. package/lib/duet/p-2bf17427.entry.js +0 -4
  915. package/lib/duet/p-2dc360ee.entry.js +0 -4
  916. package/lib/duet/p-2de0ab3d.system.entry.js +0 -4
  917. package/lib/duet/p-2eae4a0b.js +0 -4
  918. package/lib/duet/p-2fa7ecef.entry.js +0 -4
  919. package/lib/duet/p-2fb96333.entry.js +0 -4
  920. package/lib/duet/p-3106c658.entry.js +0 -4
  921. package/lib/duet/p-34024554.system.entry.js +0 -4
  922. package/lib/duet/p-34d7dd10.system.js +0 -4
  923. package/lib/duet/p-380f74e8.system.entry.js +0 -4
  924. package/lib/duet/p-3810c7dc.entry.js +0 -4
  925. package/lib/duet/p-3c64dab9.entry.js +0 -4
  926. package/lib/duet/p-3d826a58.system.entry.js +0 -4
  927. package/lib/duet/p-3d96186f.system.entry.js +0 -4
  928. package/lib/duet/p-3df2981e.system.entry.js +0 -4
  929. package/lib/duet/p-3faaa469.entry.js +0 -4
  930. package/lib/duet/p-3fe7e109.system.entry.js +0 -4
  931. package/lib/duet/p-40bab9a0.system.entry.js +0 -4
  932. package/lib/duet/p-41552571.system.entry.js +0 -4
  933. package/lib/duet/p-41982d26.system.js +0 -4
  934. package/lib/duet/p-43cc4ad9.system.entry.js +0 -4
  935. package/lib/duet/p-43d16748.system.entry.js +0 -4
  936. package/lib/duet/p-44ee649f.system.entry.js +0 -4
  937. package/lib/duet/p-486576ee.entry.js +0 -4
  938. package/lib/duet/p-49957220.system.js +0 -4
  939. package/lib/duet/p-49fa4a07.entry.js +0 -4
  940. package/lib/duet/p-4a9978a4.entry.js +0 -4
  941. package/lib/duet/p-4cff3036.system.js +0 -4
  942. package/lib/duet/p-4e7f27d8.entry.js +0 -4
  943. package/lib/duet/p-4e9052cd.entry.js +0 -4
  944. package/lib/duet/p-4ee7eb8a.entry.js +0 -4
  945. package/lib/duet/p-5170726b.system.entry.js +0 -4
  946. package/lib/duet/p-55674524.entry.js +0 -4
  947. package/lib/duet/p-58caf53a.system.entry.js +0 -4
  948. package/lib/duet/p-5b927db3.entry.js +0 -4
  949. package/lib/duet/p-5db9497a.entry.js +0 -4
  950. package/lib/duet/p-5dbd1202.entry.js +0 -4
  951. package/lib/duet/p-5e25b406.entry.js +0 -4
  952. package/lib/duet/p-60547899.system.entry.js +0 -4
  953. package/lib/duet/p-605e69c8.system.js +0 -4
  954. package/lib/duet/p-612fbfcc.entry.js +0 -4
  955. package/lib/duet/p-620d4575.system.entry.js +0 -4
  956. package/lib/duet/p-629a9c13.entry.js +0 -4
  957. package/lib/duet/p-62bdecfb.system.entry.js +0 -4
  958. package/lib/duet/p-6324514a.system.entry.js +0 -4
  959. package/lib/duet/p-6447f20d.system.entry.js +0 -4
  960. package/lib/duet/p-6537159a.system.entry.js +0 -4
  961. package/lib/duet/p-670bd483.system.entry.js +0 -4
  962. package/lib/duet/p-6b436ca9.entry.js +0 -4
  963. package/lib/duet/p-7483d86c.entry.js +0 -4
  964. package/lib/duet/p-76563c02.entry.js +0 -4
  965. package/lib/duet/p-769a3309.system.entry.js +0 -4
  966. package/lib/duet/p-76b42e90.entry.js +0 -4
  967. package/lib/duet/p-76b84b22.entry.js +0 -4
  968. package/lib/duet/p-76d69a18.system.js +0 -4
  969. package/lib/duet/p-7972306f.entry.js +0 -4
  970. package/lib/duet/p-79dfc8e6.system.entry.js +0 -4
  971. package/lib/duet/p-7a67ce10.system.entry.js +0 -4
  972. package/lib/duet/p-7acabaa7.system.js +0 -4
  973. package/lib/duet/p-7cce22af.system.js +0 -4
  974. package/lib/duet/p-7d2fffc2.entry.js +0 -4
  975. package/lib/duet/p-7d8a2628.js +0 -4
  976. package/lib/duet/p-7dd3b7d1.entry.js +0 -4
  977. package/lib/duet/p-7f5c1da2.entry.js +0 -4
  978. package/lib/duet/p-8142169f.system.entry.js +0 -4
  979. package/lib/duet/p-8481bbda.entry.js +0 -4
  980. package/lib/duet/p-871d7ca1.system.entry.js +0 -4
  981. package/lib/duet/p-894c1be1.system.entry.js +0 -4
  982. package/lib/duet/p-8abb0984.js +0 -5
  983. package/lib/duet/p-8f477bd6.system.js +0 -4
  984. package/lib/duet/p-8f4cdf46.system.entry.js +0 -4
  985. package/lib/duet/p-8faaaf5f.system.js +0 -4
  986. package/lib/duet/p-9253e832.system.entry.js +0 -4
  987. package/lib/duet/p-965e597c.system.js +0 -4
  988. package/lib/duet/p-966bd64a.entry.js +0 -4
  989. package/lib/duet/p-98636086.system.js +0 -4
  990. package/lib/duet/p-9b04e4a2.entry.js +0 -4
  991. package/lib/duet/p-9fb9ba73.entry.js +0 -4
  992. package/lib/duet/p-a19244e5.system.js +0 -5
  993. package/lib/duet/p-a1b7f2a0.js +0 -4
  994. package/lib/duet/p-a2aa619b.system.entry.js +0 -4
  995. package/lib/duet/p-a2b93336.system.entry.js +0 -4
  996. package/lib/duet/p-a3341588.entry.js +0 -4
  997. package/lib/duet/p-a47047f2.entry.js +0 -4
  998. package/lib/duet/p-a51e1b9e.entry.js +0 -4
  999. package/lib/duet/p-a600451a.entry.js +0 -4
  1000. package/lib/duet/p-a7d809b4.system.entry.js +0 -4
  1001. package/lib/duet/p-a8a381c9.system.entry.js +0 -4
  1002. package/lib/duet/p-aa82f9a1.entry.js +0 -4
  1003. package/lib/duet/p-aaa7a7bd.js +0 -4
  1004. package/lib/duet/p-ac9460ca.entry.js +0 -4
  1005. package/lib/duet/p-aca3a5a9.entry.js +0 -4
  1006. package/lib/duet/p-af209330.entry.js +0 -4
  1007. package/lib/duet/p-afad5fd3.system.js +0 -4
  1008. package/lib/duet/p-b010f56b.system.entry.js +0 -4
  1009. package/lib/duet/p-b69f3d9d.system.entry.js +0 -4
  1010. package/lib/duet/p-b6c584b6.entry.js +0 -4
  1011. package/lib/duet/p-b765710e.entry.js +0 -4
  1012. package/lib/duet/p-b864159a.system.js +0 -4
  1013. package/lib/duet/p-ba03d034.system.js +0 -4
  1014. package/lib/duet/p-bcc40139.system.entry.js +0 -4
  1015. package/lib/duet/p-beeb12f1.js +0 -4
  1016. package/lib/duet/p-c15cd383.system.entry.js +0 -4
  1017. package/lib/duet/p-c22935bf.system.entry.js +0 -4
  1018. package/lib/duet/p-c2dd561e.entry.js +0 -4
  1019. package/lib/duet/p-c3ba8e74.system.entry.js +0 -4
  1020. package/lib/duet/p-c52e8007.entry.js +0 -4
  1021. package/lib/duet/p-c6894b07.system.entry.js +0 -4
  1022. package/lib/duet/p-c694f12d.system.entry.js +0 -4
  1023. package/lib/duet/p-c79cbfdb.entry.js +0 -4
  1024. package/lib/duet/p-c8421271.system.entry.js +0 -4
  1025. package/lib/duet/p-c8d3cb52.entry.js +0 -4
  1026. package/lib/duet/p-c8e22ae2.system.entry.js +0 -4
  1027. package/lib/duet/p-ca3cb21e.js +0 -4
  1028. package/lib/duet/p-cbedbd77.system.entry.js +0 -4
  1029. package/lib/duet/p-cc5e6288.system.js +0 -4
  1030. package/lib/duet/p-cc67e773.js +0 -4
  1031. package/lib/duet/p-ce543cc1.system.entry.js +0 -4
  1032. package/lib/duet/p-cf30c088.entry.js +0 -4
  1033. package/lib/duet/p-d004da5f.js +0 -4
  1034. package/lib/duet/p-d3c304b5.system.js +0 -4
  1035. package/lib/duet/p-d43fc5e9.system.entry.js +0 -4
  1036. package/lib/duet/p-d6dc9819.system.entry.js +0 -4
  1037. package/lib/duet/p-d7d86092.js +0 -4
  1038. package/lib/duet/p-d86d8491.system.entry.js +0 -4
  1039. package/lib/duet/p-db2ccb9d.system.js +0 -4
  1040. package/lib/duet/p-dfd223d9.entry.js +0 -4
  1041. package/lib/duet/p-e0536bb5.entry.js +0 -4
  1042. package/lib/duet/p-e12066c8.system.js +0 -4
  1043. package/lib/duet/p-e1c881da.system.js +0 -4
  1044. package/lib/duet/p-e216bea4.system.js +0 -4
  1045. package/lib/duet/p-e258270f.entry.js +0 -4
  1046. package/lib/duet/p-e2daf94c.entry.js +0 -4
  1047. package/lib/duet/p-e38edd16.system.entry.js +0 -4
  1048. package/lib/duet/p-e44da0ff.system.entry.js +0 -4
  1049. package/lib/duet/p-e4c8559c.system.js +0 -4
  1050. package/lib/duet/p-e6b5a1c7.system.js +0 -4
  1051. package/lib/duet/p-e8dd29e7.entry.js +0 -4
  1052. package/lib/duet/p-e93849fd.system.entry.js +0 -4
  1053. package/lib/duet/p-e9d2f4a1.entry.js +0 -4
  1054. package/lib/duet/p-eca03d5e.js +0 -4
  1055. package/lib/duet/p-ee1eb7cb.system.entry.js +0 -4
  1056. package/lib/duet/p-efa5ec67.entry.js +0 -4
  1057. package/lib/duet/p-f0b0e2b2.system.entry.js +0 -4
  1058. package/lib/duet/p-f105f32a.system.entry.js +0 -4
  1059. package/lib/duet/p-f11208c3.js +0 -4
  1060. package/lib/duet/p-f3633004.entry.js +0 -4
  1061. package/lib/duet/p-f3cf6b50.entry.js +0 -4
  1062. package/lib/duet/p-f43e134e.system.entry.js +0 -4
  1063. package/lib/duet/p-f5dd7e7e.system.entry.js +0 -4
  1064. package/lib/duet/p-f6000a03.js +0 -4
  1065. package/lib/duet/p-f6b21d17.system.js +0 -4
  1066. package/lib/duet/p-f6bd2d4f.system.entry.js +0 -4
  1067. package/lib/duet/p-f75a6d54.system.entry.js +0 -4
  1068. package/lib/duet/p-f97500ff.system.entry.js +0 -4
  1069. package/lib/duet/p-fa3b3dbc.system.entry.js +0 -4
  1070. package/lib/duet/p-fbc396a7.system.entry.js +0 -4
  1071. package/lib/duet/p-fbf89657.system.entry.js +0 -4
  1072. package/lib/duet/p-fcb14b31.system.entry.js +0 -4
  1073. package/lib/duet/p-fd2299b4.entry.js +0 -4
  1074. package/lib/duet/p-fd78f61a.js +0 -4
  1075. package/lib/duet/p-fee25f59.entry.js +0 -4
  1076. package/lib/esm/a11y-utils-8fc393f6.js +0 -23
  1077. package/lib/esm/action-arrow-down-small-82273dc8.js +0 -6
  1078. package/lib/esm/action-new-window-small-1945be91.js +0 -6
  1079. package/lib/esm/body-scroll-46854769.js +0 -234
  1080. package/lib/esm/bodyScrollLock.es6-ecbf187e.js +0 -184
  1081. package/lib/esm/common-strings-af765cad.js +0 -25
  1082. package/lib/esm/create-id-149a1b6d.js +0 -11
  1083. package/lib/esm/duet-chip_3.entry.js +0 -693
  1084. package/lib/esm/floating-ui.dom.esm-ebc91b33.js +0 -1348
  1085. package/lib/esm/focus-utils-adcd9463.js +0 -18
  1086. package/lib/esm/form-search-ea8e19ae.js +0 -6
  1087. package/lib/esm/input-utils-85681162.js +0 -53
  1088. package/lib/esm/is-internet-explorer-2c48f686.js +0 -9
  1089. package/lib/esm/js-utils-9b9e0039.js +0 -47
  1090. package/lib/esm/label-ce262202.js +0 -20
  1091. package/lib/esm/polyfills/core-js.js +0 -11
  1092. package/lib/esm/polyfills/dom.js +0 -79
  1093. package/lib/esm/polyfills/es5-html-element.js +0 -1
  1094. package/lib/esm/polyfills/index.js +0 -34
  1095. package/lib/esm/polyfills/system.js +0 -6
  1096. package/lib/esm/string-utils-192eb3c8.js +0 -61
  1097. package/lib/esm/teleport-546f382d.js +0 -116
  1098. package/lib/esm/themeable-component-860041c5.js +0 -13
  1099. package/lib/esm/tokens-84fb2357.js +0 -753
  1100. package/lib/esm/tokens.module-2d02f5ff.js +0 -503
  1101. package/lib/esm/watch-options-e96ecd92.js +0 -57
  1102. package/lib/esm-es5/a11y-utils-8fc393f6.js +0 -4
  1103. package/lib/esm-es5/action-arrow-down-small-82273dc8.js +0 -4
  1104. package/lib/esm-es5/action-new-window-small-1945be91.js +0 -4
  1105. package/lib/esm-es5/app-globals-00959ca9.js +0 -4
  1106. package/lib/esm-es5/body-scroll-46854769.js +0 -4
  1107. package/lib/esm-es5/bodyScrollLock.es6-ecbf187e.js +0 -4
  1108. package/lib/esm-es5/common-strings-af765cad.js +0 -4
  1109. package/lib/esm-es5/create-id-149a1b6d.js +0 -4
  1110. package/lib/esm-es5/duet-action-button.entry.js +0 -4
  1111. package/lib/esm-es5/duet-alert.entry.js +0 -4
  1112. package/lib/esm-es5/duet-badge.entry.js +0 -4
  1113. package/lib/esm-es5/duet-banner.entry.js +0 -4
  1114. package/lib/esm-es5/duet-breadcrumb.entry.js +0 -4
  1115. package/lib/esm-es5/duet-breadcrumbs.entry.js +0 -4
  1116. package/lib/esm-es5/duet-button_2.entry.js +0 -4
  1117. package/lib/esm-es5/duet-callout.entry.js +0 -4
  1118. package/lib/esm-es5/duet-caption_4.entry.js +0 -4
  1119. package/lib/esm-es5/duet-card.entry.js +0 -4
  1120. package/lib/esm-es5/duet-checkbox.entry.js +0 -4
  1121. package/lib/esm-es5/duet-checkmark.entry.js +0 -4
  1122. package/lib/esm-es5/duet-chip_3.entry.js +0 -4
  1123. package/lib/esm-es5/duet-choice_2.entry.js +0 -4
  1124. package/lib/esm-es5/duet-collapsible.entry.js +0 -4
  1125. package/lib/esm-es5/duet-combobox.entry.js +0 -4
  1126. package/lib/esm-es5/duet-contact-card.entry.js +0 -4
  1127. package/lib/esm-es5/duet-cookie-consent.entry.js +0 -4
  1128. package/lib/esm-es5/duet-date-picker.entry.js +0 -4
  1129. package/lib/esm-es5/duet-divider_2.entry.js +0 -4
  1130. package/lib/esm-es5/duet-editable-table_3.entry.js +0 -4
  1131. package/lib/esm-es5/duet-empty-state.entry.js +0 -4
  1132. package/lib/esm-es5/duet-fieldset.entry.js +0 -4
  1133. package/lib/esm-es5/duet-file-chooser.entry.js +0 -4
  1134. package/lib/esm-es5/duet-footer.entry.js +0 -4
  1135. package/lib/esm-es5/duet-header_2.entry.js +0 -4
  1136. package/lib/esm-es5/duet-hero.entry.js +0 -4
  1137. package/lib/esm-es5/duet-icon.entry.js +0 -4
  1138. package/lib/esm-es5/duet-input_2.entry.js +0 -4
  1139. package/lib/esm-es5/duet-layout.entry.js +0 -4
  1140. package/lib/esm-es5/duet-list_2.entry.js +0 -4
  1141. package/lib/esm-es5/duet-menu-bar-button.entry.js +0 -4
  1142. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +0 -4
  1143. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +0 -4
  1144. package/lib/esm-es5/duet-menu-bar-item.entry.js +0 -4
  1145. package/lib/esm-es5/duet-menu-bar-link.entry.js +0 -4
  1146. package/lib/esm-es5/duet-menu-bar.entry.js +0 -4
  1147. package/lib/esm-es5/duet-modal.entry.js +0 -4
  1148. package/lib/esm-es5/duet-multiselect.entry.js +0 -4
  1149. package/lib/esm-es5/duet-nav.entry.js +0 -4
  1150. package/lib/esm-es5/duet-notification_2.entry.js +0 -4
  1151. package/lib/esm-es5/duet-number-input.entry.js +0 -4
  1152. package/lib/esm-es5/duet-overlay.entry.js +0 -4
  1153. package/lib/esm-es5/duet-page-heading.entry.js +0 -4
  1154. package/lib/esm-es5/duet-pagination_2.entry.js +0 -4
  1155. package/lib/esm-es5/duet-progress.entry.js +0 -4
  1156. package/lib/esm-es5/duet-promo-card.entry.js +0 -4
  1157. package/lib/esm-es5/duet-radio_2.entry.js +0 -4
  1158. package/lib/esm-es5/duet-range-slider.entry.js +0 -4
  1159. package/lib/esm-es5/duet-scrollable_3.entry.js +0 -4
  1160. package/lib/esm-es5/duet-section-layout.entry.js +0 -4
  1161. package/lib/esm-es5/duet-select.entry.js +0 -4
  1162. package/lib/esm-es5/duet-shaped-image.entry.js +0 -4
  1163. package/lib/esm-es5/duet-show-more.entry.js +0 -4
  1164. package/lib/esm-es5/duet-slideout-lang.entry.js +0 -4
  1165. package/lib/esm-es5/duet-slideout-link.entry.js +0 -4
  1166. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +0 -4
  1167. package/lib/esm-es5/duet-slideout-panel.entry.js +0 -4
  1168. package/lib/esm-es5/duet-slideout.entry.js +0 -4
  1169. package/lib/esm-es5/duet-step_2.entry.js +0 -4
  1170. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +0 -4
  1171. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +0 -4
  1172. package/lib/esm-es5/duet-submenu-bar-item.entry.js +0 -4
  1173. package/lib/esm-es5/duet-submenu-bar-link.entry.js +0 -4
  1174. package/lib/esm-es5/duet-submenu-bar.entry.js +0 -4
  1175. package/lib/esm-es5/duet-textarea.entry.js +0 -4
  1176. package/lib/esm-es5/duet-toggle.entry.js +0 -4
  1177. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +0 -4
  1178. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +0 -4
  1179. package/lib/esm-es5/duet-toolbar-item.entry.js +0 -4
  1180. package/lib/esm-es5/duet-toolbar-link.entry.js +0 -4
  1181. package/lib/esm-es5/duet-toolbar.entry.js +0 -4
  1182. package/lib/esm-es5/duet-tooltip-button_2.entry.js +0 -4
  1183. package/lib/esm-es5/duet-tooltip.entry.js +0 -4
  1184. package/lib/esm-es5/duet-tray.entry.js +0 -4
  1185. package/lib/esm-es5/duet-upload-aria-status.entry.js +0 -4
  1186. package/lib/esm-es5/duet-upload-item.entry.js +0 -4
  1187. package/lib/esm-es5/duet-visually-hidden.entry.js +0 -4
  1188. package/lib/esm-es5/duet.js +0 -4
  1189. package/lib/esm-es5/errorcodes.utils-d9431251.js +0 -4
  1190. package/lib/esm-es5/floating-ui.dom.esm-ebc91b33.js +0 -4
  1191. package/lib/esm-es5/focus-utils-adcd9463.js +0 -4
  1192. package/lib/esm-es5/form-search-ea8e19ae.js +0 -4
  1193. package/lib/esm-es5/index-1d0b7c66.js +0 -5
  1194. package/lib/esm-es5/index.js +0 -3
  1195. package/lib/esm-es5/input-utils-85681162.js +0 -4
  1196. package/lib/esm-es5/is-internet-explorer-2c48f686.js +0 -4
  1197. package/lib/esm-es5/js-utils-9b9e0039.js +0 -4
  1198. package/lib/esm-es5/keyboard-utils-439bcc8b.js +0 -4
  1199. package/lib/esm-es5/label-ce262202.js +0 -4
  1200. package/lib/esm-es5/language-utils-14969cef.js +0 -4
  1201. package/lib/esm-es5/loader.js +0 -4
  1202. package/lib/esm-es5/slot-utils-4e5ed4eb.js +0 -4
  1203. package/lib/esm-es5/string-utils-192eb3c8.js +0 -4
  1204. package/lib/esm-es5/teleport-546f382d.js +0 -4
  1205. package/lib/esm-es5/themeable-component-860041c5.js +0 -4
  1206. package/lib/esm-es5/token-utils-b9ba8c5e.js +0 -4
  1207. package/lib/esm-es5/tokens-84fb2357.js +0 -4
  1208. package/lib/esm-es5/tokens.module-2d02f5ff.js +0 -4
  1209. package/lib/esm-es5/watch-options-e96ecd92.js +0 -4
  1210. package/lib/loader/package.json +0 -11
  1211. /package/lib/cjs/{body-scroll-dba42314.js → body-scroll-FWPe3_T_.js} +0 -0
  1212. /package/lib/cjs/{bodyScrollLock.es6-dd2d7d91.js → bodyScrollLock.es6-B2sCDud5.js} +0 -0
  1213. /package/lib/cjs/{create-id-1f8c438f.js → create-id-DtslnIOq.js} +0 -0
  1214. /package/lib/cjs/{input-utils-1096a2c5.js → input-utils-DUKdslOM.js} +0 -0
  1215. /package/lib/cjs/{is-internet-explorer-e7f58ebc.js → is-internet-explorer-BTLb_loH.js} +0 -0
  1216. /package/lib/cjs/{js-utils-92e24ba1.js → js-utils-hJ4A2edy.js} +0 -0
  1217. /package/lib/cjs/{string-utils-7b13c16e.js → string-utils-B35hEUBv.js} +0 -0
  1218. /package/lib/duet/{p-8354d1f1.js → p-B1B-PPrh.js} +0 -0
  1219. /package/lib/duet/{p-9e371678.js → p-BlUsLmbQ.js} +0 -0
  1220. /package/lib/duet/{p-fc09c464.js → p-C6CAT054.js} +0 -0
  1221. /package/lib/duet/{p-9c3c64b9.js → p-C6E9F6QT.js} +0 -0
  1222. /package/lib/duet/{p-df7874f9.js → p-CLDy7YaM.js} +0 -0
  1223. /package/lib/duet/{p-5e59e970.js → p-Cfr_DJqU.js} +0 -0
  1224. /package/lib/duet/{p-43b89e38.js → p-DxESMgwA.js} +0 -0
  1225. /package/lib/{dist-custom-elements/p-fc09c464.js → esm/body-scroll-C6CAT054.js} +0 -0
  1226. /package/lib/{dist-custom-elements/p-8354d1f1.js → esm/bodyScrollLock.es6-B1B-PPrh.js} +0 -0
  1227. /package/lib/{dist-custom-elements/p-5e59e970.js → esm/create-id-Cfr_DJqU.js} +0 -0
  1228. /package/lib/{dist-custom-elements/p-df7874f9.js → esm/input-utils-CLDy7YaM.js} +0 -0
  1229. /package/lib/{dist-custom-elements/p-43b89e38.js → esm/is-internet-explorer-DxESMgwA.js} +0 -0
  1230. /package/lib/{dist-custom-elements/p-9e371678.js → esm/js-utils-BlUsLmbQ.js} +0 -0
  1231. /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(t,e,a,i){function o(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,n){function r(t){try{u(i.next(t))}catch(t){n(t)}}function s(t){try{u(i["throw"](t))}catch(t){n(t)}}function u(t){t.done?a(t.value):o(t.value).then(r,s)}u((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,o,n,r;return r={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function s(t){return function(e){return u([t,e])}}function u(s){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(a=0)),a)try{if(i=1,o&&(n=s[0]&2?o["return"]:s[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;if(o=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:a.label++;return{value:s[1],done:false};case 5:a.label++;o=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(s[0]===6&&a.label<n[1]){a.label=n[1];n=s;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(s);break}if(n[2])a.ops.pop();a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t];o=0}finally{i=n=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,h,H as Host,g as getElement,c as createEvent}from"./index-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{h as hasSlot,b as getElementsFromDefaultSlot}from"./slot-utils-4e5ed4eb.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange,o as isTabKey,p as isShiftTabKey,d as isArrowLeftKey,b as isArrowUpKey,a as isArrowRightKey,c as isArrowDownKey}from"./keyboard-utils-439bcc8b.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver,a as getLanguage}from"./language-utils-14969cef.js";import{d as getShadowByName}from"./token-utils-b9ba8c5e.js";import{c as createID}from"./create-id-149a1b6d.js";import"./string-utils-192eb3c8.js";import"./tokens.module-2d02f5ff.js";var duetScrollableCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}:host{position:relative !important}:host .duet-scrollable-items{position:relative;display:flex}:host .duet-scrollable-items .duet-scrollable-fade-overlay{position:absolute;bottom:0;z-index:250;display:block;width:10px;height:100%;pointer-events:none;transition:transform 300ms ease}:host .duet-scrollable-items .duet-scrollable-fade-overlay--hidden{display:none}:host .duet-scrollable-items:not(.buttons) .duet-scrollable-fade-overlay{}:host .duet-scrollable-items:not(.buttons) .duet-scrollable-fade-overlay.left{left:calc(0px - 10px);background-image:linear-gradient(to right, rgb(255, 255, 255), rgba(255, 255, 255, 0))}:host .duet-scrollable-items:not(.buttons) .duet-scrollable-fade-overlay.right{right:calc(0px - 10px);background-image:linear-gradient(to left, rgb(255, 255, 255), rgba(255, 255, 255, 0))}:host .duet-scrollable-items.buttons .duet-scrollable-fade-overlay.left{left:calc(40px - 10px);background-image:linear-gradient(to right, rgb(255, 255, 255), rgba(255, 255, 255, 0))}:host .duet-scrollable-items.buttons .duet-scrollable-fade-overlay.right{right:calc(40px - 10px);background-image:linear-gradient(to left, rgb(255, 255, 255), rgba(255, 255, 255, 0))}:host .duet-scrollable-items.buttons .duet-scrollable-button-container{position:relative;flex:0 0 auto;flex-basis:40px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--occluded{flex-basis:0;flex-shrink:1;width:0;padding:10px 0;overflow:hidden;visibility:hidden}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button{position:absolute;display:flex;flex:0 0 auto;flex-basis:40px;align-items:center;height:100%;cursor:pointer;transition:transform 300ms ease}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button:active duet-icon{transition:transform 300ms ease;transform:scale(0.8)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--left{left:0;padding:10px 10px 10px 0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--right{right:0;padding:10px 0 10px 10px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--top{align-items:flex-start}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--bottom{align-items:flex-end}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button[hidden]{display:none !important}:host .duet-scrollable-items .duet-scrollable-list{display:flex;flex-wrap:nowrap;gap:20px;padding-right:10px;padding-left:10px;margin:0 -10px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scroll-snap-type:x mandatory;scroll-behavior:smooth;scroll-margin:0 20px;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;}:host .duet-scrollable-items .duet-scrollable-list:not(.buttons){white-space:normal}:host .duet-scrollable-items .duet-scrollable-list::-webkit-scrollbar{display:none}:host .duet-scrollable-items .duet-scrollable-list.collapsed{flex-wrap:wrap}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--xx-small{padding-top:4px;padding-bottom:4px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--x-small{padding-top:8px;padding-bottom:8px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--small{padding-top:12px;padding-bottom:12px}:host .duet-scrollable-items .duet-scrollable-list.duet-overflow-padding--medium{padding-top:16px;padding-bottom:16px}:host .duet-scrollable-items.center{justify-content:center}:host .duet-scrollable-items.center .duet-scrollable-list.collapsed{justify-content:center}.collapse{width:100%;text-align:center}.collapse.hide{visibility:hidden}::slotted(*){flex-shrink:0;margin-left:0;-webkit-transition:-webkit-transform 0.2s ease-in-out;transition:-webkit-transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;scroll-snap-align:center}";var DuetScrollableStyle0=duetScrollableCss;var DuetScrollable=function(){function t(t){var e=this;registerInstance(this,t);this.currentIndex=0;this.scrollPaneElement=undefined;this.hasCollapseButtonLabelSlot=false;this.resizeObserver=new ResizeObserver((function(t){if((t===null||t===void 0?void 0:t.length)===1){e.checkScrollingNeeded(t[0].target)}}));this.collapsedOnClick=function(){e.collapsed=!e.collapsed};this.scrollPaneAtStart=true;this.needsScrolling=true;this.scrollPaneAtEnd=false;this.childrenData={};this.theme="";this.identifier="";this.collapsed=false;this.buttons=true;this.buttonAlignment="center";this.center=false;this.padding="none";this.selected=0}t.prototype.watchPropHandler=function(t){this.scrollToElement(t,"center")};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasCollapseButtonLabelSlot=hasSlot(this.element,"collapse-button-label")};t.prototype.componentDidLoad=function(){var t=this;requestAnimationFrame((function(){if(t.scrollPaneElement){t.checkScrollingNeeded();t.updateScrollButtons();t.resizeObserver.observe(t.scrollPaneElement)}}))};t.prototype.disconnectedCallback=function(){this.resizeObserver.disconnect()};t.prototype.getScrollPaneElements=function(){return getElementsFromDefaultSlot(this.element)};t.prototype.checkScrollingNeeded=function(t,e){if(t===void 0){t=this.scrollPaneElement}if(e===void 0){e=10}if(!t){return}var a=t.getBoundingClientRect().width;var i=t.scrollWidth;this.needsScrolling=i>a+e;if(!this.needsScrolling){this.scrollPaneAtStart=true;this.scrollPaneAtEnd=true}else{this.updateScrollButtons()}};t.prototype.getLastVisibleElement=function(){var t=this;var e=this.getScrollPaneElements().find((function(e){return e.getBoundingClientRect().x+e.getBoundingClientRect().width-t.scrollPaneElement.getBoundingClientRect().x>t.scrollPaneElement.clientWidth}));var a=this.getScrollPaneElements().indexOf(e);if(e.clientWidth>this.scrollPaneElement.clientWidth){return a}return a-1};t.prototype.getFirstVisibleElement=function(){var t=this;var e=this.getScrollPaneElements();var a=e.find((function(e){return e.getBoundingClientRect().x>t.scrollPaneElement.getBoundingClientRect().x}));var i=!a?e.length:e.indexOf(a);var o=Math.max(i-1,0);if(e[o].clientWidth>this.scrollPaneElement.clientWidth){return o}return i};t.prototype.updateScrollButtons=function(t,e){if(t===void 0){t=null}if(e===void 0){e=this.scrollPaneElement}if(!this.buttons){return}if(t&&t.clientWidth>this.scrollPaneElement.clientWidth){var a=this.getScrollPaneElements().indexOf(t);if(a==0){this.scrollPaneAtStart=true}if(a==this.getScrollPaneElements().length-1){this.scrollPaneAtEnd=true}return}if(e.scrollLeft<=0){this.scrollPaneAtStart=true}else if(e.scrollLeft>0){this.scrollPaneAtStart=false}if(e.clientWidth+e.scrollLeft+10>=e.scrollWidth){this.scrollPaneAtEnd=true}else if(e.clientWidth+e.scrollLeft+10<e.scrollWidth){this.scrollPaneAtEnd=false}};t.prototype.scrollToElement=function(t,e){var a=this;if(t===void 0){t=this.currentIndex}var i=this.getScrollPaneElements();if(!i||i.length===0){return}if(t+1>=i.length){t=i.length-1}if(t<0){t=0}var o=i[0].getBoundingClientRect().x;var n=5;var r=function(){if(i[0].getBoundingClientRect().x===o){n--;if(n!==0){window.requestAnimationFrame(r);return}a.updateScrollButtons(i[t])}else{window.requestAnimationFrame(r);o=i[0].getBoundingClientRect().x}};i[t].scrollIntoView({behavior:"smooth",block:"nearest",inline:e});window.requestAnimationFrame(r)};t.prototype.scrollLeft=function(){this.scrollPaneAtEnd=false;var t=this.getFirstVisibleElement();this.scrollToElement(t-1,"center")};t.prototype.scrollRight=function(){this.scrollPaneAtStart=false;var t=this.getLastVisibleElement();this.scrollToElement(t+1,"center")};t.prototype.renderFadeOverlay=function(t){var e;return h("div",{class:(e={"duet-scrollable-fade-overlay":true,"duet-scrollable-fade-overlay--hidden":!this.needsScrolling},e["".concat(t)]=true,e)})};t.prototype.renderButton=function(t){var e,a;var i=this;var o=this.theme==="turva"?"color-primary-darker-turva":"color-primary";var n=this.theme==="turva"?"color-gray-turva":"color-gray";var r=function(){if(t==="left"){i.scrollLeft()}else{i.scrollRight()}};var s=t==="left"?this.scrollPaneAtStart:this.scrollPaneAtEnd;return h("div",{class:(e={"duet-scrollable-button-container":true},e["".concat(t)]=true,e["duet-scrollable-button-container--occluded"]=!this.needsScrolling,e)},h("span",{part:"".concat(this.identifier,"-button-").concat(t),"aria-hidden":"true",class:(a={"duet-scrollable-button":true},a["duet-scrollable-button--".concat(this.buttonAlignment)]=true,a["duet-scrollable-button--".concat(t)]=true,a),onClick:function(){r();if(document.activeElement){document.activeElement.blur()}},hidden:!this.buttons||s},h("duet-icon",{color:s?n:o,name:t==="left"?"action-arrow-left":"action-arrow-right",size:"small",margin:"none"})))};t.prototype.render=function(){var t;var e=this;return h(Host,{key:"a615541856004f499ebf50d5e5608767efb8b93f",class:{"duet-theme-turva":this.theme==="turva","duet-theme-default":this.theme==="default"}},this.hasCollapseButtonLabelSlot&&h("div",{key:"f94e6cbc5b8e816e690081c52850d86da9e0c7e6",class:{collapse:true,hide:!this.needsScrolling&&!this.collapsed}},h("duet-button",{key:"9bb20f2bf9d4cc10917024919804a036d69b28dc",variation:"plain",margin:"none","center-text":true,onClick:function(){return e.collapsedOnClick()}},h("slot",{key:"02222171b679ea3ee4f6e931a37ba7ffb1670f09",name:"collapse-button-label"}))),h("div",{key:"bfafba89bd0c00e36d3c71b7aea5a292f073316c",class:{"duet-scrollable-items":true,buttons:this.buttons,center:this.center}},this.buttons&&this.renderButton("left"),this.renderFadeOverlay("left"),h("div",{key:"8c8b72b33792da063fb60d24522ab10a242744f8",class:(t={"duet-scrollable-list":true,collapsed:this.collapsed},t["duet-overflow-padding--".concat(this.padding)]=this.padding!=="none",t),onScroll:function(){return e.updateScrollButtons()},ref:function(t){return e.scrollPaneElement=t}},h("slot",{key:"80ac0420e2b267216fcddfe290981cfcb4a42efb"})),this.renderFadeOverlay("right"),this.buttons&&this.renderButton("right")))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:["watchPropHandler"]}},enumerable:false,configurable:true});return t}();DuetScrollable.style=DuetScrollableStyle0;var duetTabCss=":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-tab{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:none;width:100%}.duet-tab.selected{display:block}.duet-tab.has-content-id,.duet-tab.has-content-id.selected{display:none}:host(.user-is-tabbing) .duet-tab:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-tab.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";var DuetTabStyle0=duetTabCss;var DuetTab=function(){function t(t){var e=this;registerInstance(this,t);this.setupContentElement=function(){if(e.contentId){e.tabpanelElement=document.getElementById(e.contentId);if(e.tabpanelElement){e.tabpanelElement.setAttribute("role","tabpanel");e.tabpanelElement.setAttribute("tabindex","-1");e.tabpanelElement.removeEventListener("focus",e.tabpanelElementFocusListener);e.tabpanelElement.removeEventListener("blur",e.tabpanelElementBlurListener);e.tabpanelElement.addEventListener("focus",e.tabpanelElementFocusListener);e.tabpanelElement.addEventListener("blur",e.tabpanelElementBlurListener);if(e.accessibleDescription){e.tabpanelElement.setAttribute("aria-description",e.accessibleDescription)}if(e.accessibleLabelledBy){e.tabpanelElement.setAttribute("aria-labelledby",e.accessibleLabelledBy)}if(e.selected){e.tabpanelElement.toggleAttribute("hidden",false)}else{e.tabpanelElement.toggleAttribute("hidden",true)}}}};this.tabpanelElementFocusListener=function(){if(e.element.classList.contains("user-is-tabbing")){e.tabpanelElement.style.outline="0";e.tabpanelElement.style.boxShadow=getShadowByName(e.theme==="turva"?"focus-turva":"focus")}};this.tabpanelElementBlurListener=function(){e.tabpanelElement.style.outline=null;e.tabpanelElement.style.boxShadow=null};this.theme="";this.label=undefined;this.caption=undefined;this.selected=undefined;this.notificationMark=undefined;this.accessibleDescriptionDefault=null;this.accessibleDescription=this.accessibleDescriptionDefault?getLocaleString(this.accessibleDescriptionDefault):null;this.accessibleLabelledBy=undefined;this.contentId=undefined}t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleDescription",defaults:"accessibleDescriptionDefault"});subscribeTabbingChange(this);this.setupContentElement()};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);unsubscribeTabbingChange(this);if(this.tabpanelElement){this.tabpanelElement.removeEventListener("focus",this.tabpanelElementFocusListener.bind(this));this.tabpanelElement.removeEventListener("blur",this.tabpanelElementBlurListener.bind(this));this.tabpanelElement=undefined}};t.prototype.setupSelected=function(t,e){if(!!t===!!e){return}this.setupContentElement()};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.tabpanelElement.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;return h("div",{key:"59ef255c0b4a74dfce1a9c826163b9d7e6bf2e6a",ref:function(e){if(!t.contentId){t.tabpanelElement=e}},role:"tabpanel",class:{"duet-theme-turva":this.theme==="turva","duet-tab":true,selected:this.selected,"has-content-id":!!this.contentId},"aria-description":this.accessibleDescription,"aria-labelledby":this.accessibleLabelledBy,tabindex:"-1"},h("slot",{key:"578fe62eaf0bc30216b55f128f04463b7fe5eb88"}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:["setupSelected"]}},enumerable:false,configurable:true});return t}();DuetTab.style=DuetTabStyle0;var duetTabGroupCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;display:block;width:100%}.duet-tab-group-tabs{margin-bottom:28px !important;display:block;width:100%;max-width:100%;padding-top:2px;list-style:none}.duet-tab-group-tabs.duet-m-0{margin:0 !important}.duet-tab-group-tabs.duet-tab-group-collapses.duet-tab-group-hidden{display:none}@media (min-width: 36em){.duet-tab-group-tabs.duet-tab-group-collapses.duet-tab-group-hidden{display:block}}.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom:1px solid rgb(212, 223, 229)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom-color:rgb(222, 224, 228)}.duet-tab-variation-checked .duet-tab-group-tabs{display:flex;gap:4px;padding-right:12px;padding-left:12px;overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-variation-checked .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-group-tabs{gap:8px;padding-right:16px;padding-left:16px;overflow:visible}}.duet-tab-plain-scrolling .duet-tab-group-tabs{display:flex;overflow-x:scroll;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-plain-scrolling .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-plain-scrolling .duet-tab-group-tabs{display:block;overflow:auto}}@media (min-width: 36em){duet-select{display:none !important}}.duet-tab-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:20px;margin-top:-2px;overflow:visible;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.1;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer;background:rgb(255, 255, 255);border:2px solid rgb(212, 223, 229);border-radius:0;transition:150ms ease}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button.duet-m-0{margin:0 !important}.duet-tab-button.duet-notification-mark-warning::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(247, 178, 40);box-shadow:0 0 0 1px #dea024}.duet-tab-variation-plain .duet-tab-button.duet-notification-mark-warning::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-tab-button.duet-notification-mark-danger::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(214, 28, 82);box-shadow:0 0 0 1px #c1194a}.duet-tab-variation-plain .duet-tab-button.duet-notification-mark-danger::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-theme-turva .duet-tab-button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(222, 224, 228)}.duet-theme-turva .duet-tab-button.duet-notification-mark-warning::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(247, 178, 40);box-shadow:0 0 0 1px #dea024}.duet-tab-variation-plain .duet-theme-turva .duet-tab-button.duet-notification-mark-warning::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-theme-turva .duet-tab-button.duet-notification-mark-danger::after{position:absolute;top:6px;right:6px;display:inline-block;width:6px;height:6px;content:"";border-radius:50%;background:rgb(214, 28, 82);box-shadow:0 0 0 1px #c1194a}.duet-tab-variation-plain .duet-theme-turva .duet-tab-button.duet-notification-mark-danger::after{top:calc(50% - 0.5rem - 6px);right:-6px}.duet-tab-button.duet-p-0{padding:0 !important}@media (min-width: 36em){.duet-tab-button{display:inline-block;width:auto;margin-left:-2px;border-right:2px solid rgb(212, 223, 229);border-radius:0}}.duet-tab-button:hover{z-index:200;border-color:rgb(127, 150, 165)}.duet-theme-turva .duet-tab-button:hover{border-color:rgb(143, 147, 158)}.duet-tab-button:active{opacity:0.75;transition:none}.duet-tab-button.selected{z-index:201;color:rgb(255, 255, 255);background:rgb(8, 42, 77);border-color:rgb(8, 42, 77);outline:0;box-shadow:none !important}.duet-theme-turva .duet-tab-button.selected{color:rgb(255, 255, 255);background-color:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.duet-tab-button:focus{z-index:200;outline:0}:host(.user-is-tabbing) .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3 !important}:host(.user-is-tabbing) .duet-theme-turva .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-tab-button:first-child{border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.duet-tab-button:first-child{border-top-right-radius:0;border-bottom-left-radius:4px}}.duet-tab-button:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-tab-button:last-child{border-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}}.duet-tab-variation-plain .duet-tab-button{display:inline-block;width:auto;padding-right:0;padding-left:0;margin-left:0;border:0;border-radius:0;transition:none}.duet-tab-variation-plain .duet-tab-button+.duet-tab-button{margin-left:36px}.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(0, 119, 179);background:rgb(255, 255, 255);border-bottom:3px solid rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(198, 12, 48);border-bottom-color:rgb(198, 12, 48)}.duet-tab-variation-checked .duet-tab-button{position:relative;display:inline-block;flex-basis:0;flex-grow:1;width:200px;min-width:200px;padding:8px 4px;border-color:rgb(181, 198, 208);border-bottom-color:rgb(0, 119, 179);border-radius:4px 4px 0 0;transition:none}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button{border-color:rgb(181, 198, 208);border-bottom-color:rgb(113, 118, 132)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button{min-width:0;padding:16px}}.duet-tab-variation-checked .duet-tab-button.stackable-tab{min-width:0}.duet-tab-variation-checked .duet-tab-button:first-child{margin-left:auto}.duet-tab-variation-checked .duet-tab-button:last-child{margin-right:auto}.duet-tab-variation-checked .duet-tab-button:active{opacity:1;transition:none}.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(0, 119, 179);background:linear-gradient(180deg, rgb(240, 247, 250) 0%, rgb(255, 255, 255) 100%);border-color:rgb(0, 119, 179);border-bottom-color:#fff}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(23, 28, 58);background:linear-gradient(180deg, rgb(245, 247, 250) 0%, rgb(255, 255, 255) 100%);border-color:rgb(113, 118, 132);border-bottom-color:#fff}.duet-tab-variation-checked .duet-tab-button .checked-tab-content{display:flex;flex-direction:row;justify-content:space-between}.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:column;height:100%}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:row}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description{display:flex;flex-direction:column;overflow:hidden;overflow-wrap:break-word}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:center}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:left}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{margin-top:4px;font-size:0.875rem;font-weight:400;color:rgb(98, 121, 138)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{font-size:1rem;text-align:left}}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{color:rgb(113, 118, 132)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(113, 118, 132)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:-1;margin-top:8px;margin-bottom:8px}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:1}}.duet-tab-group-content{position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-align:left}.duet-tab-group-content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3 !important}.duet-theme-turva .duet-tab-group-content:focus,.duet-tab-group-content:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a !important}.duet-tab-group-content.checked-group-content{padding:28px 0 28px 0}.duet-tab-group-content.checked-group-content::after{position:absolute;top:-2px;left:0;width:100%;height:2px;content:" ";background-color:rgb(0, 119, 179)}.duet-theme-turva .duet-tab-group-content{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-theme-turva .duet-tab-group-content.checked-group-content::after{background-color:rgb(113, 118, 132)}';var DuetTabGroupStyle0=duetTabGroupCss;var DuetTabGroup=function(){function t(t){var e=this;registerInstance(this,t);this.duetChange=createEvent(this,"duetChange",3);this.duetTabChange=createEvent(this,"duetTabChange",7);this.duetTabChangeRequested=createEvent(this,"duetTabChangeRequested",7);this.id=createID("DuetTabGroup");this.handleKeyDown=function(t){var a;if(isArrowLeftKey(t)||isArrowUpKey(t)){a=t.target.previousElementSibling}else if(isArrowRightKey(t)||isArrowDownKey(t)){a=t.target.nextElementSibling}if(isTabKey(t)&&!isShiftTabKey(t)){t.preventDefault();e.element.querySelector("duet-tab[selected]").setFocus()}if(a){t.preventDefault();a.click();a.focus()}};this.onTabSelect=function(t){if(e.tabChangeConfirm){if(t!==e.selected){var a={value:t,component:"duet-tab-group"};e.duetTabChangeRequested.emit(a)}}else{e.openTab(t)}};this.scrollToActive=function(){if(e.variation==="checked"||e.variation==="plain-scrolling"){setTimeout((function(){var t=e.tabsContainer.querySelector(".selected");if(t){t.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}}),50)}};this.renderTab=function(){var t=e.tabs.map((function(t,a){var i;return h("button",{role:"tab",id:e.getButtonId(a),"aria-selected":t.selected?"true":"false","aria-description":e.getAccessibleDescription(a),tabindex:t.selected?"0":"-1",part:"".concat(e.identifier,"-button ").concat(t.selected?"".concat(e.identifier,"-button--selected"):""),type:"button",class:(i={"duet-p-0":e.padding==="none","duet-tab-button":true,"stackable-tab":e.variation==="checked"&&e.tabs.length<=3,selected:t.selected},i["duet-notification-mark-".concat(t.notificationMark)]=!!t.notificationMark,i),onClick:function(){return e.onTabSelect(a)},onKeyDown:function(t){return e.handleKeyDown(t)}},e.variation==="checked"?h("div",{class:{"checked-tab-content":true,"stackable-checked-tab-content":e.tabs.length<=3}},h("div",{class:{"checked-tab-description":true,"stackable-description":e.tabs.length<=3}},h("p",null,t.label),h("p",{class:{"tab-caption":true,selected:t.selected}},t.caption)),h("div",{class:{"stackable-checkmark":e.tabs.length<=3}},h("duet-checkmark",{theme:e.theme,checked:t.selected,type:"radio","presentation-only":true,center:true}))):t.label)}));if(e.scrolls){return h("duet-scrollable",{selected:e.selected,identifier:e.identifier},t)}return t};this.tabs=[];this.selected=undefined;this.theme="";this.scrolls=false;this.collapses=true;this.accessibleLabel=undefined;this.variation="default";this.language=getLanguage();this.labelDefaults={fi:"Valitse",en:"Choose",sv:"Välj"};this.label=getLocaleString(this.labelDefaults,this.language);this.labelHidden=true;this.identifier=this.id;this.margin="auto";this.padding="auto";this.setTabIndex=true;this.tabChangeConfirm=false}t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){switch(e.label){case 0:if(typeof MutationObserver!=="undefined"){this.mutationO=new MutationObserver((function(){t.updateTabs()}));this.mutationO.observe(this.element,{attributes:true,attributeFilter:["label"],childList:true,characterData:true,subtree:true})}return[4,this.updateTabs()];case 1:e.sent();subscribeTabbingChange(this);return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}unsubscribeTabbingChange(this)};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.componentDidLoad=function(){this.scrollToActive()};t.prototype.openTab=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){if(t>=this.tabs.length){throw new Error("[duet-tabs] Index ".concat(t," is out of bounds of tabs length"))}this.selected=t;this.tabs.forEach((function(e,a){e.selected=a===t}));this.scrollToActive();e={value:t,component:"duet-tab-group"};this.duetChange.emit(e);this.duetTabChange.emit(e);return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){console.log("[duet-tabs] Refresh method is deprecated and will be removed in the future version.");return[2]}))}))};t.prototype.getTabs=function(){var t=this;var e=Array.from(this.element.querySelectorAll("duet-tab"));var a=e.filter((function(e){return e.closest("duet-tab-group")===t.element}));if(a.length===0){throw new Error("[duet-tabs] Must have at least one tab")}return a};t.prototype.getButtonId=function(t){return"".concat(this.id,"-button-").concat(t)};t.prototype.getTabId=function(t){return"".concat(this.id,"-tab-").concat(t)};t.prototype.getAccessibleDescription=function(t){var e=this.tabs[t].getAttribute("accessible-description")||null;return e};t.prototype.updateTabs=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this.selected=undefined;this.tabs=this.getTabs();this.tabs.forEach((function(e,a){e.id=t.getTabId(a);if(e.selected){if(t.selected===undefined){t.selected=a}else{e.selected=false}}}));if(this.selected===undefined){this.selected=0;this.tabs[0].selected=true}return[2]}))}))};t.prototype.render=function(){var t;var e=this;var a=this.variation==="plain-scrolling"?"duet-tab-variation-plain":"duet-tab-variation-".concat(this.variation);var i=this.variation==="checked"||this.variation==="plain-scrolling";return h("div",{key:"e0f45c74bfcf70ef285031d2cefe9676f73fa1a1",class:(t={"duet-tab-group":true,"duet-theme-turva":this.theme==="turva"},t[a]=true,t["duet-tab-plain-scrolling"]=this.variation==="plain-scrolling",t["duet-tab-group-scrolls"]=this.scrolls,t["duet-tab-group-collapses"]=this.collapses,t),"aria-label":this.accessibleLabel},!i&&this.tabs.length>3&&this.collapses&&h("duet-select",{key:"67a5b742600e566ff2217a3145ce9f7ab2a70aa1",value:this.selected.toString(),expand:true,label:this.label,labelHidden:this.labelHidden,theme:this.theme,onDuetChange:function(t){return e.onTabSelect(Number(t.detail.value))},items:this.tabs.map((function(t,e){return{label:t.label,value:e.toString()}}))}),h("div",{key:"85da5c9758a9440e31caac2659f44157e65ad2fa",role:"tablist",class:{"duet-m-0":this.margin==="none"||this.variation==="checked","duet-tab-group-tabs":true,"duet-tab-group-hidden":this.tabs.length>3&&!i,"duet-tab-group-collapses":this.collapses},ref:function(t){e.tabsContainer=t}},this.renderTab()),h("div",{key:"e44faf2ce5439c15cce9afa44b09a96b028fa228",class:{"duet-tab-group-content":true,"duet-m-0":this.margin==="none","checked-group-content":this.variation==="checked"}},h("slot",{key:"ef3760dd2409dbc0e5cc35cb5e5e173a83817667"})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetTabGroup.style=DuetTabGroupStyle0;export{DuetScrollable as duet_scrollable,DuetTab as duet_tab,DuetTabGroup as duet_tab_group};
@@ -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-1d0b7c66.js";import{i as isInternetExplorer}from"./is-internet-explorer-2c48f686.js";var duetSectionLayoutCss="*,*::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;flex:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout-wrapper{display:block;margin:48px 0 36px;overflow-x:clip}@media (min-width: 36em){.duet-layout-wrapper{margin-top:72px}}@media (min-width: 62em){.duet-layout-wrapper{margin-bottom:48px}}.duet-layout-wrapper.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout-wrapper>*{width:100%}.duet-layout{position:relative;padding:0 16px;margin:0 auto}@media (max-width: 20.5em){.duet-layout.padding-xxx-small{padding:0}}@media (max-width: 22.5em){.duet-layout.padding-xx-small{padding:0}}@media (max-width: 35.9375em){.duet-layout.padding-x-small{padding:0}}@media (min-width: 36em){.duet-layout.padding-small{padding:0}}@media (min-width: 48em){.duet-layout.padding-medium{padding:0}}@media (min-width: 62em){.duet-layout.padding-large{padding:0}}@media (min-width: 64.0625em){.duet-layout.padding-x-large{padding:0}}@media (min-width: 76.25em){.duet-layout.padding-xx-large{padding:0}}@media (min-width: 106.25em){.duet-layout.padding-xxx-large{padding:0}}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main{display:block;width:100%}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}}";var DuetSectionLayoutStyle0=duetSectionLayoutCss;var DuetSectionLayout=function(){function e(e){registerInstance(this,e);this.margin="auto";this.middle=false;this.paddingBreakpoint=undefined}e.prototype.render=function(){var e;return h(Host,{key:"883281c4d36620c02a5129bf0869df95cfefb080",class:{"duet-middle":this.middle,"duet-ie":isInternetExplorer()}},h("div",{key:"ded8633d4a4715dc90e7c5af1fd541a12f2ee2ed",class:{"duet-layout-wrapper":true,"duet-m-0":this.margin==="none"}},h("div",{key:"d95357d7a48dc127142e992a03093b3c702f48f5",class:(e={"duet-layout":true},e["padding-".concat(this.paddingBreakpoint)]=!!this.paddingBreakpoint,e)},h("section",{key:"02b0d5d37ad5d0d54cb35da96240641a8a215104",class:"duet-main"},h("slot",{key:"451accf2ba4c6147d461b426821cf8dc60276830"})))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSectionLayout.style=DuetSectionLayoutStyle0;export{DuetSectionLayout as duet_section_layout};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,o){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function n(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o["throw"](e))}catch(e){r(e)}}function l(e){e.done?i(e.value):a(e.value).then(n,s)}l((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,a,r,n;return n={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return l([e,t])}}function l(s){if(o)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(i=0)),i)try{if(o=1,a&&(r=s[0]&2?a["return"]:s[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;if(a=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=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(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(s[0]===6&&i.label<r[1]){i.label=r[1];r=s;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(s);break}if(r[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];a=0}finally{o=r=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-1d0b7c66.js";import{D as DuetInternalLabel}from"./label-ce262202.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{c as checkNamedSlotElement}from"./slot-utils-4e5ed4eb.js";import{p as parsePossibleJSON}from"./string-utils-192eb3c8.js";var duetSelectCss='.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;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(:not(.duet-m-0)){margin-right:16px !important;margin-bottom:12px !important}:host(:not(.duet-m-0)):last-child,:host(:not(.duet-m-0)):last-of-type{margin-right:0 !important}@media (min-width: 36em){:host(.duet-expand){width:100% !important}}:host(.duet-select-variation-tiny),:host(.duet-select-variation-compact){position:relative;top:-2px;width:72px;margin:0;vertical-align:baseline}:host(.duet-select-variation-compact){width:auto}duet-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-select-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-select-container{position:relative;width:100%}.duet-select-container.duet-select-variation-tiny{width:72px}.duet-select-wrapper{position:relative;width:100%;padding:15px 14px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25}.duet-theme-turva .duet-select-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-select-variation-tiny .duet-select-wrapper{width:81px;padding:0 !important}.duet-select-variation-compact .duet-select-wrapper{padding:0 !important;line-height:1}.duet-select-wrapper select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:200;width:100%;height:100%;padding:0;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;cursor:pointer;border:0;outline:none;opacity:0}.duet-theme-turva .duet-select-wrapper select{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-select-wrapper select:hover+.duet-select{border-color:rgb(127, 150, 165);box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-select-wrapper select:hover+.duet-select{border-color:rgb(143, 147, 158);box-shadow:0 0 0 1px #747475}.has-error .duet-select-wrapper select:hover+.duet-select{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-select-wrapper select:hover+.duet-select{box-shadow:0 0 0 1px #e55039}.duet-select-wrapper select:focus+.duet-select{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-select-wrapper select:focus+.duet-select{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.duet-theme-turva .duet-select-wrapper select:focus+.duet-select .duet-select-icon{color:rgb(23, 28, 58)}.duet-select-wrapper select:focus+.duet-select .duet-select-icon{color:rgb(0, 119, 179)}.has-error .duet-select-wrapper select:focus+.duet-select{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-select-wrapper select:focus+.duet-select{box-shadow:0 0 0 1px #e55039}.duet-select-wrapper select[disabled]{cursor:default !important}.duet-select-wrapper select[disabled]+.duet-select{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-select-wrapper select[disabled]+.duet-select{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-select-wrapper span.duet-keep-container-height{opacity:0}.duet-select-variation-compact .duet-select-wrapper span.duet-keep-container-height{display:none}.duet-select{position:absolute;top:0;right:0;bottom:0;left:0;z-index:100;display:block;width:100%;min-width:8rem;padding:12px 14px !important;padding-right:48px !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;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.has-error .duet-select{border-color:rgb(214, 28, 82) !important}.has-error .duet-select .duet-select-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-select{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-select .duet-select-icon{color:rgb(214, 28, 82) !important}.duet-theme-turva .duet-select{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-select svg{position:absolute;top:50%;right:16px;z-index:200;width:20px;height:20px;color:rgb(8, 42, 77);pointer-events:none;transform:translateY(-50%)}.duet-theme-turva .duet-select svg{color:rgb(23, 28, 58)}.duet-select-variation-tiny .duet-select,.duet-select-variation-compact .duet-select{width:72px;min-width:inherit;padding:0 !important;margin-bottom:-4px;overflow:visible;font-weight:600;text-align:center}.duet-select-variation-tiny .duet-select duet-icon,.duet-select-variation-compact .duet-select duet-icon{padding-left:10px}.duet-select-variation-compact .duet-select{position:relative;width:fit-content;padding:7px 16px !important;font-size:0.875rem;line-height:1.1;text-align:right;border-radius:8px}.duet-select-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-select-help span{display:block;margin-top:8px}.duet-theme-turva .duet-select-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-select-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-select-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 DuetSelectStyle0=duetSelectCss;function isOptionGroup(e){return"options"in e}function findOptionByValue(e,t){for(var i=0;i<e.length;i++){var o=e[i];if(isOptionGroup(o)){o=findOptionByValue(o.options,t)}if(o&&o.value===t){return o}}}var DuetSelect=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.selectId=createID("DuetSelect");this.errorId=createID("DuetError");this.labelId=createID("DuetLabel");this.topCaptionId=createID("DuetCaptionTop");this.topCaptionPlaceholderId=createID("DuetCaptionPlaceholderTop");this.onClick=function(e){e.stopPropagation()};this.onChange=function(){t.value=t.nativeSelect.value;t.duetChange.emit({value:t.value,component:"duet-select"})};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-select"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-select"})};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=null;this.variation="default";this.accessibleActiveDescendant=undefined;this.accessibleDescribedBy=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleOwns=undefined;this.error="";this.accessibleLiveError="polite";this.expand=false;this.value=undefined;this.theme="";this.labelHidden=false;this.identifier=undefined;this.name=undefined;this.placeholder="";this.caption=undefined;this.echoPlaceholder=false;this.items=undefined;this.disabled=false;this.required=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.role=undefined;this.tooltip="";this.tooltipDirection="auto"}e.prototype.valueChanged=function(){if(this.nativeSelect){this.nativeSelect.value=this.value}this.isCaptionVisible=!!this.caption};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.isCaptionVisible=!!this.caption;checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true);this.refresh()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.nativeSelect){this.nativeSelect.focus(e)}return[2]}))}))};e.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.processedItems=parsePossibleJSON(this.items);return[2]}))}))};e.prototype.getSelectedItemLabel=function(){var e;if(this.processedItems){e=findOptionByValue(this.processedItems,this.value)}return e?e.label:this.placeholder||""};e.prototype.renderOption=function(e){return h("option",{"aria-label":e.ariaLabel,value:e.value,key:e.value,selected:this.value===e.value,disabled:e.disabled},e.label)};e.prototype.renderOptionGroup=function(e){var t=this;return h("optgroup",{key:e.label,label:e.label,disabled:e.disabled},e.options.map((function(e){return t.renderOption(e)})))};e.prototype.render=function(){var e,t,i;var o=this;var a=this.identifier||this.selectId;return h(Host,{key:"847b57caa876d33226540190655ebad3853321a6",onClick:this.onClick,class:(e={"duet-m-0":this.margin==="none","duet-expand":this.expand},e["duet-select-variation-".concat(this.variation)]=true,e)},h("div",{key:"cd440b3b4732daf0682e132f0d8882749b44fb58",class:(t={"duet-select-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva"},t["duet-select-variation-".concat(this.variation)]=true,t["duet-input-top-caption-shown"]=this.isCaptionVisible,t["has-error"]=!!this.error,t)},h(DuetInternalLabel,{key:"f5a95e470436a18716d2e8776fdc3c797462cc17",theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:a},this.label),this.tooltip&&h("duet-tooltip",{key:"4596fd07d9e1e2b54c1a1ecd1a4b11d9a252d64b",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),h("slot",{key:"534a7a1d55d25a1bac04d7e875eedea92b750401",name:"tooltip"}),this.caption&&h("duet-caption",{key:"f6209eb669879a3ffd5e3f75c22635a3a43420cf",id:this.topCaptionId,size:"medium"},this.caption),h("div",{key:"c3fdbdee82e459e1799fd579e9d9ef72e3875afb",class:"duet-select-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&h("duet-caption",{key:"15f9255e6167fb72ef530e01b11d220684e46ba8",id:this.topCaptionPlaceholderId,class:"duet-select-placeholder",size:"small"},this.placeholder),h("select",{key:"548ce61c3912e40c99466af3191224b2d11c1104",ref:function(e){return o.nativeSelect=e},disabled:this.disabled,name:this.name,id:a,role:this.role,"aria-labelledby":this.labelId,"aria-describedby":this.getDescribedBy(),"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,required:this.required},this.placeholder&&h("option",{key:"fce5373b96ac5d37357ddec517c50cac493005e7",disabled:true,selected:true,value:""},this.placeholder),!this.processedItems?h("option",null,"Virhe valintoja ladattaessa. Päivitä sivu ja kokeile uusiksi."):this.processedItems.map((function(e){return isOptionGroup(e)?o.renderOptionGroup(e):o.renderOption(e)}))),h("div",{key:"27bcfaaa3cb88cba2bd54a46bad51c2a1a077010",class:(i={"duet-select":true},i["duet-select-variation-".concat(this.variation)]=true,i),"aria-hidden":"true"},h("span",{key:this.value,class:"duet-select-selected-value"},this.getSelectedItemLabel()),this.variation==="default"&&h("svg",{key:"5ff56760239bbf6df5fd1196c431bb0d2922ce40",role:"img",class:"duet-select-icon",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},h("path",{key:"af31312140ff712064d8549cb23cc6132e72d1cc",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("duet-icon",{key:"662ea26357efc0545567b0878932aba619a02e8c",theme:this.theme,name:"action-arrow-down-small",color:"currentColor",margin:"none",size:this.variation==="compact"?"xxx-small":"xx-small"})),h("span",{key:"084a9edb74ffb5de18b3dbb737fd18feb04582ef",class:"duet-keep-container-height",role:"presention","aria-hidden":"true"},"_")),h("span",{key:"59fda925694a93e39fca62495ba1164a6a046ca4",class:"duet-select-help",id:this.errorId,"aria-live":this.accessibleLiveError,"aria-atomic":"true","aria-relevant":"additions removals"},this.error&&h("span",{key:"40def81c304d6e95679f9078ebacaee423d2682b"},this.error))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueChanged"],items:["refresh"]}},enumerable:false,configurable:true});return e}();DuetSelect.style=DuetSelectStyle0;export{DuetSelect as duet_select};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,h,H as Host}from"./index-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetShapedImageCss='*,*::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;width:100%;height:100%;margin:5%}:host(.duet-theme-turva){margin:3%}:host(.duet-m-0){margin:0}.shaped-image{position:relative;display:inline-block;width:100%;height:100%}.shaped-image .shaped-image-mask{position:relative;display:block;width:100%;height:100%;overflow:hidden;border-radius:25%;transform:rotate(var(--rotation))}.shaped-image .shaped-image-mask .shaped-image-img{position:relative;display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:center;background-size:cover;transform:scale(1.07) rotate(calc(-1 * var(--rotation)));transform-origin:center}:host(.duet-theme-turva) .shaped-image .shaped-image-mask{transform:none;-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}:host(.duet-theme-turva) .shaped-image .shaped-image-mask .shaped-image-img{transform:none}';var DuetShapedImageStyle0=duetShapedImageCss;var DuetShapedImage=function(){function e(e){registerInstance(this,e);this.theme="";this.accessibleLabel=undefined;this.margin="auto";this.src=undefined;this.rotation=7}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e={"--rotation":"".concat(this.rotation,"deg")};return h(Host,{key:"dcaade25a4513e5f2d4d3bd518e2c799003d4275",class:{"duet-theme-turva":this.theme==="turva","duet-m-0":this.margin==="none"}},h("span",{key:"780b2751e70e2ec3ab3d4b10944f35276cbce6f5",class:{"shaped-image":true},role:"img","aria-label":this.accessibleLabel,style:e},h("span",{key:"5f69b32a95213f6537bcee749c3dd150aa2d8e16",class:"shaped-image-mask",role:"presentation"},h("span",{key:"7e86facd6020a261ed81bd150a1f2d6155c6cef3",class:"shaped-image-img",role:"presentation",style:{backgroundImage:'url("'.concat(this.src,'")')}}))))};return e}();DuetShapedImage.style=DuetShapedImageStyle0;export{DuetShapedImage as duet_shaped_image};
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{i as isKeyboardClick}from"./keyboard-utils-439bcc8b.js";import{a as getLanguage,g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-14969cef.js";import"./string-utils-192eb3c8.js";var duetShowMoreCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block}.duet-show-more{margin-bottom:16px !important;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77)}.duet-show-more.duet-m-0{margin:0 !important}.duet-show-more .slotted-content{display:none}.duet-show-more.open .slotted-content{display:block}.duet-show-more .content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-show-more.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-show-more.duet-theme-turva .content:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}';var DuetShowMoreStyle0=duetShowMoreCss;var DuetShowMore=function(){function e(e){var t=this;registerInstance(this,e);this.duetToggle=createEvent(this,"duetToggle",7);this.contentId=createID("DuetShowMore");this.buttonId=createID("DuetShowMoreButton");this.handleKeyDown=function(e){if(isKeyboardClick(e)){t.handleClick(e)}};this.handleClick=function(e){e.preventDefault();var s=!t.open;t.open=s;if(s){setTimeout((function(){t.contentElement.focus()}),100);setTimeout((function(){t.buttonAriaOpen=s}),500)}else{t.buttonAriaOpen=s}t.duetToggle.emit({component:"duet-show-more",originalEvent:e})};this.buttonAriaOpen=false;this.theme="";this.language=getLanguage();this.showMoreLabelDefaults={fi:"Näytä lisää",sv:"Visa mer",en:"Show more"};this.showMoreLabel=getLocaleString(this.showMoreLabelDefaults);this.showLessLabelDefaults={fi:"Näytä vähemmän",sv:"Visa mindre",en:"Show less"};this.showLessLabel=getLocaleString(this.showLessLabelDefaults);this.showMoreAccessibleLabelDefaults={fi:"Näytä lisää tästä aiheesta",sv:"Visa mer om detta ämne",en:"Show more about this subject"};this.showMoreAccessibleLabel=getLocaleString(this.showMoreAccessibleLabelDefaults);this.showLessAccessibleLabelDefaults={fi:"Näytä vähemmän tästä aiheesta",sv:"Visa mindre om detta ämne",en:"Show less about this subject"};this.showLessAccessibleLabel=getLocaleString(this.showLessAccessibleLabelDefaults);this.margin="auto";this.buttonMargin="auto";this.buttonPadding="auto";this.open=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.buttonAriaOpen=this.open};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,[{prop:"showMoreLabel",defaults:"showMoreLabelDefaults"},{prop:"showLessLabel",defaults:"showLessLabelDefaults"},{prop:"showMoreAccessibleLabel",defaults:"showMoreAccessibleLabelDefaults"},{prop:"showLessAccessibleLabel",defaults:"showLessAccessibleLabelDefaults"}])};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){var e=this;return h(Host,{key:"7aabc68122e39e13570c288807ddf7217bf2c794"},h("div",{key:"d6624d52f08b44fd3a8bc120e4b91f27c7780930",class:{"duet-show-more":true,"duet-theme-turva":this.theme==="turva","duet-m-0":this.margin==="none",open:this.open}},h("div",{key:"ae9e3f907c01acca68e65d494d95d5cb94fc98dc",ref:function(t){return e.contentElement=t},class:{content:true},id:this.contentId,tabindex:this.open?"0":""},h("div",{key:"b48162785643ad6cf19317034330292fb9b68d35",class:{"slotted-content":true}},h("slot",{key:"fbf4b3787e4da0aece2faa1572b17d2f90e5a305"}))),h("duet-button",{key:"607c79dca958f12c36b480232904934bfd75c2b7",id:this.buttonId,variation:"plain","accessible-label":this.buttonAriaOpen?this.showLessAccessibleLabel:this.showMoreAccessibleLabel,"accessible-expanded":this.buttonAriaOpen?"true":"false","accessible-controls":this.contentId,accessiblePressed:this.open,onClick:this.handleClick,onKeyDown:this.handleKeyDown,"icon-right":true,icon:this.open?"action-arrow-up-small":"action-arrow-down-small","icon-size":"medium-small",size:"small",margin:this.buttonMargin,padding:this.buttonPadding,theme:this.theme==="turva"?"turva":"default"},h("span",{key:"fc42b31d2ecdc7f250776565b6dc19fba34d3919"},this.open?this.showLessLabel:this.showMoreLabel))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetShowMore.style=DuetShowMoreStyle0;export{DuetShowMore as duet_show_more};
@@ -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-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver,g as getLocaleString}from"./language-utils-14969cef.js";import"./string-utils-192eb3c8.js";var duetSlideoutLangCss='*,*::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-slideout-lang{display:flex;gap:20px;align-items:center;justify-content:flex-start;width:min-content;white-space:nowrap}::slotted(*){position:relative}::slotted(:not(:first-child)){padding-right:0;padding-left:0.5rem}::slotted(:not(:last-child))::after{position:absolute;top:25%;right:-16px;width:2px;height:50%;content:"";background:rgb(8, 42, 77)}.duet-theme-turva ::slotted(:not(:last-child))::after{background:rgb(23, 28, 58)}';var DuetSlideoutLangStyle0=duetSlideoutLangCss;var DuetSlideoutLang=function(){function e(e){registerInstance(this,e);this.chooseLangObject={en:"Choose language",fi:"Valitse kieli",sv:"Välj språk"};this.language=getLanguage();this.theme=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this)};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){var e=getLocaleString(this.chooseLangObject);return h(Host,{key:"ddcf74f6f9956aed294267c44d303dd55fbe3787"},h("div",{key:"c2ba37177d4da127cda839a185f10e710fa15b27",class:"duet-slideout-lang",role:"group","aria-label":e},h("duet-icon",{key:"2bd80d6e4172136199b09a0d253000cee7b32755",name:"navigation-language",margin:"none",color:"secondary"}),h("slot",{key:"c5cd4fb6164fb66b1f29e54a22f3f5ce9d598313"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSlideoutLang.style=DuetSlideoutLangStyle0;export{DuetSlideoutLang as duet_slideout_lang};
@@ -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-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetSlideoutLinkCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}.duet-slideout-link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 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:inherit;font-weight:inherit;line-height:1.25;color:inherit;text-align:left;text-decoration:none}.duet-slideout-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-slideout-link:focus,.duet-slideout-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-link.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-slideout-link.active span{position:relative}.duet-slideout-link.active span::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:var(--active-height, 2px);content:"";background:rgb(0, 119, 179);transform:var(--active-translate-y, translateY(2px))}.duet-slideout-link.active.duet-theme-turva span::after{background:rgb(198, 12, 48)}.duet-slideout-link.small{font-size:1rem;font-weight:600}.duet-slideout-link.small span::after{--active-height:1px;--active-translate-y:1px}.duet-slideout-link.medium{font-size:1.25rem;font-weight:600}.duet-slideout-link.large{font-size:1.5rem;font-weight:800}.duet-slideout-link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}slot[name=description]::slotted(*){display:block;padding:8px 0 0;font-size:1rem;font-size:1.25;font-weight:400;color:rgb(98, 121, 138)}.duet-theme-turva slot[name=description]::slotted(*){color:rgb(113, 118, 132)}';var DuetSlideoutLinkStyle0=duetSlideoutLinkCss;var DuetSlideoutLink=function(){function e(e){registerInstance(this,e);this.accessibleLabel=undefined;this.theme="";this.targetLanguage=undefined;this.active=false;this.href="#";this.icon=undefined;this.size="inherit";this.caret=false;this.menuItem=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.render=function(){var e;return h(Host,{key:"027e3177eadbb7b1088621004a4f7f68408ac8e2"},h("a",{key:"3b6ce366fa7b130eaa334549877432208a39f3ae",class:(e={"duet-slideout-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},e[this.size]=true,e),href:this.href,"aria-current":this.active?"true":"false",lang:this.targetLanguage,hreflang:this.targetLanguage,"aria-label":this.accessibleLabel},this.icon&&h("duet-icon",{key:"bcdbd8ccd3efea6d4c8c5ba4ae777081aab436fb",name:this.icon,color:"secondary",size:this.menuItem?"x-small":"medium",margin:"none"}),h("div",{key:"2105537967051cfce46c9a186cb5f44d874cf93e",class:"label"},h("span",{key:"d39b5d6d226c4d63e12c15f3bdc90ff77ec4d403"},h("slot",{key:"9281d4780b5f92907b6c714c398b1d6878f1ce2e"}),h("slot",{key:"3660468cfff291bab3a352d533e77daf9bff1ed4",name:"description"})),this.caret&&h("duet-icon",{key:"ba4668517c998df298bd8935d4f25ef7ad4c6970",name:"action-arrow-right",color:"secondary",size:"x-small",margin:"none"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSlideoutLink.style=DuetSlideoutLinkStyle0;export{DuetSlideoutLink as duet_slideout_link};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function r(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o["throw"](e))}catch(e){a(e)}}function l(e){e.done?n(e.value):i(e.value).then(r,s)}l((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,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 l([e,t])}}function l(s){if(o)throw new TypeError("Generator is already executing.");while(r&&(r=0,s[0]&&(n=0)),n)try{if(o=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{o=a=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,h,H as Host,g as getElement}from"./index-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetSlideoutPanelDropdownCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:-0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel-dropdown{position:relative;width:100%;height:100%}.duet-slideout-panel-dropdown button{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 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:1.25rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none;cursor:pointer}.duet-slideout-panel-dropdown button .label{position:relative;display:flex;gap:0.5rem;align-items:center;justify-content:center}.duet-slideout-panel-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel-dropdown button.active .label::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:calc(100% - 18px);height:1px;content:"";background:rgb(0, 119, 179);transform:translateY(1px)}.duet-slideout-panel-dropdown .items{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;max-height:1000px;padding:4px 20px 8px 44px;overflow-y:auto;visibility:visible;transition:max-height 0.3s ease-in, padding-bottom 0.3s ease-in;-ms-overflow-style:none;scrollbar-width:none}.duet-slideout-panel-dropdown .items::-webkit-scrollbar{display:none}.duet-slideout-panel-dropdown .items.hidden{max-height:0;padding:0;overflow:hidden;visibility:hidden;transition:max-height 0.3s ease-out, padding-bottom 0.3s ease-out}.duet-slideout-panel-dropdown.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout-panel-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel-dropdown.duet-theme-turva button.active .label::after{background:rgb(198, 12, 48)}slot{--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:400;color:rgb(8, 42, 77)}.duet-theme-turva slot{color:rgb(23, 28, 58)}slot[name=label]{font-size:1rem;font-weight:600}';var DuetSlideoutPanelDropdownStyle0=duetSlideoutPanelDropdownCss;var DuetSlideoutPanelDropdown=function(){function e(e){var t=this;registerInstance(this,e);this.onClick=function(){t.open=!t.open};this.theme="";this.active=false;this.open=false;this.icon=undefined}e.prototype.handleFocus=function(e){var t=this;var n=e.composedPath().every((function(e){return e!==t.element}));if(n){this.open=false}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);var e=this.element.querySelectorAll("duet-slideout-link");e.forEach((function(e){e.menuItem=true}))};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.button.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return h(Host,{key:"d473e124378cf692756294cbc4b63ece1c24fa37"},h("div",{key:"555568422a4a461d1687f9524152552d06214e81",class:{"duet-slideout-panel-dropdown":true,"duet-theme-turva":this.theme==="turva",active:this.open}},h("button",{key:"54f92eef148b91fb1649a00e797489545b9c0ae5",ref:function(t){return e.button=t},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{active:this.active},onClick:this.onClick},this.icon&&h("duet-icon",{key:"5e2e285e54edbd2b5178e0caf582ad4ae63da2ed",name:this.icon,size:"medium",margin:"none",color:"secondary"}),h("span",{key:"55fc2889f31dc259aea19bf6c758dcb38630feed",class:"label"},h("slot",{key:"fd41a86f0c71f73e589940ad8910143439f4f739",name:"label"}),h("duet-icon",{key:"35236f2cd06ad8fc37299319e1430bc92059fd12",class:"caret",name:"action-arrow-down-small",margin:"none",size:"xx-small",color:"secondary"}))),h("div",{key:"d9b4c34b5e9ca0611f1a1eed1dda3fd2ad8627d7",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:true,hidden:!this.open}},h("slot",{key:"746111498d9301b53d6a7d835296ab60e149eaae"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSlideoutPanelDropdown.style=DuetSlideoutPanelDropdownStyle0;export{DuetSlideoutPanelDropdown as duet_slideout_panel_dropdown};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,a,i){function o(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,n){function s(e){try{r(i.next(e))}catch(e){n(e)}}function l(e){try{r(i["throw"](e))}catch(e){n(e)}}function r(e){e.done?a(e.value):o(e.value).then(s,l)}r((i=i.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:[]},i,o,n,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return r([e,t])}}function r(l){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(a=0)),a)try{if(i=1,o&&(n=l[0]&2?o["return"]:l[0]?o["throw"]||((n=o["return"])&&n.call(o),0):o.next)&&!(n=n.call(o,l[1])).done)return n;if(o=0,n)l=[l[0]&2,n.value];switch(l[0]){case 0:case 1:n=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;o=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(n=a.trys,n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){a.label=l[1];break}if(l[0]===6&&a.label<n[1]){a.label=n[1];n=l;break}if(n&&a.label<n[2]){a.label=n[2];a.ops.push(l);break}if(n[2])a.ops.pop();a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e];o=0}finally{i=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,h,H as Host,g as getElement}from"./index-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{e as enableBodyScroll,d as disableBodyScroll}from"./body-scroll-46854769.js";import{F as FocusGuard}from"./focus-utils-adcd9463.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver,g as getLocaleString}from"./language-utils-14969cef.js";import{h as hasSlot}from"./slot-utils-4e5ed4eb.js";import{g as getColorByName}from"./token-utils-b9ba8c5e.js";import"./string-utils-192eb3c8.js";import"./tokens.module-2d02f5ff.js";var duetSlideoutPanelCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;height:100%}:host slot:not([name=label])::slotted(*){position:relative;top:0.5rem;opacity:0;transition:top 0.3s ease-in, opacity 0.3s ease-in}:host([open]) slot:not([name=label])::slotted(*){top:0;opacity:1}.duet-slideout-panel{position:relative;height:100%}.duet-slideout-panel .link{position:relative;display:flex;gap:20px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:8px 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:1.5rem;font-weight:800;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-slideout-panel .link .duet-slideout-icon{position:relative;display:inline-flex;font-size:0;line-height:normal;vertical-align:baseline}.duet-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{position:absolute;top:0;left:16px;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-slideout-panel .link .duet-slideout-icon .duet-slideout-badge{background:rgb(247, 178, 40)}@media (min-width: 62em){.duet-slideout-panel .link .duet-slideout-icon{margin-right:8px}}.duet-slideout-panel .link .label{display:flex;gap:0.5rem;align-items:center;justify-content:space-between;width:100%}.duet-slideout-panel .link .label-text.small{font-size:1rem;font-weight:600}.duet-slideout-panel .link .label-text.medium{font-size:1.25rem;font-weight:600}.duet-slideout-panel .link .label-text.large{font-size:1.5rem;font-weight:800}.duet-slideout-panel .link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .link.active .label-text{position:relative}.duet-slideout-panel .link.active .label-text.small::after{height:1px;transform:translateY(1px)}.duet-slideout-panel .link.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:2px;content:"";background:rgb(0, 119, 179);transform:translateY(2px)}.duet-slideout-panel .dialog{position:fixed;top:0;left:0;z-index:600;width:100%;height:100%;overflow-y:auto;visibility:visible}.duet-slideout-panel .dialog.hidden{visibility:hidden}.duet-slideout-panel .dialog.hidden .top .back,.duet-slideout-panel .dialog.hidden .top span{opacity:0}.duet-slideout-panel .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout-panel .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout-panel .top-container.has-sticky-header-slot .sticky-header{display:block;padding:0 16px}.duet-slideout-panel .top{display:flex;align-items:center;justify-content:space-between;padding:4px}.duet-slideout-panel .top .back{opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .top .back:focus,.duet-slideout-panel .top .close:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout-panel .top duet-icon{padding:16px}.duet-slideout-panel .top span{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);opacity:1;transition:top 0.3s ease-in, opacity 0.3s ease-in}.duet-slideout-panel .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout-panel .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:1rem 16px;overflow-y:auto;color:rgb(8, 42, 77)}.duet-slideout-panel.duet-theme-turva .link{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-slideout-panel.duet-theme-turva .link:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .link.active .label-text::after{background:rgb(198, 12, 48)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout-panel.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout-panel.duet-theme-turva .top .back:focus,.duet-slideout-panel.duet-theme-turva .top .close:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout-panel.duet-theme-turva .top span{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)}slot:not([name=label]){--active-height:1px;--active-translate-y:translateY(1px);font-size:1rem;font-weight:600;color:rgb(8, 42, 77)}.duet-theme-turva slot:not([name=label]){color:rgb(23, 28, 58)}';var DuetSlideoutPanelStyle0=duetSlideoutPanelCss;var DuetSlideoutPanel=function(){function e(e){var t=this;registerInstance(this,e);this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"};this.backLangObject={en:"Back to main menu",fi:"Takaisin päävalikkoon",sv:"Tillbaka till huvudmenyn"};this.hasStickyHeaderSlot=false;this.updateLabel=function(){var e=t.element.querySelector("[slot='label']");t.label=e};this.toggleMenu=function(){t.open=!t.open};this.onClick=function(){t.toggleMenu()};this.onCloseClick=function(e){e.stopPropagation();var a=t.element.parentElement;if(a.tagName==="DUET-SLIDEOUT"){var i=t.element.parentElement;enableBodyScroll(t.dialog);t.bodyScrollLocked=false;i.toggle()}};this.label=undefined;this.language=getLanguage();this.bodyScrollLocked=false;this.theme="";this.active=false;this.open=false;this.icon=undefined;this.labelSize="medium";this.backgroundColor="primary-lightest";this.badge=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.updateLabel();this.hasStickyHeaderSlot=hasSlot(this.element,"sticky-header")};e.prototype.connectedCallback=function(){var e=this;connectLanguageChangeObserver(this);this.mutationObserver=new MutationObserver((function(){var t=e.element.parentElement;if(t.tagName==="DUET-SLIDEOUT"){var a=e.element.parentElement;if(a.open&&e.open&&!e.bodyScrollLocked){e.bodyScrollLocked=true;disableBodyScroll(e.dialog,{reserveScrollBarGap:true})}else if(!a.open&&e.bodyScrollLocked){e.bodyScrollLocked=false;enableBodyScroll(e.dialog)}}}));this.mutationObserver.observe(this.element.parentElement,{childList:false,attributeFilter:["open"],subtree:false})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);if(this.dialog){enableBodyScroll(this.dialog);this.bodyScrollLocked=false}if(this.mutationObserver){this.mutationObserver.disconnect()}};e.prototype.handleOpenChange=function(e,t){var a=this;if(!!e===!!t){return}if(this.open&&!t){setTimeout((function(){var e=Array.from(a.element.parentElement.children);e.forEach((function(e){if(e!==a.element){e.inert=true}}));if(!a.bodyScrollLocked){disableBodyScroll(a.dialog,{reserveScrollBarGap:true});a.bodyScrollLocked=true}a.closeButton.focus()}),200)}else if(!this.open&&t){setTimeout((function(){var e=Array.from(a.element.parentElement.children);e.forEach((function(e){e.inert=false}));a.openButton.focus();enableBodyScroll(a.dialog);a.bodyScrollLocked=false}),200)}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(a){if(this.open){setTimeout((function(){t.closeButton.focus(e)}),200)}else{setTimeout((function(){t.openButton.focus(e)}),200)}return[2]}))}))};e.prototype.render=function(){var e;var t=this;var a=this.backgroundColor==="primary-lightest"?this.theme==="turva"?"gray-lighter":this.backgroundColor:this.backgroundColor;var i={background:getColorByName(a,this.theme)};var o=getLocaleString(this.exitLangObject);var n=getLocaleString(this.backLangObject);return h(Host,{key:"3cc575a27526f9eb936cc77fbd5d73fae704a02e"},h("div",{key:"54f6df02833967cc73e36fea9e3bc054e9b6aa73",class:{"duet-slideout-panel":true,"duet-theme-turva":this.theme==="turva",active:this.open}},h("button",{key:"2757a9e467ee80835f260ea3631fbe561f2aabf5",ref:function(e){return t.openButton=e},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{link:true,active:this.active},onClick:this.onClick,inert:this.open},this.icon&&h("div",{key:"227406b6650708fc7fd1904d7c7d528692edaf64",class:"duet-slideout-icon"},h("duet-icon",{key:"36401c7328497294e9c894e9dd6d27937a51c494",name:this.icon,size:"medium",margin:"none",color:"secondary"}),this.badge&&h("div",{key:"7e06124b0bd84ab528b325885bc3c0babbd08742",class:"duet-slideout-badge"})),h("span",{key:"9a846cb510d44c0af591554b22f23efab9560448",class:"label"},h("span",{key:"6307191c9aa066915943fc6111c8c9de795c13cb",class:(e={"label-text":true},e[this.labelSize]=true,e)},h("slot",{key:"c52bc96f6bd93f8183fd8f05d551218a0f67e637",name:"label"})),h("duet-icon",{key:"74c42ebef00e4feeb6205718db4b7ef1315d3855",class:"caret",name:"action-arrow-right",margin:"none",size:"x-small",color:"secondary"}))),h("div",{key:"bc171acb5cbbe6c929fdb639dc3aa6bfb11740b1",ref:function(e){return t.dialog=e},class:{dialog:true,hidden:!this.open},style:i},h(FocusGuard,{key:"4db620b5032b9f8b5f37a4ba07ad387fc38b680f",moveFocusTo:this.closeButton}),h("div",{key:"8a4b956558e630cf3ab6b148a94bfbde4300b7ea",class:{"top-container":true,"has-sticky-header-slot":this.hasStickyHeaderSlot}},h("div",{key:"ddd353e3cf2e9d4d938cd9402e440459a64809af",class:"top"},h("button",{key:"7fcb43d03e0a15af4a12f67e7b2810efb595d02b",ref:function(e){return t.closeButton=e},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-label":"".concat(n),type:"button",class:{back:true},onClick:this.onClick},h("duet-icon",{key:"98891c6a2349246b457f003ed501770a2289afe7",class:"caret",name:"action-arrow-left",margin:"none",size:"small",color:"secondary"})),h("span",{key:"1b052537ae01f496e1d175c6f99134048278c3fd"},this.label.innerHTML),h("button",{key:"8b4098001333b24d00d1dde0a39f9b6ee9b065cc",class:"close",type:"button",onClick:this.onCloseClick,"aria-label":"".concat(o)},h("duet-icon",{key:"d0e70007d5554ddb18292fa3d90a136198c89c3a",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),h("div",{key:"a3abfbd5e6b8616670c4ba95ba76ba89b5d84f70",class:"sticky-header"},h("slot",{key:"0276df7b3885dfe4b806db392e6f1a2000df5894",name:"sticky-header"}))),h("div",{key:"20894d6bbfece88c8094cef54fede14b97469ead",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:true}},h("slot",{key:"e6fa25439fd7062824cc0fae6b4c7cb2e258f089"})),h(FocusGuard,{key:"9cb7008c88d6f03f06a0e027c8fd174277b99fd6",moveFocusTo:this.closeButton}))))};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}();DuetSlideoutPanel.style=DuetSlideoutPanelStyle0;export{DuetSlideoutPanel as duet_slideout_panel};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,o){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,n){function s(t){try{d(o.next(t))}catch(t){n(t)}}function r(t){try{d(o["throw"](t))}catch(t){n(t)}}function d(t){t.done?i(t.value):a(t.value).then(s,r)}d((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,a,n,s;return s={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function r(t){return function(e){return d([t,e])}}function d(r){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,r[0]&&(i=0)),i)try{if(o=1,a&&(n=r[0]&2?a["return"]:r[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,r[1])).done)return n;if(a=0,n)r=[r[0]&2,n.value];switch(r[0]){case 0:case 1:n=r;break;case 4:i.label++;return{value:r[1],done:false};case 5:i.label++;a=r[1];r=[0];continue;case 7:r=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(r[0]===6||r[0]===2)){i=0;continue}if(r[0]===3&&(!n||r[1]>n[0]&&r[1]<n[3])){i.label=r[1];break}if(r[0]===6&&i.label<n[1]){i.label=n[1];n=r;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(r);break}if(n[2])i.ops.pop();i.trys.pop();continue}r=e.call(t,i)}catch(t){r=[6,t];a=0}finally{o=n=0}if(r[0]&5)throw r[1];return{value:r[0]?r[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-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{e as enableBodyScroll,d as disableBodyScroll}from"./body-scroll-46854769.js";import{f as focusElement,F as FocusGuard}from"./focus-utils-adcd9463.js";import{f as isEscapeKey}from"./keyboard-utils-439bcc8b.js";import{a as getLanguage,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver,g as getLocaleString}from"./language-utils-14969cef.js";import{h as hasSlot}from"./slot-utils-4e5ed4eb.js";import{T as Teleport}from"./teleport-546f382d.js";import{g as getColorByName}from"./token-utils-b9ba8c5e.js";import"./string-utils-192eb3c8.js";import"./tokens.module-2d02f5ff.js";var duetSlideoutCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute;height:100%}::slotted(*){position:relative;width:100%;visibility:hidden;opacity:0}:host([open]:not([open=false])) ::slotted(*){visibility:visible;opacity:1}:host(:not([open])) ::slotted(duet-slideout-panel){display:none}.duet-slideout{display:flex;align-items:center;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-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77)}.duet-slideout.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}@media (min-width: 62em){.duet-slideout.duet-theme-turva .desktop-bg{background:rgb(23, 28, 58)}}.duet-slideout .dialog{position:fixed;top:0;bottom:0;left:0;z-index:600;width:100%;height:100%;padding-bottom:75px;overflow-y:auto;box-shadow:0 3px 6px 0 rgba(0, 41, 77, 0.1) inset}.duet-slideout .dialog:not(.modal){box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 62em){.duet-slideout .dialog{right:0;left:auto;width:500px;padding-bottom:0;transition:right 300ms ease;transition-delay:0s}}.duet-slideout .dialog .top-container.has-sticky-header-slot{position:sticky;top:0;z-index:200}.duet-slideout .dialog .top-container.has-sticky-header-slot .top{background:rgb(240, 247, 250)}.duet-slideout .dialog .top-container.has-sticky-header-slot .sticky-header{display:block}.duet-slideout .dialog .top{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;padding:4px}.duet-slideout .dialog .top button{cursor:pointer}.duet-slideout .dialog .top button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-slideout .dialog .top duet-icon{padding:16px}.duet-slideout .dialog .sticky-header{display:none;width:100%;padding:0 1.5rem;margin-bottom:20px;background:rgb(240, 247, 250);border-bottom:1px solid rgb(212, 223, 229)}.duet-slideout .dialog .items{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:100%;padding:0 1.5rem}.duet-slideout .dialog.hidden{pointer-events:none;visibility:hidden}@media (min-width: 62em){.duet-slideout .dialog.hidden{right:-500px;transition:300ms ease}}.duet-slideout.duet-theme-turva .dialog{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1) inset}.duet-slideout.duet-theme-turva .dialog:not(.modal){box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}.duet-slideout.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-slideout.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-slideout.duet-theme-turva button.active{color:rgb(198, 12, 48)}.duet-slideout.duet-theme-turva button.active::after{background:rgb(198, 12, 48)}.duet-slideout.duet-theme-turva .has-sticky-header-slot .top{background:rgb(245, 247, 250)}.duet-slideout.duet-theme-turva .has-sticky-header-slot .sticky-header{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-slideout.duet-theme-turva .dialog .top button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}slot{color:rgb(8, 42, 77)}.duet-theme-turva slot{color:rgb(23, 28, 58)}';var DuetSlideoutStyle0=duetSlideoutCss;var DuetSlideout=function(){function t(t){var e=this;registerInstance(this,t);this.duetSlideoutEvent=createEvent(this,"duetSlideoutEvent",7);this.exitLangObject={en:"Exit the menu",fi:"Poistu valikosta",sv:"Avsluta menyn"};this.topLevelOpenMenuBarLangObject={en:"Exit this menu to find top level items",fi:"Poistu tästä valikosta löytääksesi ylätason kohteet",sv:"Stäng den här menyn för att hitta objekt på toppnivå"};this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(navigator===null||navigator===void 0?void 0:navigator.userAgent);this.hasStickyHeaderSlot=false;this.setOpenButton=function(t){if(!t){return}try{var i=t;i.accessiblePopup="true";i.accessibleExpanded=false;e.openButton=i}catch(t){}};this.setStickHeaderStyleMutations=function(t){if(t===void 0){t=false}var i=e.element.querySelectorAll('[slot="sticky-header"] duet-tab-group');i.forEach((function(e){e.style.position=t?null:"relative";e.style.top=t?null:"1px"}))};this.openButtonEventListener=function(t){e.onClick(t)};this.getOpenPanel=function(){return e.element.querySelector("duet-slideout-panel[open]")};this.toggleMenu=function(t){e.open=!e.open;e.duetSlideoutEvent.emit({originalEvent:t,data:{element:e.element,open:e.open},component:"duet-slideout"})};this.onClick=function(t){e.toggleMenu(t)};this.language=getLanguage();this.displaying=false;this.openPanel=false;this.theme="";this.accessibleRole="menubar";this.open=false;this.backgroundColor="gray-lightest";this.modal=true}Object.defineProperty(t.prototype,"opener",{get:function(){return this._opener},set:function(t){if(this.opener===t){return}if(typeof t==="string"){this.setOpenButton(document.getElementById(t));if(this.openButton){this.openButton.addEventListener("click",this.openButtonEventListener)}}else{this.setOpenButton(t)}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"controller",{get:function(){return this._opener},set:function(t){this.opener=t},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasStickyHeaderSlot=hasSlot(this.element,"sticky-header")};t.prototype.connectedCallback=function(){var t=this;connectLanguageChangeObserver(this);if(!this.teleport){this.teleport=new Teleport(this.element)}if(this.teleport){this.teleport.activate()}this.setStickHeaderStyleMutations();this.mutationObserver=new MutationObserver((function(){t.openPanel=!!t.getOpenPanel()}));this.mutationObserver.observe(this.element,{childList:true,attributeFilter:["open"],subtree:true})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this);if(this.dialog&&this.modal){enableBodyScroll(this.dialog)}if(this.mutationObserver){this.mutationObserver.disconnect()}if(this.openButton){this.openButton.removeEventListener("click",this.openButtonEventListener)}this.setStickHeaderStyleMutations(true)};t.prototype.handleOpenChange=function(t,e){var i=this;if(!!t===!!e){return}if(this.open&&!e){if(this.openButton){this.openButton.accessibleExpanded=true}var o=this.getOpenPanel();this.teleport.makeSiblingsInert();if(this.modal){disableBodyScroll(this.dialog,{reserveScrollBarGap:true})}if(o){o.setFocus()}else{setTimeout((function(){i.closeButton.focus()}),200)}}else if(!this.open&&e){if(this.openButton){this.openButton.accessibleExpanded=false}setTimeout((function(){focusElement(i.openButton);if(i.modal){enableBodyScroll(i.dialog)}i.teleport.removeInertFromSiblings()}),200)}};t.prototype.handleKeyUp=function(t){if(isEscapeKey(t)){if(this.open){this.toggleMenu(t)}}};t.prototype.handleDocumentClick=function(t){if(!this.open){return}var e=t.composedPath();if(!e.includes(this.dialog)&&!e.includes(this.openButton)){this.toggleMenu(t)}};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){(e=this.openButton)===null||e===void 0?void 0:e.focus(t);return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){t=new CustomEvent("toggle");this.toggleMenu(t);setTimeout((function(){e.closeButton.focus()}),200);return[2]}))}))};t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.open){return[2]}this.setOpenButton(document.activeElement);this.toggleMenu(new CustomEvent("toggle"));return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.open){return[2]}this.toggleMenu(new CustomEvent("toggle"));return[2]}))}))};t.prototype.render=function(){var t=this;var e={background:getColorByName(this.backgroundColor,this.theme)};var i=getLocaleString(this.topLevelOpenMenuBarLangObject);var o=getLocaleString(this.exitLangObject);return h(Host,{key:"4642a8ace569ca295407eda479135ae7fd5617bf"},h("div",{key:"7df49b85ec162cd738dca6cfcdac057a87bbdc13",class:{"duet-slideout":true,"duet-theme-turva":this.theme==="turva"}},this.modal&&h("duet-overlay",{key:"71364dcd7bdac4d224eae40ef7b43ee2571a1adf",visible:this.open,"display-device":"large",zIndex:"600"}),h("div",{key:"62eade96c8ad9c494d3843adc75b19b7ad18cada",ref:function(e){return t.dialog=e},tabindex:"-1",role:"dialog",id:"dialog","aria-labelledby":"button","aria-modal":this.isSafariBrowser?false:true,"aria-flowto":"slot-container",class:{dialog:true,hidden:!this.open,modal:this.modal},style:e},h(FocusGuard,{key:"2a3b77e3e65a92028c5dc3b787f85165e15eeb79",moveFocusTo:this.closeButton}),h("div",{key:"4b0dc292f4e488e4d0d0499c5c2c5e5cced54d35",class:{"top-container":true,"has-sticky-header-slot":this.hasStickyHeaderSlot}},h("div",{key:"6eabc63710bcbb2f2673eb2fe25bb5b88b6697bb",class:"top"},h("button",{key:"e697b74648bb04e0083b88d3bb8e808de86d7112",ref:function(e){return t.closeButton=e},"aria-haspopup":"dialog","aria-controls":"dialog","aria-expanded":this.open?"true":"false","aria-label":"".concat(o),type:"button",class:{"slideout-close":true,active:this.open},onClick:this.onClick,inert:this.openPanel},h("duet-icon",{key:"9d03c80e89da1ef8a573fc482b7cc248e9c777a5",name:"navigation-close",size:"small",margin:"none",color:"secondary"}))),h("div",{key:"807b9077f797cde0ae3d59701d5d9cb5adecf989",class:"sticky-header"},h("slot",{key:"2f1e747dad6226d8894931fcbfcc1716014e9a7e",name:"sticky-header"}))),h("div",{key:"b14462c558ad7ec4030c461de80e604a9bd1204a",id:"slot-container",role:this.accessibleRole,"aria-label":this.openPanel?i:null,class:{items:true}},h("slot",{key:"ee510eec06bfef03ad124b9cd0ea5a26aeaad9cf"})),h(FocusGuard,{key:"64f7a35f2435307ca7572160445c4fad38812c87",moveFocusTo:this.closeButton}))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["handleOpenChange"]}},enumerable:false,configurable:true});return t}();DuetSlideout.style=DuetSlideoutStyle0;export{DuetSlideout as duet_slideout};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{d(i.next(e))}catch(e){a(e)}}function s(e){try{d(i["throw"](e))}catch(e){a(e)}}function d(e){e.done?n(e.value):r(e.value).then(o,s)}d((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next: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 d([e,t])}}function d(s){if(i)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(n=0)),n)try{if(i=1,r&&(a=s[0]&2?r["return"]:s[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;if(r=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;r=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];r=0}finally{i=a=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,g as getElement,H as Host}from"./index-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{c as createID}from"./create-id-149a1b6d.js";import{i as isKeyboardClick,s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-439bcc8b.js";var actionEdit2={title:"action-edit-2",tags:"action edit 2 pen pencil",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M.748 24a.755.755 0 0 1-.531-.22.754.754 0 0 1-.196-.716l1.77-6.905a.84.84 0 0 1 .045-.121.73.73 0 0 1 .151-.223L16.513 1.289A4.355 4.355 0 0 1 19.611 0c1.178 0 2.277.454 3.106 1.279l.029.029a4.367 4.367 0 0 1 1.251 3.121 4.356 4.356 0 0 1-1.32 3.087L8.183 22.01a.735.735 0 0 1-.231.154.784.784 0 0 1-.111.042L.933 23.978A.773.773 0 0 1 .748 24zm1.041-1.791 4.41-1.131-3.281-3.275zm5.868-1.795 13.02-13.02-4.074-4.074L3.58 16.344zM21.736 6.332a2.893 2.893 0 0 0-.059-3.972l-.02-.02a2.872 2.872 0 0 0-2.037-.84v-.375l-.001.375a2.873 2.873 0 0 0-1.954.762z"/></svg>'};var duetStepCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block}.duet-step{padding:20px !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;background:rgb(255, 255, 255);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)}.duet-step.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";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)}.duet-step.rounded-top{border-top-left-radius:4px;border-top-right-radius:4px}.duet-step.rounded-bottom{margin-bottom:20px !important;border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-step.rounded-bottom{margin-bottom:0 !important}}@media (min-width: 36em){.duet-step{padding:0 20px 0 0 !important;margin:0 !important;font-size:1.25rem;box-shadow:none !important}}.duet-step-heading{display:flex;align-items:center;border-radius:4px}.duet-step-heading[aria-disabled=false]{cursor:pointer}.duet-step-heading:focus{outline:0}.duet-step-heading:active{opacity:0.75}:host(.user-is-tabbing) .duet-step-heading: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-step-heading:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.is-complete .duet-step-heading:hover .duet-step-counter,.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#005f8f}.duet-theme-turva.is-complete .duet-step-heading:hover .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-heading:hover .duet-step-counter{background-color:#9e0a26}.is-current .duet-step-heading{margin-bottom:20px}@media (min-width: 36em){.duet-step-heading{margin-top:8px;margin-bottom:8px !important}:host(:first-of-type) .duet-step-heading{margin-top:0}:host(:last-of-type) .duet-step-heading{margin-bottom:0 !important}}.duet-step-counter{-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center;width:30px;height:30px;line-height:30px;color:rgb(255, 255, 255);text-align:center;border-radius:50%;transition:background-color 300ms ease}@media (min-width: 36em){.duet-step-counter{width:40px;height:40px;line-height:40px}}.is-complete .duet-step-counter,.is-current .duet-step-counter,.is-disabled .duet-step-counter{background-color:rgb(0, 119, 179)}.duet-theme-turva.is-complete .duet-step-counter,.duet-theme-turva.is-current .duet-step-counter,.duet-theme-turva.is-disabled .duet-step-counter{background-color:rgb(198, 12, 48)}.is-incomplete .duet-step-counter{background-color:rgb(98, 121, 138)}.duet-theme-turva.is-incomplete .duet-step-counter{background-color:rgb(143, 147, 158)}.duet-step-icon{display:flex;align-items:center;justify-content:center;width:16px;height:16px}@media (min-width: 36em){.duet-step-icon{width:20px;height:20px}}.duet-step-icon duet-icon{width:16px;height:16px}@media (min-width: 36em){.duet-step-icon duet-icon{width:20px;height:20px}}@media (min-width: 36em){.duet-step-content-wrapper{min-height:20px;padding-left:40px;margin-left:19px;border-left:2px solid rgb(212, 223, 229)}.duet-theme-turva .duet-step-content-wrapper{border-color:rgb(222, 224, 228)}:host(:last-of-type) .duet-step-content-wrapper{min-height:0;border:transparent}}.duet-step-content{display:none;padding-bottom:16px}@media (min-width: 36em){.duet-step-content{padding-bottom:28px}}.is-current .duet-step-content{display:block}.duet-step-heading-slot{display:none;margin-top:2px}@media (min-width: 48em){.duet-step-heading-slot{display:block}}';var DuetStepStyle0=duetStepCss;var DuetStep=function(){function e(e){var t=this;registerInstance(this,e);this.duetStepClick=createEvent(this,"duetStepClick",7);this.buttonId=createID("DuetStepButton");this.contentId=createID("DuetStepContent");this.handleKeyDown=function(e){if(t.isClickDisabled()){return}if(isKeyboardClick(e)){e.preventDefault();t.handleStepClick(e)}};this.handleClick=function(e){if(t.isClickDisabled()){return}t.handleStepClick(e)};this.theme="";this.heading=undefined;this.headingLevel=undefined;this.stepIndex=undefined;this.state=undefined;this.roundedTop=false;this.roundedBottom=false}e.prototype.handleStepClick=function(e){this.duetStepClick.emit({originalEvent:e,component:"duet-step",stepIndex:this.stepIndex})};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){subscribeTabbingChange(this)};e.prototype.disconnectedCallback=function(){unsubscribeTabbingChange(this)};e.prototype.setFocus=function(){return __awaiter(this,arguments,void 0,(function(e){if(e===void 0){e={preventScroll:true}}return __generator(this,(function(t){this.buttonElement.focus(e);return[2]}))}))};e.prototype.isClickDisabled=function(){return this.state!=="complete"};e.prototype.headingColor=function(){if(this.state!=="incomplete"){return""}if(this.theme!=="turva"){return"gray-darker"}else{return"gray-dark-turva"}};e.prototype.renderStepCounter=function(){if(this.state==="complete"||this.state==="disabled"){return h("div",{class:"duet-step-icon"},h("duet-icon",{margin:"none",size:"auto",color:"gray-lightest",icon:actionEdit2.svg}))}return"".concat(this.stepIndex+1," ")};e.prototype.render=function(){var e;var t=this;return h("div",{key:"cf7f017c189308e969ac8fc319fff799b44b675b",class:(e={"duet-step":true},e["is-".concat(this.state)]=true,e["rounded-top"]=this.roundedTop,e["rounded-bottom"]=this.roundedBottom,e["duet-theme-turva"]=this.theme==="turva",e)},h("div",{key:"2742f57e0e278b597d2fb9715b6b85207446064f",class:"duet-step-heading",id:this.buttonId,role:this.state!=="current"?"button":"region","aria-current":this.state==="current"?"step":undefined,tabindex:this.state!=="current"?"0":undefined,"aria-disabled":this.isClickDisabled().toString(),"aria-expanded":(this.state==="current").toString(),"aria-controls":this.contentId,"aria-selected":(this.state==="current").toString(),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(e){return t.buttonElement=e}},h("div",{key:"c32bbaed270ec8ea14228ca59f7077128c952b78","aria-hidden":"true"},h("div",{key:"fee937f7b9f3ef92d303fa0502f29632558c3967",class:"duet-step-counter"},this.renderStepCounter())),h("duet-spacer",{key:"8fa4deb09aaa709141dcfd6d4b8b2969840fb48d",direction:"horizontal",size:"large",breakpoint:"small"}),h("duet-spacer",{key:"dadc92ff570d92e7e600918019ab84ea6f22ca36",direction:"horizontal",size:"medium",breakpoint:"x-small"}),h("div",{key:"412ba9538aea65069601a21a229a13e38a959cf1"},h("duet-heading",{key:"b85991761212bba3610b566a9cf48b28562859d6",theme:this.theme,level:this.headingLevel,visualLevel:"h4",color:this.headingColor(),margin:"none"},this.heading)),h("duet-spacer",{key:"7b28ba235ac2d4ef273bb4825a1bb53e4069150e",direction:"horizontal",size:"large"}),h("div",{key:"74230c5744cf324e8f406a8d0dfadce54f8cf82d",class:"duet-step-heading-slot"},h("slot",{key:"74ef4c487e447ba8fc2dfa181a27d5bead1f7cd1",name:"heading-content"}))),h("div",{key:"a4df2c7c64cbb35185b4d7665235a85d1c503ea0",class:"duet-step-content-wrapper"},h("div",{key:"0a2fbd936f386294c6fe75bbacb3bd2b324a6311",class:"duet-step-content",role:"region","aria-labelledby":this.buttonId,id:this.contentId},h("slot",{key:"a748fceef07a8ec5cc280d1e7d655b3e9ae14860"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetStep.style=DuetStepStyle0;function groupBy(e,t){var n={};t.forEach((function(t){var i=t[e];if(!n[i]){n[i]=[]}n[i].push(t)}));return n}var duetStepperCss=":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:20px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}.duet-stepper{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}@media (min-width: 36em){.duet-stepper{padding:28px !important;padding-top:36px !important;padding-bottom:36px !important;background:rgb(255, 255, 255);border-radius:4px;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)}}";var DuetStepperStyle0=duetStepperCss;var DuetStepper=function(){function e(e){registerInstance(this,e);this.duetStepChange=createEvent(this,"duetStepChange",7);this.theme="";this.accessibleLive="Lista jossa {total} kohtaa. Olet kohdassa {current}.";this.margin="auto";this.backDisabled=false;this.selected=0}e.prototype.currentStepChanged=function(e){var t=this;if(isNaN(e)){throw new Error("step must be a number. got: ".concat(e))}if(e<0){throw new Error("step must be not be less than zero. got: ".concat(e))}if(e>this.getSteps().length){throw new Error("step must not exceed total number of steps")}this.updateStepState();setTimeout((function(){return t.setStepFocus()}),50)};e.prototype.currentStepInvokedDisable=function(){this.updateStepState()};e.prototype.onDuetStepClick=function(e){this.duetStepChange.emit({fromStep:this.selected,toStep:e.detail.stepIndex,component:"duet-stepper"})};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.updateStepState();return[2]}))}))};e.prototype.getSteps=function(){return Array.from(this.element.querySelectorAll("duet-step"))};e.prototype.setStepFocus=function(){var e=this.getSteps();var t=e[this.selected];t.setFocus()};e.prototype.updateStepState=function(){var e=this;var t=this.getSteps();t.forEach((function(t,n){var i;if(n<e.selected){i=e.backDisabled?"disabled":"complete"}else if(n>e.selected){i="incomplete"}else{i="current"}t.theme=e.theme;t.state=i;t.stepIndex=n}));var n=groupBy("state",t);Object.values(n).forEach((function(e){e.forEach((function(t,n){t.roundedTop=n===0;t.roundedBottom=n===e.length-1}))}))};e.prototype.formatAnnouncement=function(){var e=this.getSteps();var t=(this.selected+1).toString(10);var n=e.length.toString(10);return this.accessibleLive.replace("{current}",t).replace("{total}",n)};e.prototype.render=function(){return h(Host,{key:"082c93b48c5dfaadde04f9352ef6181ccdb38334",class:{"duet-m-0":this.margin==="none"}},h("div",{key:"703904a5ecf2f0eb09c89c65639ec8ade1f674e6",class:{"duet-stepper":true,"duet-theme-turva":this.theme==="turva"}},h("duet-visually-hidden",{key:"aa4c9cec5585ee50da88bf4143ee998bbe98f9db","aria-live":"polite","aria-atomic":"true","aria-relevant":"all"},this.formatAnnouncement()),h("slot",{key:"708b76a314c85e496f66a12f9f578c2f97e8a96b"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{selected:["currentStepChanged"],backDisabled:["currentStepInvokedDisable"]}},enumerable:false,configurable:true});return e}();DuetStepper.style=DuetStepperStyle0;export{DuetStep as duet_step,DuetStepper as duet_stepper};
@@ -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-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as isEscapeKey}from"./keyboard-utils-439bcc8b.js";var duetSubmenuBarDropdownLinkCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}.duet-submenu-bar-dropdown-link{display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:flex-start;height:100%;padding:8px 20px 8px 60px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);text-align:left;text-decoration:none}.duet-submenu-bar-dropdown-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-submenu-bar-dropdown-link:focus,.duet-submenu-bar-dropdown-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-dropdown-link .label-container{display:flex;flex:1;gap:12px;align-items:center;justify-content:flex-start}@media (min-width: 62em){.duet-submenu-bar-dropdown-link{padding:0.5rem 8px;font-size:1rem;line-height:1.5}}.duet-submenu-bar-dropdown-link.active .label{position:relative}.duet-submenu-bar-dropdown-link.active .label::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:1px}.duet-submenu-bar-dropdown-link.active .active-check{display:none}.duet-submenu-bar-dropdown-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-submenu-bar-dropdown-link.duet-theme-turva.active .label::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-submenu-bar-dropdown-link.active{background:rgb(240, 247, 250)}.duet-submenu-bar-dropdown-link.active .label::after{display:none}.duet-submenu-bar-dropdown-link.active .active-check{display:block}.duet-submenu-bar-dropdown-link.active.duet-theme-turva{background:rgb(245, 247, 250)}.duet-submenu-bar-dropdown-link:hover{background:rgb(228, 241, 247)}.duet-submenu-bar-dropdown-link:hover.duet-theme-turva{background:rgb(222, 224, 228)}}.duet-submenu-bar-dropdown-link.highlight{color:rgb(0, 119, 179)}.duet-submenu-bar-dropdown-link.highlight.duet-theme-turva{color:rgb(126, 2, 35)}';var DuetSubmenuBarDropdownLinkStyle0=duetSubmenuBarDropdownLinkCss;var DuetSubmenuBarDropdownLink=function(){function e(e){registerInstance(this,e);this.theme="";this.active=false;this.href="#";this.icon=undefined;this.caret=false;this.highlight=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.handleEscape=function(e){if(isEscapeKey(e)){var n=this.element.closest("duet-submenu-bar-dropdown");n.open=false;n.setFocus()}};e.prototype.render=function(){var e=this;return h(Host,{key:"d9bf8b959631193d6f3f43b692c9676345ccee13"},h("a",{key:"7d5b7455b0f524636ab19ce917e4455dc177ce70",class:{"duet-submenu-bar-dropdown-link":true,"duet-theme-turva":this.theme==="turva",highlight:this.highlight,active:this.active},"aria-current":this.active?"true":"false",href:this.href,onKeyUp:function(n){return e.handleEscape(n)}},this.icon&&h("duet-icon",{key:"d7c3fd1e9b8a41b7ce6e3cd25080a91b0c7d6016",name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),h("span",{key:"20d44dabb05864b92b0b22738eac84a5abf3704c",class:"label-container"},h("span",{key:"9315948652add6e10e7da692b3e1a7c5d1951de8",class:"label"},h("slot",{key:"6a3d5cab2ef53af7702050b635aa8499755ae529"})),this.caret&&h("duet-icon",{key:"696c65250b22665f8f3dbf53e48b1fa143017995",name:"action-arrow-right-small",size:"xxx-small",margin:"none"})),this.active&&h("duet-icon",{key:"ebbaa8d86e0b2b2316fe79d62a7792db28e1196f",class:"active-check",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSubmenuBarDropdownLink.style=DuetSubmenuBarDropdownLinkStyle0;export{DuetSubmenuBarDropdownLink as duet_submenu_bar_dropdown_link};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{d(o.next(e))}catch(e){a(e)}}function u(e){try{d(o["throw"](e))}catch(e){a(e)}}function d(e){e.done?n(e.value):r(e.value).then(i,u)}d((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,r,a,i;return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(e){return function(t){return d([e,t])}}function d(u){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,u[0]&&(n=0)),n)try{if(o=1,r&&(a=u[0]&2?r["return"]:u[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;if(r=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;r=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1];a=u;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(u);break}if(a[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];r=0}finally{o=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,h,H as Host,g as getElement}from"./index-1d0b7c66.js";import{a as media_query_large}from"./tokens-84fb2357.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as isEscapeKey}from"./keyboard-utils-439bcc8b.js";var duetSubmenuBarDropdownCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-dropdown{position:relative;height:100%}.duet-submenu-bar-dropdown button{position:relative;display:flex;flex-direction:row;gap:16px;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:12px 1.5rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none;cursor:pointer}@media (min-width: 62em){.duet-submenu-bar-dropdown button{flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;font-size:0.875rem;color:rgb(0, 75, 129)}}.duet-submenu-bar-dropdown button .label{display:flex;gap:5px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar-dropdown button.open{background:rgb(228, 241, 247)}}.duet-submenu-bar-dropdown button.open .caret{transform:rotate(180deg)}.duet-submenu-bar-dropdown button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-submenu-bar-dropdown button.active .label-text{position:relative}.duet-submenu-bar-dropdown button.active .label-text::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:1px}@media (min-width: 62em){.duet-submenu-bar-dropdown button.active .label-text::after{display:none}}@media (min-width: 62em){.duet-submenu-bar-dropdown button .caret{position:absolute;right:12px}.duet-submenu-bar-dropdown button:hover{color:rgb(8, 42, 77);background:rgb(228, 241, 247)}.duet-submenu-bar-dropdown button:hover.active{color:rgb(8, 42, 77)}.duet-theme-turva .duet-submenu-bar-dropdown button:hover.active{color:rgb(23, 28, 58)}.duet-submenu-bar-dropdown button.active{color:rgb(0, 119, 179)}.duet-theme-turva .duet-submenu-bar-dropdown button.active{color:rgb(198, 12, 48)}.duet-submenu-bar-dropdown button.active::after,.duet-submenu-bar-dropdown button.open::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-theme-turva .duet-submenu-bar-dropdown button.active::after,.duet-theme-turva .duet-submenu-bar-dropdown button.open::after{background:rgb(198, 12, 48)}}.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-dropdown .submenu-bar-dropdown-icon{width:16px;height:16px}}.duet-submenu-bar-dropdown .items{display:flex;flex-direction:column;align-items:center;justify-content:center;max-height:1000px;padding:4px 0 16px;overflow-y:auto;color:rgb(8, 42, 77);visibility:visible;transition:max-height 0.3s ease-in, padding 0.3s ease-in;-ms-overflow-style:none;scrollbar-width:none}.duet-submenu-bar-dropdown .items::-webkit-scrollbar{display:none}@media (min-width: 62em){.duet-submenu-bar-dropdown .items{position:absolute;top:93%;z-index:600;min-width:320px;padding:8px;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);transition:none}}.duet-submenu-bar-dropdown .items.hidden{max-height:0;padding:0;overflow:hidden;visibility:hidden;transition:max-height 0.3s ease-in, padding 0.3s ease-in}.duet-submenu-bar-dropdown.duet-theme-turva button{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button:hover{background:rgb(222, 224, 228)}}.duet-submenu-bar-dropdown.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-dropdown.duet-theme-turva button.active .label-text::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open .label-text::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.active,.duet-submenu-bar-dropdown.duet-theme-turva button.open{color:rgb(126, 2, 35)}}.duet-submenu-bar-dropdown.duet-theme-turva button.active::after,.duet-submenu-bar-dropdown.duet-theme-turva button.open::after{background:rgb(126, 2, 35)}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva button.open{background:rgb(222, 224, 228)}}@media (min-width: 62em){.duet-submenu-bar-dropdown.duet-theme-turva .items{background:rgb(255, 255, 255)}}';var DuetSubmenuBarDropdownStyle0=duetSubmenuBarDropdownCss;var DuetSubmenuBarDropdown=function(){function e(e){var t=this;registerInstance(this,e);this.mql=[window.matchMedia(media_query_large.replace(/'/g,""))];this.boundMqlFunctions=[];this.checkIsDesktop=function(){if(t.mql[0].matches){t.isDesktop=true}else{t.isDesktop=false}};this.onClick=function(){var e=t.open;if(!t.isDesktop){var n=Array.from(t.element.parentElement.querySelectorAll("duet-submenu-bar-dropdown"));for(var o=0,r=n;o<r.length;o++){var a=r[o];a.open=false}}if(e){t.open=false}else{t.open=true}};this.isDesktop=false;this.theme="";this.active=false;this.open=false;this.icon=undefined}e.prototype.handleFocus=function(e){var t=this;var n=e.composedPath().every((function(e){return e!==t.element}));if(n&&this.isDesktop){this.open=false}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){this.checkIsDesktop();for(var e=0;e<this.mql.length;e++){if(this.mql[e].addEventListener){var t=this.checkIsDesktop.bind(this);this.mql[e].addEventListener("change",t);this.boundMqlFunctions[e]=t}}};e.prototype.disconnectedCallback=function(){for(var e=0;e<this.mql.length;e++){if(this.mql[e].removeEventListener){this.mql[e].removeEventListener("change",this.boundMqlFunctions[e])}}this.boundMqlFunctions=[]};e.prototype.handleEscape=function(e){if(isEscapeKey(e)){if(this.open){this.open=false}else{var t=this.element.closest("duet-submenu-bar");t.open=false;t.setFocus()}}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.button.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;return h(Host,{key:"dbe67ca5e8969c25e00b21789ace2b3333fa9f83",role:"listitem"},h("div",{key:"af7f49d3f8004673eb2fbc5caacf125644257b1f",class:{"duet-submenu-bar-dropdown":true,"duet-theme-turva":this.theme==="turva",open:this.open,active:this.active}},h("button",{key:"6bdb9006795459b7fc8250e7e0b50c4dc3836f8b",ref:function(t){return e.button=t},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false","aria-current":this.active?"true":"false",id:"button",type:"button",class:{open:this.open,active:this.active},onClick:this.onClick,onKeyUp:function(t){return e.handleEscape(t)}},this.icon&&h("duet-icon",{key:"7351a62029da296d445ae8cca2930853c4dd71ed",class:"submenu-bar-dropdown-icon",theme:this.theme,name:this.icon,size:"auto",margin:"none",color:"currentColor"}),h("div",{key:"3e90e7c718f28a7aea7c0593a8316348ae45df42",class:"label"},h("span",{key:"25d4bd4818e5946b36e5821b6f41beb2bc6b9e90",class:"label-text"},h("slot",{key:"35c9b86fe5328041cbd228b5b54937dd5ead9682",name:"label"})),h("duet-icon",{key:"b542830855f09f4386a00623e81188c3847314e8",class:"caret",theme:this.theme,name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),h("div",{key:"884cca9d45a91703c9d39cdc27e9d7f576fd667f",tabindex:"-1",role:"menu",id:"menu","aria-labelledby":"button",class:{items:true,hidden:!this.open}},h("slot",{key:"c670ddeff29a0e408436e7be0f65f37047b6d5b5"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSubmenuBarDropdown.style=DuetSubmenuBarDropdownStyle0;export{DuetSubmenuBarDropdown as duet_submenu_bar_dropdown};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,a){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function o(e){try{s(a.next(e))}catch(e){r(e)}}function u(e){try{s(a["throw"](e))}catch(e){r(e)}}function s(e){e.done?n(e.value):i(e.value).then(o,u)}s((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,i,r,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(e){return function(t){return s([e,t])}}function s(u){if(a)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(n=0)),n)try{if(a=1,i&&(r=u[0]&2?i["return"]:u[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,u[1])).done)return r;if(i=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++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!r||u[1]>r[0]&&u[1]<r[3])){n.label=u[1];break}if(u[0]===6&&n.label<r[1]){n.label=r[1];r=u;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(u);break}if(r[2])n.ops.pop();n.trys.pop();continue}u=t.call(e,n)}catch(e){u=[6,e];i=0}finally{a=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,h,H as Host,g as getElement}from"./index-1d0b7c66.js";import{a as actionNewWindowSmall}from"./action-new-window-small-1945be91.js";import{D as DuetStringsExternalDefaults}from"./common-strings-af765cad.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{g as getAccessibleLinkLabel}from"./a11y-utils-8fc393f6.js";import{f as isEscapeKey}from"./keyboard-utils-439bcc8b.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-14969cef.js";import"./slot-utils-4e5ed4eb.js";import"./string-utils-192eb3c8.js";var duetSubmenuBarItemCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-item{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;width:auto;height:100%;padding:12px 1.5rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:600;line-height:1.25;color:rgb(0, 75, 129);text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer}.duet-submenu-bar-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-submenu-bar-item:focus,.duet-submenu-bar-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-item .label{display:flex;gap:5px;align-items:center;justify-content:center}.duet-submenu-bar-item .leading-icon,.duet-submenu-bar-item .trailing-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-item .leading-icon,.duet-submenu-bar-item .trailing-icon{width:16px;height:16px}}.duet-submenu-bar-item .trailing-icon.trailing-icon-arrow{width:7px;height:7px}.duet-submenu-bar-item .external-icon{width:10px;height:10px}.duet-submenu-bar-item .trailing-icon{position:absolute;right:12px}.duet-submenu-bar-item[aria-expanded=true]{background:rgb(228, 241, 247)}.duet-submenu-bar-item[aria-expanded=true] .trailing-icon.rotate{transform:rotate(180deg)}.duet-submenu-bar-item.active{color:rgb(0, 119, 179)}.duet-submenu-bar-item.active.duet-theme-turva{color:rgb(126, 2, 35)}.duet-submenu-bar-item.active::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}.duet-submenu-bar-item.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-submenu-bar-item.duet-theme-turva.active .label::after{background:rgb(126, 2, 35)}.duet-submenu-bar-item.duet-theme-turva.active::after{background:rgb(126, 2, 35)}.duet-submenu-bar-item:hover{color:rgb(8, 42, 77);background:rgb(228, 241, 247)}.duet-submenu-bar-item:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(222, 224, 228)}.duet-submenu-bar-item:hover.duet-theme-turva.active{color:rgb(126, 2, 35)}';var DuetSubmenuBarItemStyle0=duetSubmenuBarItemCss;var DuetSubmenuBarItem=function(){function e(e){registerInstance(this,e);this.theme="";this.active=false;this.url=undefined;this.leadingIcon=undefined;this.trailingIcon=undefined;this.accessibleLabel=undefined;this.accessibleExpanded=undefined;this.accessiblePopup="false";this.accessibleLabelExternalDefaults=DuetStringsExternalDefaults;this.accessibleLabelExternal=getLocaleString(this.accessibleLabelExternalDefaults);this.external=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelExternal",defaults:"accessibleLabelExternalDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.handleEscape=function(e){if(isEscapeKey(e)){var t=this.element.closest("duet-submenu-bar");t.open=false;t.setFocus()}};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){setTimeout((function(){return t.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";var n=this.url?"link":"button";return h(Host,{key:"9b58300e549e07f8d602bacb3f16cd612e84ffbb",role:"listitem"},h(t,{key:"51335abf288a934ee2518e2ca05727cea7833bc7",target:!this.url?null:this.external?"_blank":"_self",ref:function(t){return e.itemElement=t},class:{"duet-submenu-bar-item":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.url,onKeyUp:function(t){return e.handleEscape(t)},"aria-current":this.active?"true":"false","aria-label":this.url&&getAccessibleLinkLabel(this)||this.accessibleLabel,"aria-expanded":this.accessibleExpanded!=null?this.accessibleExpanded.toString():undefined,"aria-haspopup":this.accessiblePopup!=null?this.accessiblePopup.toString():undefined,role:n,rel:this.external?"noopener":undefined},this.leadingIcon&&h("duet-icon",{key:"35adf7829385efe26c9412bb25d6d28175a21922",class:"leading-icon",theme:this.theme,name:this.leadingIcon,size:"auto",margin:"none",color:"currentColor"}),h("div",{key:"0194c9310d97abac5f4a29ead95c975ab00c1faa",class:"label"},h("span",{key:"8ec232e32e64fba21b3716e8f165cd36199c1673",class:"label-text"},h("slot",{key:"8945c541d7ede0ff362d9b48f6066f4665aafc9f"})),(this.trailingIcon||this.external)&&h("duet-icon",{key:"7f21d4325c823b403a5a4e04b73bb82241362ddb",class:{"trailing-icon":!!this.trailingIcon,"trailing-icon-arrow":this.trailingIcon==="action-arrow-down-small","external-icon":!!this.external,rotate:this.trailingIcon==="action-arrow-down-small"&&this.accessibleExpanded},theme:this.theme,name:this.trailingIcon?this.trailingIcon:this.external?actionNewWindowSmall.title:"",margin:"none",size:"auto",color:"currentColor"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSubmenuBarItem.style=DuetSubmenuBarItemStyle0;export{DuetSubmenuBarItem as duet_submenu_bar_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-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as isEscapeKey}from"./keyboard-utils-439bcc8b.js";var duetSubmenuBarLinkCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-link{display:flex;flex-direction:row;gap:16px;align-items:center;justify-content:flex-start;height:100%;padding:12px 1.5rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.25;color:rgb(8, 42, 77);text-align:center;text-decoration:none}.duet-submenu-bar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-submenu-bar-link:focus,.duet-submenu-bar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar-link .submenu-bar-link-icon{width:20px;height:20px}@media (min-width: 62em){.duet-submenu-bar-link .submenu-bar-link-icon{width:16px;height:16px}}@media (min-width: 62em){.duet-submenu-bar-link{flex-direction:column;gap:5px;align-items:center;justify-content:center;font-size:0.875rem;color:rgb(0, 75, 129)}}@media (min-width: 62em){.duet-submenu-bar-link.active{color:rgb(0, 119, 179)}.duet-submenu-bar-link.active.duet-theme-turva{color:rgb(126, 2, 35)}}.duet-submenu-bar-link.active .label{position:relative}.duet-submenu-bar-link.active .label::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:1px}@media (min-width: 62em){.duet-submenu-bar-link.active .label::after{display:none}.duet-submenu-bar-link.active::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}}.duet-submenu-bar-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-submenu-bar-link.duet-theme-turva.active .label::after{background:rgb(126, 2, 35)}.duet-submenu-bar-link.duet-theme-turva.active::after{background:rgb(126, 2, 35)}@media (min-width: 62em){.duet-submenu-bar-link:hover{color:rgb(8, 42, 77);background:rgb(228, 241, 247)}.duet-submenu-bar-link:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(222, 224, 228)}.duet-submenu-bar-link:hover.duet-theme-turva.active{color:rgb(126, 2, 35)}}';var DuetSubmenuBarLinkStyle0=duetSubmenuBarLinkCss;var DuetSubmenuBarLink=function(){function e(e){registerInstance(this,e);this.theme="";this.active=false;this.href="#";this.icon=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.handleEscape=function(e){if(isEscapeKey(e)){var t=this.element.closest("duet-submenu-bar");t.open=false;t.setFocus()}};e.prototype.render=function(){var e=this;return h(Host,{key:"2d44998a36518c013b11ebacab17b616834ab27c",role:"listitem"},h("a",{key:"848befb6c1d67cfe2ea4cd7c1431c15e3ebbe484",class:{"duet-submenu-bar-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.href,onKeyUp:function(t){return e.handleEscape(t)},"aria-current":this.active?"true":"false"},this.icon&&h("duet-icon",{key:"9344282a522be5d1ee0396e8fd93becd53d423a5",class:"submenu-bar-link-icon",theme:this.theme,name:this.icon,size:"auto",margin:"none",color:"currentColor"}),h("span",{key:"a4a42910fa379e78ebe4711a47ea8338dc5d53b8",class:"label"},h("slot",{key:"c2fcb5acc1c26e0fca2a087238f281f1e931dc09"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSubmenuBarLink.style=DuetSubmenuBarLinkStyle0;export{DuetSubmenuBarLink as duet_submenu_bar_link};
@@ -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,r){function o(e){try{u(n.next(e))}catch(e){r(e)}}function s(e){try{u(n["throw"](e))}catch(e){r(e)}}function u(e){e.done?i(e.value):a(e.value).then(o,s)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(n=1,a&&(r=s[0]&2?a["return"]:s[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,s[1])).done)return r;if(a=0,r)s=[s[0]&2,r.value];switch(s[0]){case 0:case 1:r=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(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(s[0]===6&&i.label<r[1]){i.label=r[1];r=s;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(s);break}if(r[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];a=0}finally{n=r=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,h,H as Host,g as getElement}from"./index-1d0b7c66.js";import{a as media_query_large}from"./tokens-84fb2357.js";import{e as enableBodyScroll,d as disableBodyScroll}from"./bodyScrollLock.es6-ecbf187e.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";var duetSubmenuBarCss='*,*::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(:not([open])) ::slotted(duet-submenu-bar-dropdown){display:none}@media (min-width: 62em){:host(:not([open])) ::slotted(duet-submenu-bar-dropdown){display:inherit}}.duet-submenu-bar{position:relative;top:0;z-index:1;background:rgb(240, 247, 250);transition:top 0.4s}.duet-submenu-bar.hidden{top:-200px}@media (min-width: 62em){.duet-submenu-bar{border-bottom:1px solid rgb(198, 225, 238)}}.duet-submenu-bar button{display:flex;align-items:center;justify-content:center;width:100%;padding:12px 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:400;line-height:1.25;color:rgb(8, 42, 77)}.duet-submenu-bar button.active .caret{transform:rotate(180deg)}.duet-submenu-bar button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-submenu-bar button .label{position:relative;display:flex;gap:8px;align-items:center;justify-content:center}@media (min-width: 62em){.duet-submenu-bar button{display:none}}.duet-submenu-bar .menu-container{position:absolute;z-index:399;width:100%}.duet-submenu-bar .menu-container.hidden{max-height:0;overflow:hidden;visibility:hidden}@media (min-width: 62em){.duet-submenu-bar .menu-container,.duet-submenu-bar .menu-container.hidden{position:static;z-index:auto;max-height:unset;overflow:visible;visibility:visible}}.duet-submenu-bar .items{width:100%;height:70vh;overflow-y:scroll;visibility:visible;background:rgb(240, 247, 250);border-bottom:1px solid rgb(181, 198, 208)}.duet-submenu-bar .items ::slotted(*){position:relative}.duet-submenu-bar .items.hidden{max-height:0;overflow:hidden;visibility:hidden;border-bottom:0 solid rgb(181, 198, 208)}.duet-submenu-bar .items .list-padding{padding-bottom:188px}@media (min-width: 62em){.duet-submenu-bar .items .list{display:flex;align-items:center;justify-content:space-between;height:100%}.duet-submenu-bar .items,.duet-submenu-bar .items.hidden{position:static;z-index:auto;display:flex;flex-direction:row;align-items:center;justify-content:center;height:auto;max-height:unset;overflow:visible;visibility:visible;border:0}.duet-submenu-bar .items .list-padding{display:none;padding-bottom:0}}.duet-submenu-bar.duet-theme-turva{background:rgb(245, 247, 250);border-bottom:1px solid rgb(222, 224, 228)}.duet-submenu-bar.duet-theme-turva button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-submenu-bar.duet-theme-turva .items{background:rgb(245, 247, 250)}.duet-submenu-bar.duet-theme-turva .mobile-background{background:rgb(23, 28, 58)}.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow{box-shadow:0 2px 6px 0 rgba(23, 28, 58, 0.07)}@media (min-width: 62em){.duet-submenu-bar.duet-theme-turva .shadow-container .top-shadow{box-shadow:0 3px 6px 0 rgba(23, 28, 58, 0.1)}}';var DuetSubmenuBarStyle0=duetSubmenuBarCss;var DuetSubmenuBar=function(){function e(e){var t=this;registerInstance(this,e);this.mql=[window.matchMedia(media_query_large.replace(/'/g,""))];this.boundMqlFunctions=[];this.previousYScroll=0;this.handleMobileView=function(){if(t.mql[0].matches){t.mobile=false;t.enableBodyScroll()}else{t.mobile=true;if(!t.bodyScroll){t.disableBodyScroll()}}};this.onClick=function(){t.open=!t.open};this.enableBodyScroll=function(){if(t.nav){enableBodyScroll(t.nav)}if(t.itemsContainer){enableBodyScroll(t.itemsContainer)}};this.disableBodyScroll=function(){if(t.nav){disableBodyScroll(t.nav,{reserveScrollBarGap:true})}if(t.itemsContainer){disableBodyScroll(t.itemsContainer,{reserveScrollBarGap:true})}};this.checkIfHasItems=function(){var e=!!t.element.querySelector("duet-submenu-bar-dropdown-link");var i=!!t.element.querySelector("duet-submenu-bar-link");var n=!!t.element.querySelector("duet-submenu-bar-item");return e||i||n};this.hidden=false;this.mobile=true;this.bodyScroll=true;this.theme="";this.hideOnScroll=false;this.open=false;this.accessibleLabel=undefined}e.prototype.watchOpenStateHandler=function(e){var t=e;if(t){this.bodyScroll=false;this.disableBodyScroll()}else{this.enableBodyScroll();this.bodyScroll=true}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){this.nav=document.querySelector("duet-nav > [slot='mobile']");this.hasItems=this.checkIfHasItems();this.handleMobileView();for(var e=0;e<this.mql.length;e++){if(this.mql[e].addEventListener){var t=this.handleMobileView.bind(this);this.mql[e].addEventListener("change",t);this.boundMqlFunctions[e]=t}}};e.prototype.disconnectedCallback=function(){for(var e=0;e<this.mql.length;e++){if(this.mql[e].removeEventListener){this.mql[e].removeEventListener("change",this.boundMqlFunctions[e])}}this.boundMqlFunctions=[];this.enableBodyScroll()};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.button.focus(e);return[2]}))}))};e.prototype.checkScroll=function(){if(!this.hideOnScroll){return}if(window.scrollY>this.previousYScroll){if(window.scrollY>100){this.hidden=true}}else{if(window.scrollY<150){this.hidden=false}}this.previousYScroll=window.scrollY};e.prototype.render=function(){var e=this;return h(Host,{key:"ea56c035a544993c18dce5a3164ee203e287352f"},h("nav",{key:"9410059fc6de0b9ead6a7c387d0412f5a26b70f3",class:{"duet-submenu-bar":true,"duet-theme-turva":this.theme==="turva",hidden:this.hidden},"aria-label":this.accessibleLabel},this.hasItems&&h("button",{key:"27e0fddeffe5a7c093a5270e350236812c7a9c86",ref:function(t){return e.button=t},"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false",id:"button",type:"button",class:{active:this.open},onClick:this.onClick},h("span",{key:"da29ea7a5ceb616f6e727539e47c3a46b38a83c1",class:"label"},h("slot",{key:"83fabbf6803d799627cdc4b7b427d07613fc855b",name:"label"}),h("duet-icon",{key:"16eba6cc2f9871260789c21fe184d6846ad7b199",theme:this.theme,class:"caret",name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),h("div",{key:"1f722a24bf9a82cc6110a258db43df328947c3a6",class:{"menu-container":true,hidden:!this.open},role:"presentation"},h("div",{key:"fc121e02816e700bf9bbb83a21ca202c4356a339",role:this.mobile?"menu":null,id:"menu","aria-labelledby":this.mobile?"button":null,"aria-expanded":this.mobile?this.open?"true":"false":null,class:{items:true,hidden:!this.open},ref:function(t){return e.itemsContainer=t}},h("div",{key:"6e43327f6bac2c8614ab0e18160248abc9038523",class:"list",role:this.mobile?"presentation":"list"},h("slot",{key:"56d8860ecde5b13838f8951f7c3bc71d6f67ea84"}),h("div",{key:"1c57c208d07a9082d2c1f639c7a679a8c8cfa44e",class:"list-padding"}))),h("duet-overlay",{key:"d6605341c64e6086535892c24201655ba260984e","keep-stacking-context":true,visible:this.open,"display-device":"not-large",transition:"immediate"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{open:["watchOpenStateHandler"]}},enumerable:false,configurable:true});return e}();DuetSubmenuBar.style=DuetSubmenuBarStyle0;export{DuetSubmenuBar as duet_submenu_bar};
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,a,i){function r(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,o){function n(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i["throw"](e))}catch(e){o(e)}}function l(e){e.done?a(e.value):r(e.value).then(n,s)}l((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,r,o,n;return n={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return l([e,t])}}function l(s){if(i)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(a=0)),a)try{if(i=1,r&&(o=s[0]&2?r["return"]:s[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;if(r=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:a.label++;return{value:s[1],done:false};case 5:a.label++;r=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(o=a.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(s[0]===6&&a.label<o[1]){a.label=o[1];o=s;break}if(o&&a.label<o[2]){a.label=o[2];a.ops.push(s);break}if(o[2])a.ops.pop();a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e];r=0}finally{i=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{D as DuetInternalLabel}from"./label-ce262202.js";import{c as createID}from"./create-id-149a1b6d.js";import{c as cleanValue}from"./input-utils-85681162.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-14969cef.js";import{c as checkNamedSlotElement,p as proxyInputToSlot}from"./slot-utils-4e5ed4eb.js";import"./string-utils-192eb3c8.js";var duetTextareaCss='.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:block;width:100%;max-width:100%;text-align:left}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}duet-tooltip,::slotted(duet-tooltip){position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip,::slotted(duet-tooltip){position:relative;top:4px;right:auto}}.duet-textarea-container{position:relative;width:100%;height:100%}.duet-textarea-container .duet-input-top-caption{display:none}.duet-textarea-container.duet-input-top-caption-shown .duet-input-top-caption{display:flex !important}.duet-textarea-wrapper{position:relative}.duet-textarea-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-textarea{padding:15px !important;position:relative;z-index:100;display:block;width:100%;min-width:8rem;min-height:160px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);resize:vertical;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-theme-turva .duet-textarea{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(143, 147, 158)}.has-error .duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error .duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-textarea::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva .duet-textarea::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-textarea:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva .duet-textarea::-moz-placeholder{color:rgb(143, 147, 158)}.duet-textarea:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-textarea:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-textarea:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva .duet-textarea:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva .duet-textarea:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea[disabled]{color:rgb(98, 121, 138) !important;cursor:not-allowed !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-theme-turva .duet-textarea[disabled]{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important}.duet-textarea[disabled]::-webkit-input-placeholder{color:rgb(8, 42, 77);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva .duet-textarea[disabled]::-webkit-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled]::-moz-placeholder{color:rgb(8, 42, 77);opacity:1 !important}.duet-theme-turva .duet-textarea[disabled]::-moz-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled]:-ms-input-placeholder{color:rgb(8, 42, 77)}.duet-theme-turva .duet-textarea[disabled]:-ms-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #747475}.has-error .duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-textarea:hover:not(:disabled){box-shadow:0 0 0 1px #e55039}.duet-textarea:focus{border-color:rgb(0, 119, 179);outline:0;box-shadow:0 0 0 1px #0077b3 !important;transition:none}.duet-theme-turva .duet-textarea:focus{border-color:rgb(23, 28, 58);box-shadow:0 0 0 1px #171c3a !important}.has-error .duet-textarea:focus{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-textarea:focus{box-shadow:0 0 0 1px #e55039}.duet-textarea:not(:focus):not(:hover):invalid{box-shadow:none}.duet-textarea-help{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;line-height:1.25}.duet-textarea-help span{display:block;margin-top:8px}.duet-theme-turva .duet-textarea-help{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(143, 147, 158)}.has-error .duet-textarea-help{color:rgb(214, 28, 82)}.duet-theme-turva.has-error .duet-textarea-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}.duet-character-count{display:block;margin:8px 0 0 auto}';var DuetTextareaStyle0=duetTextareaCss;var CharacterCount=function(e){var t=e.value,a=e.maxlength,i=e.label,r=e.theme;if(a==null){return}var o=t.length;var n=Math.max(a-o,0);var s=n/a<=.1;return h("div",{class:"duet-character-count"},h("duet-caption",{margin:"none",theme:r,size:"small"},h("duet-visually-hidden",{"aria-live":"polite","aria-atomic":"true",class:"duet-textarea-counter-remaining"},s&&"".concat(n," ").concat(i)),h("span",{"aria-hidden":"true"},o,"/",a)))};var DuetTextarea=function(){function e(e){var t=this;registerInstance(this,e);this.duetInput=createEvent(this,"duetInput",7);this.duetChange=createEvent(this,"duetChange",7);this.duetBlur=createEvent(this,"duetBlur",7);this.duetFocus=createEvent(this,"duetFocus",7);this.textareaId=createID("DuetTextarea");this.proxyId=createID("DuetTextarea");this.topCaptionId=createID("DuetCaptionTop");this.topCaptionPlaceholderId=createID("DuetCaptionPlaceholderTop");this.labelId=createID("DuetLabel");this.errorId=createID("DuetError");this.characterCountId=createID("DuetCharacterCount");this.disallowPatternRegex=null;this.counterLabelDefaults={fi:"merkkiä jäljellä",en:"characters remaining",sv:"tecken kvar"};this.handleInput=function(e){if(t.disallowPatternRegex){cleanValue(t.nativeInput,t.disallowPatternRegex)}t.value=t.nativeInput.value;t.isCaptionVisible=!!t.caption;t.duetInput.emit({originalEvent:e,value:t.value,component:"duet-textarea"})};this.handleChange=function(e){t.value=t.nativeInput.value;t.duetChange.emit({originalEvent:e,value:t.value,component:"duet-textarea"})};this.handleBlur=function(e){t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-textarea"})};this.handleFocus=function(e){if(t.counter){t.hiddenCounterLabel.textContent="".concat(Math.max(t.maxlength-t.value.length,0),"/").concat(t.maxlength," ").concat(t.counterLabel)}t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-textarea"})};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)}if(t.counter){e.push(t.characterCountId)}return e.length>0?e.join(" "):null};this.margin="auto";this.accessibleActiveDescendant=undefined;this.accessibleAutocomplete=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLiveError="polite";this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.theme="";this.expand=false;this.disabled=false;this.identifier=undefined;this.required=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.labelHidden=false;this.name=undefined;this.placeholder=undefined;this.caption=undefined;this.echoPlaceholder=false;this.maxlength=undefined;this.minlength=undefined;this.error="";this.role=undefined;this.tooltip="";this.tooltipDirection="auto";this.value="";this.disallowPattern=null;this.counter=false;this.counterLabel=getLocaleString(this.counterLabelDefaults)}e.prototype.disallowedPatternChange=function(){this.disallowPatternRegex=this.disallowPattern?new RegExp(this.disallowPattern,"gu"):null};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.disallowedPatternChange();this.isCaptionVisible=!!this.caption;checkNamedSlotElement(this.element,"tooltip","duet-tooltip",1,true);if(this.counter&&this.maxlength==null){console.warn("[DUET WARNING]: counter will only take effect if maxlength is set")}};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"counterLabel",defaults:"counterLabelDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(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.render=function(){var e=this;var t=this.identifier||this.textareaId;return h(Host,{key:"49e8e10db6bb3a82dba74429a4ef16fd0f1adca5",class:{"duet-m-0":this.margin==="none","duet-has-counter":this.counter&&!this.error,"duet-expand":this.expand}},h("div",{key:"3ebe6d991a459d25fcb624c6be6d7287cd6f2856",class:{"duet-textarea-container":true,"duet-theme-turva":this.theme==="turva","duet-label-hidden":this.labelHidden,"duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error}},h(DuetInternalLabel,{key:"431f2df70846aae2a6d04f75e66c0ae702f77bb2",theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},margin:this.isCaptionVisible?"small":"auto",color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:t},this.label),this.tooltip&&h("duet-tooltip",{key:"3c8ee3d71cbefc2d3859d5c78a09357599fa3d93",direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:this.theme==="turva"?"turva":"default"},this.tooltip),h("slot",{key:"ecbbd7b2de0465087b6559c8941e2273e5d6e25a",name:"tooltip"}),this.caption&&h("duet-caption",{key:"bbfa15caf320dfda6ae6d48b0c9c6fe0fe25e284",id:this.topCaptionId,size:"medium",theme:this.theme==="turva"?"turva":"default"},this.caption),h("div",{key:"c91f39fb9542a81ed961971d304517124a7046ae",class:"duet-textarea-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&h("duet-caption",{key:"5f550265ff6c886f752c33ca662d56890d9f21a8",id:this.topCaptionPlaceholderId,class:"duet-textarea-placeholder",size:"small"},this.placeholder),h("textarea",{key:"0b24c58e21a7b62f658e573f13e44d68d5639df0",onInput:this.handleInput,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus,ref:function(t){return e.nativeInput=t},class:{"duet-textarea":true,disabled:this.disabled},value:this.value,disabled:this.disabled,"aria-labelledby":this.accessibleLabelledBy?"".concat(this.labelId," ").concat(this.accessibleLabelledBy):this.labelId,"aria-controls":this.accessibleControls,"aria-autocomplete":this.accessibleAutocomplete,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.getDescribedBy(),"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,placeholder:this.placeholder,spellcheck:"false",required:this.required,minlength:this.minlength,maxlength:this.maxlength,role:this.role,name:this.name,id:t})),h("duet-grid",{key:"8b7934cf5d66a8dd93054007879d3755f24edce4",alignment:"stretch"},h("duet-grid-item",{key:"04e9818c668a06504b70dd73a925fdfd2734eee7",margin:"none",fill:true},h("div",{key:"6fe4e85fb3d4935cc1374c4027a73e76bb499604",class:"duet-textarea-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&h("span",{key:"ee5eb2a2149271a7644588aa8e36c4046c7fa59e"},this.error))),h("duet-grid-item",{key:"47937bb1385e1385d5445e978714896dadd5b320",margin:"none",class:"duet-character-count-caption"},this.counter&&h(CharacterCount,{key:"d681d37404d792fc9b1e379b6c84cb21c6f23190",theme:this.theme,value:this.value,maxlength:this.maxlength,label:this.counterLabel}))),this.counter&&h("duet-visually-hidden",{key:"e044e35903993d4f9ac1c589bfb148eb02db83f1",class:"duet-visually-hidden",id:this.characterCountId,ref:function(t){e.hiddenCounterLabel=t}})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disallowPattern:["disallowedPatternChange"]}},enumerable:false,configurable:true});return e}();DuetTextarea.style=DuetTextareaStyle0;export{DuetTextarea as duet_textarea};
@@ -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,a){function o(e){try{s(n.next(e))}catch(e){a(e)}}function d(e){try{s(n["throw"](e))}catch(e){a(e)}}function s(e){e.done?i(e.value):r(e.value).then(o,d)}s((n=n.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:[]},n,r,a,o;return o={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function d(e){return function(t){return s([e,t])}}function s(d){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,d[0]&&(i=0)),i)try{if(n=1,r&&(a=d[0]&2?r["return"]:d[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,d[1])).done)return a;if(r=0,a)d=[d[0]&2,a.value];switch(d[0]){case 0:case 1:a=d;break;case 4:i.label++;return{value:d[1],done:false};case 5:i.label++;r=d[1];d=[0];continue;case 7:d=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){i.label=d[1];break}if(d[0]===6&&i.label<a[1]){i.label=a[1];a=d;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(d);break}if(a[2])i.ops.pop();i.trys.pop();continue}d=t.call(e,i)}catch(e){d=[6,e];r=0}finally{n=a=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,c as createEvent,h,H as Host,g as getElement}from"./index-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{D as DuetInternalLabel}from"./label-ce262202.js";import{c as createID}from"./create-id-149a1b6d.js";import{s as subscribeTabbingChange,u as unsubscribeTabbingChange}from"./keyboard-utils-439bcc8b.js";import{p as proxyInputToSlot}from"./slot-utils-4e5ed4eb.js";var duetToggleCss='.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:8px !important;margin-bottom:12px !important;-webkit-user-select:none;user-select:none;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(.duet-m-0){margin:0 !important}duet-label{display:block !important;width:100% !important}.duet-side-label{display:flex;gap:12px;align-items:center}.duet-side-label duet-label{width:auto !important}.duet-reverse-label{flex-direction:row-reverse}.duet-switch{position:relative;display:block;width:48px;height:28px}.duet-switch input{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-switch input:checked+.duet-slider{background-color:rgb(0, 119, 179);box-shadow:none}.duet-theme-turva .duet-switch input:checked+.duet-slider{background-color:rgb(198, 12, 48)}.duet-switch input:checked+.duet-slider::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #004467;transform:translateX(20px)}.duet-theme-turva .duet-switch input:checked+.duet-slider::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #660619}.duet-switch input:disabled+.duet-slider{cursor:default}.duet-switch input:disabled+.duet-slider::before{box-shadow:none}.duet-theme-turva .duet-switch input:disabled+.duet-slider::before{box-shadow:none}.duet-switch input:disabled:not(:checked)+.duet-slider{background:#bfcbd2}.duet-switch input:disabled:not(:checked)+.duet-slider::before{background:rgb(255, 255, 255);box-shadow:none}.duet-theme-turva .duet-switch input:disabled:not(:checked)+.duet-slider{background:#c7c9cf}.duet-theme-turva .duet-switch input:disabled:not(:checked)+.duet-slider::before{background:rgb(255, 255, 255)}.duet-switch input:disabled:checked+.duet-slider{background:#80bbd9}.duet-theme-turva .duet-switch input:disabled:checked+.duet-slider{background:#e38698}:host(.user-is-tabbing) .duet-switch input:focus+.duet-slider{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-switch input:focus+.duet-slider{box-shadow:0 0 0 1px #fff, 0 0 0 3px rgba(23, 28, 58, 0.75)}.duet-slider{position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer;background-color:rgb(127, 150, 165);border-radius:24px;transition:background-color 300ms ease}.duet-slider::before{position:absolute;bottom:2px;left:2px;width:24px;height:24px;content:"";background-color:rgb(255, 255, 255);border-radius:50%;box-shadow:1px 0 2px 0 #5d6266;transition:300ms ease}.duet-theme-turva .duet-slider{background-color:rgb(143, 147, 158)}.duet-theme-turva .duet-slider::before{background-color:rgb(255, 255, 255);box-shadow:1px 0 2px 0 #00334d}';var DuetToggleStyle0=duetToggleCss;var DuetToggle=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.toggleId=createID("DuetToggle");this.proxyId=createID("DuetToggle");this.onClick=function(e){e.preventDefault();t.setFocus();t.checked=!t.checked};this.theme="";this.margin="auto";this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.labelPosition="top";this.required=false;this.disabled=false;this.checked=false;this.value=undefined;this.identifier=undefined;this.name=undefined;this.role=undefined}e.prototype.checkedChanged=function(e){this.duetChange.emit({checked:e,value:this.value,component:"duet-toggle"})};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);if(this.value===undefined){this.value=this.identifier}};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,this.checked)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.nativeInput.focus(e);return[2]}))}))};e.prototype.render=function(){var e=this;var t=this.identifier||this.toggleId;return h(Host,{key:"694e8b1cb37f0b0b1842ff3d6c185029579e0b1f",onClick:this.disabled?undefined:this.onClick,class:{"duet-m-0":this.margin==="none"}},h("div",{key:"167e4372a5554dce04af310a69ed4c4e0c6ee3ed",class:{"duet-toggle":true,"duet-theme-turva":this.theme==="turva","duet-side-label":this.labelPosition!=="top","duet-reverse-label":this.labelPosition==="right"}},h(DuetInternalLabel,{key:"125d2ac85be7fc1097655a5d14257c480861b7d4",theme:this.theme,color:this.labelColor,weight:this.labelWeight,for:t,margin:this.labelPosition==="top"?"auto":"none"},this.label),h("label",{key:"8f91d032e9063ff55aaf2c0058d2e5d401ad8724",class:"duet-switch"},h("input",{key:"c9bc713caaf82122725cb37f320f3318ce102fd8",type:"checkbox",value:this.value,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,id:t,role:this.role,name:this.name,checked:this.checked,required:this.required,disabled:this.disabled,ref:function(t){return e.nativeInput=t}}),h("div",{key:"01ff73ea8682b434fa35435c3e6ceb1f0ddb650d",class:"duet-slider"}))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{checked:["checkedChanged"]}},enumerable:false,configurable:true});return e}();DuetToggle.style=DuetToggleStyle0;export{DuetToggle as duet_toggle};
@@ -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-1d0b7c66.js";import{i as inheritGlobalTheme}from"./themeable-component-860041c5.js";import{f as isEscapeKey}from"./keyboard-utils-439bcc8b.js";var duetToolbarDropdownLinkCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}.duet-toolbar-dropdown-link{display:flex;flex-direction:row;gap:12px;align-items:center;justify-content:flex-start;height:100%;padding:0.5rem 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:center;text-decoration:none}.duet-toolbar-dropdown-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.duet-theme-turva .duet-toolbar-dropdown-link:focus,.duet-toolbar-dropdown-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}.duet-toolbar-dropdown-link .label{flex:1;text-align:left}.duet-toolbar-dropdown-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-toolbar-dropdown-link.active{background:rgb(240, 247, 250)}.duet-toolbar-dropdown-link.active.duet-theme-turva{background:rgb(245, 247, 250)}.duet-toolbar-dropdown-link:hover{background:rgb(228, 241, 247)}.duet-toolbar-dropdown-link:hover.duet-theme-turva{background:rgb(222, 224, 228)}';var DuetToolbarDropdownLinkStyle0=duetToolbarDropdownLinkCss;var DuetToolbarDropdownLink=function(){function e(e){registerInstance(this,e);this.accessibleLabel=undefined;this.theme="";this.targetLanguage=undefined;this.href="#";this.icon=undefined;this.active=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.handleEscape=function(e){if(isEscapeKey(e)){var o=this.element.closest("duet-toolbar-dropdown");o.open=false;o.setFocus()}};e.prototype.render=function(){var e=this;return h(Host,{key:"e6284cb0d289f8b64e26d5588c12aac7d490b170"},h("a",{key:"56812f3a45834d09c37c304491daa0a7b8573c8e",class:{"duet-toolbar-dropdown-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.href,lang:this.targetLanguage,hreflang:this.targetLanguage,role:"link menuitem","aria-label":this.accessibleLabel,"aria-current":this.active?"true":"false",onKeyUp:function(o){return e.handleEscape(o)}},this.icon&&h("duet-icon",{key:"3a1f39a9f5c3fdfba1b4849b289b874ee6d0d3bf",name:this.icon,size:"x-small",margin:"none"}),h("span",{key:"ad7c40813561cb6d3c215b0986a25f0aeadac435",class:"label"},h("slot",{key:"ee1ffcf539b6fc36dab482151cbea393d7582ef0"})),this.active&&h("duet-icon",{key:"b95754e56d673cd0330bc41aefd6a6a48e25cff6",name:"messaging-checked-small",size:"xx-small",margin:"none",color:"currentColor"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetToolbarDropdownLink.style=DuetToolbarDropdownLinkStyle0;export{DuetToolbarDropdownLink as duet_toolbar_dropdown_link};