@duetds/components 9.5.2 → 9.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (741) hide show
  1. package/hydrate/index.js +263 -217
  2. package/lib/cjs/{a11y-utils-8e2be21b.js → a11y-utils-285b9770.js} +1 -1
  3. package/lib/cjs/{app-globals-617d939b.js → app-globals-a643282a.js} +1 -1
  4. package/lib/cjs/duet-action-button.cjs.entry.js +2 -2
  5. package/lib/cjs/duet-alert.cjs.entry.js +16 -16
  6. package/lib/cjs/duet-badge.cjs.entry.js +3 -3
  7. package/lib/cjs/duet-banner.cjs.entry.js +4 -4
  8. package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
  9. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +4 -4
  10. package/lib/cjs/duet-button_2.cjs.entry.js +9 -9
  11. package/lib/cjs/duet-callout.cjs.entry.js +4 -4
  12. package/lib/cjs/duet-caption_4.cjs.entry.js +30 -13
  13. package/lib/cjs/duet-card.cjs.entry.js +5 -5
  14. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-checkmark.cjs.entry.js +3 -3
  16. package/lib/cjs/duet-chip.cjs.entry.js +3 -3
  17. package/lib/cjs/duet-choice_2.cjs.entry.js +3 -3
  18. package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
  19. package/lib/cjs/duet-combobox.cjs.entry.js +8 -4
  20. package/lib/cjs/duet-contact-card.cjs.entry.js +4 -4
  21. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  22. package/lib/cjs/duet-date-picker.cjs.entry.js +4 -4
  23. package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
  24. package/lib/cjs/duet-editable-table_3.cjs.entry.js +7 -7
  25. package/lib/cjs/duet-empty-state.cjs.entry.js +3 -3
  26. package/lib/cjs/duet-fieldset.cjs.entry.js +5 -5
  27. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  28. package/lib/cjs/duet-footer.cjs.entry.js +7 -7
  29. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
  31. package/lib/cjs/duet-hero.cjs.entry.js +8 -8
  32. package/lib/cjs/duet-icon.cjs.entry.js +4 -4
  33. package/lib/cjs/duet-input_2.cjs.entry.js +9 -3
  34. package/lib/cjs/duet-layout.cjs.entry.js +7 -7
  35. package/lib/cjs/duet-list_2.cjs.entry.js +4 -4
  36. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +3 -3
  37. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +3 -3
  38. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +5 -5
  39. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +6 -6
  40. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
  41. package/lib/cjs/duet-menu-bar.cjs.entry.js +4 -4
  42. package/lib/cjs/duet-modal.cjs.entry.js +11 -11
  43. package/lib/cjs/duet-multiselect.cjs.entry.js +8 -8
  44. package/lib/cjs/duet-nav.cjs.entry.js +2 -2
  45. package/lib/cjs/duet-notification_2.cjs.entry.js +6 -6
  46. package/lib/cjs/duet-number-input.cjs.entry.js +3 -3
  47. package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
  48. package/lib/cjs/duet-page-heading.cjs.entry.js +3 -3
  49. package/lib/cjs/duet-pagination_2.cjs.entry.js +15 -15
  50. package/lib/cjs/duet-phone-input.cjs.entry.js +9 -3
  51. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +8 -8
  52. package/lib/cjs/duet-progress.cjs.entry.js +2 -2
  53. package/lib/cjs/duet-promo-card.cjs.entry.js +4 -4
  54. package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
  55. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  56. package/lib/cjs/duet-scrollable_3.cjs.entry.js +23 -14
  57. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  58. package/lib/cjs/duet-select.cjs.entry.js +2 -2
  59. package/lib/cjs/duet-shaped-image.cjs.entry.js +3 -3
  60. package/lib/cjs/duet-show-more.cjs.entry.js +4 -4
  61. package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
  62. package/lib/cjs/duet-slideout-link.cjs.entry.js +6 -6
  63. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +5 -5
  64. package/lib/cjs/duet-slideout-panel.cjs.entry.js +10 -10
  65. package/lib/cjs/duet-slideout.cjs.entry.js +9 -9
  66. package/lib/cjs/duet-status-icon.cjs.entry.js +8 -8
  67. package/lib/cjs/duet-step_2.cjs.entry.js +2 -2
  68. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +3 -3
  69. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +5 -5
  70. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +5 -5
  71. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
  72. package/lib/cjs/duet-submenu-bar.cjs.entry.js +6 -6
  73. package/lib/cjs/duet-textarea.cjs.entry.js +3 -3
  74. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  75. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +3 -3
  76. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +5 -5
  77. package/lib/cjs/duet-toolbar-item.cjs.entry.js +7 -7
  78. package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
  79. package/lib/cjs/duet-toolbar.cjs.entry.js +3 -3
  80. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +7 -7
  81. package/lib/cjs/duet-tooltip.cjs.entry.js +2 -2
  82. package/lib/cjs/duet-tray.cjs.entry.js +4 -4
  83. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  84. package/lib/cjs/duet-upload-item.cjs.entry.js +5 -5
  85. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  86. package/lib/cjs/duet.cjs.js +3 -3
  87. package/lib/cjs/{errorcodes.utils-a69cd631.js → errorcodes.utils-ffbb3f35.js} +1 -1
  88. package/lib/cjs/{focus-utils-2a54eb7a.js → focus-utils-2f1ec06b.js} +1 -1
  89. package/lib/cjs/{index-206506a2.js → index-850a7759.js} +6 -6
  90. package/lib/cjs/{language-utils-6754f426.js → language-utils-030e2133.js} +1 -1
  91. package/lib/cjs/loader.cjs.js +3 -3
  92. package/lib/cjs/{slot-utils-aa13b3a0.js → slot-utils-84ad3d6c.js} +1 -1
  93. package/lib/cjs/{teleport-c6f8391a.js → teleport-c0eede18.js} +2 -2
  94. package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
  95. package/lib/collection/components/duet-alert/duet-alert.css +72 -27
  96. package/lib/collection/components/duet-alert/duet-alert.js +37 -16
  97. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  98. package/lib/collection/components/duet-banner/duet-banner.js +3 -3
  99. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  100. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  101. package/lib/collection/components/duet-button/duet-button.js +10 -10
  102. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  103. package/lib/collection/components/duet-caption/duet-caption.js +3 -3
  104. package/lib/collection/components/duet-card/duet-card.js +6 -6
  105. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  106. package/lib/collection/components/duet-chip/duet-chip.js +7 -7
  107. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  108. package/lib/collection/components/duet-choice/duet-choice.js +3 -3
  109. package/lib/collection/components/duet-collapsible/duet-collapsible.js +5 -5
  110. package/lib/collection/components/duet-combobox/duet-combobox.js +8 -4
  111. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  112. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +2 -2
  113. package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
  114. package/lib/collection/components/duet-divider/duet-divider.js +2 -2
  115. package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
  116. package/lib/collection/components/duet-empty-state/duet-empty-state.js +3 -3
  117. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  118. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +2 -2
  119. package/lib/collection/components/duet-footer/duet-footer.js +11 -11
  120. package/lib/collection/components/duet-grid/duet-grid.js +3 -3
  121. package/lib/collection/components/duet-header/duet-header.js +15 -15
  122. package/lib/collection/components/duet-heading/duet-heading.js +3 -3
  123. package/lib/collection/components/duet-hero/duet-hero.js +10 -10
  124. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  125. package/lib/collection/components/duet-input/duet-input.js +36 -8
  126. package/lib/collection/components/duet-label/duet-label.js +2 -2
  127. package/lib/collection/components/duet-layout/duet-layout.js +6 -6
  128. package/lib/collection/components/duet-link/duet-link.js +25 -4
  129. package/lib/collection/components/duet-list/duet-list.js +4 -4
  130. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  131. package/lib/collection/components/duet-logo/duet-logo.js +2 -2
  132. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -3
  133. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  134. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  135. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  136. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  137. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  138. package/lib/collection/components/duet-modal/duet-modal.js +10 -10
  139. package/lib/collection/components/duet-multiselect/duet-multiselect.js +11 -11
  140. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  141. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  142. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +3 -3
  143. package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
  144. package/lib/collection/components/duet-overlay/duet-overlay.js +2 -2
  145. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  146. package/lib/collection/components/duet-pagination/duet-pagination.js +13 -13
  147. package/lib/collection/components/duet-paragraph/duet-paragraph.js +5 -5
  148. package/lib/collection/components/duet-phone-input/duet-phone-input.js +32 -4
  149. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +3 -3
  150. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +4 -4
  151. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  152. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  153. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  154. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +3 -3
  155. package/lib/collection/components/duet-scrollable/duet-scrollable.css +4 -1
  156. package/lib/collection/components/duet-scrollable/duet-scrollable.js +30 -5
  157. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  158. package/lib/collection/components/duet-select/duet-select.js +5 -5
  159. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  160. package/lib/collection/components/duet-show-more/duet-show-more.js +3 -3
  161. package/lib/collection/components/duet-slideout/duet-slideout.js +5 -5
  162. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  163. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  164. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  165. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  166. package/lib/collection/components/duet-spacer/duet-spacer.js +3 -3
  167. package/lib/collection/components/duet-spinner/duet-spinner.js +3 -3
  168. package/lib/collection/components/duet-status-icon/duet-status-icon.js +7 -7
  169. package/lib/collection/components/duet-step/duet-step.js +2 -2
  170. package/lib/collection/components/duet-stepper/duet-stepper.js +2 -2
  171. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  172. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  173. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  174. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  175. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  176. package/lib/collection/components/duet-tab-group/duet-tab-group.css +57 -1
  177. package/lib/collection/components/duet-tab-group/duet-tab-group.js +56 -9
  178. package/lib/collection/components/duet-table/duet-table.js +2 -2
  179. package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
  180. package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
  181. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  182. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  183. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  184. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  185. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  186. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +2 -2
  187. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  188. package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
  189. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  190. package/lib/collection/components/duet-upload/duet-upload.js +16 -16
  191. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  192. package/lib/collection/components/duet-upload-item/duet-upload-item.js +4 -4
  193. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  194. package/lib/collection/utils/teleport.js +2 -2
  195. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  196. package/lib/dist-custom-elements/duet-alert.js +1 -1
  197. package/lib/dist-custom-elements/duet-badge.js +1 -1
  198. package/lib/dist-custom-elements/duet-banner.js +5 -5
  199. package/lib/dist-custom-elements/duet-breadcrumb.js +7 -7
  200. package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
  201. package/lib/dist-custom-elements/duet-button.js +1 -1
  202. package/lib/dist-custom-elements/duet-callout.js +4 -4
  203. package/lib/dist-custom-elements/duet-caption.js +1 -1
  204. package/lib/dist-custom-elements/duet-card.js +6 -6
  205. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  206. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  207. package/lib/dist-custom-elements/duet-chip.js +1 -1
  208. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  209. package/lib/dist-custom-elements/duet-choice.js +4 -4
  210. package/lib/dist-custom-elements/duet-collapsible.js +5 -5
  211. package/lib/dist-custom-elements/duet-combobox.js +20 -16
  212. package/lib/dist-custom-elements/duet-contact-card.js +10 -10
  213. package/lib/dist-custom-elements/duet-cookie-consent.js +7 -7
  214. package/lib/dist-custom-elements/duet-date-picker.js +13 -13
  215. package/lib/dist-custom-elements/duet-divider.js +1 -1
  216. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  217. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  218. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  219. package/lib/dist-custom-elements/duet-file-chooser.js +3 -3
  220. package/lib/dist-custom-elements/duet-footer.js +11 -11
  221. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  222. package/lib/dist-custom-elements/duet-grid.js +1 -1
  223. package/lib/dist-custom-elements/duet-header.js +8 -8
  224. package/lib/dist-custom-elements/duet-heading.js +1 -1
  225. package/lib/dist-custom-elements/duet-hero.js +14 -14
  226. package/lib/dist-custom-elements/duet-icon.js +1 -1
  227. package/lib/dist-custom-elements/duet-input.js +1 -1
  228. package/lib/dist-custom-elements/duet-label.js +1 -1
  229. package/lib/dist-custom-elements/duet-layout.js +6 -6
  230. package/lib/dist-custom-elements/duet-link.js +1 -1
  231. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  232. package/lib/dist-custom-elements/duet-list.js +1 -1
  233. package/lib/dist-custom-elements/duet-logo.js +1 -1
  234. package/lib/dist-custom-elements/duet-menu-bar-button.js +4 -4
  235. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +4 -4
  236. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +6 -6
  237. package/lib/dist-custom-elements/duet-menu-bar-item.js +4 -4
  238. package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
  239. package/lib/dist-custom-elements/duet-menu-bar.js +4 -4
  240. package/lib/dist-custom-elements/duet-modal.js +15 -15
  241. package/lib/dist-custom-elements/duet-multiselect.js +14 -14
  242. package/lib/dist-custom-elements/duet-nav.js +2 -2
  243. package/lib/dist-custom-elements/duet-notification-drawer.js +6 -6
  244. package/lib/dist-custom-elements/duet-notification.js +4 -4
  245. package/lib/dist-custom-elements/duet-number-input.js +11 -11
  246. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  247. package/lib/dist-custom-elements/duet-page-heading.js +5 -5
  248. package/lib/dist-custom-elements/duet-pagination.js +24 -24
  249. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  250. package/lib/dist-custom-elements/duet-phone-input.js +23 -16
  251. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  252. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  253. package/lib/dist-custom-elements/duet-progress.js +1 -1
  254. package/lib/dist-custom-elements/duet-promo-card.js +5 -5
  255. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  256. package/lib/dist-custom-elements/duet-radio.js +1 -1
  257. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  258. package/lib/dist-custom-elements/duet-range-stepper.js +6 -6
  259. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  260. package/lib/dist-custom-elements/duet-section-layout.js +4 -4
  261. package/lib/dist-custom-elements/duet-select.js +1 -1
  262. package/lib/dist-custom-elements/duet-shaped-image.js +3 -3
  263. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  264. package/lib/dist-custom-elements/duet-slideout-lang.js +3 -3
  265. package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
  266. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +6 -6
  267. package/lib/dist-custom-elements/duet-slideout-panel.js +8 -8
  268. package/lib/dist-custom-elements/duet-slideout.js +8 -8
  269. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  270. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  271. package/lib/dist-custom-elements/duet-status-icon.js +1 -103
  272. package/lib/dist-custom-elements/duet-step.js +4 -4
  273. package/lib/dist-custom-elements/duet-stepper.js +3 -3
  274. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +4 -4
  275. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +6 -6
  276. package/lib/dist-custom-elements/duet-submenu-bar-item.js +3 -3
  277. package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
  278. package/lib/dist-custom-elements/duet-submenu-bar.js +8 -8
  279. package/lib/dist-custom-elements/duet-tab-group.js +21 -12
  280. package/lib/dist-custom-elements/duet-tab.js +1 -1
  281. package/lib/dist-custom-elements/duet-table.js +1 -1
  282. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  283. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  284. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +4 -4
  285. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +6 -6
  286. package/lib/dist-custom-elements/duet-toolbar-item.js +5 -5
  287. package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
  288. package/lib/dist-custom-elements/duet-toolbar.js +3 -3
  289. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  290. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  291. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  292. package/lib/dist-custom-elements/duet-tray.js +5 -5
  293. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  294. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  295. package/lib/dist-custom-elements/duet-upload.js +42 -36
  296. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  297. package/lib/dist-custom-elements/index.js +1 -1
  298. package/lib/dist-custom-elements/{p-6f36f4f3.js → p-0e2c29a0.js} +5 -5
  299. package/lib/dist-custom-elements/{p-519df228.js → p-0e3a8465.js} +3 -3
  300. package/lib/dist-custom-elements/{p-accb4fa9.js → p-1399c239.js} +9 -9
  301. package/lib/dist-custom-elements/{p-fba92a7b.js → p-17b1f88c.js} +7 -7
  302. package/lib/dist-custom-elements/{p-79957fa3.js → p-19a2d36f.js} +1 -1
  303. package/lib/dist-custom-elements/{p-8882b67b.js → p-1ee62209.js} +5 -5
  304. package/lib/dist-custom-elements/{p-6888c8d6.js → p-246a45c5.js} +3 -3
  305. package/lib/dist-custom-elements/{p-9f5cc4e3.js → p-24de14ac.js} +3 -3
  306. package/lib/dist-custom-elements/{p-935c69ca.js → p-2a7b9c7c.js} +4 -4
  307. package/lib/dist-custom-elements/{p-a317fac9.js → p-2cdc1b0d.js} +2 -2
  308. package/lib/dist-custom-elements/{p-2bb0877f.js → p-4e00e010.js} +2 -2
  309. package/lib/dist-custom-elements/{p-a571ab43.js → p-5554d38b.js} +3 -3
  310. package/lib/dist-custom-elements/{p-495fa25d.js → p-670555eb.js} +1 -1
  311. package/lib/dist-custom-elements/p-71d24b1e.js +213 -0
  312. package/lib/dist-custom-elements/{p-d3f39f5e.js → p-744611d2.js} +8 -8
  313. package/lib/dist-custom-elements/{p-dbea5087.js → p-7a5af4ef.js} +1 -1
  314. package/lib/dist-custom-elements/{p-9126e8a2.js → p-7da00182.js} +6 -6
  315. package/lib/dist-custom-elements/p-83dee022.js +108 -0
  316. package/lib/dist-custom-elements/{p-53b3bd2d.js → p-84a626a1.js} +3 -3
  317. package/lib/dist-custom-elements/{p-ec26aeea.js → p-859504c9.js} +3 -3
  318. package/lib/dist-custom-elements/{p-6646e07d.js → p-86431925.js} +2 -2
  319. package/lib/dist-custom-elements/{p-1cc451fc.js → p-8799d4ad.js} +2 -2
  320. package/lib/dist-custom-elements/{p-ce7d290f.js → p-88624802.js} +14 -11
  321. package/lib/dist-custom-elements/{p-6dd74d76.js → p-8aeac44c.js} +2 -2
  322. package/lib/dist-custom-elements/{p-ca3cb21e.js → p-8cb0e6bd.js} +2 -2
  323. package/lib/dist-custom-elements/{p-673093b5.js → p-97505489.js} +17 -10
  324. package/lib/dist-custom-elements/{p-9614cc57.js → p-a202083e.js} +4 -4
  325. package/lib/dist-custom-elements/{p-b54dea97.js → p-a839bb27.js} +3 -3
  326. package/lib/dist-custom-elements/{p-69756ccb.js → p-b6a06b4d.js} +1 -1
  327. package/lib/dist-custom-elements/{p-fd01fff8.js → p-b7e56baf.js} +3 -3
  328. package/lib/dist-custom-elements/{p-1b7f952f.js → p-c084f5f2.js} +2 -2
  329. package/lib/dist-custom-elements/{p-320da2a2.js → p-c18fe324.js} +3 -3
  330. package/lib/dist-custom-elements/{p-1a4430e2.js → p-c45170b0.js} +2 -2
  331. package/lib/dist-custom-elements/{p-c3d01088.js → p-ca4970b2.js} +15 -15
  332. package/lib/dist-custom-elements/{p-38cb34bf.js → p-cfa9907a.js} +25 -5
  333. package/lib/dist-custom-elements/{p-aedaa6be.js → p-dd76e32c.js} +2 -2
  334. package/lib/dist-custom-elements/{p-136dc3af.js → p-dff748c3.js} +4 -4
  335. package/lib/dist-custom-elements/{p-ef2dcc5a.js → p-e2468742.js} +4 -4
  336. package/lib/dist-custom-elements/{p-5a892951.js → p-e88ea44e.js} +12 -12
  337. package/lib/dist-custom-elements/{p-f7a60dd8.js → p-eff24429.js} +3 -3
  338. package/lib/dist-custom-elements/{p-1f86efd7.js → p-f22589a4.js} +3 -3
  339. package/lib/duet/duet.esm.js +1 -1
  340. package/lib/duet/duet.js +1 -1
  341. package/lib/duet/{p-8e40c17e.entry.js → p-00213276.entry.js} +1 -1
  342. package/lib/duet/{p-12b625a8.entry.js → p-01d7ac55.entry.js} +1 -1
  343. package/lib/duet/{p-1428de02.entry.js → p-023fce1f.entry.js} +1 -1
  344. package/lib/duet/{p-bf039477.system.entry.js → p-07fed22f.system.entry.js} +1 -1
  345. package/lib/duet/{p-38487de7.system.entry.js → p-08a47466.system.entry.js} +1 -1
  346. package/lib/duet/{p-6c6981db.system.entry.js → p-0a11226b.system.entry.js} +1 -1
  347. package/lib/duet/{p-6d1f93c1.entry.js → p-0a912734.entry.js} +1 -1
  348. package/lib/duet/{p-70a7f815.entry.js → p-0c5d3a82.entry.js} +1 -1
  349. package/lib/duet/{p-915e55ec.entry.js → p-0d16c5ae.entry.js} +1 -1
  350. package/lib/duet/{p-7b5c18ba.system.entry.js → p-0def186e.system.entry.js} +1 -1
  351. package/lib/duet/{p-9261386e.system.entry.js → p-0e695a6c.system.entry.js} +2 -2
  352. package/lib/duet/{p-8b353b35.system.entry.js → p-0f087a51.system.entry.js} +2 -2
  353. package/lib/duet/{p-5c3998b7.entry.js → p-0f568460.entry.js} +1 -1
  354. package/lib/duet/{p-04dcf198.entry.js → p-13dd00d9.entry.js} +1 -1
  355. package/lib/duet/{p-4670cbd2.entry.js → p-1585915c.entry.js} +1 -1
  356. package/lib/duet/{p-5c91da22.entry.js → p-169801e2.entry.js} +1 -1
  357. package/lib/duet/{p-0c115b39.js → p-1cfacaa0.js} +1 -1
  358. package/lib/duet/{p-7373389d.entry.js → p-1d1caba8.entry.js} +1 -1
  359. package/lib/duet/{p-a4650edb.entry.js → p-1df70f01.entry.js} +1 -1
  360. package/lib/duet/{p-d6f8386e.entry.js → p-1e43f46b.entry.js} +1 -1
  361. package/lib/duet/{p-31f93fec.system.entry.js → p-1ef91f38.system.entry.js} +1 -1
  362. package/lib/duet/{p-7c74b0a5.system.entry.js → p-20408f45.system.entry.js} +1 -1
  363. package/lib/duet/{p-3af95762.system.js → p-225d896f.system.js} +1 -1
  364. package/lib/duet/{p-ea29ebbb.system.entry.js → p-2686c475.system.entry.js} +1 -1
  365. package/lib/duet/{p-419bca5b.system.entry.js → p-2724434b.system.entry.js} +1 -1
  366. package/lib/duet/{p-64542862.entry.js → p-27f623da.entry.js} +1 -1
  367. package/lib/duet/p-295bc09e.entry.js +4 -0
  368. package/lib/duet/{p-05e3b483.system.entry.js → p-2b04ef5c.system.entry.js} +1 -1
  369. package/lib/duet/{p-519297ed.system.entry.js → p-2cee1f9b.system.entry.js} +1 -1
  370. package/lib/duet/{p-225d100c.entry.js → p-2d7bc4a2.entry.js} +1 -1
  371. package/lib/duet/p-3051dbbb.entry.js +4 -0
  372. package/lib/duet/{p-013c9fff.entry.js → p-318bab4d.entry.js} +1 -1
  373. package/lib/duet/{p-b2a64677.system.entry.js → p-31c2bad0.system.entry.js} +1 -1
  374. package/lib/duet/{p-8594d015.system.entry.js → p-32234cba.system.entry.js} +1 -1
  375. package/lib/duet/{p-7e0e5b92.entry.js → p-33ffb428.entry.js} +1 -1
  376. package/lib/duet/{p-68ab87cc.entry.js → p-36a99082.entry.js} +1 -1
  377. package/lib/duet/{p-280063be.system.entry.js → p-36afe6cb.system.entry.js} +1 -1
  378. package/lib/duet/{p-fc4861d9.system.entry.js → p-36de2705.system.entry.js} +1 -1
  379. package/lib/duet/{p-8bed7caf.entry.js → p-3853498e.entry.js} +1 -1
  380. package/lib/duet/{p-8c2bc346.system.entry.js → p-3977bdb1.system.entry.js} +1 -1
  381. package/lib/duet/{p-277c4782.entry.js → p-39c01a70.entry.js} +1 -1
  382. package/lib/duet/{p-580d4d53.entry.js → p-3b1aa036.entry.js} +1 -1
  383. package/lib/duet/{p-580978f0.system.entry.js → p-3eae7e96.system.entry.js} +1 -1
  384. package/lib/duet/{p-8741bd70.entry.js → p-3ec00c51.entry.js} +1 -1
  385. package/lib/duet/{p-031f13b0.system.entry.js → p-3fbbc8f3.system.entry.js} +1 -1
  386. package/lib/duet/{p-78b02eb3.system.entry.js → p-409e717a.system.entry.js} +1 -1
  387. package/lib/duet/{p-53d7ea2c.entry.js → p-40efa103.entry.js} +1 -1
  388. package/lib/duet/{p-226aa2e9.system.entry.js → p-42a9ae6f.system.entry.js} +1 -1
  389. package/lib/duet/{p-1370b18f.entry.js → p-433a874a.entry.js} +1 -1
  390. package/lib/duet/p-447b8180.entry.js +4 -0
  391. package/lib/duet/{p-43cbc2bf.entry.js → p-464f4b7b.entry.js} +1 -1
  392. package/lib/duet/{p-430404c6.entry.js → p-488c0e3a.entry.js} +1 -1
  393. package/lib/duet/{p-cf900c12.system.entry.js → p-4ac80ae7.system.entry.js} +1 -1
  394. package/lib/duet/{p-94179cd5.system.entry.js → p-5153ffb5.system.entry.js} +1 -1
  395. package/lib/duet/{p-f3c5e966.system.entry.js → p-520b7deb.system.entry.js} +1 -1
  396. package/lib/duet/{p-759dca5c.system.entry.js → p-52d47015.system.entry.js} +1 -1
  397. package/lib/duet/{p-5b86d3c0.entry.js → p-5540127f.entry.js} +1 -1
  398. package/lib/duet/p-575c30ef.system.js +5 -0
  399. package/lib/duet/{p-b9231b8e.entry.js → p-584d6a6f.entry.js} +1 -1
  400. package/lib/duet/{p-07f8adab.entry.js → p-59df0c73.entry.js} +1 -1
  401. package/lib/duet/{p-f36f2f4b.entry.js → p-5b634ed9.entry.js} +1 -1
  402. package/lib/duet/{p-72809aec.system.js → p-5b87722f.system.js} +1 -1
  403. package/lib/duet/p-5b9ead99.entry.js +4 -0
  404. package/lib/duet/{p-c613e449.system.entry.js → p-5cf8adc4.system.entry.js} +1 -1
  405. package/lib/duet/{p-d693003b.entry.js → p-5ddbca89.entry.js} +1 -1
  406. package/lib/duet/p-5e7f679b.system.js +4 -0
  407. package/lib/duet/{p-6270b097.entry.js → p-5ed3cb90.entry.js} +1 -1
  408. package/lib/duet/{p-0dcc1a8b.system.entry.js → p-5f96e4e5.system.entry.js} +1 -1
  409. package/lib/duet/{p-827c2a0d.system.entry.js → p-62190c9b.system.entry.js} +1 -1
  410. package/lib/duet/{p-8acb2a04.entry.js → p-62641202.entry.js} +1 -1
  411. package/lib/duet/p-646ef587.entry.js +4 -0
  412. package/lib/duet/{p-4460ee6c.js → p-64f7e70b.js} +1 -1
  413. package/lib/duet/{p-318498a5.entry.js → p-66018a44.entry.js} +1 -1
  414. package/lib/duet/{p-fd7ff8da.system.entry.js → p-66909888.system.entry.js} +1 -1
  415. package/lib/duet/{p-0b986e9b.entry.js → p-67664a30.entry.js} +1 -1
  416. package/lib/duet/{p-053ef6d1.system.entry.js → p-676e0083.system.entry.js} +1 -1
  417. package/lib/duet/{p-cb15af71.entry.js → p-6b88e0e0.entry.js} +1 -1
  418. package/lib/duet/{p-f248e320.system.entry.js → p-6d945a13.system.entry.js} +1 -1
  419. package/lib/duet/{p-a9f4cfe4.entry.js → p-6dd4a284.entry.js} +1 -1
  420. package/lib/duet/{p-b86a869b.entry.js → p-715167d0.entry.js} +1 -1
  421. package/lib/duet/{p-f91f1fc4.system.entry.js → p-74595c7b.system.entry.js} +1 -1
  422. package/lib/duet/{p-44e4cc6f.entry.js → p-759159df.entry.js} +1 -1
  423. package/lib/duet/{p-accd2829.system.entry.js → p-76b521c3.system.entry.js} +1 -1
  424. package/lib/duet/{p-8beb97fe.system.entry.js → p-76bc7f02.system.entry.js} +1 -1
  425. package/lib/duet/{p-af55cef5.entry.js → p-78029a8c.entry.js} +1 -1
  426. package/lib/duet/{p-20b0dacc.system.entry.js → p-78a1c944.system.entry.js} +1 -1
  427. package/lib/duet/{p-c35a3eb6.system.entry.js → p-7af3685e.system.entry.js} +1 -1
  428. package/lib/duet/{p-d0edb7b9.system.entry.js → p-7f982bc5.system.entry.js} +1 -1
  429. package/lib/duet/{p-b4151081.system.entry.js → p-7fafcd70.system.entry.js} +1 -1
  430. package/lib/duet/{p-35950181.entry.js → p-811e587d.entry.js} +1 -1
  431. package/lib/duet/{p-3c466cd8.entry.js → p-81ac1fb9.entry.js} +1 -1
  432. package/lib/duet/{p-32ef55ff.system.entry.js → p-834bb95a.system.entry.js} +2 -2
  433. package/lib/duet/{p-cb5d825f.system.entry.js → p-8870ff92.system.entry.js} +1 -1
  434. package/lib/duet/{p-b1db69df.entry.js → p-894af6d5.entry.js} +1 -1
  435. package/lib/duet/{p-a1c6f370.entry.js → p-898a1eb6.entry.js} +1 -1
  436. package/lib/duet/{p-0fdf67d6.system.entry.js → p-8c475dea.system.entry.js} +1 -1
  437. package/lib/duet/p-8cb0e6bd.js +4 -0
  438. package/lib/duet/{p-7ff034b0.system.entry.js → p-8e1b9c1a.system.entry.js} +2 -2
  439. package/lib/duet/{p-204e76d3.entry.js → p-8f3d2885.entry.js} +1 -1
  440. package/lib/duet/p-8fdd5cc7.system.entry.js +4 -0
  441. package/lib/duet/p-8fde9a1b.js +5 -0
  442. package/lib/duet/{p-04b258fd.entry.js → p-8fe41782.entry.js} +1 -1
  443. package/lib/duet/{p-818b5277.entry.js → p-90132584.entry.js} +1 -1
  444. package/lib/duet/{p-a5fac26c.entry.js → p-908aa11e.entry.js} +1 -1
  445. package/lib/duet/{p-81e906ff.system.entry.js → p-96415561.system.entry.js} +1 -1
  446. package/lib/duet/{p-009738f9.entry.js → p-96cb91ac.entry.js} +1 -1
  447. package/lib/duet/{p-d046f3f0.system.entry.js → p-975e92b7.system.entry.js} +2 -2
  448. package/lib/duet/{p-d1464455.system.entry.js → p-a112a313.system.entry.js} +1 -1
  449. package/lib/duet/{p-bd5bc40f.system.entry.js → p-a2f07690.system.entry.js} +1 -1
  450. package/lib/duet/p-a451ac2a.entry.js +4 -0
  451. package/lib/duet/p-a4608e97.entry.js +4 -0
  452. package/lib/duet/{p-42868a02.system.entry.js → p-a5cdb4fb.system.entry.js} +1 -1
  453. package/lib/duet/{p-f2f75690.entry.js → p-a5d3dd13.entry.js} +1 -1
  454. package/lib/duet/{p-b92193a6.system.entry.js → p-a62a66ea.system.entry.js} +1 -1
  455. package/lib/duet/{p-ddd70eeb.system.entry.js → p-a76f07dc.system.entry.js} +1 -1
  456. package/lib/duet/p-acb77c8b.system.js +4 -0
  457. package/lib/duet/{p-936b8007.system.entry.js → p-ada4e675.system.entry.js} +2 -2
  458. package/lib/duet/{p-538e55e5.entry.js → p-ade5c55c.entry.js} +1 -1
  459. package/lib/duet/p-ae0f8173.system.entry.js +4 -0
  460. package/lib/duet/p-b1f33063.system.js +4 -0
  461. package/lib/duet/{p-fb4f24c4.system.entry.js → p-b2f132e7.system.entry.js} +1 -1
  462. package/lib/duet/{p-12b57efb.entry.js → p-b4bd3b2c.entry.js} +1 -1
  463. package/lib/duet/{p-5f56c425.system.entry.js → p-b53f51e9.system.entry.js} +1 -1
  464. package/lib/duet/{p-2100fda2.system.entry.js → p-b5afa22f.system.entry.js} +1 -1
  465. package/lib/duet/p-b5cf1014.system.entry.js +4 -0
  466. package/lib/duet/p-b62b1ae8.entry.js +4 -0
  467. package/lib/duet/p-b87e98f8.system.js +4 -0
  468. package/lib/duet/p-b88bf0cf.js +4 -0
  469. package/lib/duet/{p-9936eb61.entry.js → p-b92ebb57.entry.js} +1 -1
  470. package/lib/duet/{p-ee5c74bc.system.entry.js → p-ba01d549.system.entry.js} +1 -1
  471. package/lib/duet/{p-d287e564.entry.js → p-ba86d704.entry.js} +1 -1
  472. package/lib/duet/{p-eab15c94.system.entry.js → p-bc249477.system.entry.js} +1 -1
  473. package/lib/duet/{p-c46cff2a.system.js → p-bc97e6a8.system.js} +1 -1
  474. package/lib/duet/{p-d3b2d5de.system.entry.js → p-c00053cb.system.entry.js} +1 -1
  475. package/lib/duet/{p-b1487aa4.system.entry.js → p-c02998a1.system.entry.js} +1 -1
  476. package/lib/duet/{p-0d512165.entry.js → p-c3bbb91e.entry.js} +1 -1
  477. package/lib/duet/{p-24898376.entry.js → p-c5eaf3a1.entry.js} +1 -1
  478. package/lib/duet/{p-572bf138.entry.js → p-c9459a92.entry.js} +1 -1
  479. package/lib/duet/{p-d2f008ef.entry.js → p-c9d3f692.entry.js} +1 -1
  480. package/lib/duet/{p-420817c5.system.entry.js → p-cac48643.system.entry.js} +1 -1
  481. package/lib/duet/{p-618b1c12.entry.js → p-cb7dccf2.entry.js} +1 -1
  482. package/lib/duet/p-cbeb7a7f.entry.js +4 -0
  483. package/lib/duet/{p-6c8361b8.entry.js → p-cda3dd39.entry.js} +1 -1
  484. package/lib/duet/{p-955ccb5a.system.entry.js → p-cf02b043.system.entry.js} +1 -1
  485. package/lib/duet/{p-de32ceff.system.entry.js → p-cfa0f78a.system.entry.js} +1 -1
  486. package/lib/duet/{p-818fd2f6.entry.js → p-d00a1ca7.entry.js} +1 -1
  487. package/lib/duet/{p-8b2056f0.system.js → p-d1abb9cd.system.js} +1 -1
  488. package/lib/duet/{p-67ea455b.system.entry.js → p-d55cd34e.system.entry.js} +1 -1
  489. package/lib/duet/{p-57d70be4.system.entry.js → p-d5df40cf.system.entry.js} +1 -1
  490. package/lib/duet/{p-679b55fe.entry.js → p-d7ccf5ec.entry.js} +1 -1
  491. package/lib/duet/{p-426d835f.entry.js → p-d81b6edc.entry.js} +1 -1
  492. package/lib/duet/{p-caf28e68.system.entry.js → p-db0b77ca.system.entry.js} +1 -1
  493. package/lib/duet/{p-fb4c1c0a.system.entry.js → p-de2f8904.system.entry.js} +1 -1
  494. package/lib/duet/{p-fda88cec.system.entry.js → p-de81656a.system.entry.js} +1 -1
  495. package/lib/duet/p-e1827d9e.system.entry.js +4 -0
  496. package/lib/duet/{p-591ce092.entry.js → p-e669ce8c.entry.js} +1 -1
  497. package/lib/duet/{p-aada68bf.entry.js → p-e8b8a3ad.entry.js} +1 -1
  498. package/lib/duet/{p-74f81150.entry.js → p-e8bc416f.entry.js} +1 -1
  499. package/lib/duet/{p-dd8cad8a.entry.js → p-e9171ed3.entry.js} +1 -1
  500. package/lib/duet/{p-c1380dcb.system.entry.js → p-ea790730.system.entry.js} +2 -2
  501. package/lib/duet/{p-948b038a.system.entry.js → p-ec784e1d.system.entry.js} +1 -1
  502. package/lib/duet/{p-f57f0b8c.entry.js → p-edbffab0.entry.js} +1 -1
  503. package/lib/duet/{p-b994aa71.system.entry.js → p-eddd3652.system.entry.js} +1 -1
  504. package/lib/duet/{p-df82459a.entry.js → p-f1fcaad6.entry.js} +1 -1
  505. package/lib/duet/{p-4994dbf2.system.entry.js → p-f20ad02b.system.entry.js} +1 -1
  506. package/lib/duet/p-f27e5ce4.js +4 -0
  507. package/lib/duet/{p-9db6f107.system.entry.js → p-f2ddfe13.system.entry.js} +1 -1
  508. package/lib/duet/{p-d98c8e4e.system.entry.js → p-f49a7dd9.system.entry.js} +1 -1
  509. package/lib/duet/{p-9b702bc1.system.entry.js → p-f583ecaf.system.entry.js} +1 -1
  510. package/lib/duet/{p-0121cfad.entry.js → p-f6cfa6ea.entry.js} +1 -1
  511. package/lib/duet/p-f965caf6.entry.js +4 -0
  512. package/lib/duet/{p-f12a93a9.system.entry.js → p-fa7cdaa4.system.entry.js} +1 -1
  513. package/lib/duet/{p-5baa6a33.js → p-faed9fef.js} +1 -1
  514. package/lib/duet/{p-f6c800dd.system.entry.js → p-fb515009.system.entry.js} +1 -1
  515. package/lib/duet/{p-976918a1.system.entry.js → p-fb574eaf.system.entry.js} +1 -1
  516. package/lib/duet/{p-530e612b.js → p-fb811193.js} +1 -1
  517. package/lib/duet/{p-9192b71d.system.entry.js → p-fb98c26d.system.entry.js} +1 -1
  518. package/lib/duet/{p-82cf9d43.entry.js → p-fba4682d.entry.js} +1 -1
  519. package/lib/duet/{p-6a689584.system.entry.js → p-fcbcf5d6.system.entry.js} +1 -1
  520. package/lib/duet/p-fcca7eb3.entry.js +4 -0
  521. package/lib/duet/{p-6365f418.system.entry.js → p-fd6e9582.system.entry.js} +1 -1
  522. package/lib/esm/{a11y-utils-d3187c9b.js → a11y-utils-682fc061.js} +1 -1
  523. package/lib/esm/{app-globals-aa323b86.js → app-globals-5ae3ef64.js} +1 -1
  524. package/lib/esm/duet-action-button.entry.js +2 -2
  525. package/lib/esm/duet-alert.entry.js +16 -16
  526. package/lib/esm/duet-badge.entry.js +3 -3
  527. package/lib/esm/duet-banner.entry.js +4 -4
  528. package/lib/esm/duet-breadcrumb.entry.js +6 -6
  529. package/lib/esm/duet-breadcrumbs.entry.js +4 -4
  530. package/lib/esm/duet-button_2.entry.js +9 -9
  531. package/lib/esm/duet-callout.entry.js +4 -4
  532. package/lib/esm/duet-caption_4.entry.js +30 -13
  533. package/lib/esm/duet-card.entry.js +5 -5
  534. package/lib/esm/duet-checkbox.entry.js +1 -1
  535. package/lib/esm/duet-checkmark.entry.js +3 -3
  536. package/lib/esm/duet-chip.entry.js +3 -3
  537. package/lib/esm/duet-choice_2.entry.js +3 -3
  538. package/lib/esm/duet-collapsible.entry.js +4 -4
  539. package/lib/esm/duet-combobox.entry.js +8 -4
  540. package/lib/esm/duet-contact-card.entry.js +4 -4
  541. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  542. package/lib/esm/duet-date-picker.entry.js +4 -4
  543. package/lib/esm/duet-divider_2.entry.js +3 -3
  544. package/lib/esm/duet-editable-table_3.entry.js +7 -7
  545. package/lib/esm/duet-empty-state.entry.js +3 -3
  546. package/lib/esm/duet-fieldset.entry.js +5 -5
  547. package/lib/esm/duet-file-chooser.entry.js +2 -2
  548. package/lib/esm/duet-footer.entry.js +7 -7
  549. package/lib/esm/duet-grid_2.entry.js +1 -1
  550. package/lib/esm/duet-header_2.entry.js +3 -3
  551. package/lib/esm/duet-hero.entry.js +8 -8
  552. package/lib/esm/duet-icon.entry.js +4 -4
  553. package/lib/esm/duet-input_2.entry.js +9 -3
  554. package/lib/esm/duet-layout.entry.js +7 -7
  555. package/lib/esm/duet-list_2.entry.js +4 -4
  556. package/lib/esm/duet-menu-bar-button.entry.js +3 -3
  557. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +3 -3
  558. package/lib/esm/duet-menu-bar-dropdown.entry.js +5 -5
  559. package/lib/esm/duet-menu-bar-item.entry.js +6 -6
  560. package/lib/esm/duet-menu-bar-link.entry.js +3 -3
  561. package/lib/esm/duet-menu-bar.entry.js +4 -4
  562. package/lib/esm/duet-modal.entry.js +11 -11
  563. package/lib/esm/duet-multiselect.entry.js +8 -8
  564. package/lib/esm/duet-nav.entry.js +2 -2
  565. package/lib/esm/duet-notification_2.entry.js +6 -6
  566. package/lib/esm/duet-number-input.entry.js +3 -3
  567. package/lib/esm/duet-overlay.entry.js +2 -2
  568. package/lib/esm/duet-page-heading.entry.js +3 -3
  569. package/lib/esm/duet-pagination_2.entry.js +15 -15
  570. package/lib/esm/duet-phone-input.entry.js +9 -3
  571. package/lib/esm/duet-popup-menu_2.entry.js +8 -8
  572. package/lib/esm/duet-progress.entry.js +2 -2
  573. package/lib/esm/duet-promo-card.entry.js +4 -4
  574. package/lib/esm/duet-radio_2.entry.js +2 -2
  575. package/lib/esm/duet-range-slider.entry.js +1 -1
  576. package/lib/esm/duet-scrollable_3.entry.js +23 -14
  577. package/lib/esm/duet-section-layout.entry.js +4 -4
  578. package/lib/esm/duet-select.entry.js +2 -2
  579. package/lib/esm/duet-shaped-image.entry.js +3 -3
  580. package/lib/esm/duet-show-more.entry.js +4 -4
  581. package/lib/esm/duet-slideout-lang.entry.js +3 -3
  582. package/lib/esm/duet-slideout-link.entry.js +6 -6
  583. package/lib/esm/duet-slideout-panel-dropdown.entry.js +5 -5
  584. package/lib/esm/duet-slideout-panel.entry.js +10 -10
  585. package/lib/esm/duet-slideout.entry.js +9 -9
  586. package/lib/esm/duet-status-icon.entry.js +8 -8
  587. package/lib/esm/duet-step_2.entry.js +2 -2
  588. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +3 -3
  589. package/lib/esm/duet-submenu-bar-dropdown.entry.js +5 -5
  590. package/lib/esm/duet-submenu-bar-item.entry.js +5 -5
  591. package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
  592. package/lib/esm/duet-submenu-bar.entry.js +6 -6
  593. package/lib/esm/duet-textarea.entry.js +3 -3
  594. package/lib/esm/duet-toggle.entry.js +1 -1
  595. package/lib/esm/duet-toolbar-dropdown-link.entry.js +3 -3
  596. package/lib/esm/duet-toolbar-dropdown.entry.js +5 -5
  597. package/lib/esm/duet-toolbar-item.entry.js +7 -7
  598. package/lib/esm/duet-toolbar-link.entry.js +3 -3
  599. package/lib/esm/duet-toolbar.entry.js +3 -3
  600. package/lib/esm/duet-tooltip-button_2.entry.js +7 -7
  601. package/lib/esm/duet-tooltip.entry.js +2 -2
  602. package/lib/esm/duet-tray.entry.js +4 -4
  603. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  604. package/lib/esm/duet-upload-item.entry.js +5 -5
  605. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  606. package/lib/esm/duet.js +4 -4
  607. package/lib/esm/{errorcodes.utils-2a62c871.js → errorcodes.utils-23d19523.js} +1 -1
  608. package/lib/esm/{focus-utils-27172227.js → focus-utils-b97d6fb5.js} +1 -1
  609. package/lib/esm/{index-2ab7ff5a.js → index-9b64dfa3.js} +6 -6
  610. package/lib/esm/{language-utils-579bbfe7.js → language-utils-87dc6eb1.js} +1 -1
  611. package/lib/esm/loader.js +4 -4
  612. package/lib/esm/{slot-utils-2fa37472.js → slot-utils-b8cbdf64.js} +1 -1
  613. package/lib/esm/{teleport-546f382d.js → teleport-aa27d5f9.js} +2 -2
  614. package/lib/esm-es5/{a11y-utils-d3187c9b.js → a11y-utils-682fc061.js} +1 -1
  615. package/lib/esm-es5/{app-globals-aa323b86.js → app-globals-5ae3ef64.js} +1 -1
  616. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  617. package/lib/esm-es5/duet-alert.entry.js +2 -2
  618. package/lib/esm-es5/duet-badge.entry.js +1 -1
  619. package/lib/esm-es5/duet-banner.entry.js +1 -1
  620. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  621. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  622. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  623. package/lib/esm-es5/duet-callout.entry.js +1 -1
  624. package/lib/esm-es5/duet-caption_4.entry.js +2 -2
  625. package/lib/esm-es5/duet-card.entry.js +2 -2
  626. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  627. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  628. package/lib/esm-es5/duet-chip.entry.js +2 -2
  629. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  630. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  631. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  632. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  633. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  634. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  635. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  636. package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
  637. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  638. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  639. package/lib/esm-es5/duet-file-chooser.entry.js +2 -2
  640. package/lib/esm-es5/duet-footer.entry.js +1 -1
  641. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  642. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  643. package/lib/esm-es5/duet-hero.entry.js +1 -1
  644. package/lib/esm-es5/duet-icon.entry.js +1 -1
  645. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  646. package/lib/esm-es5/duet-layout.entry.js +1 -1
  647. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  648. package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
  649. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  650. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  651. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  652. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  653. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  654. package/lib/esm-es5/duet-modal.entry.js +1 -1
  655. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  656. package/lib/esm-es5/duet-nav.entry.js +1 -1
  657. package/lib/esm-es5/duet-notification_2.entry.js +2 -2
  658. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  659. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  660. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  661. package/lib/esm-es5/duet-pagination_2.entry.js +2 -2
  662. package/lib/esm-es5/duet-phone-input.entry.js +1 -1
  663. package/lib/esm-es5/duet-popup-menu_2.entry.js +1 -1
  664. package/lib/esm-es5/duet-progress.entry.js +1 -1
  665. package/lib/esm-es5/duet-promo-card.entry.js +2 -2
  666. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  667. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  668. package/lib/esm-es5/duet-scrollable_3.entry.js +2 -2
  669. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  670. package/lib/esm-es5/duet-select.entry.js +1 -1
  671. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  672. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  673. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  674. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  675. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  676. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  677. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  678. package/lib/esm-es5/duet-status-icon.entry.js +1 -1
  679. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  680. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  681. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  682. package/lib/esm-es5/duet-submenu-bar-item.entry.js +2 -2
  683. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  684. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  685. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  686. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  687. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  688. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  689. package/lib/esm-es5/duet-toolbar-item.entry.js +2 -2
  690. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  691. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  692. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  693. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  694. package/lib/esm-es5/duet-tray.entry.js +1 -1
  695. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  696. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  697. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  698. package/lib/esm-es5/duet.js +1 -1
  699. package/lib/esm-es5/{errorcodes.utils-2a62c871.js → errorcodes.utils-23d19523.js} +1 -1
  700. package/lib/esm-es5/{focus-utils-27172227.js → focus-utils-b97d6fb5.js} +1 -1
  701. package/lib/esm-es5/index-9b64dfa3.js +4 -0
  702. package/lib/esm-es5/{language-utils-579bbfe7.js → language-utils-87dc6eb1.js} +1 -1
  703. package/lib/esm-es5/loader.js +1 -1
  704. package/lib/esm-es5/{slot-utils-2fa37472.js → slot-utils-b8cbdf64.js} +1 -1
  705. package/lib/esm-es5/teleport-aa27d5f9.js +4 -0
  706. package/lib/types/components/duet-alert/duet-alert.d.ts +11 -4
  707. package/lib/types/components/duet-combobox/duet-combobox.d.ts +1 -0
  708. package/lib/types/components/duet-input/duet-input.d.ts +4 -0
  709. package/lib/types/components/duet-link/duet-link.d.ts +3 -0
  710. package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +4 -0
  711. package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +5 -0
  712. package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +9 -0
  713. package/lib/types/components.d.ts +54 -6
  714. package/package.json +4 -4
  715. package/lib/dist-custom-elements/p-9fda1d1d.js +0 -205
  716. package/lib/duet/p-0ac49d24.entry.js +0 -4
  717. package/lib/duet/p-0f99e898.entry.js +0 -4
  718. package/lib/duet/p-1219c4af.system.js +0 -4
  719. package/lib/duet/p-14fe190e.system.js +0 -5
  720. package/lib/duet/p-1a73d27a.entry.js +0 -4
  721. package/lib/duet/p-1b269e8b.system.entry.js +0 -4
  722. package/lib/duet/p-2f8ffc2b.system.entry.js +0 -4
  723. package/lib/duet/p-336da573.entry.js +0 -4
  724. package/lib/duet/p-38ff8286.js +0 -4
  725. package/lib/duet/p-3acc8647.system.js +0 -4
  726. package/lib/duet/p-43f0aaf5.entry.js +0 -4
  727. package/lib/duet/p-5e0bfce0.entry.js +0 -4
  728. package/lib/duet/p-5ff9214f.entry.js +0 -4
  729. package/lib/duet/p-7d396a31.entry.js +0 -4
  730. package/lib/duet/p-85c02068.entry.js +0 -4
  731. package/lib/duet/p-88f046a0.entry.js +0 -4
  732. package/lib/duet/p-897f21a7.system.js +0 -4
  733. package/lib/duet/p-98012c62.entry.js +0 -4
  734. package/lib/duet/p-9eeaf2e9.js +0 -4
  735. package/lib/duet/p-c936b330.system.entry.js +0 -4
  736. package/lib/duet/p-ca3cb21e.js +0 -4
  737. package/lib/duet/p-ecb2aca6.js +0 -5
  738. package/lib/duet/p-ed82b53d.system.entry.js +0 -4
  739. package/lib/duet/p-f6b21d17.system.js +0 -4
  740. package/lib/esm-es5/index-2ab7ff5a.js +0 -4
  741. package/lib/esm-es5/teleport-546f382d.js +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duetds/components",
3
- "version": "9.5.2",
3
+ "version": "9.6.0",
4
4
  "description": "This package includes Duet Design System Web Components and related utilities.",
5
5
  "bugs": {
6
6
  "email": "duetdesignsystem@lahitapiola.fi"
@@ -45,8 +45,8 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@duetds/fonts": "3.0.51",
48
- "@duetds/icons": "4.1.13",
49
- "@duetds/tokens": "4.0.90",
48
+ "@duetds/icons": "4.1.14",
49
+ "@duetds/tokens": "4.0.91",
50
50
  "@percy/cli": "1.30.1",
51
51
  "@rollup/plugin-replace": "5.0.2",
52
52
  "@stencil/core": "4.23.0",
@@ -77,5 +77,5 @@
77
77
  "collection": "lib/collection/collection-manifest.json",
78
78
  "es2015": "lib/esm/index.js",
79
79
  "es2017": "lib/esm/index.js",
80
- "gitHead": "9f38f5031eae2205b27beaf9e84f6282a2da3d52"
80
+ "gitHead": "151183355f6fd9c14f447e67fe11efb95194edf5"
81
81
  }
@@ -1,205 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-1b7f952f.js';
5
- import { i as inheritGlobalTheme } from './p-aaa7a7bd.js';
6
- import { c as createID } from './p-5e59e970.js';
7
- import { s as subscribeTabbingChange, u as unsubscribeTabbingChange } from './p-8db11326.js';
8
- import { g as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './p-35375593.js';
9
- import { h as hasSlot } from './p-f21662ea.js';
10
- import { d as defineCustomElement$5 } from './p-accb4fa9.js';
11
- import { d as defineCustomElement$4 } from './p-136dc3af.js';
12
- import { d as defineCustomElement$3 } from './p-fba92a7b.js';
13
- import { d as defineCustomElement$2 } from './p-320da2a2.js';
14
- import { d as defineCustomElement$1 } from './p-6646e07d.js';
15
-
16
- const duetAlertCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;max-height:999px;border-radius:4px;transition:opacity 300ms ease, visibility 300ms ease, transform 300ms ease, max-height 300ms ease}:host(:focus){outline:0}:host(.user-is-tabbing:focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing.duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}:host(.duet-alert-is-dismissed){max-height:0;overflow:hidden;visibility:hidden !important;opacity:0;transform:scale(0.98)}:host(.duet-alert-is-dismissed) .duet-alert{margin:0 !important}.duet-alert-wrapper{margin-bottom:16px !important;position:relative;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);background:#f2f8fb;border:1px solid rgb(0, 119, 179);border-radius:4px;transition:margin 100ms 300ms ease}.duet-alert-wrapper.duet-p-0{padding:0 !important}.duet-alert-wrapper.duet-m-0{margin:0 !important}.duet-alert-wrapper.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);background:#f3f4f5;border-color:rgb(23, 28, 58)}.duet-alert-wrapper.warning{background:#fffbf4;border-color:rgb(247, 178, 40)}.duet-alert-wrapper.warning.duet-theme-turva{background:#fffbf4;border-color:rgb(247, 178, 40)}.duet-alert-wrapper.danger{background:#fdf4f6;border-color:rgb(214, 28, 82)}.duet-alert-wrapper.danger.duet-theme-turva{background:#fdf4f6;border-color:rgb(214, 28, 82)}.duet-alert-wrapper.success{background:#f5f9f8;border-color:rgb(48, 131, 105)}.duet-alert-wrapper.success.duet-theme-turva{background:#f5f9f8;border-color:rgb(48, 131, 105)}.duet-alert-wrapper.below-nav{margin-bottom:0 !important;border:0;border-bottom:1px solid rgb(212, 223, 229)}.duet-alert-wrapper .duet-alert{position:relative;width:100%;max-width:1384px;padding:16px;margin:0 auto}.duet-alert-wrapper .duet-alert.duet-alert-is-dismissible{padding:16px 48px 16px 16px;text-align:left}.duet-alert-wrapper .duet-alert.duet-alert-is-dismissible .duet-alert-container{text-align:left}.duet-alert-wrapper .duet-alert.duet-alert-has-show-more{padding-bottom:0}.duet-alert-wrapper .duet-alert.duet-alert-has-icon .duet-alert-show-more{margin-left:36px}.duet-alert-dismiss{position:absolute;top:2px;right:2px}.duet-alert-container{display:inline-flex;align-items:center;justify-content:center;width:100%;margin:0 auto !important}.duet-alert-container span{width:100%}.duet-alert-has-icon .duet-alert-container{margin-top:2px !important}.duet-alert-container:focus{outline:none}.duet-alert-icon{display:inline-block;align-self:center;width:20px;min-width:20px;height:20px;margin:0 16px 0 0 !important}.duet-alert-icon.below-nav{align-self:flex-start}.duet-alert-icon duet-icon{width:20px;height:20px}";
17
- const DuetAlertStyle0 = duetAlertCss;
18
-
19
- const DuetAlert = /*@__PURE__*/ proxyCustomElement(class DuetAlert extends H {
20
- constructor() {
21
- super();
22
- this.__registerHost();
23
- this.__attachShadow();
24
- this.duetDismiss = createEvent(this, "duetDismiss", 7);
25
- this.duetCloseComplete = createEvent(this, "duetCloseComplete", 7);
26
- this.descriptiveId = createID("DuetAlert");
27
- this.hasShowMoreSlot = false;
28
- this.iconVariationMap = {
29
- default: "messaging-info",
30
- success: "messaging-success",
31
- warning: "messaging-alert",
32
- danger: "messaging-danger-alert",
33
- };
34
- this.handleDismiss = (ev) => {
35
- this.handleHide();
36
- this.duetDismiss.emit({
37
- component: "duet-alert",
38
- originalEvent: ev,
39
- });
40
- };
41
- this.handleShow = () => {
42
- this.isDismissed = false;
43
- };
44
- this.handleHide = () => {
45
- this.isDismissed = true;
46
- this.element.addEventListener("transitionend", () => this.duetCloseComplete.emit(), { once: true });
47
- };
48
- this.theme = "";
49
- this.isDismissed = false;
50
- this.timeoutID = undefined;
51
- this.accessibleLabelDefaults = {
52
- fi: "Painike viestin sulkemiseen",
53
- sv: "Knapp för att stänga meddelandet",
54
- en: "Button to close the message",
55
- };
56
- this.accessibleLabel = getLocaleString(this.accessibleLabelDefaults);
57
- this.announcements = true;
58
- this.icon = "";
59
- this.autoDismiss = undefined;
60
- this.margin = "auto";
61
- this.padding = "auto";
62
- this.variation = "default";
63
- this.position = "content";
64
- this.dismissible = false;
65
- this.focusable = false;
66
- }
67
- /**
68
- * Component lifecycle events.
69
- */
70
- componentWillLoad() {
71
- inheritGlobalTheme(this);
72
- this.hasShowMoreSlot = hasSlot(this.element, "show-more");
73
- }
74
- componentDidLoad() {
75
- if (this.autoDismiss) {
76
- this.timeoutID = setTimeout(() => this.handleDismiss(), this.autoDismiss);
77
- }
78
- }
79
- connectedCallback() {
80
- connectLanguageChangeObserver(this, { prop: "accessibleLabel", defaults: "accessibleLabelDefaults" });
81
- subscribeTabbingChange(this);
82
- }
83
- disconnectedCallback() {
84
- if (this.timeoutID) {
85
- clearTimeout(this.timeoutID);
86
- }
87
- disconnectLanguageChangeObserver(this);
88
- unsubscribeTabbingChange(this);
89
- }
90
- /**
91
- * Show.
92
- */
93
- async show() {
94
- this.handleShow();
95
- }
96
- /**
97
- * Hide.
98
- */
99
- async hide() {
100
- this.handleHide();
101
- }
102
- /**
103
- * Sets focus on the specified `duet-alert`.
104
- * Works only when focusable property is set to true.
105
- * Use this method instead of the global
106
- * `button.focus()`.
107
- */
108
- async setFocus(options) {
109
- this.alertContainer.focus(options);
110
- }
111
- /**
112
- * There is bug in NVDA screen reader
113
- * that is causing multiple alert readings
114
- * when alert contains other components (link, button etc.).
115
- */
116
- /**
117
- * render() function
118
- * Always the last one in the class.
119
- */
120
- render() {
121
- const closeColor = this.theme === "turva" ? "secondary-turva" : "secondary";
122
- return (h(Host, { key: 'd3c53bc46ae4d9f94d286a8ca55a1891afaec2d1', class: {
123
- "duet-theme-turva": this.theme === "turva",
124
- "duet-alert-is-dismissed": this.isDismissed,
125
- }, role: this.announcements ? "alert" : undefined }, h("div", { key: '9b7c2ede2a81e5459214b3262c08f5a096251f50', class: {
126
- "duet-alert-wrapper": true,
127
- "duet-p-0": this.padding === "none",
128
- "duet-m-0": this.margin === "none",
129
- [this.variation]: true,
130
- [this.position]: true,
131
- "duet-theme-turva": this.theme === "turva",
132
- } }, h("div", { key: 'c372501af01265a0e962d41b0aeefa1b0803dc7a', class: {
133
- "duet-alert": true,
134
- "duet-alert-has-icon": !!this.icon || this.position === "below-nav",
135
- "duet-alert-has-show-more": this.hasShowMoreSlot,
136
- "duet-alert-is-dismissible": this.dismissible,
137
- "duet-p-0": this.padding === "none",
138
- "duet-m-0": this.margin === "none",
139
- [this.variation]: true,
140
- "duet-theme-turva": this.theme === "turva",
141
- } }, h("div", { key: '6a00f96245f482fa280c5618d1ab3e3d61ae57bf', class: "duet-alert-container", ref: element => {
142
- this.alertContainer = element;
143
- }, tabindex: this.focusable ? "0" : undefined }, this.icon && this.position !== "below-nav" && (h("div", { key: '3993720ebce31589b986f5441c9f8f48719f6c97', class: "duet-alert-icon" }, h("duet-icon", { key: 'fc93bdce332702991e0dedf6eba0276c5d9c3e6d', size: "auto", name: this.icon, color: "currentColor" }))), this.position === "below-nav" && (h("div", { key: 'e469d1feb00ce1b223b7977a1b87228933556823', class: "duet-alert-icon below-nav" }, h("duet-icon", { key: '8e3407af6309c0107a6e78107c965cf28cadbec3', size: "auto", name: this.iconVariationMap[this.variation], color: this.variation === "default" ? "currentColor" : this.variation }))), h("span", { key: 'e4e8494c19f24f7da051b98cef3c3efcdeb47031', id: this.descriptiveId }, h("slot", { key: '1ce9a6e6c13e76f6fbf1317fa867d5400c79f41e' }))), this.hasShowMoreSlot && (h("duet-show-more", { key: '2106929166ce1b954dff45ed25b218ddce15f4d9', margin: "none", class: "duet-alert-show-more" }, h("slot", { key: '331aa9d74f0b995b55b6b119e569411a07673c3e', name: "show-more" }))), this.dismissible && (h("div", { key: '9cfd9e835660d246540ca7452de22bcd324d4682', class: "duet-alert-dismiss" }, h("duet-button", { key: 'fe950cf6c3d775160bd97b34e88ca71603a47d19', variation: "plain", accessibleLabel: this.accessibleLabel, accessibleDescribedBy: this.descriptiveId, color: closeColor, iconSize: "medium", icon: "navigation-close", iconOnly: true, margin: "none", theme: this.theme, onClick: this.handleDismiss, fixed: true })))))));
144
- }
145
- get element() { return this; }
146
- static get style() { return DuetAlertStyle0; }
147
- }, [1, "duet-alert", {
148
- "theme": [1025],
149
- "accessibleLabelDefaults": [1, "accessible-label-default"],
150
- "accessibleLabel": [1025, "accessible-label"],
151
- "announcements": [4],
152
- "icon": [1],
153
- "autoDismiss": [2, "auto-dismiss"],
154
- "margin": [1],
155
- "padding": [1],
156
- "variation": [1],
157
- "position": [1],
158
- "dismissible": [4],
159
- "focusable": [4],
160
- "isDismissed": [32],
161
- "timeoutID": [32],
162
- "show": [64],
163
- "hide": [64],
164
- "setFocus": [64]
165
- }]);
166
- function defineCustomElement() {
167
- if (typeof customElements === "undefined") {
168
- return;
169
- }
170
- const components = ["duet-alert", "duet-button", "duet-icon", "duet-show-more", "duet-spinner", "duet-visually-hidden"];
171
- components.forEach(tagName => { switch (tagName) {
172
- case "duet-alert":
173
- if (!customElements.get(tagName)) {
174
- customElements.define(tagName, DuetAlert);
175
- }
176
- break;
177
- case "duet-button":
178
- if (!customElements.get(tagName)) {
179
- defineCustomElement$5();
180
- }
181
- break;
182
- case "duet-icon":
183
- if (!customElements.get(tagName)) {
184
- defineCustomElement$4();
185
- }
186
- break;
187
- case "duet-show-more":
188
- if (!customElements.get(tagName)) {
189
- defineCustomElement$3();
190
- }
191
- break;
192
- case "duet-spinner":
193
- if (!customElements.get(tagName)) {
194
- defineCustomElement$2();
195
- }
196
- break;
197
- case "duet-visually-hidden":
198
- if (!customElements.get(tagName)) {
199
- defineCustomElement$1();
200
- }
201
- break;
202
- } });
203
- }
204
-
205
- export { DuetAlert as D, defineCustomElement as d };
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,h as t,H as i,g as a}from"./p-ecb2aca6.js";import{a as s}from"./p-f6000a03.js";import{e as n,d as o}from"./p-8354d1f1.js";import{i as d}from"./p-aaa7a7bd.js";const r=class{constructor(t){e(this,t),this.mql=[window.matchMedia(s.replace(/'/g,""))],this.boundMqlFunctions=[],this.previousYScroll=0,this.handleMobileView=()=>{this.mql[0].matches?(this.mobile=!1,this.enableBodyScroll()):(this.mobile=!0,this.bodyScroll||this.disableBodyScroll())},this.onClick=()=>{this.open=!this.open},this.enableBodyScroll=()=>{this.nav&&n(this.nav),this.itemsContainer&&n(this.itemsContainer)},this.disableBodyScroll=()=>{this.nav&&o(this.nav,{reserveScrollBarGap:!0}),this.itemsContainer&&o(this.itemsContainer,{reserveScrollBarGap:!0})},this.checkIfHasItems=()=>{const e=!!this.element.querySelector("duet-submenu-bar-dropdown-link"),t=!!this.element.querySelector("duet-submenu-bar-link"),i=!!this.element.querySelector("duet-submenu-bar-item");return e||t||i},this.hidden=!1,this.mobile=!0,this.bodyScroll=!0,this.theme="",this.hideOnScroll=!1,this.open=!1,this.accessibleLabel=void 0}watchOpenStateHandler(e){e?(this.bodyScroll=!1,this.disableBodyScroll()):(this.enableBodyScroll(),this.bodyScroll=!0)}componentWillLoad(){d(this)}connectedCallback(){this.nav=document.querySelector("duet-nav > [slot='mobile']"),this.hasItems=this.checkIfHasItems(),this.handleMobileView();for(let e=0;e<this.mql.length;e++)if(this.mql[e].addEventListener){const t=this.handleMobileView.bind(this);this.mql[e].addEventListener("change",t),this.boundMqlFunctions[e]=t}}disconnectedCallback(){for(let e=0;e<this.mql.length;e++)this.mql[e].removeEventListener&&this.mql[e].removeEventListener("change",this.boundMqlFunctions[e]);this.boundMqlFunctions=[],this.enableBodyScroll()}async setFocus(e){this.button.focus(e)}checkScroll(){this.hideOnScroll&&(window.scrollY>this.previousYScroll?window.scrollY>100&&(this.hidden=!0):window.scrollY<150&&(this.hidden=!1),this.previousYScroll=window.scrollY)}render(){return t(i,{key:"fec25f6c8b5983923f591d756decc5ae3404de5e"},t("nav",{key:"6f812f5da82df3218d6de29f655d2596ed865a4d",class:{"duet-submenu-bar":!0,"duet-theme-turva":"turva"===this.theme,hidden:this.hidden},"aria-label":this.accessibleLabel},this.hasItems&&t("button",{key:"5e8ab90a4e09dbd7746b1405d3ea92615a439dd7",ref:e=>this.button=e,"aria-haspopup":"menu","aria-controls":"menu","aria-expanded":this.open?"true":"false",id:"button",type:"button",class:{active:this.open},onClick:this.onClick},t("span",{key:"1f2ed95c73d93faf4ba71d7984e00488137250d1",class:"label"},t("slot",{key:"5ca819d2a6f97bb4c9e75f2ea024187f76af67e2",name:"label"}),t("duet-icon",{key:"3b1a4bcac49bec29f344a38e5f743aaeb63f59a0",theme:this.theme,class:"caret",name:"action-arrow-down-small",margin:"none",size:"xxx-small",color:"currentColor"}))),t("div",{key:"01e35b212a44a4bb39a8fd5cc5a694b94dcb1ccb",class:{"menu-container":!0,hidden:!this.open},role:"presentation"},t("div",{key:"5f94254c66db242ce904ddfd963f6dbe7f4337b6",role:this.mobile?"menu":null,id:"menu","aria-labelledby":this.mobile?"button":null,"aria-expanded":this.mobile?this.open?"true":"false":null,class:{items:!0,hidden:!this.open},ref:e=>this.itemsContainer=e},t("div",{key:"be03e176ea88bf9b83e506a67470747a4f30b9ee",class:"list",role:this.mobile?"presentation":"list"},t("slot",{key:"1ba101226680d98cffade2702cbe6f6c40432146"}),t("div",{key:"c51c2e13e3f5a24edf28dba162ee0602666ca1f9",class:"list-padding"}))),t("duet-overlay",{key:"5b93e09b26a80acce10526710c818c0017d74627","keep-stacking-context":!0,visible:this.open,"display-device":"not-large",transition:"immediate"}))))}get element(){return a(this)}static get watchers(){return{open:["watchOpenStateHandler"]}}};r.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;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)}}';export{r as duet_submenu_bar}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as e,h as t,H as a,g as o}from"./p-ecb2aca6.js";import{i as c}from"./p-aaa7a7bd.js";import{h as i,c as l}from"./p-530e612b.js";const n=class{constructor(t){e(this,t),this.hasAuthorSlot=!1,this.theme="",this.margin="auto"}componentWillLoad(){c(this),this.hasAuthorSlot=i(this.element,"author"),l(this.element,"author","span")}render(){return t(a,{key:"2c0e0547229b6ad6a7cdc410305fd4410b3e23c5"},t("div",{key:"e1ed12bbba8544b1dd2f80aef8d290f01b087a42",class:{"duet-callout":!0,"duet-theme-turva":"turva"===this.theme,"duet-m-0":"none"===this.margin}},t("figure",{key:"1c13c1e60d0eacf6130836b22e40820cd0bcc996",class:"container"},t("duet-icon",{key:"d510e6802cb67270d02ad5261719f3fb6c34ab68",class:"callout-icon",shape:"brand-rotated",background:"primary-lighter","background-opacity":"0.75","background-rotation":"turva"===this.theme?"0":"7",color:"secondary",icon:'<svg viewBox="0 0 22 17" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.6591 0.557547L9.2031 2.33355C7.0911 5.21355 6.1311 7.18155 5.8431 8.90955C7.4751 9.34155 8.7231 10.5415 8.7231 12.6535C8.7231 15.2935 6.9471 16.9255 4.6431 16.9255C2.0511 16.9255 0.227096 15.1975 0.227096 12.2695C0.227096 8.28555 2.3871 4.34955 6.6591 0.557547ZM17.9871 8.95755C19.6191 9.34155 20.8671 10.5415 20.8671 12.6535C20.8671 15.2935 19.1391 16.9255 16.8351 16.9255C14.2431 16.9255 12.4191 15.1975 12.4191 12.2695C12.4191 8.28555 14.5791 4.34955 18.8511 0.557547L21.3951 2.33355C19.2351 5.21355 18.3231 7.18155 17.9871 8.95755Z"/>\n </svg>\n ',size:"auto",margin:"none",theme:this.theme}),t("blockquote",{key:"035294078491273c88249b1577a037f28c24ca30"},t("slot",{key:"b516e727fc4d435fed30d422ba311099aff70605"})),this.hasAuthorSlot&&t("figcaption",{key:"ad0b1b81c5dc8cc30136ec2779fb66c428d624ef",class:"author"},t("span",{key:"4e2c5eb565f7e54f07900a691e2c01c73df22858"},"— "),t("slot",{key:"00fcc97851122cdc95659800a0da4c35ffbfa7c1",name:"author"})))))}get element(){return o(this)}};n.style=':host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}blockquote,figure{margin:0}.duet-callout{margin-bottom:28px !important;display:flex;align-items:center;justify-content:center;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-callout .container{display:flex;flex-direction:column;gap:8px;align-items:center;max-width:688px;text-align:center}.duet-callout .callout-icon{width:50px;padding-bottom:8px}.duet-callout blockquote{font-size:2.7vw;font-weight:600;line-height:1.5;color:rgb(8, 42, 77)}@media (max-width: 37.037037037rem){.duet-callout blockquote{font-size:1rem}}@media (min-width: 46.2962962963rem){.duet-callout blockquote{font-size:1.25rem}}.duet-callout .author{color:rgb(8, 42, 77)}.duet-callout.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-callout.duet-theme-turva .author,.duet-callout.duet-theme-turva blockquote{color:rgb(23, 28, 58)}.duet-callout.duet-m-0{margin:0 !important}';export{n as duet_callout}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- System.register(["./p-14fe190e.system.js"],(function(e){"use strict";var t;return{setters:[function(e){t=e.h}],execute:function(){var n=e("f",(function(e){if("setFocus"in e){e.setFocus()}else{e.focus()}}));var u=e("F",(function(e){var u=e.moveFocusTo;return t("div",{class:"duet-focus-guard","aria-hidden":"true",tabIndex:0,onFocus:function(){return n(u)}})}))}}}));
@@ -1,5 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,n=1,t=arguments.length;n<t;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))r[i]=e[i]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,e,n,t){function i(r){return r instanceof n?r:new n((function(e){e(r)}))}return new(n||(n=Promise))((function(n,a){function f(r){try{o(t.next(r))}catch(r){a(r)}}function u(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?n(r.value):i(r.value).then(f,u)}o((t=t.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(r){return function(e){return o([r,e])}}function o(u){if(t)throw new TypeError("Generator is already executing.");while(f&&(f=0,u[0]&&(n=0)),n)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=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++;i=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=e.call(r,n)}catch(r){u=[6,r];i=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,e,n){if(n||arguments.length===2)for(var t=0,i=e.length,a;t<i;t++){if(a||!(t in e)){if(!a)a=Array.prototype.slice.call(e,0,t);a[t]=e[t]}}return r.concat(a||Array.prototype.slice.call(e))};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t=r("N","duet");var i={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:true,cmpDidRender:true,cmpDidUnload:false,cmpDidUpdate:true,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:true,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:true,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:true,invisiblePrehydration:false,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:true,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:true,shadowDelegatesFocus:true,shadowDom:true,slot:true,slotChildNodesFix:true,slotRelocation:true,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var a=r("E",{cdnURILocal:"http://localhost:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"4.1.13"});var f=Object.defineProperty;var u=function(r,e){for(var n in e)f(r,n,{get:e[n],enumerable:true})};var o=r("B",{isDev:false,isBrowser:true,isServer:false,isTesting:false});var l=new WeakMap;var v=function(r){return l.get(r)};var s=r("r",(function(r,e){return l.set(e.t=r,e)}));var c=function(r,e){var n={i:0,$hostElement$:r,u:e,o:new Map};{n.l=new Promise((function(r){return n.v=r}))}{n.h=new Promise((function(r){return n.p=r}));r["s-p"]=[];r["s-rc"]=[]}return l.set(r,n)};var d=function(r,e){return e in r};var h=function(r,e){return(0,console.error)(r,e)};var p=new Map;var m=function(r,n,t){var i=r.m.replace(/-/g,"_");var a=r.$;if(!a){return void 0}var f=p.get(a);if(f){return f[i]}
5
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{p.set(a,r)}return r[i]}),h)};var y=new Map;var $="r";var b="o";var w="s";var g="t";var _="c";var S="s-id";var j="sty-id";var O="c-id";var k="slot-fb{display:contents}slot-fb[hidden]{display:none}";var x="http://www.w3.org/1999/xlink";var A=typeof window!=="undefined"?window:{};var C=r("d",A.document||{head:{}});var E={i:0,_:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,e,n,t){return r.addEventListener(e,n,t)},rel:function(r,e,n,t){return r.removeEventListener(e,n,t)},ce:function(r,e){return new CustomEvent(r,e)}};var T=function(){var r=false;try{C.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){r=true}}))}catch(r){}return r}();var D=r("p",(function(r){return Promise.resolve(r)}));var R=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var L=false;var N=[];var F=[];var M=function(r,e){return function(n){r.push(n);if(!L){L=true;if(e&&E.i&4){U(P)}else{E.raf(P)}}}};var I=function(r){for(var e=0;e<r.length;e++){try{r[e](performance.now())}catch(r){h(r)}}r.length=0};var P=function(){I(N);{I(F);if(L=N.length>0){E.raf(P)}}};var U=function(r){return D().then(r)};var W=M(F,true);var B={};var H="http://www.w3.org/2000/svg";var V="http://www.w3.org/1999/xhtml";var z=function(r){return r!=null};var G=function(r){r=typeof r;return r==="object"||r==="function"};function Q(r){var e,n,t;return(t=(n=(e=r.head)==null?void 0:e.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var q={};u(q,{err:function(){return X},map:function(){return J},ok:function(){return K},unwrap:function(){return Y},unwrapErr:function(){return Z}});var K=function(r){return{isOk:true,isErr:false,value:r}};var X=function(r){return{isOk:false,isErr:true,value:r}};function J(r,e){if(r.isOk){var n=e(r.value);if(n instanceof Promise){return n.then((function(r){return K(r)}))}else{return K(n)}}if(r.isErr){var t=r.value;return X(t)}throw"should never get here"}var Y=function(r){if(r.isOk){return r.value}else{throw r.value}};var Z=function(r){if(r.isErr){return r.value}else{throw r.value}};var rr=r("h",(function(r,e){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var i=null;var a=null;var f=null;var u=false;var o=false;var l=[];var v=function(e){for(var n=0;n<e.length;n++){i=e[n];if(Array.isArray(i)){v(i)}else if(i!=null&&typeof i!=="boolean"){if(u=typeof r!=="function"&&!G(i)){i=String(i)}if(u&&o){l[l.length-1].S+=i}else{l.push(u?er(null,i):i)}o=u}}};v(n);if(e){if(e.key){a=e.key}if(e.name){f=e.name}{var s=e.className||e.class;if(s){e.class=typeof s!=="object"?s:Object.keys(s).filter((function(r){return s[r]})).join(" ")}}}if(typeof r==="function"){return r(e===null?{}:e,l,ir)}var c=er(r,null);c.j=e;if(l.length>0){c.O=l}{c.k=a}{c.A=f}return c}));var er=function(r,e){var n={i:0,C:r,S:e,T:null,O:null};{n.j=null}{n.k=null}{n.A=null}return n};var nr=r("H",{});var tr=function(r){return r&&r.C===nr};var ir={forEach:function(r,e){return r.map(ar).forEach(e)},map:function(r,e){return r.map(ar).map(e).map(fr)}};var ar=function(r){return{vattrs:r.j,vchildren:r.O,vkey:r.k,vname:r.A,vtag:r.C,vtext:r.S}};var fr=function(r){if(typeof r.vtag==="function"){var e=__assign({},r.vattrs);if(r.vkey){e.key=r.vkey}if(r.vname){e.name=r.vname}return rr.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=er(r.vtag,r.vtext);n.j=r.vattrs;n.O=r.vchildren;n.k=r.vkey;n.A=r.vname;return n};var ur=function(r,e,n,t,i,a){if(n!==t){var f=d(r,e);var u=e.toLowerCase();if(e==="class"){var o=r.classList;var l=lr(n);var v=lr(t);if(r["s-si"]&&v.indexOf(r["s-si"])<0){v.push(r["s-si"])}o.remove.apply(o,l.filter((function(r){return r&&!v.includes(r)})));o.add.apply(o,v.filter((function(r){return r&&!l.includes(r)})))}else if(e==="style"){{for(var s in n){if(!t||t[s]==null){if(s.includes("-")){r.style.removeProperty(s)}else{r.style[s]=""}}}}for(var s in t){if(!n||t[s]!==n[s]){if(s.includes("-")){r.style.setProperty(s,t[s])}else{r.style[s]=t[s]}}}}else if(e==="key");else if(e==="ref"){if(t){t(r)}}else if(!f&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(d(A,u)){e=u.slice(2)}else{e=u[2]+e.slice(3)}if(n||t){var c=e.endsWith(vr);e=e.replace(sr,"");if(n){E.rel(r,e,n,c)}if(t){E.ael(r,e,t,c)}}}else{var h=G(t);if((f||h&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var p=t==null?"":t;if(e==="list"){f=false}else if(n==null||r[e]!=p){if(typeof r.__lookupSetter__(e)==="function"){r[e]=p}else{r.setAttribute(e,p)}}}else{r[e]=t}}catch(r){}}var m=false;{if(u!==(u=u.replace(/^xlink\:?/,""))){e=u;m=true}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){if(m){r.removeAttributeNS(x,e)}else{r.removeAttribute(e)}}}else if((!f||a&4||i)&&!h){t=t===true?"":t;if(m){r.setAttributeNS(x,e,t)}else{r.setAttribute(e,t)}}}}};var or=/\s/;var lr=function(r){return"object"==typeof r&&"baseVal"in r&&(r=r.baseVal),r?r.split(or):[]};var vr="Capture";var sr=new RegExp(vr+"$");var cr=function(r,e,n){var t=e.T.nodeType===11&&e.T.host?e.T.host:e.T;var i=r&&r.j||B;var a=e.j||B;{for(var f=0,u=dr(Object.keys(i));f<u.length;f++){var o=u[f];if(!(o in a)){ur(t,o,i[o],void 0,n,e.i)}}}for(var l=0,v=dr(Object.keys(a));l<v.length;l++){var o=v[l];ur(t,o,i[o],a[o],n,e.i)}};function dr(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):r}var hr;var pr;var mr;var yr=false;var $r=false;var br=false;var wr=false;var gr=function(r,e,n,t){var a;var f=e.O[n];var u=0;var o;var l;var v;if(!yr){br=true;if(f.C==="slot"){if(hr){t.classList.add(hr+"-s")}f.i|=f.O?2:1}}if(f.S!==null){o=f.T=C.createTextNode(f.S)}else if(f.i&1){o=f.T=C.createTextNode("")}else{if(!wr){wr=f.C==="svg"}o=f.T=C.createElementNS(wr?H:V,!yr&&i.slotRelocation&&f.i&2?"slot-fb":f.C);if(wr&&f.C==="foreignObject"){wr=false}{cr(null,f,wr)}var s=o.getRootNode();var c=!s.querySelector("body");if(!c&&i.scoped&&z(hr)&&o["s-si"]!==hr){o.classList.add(o["s-si"]=hr)}{Mr(o,t)}if(f.O){for(u=0;u<f.O.length;++u){l=gr(r,f,u,o);if(l){o.appendChild(l)}}}{if(f.C==="svg"){wr=false}else if(o.tagName==="foreignObject"){wr=true}}}o["s-hn"]=mr;{if(f.i&(2|1)){o["s-sr"]=true;o["s-cr"]=pr;o["s-sn"]=f.A||"";o["s-rf"]=(a=f.j)==null?void 0:a.ref;v=r&&r.O&&r.O[n];if(v&&v.C===f.C&&r.T){{_r(r.T,false)}}}}return o};var _r=function(r,e){E.i|=1;var n=Array.from(r.__childNodes||r.childNodes);if(r["s-sr"]&&i.experimentalSlotFixes){var t=r;while(t=t.nextSibling){if(t&&t["s-sn"]===r["s-sn"]&&t["s-sh"]===mr){n.push(t)}}}for(var a=n.length-1;a>=0;a--){var f=n[a];if(f["s-hn"]!==mr&&f["s-ol"]){Nr(Ar(f),f,xr(f));f["s-ol"].remove();f["s-ol"]=void 0;f["s-sh"]=void 0;br=true}if(e){_r(f,e)}}E.i&=~1};var Sr=function(r,e,n,t,i,a){var f=r["s-cr"]&&r["s-cr"].parentNode||r;var u;if(f.shadowRoot&&f.tagName===mr){f=f.shadowRoot}for(;i<=a;++i){if(t[i]){u=gr(null,n,i,r);if(u){t[i].T=u;Nr(f,u,xr(e))}}}};var jr=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.T;Lr(i);if(a){{$r=true;if(a["s-ol"]){a["s-ol"].remove()}else{_r(a,true)}}a.remove()}}}};var Or=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var f=0;var u=0;var o=0;var l=e.length-1;var v=e[0];var s=e[l];var c=t.length-1;var d=t[0];var h=t[c];var p;var m;while(a<=l&&f<=c){if(v==null){v=e[++a]}else if(s==null){s=e[--l]}else if(d==null){d=t[++f]}else if(h==null){h=t[--c]}else if(kr(v,d,i)){Cr(v,d,i);v=e[++a];d=t[++f]}else if(kr(s,h,i)){Cr(s,h,i);s=e[--l];h=t[--c]}else if(kr(v,h,i)){if(v.C==="slot"||h.C==="slot"){_r(v.T.parentNode,false)}Cr(v,h,i);Nr(r,v.T,s.T.nextSibling);v=e[++a];h=t[--c]}else if(kr(s,d,i)){if(v.C==="slot"||h.C==="slot"){_r(s.T.parentNode,false)}Cr(s,d,i);Nr(r,s.T,v.T);s=e[--l];d=t[++f]}else{u=-1;{for(o=a;o<=l;++o){if(e[o]&&e[o].k!==null&&e[o].k===d.k){u=o;break}}}if(u>=0){m=e[u];if(m.C!==d.C){p=gr(e&&e[f],n,u,r)}else{Cr(m,d,i);e[u]=void 0;p=m.T}d=t[++f]}else{p=gr(e&&e[f],n,f,r);d=t[++f]}if(p){{Nr(Ar(v.T),p,xr(v.T))}}}}if(a>l){Sr(r,t[c+1]==null?null:t[c+1].T,n,t,f,c)}else if(f>c){jr(e,a,l)}};var kr=function(r,e,n){if(n===void 0){n=false}if(r.C===e.C){if(r.C==="slot"){if("D"in r&&n&&r.T.nodeType!==8){return false}return r.A===e.A}if(!n){return r.k===e.k}return true}return false};var xr=function(r){return r&&r["s-ol"]||r};var Ar=function(r){return(r["s-ol"]?r["s-ol"]:r).parentNode};var Cr=function(r,e,n){if(n===void 0){n=false}var t=e.T=r.T;var a=r.O;var f=e.O;var u=e.C;var o=e.S;var l;if(o===null){{wr=u==="svg"?true:u==="foreignObject"?false:wr}{if(u==="slot"&&!yr);else{cr(r,e,wr)}}if(a!==null&&f!==null){Or(t,a,e,f,n)}else if(f!==null){if(r.S!==null){t.textContent=""}Sr(t,null,e,f,0,f.length-1)}else if(!n&&i.updatable&&a!==null){jr(a,0,a.length-1)}if(wr&&u==="svg"){wr=false}}else if(l=t["s-cr"]){l.parentNode.textContent=o}else if(r.S!==o){t.data=o}};var Er=function(r){var e=r.__childNodes||r.childNodes;for(var n=0,t=e;n<t.length;n++){var i=t[n];if(i.nodeType===1){if(i["s-sr"]){var a=i["s-sn"];i.hidden=false;for(var f=0,u=e;f<u.length;f++){var o=u[f];if(o!==i){if(o["s-hn"]!==i["s-hn"]||a!==""){if(o.nodeType===1&&(a===o.getAttribute("slot")||a===o["s-sn"])||o.nodeType===3&&a===o["s-sn"]){i.hidden=true;break}}else if(a===o["s-sn"]){if(o.nodeType===1||o.nodeType===3&&o.textContent.trim()!==""){i.hidden=true;break}}}}}Er(i)}}};var Tr=[];var Dr=function(r){var e;var n;var t;var a=r.__childNodes||r.childNodes;for(var f=0,u=a;f<u.length;f++){var o=u[f];if(o["s-sr"]&&(e=o["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;var l=o["s-sn"];var v=function(){e=n[t];if(!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==o["s-hn"]&&!i.experimentalSlotFixes){if(Rr(e,l)){var r=Tr.find((function(r){return r.R===e}));$r=true;e["s-sn"]=e["s-sn"]||l;if(r){r.R["s-sh"]=o["s-hn"];r.L=o}else{e["s-sh"]=o["s-hn"];Tr.push({L:o,R:e})}if(e["s-sr"]){Tr.map((function(n){if(Rr(n.R,e["s-sn"])){r=Tr.find((function(r){return r.R===e}));if(r&&!n.L){n.L=r.L}}}))}}else if(!Tr.some((function(r){return r.R===e}))){Tr.push({R:e})}}};for(t=n.length-1;t>=0;t--){v()}}if(o.nodeType===1){Dr(o)}}};var Rr=function(r,e){if(r.nodeType===1){if(r.getAttribute("slot")===null&&e===""){return true}if(r.getAttribute("slot")===e){return true}return false}if(r["s-sn"]===e){return true}return e===""};var Lr=function(r){{r.j&&r.j.ref&&r.j.ref(null);r.O&&r.O.map(Lr)}};var Nr=function(r,e,n){var t=r==null?void 0:r.insertBefore(e,n);{Mr(e,r)}return t};var Fr=function(r){var e=[];if(r){e.push.apply(e,__spreadArray(__spreadArray(__spreadArray([],r["s-scs"]||[],false),[r["s-si"],r["s-sc"]],false),Fr(r.parentElement),false))}return e};var Mr=function(r,e,n){if(n===void 0){n=false}var t;if(r&&e&&r.nodeType===1){var i=new Set(Fr(e).filter(Boolean));if(i.size){(t=r.classList)==null?void 0:t.add.apply(t,r["s-scs"]=Array.from(i));if(r["s-ol"]||n){for(var a=0,f=Array.from(r.__childNodes||r.childNodes);a<f.length;a++){var u=f[a];Mr(u,r,true)}}}}};var Ir=function(r,e,n){if(n===void 0){n=false}var t,i,a,f;var u=r.$hostElement$;var o=r.u;var l=r.N||er(null,null);var v=tr(e)?e:rr(null,null,e);mr=u.tagName;if(o.F){v.j=v.j||{};o.F.map((function(r){var e=r[0],n=r[1];return v.j[n]=u[e]}))}if(n&&v.j){for(var s=0,c=Object.keys(v.j);s<c.length;s++){var d=c[s];if(u.hasAttribute(d)&&!["key","ref","style","class"].includes(d)){v.j[d]=u[d]}}}v.C=null;v.i|=4;r.N=v;v.T=l.T=u.shadowRoot||u;{hr=u["s-sc"]}yr=(o.i&1)!==0;{pr=u["s-cr"];$r=false}Cr(l,v,n);{E.i|=1;if(br){Dr(v.T);for(var h=0,p=Tr;h<p.length;h++){var m=p[h];var y=m.R;if(!y["s-ol"]){var $=C.createTextNode("");$["s-nr"]=y;Nr(y.parentNode,y["s-ol"]=$,y)}}for(var b=0,w=Tr;b<w.length;b++){var m=w[b];var y=m.R;var g=m.L;if(g){var _=g.parentNode;var S=g.nextSibling;{var $=(t=y["s-ol"])==null?void 0:t.previousSibling;while($){var j=(i=$["s-nr"])!=null?i:null;if(j&&j["s-sn"]===y["s-sn"]&&_===j.parentNode){j=j.nextSibling;while(j===y||(j==null?void 0:j["s-sr"])){j=j==null?void 0:j.nextSibling}if(!j||!j["s-nr"]){S=j;break}}$=$.previousSibling}}if(!S&&_!==y.parentNode||y.nextSibling!==S){if(y!==S){if(!y["s-hn"]&&y["s-ol"]){y["s-hn"]=y["s-ol"].parentNode.nodeName}Nr(_,y,S);if(y.nodeType===1){y.hidden=(a=y["s-ih"])!=null?a:false}}}y&&typeof g["s-rf"]==="function"&&g["s-rf"](y)}else{if(y.nodeType===1){if(n){y["s-ih"]=(f=y.hidden)!=null?f:false}y.hidden=true}}}}if($r){Er(v.T)}E.i&=~1;Tr.length=0}pr=void 0};var Pr=function(r){var e=function(r){__extends(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}e.prototype.item=function(r){return this[r]};return e}(Array);var n=globalThis.Node&&Object.getOwnPropertyDescriptor(Node.prototype,"childNodes");if(!n){n=Object.getOwnPropertyDescriptor(r,"childNodes")}if(n)Object.defineProperty(r,"__childNodes",n);var t=Object.getOwnPropertyDescriptor(Element.prototype,"children");if(!t){t=Object.getOwnPropertyDescriptor(r,"children")}if(t)Object.defineProperty(r,"__children",t);Object.defineProperty(r,"children",{get:function(){return this.childNodes.filter((function(r){return r.nodeType===1}))}});Object.defineProperty(r,"childElementCount",{get:function(){return this.children.length}});if(!n)return;Object.defineProperty(r,"childNodes",{get:function(){var r,n;if(!E.i||!((r=v(this))==null?void 0:r.i)||(E.i&1)===0&&((n=v(this))==null?void 0:n.i)&2){var t=new e;var i=Wr(this.__childNodes);t.push.apply(t,i);return t}return e.from(this.__childNodes)}})};var Ur=function(r,e,n,t){var i;if(r["s-ol"]&&r["s-ol"].isConnected){i=r["s-ol"]}else{i=document.createTextNode("");i["s-nr"]=r}if(!e["s-cr"]||!e["s-cr"].parentNode)return;var a=e["s-cr"].parentNode;var f=n?a.__prepend||a.prepend:a.__appendChild||a.appendChild;if(typeof t!=="undefined"){{i["s-oo"]=t;var u=a.__childNodes||a.childNodes;var o=[i];u.forEach((function(r){if(r["s-nr"])o.push(r)}));o.sort((function(r,e){if(!r["s-oo"]||r["s-oo"]<e["s-oo"])return-1;else if(!e["s-oo"]||e["s-oo"]<r["s-oo"])return 1;return 0}));o.forEach((function(r){return f.call(a,r)}))}}else{f.call(a,i)}r["s-ol"]=i;r["s-sh"]=e["s-hn"]};var Wr=function(r){var e=[];for(var n=0;n<r.length;n++){var t=r[n]["s-nr"];if(t&&t.isConnected){e.push(t)}}return e};var Br=function(r,e){if(e===void 0){e=""}{return function(){return}}};var Hr=function(r,e){{return function(){return}}};var Vr=function(r,e,n,t){var i=Br("hydrateClient",e);var a=r.shadowRoot;var f=[];var u=[];var o=[];var l=a?[]:null;var v=er(e,null);v.T=r;if(!E.M){Gr(C.body,E.M=new Map)}r[S]=n;r.removeAttribute(S);t.N=zr(v,f,u,l,r,r,n,o);var s=0;var c=f.length;var d;for(s;s<c;s++){d=f[s];var h=d.I+"."+d.D;var p=E.M.get(h);var m=d.T;if(!a){m["s-hn"]=e.toUpperCase();if(d.C==="slot"){m["s-cr"]=r["s-cr"]}}if(p&&p.isConnected){if(a&&p["s-en"]===""){p.parentNode.insertBefore(m,p.nextSibling)}p.parentNode.removeChild(p);if(!a){m["s-oo"]=parseInt(d.D)}}E.M.delete(h)}var y=[];var $=0;var b=o.length;var w;var g;var _;var j;for($;$<b;$++){w=o[$];if(!w||!w.length)continue;_=w.length;g=0;for(g;g<_;g++){j=w[g];if(!y[j.hostId]){y[j.hostId]=E.M.get(j.hostId)}if(!y[j.hostId])continue;var O=y[j.hostId];if(!O.shadowRoot||!a){j.slot["s-cr"]=O["s-cr"];if(!j.slot["s-cr"]&&O.shadowRoot){j.slot["s-cr"]=O}else{var k=O.__childNodes||O.childNodes;j.slot["s-cr"]=k[0]}Ur(j.node,j.slot,false,j.node["s-oo"])}if(O.shadowRoot&&j.node.parentElement!==O){O.appendChild(j.node)}}}if(a){var x=0;var A=l.length;for(x;x<A;x++){a.appendChild(l[x])}Array.from(r.childNodes).forEach((function(r){if(r.nodeType===8&&typeof r["s-sn"]!=="string"){r.parentNode.removeChild(r)}}))}t.$hostElement$=r;i()};var zr=function(r,e,n,t,i,a,f,u){if(u===void 0){u=[]}var o;var l;var v;var s;var c=i["s-sc"];if(a.nodeType===1){o=a.getAttribute(O);if(o){l=o.split(".");if(l[0]===f||l[0]==="0"){v=Qr({i:0,I:l[0],D:l[1],P:l[2],U:l[3],C:a.tagName.toLowerCase(),T:a,j:{class:a.className}});e.push(v);a.removeAttribute(O);if(!r.O){r.O=[]}var d=v.T.getAttribute("s-sn");if(typeof d==="string"){if(v.C==="slot-fb"){qr(d,l[2],v,a,r,e,n,t,u)}v.T["s-sn"]=d;v.T.removeAttribute("s-sn")}if(v.U!==void 0){r.O[v.U]=v}if(c)a["s-si"]=c;r=v;if(t&&v.P==="0"){t[v.U]=v.T}}}if(a.shadowRoot){for(s=a.shadowRoot.childNodes.length-1;s>=0;s--){zr(r,e,n,t,i,a.shadowRoot.childNodes[s],f,u)}}var h=a.__childNodes||a.childNodes;for(s=h.length-1;s>=0;s--){zr(r,e,n,t,i,h[s],f,u)}}else if(a.nodeType===8){l=a.nodeValue.split(".");if(l[1]===f||l[1]==="0"){o=l[0];v=Qr({I:l[1],D:l[2],P:l[3],U:l[4]||"0",T:a,j:null,O:null,k:null,A:null,C:null,S:null});if(o===g){v.T=a.nextSibling;if(v.T&&v.T.nodeType===3){v.S=v.T.textContent;e.push(v);a.remove();if(f===v.I){if(!r.O){r.O=[]}r.O[v.U]=v}if(t&&v.P==="0"){t[v.U]=v.T}}}else if(o===_){v.T=a.nextSibling;if(v.T&&v.T.nodeType===8){e.push(v);a.remove()}}else if(v.I===f){if(o===w){v.C="slot";var d=a["s-sn"]=v.A=l[5]||"";qr(d,l[2],v,a,r,e,n,t,u)}else if(o===$){if(t){a.remove()}else{i["s-cr"]=a;a["s-cn"]=true}}}}}else if(r&&r.C==="style"){var p=er(null,a.textContent);p.T=a;p.U="0";r.O=[p]}return r};var Gr=function(r,e){if(r.nodeType===1){var n=r[S]||r.getAttribute(S);if(n){e.set(n,r)}var t=0;if(r.shadowRoot){for(;t<r.shadowRoot.childNodes.length;t++){Gr(r.shadowRoot.childNodes[t],e)}}var i=r.__childNodes||r.childNodes;for(t=0;t<i.length;t++){Gr(i[t],e)}}else if(r.nodeType===8){var a=r.nodeValue.split(".");if(a[0]===b){e.set(a[1]+"."+a[2],r);r.nodeValue="";r["s-en"]=a[3]}}};var Qr=function(r){var e={i:0,I:null,D:null,P:null,U:"0",T:null,j:null,O:null,k:null,A:null,C:null,S:null};return __assign(__assign({},e),r)};function qr(r,e,n,t,i,a,f,u,o){t["s-sr"]=true;var l=(i==null?void 0:i.T)?i.T["s-id"]||i.T.getAttribute("s-id"):"";if(u){var v=n.T=C.createElement(n.C);if(n.A){n.T.setAttribute("name",r)}if(l&&l!==n.I){i.T.insertBefore(v,i.T.children[0])}else{t.parentNode.insertBefore(n.T,t)}Kr(o,e,r,t,n.I);t.remove();if(n.P==="0"){u[n.U]=n.T}}else{var v=n.T;var s=l&&l!==n.I&&i.T.shadowRoot;Kr(o,e,r,t,s?l:n.I);if(s){i.T.insertBefore(v,i.T.children[0])}a.push(n)}f.push(n);if(!i.O){i.O=[]}i.O[n.U]=n}var Kr=function(r,e,n,t,i){var a=t.nextSibling;r[e]=r[e]||[];while(a&&((a["getAttribute"]&&a.getAttribute("slot")||a["s-sn"])===n||n===""&&!a["s-sn"]&&(a.nodeType===8&&a.nodeValue.indexOf(".")!==1||a.nodeType===3))){a["s-sn"]=n;r[e].push({slot:t,node:a,hostId:i});a=a.nextSibling}};var Xr=function(r,e){if(r!=null&&!G(r)){if(e&4){return r==="false"?false:r===""||!!r}if(e&2){return parseFloat(r)}if(e&1){return String(r)}return r}return r};var Jr=r("g",(function(r){return v(r).$hostElement$}));var Yr=r("c",(function(r,e,n){var t=Jr(r);return{emit:function(r){return Zr(t,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}}}));var Zr=function(r,e,n){var t=E.ce(e,n);r.dispatchEvent(t);return t};var re=new WeakMap;var ee=function(r,e,n){var t=y.get(r);if(R&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}y.set(r,t)};var ne=function(r,e,n){var t;var i=ie(e);var a=y.get(i);r=r.nodeType===11?r:C;if(a){if(typeof a==="string"){r=r.head||r;var f=re.get(r);var u=void 0;if(!f){re.set(r,f=new Set)}if(!f.has(i)){if(r.host&&(u=r.querySelector("[".concat(j,'="').concat(i,'"]')))){u.innerHTML=a}else{u=C.createElement("style");u.innerHTML=a;var o=(t=E.W)!=null?t:Q(C);if(o!=null){u.setAttribute("nonce",o)}if(!(e.i&1)){if(r.nodeName==="HEAD"){var l=r.querySelectorAll("link[rel=preconnect]");var v=l.length>0?l[l.length-1].nextSibling:r.querySelector("style");r.insertBefore(u,v)}else if("host"in r){if(R){var s=new CSSStyleSheet;s.replaceSync(a);r.adoptedStyleSheets=__spreadArray([s],r.adoptedStyleSheets,true)}else{var c=r.querySelector("style");if(c){c.innerHTML=a+c.innerHTML}else{r.prepend(u)}}}else{r.append(u)}}if(e.i&1&&r.nodeName!=="HEAD"){r.insertBefore(u,null)}}if(e.i&4){u.innerHTML+=k}if(f){f.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}return i};var te=function(r){var e=r.u;var n=r.$hostElement$;var t=e.i;var i=Br("attachStyles",e.m);var a=ne(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(t&10&&t&2){n["s-sc"]=a;n.classList.add(a+"-h");if(t&2){n.classList.add(a+"-s")}}i()};var ie=function(r,e){return"sc-"+r.m};var ae=function(r,e){if(e&&!r.B&&e["s-p"]){e["s-p"].push(new Promise((function(e){return r.B=e})))}};var fe=function(r,e){{r.i|=16}if(r.i&4){r.i|=512;return}ae(r,r.H);var n=function(){return ue(r,e)};return W(n)};var ue=function(r,e){var n=r.$hostElement$;var t=Br("scheduleUpdate",r.u.m);var i=r.t;if(!i){throw new Error("Can't render component <".concat(n.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(e){{r.i|=256;if(r.V){r.V.map((function(r){var e=r[0],n=r[1];return he(i,e,n)}));r.V=void 0}}{a=he(i,"componentWillLoad")}}{a=oe(a,(function(){return he(i,"componentWillRender")}))}t();return oe(a,(function(){return ve(r,i,e)}))};var oe=function(r,e){return le(r)?r.then(e).catch((function(r){console.error(r);e()})):e()};var le=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var ve=function(r,e,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l;return __generator(this,(function(v){i=r.$hostElement$;a=Br("update",r.u.m);f=i["s-rc"];if(t){te(r)}u=Br("render",r.u.m);{se(r,e,i,t)}if(f){f.map((function(r){return r()}));i["s-rc"]=void 0}u();a();{o=(n=i["s-p"])!=null?n:[];l=function(){return ce(r)};if(o.length===0){l()}else{Promise.all(o).then(l);r.i|=4;o.length=0}}return[2]}))}))};var se=function(r,e,n,t){try{e=e.render();{r.i&=~16}{r.i|=2}{{{Ir(r,e,t)}}}}catch(e){h(e,r.$hostElement$)}return null};var ce=function(r){var e=r.u.m;var n=r.$hostElement$;var t=Br("postUpdate",e);var i=r.t;var a=r.H;{he(i,"componentDidRender")}if(!(r.i&64)){r.i|=64;{pe(n)}{he(i,"componentDidLoad")}t();{r.p(n);if(!a){de()}}}else{{he(i,"componentDidUpdate")}t()}{r.v(n)}{if(r.B){r.B();r.B=void 0}if(r.i&512){U((function(){return fe(r,false)}))}r.i&=~(4|512)}};var de=function(r){{pe(C.documentElement)}U((function(){return Zr(A,"appload",{detail:{namespace:t}})}))};var he=function(r,e,n){if(r&&r[e]){try{return r[e](n)}catch(r){h(r)}}return void 0};var pe=function(r){var e;return r.classList.add((e=i.hydratedSelectorName)!=null?e:"hydrated")};var me=function(r,e){return v(r).o.get(e)};var ye=function(r,e,n,t){var i=v(r);if(!i){throw new Error("Couldn't find host element for \"".concat(t.m,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).'))}var a=i.$hostElement$;var f=i.o.get(e);var u=i.i;var o=i.t;n=Xr(n,t.G[e][0]);var l=Number.isNaN(f)&&Number.isNaN(n);var s=n!==f&&!l;if((!(u&8)||f===void 0)&&s){i.o.set(e,n);if(o){if(t.q&&u&128){var c=t.q[e];if(c){c.map((function(r){try{o[r](n,f,e)}catch(r){h(r,a)}}))}}if((u&(2|16))===2){fe(i,false)}}}};var $e=function(r,e,n){var t,i;var a=r.prototype;if(e.G||(e.q||r.watchers)){if(r.watchers&&!e.q){e.q=r.watchers}var f=Object.entries((t=e.G)!=null?t:{});f.map((function(r){var t=r[0],i=r[1][0];if(i&31||n&2&&i&32){if((i&2048)===0){Object.defineProperty(a,t,{get:function(){return me(this,t)},set:function(r){ye(this,t,r,e)},configurable:true,enumerable:true})}else if(n&1&&i&2048){{Object.defineProperty(a,t,{get:function(){var r=v(this);var e=r?r.t:a;if(!e)return;return e[t]},configurable:true,enumerable:true})}if(i&4096){var f=Object.getOwnPropertyDescriptor(a,t).set;Object.defineProperty(a,t,{set:function(r){var n=this;var i=v(this);if(f){var a=i.$hostElement$[t];if(!i.o.get(t)&&a){i.o.set(t,a)}f.apply(this,[Xr(r,e.G[t][0])]);ye(this,t,i.$hostElement$[t],e);return}if(!i)return;var u=function(){var a=i.t[t];if(!i.o.get(t)&&a){i.o.set(t,a)}i.t[t]=Xr(r,e.G[t][0]);ye(n,t,i.t[t],e)};if(i.t){u()}else{i.h.then((function(){return u()}))}}})}}}else if(n&1&&i&64){Object.defineProperty(a,t,{value:function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}var n;var i=v(this);return(n=i==null?void 0:i.l)==null?void 0:n.then((function(){var e;return(e=i.t)==null?void 0:e[t].apply(e,r)}))}})}}));if(n&1){var u=new Map;a.attributeChangedCallback=function(r,n,t){var i=this;E.jmp((function(){var f;var o=u.get(r);if(i.hasOwnProperty(o)){t=i[o];delete i[o]}else if(a.hasOwnProperty(o)&&typeof i[o]==="number"&&i[o]==t){return}else if(o==null){var l=v(i);var s=l==null?void 0:l.i;if(s&&!(s&8)&&s&128&&t!==n){var c=l.t;var d=(f=e.q)==null?void 0:f[r];d==null?void 0:d.forEach((function(e){if(c[e]!=null){c[e].call(c,t,n,r)}}))}return}var h=Object.getOwnPropertyDescriptor(a,o);if(!h.get||!!h.set){i[o]=t===null&&typeof i[o]==="boolean"?false:t}}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((i=e.q)!=null?i:{}),true),f.filter((function(r){var e=r[0],n=r[1];return n[0]&15})).map((function(r){var n=r[0],t=r[1];var i;var a=t[1]||n;u.set(a,n);if(t[0]&512){(i=e.F)==null?void 0:i.push([n,a])}return a})),true)))}}return r};var be=function(r,e,t,i){return __awaiter(n,void 0,void 0,(function(){var n,i,a,f,u,o,l,v,s,c,d;return __generator(this,(function(p){switch(p.label){case 0:if(!((e.i&32)===0))return[3,6];e.i|=32;i=t.$;if(!i)return[3,4];a=m(t);if(!(a&&"then"in a))return[3,2];f=Hr();return[4,a];case 1:n=p.sent();f();return[3,3];case 2:n=a;p.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.m,"#").concat(e.K,'" was not found'))}if(!n.isProxied){{t.q=n.watchers}$e(n,t,2);n.isProxied=true}u=Br("createInstance",t.m);{e.i|=8}try{new n(e)}catch(r){h(r)}{e.i&=~8}{e.i|=128}u();we(e.t);return[3,5];case 4:n=r.constructor;o=r.localName;customElements.whenDefined(o).then((function(){return e.i|=128}));p.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}v=ie(t);if(!y.has(v)){s=Br("registerStyles",t.m);ee(v,l,!!(t.i&1));s()}}p.label=6;case 6:c=e.H;d=function(){return fe(e,true)};if(c&&c["s-rc"]){c["s-rc"].push(d)}else{d()}return[2]}}))}))};var we=function(r){{he(r,"connectedCallback")}};var ge=function(r){if((E.i&1)===0){var e=v(r);var n=e.u;var t=Br("connectedCallback",n.m);if(!(e.i&1)){e.i|=1;var i=void 0;{i=r.getAttribute(S);if(i){if(n.i&1){var a=ne(r.shadowRoot,n);r.classList.remove(a+"-h",a+"-s")}else if(n.i&2){var a=ie(n);r["s-sc"]=a}Vr(r,n.m,i,e)}}if(!i){if(n.i&(4|8)){_e(r)}}{var f=r;while(f=f.parentNode||f.host){if(f.nodeType===1&&f.hasAttribute("s-id")&&f["s-p"]||f["s-p"]){ae(e,e.H=f);break}}}if(n.G){Object.entries(n.G).map((function(e){var n=e[0],t=e[1][0];if(t&31&&r.hasOwnProperty(n)){var i=r[n];delete r[n];r[n]=i}}))}{U((function(){return be(r,e,n)}))}}else{xe(r,e,n.X);if(e==null?void 0:e.t){we(e.t)}else if(e==null?void 0:e.h){e.h.then((function(){return we(e.t)}))}}t()}};var _e=function(r){var e=r["s-cr"]=C.createComment("");e["s-cn"]=true;Nr(r,e,r.firstChild)};var Se=function(r){{he(r,"disconnectedCallback")}};var je=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((E.i&1)===0){e=v(r);{if(e.J){e.J.map((function(r){return r()}));e.J=void 0}}if(e==null?void 0:e.t){Se(e.t)}else if(e==null?void 0:e.h){e.h.then((function(){return Se(e.t)}))}}return[2]}))}))};var Oe=r("b",(function(r,e){if(e===void 0){e={}}var n;var t=Br();var i=[];var a=e.exclude||[];var f=A.customElements;var u=C.head;var o=u.querySelector("meta[charset]");var l=C.createElement("style");var s=[];var d;var h=true;Object.assign(E,e);E._=new URL(e.resourcesUrl||"./",C.baseURI).href;{E.i|=2}var p=false;r.map((function(r){r[1].map((function(e){var n;var t={i:e[0],m:e[1],G:e[2],X:e[3]};if(t.i&4){p=true}{t.G=e[2]}{t.X=e[3]}{t.F=[]}{t.q=(n=e[4])!=null?n:{}}var u=t.m;var o=function(r){__extends(e,r);function e(e){var n=r.call(this,e)||this;n.hasRegisteredEventListeners=false;e=n;c(e,t);if(t.i&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open",delegatesFocus:!!(t.i&16)})}}else{if(e.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(t.m,"! Mode is set to ").concat(e.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return n}e.prototype.connectedCallback=function(){var r=this;var e=v(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;xe(this,e,t.X)}if(d){clearTimeout(d);d=null}if(h){s.push(this)}else{E.jmp((function(){return ge(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;E.jmp((function(){return je(r)}))};e.prototype.componentOnReady=function(){return v(this).h};return e}(HTMLElement);{{Pr(o.prototype)}}t.$=r[0];if(!a.includes(u)&&!f.get(u)){i.push(u);f.define(u,$e(o,t,1))}}))}));if(i.length>0){if(p){l.textContent+=k}if(l.innerHTML.length){l.setAttribute("data-styles","");var m=(n=E.W)!=null?n:Q(C);if(m!=null){l.setAttribute("nonce",m)}u.insertBefore(l,o?o.nextSibling:u.firstChild)}}h=false;if(s.length){s.map((function(r){return r.connectedCallback()}))}else{{E.jmp((function(){return d=setTimeout(de,30)}))}}t()}));var ke=r("F",(function(r,e){return e}));var xe=function(r,e,n,t){if(n){n.map((function(n){var t=n[0],i=n[1],a=n[2];var f=Ce(r,t);var u=Ae(e,a);var o=Ee(t);E.ael(f,i,u,o);(e.J=e.J||[]).push((function(){return E.rel(f,i,u,o)}))}))}};var Ae=function(r,e){return function(n){var t;try{{if(r.i&256){(t=r.t)==null?void 0:t[e](n)}else{(r.V=r.V||[]).push([e,n])}}}catch(r){h(r)}}};var Ce=function(r,e){if(e&4)return C;if(e&8)return A;if(e&16)return C.body;return r};var Ee=function(r){return T?{passive:(r&1)!==0,capture:(r&2)!==0}:(r&2)!==0};var Te=r("s",(function(r){return E.W=r}))}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,c as e,h as d,H as s,g as o}from"./p-ecb2aca6.js";import{i}from"./p-aaa7a7bd.js";import{c as g}from"./p-5e59e970.js";import{s as c,u}from"./p-a45e3f8b.js";const r=class{constructor(d){t(this,d),this.duetChange=e(this,"duetChange",3),this.toggleId=g("DuetToggle"),this.onClick=t=>{t.preventDefault(),this.setFocus(),this.checked=!this.checked},this.theme="",this.margin="auto",this.accessibleActiveDescendant=void 0,this.accessibleControls=void 0,this.accessibleOwns=void 0,this.accessibleDescribedBy=void 0,this.accessibleDetails=void 0,this.accessibleLabelledBy=void 0,this.accessibleDescription=void 0,this.label="label",this.labelColor=void 0,this.labelWeight=void 0,this.labelPosition="top",this.required=!1,this.disabled=!1,this.checked=!1,this.value=void 0,this.identifier=void 0,this.name=void 0,this.role=void 0}checkedChanged(t){this.duetChange.emit({checked:t,value:this.value,component:"duet-toggle"})}componentWillLoad(){i(this),void 0===this.value&&(this.value=this.identifier)}connectedCallback(){c(this)}disconnectedCallback(){u(this)}async setFocus(t){this.nativeInput.focus(t)}render(){const t=this.identifier||this.toggleId;return d(s,{onClick:this.disabled?void 0:this.onClick,class:{"duet-m-0":"none"===this.margin}},d("div",{class:{"duet-toggle":!0,"duet-theme-turva":"turva"===this.theme,"duet-side-label":"top"!==this.labelPosition,"duet-reverse-label":"right"===this.labelPosition}},d("duet-label",{theme:this.theme,color:this.labelColor,weight:this.labelWeight,for:t,margin:"top"===this.labelPosition?"auto":"none"},this.label),d("label",{class:"duet-switch",htmlFor:t},d("input",{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:t=>this.nativeInput=t}),d("div",{class:"duet-slider"}))))}get element(){return o(this)}static get watchers(){return{checked:["checkedChanged"]}}};r.style='*.sc-duet-toggle,*.sc-duet-toggle::after,*.sc-duet-toggle::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-toggle-h{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}.sc-duet-toggle-h:last-child,.sc-duet-toggle-h:last-of-type{margin-right:0 !important}.duet-m-0.sc-duet-toggle-h{margin:0 !important}duet-label.sc-duet-toggle{display:block !important;width:100% !important}.duet-side-label.sc-duet-toggle{display:flex;gap:12px;align-items:center}.duet-side-label.sc-duet-toggle duet-label.sc-duet-toggle{width:auto !important}.duet-reverse-label.sc-duet-toggle{flex-direction:row-reverse}.duet-switch.sc-duet-toggle{position:relative;display:block;width:48px;height:28px}.duet-switch.sc-duet-toggle input.sc-duet-toggle{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.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle{background-color:rgb(0, 119, 179);box-shadow:none}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle{background-color:rgb(198, 12, 48)}.duet-switch.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #004467;transform:translateX(20px)}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:checked+.duet-slider.sc-duet-toggle::before{background-color:rgb(255, 255, 255);box-shadow:-1px 0 2px #660619}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled+.duet-slider.sc-duet-toggle{cursor:default}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled+.duet-slider.sc-duet-toggle::before{box-shadow:none}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled+.duet-slider.sc-duet-toggle::before{box-shadow:none}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:not(:checked)+.duet-slider.sc-duet-toggle{background:#bfcbd2}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:not(:checked)+.duet-slider.sc-duet-toggle::before{background:rgb(255, 255, 255);box-shadow:none}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:not(:checked)+.duet-slider.sc-duet-toggle{background:#c7c9cf}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:not(:checked)+.duet-slider.sc-duet-toggle::before{background:rgb(255, 255, 255)}.duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:checked+.duet-slider.sc-duet-toggle{background:#80bbd9}.duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:disabled:checked+.duet-slider.sc-duet-toggle{background:#e38698}.user-is-tabbing.sc-duet-toggle-h .duet-switch.sc-duet-toggle input.sc-duet-toggle:focus+.duet-slider.sc-duet-toggle{box-shadow:0 0 0 1px #fff, 0 0 0 3px rgba(0, 119, 179, 0.75)}.user-is-tabbing.sc-duet-toggle-h .duet-theme-turva.sc-duet-toggle .duet-switch.sc-duet-toggle input.sc-duet-toggle:focus+.duet-slider.sc-duet-toggle{box-shadow:0 0 0 1px #fff, 0 0 0 3px rgba(23, 28, 58, 0.75)}.duet-slider.sc-duet-toggle{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.sc-duet-toggle::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.sc-duet-toggle .duet-slider.sc-duet-toggle{background-color:rgb(143, 147, 158)}.duet-theme-turva.sc-duet-toggle .duet-slider.sc-duet-toggle::before{background-color:rgb(255, 255, 255);box-shadow:1px 0 2px 0 #00334d}';export{r as duet_toggle}
@@ -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
- */System.register(["./p-14fe190e.system.js","./p-e216bea4.system.js","./p-c46cff2a.system.js","./p-752fa0fc.system.js","./p-8b2056f0.system.js","./p-cbbf6d6a.system.js","./p-e6b5a1c7.system.js","./p-98636086.system.js","./p-ef731dfb.system.js"],(function(t){"use strict";var e,a,i,o,n,r,s,u,d,l,b,c,h,p,f,g,m,v,x,k,w,y;return{setters:[function(t){e=t.r;a=t.h;i=t.H;o=t.g;n=t.c},function(t){r=t.i},function(t){s=t.h;u=t.a},function(t){d=t.s;l=t.u;b=t.o;c=t.p;h=t.d;p=t.b;f=t.a;g=t.c},function(t){m=t.g;v=t.c;x=t.d;k=t.a},function(t){w=t.d},function(t){y=t.c},function(){},function(){}],execute:function(){var z="*,*::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.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--absolute{position:absolute;top:0;z-index:202;width:auto;height:100%;padding:0 16px;background-color:rgb(255, 255, 255)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute.left{left:0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container--absolute.right{right:0}: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--absolute{padding:0 7px;border:1px solid rgb(212, 223, 229)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute.duet-scrollable-button--left{border-radius:8px 0 0 8px}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute.duet-scrollable-button--right{border-radius:0 8px 8px 0}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(0, 119, 179);border-width:2px;}.duet-theme-turva :host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(113, 118, 132)}:host .duet-scrollable-items.buttons .duet-scrollable-button-container .duet-scrollable-button[hidden]{display:none !important}:host .duet-scrollable-items.duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover{border-color:rgb(113, 118, 132)}:host .duet-scrollable-items .duet-scrollable-list{display:flex;flex-wrap:nowrap;padding-inline:10px;margin-inline:-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;-webkit-mask:linear-gradient(to right, transparent 0, #fff 10px), linear-gradient(to left, transparent 0, #fff 10px);-webkit-mask-size:50% 100%, 50% 100%;-webkit-mask-position:left, right;-webkit-mask-repeat:no-repeat;mask:linear-gradient(to right, transparent 0, #fff 10px), linear-gradient(to left, transparent 0, #fff 10px);mask-size:50% 100%, 50% 100%;mask-position:left, right;mask-repeat:no-repeat;}:host .duet-scrollable-items .duet-scrollable-list--absolute{padding-right:0;padding-left:2px;margin-inline:0;-webkit-mask:none !important;mask:none !important}: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.gap-none{gap:0}:host .duet-scrollable-items .duet-scrollable-list.gap-large{gap:20px}: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 _=z;var j=t("duet_scrollable",function(){function t(t){var a=this;e(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){var e=a.getOverlayWidth();a.checkScrollingNeeded(t[0].target,e)}}));this.collapsedOnClick=function(){a.collapsed=!a.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.buttonPosition="relative";this.center=false;this.padding="none";this.gap="large";this.selected=0}t.prototype.watchPropHandler=function(t){this.scrollToElement(t,"center")};t.prototype.componentWillLoad=function(){r(this);this.hasCollapseButtonLabelSlot=s(this.element,"collapse-button-label")};t.prototype.componentDidLoad=function(){var t=this;requestAnimationFrame((function(){if(t.scrollPaneElement){var e=t.buttonPosition==="absolute"?0:5;t.checkScrollingNeeded(t.scrollPaneElement,e);t.updateScrollButtons();t.resizeObserver.observe(t.scrollPaneElement)}}))};t.prototype.disconnectedCallback=function(){this.resizeObserver.disconnect()};t.prototype.getScrollPaneElements=function(){return u(this.element)};t.prototype.checkScrollingNeeded=function(t,e){if(t===void 0){t=this.scrollPaneElement}if(e===void 0){e=5}var a;if(!t){return}var i=((a=t.parentElement)===null||a===void 0?void 0:a.getBoundingClientRect().width)||0;var o=t.scrollWidth;var n=this.getOverlayWidth()*2;this.needsScrolling=o-n>i+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+this.getOverlayWidth()>=e.scrollWidth){this.scrollPaneAtEnd=true}else if(e.clientWidth+e.scrollLeft+this.getOverlayWidth()<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.getOverlayWidth=function(){if(this.buttonPosition==="absolute"){return this.theme==="turva"?1:0}return 10};t.prototype.renderButton=function(t){var e,i;var o=this;var n=this.theme==="turva"?"color-primary-darker-turva":"color-primary";var r=this.theme==="turva"?"color-gray-turva":"color-gray";var s=function(){if(t==="left"){o.scrollLeft()}else{o.scrollRight()}};var u=t==="left"?this.scrollPaneAtStart:this.scrollPaneAtEnd;return a("div",{class:(e={"duet-scrollable-button-container":true},e["".concat(t)]=true,e["duet-scrollable-button-container--occluded"]=!this.needsScrolling,e["duet-scrollable-button-container--".concat(this.buttonPosition)]=true,e),hidden:!this.buttons||this.buttonPosition==="absolute"&&u},a("span",{part:"".concat(this.identifier,"-button-").concat(t),"aria-hidden":"true",class:(i={"duet-scrollable-button":true},i["duet-scrollable-button--".concat(this.buttonPosition)]=true,i["duet-scrollable-button--".concat(this.buttonAlignment)]=true,i["duet-scrollable-button--".concat(t)]=true,i),onClick:function(){s();if(document.activeElement){document.activeElement.blur()}},hidden:!this.buttons||u},a("duet-icon",{color:u?r:n,name:t==="left"?"action-arrow-left":"action-arrow-right",size:this.buttonPosition==="absolute"?"x-small":"small",margin:"none"})))};t.prototype.render=function(){var t;var e=this;return a(i,{key:"73d85963b8e4016fe3d891925fe817e0a7cd9cb5",class:{"duet-theme-turva":this.theme==="turva","duet-theme-default":this.theme==="default"}},this.hasCollapseButtonLabelSlot&&a("div",{key:"c34006e80ca8d106b496b124d73fc23063fa6e3e",class:{collapse:true,hide:!this.needsScrolling&&!this.collapsed}},a("duet-button",{key:"cd7768e824f0d392c78fbc0b6dc5cb01e48e3402",variation:"plain",margin:"none","center-text":true,onClick:function(){return e.collapsedOnClick()}},a("slot",{key:"0c5978598a028065857e7f68f68eb1f6069eb006",name:"collapse-button-label"}))),a("div",{key:"769b377acbb2108d336d00ded087feffa8b65792",class:{"duet-scrollable-items":true,buttons:this.buttons,center:this.center,"duet-theme-turva":this.theme==="turva"}},this.buttons&&this.renderButton("left"),a("div",{key:"36d1d94c465dcc3a2759bbfb7dfa092528824e9d",class:(t={"duet-scrollable-list":true},t["duet-scrollable-list--".concat(this.buttonPosition)]=true,t["gap-".concat(this.gap)]=true,t.collapsed=this.collapsed,t["duet-overflow-padding--".concat(this.padding)]=this.padding!=="none",t["duet-scrollable-list--".concat(this.buttonPosition)]=this.buttonPosition==="absolute",t),onScroll:function(){return e.updateScrollButtons()},ref:function(t){return e.scrollPaneElement=t}},a("slot",{key:"4ce1914b23bc31c920b3ddffc064b323a2d66002"})),this.buttons&&this.renderButton("right")))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:["watchPropHandler"]}},enumerable:false,configurable:true});return t}());j.style=_;var S=".sc-duet-tab-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-tab.sc-duet-tab{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:none;width:100%}.duet-tab.selected.sc-duet-tab{display:block}.duet-tab.has-content-id.sc-duet-tab,.duet-tab.has-content-id.selected.sc-duet-tab{display:none}.user-is-tabbing.sc-duet-tab-h .duet-tab.sc-duet-tab:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}.user-is-tabbing.sc-duet-tab-h .duet-tab.duet-theme-turva.sc-duet-tab:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";var I=S;var U=t("duet_tab",function(){function t(t){var a=this;e(this,t);this.setupContentElement=function(){if(a.contentId){a.tabpanelElement=document.getElementById(a.contentId);if(a.tabpanelElement){a.tabpanelElement.setAttribute("role","tabpanel");a.tabpanelElement.setAttribute("tabindex","-1");a.tabpanelElement.removeEventListener("focus",a.tabpanelElementFocusListener);a.tabpanelElement.removeEventListener("blur",a.tabpanelElementBlurListener);a.tabpanelElement.addEventListener("focus",a.tabpanelElementFocusListener);a.tabpanelElement.addEventListener("blur",a.tabpanelElementBlurListener);if(a.accessibleDescription){a.tabpanelElement.setAttribute("aria-description",a.accessibleDescription)}if(a.accessibleLabelledBy){a.tabpanelElement.setAttribute("aria-labelledby",a.accessibleLabelledBy)}if(a.selected){a.tabpanelElement.toggleAttribute("hidden",false)}else{a.tabpanelElement.toggleAttribute("hidden",true)}}}};this.tabpanelElementFocusListener=function(){if(a.element.classList.contains("user-is-tabbing")){a.tabpanelElement.style.outline="0";a.tabpanelElement.style.boxShadow=w(a.theme==="turva"?"focus-turva":"focus")}};this.tabpanelElementBlurListener=function(){a.tabpanelElement.style.outline=null;a.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?m(this.accessibleDescriptionDefault):null;this.accessibleLabelledBy=undefined;this.contentId=undefined}t.prototype.componentWillLoad=function(){r(this)};t.prototype.connectedCallback=function(){v(this,{prop:"accessibleDescription",defaults:"accessibleDescriptionDefault"});d(this);this.setupContentElement()};t.prototype.disconnectedCallback=function(){x(this);l(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 a("div",{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"},a("slot",null))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:["setupSelected"]}},enumerable:false,configurable:true});return t}());U.style=I;var C='*,*::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-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-top:0;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:inline-block;width:auto;padding:20px;margin-left:-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;text-align:left;text-decoration:none;cursor:pointer;border-right: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)}.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}.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(0, 119, 179);background:rgb(255, 255, 255);border-bottom:3px solid rgb(0, 119, 179);outline:0;box-shadow:none !important}.duet-theme-turva .duet-tab-button.selected{color:rgb(198, 12, 48);border-color:rgb(222, 224, 228);border-bottom-color:rgb(198, 12, 48)}.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-variation-default .duet-tab-button{padding:11px 20px 13px 20px;overflow:hidden;font-size:0.875rem;color:rgb(81, 105, 123);background:rgb(245, 248, 250);border:1px solid rgb(212, 223, 229)}.duet-tab-variation-default .duet-tab-button.switch-large-at-always{padding:15px 28px 17px 28px;font-size:1rem}@media (min-width: 36em){.duet-tab-variation-default .duet-tab-button.switch-large-at-small{padding:15px 28px 17px 28px;font-size:1rem}}.duet-tab-variation-default .duet-tab-button.selected{color:rgb(8, 42, 77);background:rgb(255, 255, 255)}.duet-tab-variation-default .duet-tab-button.selected::after{position:absolute;right:-1px;bottom:0;z-index:300;display:block;width:calc(100% + 2px);height:2px;content:"";background-color:rgb(0, 119, 179)}.duet-tab-variation-default .duet-tab-button:not(.selected){box-shadow:0 3px 2px -1px rgba(0, 41, 77, 0.1) inset, 0 0 0 rgb(212, 223, 229)}.duet-tab-variation-default .duet-tab-button:hover:not(.selected){color:rgb(45, 64, 81);background:rgb(228, 236, 239)}.duet-tab-variation-default .duet-tab-button:first-child{border-radius:8px 0 0 8px}.duet-tab-variation-default .duet-tab-button:last-child{border-radius:0 8px 8px 0}.duet-theme-turva.duet-tab-variation-default .duet-tab-button{color:rgb(98, 104, 122)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected{color:rgb(51, 5, 20);background:rgb(255, 255, 255)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button.selected::after{background-color:rgb(198, 12, 48)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:not(.selected){box-shadow:0 3px 2px -1px rgba(23, 28, 58, 0.1) inset, 0 0 0 rgb(222, 224, 228)}.duet-theme-turva.duet-tab-variation-default .duet-tab-button:hover:not(.selected){color:rgb(45, 52, 79);background:rgb(234, 235, 239)}.duet-tab-variation-plain .duet-tab-button{display:inline-block;width:auto;padding:12px 0;margin-left:0;font-size:0.875rem;color:rgb(98, 121, 138);border-width:0;border-radius:0;transition:none}.duet-tab-variation-plain .duet-tab-button.switch-large-at-always{padding:20px 0;font-size:1rem}@media (min-width: 36em){.duet-tab-variation-plain .duet-tab-button.switch-large-at-small{padding:20px 0;font-size:1rem}}.duet-tab-variation-plain .duet-tab-button:hover{color:rgb(8, 42, 77)}.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(8, 42, 77);border-bottom:2px solid rgb(0, 119, 179)}.duet-tab-variation-plain .duet-tab-button+.duet-tab-button{margin-left:36px}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button{color:rgb(113, 118, 132)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button:hover{color:rgb(51, 5, 20)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(51, 5, 20);border-bottom:2px solid 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-top:2px solid rgb(181, 198, 208);border-bottom-color:rgb(0, 119, 179);border-left:2px solid rgb(181, 198, 208);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 E=C;var A=t("duet_tab_group",function(){function t(t){var a=this;e(this,t);this.duetChange=n(this,"duetChange",3);this.duetTabChange=n(this,"duetTabChange",7);this.duetTabChangeRequested=n(this,"duetTabChangeRequested",7);this.id=y("DuetTabGroup");this.handleKeyDown=function(t){var e;if(h(t)||p(t)){e=t.target.previousElementSibling}else if(f(t)||g(t)){e=t.target.nextElementSibling}if(b(t)&&!c(t)){t.preventDefault();a.element.querySelector(":scope > duet-tab[selected]").setFocus()}if(e){t.preventDefault();e.click();e.focus()}};this.onTabSelect=function(t){if(a.tabChangeConfirm){if(t!==a.selected){var e={value:t,component:"duet-tab-group"};a.duetTabChangeRequested.emit(e)}}else{a.openTab(t)}};this.scrollToActive=function(){setTimeout((function(){var t=a.tabsContainer.querySelector(".selected");if(t){t.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}}),50)};this.tabs=[];this.selected=undefined;this.theme="";this.scrolls=true;this.collapses=false;this.accessibleLabel=undefined;this.variation="default";this.language=k();this.labelDefaults={fi:"Valitse",en:"Choose",sv:"Välj"};this.label=m(this.labelDefaults,this.language);this.labelHidden=true;this.identifier=this.id;this.margin="auto";this.padding="auto";this.setTabIndex=true;this.tabChangeConfirm=false;this.switchLargeBreakpoint="small"}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();d(this);return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}l(this)};t.prototype.componentWillLoad=function(){r(this)};t.prototype.componentDidLoad=function(){var t=this;this.intersectionObserver=new IntersectionObserver((function(e){if(e.length>0&&e[0].isIntersecting){t.scrollToActive();t.intersectionObserver.disconnect()}}),{root:null,threshold:0});this.intersectionObserver.observe(this.element)};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.isCentered=function(){return window&&window.getComputedStyle(this.element).textAlign=="center"};t.prototype.render=function(){var t;var e=this;var i=this.variation==="plain-scrolling"?"duet-tab-variation-plain":"duet-tab-variation-".concat(this.variation);var o=this.variation==="checked"||this.variation==="plain-scrolling";var n="switch-large-at-".concat(this.switchLargeBreakpoint?this.switchLargeBreakpoint:"small");var r=this.tabs.map((function(t,i){var o;return a("button",{role:"tab",id:e.getButtonId(i),"aria-selected":t.selected?"true":"false","aria-description":e.getAccessibleDescription(i),tabindex:t.selected?"0":"-1",part:"".concat(e.identifier,"-button ").concat(t.selected?"".concat(e.identifier,"-button--selected"):""),type:"button",class:(o={"duet-p-0":e.padding==="none","duet-tab-button":true,"stackable-tab":e.variation==="checked"&&e.tabs.length<=3,selected:t.selected},o["duet-notification-mark-".concat(t.notificationMark)]=!!t.notificationMark,o[n]=["default","plain","plain-scrolling"].includes(e.variation)?true:false,o),onClick:function(){return e.onTabSelect(i)},onKeyDown:function(t){return e.handleKeyDown(t)}},e.variation==="checked"?a("div",{class:{"checked-tab-content":true,"stackable-checked-tab-content":e.tabs.length<=3}},a("div",{class:{"checked-tab-description":true,"stackable-description":e.tabs.length<=3}},a("p",null,t.label),a("p",{class:{"tab-caption":true,selected:t.selected}},t.caption)),a("div",{class:{"stackable-checkmark":e.tabs.length<=3}},a("duet-checkmark",{theme:e.theme,checked:t.selected,type:"radio","presentation-only":true,center:true}))):t.label)}));return a("div",{key:"3c43b90c86da8b84482d816d06e6a3218aaf365c",class:(t={"duet-tab-group":true,"duet-theme-turva":this.theme==="turva"},t[i]=true,t["duet-tab-plain-scrolling"]=this.variation==="plain-scrolling",t["duet-tab-group-scrolls"]=true,t),"aria-label":this.accessibleLabel},a("div",{key:"be929248e27f557e9f274427cf36320db7e0ae52",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&&!o},ref:function(t){e.tabsContainer=t}},this.variation==="checked"?r:a("duet-scrollable",{selected:this.selected,identifier:this.identifier,gap:["default","plain","plain-scrolling"].includes(this.variation)?"none":"large",buttonPosition:this.variation==="default"?"absolute":"relative",center:this.isCentered()?this.isCentered():this.element.style.textAlign=="center",theme:this.theme},r)),a("div",{key:"07d2edc0e8a9935d414571297699b8aa6e6faeab",class:{"duet-tab-group-content":true,"duet-m-0":this.margin==="none","checked-group-content":this.variation==="checked"}},a("slot",{key:"dd98577cd851f44400d93b04a5bd14e3117d9618"})))};Object.defineProperty(t.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());A.style=E}}}));
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,r){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function s(e){try{u(r.next(e))}catch(e){n(e)}}function o(e){try{u(r["throw"](e))}catch(e){n(e)}}function u(e){e.done?i(e.value):a(e.value).then(s,o)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,a,n,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(i=0)),i)try{if(r=1,a&&(n=o[0]&2?a["return"]:o[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,o[1])).done)return n;if(a=0,n)o=[o[0]&2,n.value];switch(o[0]){case 0:case 1:n=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]<n[3])){i.label=o[1];break}if(o[0]===6&&i.label<n[1]){i.label=n[1];n=o;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(o);break}if(n[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];a=0}finally{r=n=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-14fe190e.system.js","./p-e216bea4.system.js","./p-e6b5a1c7.system.js","./p-752fa0fc.system.js","./p-8b2056f0.system.js","./p-c46cff2a.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,i,r,a,n,s,o,u,d,c,l,f,h;return{setters:[function(e){t=e.r;i=e.c;r=e.h;a=e.H;n=e.g},function(e){s=e.i},function(e){o=e.c},function(e){u=e.s;d=e.u},function(e){c=e.g;l=e.c;f=e.d},function(e){h=e.h},function(){}],execute:function(){var p='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;max-height:999px;border-radius:4px;transition:opacity 300ms ease, visibility 300ms ease, transform 300ms ease, max-height 300ms ease}:host(:focus){outline:0}:host(.user-is-tabbing:focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing.duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}:host(.duet-alert-is-dismissed){max-height:0;overflow:hidden;visibility:hidden !important;opacity:0;transform:scale(0.98)}:host(.duet-alert-is-dismissed) .duet-alert{margin:0 !important}.duet-alert-wrapper{margin-bottom:16px !important;position:relative;width:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.25;color:rgb(8, 42, 77);background:#f2f8fb;border:1px solid rgb(0, 119, 179);border-radius:4px;transition:margin 100ms 300ms ease}.duet-alert-wrapper.duet-p-0{padding:0 !important}.duet-alert-wrapper.duet-m-0{margin:0 !important}.duet-alert-wrapper.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);background:#f3f4f5;border-color:rgb(23, 28, 58)}.duet-alert-wrapper.warning{background:#fffbf4;border-color:rgb(247, 178, 40)}.duet-alert-wrapper.warning.duet-theme-turva{background:#fffbf4;border-color:rgb(247, 178, 40)}.duet-alert-wrapper.danger{background:#fdf4f6;border-color:rgb(214, 28, 82)}.duet-alert-wrapper.danger.duet-theme-turva{background:#fdf4f6;border-color:rgb(214, 28, 82)}.duet-alert-wrapper.success{background:#f5f9f8;border-color:rgb(48, 131, 105)}.duet-alert-wrapper.success.duet-theme-turva{background:#f5f9f8;border-color:rgb(48, 131, 105)}.duet-alert-wrapper.below-nav{margin-bottom:0 !important;border:0;border-bottom:1px solid rgb(212, 223, 229)}.duet-alert-wrapper .duet-alert{position:relative;width:100%;max-width:1384px;padding:16px;margin:0 auto}.duet-alert-wrapper .duet-alert.duet-alert-is-dismissible{padding:16px 48px 16px 16px;text-align:left}.duet-alert-wrapper .duet-alert.duet-alert-is-dismissible .duet-alert-container{text-align:left}.duet-alert-wrapper .duet-alert.duet-alert-has-show-more{padding-bottom:0}.duet-alert-wrapper .duet-alert.duet-alert-has-icon .duet-alert-show-more{margin-left:36px}.duet-alert-dismiss{position:absolute;top:2px;right:2px}.duet-alert-container{display:inline-flex;align-items:center;justify-content:center;width:100%;margin:0 auto !important}.duet-alert-container span{width:100%}.duet-alert-has-icon .duet-alert-container{margin-top:2px !important}.duet-alert-container:focus{outline:none}.duet-alert-icon{display:inline-block;align-self:center;width:20px;min-width:20px;height:20px;margin:0 16px 0 0 !important}.duet-alert-icon.below-nav{align-self:flex-start}.duet-alert-icon duet-icon{width:20px;height:20px}';var b=p;var m=e("duet_alert",function(){function e(e){var r=this;t(this,e);this.duetDismiss=i(this,"duetDismiss",7);this.duetCloseComplete=i(this,"duetCloseComplete",7);this.descriptiveId=o("DuetAlert");this.hasShowMoreSlot=false;this.iconVariationMap={default:"messaging-info",success:"messaging-success",warning:"messaging-alert",danger:"messaging-danger-alert"};this.handleDismiss=function(e){r.handleHide();r.duetDismiss.emit({component:"duet-alert",originalEvent:e})};this.handleShow=function(){r.isDismissed=false};this.handleHide=function(){r.isDismissed=true;r.element.addEventListener("transitionend",(function(){return r.duetCloseComplete.emit()}),{once:true})};this.theme="";this.isDismissed=false;this.timeoutID=undefined;this.accessibleLabelDefaults={fi:"Painike viestin sulkemiseen",sv:"Knapp för att stänga meddelandet",en:"Button to close the message"};this.accessibleLabel=c(this.accessibleLabelDefaults);this.announcements=true;this.icon="";this.autoDismiss=undefined;this.margin="auto";this.padding="auto";this.variation="default";this.position="content";this.dismissible=false;this.focusable=false}e.prototype.componentWillLoad=function(){s(this);this.hasShowMoreSlot=h(this.element,"show-more")};e.prototype.componentDidLoad=function(){var e=this;if(this.autoDismiss){this.timeoutID=setTimeout((function(){return e.handleDismiss()}),this.autoDismiss)}};e.prototype.connectedCallback=function(){l(this,{prop:"accessibleLabel",defaults:"accessibleLabelDefaults"});u(this)};e.prototype.disconnectedCallback=function(){if(this.timeoutID){clearTimeout(this.timeoutID)}f(this);d(this)};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.handleShow();return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.handleHide();return[2]}))}))};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.alertContainer.focus(e);return[2]}))}))};e.prototype.render=function(){var e,t;var i=this;var n=this.theme==="turva"?"secondary-turva":"secondary";return r(a,{key:"d3c53bc46ae4d9f94d286a8ca55a1891afaec2d1",class:{"duet-theme-turva":this.theme==="turva","duet-alert-is-dismissed":this.isDismissed},role:this.announcements?"alert":undefined},r("div",{key:"9b7c2ede2a81e5459214b3262c08f5a096251f50",class:(e={"duet-alert-wrapper":true,"duet-p-0":this.padding==="none","duet-m-0":this.margin==="none"},e[this.variation]=true,e[this.position]=true,e["duet-theme-turva"]=this.theme==="turva",e)},r("div",{key:"c372501af01265a0e962d41b0aeefa1b0803dc7a",class:(t={"duet-alert":true,"duet-alert-has-icon":!!this.icon||this.position==="below-nav","duet-alert-has-show-more":this.hasShowMoreSlot,"duet-alert-is-dismissible":this.dismissible,"duet-p-0":this.padding==="none","duet-m-0":this.margin==="none"},t[this.variation]=true,t["duet-theme-turva"]=this.theme==="turva",t)},r("div",{key:"6a00f96245f482fa280c5618d1ab3e3d61ae57bf",class:"duet-alert-container",ref:function(e){i.alertContainer=e},tabindex:this.focusable?"0":undefined},this.icon&&this.position!=="below-nav"&&r("div",{key:"3993720ebce31589b986f5441c9f8f48719f6c97",class:"duet-alert-icon"},r("duet-icon",{key:"fc93bdce332702991e0dedf6eba0276c5d9c3e6d",size:"auto",name:this.icon,color:"currentColor"})),this.position==="below-nav"&&r("div",{key:"e469d1feb00ce1b223b7977a1b87228933556823",class:"duet-alert-icon below-nav"},r("duet-icon",{key:"8e3407af6309c0107a6e78107c965cf28cadbec3",size:"auto",name:this.iconVariationMap[this.variation],color:this.variation==="default"?"currentColor":this.variation})),r("span",{key:"e4e8494c19f24f7da051b98cef3c3efcdeb47031",id:this.descriptiveId},r("slot",{key:"1ce9a6e6c13e76f6fbf1317fa867d5400c79f41e"}))),this.hasShowMoreSlot&&r("duet-show-more",{key:"2106929166ce1b954dff45ed25b218ddce15f4d9",margin:"none",class:"duet-alert-show-more"},r("slot",{key:"331aa9d74f0b995b55b6b119e569411a07673c3e",name:"show-more"})),this.dismissible&&r("div",{key:"9cfd9e835660d246540ca7452de22bcd324d4682",class:"duet-alert-dismiss"},r("duet-button",{key:"fe950cf6c3d775160bd97b34e88ca71603a47d19",variation:"plain",accessibleLabel:this.accessibleLabel,accessibleDescribedBy:this.descriptiveId,color:n,iconSize:"medium",icon:"navigation-close",iconOnly:true,margin:"none",theme:this.theme,onClick:this.handleDismiss,fixed:true})))))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());m.style=b}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{h as t,r as i,c as s,H as e,g as h}from"./p-ecb2aca6.js";import{i as o}from"./p-aaa7a7bd.js";import{c as n}from"./p-5e59e970.js";import{d as a}from"./p-9e371678.js";import{j as r,f as l,o as d,b as c,c as u}from"./p-a45e3f8b.js";import{g as m,a as p,c as v,d as b}from"./p-0c115b39.js";import{a as g}from"./p-530e612b.js";import{r as f,p as x}from"./p-9c3c64b9.js";const y=({item:i,activeDescendant:s,selected:e,label:h,clickHandler:o=(t=>{t.preventDefault()}),keyHandler:n=(t=>{t.preventDefault()}),search:a,isAndroidDevice:r,id:l})=>{const d=a.split(" ").filter((t=>!!t.trim())).map((t=>f(t))),c=""!==a?new RegExp(`(${d.join("|")})`,"i"):void 0;return t("duet-popup-menu-item",{id:s?l:"",active:e,"data-index":i.id,"aria-selected":s?"true":void 0,"aria-current":e?"true":void 0,role:"option","aria-label":h,tabindex:r?"-1":null,onClick:t=>o(t),onKeyUp:t=>n(t),accessibleRole:"option",activeDescendant:s},c?t("span",{class:"option-container","aria-hidden":"true"},t("span",{innerHTML:i.name.replace(c,'<span style="text-decoration: underline">$&</span>')})):i.name,i.tags&&t("span",{class:"option-tags"},i.tags.join(", ")))},S=class{constructor(t){var e,h;i(this,t),this.duetChange=s(this,"duetChange",3),this.listBoxId=n("duet-combobox-list-element"),this.inputId=n("duet-combobox-input-id"),this.activeDescendantId=n("duet-combobox-active-descendant"),this.isAndroidDevice=(null===(h=null===(e=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===e?void 0:e.toLowerCase())||void 0===h?void 0:h.indexOf("android"))>-1||null,this.resizeObserver=new ResizeObserver(a((t=>{var i,s,e;if(1===(null==t?void 0:t.length)){const h=null===(s=null===(i=t[0])||void 0===i?void 0:i.target)||void 0===s?void 0:s.getBoundingClientRect().width,o=parseInt(null===(e=getComputedStyle(this.listContainer.shadowRoot.querySelector(".duet-popup-menu-list")))||void 0===e?void 0:e.padding);this.listContainer.style.setProperty("--popup-width",h-2*o+"px")}}),100)),this.onInputChange=async t=>{this.inputValue=t.detail.value},this.onInputClick=()=>{var t,i;this.listOpen=this.openListOnClick?!this.listOpen:(null===(t=this.inputValue)||void 0===t?void 0:t.length)>=this.minCharacters,(null===(i=this.getFilteredItems())||void 0===i?void 0:i.length)||(this.listOpen=!1)},this.onInputTyping=async t=>{var i;const s=t.detail.value;!this.force&&!this.multiple&&this.selectedItems.size>0&&s!==this.getSelectedItemLabel()&&this.selectedItems.clear(),this.force||this.multiple||""!==s||(this.value=void 0),this.listOpen=String(s).length>=this.minCharacters&&(null===(i=this.getFilteredItems())||void 0===i?void 0:i.length)>0},this.onKeyDown=t=>{var i,s,e;const h=this.returnFilteredOrNonFiltered(),o=h.filter((t=>!this.selectedItems.has(t.id)));if(this.input.accessibleActiveDescendant=void 0,r(t))return t.preventDefault(),this.listOpen&&void 0!==this.activeItem&&h[this.activeItem]&&!this.selectedItems.has(h[this.activeItem].id)?this.multiple?this.addSelectedItem(h[this.activeItem].id,!0):this.updateSelectedItem(h[this.activeItem].id,!0):!this.multiple&&this.listOpen&&1===o.length&&o[0].name.toLowerCase()===this.input.value.toLowerCase()&&this.updateSelectedItem(o[0].id,!0),this.activeItem=void 0,void(this.listOpen=!1);if(l(t)||d(t))return this.listOpen&&t.preventDefault(),this.updateInputText(!0),this.activeItem=void 0,void(this.listOpen=!1);let n=this.activeItem;if(c(t))t.preventDefault(),n=this.activeItem-1;else if(u(t)){if((null!==(e=null===(s=null===(i=this.input)||void 0===i?void 0:i.value)||void 0===s?void 0:s.length)&&void 0!==e?e:0)<this.minCharacters)return;t.preventDefault(),n=this.listOpen?this.activeItem+1:this.activeItem,this.listOpen=!0}(u(t)||c(t))&&((n<0||!n)&&(n=0),n>=h.length&&(n=h.length-1),this.input.accessibleActiveDescendant=this.activeDescendantId,this.activeItem=n,this.scrollToActive())},this.processedItems=null,this.inputValue="",this.listOpen=!1,this.selectedItems=new Set,this.activeItem=void 0,this.accessibleLabelDefaults={en:{heading:"Select:",item:"{name}",itemFiltered:"{name}, {hiddenItems} filtered"},fi:{heading:"Valitse:",item:"{name}",itemFiltered:"{name}, {hiddenItems} suodatettu"},sv:{heading:"Välj:",item:"{name}",itemFiltered:"{name}, {hiddenItems} filtrerade"}},this.accessibleLabels=m(this.accessibleLabelDefaults,p()),this.label="",this.caption="",this.theme="",this.force=!1,this.multiple=!1,this.items=void 0,this.formatter=t=>t&&t.name?t.name:"",this.value=void 0,this.minCharacters=0,this.openListOnClick=!1,this.filterType="startsWith"}popupMenuOpenHandler(){this.listOpen?this.listContainer.show():this.listContainer.hide()}activeItemHandler(t){this.input.accessibleActiveDescendant=this.listOpen&&(t||0===t)?this.activeDescendantId:""}inputValueHandler(){setTimeout((async()=>{const t=await this.getSelectedItemLabel();""==this.input.value&&t&&(this.input.value="",this.value=void 0)}),200)}handleDocumentClick(t){t.composedPath().every((t=>t!==this.element))&&(this.updateInputText(!0),this.listOpen=!1)}async formatItem(t){return this.formatter(t)}processItems(){const t=[];if(this.processedItems=x(this.items),!Array.isArray(this.processedItems))return void console.error("DuetCombobox: Items should be an array");this.processedItems.length!==new Set([...this.processedItems]).size&&console.warn("DuetCombobox: Duplicate item values found in the list"),this.processedItems=this.processedItems.map(((i,s)=>("string"==typeof i&&(i={name:i,value:i}),i.id=void 0!==i.id?String(i.id):`${JSON.stringify(i.value)}-${i.name}`,t.includes(i.id)&&(console.warn("DuetCombobox: Duplicate item id found in the list, postfixed with index"),i.id=`${i.id}-${s}`),t.push(i.id),i)));const i=Array.from(this.selectedItems).filter((t=>!this.processedItems.find((i=>i.id===t))));i.length&&(this.multiple?i.forEach((t=>this.removeSelectedItem(t))):this.updateSelectedItem(i[0],!0))}processValue(){if(""!==this.value&&!this.value)return void this.selectedItems.clear();const t=Array.isArray(this.value)?this.value:[this.value],i=this.processedItems.filter((i=>t.includes(i.value))).map((t=>t.id));if(i.length!==this.selectedItems.size||!i.every((t=>this.selectedItems.has(t))))if(this.multiple)this.selectedItems.clear(),this.input.clearChips(),i.forEach((t=>this.addSelectedItem(t)));else{const t=this.processedItems.find((t=>t.value===this.value));this.updateSelectedItem(t.id)}}processListOpenChange(){this.openListOnClick&&(this.input.icon=this.listOpen?"action-arrow-up":"action-arrow-down"),this.input.accessibleExpanded=this.listOpen?"true":"false"}componentWillLoad(){o(this)}connectedCallback(){this.items&&this.processItems();const t=g(this.element);t.length?this.input=t[0]:(this.input=document.createElement("duet-input"),this.input.label=this.label,this.input.caption=this.caption,this.input.expand=!0,this.element.prepend(this.input)),this.input.chips=this.multiple,this.input.addEventListener("duetChange",this.onInputChange),this.input.addEventListener("duetInput",this.onInputTyping),this.input.addEventListener("click",this.onInputClick),this.input.role="combobox",this.input.accessibleExpanded=this.listOpen?"true":"false",this.input.accessibleAutocomplete="list",this.input.accessibleControls=this.listBoxId,this.input.id=this.inputId,this.element.addEventListener("keydown",this.onKeyDown),v(this,{prop:"accessibleLabels",defaults:"accessibleLabelDefaults"}),this.processListOpenChange()}disconnectedCallback(){this.input.removeEventListener("duetChange",this.onInputChange),this.input.removeEventListener("click",this.onInputClick),this.element.removeEventListener("keydown",this.onKeyDown),this.resizeObserver.disconnect(),b(this)}componentDidLoad(){this.resizeObserver.observe(this.input),this.processValue()}shouldListBeFiltered(){var t;if(!this.multiple&&this.selectedItems.size&&this.input.value===this.inputValue&&(null===(t=this.inputValue)||void 0===t?void 0:t.length)<this.minCharacters){const t=this.processedItems.find((t=>this.selectedItems.has(t.id)));return!(this.formatter(t).toLowerCase()===this.input.value.toLowerCase())}return!0}returnFilteredOrNonFiltered(){return this.processedItems?this.shouldListBeFiltered()?this.getFilteredItems():this.sortFilteredItems(this.processedItems):[]}emitChangeEvent(t){const i=this.processedItems.find((i=>i.id===t));this.duetChange.emit({item:i,value:this.value,component:"duet-combobox"})}updateMultipleValue(){this.value=this.processedItems.filter((t=>this.selectedItems.has(t.id))).map((t=>t.value)),this.input.value="",this.updateChips(),this.input.setFocus()}addSelectedItem(t,i){this.selectedItems.has(t)||(this.selectedItems.add(t),this.updateMultipleValue(),i&&this.emitChangeEvent(t))}removeSelectedItem(t,i){this.selectedItems.has(t)&&(this.selectedItems.delete(t),this.updateMultipleValue(),i&&this.emitChangeEvent(t))}async updateSelectedItem(t,i){this.selectedItems.clear(),this.selectedItems.add(t),this.value=this.processedItems.find((i=>i.id===t)).value,i&&this.emitChangeEvent(this.value&&t),await this.updateInputText()}async updateChips(){const t=Array.from(this.selectedItems),i=await this.input.getChips();t.forEach((async t=>{const i=this.processedItems.find((i=>i.id===t)),s=await this.formatItem(i);if(!await this.input.hasChip({value:`${t}`,text:s})){const i=document.createElement("duet-chip");i.variation="input",i.role="option",i.value=`${t}`,i.textContent=s,i.addEventListener("duetRemove",(t=>{this.removeSelectedItem(t.detail.value,!0)})),this.input.addChip(i)}})),i.forEach((i=>{t.includes(i.value)||i.remove()}))}async getSelectedItemLabel(){const t=this.processedItems.find((t=>this.selectedItems.has(t.id)));return t?await this.formatItem(t):""}async updateInputText(t=!1){if(t&&this.multiple)this.input.value="";else{if(t&&this.force){const t=this.returnFilteredOrNonFiltered();!this.multiple&&this.listOpen&&1===t.length&&t[0].name.toLowerCase()===this.input.value.toLowerCase()&&this.updateSelectedItem(t[0].id,!0),this.input.value=0===this.selectedItems.size?"":await this.getSelectedItemLabel()}!t&&this.selectedItems.size>0&&(this.input.value="",this.input.value=await this.getSelectedItemLabel(),this.input.scrollLeft=this.input.scrollWidth,await this.input.setFocus())}}onListClick(t,i){return t.preventDefault(),t.stopPropagation(),this.multiple?this.addSelectedItem(i.id,!0):this.updateSelectedItem(i.id,!0),this.activeItem=void 0,this.listOpen=!1,this.listOpen}scrollToActive(){const t=document.getElementById(`${this.activeDescendantId}`);t&&t.scrollIntoView({behavior:"smooth",block:"center"})}formatLabel(t,i,s,e){return t&&void 0!==e?(s===e?this.accessibleLabels.item:this.accessibleLabels.itemFiltered).replace("{name}",String(t.name)).replace("{current}",String(i+1)).replace("{total}",String(s)).replace("{hiddenItems}",String(e-s)):""}getFilteredItems(){const t=this.processedItems.filter((t=>{var i,s,e,h,o;return(null===(i=String(t.value))||void 0===i?void 0:i.toLowerCase()[this.filterType](null===(s=this.inputValue)||void 0===s?void 0:s.toLowerCase()))||(null===(e=String(t.name))||void 0===e?void 0:e.toLowerCase()[this.filterType](null===(h=this.inputValue)||void 0===h?void 0:h.toLowerCase()))||this.formatter(t).toLowerCase()[this.filterType](null===(o=this.inputValue)||void 0===o?void 0:o.toLowerCase())||this.selectedItems.has(t.id)})).filter((t=>{let i=!0;return this.multiple&&this.selectedItems.has(t.id)&&(i=!1),i}));return this.sortFilteredItems(t)}sortFilteredItems(t){return t.length>0&&t.filter((t=>this.selectedItems.has(t.id))).forEach((i=>{const s=t.indexOf(i);t.splice(s,1),t.unshift(i)})),t}render(){const i=this.returnFilteredOrNonFiltered();return t(e,{class:{"duet-combobox":!0,[`duet-theme-${this.theme}`]:!0}},t("slot",null),t("div",null,t("duet-popup-menu",{id:this.listBoxId,controller:this.input,ref:t=>this.listContainer=t,accessibleRole:"listbox",allowVerticalFlip:!1},t("div",{class:"combobox-menu-container"},this.listOpen&&i.map(((s,e)=>t(y,{id:this.activeDescendantId,item:s,activeDescendant:e===this.activeItem,selected:this.selectedItems.has(s.id),search:this.inputValue,clickHandler:t=>this.onListClick(t,s),label:this.formatLabel(s,e,i.length,this.processedItems.length),isAndroidDevice:this.isAndroidDevice}))),t("duet-spacer",{size:"x-small"})))))}get element(){return h(this)}static get watchers(){return{listOpen:["popupMenuOpenHandler","processListOpenChange"],activeItem:["activeItemHandler"],inputValue:["inputValueHandler"],items:["processItems"],value:["processValue"]}}};S.style='.sc-duet-combobox-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:inline-block;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";color:rgb(8, 42, 77)}.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(8, 42, 77);transition:none}.duet-theme-turva.sc-duet-combobox-h{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.sc-duet-combobox-h a.sc-duet-combobox{color:rgb(23, 28, 58)}.combobox-menu-container.sc-duet-combobox{width:var(--popup-width);max-height:200px}';export{S as duet_combobox}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import"./p-ecb2aca6.js";const o=()=>{globalThis.ds={log:()=>{},warn:()=>{},info:()=>{}}};export{o as g}