@duetds/components 10.1.1 → 10.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (455) hide show
  1. package/hydrate/index.js +325 -255
  2. package/hydrate/index.mjs +325 -255
  3. package/lib/cjs/{a11y-utils-B_EYQg_6.js → a11y-utils-DIgK57bg.js} +1 -1
  4. package/lib/cjs/{app-globals-BFWJwMVq.js → app-globals-CQh0dxkp.js} +1 -1
  5. package/lib/cjs/{common-strings-CC6Xpjb8.js → common-strings-DMaSb4Ld.js} +8 -1
  6. package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
  7. package/lib/cjs/duet-alert.cjs.entry.js +5 -5
  8. package/lib/cjs/duet-badge.cjs.entry.js +6 -6
  9. package/lib/cjs/duet-banner.cjs.entry.js +3 -3
  10. package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
  11. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
  12. package/lib/cjs/duet-button_2.cjs.entry.js +5 -5
  13. package/lib/cjs/duet-callout.cjs.entry.js +5 -5
  14. package/lib/cjs/duet-caption_4.cjs.entry.js +20 -14
  15. package/lib/cjs/duet-card.cjs.entry.js +3 -3
  16. package/lib/cjs/duet-checkbox.cjs.entry.js +19 -5
  17. package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
  18. package/lib/cjs/duet-chip.cjs.entry.js +4 -4
  19. package/lib/cjs/duet-choice_2.cjs.entry.js +13 -13
  20. package/lib/cjs/duet-collapsible.cjs.entry.js +5 -5
  21. package/lib/cjs/duet-combobox.cjs.entry.js +30 -9
  22. package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
  23. package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
  24. package/lib/cjs/duet-date-picker.cjs.entry.js +9 -9
  25. package/lib/cjs/duet-divider_2.cjs.entry.js +4 -4
  26. package/lib/cjs/duet-editable-table_3.cjs.entry.js +10 -10
  27. package/lib/cjs/duet-empty-state.cjs.entry.js +4 -4
  28. package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
  29. package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
  30. package/lib/cjs/duet-footer.cjs.entry.js +9 -9
  31. package/lib/cjs/duet-grid_2.cjs.entry.js +7 -6
  32. package/lib/cjs/duet-header_2.cjs.entry.js +5 -5
  33. package/lib/cjs/duet-hero.cjs.entry.js +10 -10
  34. package/lib/cjs/duet-icon.cjs.entry.js +5 -5
  35. package/lib/cjs/duet-indicator.cjs.entry.js +4 -4
  36. package/lib/cjs/duet-input_2.cjs.entry.js +12 -12
  37. package/lib/cjs/duet-layout.cjs.entry.js +7 -7
  38. package/lib/cjs/duet-list_2.cjs.entry.js +5 -5
  39. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
  40. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
  41. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
  42. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +8 -8
  43. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
  44. package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
  45. package/lib/cjs/duet-modal.cjs.entry.js +13 -13
  46. package/lib/cjs/duet-multiselect.cjs.entry.js +10 -10
  47. package/lib/cjs/duet-nav.cjs.entry.js +3 -3
  48. package/lib/cjs/duet-notification_2.cjs.entry.js +9 -9
  49. package/lib/cjs/duet-number-input.cjs.entry.js +9 -9
  50. package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
  51. package/lib/cjs/duet-page-heading.cjs.entry.js +4 -4
  52. package/lib/cjs/duet-pagination_2.cjs.entry.js +16 -16
  53. package/lib/cjs/duet-panel.cjs.entry.js +4 -4
  54. package/lib/cjs/duet-phone-input.cjs.entry.js +4 -4
  55. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +11 -11
  56. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  57. package/lib/cjs/duet-promo-card.cjs.entry.js +5 -5
  58. package/lib/cjs/duet-radio_2.cjs.entry.js +7 -7
  59. package/lib/cjs/duet-range-slider.cjs.entry.js +6 -6
  60. package/lib/cjs/duet-scrollable_3.cjs.entry.js +15 -15
  61. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  62. package/lib/cjs/duet-select.cjs.entry.js +10 -10
  63. package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
  64. package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
  65. package/lib/cjs/duet-share-chart.cjs.entry.js +6 -6
  66. package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
  67. package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
  68. package/lib/cjs/duet-slideout-link.cjs.entry.js +8 -8
  69. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
  70. package/lib/cjs/duet-slideout-panel.cjs.entry.js +11 -11
  71. package/lib/cjs/duet-slideout.cjs.entry.js +10 -10
  72. package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
  73. package/lib/cjs/duet-step_2.cjs.entry.js +7 -7
  74. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
  75. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
  76. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
  77. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
  78. package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
  79. package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
  80. package/lib/cjs/duet-toggle.cjs.entry.js +24 -7
  81. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
  82. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
  83. package/lib/cjs/duet-toolbar-item.cjs.entry.js +9 -9
  84. package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
  85. package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
  86. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +9 -9
  87. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
  88. package/lib/cjs/duet-tray.cjs.entry.js +5 -5
  89. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  90. package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
  91. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  92. package/lib/cjs/duet.cjs.js +3 -3
  93. package/lib/cjs/{errorcodes.utils-BiQq7F-O.js → errorcodes.utils-DflKGDer.js} +1 -1
  94. package/lib/cjs/{focus-utils-8IrILmeG.js → focus-utils-CsX9QzWh.js} +1 -1
  95. package/lib/cjs/{index-CwMzFaC2.js → index-CHPE0RRI.js} +1 -1
  96. package/lib/cjs/{label-Bw-qhJBs.js → label-Bk7Tl0vN.js} +1 -1
  97. package/lib/cjs/{language-utils-BLi7aaEv.js → language-utils-D7JgugVP.js} +1 -1
  98. package/lib/cjs/loader.cjs.js +3 -3
  99. package/lib/cjs/{slot-utils-l9-tZvM8.js → slot-utils-Cz6-0IYe.js} +1 -1
  100. package/lib/cjs/{themeable-component-DlxAauty.js → themeable-component-DYp2VYiJ.js} +1 -1
  101. package/lib/collection/common-strings.js +7 -1
  102. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  103. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  104. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  105. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  106. package/lib/collection/components/duet-checkbox/duet-checkbox.css +12 -3
  107. package/lib/collection/components/duet-checkbox/duet-checkbox.js +24 -2
  108. package/lib/collection/components/duet-chip/duet-chip.js +1 -1
  109. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  110. package/lib/collection/components/duet-choice/duet-choice.js +6 -6
  111. package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
  112. package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
  113. package/lib/collection/components/duet-combobox/duet-combobox.js +28 -6
  114. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  115. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  116. package/lib/collection/components/duet-date-picker/duet-date-picker.css +1 -1
  117. package/lib/collection/components/duet-date-picker/duet-date-picker.js +2 -2
  118. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  119. package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -2
  120. package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
  121. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  122. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  123. package/lib/collection/components/duet-footer/duet-footer.js +4 -4
  124. package/lib/collection/components/duet-grid/duet-grid.js +3 -2
  125. package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
  126. package/lib/collection/components/duet-heading/duet-heading.js +2 -2
  127. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  128. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  129. package/lib/collection/components/duet-indicator/duet-indicator.js +1 -1
  130. package/lib/collection/components/duet-input/duet-input.css +7 -7
  131. package/lib/collection/components/duet-input/duet-input.js +6 -6
  132. package/lib/collection/components/duet-layout/duet-layout.js +5 -5
  133. package/lib/collection/components/duet-link/duet-link.css +43 -8
  134. package/lib/collection/components/duet-link/duet-link.js +11 -5
  135. package/lib/collection/components/duet-list/duet-list.js +1 -1
  136. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  137. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  138. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -3
  139. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  140. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  141. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  142. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  143. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  144. package/lib/collection/components/duet-modal/duet-modal.js +7 -7
  145. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  146. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  147. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  148. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +3 -3
  149. package/lib/collection/components/duet-number-input/duet-number-input.css +13 -7
  150. package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
  151. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  152. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  153. package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
  154. package/lib/collection/components/duet-panel/duet-panel.js +2 -2
  155. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  156. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +3 -3
  157. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  158. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  159. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  160. package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
  161. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  162. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  163. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  164. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  165. package/lib/collection/components/duet-select/duet-select.css +10 -4
  166. package/lib/collection/components/duet-select/duet-select.js +5 -5
  167. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  168. package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
  169. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
  170. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  171. package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
  172. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  173. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  174. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  175. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  176. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  177. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  178. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  179. package/lib/collection/components/duet-step/duet-step.js +2 -2
  180. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  181. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  182. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  183. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  184. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  185. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  186. package/lib/collection/components/duet-tab/duet-tab.js +2 -2
  187. package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
  188. package/lib/collection/components/duet-table/duet-table.js +2 -2
  189. package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
  190. package/lib/collection/components/duet-toggle/duet-toggle.css +22 -9
  191. package/lib/collection/components/duet-toggle/duet-toggle.js +83 -2
  192. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  193. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  194. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  195. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  196. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  197. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
  198. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
  199. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  200. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  201. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  202. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  203. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  204. package/lib/duet/duet.esm.js +1 -1
  205. package/lib/duet/duet.esm.js.map +1 -0
  206. package/lib/duet/index.esm.js.map +1 -0
  207. package/lib/duet/{p-8ef9d397.entry.js → p-026b5d97.entry.js} +1 -1
  208. package/lib/duet/{p-8fb7d2ad.entry.js → p-0278421d.entry.js} +1 -1
  209. package/lib/duet/{p-be967aa3.entry.js → p-0ac52236.entry.js} +1 -1
  210. package/lib/duet/{p-35ab9df3.entry.js → p-0c0485ca.entry.js} +1 -1
  211. package/lib/duet/{p-b4405bb2.entry.js → p-0c4d3ef8.entry.js} +1 -1
  212. package/lib/duet/{p-23c8a3cf.entry.js → p-10593797.entry.js} +1 -1
  213. package/lib/duet/{p-5e312efa.entry.js → p-13423abb.entry.js} +1 -1
  214. package/lib/duet/{p-1a92ea28.entry.js → p-1674f94c.entry.js} +1 -1
  215. package/lib/duet/{p-6b6a8585.entry.js → p-16ef5016.entry.js} +1 -1
  216. package/lib/duet/{p-8ef3fe6f.entry.js → p-19f51a31.entry.js} +1 -1
  217. package/lib/duet/{p-d851fb45.entry.js → p-1a0890fa.entry.js} +1 -1
  218. package/lib/duet/{p-2459de04.entry.js → p-1b45ccdc.entry.js} +1 -1
  219. package/lib/duet/p-1b9bfe32.entry.js +4 -0
  220. package/lib/duet/{p-5ee97e54.entry.js → p-1dbbd855.entry.js} +1 -1
  221. package/lib/duet/{p-24e49455.entry.js → p-1dcde973.entry.js} +1 -1
  222. package/lib/duet/{p-a1bddbe0.entry.js → p-1f44c859.entry.js} +1 -1
  223. package/lib/duet/{p-c08a6b40.entry.js → p-1f6ea6df.entry.js} +1 -1
  224. package/lib/duet/{p-cd9c1ddc.entry.js → p-203ef386.entry.js} +1 -1
  225. package/lib/duet/{p-a94c2063.entry.js → p-22d59683.entry.js} +1 -1
  226. package/lib/duet/{p-8e105140.entry.js → p-24106c45.entry.js} +1 -1
  227. package/lib/duet/{p-af604e20.entry.js → p-2a8b5bfa.entry.js} +1 -1
  228. package/lib/duet/p-2d578570.entry.js +4 -0
  229. package/lib/duet/{p-0f15317c.entry.js → p-2e9897c7.entry.js} +1 -1
  230. package/lib/duet/{p-3caabda3.entry.js → p-31d16e95.entry.js} +1 -1
  231. package/lib/duet/{p-414306dc.entry.js → p-323fa45a.entry.js} +1 -1
  232. package/lib/duet/p-3434fb72.entry.js +4 -0
  233. package/lib/duet/{p-7cad4a7d.entry.js → p-35ea3b5a.entry.js} +1 -1
  234. package/lib/duet/{p-e08191e2.entry.js → p-3a42f2e8.entry.js} +1 -1
  235. package/lib/duet/{p-fcb7ab98.entry.js → p-48767e14.entry.js} +1 -1
  236. package/lib/duet/{p-47d33b6b.entry.js → p-519a52bc.entry.js} +1 -1
  237. package/lib/duet/{p-e0c9c534.entry.js → p-52980dc6.entry.js} +1 -1
  238. package/lib/duet/{p-20bfba9e.entry.js → p-55973c08.entry.js} +1 -1
  239. package/lib/duet/{p-e06f599b.entry.js → p-56bfa7b4.entry.js} +1 -1
  240. package/lib/duet/p-5be4e1b3.entry.js +4 -0
  241. package/lib/duet/{p-ab65780a.entry.js → p-5ded9cdd.entry.js} +1 -1
  242. package/lib/duet/{p-68bb7d28.entry.js → p-5f93c14a.entry.js} +1 -1
  243. package/lib/duet/{p-69c2989d.entry.js → p-6872f751.entry.js} +1 -1
  244. package/lib/duet/{p-1bf0b984.entry.js → p-6a223004.entry.js} +1 -1
  245. package/lib/duet/{p-a886ee0b.entry.js → p-6b20c695.entry.js} +1 -1
  246. package/lib/duet/{p-1bf130a0.entry.js → p-6c4ad8dd.entry.js} +1 -1
  247. package/lib/duet/{p-96334633.entry.js → p-71a993e9.entry.js} +1 -1
  248. package/lib/duet/p-77bd81a7.entry.js +4 -0
  249. package/lib/duet/{p-46fdb6a9.entry.js → p-78e28708.entry.js} +1 -1
  250. package/lib/duet/{p-f9c54d66.entry.js → p-7c27d54d.entry.js} +1 -1
  251. package/lib/duet/{p-999ff774.entry.js → p-7c5559aa.entry.js} +1 -1
  252. package/lib/duet/{p-f0c6161a.entry.js → p-7c71acff.entry.js} +1 -1
  253. package/lib/duet/p-8246aca5.entry.js +4 -0
  254. package/lib/duet/p-82bed3e4.entry.js +4 -0
  255. package/lib/duet/{p-5214be20.entry.js → p-83873c17.entry.js} +1 -1
  256. package/lib/duet/{p-fb4af30f.entry.js → p-879d2e6a.entry.js} +1 -1
  257. package/lib/duet/p-8RjiAqaE.js +4 -0
  258. package/lib/duet/{p-07b33d9a.entry.js → p-8d568b05.entry.js} +1 -1
  259. package/lib/duet/{p-64003bfb.entry.js → p-8f022fe4.entry.js} +1 -1
  260. package/lib/duet/{p-24c89cbd.entry.js → p-8f39b76a.entry.js} +1 -1
  261. package/lib/duet/{p-4b150620.entry.js → p-953910c3.entry.js} +1 -1
  262. package/lib/duet/{p-14c52ecc.entry.js → p-9705bdf2.entry.js} +1 -1
  263. package/lib/duet/p-9UeJiEXx.js.map +1 -0
  264. package/lib/duet/{p-4c8ff6a9.entry.js → p-9ad3562b.entry.js} +1 -1
  265. package/lib/duet/{p-c96cf3d3.entry.js → p-9dfb1602.entry.js} +1 -1
  266. package/lib/duet/p-BBhgW58t.js.map +1 -0
  267. package/lib/duet/{p-CPZ9Rh_9.js → p-BEyqDEKQ.js} +1 -1
  268. package/lib/duet/p-BK12s3nI.js.map +1 -0
  269. package/lib/duet/{p-Cz75kJ4Z.js → p-BOvQtVMD.js} +1 -1
  270. package/lib/duet/p-BW6JNddK.js.map +1 -0
  271. package/lib/duet/p-BcPp3KKD.js.map +1 -0
  272. package/lib/duet/p-Bd_IFUlc.js.map +1 -0
  273. package/lib/duet/p-BfhNMsMk.js.map +1 -0
  274. package/lib/duet/p-C4eu9Z7w.js.map +1 -0
  275. package/lib/duet/p-CGf6zkuF.js.map +1 -0
  276. package/lib/duet/p-CIGqx4Cc.js.map +1 -0
  277. package/lib/duet/p-CLDy7YaM.js.map +1 -0
  278. package/lib/duet/p-CV1dC6Oy.js.map +1 -0
  279. package/lib/duet/p-CaF2pz74.js.map +1 -0
  280. package/lib/duet/p-Cfr_DJqU.js.map +1 -0
  281. package/lib/duet/p-CgIXOlgn.js.map +1 -0
  282. package/lib/duet/p-CooAqTCj.js.map +1 -0
  283. package/lib/duet/{p-D2reh8UV.js → p-CsGZzH1g.js} +1 -1
  284. package/lib/duet/p-D0ZPQviq.js.map +1 -0
  285. package/lib/duet/p-D2eXyGqW.js.map +1 -0
  286. package/lib/duet/p-DAU-6bv0.js.map +1 -0
  287. package/lib/duet/{p-0d9FRr_b.js → p-DBab1eZF.js} +1 -1
  288. package/lib/duet/p-DE6tkjJW.js.map +1 -0
  289. package/lib/duet/{p-D7O8dU_Q.js → p-DRpZDk0L.js} +1 -1
  290. package/lib/duet/p-DWe9P8ry.js.map +1 -0
  291. package/lib/duet/p-DYO3k3VG.js.map +1 -0
  292. package/lib/duet/p-DajeMr0n.js.map +1 -0
  293. package/lib/duet/p-DbVclHyj.js +4 -0
  294. package/lib/duet/p-DifBJmpD.js.map +1 -0
  295. package/lib/duet/p-Dj_oRxdS.js +4 -0
  296. package/lib/duet/p-DxESMgwA.js.map +1 -0
  297. package/lib/duet/p-EQ8o9Cpg.js.map +1 -0
  298. package/lib/duet/{p-ae11d834.entry.js → p-a318f737.entry.js} +1 -1
  299. package/lib/duet/{p-0be1cbcc.entry.js → p-a4088637.entry.js} +1 -1
  300. package/lib/duet/{p-3937103e.entry.js → p-a64c60c9.entry.js} +1 -1
  301. package/lib/duet/{p-9c176eae.entry.js → p-a711aace.entry.js} +1 -1
  302. package/lib/duet/{p-46594b20.entry.js → p-a833d24e.entry.js} +1 -1
  303. package/lib/duet/p-aa73d232.entry.js +4 -0
  304. package/lib/duet/{p-e29699ea.entry.js → p-ab3f7d47.entry.js} +1 -1
  305. package/lib/duet/{p-87fdb2d1.entry.js → p-ae149a1c.entry.js} +1 -1
  306. package/lib/duet/p-af08e085.entry.js +4 -0
  307. package/lib/duet/p-afd58bd7.entry.js +4 -0
  308. package/lib/duet/{p-bafb269a.entry.js → p-afe51b83.entry.js} +1 -1
  309. package/lib/duet/{p-6a5089bf.entry.js → p-b051a253.entry.js} +1 -1
  310. package/lib/duet/{p-ec572857.entry.js → p-b108c836.entry.js} +1 -1
  311. package/lib/duet/p-b519650f.entry.js +4 -0
  312. package/lib/duet/p-b6b7126b.entry.js +4 -0
  313. package/lib/duet/{p-e3116610.entry.js → p-ba84bc30.entry.js} +1 -1
  314. package/lib/duet/{p-49f9404b.entry.js → p-be63e6cf.entry.js} +1 -1
  315. package/lib/duet/{p-c49521b1.entry.js → p-c0617b94.entry.js} +1 -1
  316. package/lib/duet/p-c5756278.entry.js +4 -0
  317. package/lib/duet/p-c7b7a009.entry.js +4 -0
  318. package/lib/duet/p-d49b80d5.entry.js +4 -0
  319. package/lib/duet/{p-3115c01d.entry.js → p-d6c7db11.entry.js} +1 -1
  320. package/lib/duet/p-df13a49e.entry.js +4 -0
  321. package/lib/duet/{p-53a8fc76.entry.js → p-dfd8dd6f.entry.js} +1 -1
  322. package/lib/duet/{p-6f1841f2.entry.js → p-e639afce.entry.js} +1 -1
  323. package/lib/duet/{p-c5f27149.entry.js → p-ef9c311e.entry.js} +1 -1
  324. package/lib/duet/{p-ad94e5b7.entry.js → p-f018de8a.entry.js} +1 -1
  325. package/lib/duet/{p-e1eff77c.entry.js → p-f592f327.entry.js} +1 -1
  326. package/lib/duet/{p-65eed68b.entry.js → p-fa0b596e.entry.js} +1 -1
  327. package/lib/duet/p-lTKl7i2u.js.map +1 -0
  328. package/lib/duet/{p-Be4oMqD2.js → p-nAcNUKp2.js} +1 -1
  329. package/lib/duet/p-vGm6JOUa.js.map +1 -0
  330. package/lib/duet/{p-B01I4GZJ.js → p-yNCV1XSS.js} +1 -1
  331. package/lib/esm/{a11y-utils-BPzUw6wf.js → a11y-utils-DaSX4sm4.js} +1 -1
  332. package/lib/esm/{app-globals-SsQsu12e.js → app-globals-Hj3SA8Ai.js} +1 -1
  333. package/lib/esm/{common-strings-CVPfl9fc.js → common-strings-8RjiAqaE.js} +8 -2
  334. package/lib/esm/duet-action-button.entry.js +3 -3
  335. package/lib/esm/duet-alert.entry.js +5 -5
  336. package/lib/esm/duet-badge.entry.js +6 -6
  337. package/lib/esm/duet-banner.entry.js +3 -3
  338. package/lib/esm/duet-breadcrumb.entry.js +6 -6
  339. package/lib/esm/duet-breadcrumbs.entry.js +5 -5
  340. package/lib/esm/duet-button_2.entry.js +5 -5
  341. package/lib/esm/duet-callout.entry.js +5 -5
  342. package/lib/esm/duet-caption_4.entry.js +20 -14
  343. package/lib/esm/duet-card.entry.js +3 -3
  344. package/lib/esm/duet-checkbox.entry.js +19 -5
  345. package/lib/esm/duet-checkmark.entry.js +4 -4
  346. package/lib/esm/duet-chip.entry.js +4 -4
  347. package/lib/esm/duet-choice_2.entry.js +13 -13
  348. package/lib/esm/duet-collapsible.entry.js +5 -5
  349. package/lib/esm/duet-combobox.entry.js +30 -9
  350. package/lib/esm/duet-contact-card.entry.js +5 -5
  351. package/lib/esm/duet-cookie-consent.entry.js +3 -3
  352. package/lib/esm/duet-date-picker.entry.js +9 -9
  353. package/lib/esm/duet-divider_2.entry.js +4 -4
  354. package/lib/esm/duet-editable-table_3.entry.js +10 -10
  355. package/lib/esm/duet-empty-state.entry.js +4 -4
  356. package/lib/esm/duet-fieldset.entry.js +6 -6
  357. package/lib/esm/duet-file-chooser.entry.js +3 -3
  358. package/lib/esm/duet-footer.entry.js +9 -9
  359. package/lib/esm/duet-grid_2.entry.js +7 -6
  360. package/lib/esm/duet-header_2.entry.js +5 -5
  361. package/lib/esm/duet-hero.entry.js +10 -10
  362. package/lib/esm/duet-icon.entry.js +5 -5
  363. package/lib/esm/duet-indicator.entry.js +4 -4
  364. package/lib/esm/duet-input_2.entry.js +12 -12
  365. package/lib/esm/duet-layout.entry.js +7 -7
  366. package/lib/esm/duet-list_2.entry.js +5 -5
  367. package/lib/esm/duet-menu-bar-button.entry.js +4 -4
  368. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
  369. package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
  370. package/lib/esm/duet-menu-bar-item.entry.js +8 -8
  371. package/lib/esm/duet-menu-bar-link.entry.js +4 -4
  372. package/lib/esm/duet-menu-bar.entry.js +6 -6
  373. package/lib/esm/duet-modal.entry.js +13 -13
  374. package/lib/esm/duet-multiselect.entry.js +10 -10
  375. package/lib/esm/duet-nav.entry.js +3 -3
  376. package/lib/esm/duet-notification_2.entry.js +9 -9
  377. package/lib/esm/duet-number-input.entry.js +9 -9
  378. package/lib/esm/duet-overlay.entry.js +3 -3
  379. package/lib/esm/duet-page-heading.entry.js +4 -4
  380. package/lib/esm/duet-pagination_2.entry.js +16 -16
  381. package/lib/esm/duet-panel.entry.js +4 -4
  382. package/lib/esm/duet-phone-input.entry.js +4 -4
  383. package/lib/esm/duet-popup-menu_2.entry.js +11 -11
  384. package/lib/esm/duet-progress.entry.js +3 -3
  385. package/lib/esm/duet-promo-card.entry.js +5 -5
  386. package/lib/esm/duet-radio_2.entry.js +7 -7
  387. package/lib/esm/duet-range-slider.entry.js +6 -6
  388. package/lib/esm/duet-scrollable_3.entry.js +15 -15
  389. package/lib/esm/duet-section-layout.entry.js +4 -4
  390. package/lib/esm/duet-select.entry.js +10 -10
  391. package/lib/esm/duet-shaped-image.entry.js +4 -4
  392. package/lib/esm/duet-share-chart-item.entry.js +2 -2
  393. package/lib/esm/duet-share-chart.entry.js +6 -6
  394. package/lib/esm/duet-show-more.entry.js +5 -5
  395. package/lib/esm/duet-slideout-lang.entry.js +4 -4
  396. package/lib/esm/duet-slideout-link.entry.js +8 -8
  397. package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
  398. package/lib/esm/duet-slideout-panel.entry.js +11 -11
  399. package/lib/esm/duet-slideout.entry.js +10 -10
  400. package/lib/esm/duet-status-icon.entry.js +3 -3
  401. package/lib/esm/duet-step_2.entry.js +7 -7
  402. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
  403. package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
  404. package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
  405. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  406. package/lib/esm/duet-submenu-bar.entry.js +7 -7
  407. package/lib/esm/duet-textarea.entry.js +8 -8
  408. package/lib/esm/duet-toggle.entry.js +24 -7
  409. package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
  410. package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
  411. package/lib/esm/duet-toolbar-item.entry.js +9 -9
  412. package/lib/esm/duet-toolbar-link.entry.js +4 -4
  413. package/lib/esm/duet-toolbar.entry.js +4 -4
  414. package/lib/esm/duet-tooltip-button_2.entry.js +9 -9
  415. package/lib/esm/duet-tooltip.entry.js +4 -4
  416. package/lib/esm/duet-tray.entry.js +5 -5
  417. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  418. package/lib/esm/duet-upload-item.entry.js +6 -6
  419. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  420. package/lib/esm/duet.js +4 -4
  421. package/lib/esm/{errorcodes.utils-BSrGsmkE.js → errorcodes.utils-AyF-6hZu.js} +1 -1
  422. package/lib/esm/{focus-utils-pVdst0px.js → focus-utils-CCWbE_kr.js} +1 -1
  423. package/lib/esm/{index-CPZ9Rh_9.js → index-BEyqDEKQ.js} +1 -1
  424. package/lib/esm/{label-DOI1kYHr.js → label-C58dWzTQ.js} +1 -1
  425. package/lib/esm/{language-utils-D2LZ-dAb.js → language-utils-BXhYaE0m.js} +1 -1
  426. package/lib/esm/loader.js +4 -4
  427. package/lib/esm/{slot-utils-Plu0scZN.js → slot-utils-BI9kmtvd.js} +1 -1
  428. package/lib/esm/{themeable-component-CyP7TR8I.js → themeable-component-BAHIh10B.js} +1 -1
  429. package/lib/types/common-strings.d.ts +1 -0
  430. package/lib/types/common-types.d.ts +8 -1
  431. package/lib/types/components/duet-checkbox/duet-checkbox.d.ts +6 -0
  432. package/lib/types/components/duet-combobox/duet-combobox.d.ts +3 -1
  433. package/lib/types/components/duet-link/duet-link.d.ts +3 -1
  434. package/lib/types/components/duet-toggle/duet-toggle.d.ts +16 -0
  435. package/lib/types/components.d.ts +28 -2
  436. package/package.json +5 -5
  437. package/lib/duet/p-0557d0e3.entry.js +0 -4
  438. package/lib/duet/p-0596ed8f.entry.js +0 -4
  439. package/lib/duet/p-12037a2a.entry.js +0 -4
  440. package/lib/duet/p-22ecf342.entry.js +0 -4
  441. package/lib/duet/p-24bd3f6b.entry.js +0 -4
  442. package/lib/duet/p-38e2f4db.entry.js +0 -4
  443. package/lib/duet/p-4eb8634c.entry.js +0 -4
  444. package/lib/duet/p-5c8619fc.entry.js +0 -4
  445. package/lib/duet/p-760530e9.entry.js +0 -4
  446. package/lib/duet/p-8b3be0f7.entry.js +0 -4
  447. package/lib/duet/p-8d0727d6.entry.js +0 -4
  448. package/lib/duet/p-91ce1d13.entry.js +0 -4
  449. package/lib/duet/p-BBJluIMx.js +0 -4
  450. package/lib/duet/p-BiXEBkqx.js +0 -4
  451. package/lib/duet/p-CVPfl9fc.js +0 -4
  452. package/lib/duet/p-a79d0152.entry.js +0 -4
  453. package/lib/duet/p-b90b0d7a.entry.js +0 -4
  454. package/lib/duet/p-d16bdf01.entry.js +0 -4
  455. package/lib/duet/p-e51c28bc.entry.js +0 -4
@@ -247,17 +247,17 @@ export class DuetTextarea {
247
247
  */
248
248
  render() {
249
249
  const identifier = this.identifier || this.textareaId;
250
- return (h(Host, { key: '6b4a9a29634b3b4eebba44aa1329c044ad4627e0', class: {
250
+ return (h(Host, { key: '48030acc05f6f8415df8753151991eb3c83ae370', class: {
251
251
  "duet-m-0": this.margin === "none",
252
252
  "duet-has-counter": this.counter && !this.error,
253
253
  "duet-expand": this.expand,
254
- } }, h("div", { key: 'fc6fff054e8c331eaa64eb81ea38fec26ccf2623', class: {
254
+ } }, h("div", { key: 'e8cac00d84bfbef67bb1f30037bb986905fc2d94', class: {
255
255
  "duet-textarea-container": true,
256
256
  "duet-theme-turva": this.theme === "turva",
257
257
  "duet-label-hidden": this.labelHidden,
258
258
  "duet-input-top-caption-shown": this.isCaptionVisible,
259
259
  "has-error": !!this.error,
260
- } }, h(DuetInternalLabel, { key: '72a397fea607b1bf78eb044d2edfe908b531c196', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { key: 'df27e380533776bbd55e322ee553a4e7307a9c25', direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), h("slot", { key: '0ad23242a566add6660b8d0d05f0945f2881c736', name: "tooltip" }), this.caption && (h("duet-caption", { key: '2140852f453a515fdc400664083170df2c5d25b8', id: this.topCaptionId, size: "medium", theme: this.theme === "turva" ? "turva" : "default" }, this.caption)), h("div", { key: '3d8086ad2a9120553f7d9348a12f122513743f9e', class: "duet-textarea-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { key: '41d5d3fbe9b850ae576456b65c38e70d7b54d1c4', id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)), h("textarea", { key: '958b5b54572eeeb9a14cccc84768c94ac8934751', onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown, ref: input => (this.nativeInput = input), class: { "duet-textarea": true, disabled: this.disabled }, value: this.value, disabled: this.disabled, "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, placeholder: this.placeholder, spellcheck: "false", required: this.required, rows: this.rows, minlength: this.minlength, maxlength: this.maxlength, role: this.role, name: this.name, id: identifier })), h("duet-grid", { key: '2eeb3e5cc00bb5323ace41bc47c8704065ed9cf8', alignment: "stretch" }, h("duet-grid-item", { key: 'df795c73d5e1d02b95780b00a3109a08af5265d1', margin: "none", fill: true }, h("div", { key: '0ca123aee248bdefecb272d01744496e14fca789', class: "duet-textarea-help duet-textarea-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: 'fab26ce8771f27cc8bd7df1b32f027f7e1a77f5c' }, this.error))), h("duet-grid-item", { key: 'af06a4534964dea7090defa29dcae06c463f987a', margin: "none", class: "duet-character-count-caption" }, this.counter && h(CharacterCount, { key: '9feddf09bed0a8dba0e3ec415e02a895e6cf20b7', theme: this.theme, value: this.value, maxlength: this.maxlength }))), this.counter && this.maxlength && (h("duet-visually-hidden", { key: '923f821ec7eea31d6538bec8e9e80d5bed1a8e85', id: this.characterCountId, class: "visually-hidden-counter" }, this.visuallyHiddenCounterText)))));
260
+ } }, h(DuetInternalLabel, { key: '2f25117dc9dfce852022a09efb8a1b0c2117bb0c', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { key: 'b5c614194a8699068a2b9c9156cc2a1955d8ae8c', direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), h("slot", { key: '0a72de201a51d22df2604f3fa1a5fba77f9de897', name: "tooltip" }), this.caption && (h("duet-caption", { key: 'fc1baf023f9c4b81131de5244bfb73c925ab265d', id: this.topCaptionId, size: "medium", theme: this.theme === "turva" ? "turva" : "default" }, this.caption)), h("div", { key: '3395893df5eacc499f082eade175e6bb0ce0512c', class: "duet-textarea-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { key: '6a71fad928ba647c069c05439e86a5e6eefd4e40', id: this.topCaptionPlaceholderId, class: "duet-textarea-placeholder", size: "small" }, this.placeholder)), h("textarea", { key: '28c7559a63890bb80d6503e3028ea430f24c739a', onInput: this.handleInput, onChange: this.handleChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onKeyDown: this.handleKeyDown, ref: input => (this.nativeInput = input), class: { "duet-textarea": true, disabled: this.disabled }, value: this.value, disabled: this.disabled, "aria-labelledby": this.accessibleLabelledBy ? `${this.labelId} ${this.accessibleLabelledBy}` : this.labelId, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, placeholder: this.placeholder, spellcheck: "false", required: this.required, rows: this.rows, minlength: this.minlength, maxlength: this.maxlength, role: this.role, name: this.name, id: identifier })), h("duet-grid", { key: '66ddcb0507cf754111843d5aa871c80ae8d7207e', alignment: "stretch" }, h("duet-grid-item", { key: '79edd18dd19f6500b2c471e960c5fefc1b9492be', margin: "none", fill: true }, h("div", { key: '38d0f75afeefcd4ba8afb2f87802a64885fbc0ea', class: "duet-textarea-help duet-textarea-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: 'a03fdd80d3a82221abbdeeff8c368d8208efd2b1' }, this.error))), h("duet-grid-item", { key: 'deb6e76efba3354828dd21acd8a362c91c3d2e4f', margin: "none", class: "duet-character-count-caption" }, this.counter && h(CharacterCount, { key: '282fe11b68a1bdd7c63b8071cfd37a3e33086bbc', theme: this.theme, value: this.value, maxlength: this.maxlength }))), this.counter && this.maxlength && (h("duet-visually-hidden", { key: '06b481e31a4dad73a6538a943274f898410be541', id: this.characterCountId, class: "visually-hidden-counter" }, this.visuallyHiddenCounterText)))));
261
261
  }
262
262
  static get is() { return "duet-textarea"; }
263
263
  static get encapsulation() { return "shadow"; }
@@ -96,6 +96,7 @@
96
96
  width: 100%;
97
97
  vertical-align: bottom;
98
98
  -webkit-tap-highlight-color: transparent;
99
+ cursor: pointer;
99
100
  }
100
101
  :host:last-child, :host:last-of-type {
101
102
  margin-right: 0 !important;
@@ -108,9 +109,12 @@
108
109
  margin: 0 !important;
109
110
  }
110
111
 
111
- duet-label {
112
- display: block !important;
113
- width: 100% !important;
112
+ :host(.duet-toggle-is-disabled) {
113
+ cursor: not-allowed;
114
+ }
115
+
116
+ :host(.duet-toggle-is-loading) {
117
+ cursor: wait;
114
118
  }
115
119
 
116
120
  .duet-side-label {
@@ -118,9 +122,6 @@ duet-label {
118
122
  gap: 12px;
119
123
  align-items: center;
120
124
  }
121
- .duet-side-label duet-label {
122
- width: auto !important;
123
- }
124
125
 
125
126
  .duet-reverse-label {
126
127
  flex-direction: row-reverse;
@@ -158,9 +159,6 @@ duet-label {
158
159
  background-color: rgb(255, 255, 255);
159
160
  box-shadow: -1px 0 2px #660619;
160
161
  }
161
- .duet-switch input:disabled + .duet-slider {
162
- cursor: default;
163
- }
164
162
  .duet-switch input:disabled + .duet-slider::before {
165
163
  box-shadow: none;
166
164
  }
@@ -218,6 +216,15 @@ duet-label {
218
216
  box-shadow: 1px 0 2px 0 #5d6266;
219
217
  transition: 300ms ease;
220
218
  }
219
+ .duet-toggle-is-loading .duet-slider::before {
220
+ transform: translateX(10px) !important;
221
+ }
222
+ .duet-toggle-is-loading .duet-slider {
223
+ cursor: wait;
224
+ }
225
+ .duet-toggle-is-disabled .duet-slider {
226
+ cursor: not-allowed;
227
+ }
221
228
  .duet-theme-turva .duet-slider {
222
229
  background-color: rgb(143, 147, 158);
223
230
  }
@@ -226,6 +233,12 @@ duet-label {
226
233
  box-shadow: 1px 0 2px 0 #00334d;
227
234
  }
228
235
 
236
+ duet-spinner {
237
+ margin: 2px;
238
+ cursor: wait;
239
+ transform: translate(-2px, -2px) scale(80%);
240
+ }
241
+
229
242
  .duet-label-hidden .duet-internal-label {
230
243
  position: absolute !important;
231
244
  top: 0;
@@ -3,6 +3,8 @@
3
3
  */
4
4
  import { h, Host } from "@stencil/core";
5
5
  import { inheritGlobalTheme } from "../../common";
6
+ import { DuetStringsCompleteDefaults, DuetStringsLoadingDefaults } from "../../common-strings";
7
+ import { getLanguage } from "../../utils/language-utils";
6
8
  import { DuetInternalLabel } from "../../common/label";
7
9
  import { createID } from "../../utils/create-id";
8
10
  import { subscribeTabbingChange, unsubscribeTabbingChange } from "../../utils/keyboard-utils";
@@ -34,6 +36,10 @@ export class DuetToggle {
34
36
  * Aria description the button
35
37
  */
36
38
  this.accessibleDescription = undefined;
39
+ /**
40
+ * Loading state of the toggle
41
+ */
42
+ this.loading = false;
37
43
  /**
38
44
  * Label for the toggle.
39
45
  */
@@ -71,6 +77,9 @@ export class DuetToggle {
71
77
  this.checked = !this.checked;
72
78
  };
73
79
  }
80
+ setLoadingState() {
81
+ this.loadingComplete = !this.loading;
82
+ }
74
83
  checkedChanged(isChecked) {
75
84
  this.duetChange.emit({
76
85
  checked: isChecked,
@@ -109,13 +118,19 @@ export class DuetToggle {
109
118
  */
110
119
  render() {
111
120
  const identifier = this.identifier || this.toggleId;
112
- return (h(Host, { key: '5946ee783a8f51ba38e184fd382e570706bb4abf', onClick: this.disabled ? undefined : this.onClick, class: { "duet-m-0": this.margin === "none" } }, h("div", { key: '36018f42f2af48de650eb6bf67fe521fa5e496d1', class: {
121
+ return (h(Host, { key: '12ad6e6c8bae45cd96993f311d30c6d02f9e694a', onClick: this.disabled || this.loading ? undefined : this.onClick, class: {
122
+ "duet-m-0": this.margin === "none",
123
+ "duet-toggle-is-disabled": this.disabled,
124
+ "duet-toggle-is-loading": this.loading,
125
+ } }, h("div", { key: '0e6d8fff7a161badbca1e6ddd3f737a9e427f67b', class: {
113
126
  "duet-toggle": true,
114
127
  "duet-theme-turva": this.theme === "turva",
115
128
  "duet-side-label": this.labelPosition !== "top",
116
129
  "duet-reverse-label": this.labelPosition === "right",
117
130
  "duet-label-hidden": this.labelHidden,
118
- } }, h(DuetInternalLabel, { key: '145e23905cef93b9c6855962e957545cf839c33f', theme: this.theme, color: this.labelColor, weight: this.labelWeight, for: identifier, margin: this.labelPosition === "top" ? "auto" : "none" }, this.label), h("label", { key: 'a69515fc5b92895d9a128696f9208c3b4233b258', class: "duet-switch" }, h("input", { key: '3b46c6969fd1018a05684d4cbbbc24421154b08d', 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: identifier, role: this.role, name: this.name, checked: this.checked, required: this.required, disabled: this.disabled, ref: input => (this.nativeInput = input) }), h("div", { key: 'c658e6fdfe43b4c1f6e18ca9da3ea0411357ac30', class: "duet-slider" })))));
131
+ "duet-toggle-is-disabled": this.disabled,
132
+ "duet-toggle-is-loading": this.loading,
133
+ } }, h(DuetInternalLabel, { key: '9332567db03213ffaa47ff809c83df430d5b1241', theme: this.theme, color: this.labelColor, weight: this.labelWeight, for: identifier, margin: this.labelPosition === "top" ? "auto" : "none" }, this.label), h("label", { key: '2889a221df7d22b8186a4e2a292df66ea9796628', class: "duet-switch" }, h("input", { key: 'ca4bbc240033d01dd7add7cb672b01bd3f0270fa', 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: identifier, role: this.role, name: this.name, checked: this.checked, required: this.required, disabled: this.disabled || this.loading, ref: input => (this.nativeInput = input) }), h("div", { key: '2b8e0241c308d29fbe2221339330435d9de10005', class: "duet-slider" }), this.loading && h("duet-spinner", { key: 'eac8158c7199fba2c9e0d889a123d17602287078', color: "primary" }))), this.loading && (h("duet-visually-hidden", { key: 'f17522d306a05c84cad96f4e578023e2474d0e75', "aria-live": "polite" }, this.accessibleLabelLoading || DuetStringsLoadingDefaults[getLanguage()])), this.loadingComplete && (h("duet-visually-hidden", { key: '78095e04eab17679c9ef68ba25d84b027a4e89a8', "aria-live": "polite" }, this.accessibleLabelComplete || DuetStringsCompleteDefaults[getLanguage()]))));
119
134
  }
120
135
  static get is() { return "duet-toggle"; }
121
136
  static get encapsulation() { return "shadow"; }
@@ -319,6 +334,64 @@ export class DuetToggle {
319
334
  "reflect": false,
320
335
  "defaultValue": "undefined"
321
336
  },
337
+ "accessibleLabelLoading": {
338
+ "type": "string",
339
+ "attribute": "accessible-label-loading",
340
+ "mutable": false,
341
+ "complexType": {
342
+ "original": "string",
343
+ "resolved": "string",
344
+ "references": {}
345
+ },
346
+ "required": false,
347
+ "optional": true,
348
+ "docs": {
349
+ "tags": [],
350
+ "text": "Adds accessible announcement for toggle in \"loading\" state\nIf not set, default strings are used: fi: \"Ladataan\", sv: \"Lastning\", en: \"Loading\""
351
+ },
352
+ "getter": false,
353
+ "setter": false,
354
+ "reflect": false
355
+ },
356
+ "accessibleLabelComplete": {
357
+ "type": "string",
358
+ "attribute": "accessible-label-complete",
359
+ "mutable": false,
360
+ "complexType": {
361
+ "original": "string",
362
+ "resolved": "string",
363
+ "references": {}
364
+ },
365
+ "required": false,
366
+ "optional": true,
367
+ "docs": {
368
+ "tags": [],
369
+ "text": "Adds accessible announcement for toggle when \"loading\" state ends.\nIf not set, default strings are used: fi: \"Valmis\", sv: \"F\u00E4rdig\", en: \"Complete\""
370
+ },
371
+ "getter": false,
372
+ "setter": false,
373
+ "reflect": false
374
+ },
375
+ "loading": {
376
+ "type": "boolean",
377
+ "attribute": "loading",
378
+ "mutable": false,
379
+ "complexType": {
380
+ "original": "boolean",
381
+ "resolved": "boolean",
382
+ "references": {}
383
+ },
384
+ "required": false,
385
+ "optional": false,
386
+ "docs": {
387
+ "tags": [],
388
+ "text": "Loading state of the toggle"
389
+ },
390
+ "getter": false,
391
+ "setter": false,
392
+ "reflect": false,
393
+ "defaultValue": "false"
394
+ },
322
395
  "label": {
323
396
  "type": "string",
324
397
  "attribute": "label",
@@ -561,6 +634,11 @@ export class DuetToggle {
561
634
  }
562
635
  };
563
636
  }
637
+ static get states() {
638
+ return {
639
+ "loadingComplete": {}
640
+ };
641
+ }
564
642
  static get events() {
565
643
  return [{
566
644
  "method": "duetChange",
@@ -617,6 +695,9 @@ export class DuetToggle {
617
695
  static get elementRef() { return "element"; }
618
696
  static get watchers() {
619
697
  return [{
698
+ "propName": "loading",
699
+ "methodName": "setLoadingState"
700
+ }, {
620
701
  "propName": "checked",
621
702
  "methodName": "checkedChanged"
622
703
  }];
@@ -36,11 +36,11 @@ export class DuetToolbar {
36
36
  : this.variation === "secondary"
37
37
  ? "secondary"
38
38
  : "default";
39
- return (h(Host, { key: '2434866ef0b95d7b07a2248edc89a4f473d9ecc6' }, h("nav", { key: '9938a3cd11e5230013027cb613c8aa81f95e5bf7', class: {
39
+ return (h(Host, { key: 'c860be4ffbc7d94876629c2039b767516ae67069' }, h("nav", { key: '93355e73bf35ed26d242a3e08140140f09d4cbcf', class: {
40
40
  "duet-toolbar": true,
41
41
  "duet-theme-turva": this.theme === "turva",
42
42
  [variation]: true,
43
- }, "aria-label": this.accessibleLabel }, h("div", { key: '9c915e9ffe872ec9b253bf9c7b7ca58ac5c39bee', class: "container" }, h("div", { key: '7a1ce3f543e9b908638de889a1b6b8270f73d830', class: "list", role: "list" }, h("slot", { key: '396f255c2694dbff16ae2f2584be49e4f5d4fdf5', name: "left" })), h("div", { key: '975122519f64947d2fc01d8a5c9fa63c3052097a', class: "list", role: "list" }, h("slot", { key: '8d070c2c7e5a168d7c426df35a4b742a95696383', name: "right" }))))));
43
+ }, "aria-label": this.accessibleLabel }, h("div", { key: 'a50a6a5ec9b49d85edcbc10a275264e95a6ad93b', class: "container" }, h("div", { key: 'd3187fa520b84678f46876238269b9e3f48aced4', class: "list", role: "list" }, h("slot", { key: 'd0a092e1c45ac428b73d549b94ac932e3f4e871e', name: "left" })), h("div", { key: '90c02bddb8937b6e48648a2b758211ab88ae4b00', class: "list", role: "list" }, h("slot", { key: '8d66429a3b7a5d4ca4c3a570677c5fca14915108', name: "right" }))))));
44
44
  }
45
45
  static get is() { return "duet-toolbar"; }
46
46
  static get encapsulation() { return "shadow"; }
@@ -64,18 +64,18 @@ export class DuetToolbarDropdown {
64
64
  itemsAlign = this.element.parentElement.getAttribute("slot") === "left" ? "right" : "left";
65
65
  }
66
66
  const variation = this.variation === "negative" ? "negative" : "white";
67
- return (h(Host, { key: '7af8e188b72d1dd79f3445c543736d3c18d694e4', role: "listitem" }, h("div", { key: '128c0412da716469ad79877951bf5b81f7987515', class: {
67
+ return (h(Host, { key: '22441fcb5b8138475d82dab2645eb4be7acc7683', role: "listitem" }, h("div", { key: 'ddda27f016e058d656ebef316dbe040559949c88', class: {
68
68
  "duet-toolbar-dropdown": true,
69
69
  "duet-theme-turva": this.theme === "turva",
70
70
  [itemsAlign]: true,
71
71
  [variation]: true,
72
- } }, h("button", { key: 'efc3cbf2c159c3b8a528e8ee58312bc9546b561e', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel, id: "button", type: "button", class: {
72
+ } }, h("button", { key: 'ecdfa65704fb809858dd451e2cabd81eb6362def', ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel, id: "button", type: "button", class: {
73
73
  active: this.active,
74
74
  open: this.open,
75
- }, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { key: '502ded69ce168a1de15bd937aa8c1995f2b5df88', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("span", { key: '8c4851a8137ab50f524c9d24618f612834f38669', class: "label" }, h("slot", { key: 'eebb0b4107c2060e48b334f35cff1458fc7b4d7c', name: "label" }), h("duet-icon", { key: '961bcc314c446a4b85ae1259b67d5566a0dd0656', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { key: '843d1e28eb1a821021ff4e6c96269bb437980de7', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
75
+ }, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { key: '094d722d70d59a46406f1e0eef3b23a2d2bfa58f', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("span", { key: '574c62534b8ee3098ed1bcd1a68bb8ac21712a1e', class: "label" }, h("slot", { key: '702645793ce1d7acc23ab3d81ca340c34d68f05c', name: "label" }), h("duet-icon", { key: '26e38570a74cd2d6997029053bb462449e4542e3', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { key: '5e778fe7b21fea29300f437f18970c419fc312e5', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
76
76
  items: true,
77
77
  hidden: !this.open,
78
- } }, h("slot", { key: '60c2a9af5229e10192605b60f2aaf8d65e136d42' })))));
78
+ } }, h("slot", { key: 'a8694deb60b5d8fb5b9131cec991471ef0020a83' })))));
79
79
  }
80
80
  static get is() { return "duet-toolbar-dropdown"; }
81
81
  static get encapsulation() { return "shadow"; }
@@ -45,11 +45,11 @@ export class DuetToolbarDropdownLink {
45
45
  * Always the last one in the class.
46
46
  */
47
47
  render() {
48
- return (h(Host, { key: '34a5369d2806e4474bbb32400d5563fddcc3590a' }, h("a", { key: 'b16d10c8be40329d90136c486d568fb9511524d7', class: {
48
+ return (h(Host, { key: '8e41d151e3313b5891dff17b78353776a85a8f07' }, h("a", { key: '1dbfa3d41901af78023b0121f0b5d4699c88a190', class: {
49
49
  "duet-toolbar-dropdown-link": true,
50
50
  "duet-theme-turva": this.theme === "turva",
51
51
  active: this.active,
52
- }, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "link menuitem", "aria-label": this.accessibleLabel, "aria-current": this.active ? "true" : "false", onKeyUp: e => this.handleEscape(e) }, this.icon && h("duet-icon", { key: 'cce54b8721ad1d017e32ac331ebcc54d53fbd88c', name: this.icon, size: "x-small", margin: "none" }), h("span", { key: '515f4c68a3917e3403e59f938fc2a2ba296e1f63', class: "label" }, h("slot", { key: '43e7eddd00dc07766e9842a4070f09e908021551' })), this.active && (h("duet-icon", { key: 'e69da314290045e523944a6d3554158627151d48', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
52
+ }, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "link menuitem", "aria-label": this.accessibleLabel, "aria-current": this.active ? "true" : "false", onKeyUp: e => this.handleEscape(e) }, this.icon && h("duet-icon", { key: 'e33514dc4358840cbc8520514b16e519a56458ea', name: this.icon, size: "x-small", margin: "none" }), h("span", { key: '3c1420a627929ed17d384db1762e55918ca055f6', class: "label" }, h("slot", { key: '73cd382bf5e2f19e5d1c6e2e64d0322021f19635' })), this.active && (h("duet-icon", { key: '22214495161d78c4f620a84a03089f018d377400', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor" })))));
53
53
  }
54
54
  static get is() { return "duet-toolbar-dropdown-link"; }
55
55
  static get encapsulation() { return "shadow"; }
@@ -86,17 +86,17 @@ export class DuetToolbarItem {
86
86
  : this.variation === "secondary"
87
87
  ? "secondary"
88
88
  : "default";
89
- return (h(Host, { key: 'f36d0228f8546f61bd7f1a21fc94bbfacb229270', role: "listitem" }, this.badge && h("duet-indicator", { key: 'a46dc8ea7f76a4f8c76664dc4e1ad56941028a10', variation: "change" }), h(TagName, { key: 'e488df937c34dadf25be1f2beacfe29161ba73cf', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
89
+ return (h(Host, { key: '82a17ce8483bcaa16bdef27b50238898b81a7549', role: "listitem" }, this.badge && h("duet-indicator", { key: 'd1a27a07f28a95232cde24a20f05a0a2d7f61745', variation: "change" }), h(TagName, { key: 'c2192a7a73d5f09fc1acf9d13c7f2f2d26af7def', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
90
90
  "duet-toolbar-item": true,
91
91
  "duet-theme-turva": this.theme === "turva",
92
92
  active: this.active,
93
93
  [variation]: true,
94
- }, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("div", { key: 'fb792acb4d635caf2dbe6d6b34eb7ca0257c6425', class: "duet-toolbar-icon" }, h("duet-icon", { key: '7aeb14377fab6bbba397bdcb85942bc7f9026f99', size: "x-small", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" }), this.badge && h("div", { key: 'f2a6ed7704a7d21782c32fe02f1d768203a0e543', class: "duet-toolbar-badge" }))), h("slot", { key: 'c5f8d0d4644d68d9ae8bae97f3b26d9cb7ff2693' }), (this.trailingIcon || (this.url && this.external)) && (h("div", { key: '1258c07b9515853adcc3461d186240ba86fdc491', class: "duet-toolbar-icon" }, h("duet-icon", { key: '3472d1724fb3d148dd2ac58a964db4ab2ae7908e', class: {
94
+ }, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("div", { key: '00b85b5398cc6a21478840d79a11fa91270d74c0', class: "duet-toolbar-icon" }, h("duet-icon", { key: '73ffe104fcc9af56100dbc8f863e207efb93a2aa', size: "x-small", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" }), this.badge && h("div", { key: '4d185a66ab6fdf842f0d8c967fcb621fcd30e4d8', class: "duet-toolbar-badge" }))), h("slot", { key: '9fc239303a5fdb7931d47ecbb57649f0650c2fa4' }), (this.trailingIcon || (this.url && this.external)) && (h("div", { key: '4643254add55b63662d8c133c4c235110f82f2d7', class: "duet-toolbar-icon" }, h("duet-icon", { key: 'af3c48ea2d30ddb9f7569626d49df896e6be8206', class: {
95
95
  "trailing-icon": !!this.trailingIcon,
96
96
  "trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
97
97
  "external-icon": !!(this.url && this.external),
98
98
  rotate: this.trailingIcon === "action-arrow-down-small" && this.accessibleExpanded,
99
- }, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? newWindowIcon.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && h("div", { key: 'df9aa0697ed176678be4f45596c3276da1218a33', class: "duet-toolbar-badge" }))))));
99
+ }, theme: this.theme, name: this.trailingIcon ? this.trailingIcon : this.url && this.external ? newWindowIcon.title : "", margin: "none", size: "auto", color: "currentColor" }), this.badge && this.trailingIcon !== "action-arrow-down-small" && h("div", { key: '9b26ddf0fce82536ea49fec8fcfa2973ae732e84', class: "duet-toolbar-badge" }))))));
100
100
  }
101
101
  static get is() { return "duet-toolbar-item"; }
102
102
  static get encapsulation() { return "shadow"; }
@@ -38,12 +38,12 @@ export class DuetToolbarLink {
38
38
  */
39
39
  render() {
40
40
  const variation = this.variation === "negative" ? "negative" : "white";
41
- return (h(Host, { key: '37bc6a6543039418aa1450349f23f7eba45adadb', role: "listitem" }, h("a", { key: '55cc4a44d00c2d228ab14686063417d471beec5d', class: {
41
+ return (h(Host, { key: '82d0a3759f48e1d3770e078ace177b7024958e6b', role: "listitem" }, h("a", { key: '3865f0bcb98452a4b3f68e0242ceb7f0927dd4ad', class: {
42
42
  "duet-toolbar-link": true,
43
43
  "duet-theme-turva": this.theme === "turva",
44
44
  active: this.active,
45
45
  [variation]: true,
46
- }, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '363fec506c3668d762b5a706b720f4ab8efb0bb5', size: "x-small", name: this.icon, margin: "none", theme: this.theme, color: "currentColor" })), h("slot", { key: '086cbb4a926a01fcee0ce4d7ca417ad031c60110' }))));
46
+ }, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '09e4f28e3bca743b155330a0df9400bf47c51f9c', size: "x-small", name: this.icon, margin: "none", theme: this.theme, color: "currentColor" })), h("slot", { key: '68c25000344101d59cd7102c51b072636137fd62' }))));
47
47
  }
48
48
  static get is() { return "duet-toolbar-link"; }
49
49
  static get encapsulation() { return "shadow"; }
@@ -36,13 +36,13 @@ export class DuetTooltipButton {
36
36
  * Always the last one in the class.
37
37
  */
38
38
  render() {
39
- const visuallyHidden = h("duet-visually-hidden", { key: 'bf8e82beb39bca3f67c6ffcdbaf684671f551ffa' }, this.accessibleLabel);
40
- return (h(Host, { key: 'c014d004ab6a355f122447e806b5c12f62aba277' }, h("button", { key: 'eda0bd6c55287d8ac393c2af3f65cbb910cd8c50', ref: el => (this.buttonElement = el), "aria-controls": this.tooltipId, "aria-expanded": this.active ? "true" : "false", type: "button", class: {
39
+ const visuallyHidden = h("duet-visually-hidden", { key: 'f839514d25ea6f0be10ff17007bc5598c0674f61' }, this.accessibleLabel);
40
+ return (h(Host, { key: '1184ee05def105c059edfaabbb51f19a0ff25ad0' }, h("button", { key: 'b31a9e19755ee98f2504e9aa6345f3e96cd2672e', ref: el => (this.buttonElement = el), "aria-controls": this.tooltipId, "aria-expanded": this.active ? "true" : "false", type: "button", class: {
41
41
  "duet-tooltip-button": true,
42
42
  "duet-tooltip-button-has-label": !!this.label,
43
43
  "duet-theme-turva": this.theme === "turva",
44
44
  "duet-tooltip-button-negative": this.negative,
45
- } }, h("svg", { key: 'f6d4082627cb5a653bdd3668cc899bb885d204a1', "aria-hidden": "true", role: "img", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '21df01e868e6f304a33a50d4ac2442d6f43376aa', d: "m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z" }), h("circle", { key: 'ba4e4c5cb1bf9f5e91e5ab8746485ca140b9a597', cx: "11.625", cy: "7.125", r: "1.125" }), h("path", { key: '0a3e24ec139b2442be22ebc85c663c891a050c08', d: "m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z" })), this.label ? (h("span", { class: "duet-tooltip-label" }, this.label, visuallyHidden)) : (visuallyHidden))));
45
+ } }, h("svg", { key: '28d46d3d9005cc1a147a740f84ff0fba3b250b34', "aria-hidden": "true", role: "img", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '742e3a51a9b20bedea4334e3fcc1e2a3517e8342', d: "m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z" }), h("circle", { key: '5af82ccdef41b720dbf5fbf75c63793a6d15bc2b', cx: "11.625", cy: "7.125", r: "1.125" }), h("path", { key: '30aec776b7b26838c552073174643773da4db6b8', d: "m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z" })), this.label ? (h("span", { class: "duet-tooltip-label" }, this.label, visuallyHidden)) : (visuallyHidden))));
46
46
  }
47
47
  static get is() { return "duet-tooltip-button"; }
48
48
  static get encapsulation() { return "shadow"; }
@@ -53,14 +53,14 @@ export class DuetTooltipPopup {
53
53
  this.contentEl.focus();
54
54
  }
55
55
  render() {
56
- return (h(Host, { key: '63f303082985a668ae51759122ae462ae25404e0' }, h("div", { key: 'e3da6a6995872c70fb5d690ea87cf240240a2d0d', class: {
56
+ return (h(Host, { key: '3c8d28cef7325f7f9a37c42323e2703197a46b4c' }, h("div", { key: '758460093b178a0bf27b146f95b079f25da46279', class: {
57
57
  "duet-tooltip": true,
58
58
  "duet-theme-turva": this.theme === "turva",
59
59
  "duet-tooltip-active": this.active === true,
60
- } }, h(FocusGuard, { key: '428ef9ad1157017747e93d3b0f6b45e6dd4d8854', moveFocusTo: this.buttonEl }), h("div", { key: 'cf4af07ba0054be6658c5724c7552854b3471472', ref: element => (this.contentEl = element), class: {
60
+ } }, h(FocusGuard, { key: 'a380f2eae0bbaa67867cbaa7851e8fdb91e725e3', moveFocusTo: this.buttonEl }), h("div", { key: '93547c2941da1e4bf5f11d4e927ab0a898faadb8', ref: element => (this.contentEl = element), class: {
61
61
  "duet-tooltip-content-area": true,
62
62
  "duet-theme-turva": this.theme === "turva",
63
- }, tabindex: -1, id: this.tooltipId }, h("slot", { key: '3d21605221e8f16c59a2a62790dfce1a9cd15ea5' })), h("div", { key: 'e2e7ae6376f8dd497ef19ff673f22b699f8a55e6', ref: element => (this.arrowEl = element), class: { arrow: true, [this.placement]: true }, style: this.arrowStyles }, h("div", { key: '0bd6b8b42c5e1b2b6eaf89c19a5ad2a968f3e541', class: { "arrow-container": true, [this.placement]: true } })), h("button", { key: '1b7be53d18b09050af7fc192f65c2e9e01ec62a8', type: "button", class: "duet-tooltip-close", onClick: this.handleCloseClick, ref: el => (this.buttonEl = el) }, h("duet-icon", { key: '91636953a64d83fc88e888dab06b1ca482f47dd4', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xxx-small" }), h("duet-visually-hidden", { key: '487a4c4b37a1891f07f203bb5cf22f8dc999c8e5' }, this.accessibleCloseLabel)), h(FocusGuard, { key: 'cd18c3c009967eca235de7d7d5e9f7208692bb56', moveFocusTo: this.contentEl }))));
63
+ }, tabindex: -1, id: this.tooltipId }, h("slot", { key: 'e7d05bdad7849e242c18429e7694606d034931f5' })), h("div", { key: 'b41cf5f06f034fad1455f5dd20cf40828be2535c', ref: element => (this.arrowEl = element), class: { arrow: true, [this.placement]: true }, style: this.arrowStyles }, h("div", { key: '67b9bd2303a7c04a44d12c110b8a675b8c55f526', class: { "arrow-container": true, [this.placement]: true } })), h("button", { key: '140b64666484c9cd541f10b4aa8a3c786dc0e13f', type: "button", class: "duet-tooltip-close", onClick: this.handleCloseClick, ref: el => (this.buttonEl = el) }, h("duet-icon", { key: '7cdb146d795acaa65561d690e3286ce03e932684', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xxx-small" }), h("duet-visually-hidden", { key: 'bb523f67e60aa14b2f404a6e9ae8d6079360adf4' }, this.accessibleCloseLabel)), h(FocusGuard, { key: 'c7dfc301f8b422a6722ceb11e1978306227bce52', moveFocusTo: this.contentEl }))));
64
64
  }
65
65
  static get is() { return "duet-tooltip-popup"; }
66
66
  static get encapsulation() { return "shadow"; }
@@ -129,14 +129,14 @@ export class DuetTray {
129
129
  * Always the last one in the class.
130
130
  */
131
131
  render() {
132
- return (h("div", { key: 'f214ce1bc33434f910d47ad3eb6c32f9def079a6', class: {
132
+ return (h("div", { key: '9d5fc8800023764518de215eb610e8d45ab86e2b', class: {
133
133
  "duet-tray": true,
134
134
  "duet-tray-is-active": this.active,
135
135
  "duet-tray-is-hidden": this.hiddenState,
136
136
  "duet-tray-is-responsive": this.responsive,
137
137
  "duet-theme-turva": this.theme === "turva",
138
138
  "duet-tray-is-expandable": this.hasAdditionalContent,
139
- } }, h("div", { key: '4b233933831bb971fdfcbcfeb1a45a24376c9334', class: "duet-tray-default-content", role: "status" }, h("slot", { key: 'dd4e32bc8ac1287203ae396fe8c21184971ed452' })), this.hasAdditionalContent && (h(Fragment, { key: '978f4eac8618d6e6806c2b949e61555881739314' }, h("button", { key: '733c5973d36830c6c93d80e74d943f89d6cc02ea', "aria-expanded": this.expanded ? "true" : "false", "aria-controls": this.expandableId, onClick: ev => this.toggleExpandable(ev), class: { "duet-tray-button": true, "duet-tray-is-expanded": this.expanded } }, h("duet-icon", { key: '84843a2d3b1481545f27f6dd15854e7382f712ea', name: "action-arrow-down", size: "small", color: "currentColor", margin: "none" }), h("duet-visually-hidden", { key: 'c071fa18c128c620dd838dd8a0d6fce553bb60aa' }, this.expanded ? this.accessibleCloseLabel : this.accessibleOpenLabel)), h("div", { key: '85ae38a4a6b17d8acec9bbd7948eba44ed6bf28c', id: this.expandableId, class: { "duet-tray-expandable": true, active: this.expanded } }, h("div", { key: '3cf4e3889f982c47287b962430c62596aad7f81c', class: "duet-tray-expandable-content" }, h("slot", { key: 'ea85e6c58ed79bc61d885f859d296ec9a6a590d3', name: "additional" })))))));
139
+ } }, h("div", { key: 'd52a0e2f9d54d671a5840ac8039e6f7197021de6', class: "duet-tray-default-content", role: "status" }, h("slot", { key: 'aae51b2629d00e82ff54d429dfa65d922391c017' })), this.hasAdditionalContent && (h(Fragment, { key: 'f039ce601fc5bba7cc18da4b74ddae8531839c33' }, h("button", { key: 'c9c444d39b541b567efdd63c629a39d891a83dda', "aria-expanded": this.expanded ? "true" : "false", "aria-controls": this.expandableId, onClick: ev => this.toggleExpandable(ev), class: { "duet-tray-button": true, "duet-tray-is-expanded": this.expanded } }, h("duet-icon", { key: '3311dd9edddb29cd4eff813b50e7d9998934f6d5', name: "action-arrow-down", size: "small", color: "currentColor", margin: "none" }), h("duet-visually-hidden", { key: '8758967c602734c8843f9a3bb31e4847a64d6257' }, this.expanded ? this.accessibleCloseLabel : this.accessibleOpenLabel)), h("div", { key: '82a72aaa64ba7459397290078267177fff26d2be', id: this.expandableId, class: { "duet-tray-expandable": true, active: this.expanded } }, h("div", { key: 'b7a7af3aeeeb43966f018fdd457388b0571ade0a', class: "duet-tray-expandable-content" }, h("slot", { key: '527312ba646745f4a4deaad914cf9a1df640a9f2', name: "additional" })))))));
140
140
  }
141
141
  static get is() { return "duet-tray"; }
142
142
  static get encapsulation() { return "shadow"; }
@@ -953,10 +953,10 @@ export class DuetUpload {
953
953
  this.externalUploadButton.accessibleLabel = `${this.externalUploadButton.innerText}. ${caption}`;
954
954
  }
955
955
  // @ts-ignore
956
- return (h(Host, { key: '855e27e55645747625669bf080e6f65423b9bbf0', class: { "duet-m-0": this.margin === "none" } }, h("duet-fieldset", { key: '89d6b1b88260ccb7ffa2f4a3130fdf74d904e048', "label-heading-level": this.headerHeadingLevel, "label-hidden": this.hideHeader, label: this.label }, h("slot", { key: '10b9cdc44bd94871f538a9299ea6252f4375a864', name: "header" }), !this.files.size && (h("duet-empty-state", { key: '924905b1aafa76175b93f12dd6e7d7ac8ac5b5e3', id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, h("duet-paragraph", { key: 'f744c2afdb520cd0e69a15c0a942f6ecd8e30b75', margin: "none" }, this.fileListEmpty))), !!this.files.size && h("slot", { key: 'da55dafcb732e24b895185995040decfe40382c6', name: "fileheader" }), !!this.files.size && (h("duet-upload-aria-status", { key: '199e78733f262f857124540bbd055e7c6cbcaf6a', invalid: this.getFilesAsArray().invalid.length, valid: this.getFilesAsArray().valid.length, inprogress: this.filesInProgress.size, total: this.files.size, statusMessageLabel: this.internalStatusMessageLabel })), !!this.files.size && this.renderUploadedItems(), !!this.files.size && h("slot", { key: 'd6327694548a1ee39188af3935c67d0a6eaead79', name: "filefooter" }), h("slot", { key: '718e1e5d1f7041d2d596ada75a717942b74999f6', name: "uploadfooter" }), this.captionOnBottom && (h("duet-caption", { key: 'd15f3fd09b07de11dc1f725bc9ee344889b6445f', margin: "none", size: "small" }, h("div", { key: '1e4e1c3a29338fa3339cd2de701ba3c776c1166a', class: "upload-bottom-caption" }, caption))), h("slot", { key: '90f1e8de4c8359df2b8dded1bf5211857ce48a79', name: "afterfooter" }), !this.hideButton && (h(Fragment, { key: '431fb04536068eefdf974fc34f89f56e712674c9' }, h("duet-spacer", { key: 'c98d3f3e0f06d17b1b86ab40486a663ef8c6a75e', size: "large" }), h("duet-button", { key: '1f057848bdacb5e69ef63e2bfdc81e216271f455', id: this.buttonId, onClick: this.startUpload, "accessible-controls": identifier, disabled: this.fileMaxReached, "accessible-label": this.accessibleButtonLabel || `${this.buttonLabel}. ${caption}`, "accessible-owns": identifier, size: "small", variation: "secondary", fixed: true, icon: "action-add-circle", part: this.identifier ? `${this.identifier}-button-upload` : "duet-upload-button-upload" }, this.buttonLabel))), (this.fileMaxReached ||
956
+ return (h(Host, { key: '027dcff01c8c5aef8445a0ed996aa5ad3e854b5e', class: { "duet-m-0": this.margin === "none" } }, h("duet-fieldset", { key: '47ed56bd728ba7c100e5d68dd71f727b6e6b2a4d', "label-heading-level": this.headerHeadingLevel, "label-hidden": this.hideHeader, label: this.label }, h("slot", { key: '63328b6f03549224f711b858cbb5e95665bbdef9', name: "header" }), !this.files.size && (h("duet-empty-state", { key: '88492085957485c18c6ba40b767b87c89ff89fd2', id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, h("duet-paragraph", { key: '2cbe2581b60800f93dafe93e63c67d9ac826737c', margin: "none" }, this.fileListEmpty))), !!this.files.size && h("slot", { key: '2bf2901abf2934c09cfeca8514ddfec09f48e82a', name: "fileheader" }), !!this.files.size && (h("duet-upload-aria-status", { key: '2ac21565dbd47cfbf9954b03e4404c018871c85c', invalid: this.getFilesAsArray().invalid.length, valid: this.getFilesAsArray().valid.length, inprogress: this.filesInProgress.size, total: this.files.size, statusMessageLabel: this.internalStatusMessageLabel })), !!this.files.size && this.renderUploadedItems(), !!this.files.size && h("slot", { key: '7eb58ca2a63237ee9d22f4ce8136c7bf4bd90f41', name: "filefooter" }), h("slot", { key: '36bc35eb74e40102333469dadda4ac75a77ebd90', name: "uploadfooter" }), this.captionOnBottom && (h("duet-caption", { key: 'c6465f63ef97ab6cb78af308da6c4c2528b911e0', margin: "none", size: "small" }, h("div", { key: 'd189b328248cf862a920d1e542a18546b0b76b94', class: "upload-bottom-caption" }, caption))), h("slot", { key: '87c92c6cac9b662315a12218e848a54b74094cec', name: "afterfooter" }), !this.hideButton && (h(Fragment, { key: '89ba989869f8286e58f01704ef5339ab23106761' }, h("duet-spacer", { key: '5c4dc126f197421e5c62edf556f9ef967df4cf89', size: "large" }), h("duet-button", { key: '67c4e90266831664dbd7aae7fb1792460013cee3', id: this.buttonId, onClick: this.startUpload, "accessible-controls": identifier, disabled: this.fileMaxReached, "accessible-label": this.accessibleButtonLabel || `${this.buttonLabel}. ${caption}`, "accessible-owns": identifier, size: "small", variation: "secondary", fixed: true, icon: "action-add-circle", part: this.identifier ? `${this.identifier}-button-upload` : "duet-upload-button-upload" }, this.buttonLabel))), (this.fileMaxReached ||
957
957
  this.bytesMaxReached ||
958
958
  this.filesToUploadExceedsLimit ||
959
- this.filesToUploadTotalSizeIsAboveMax) && (h(Fragment, { key: '8169162805d7ec3a093344e09a4bd9241c1b9c58' }, h("duet-spacer", { key: '0f6500a4ada6c4b3c73f6524bf224ee1d79f0ae6', size: "medium" }), h("duet-alert", { key: '8bbc63eb777fa98ff0f797d970d66835ac6155a5', part: this.identifier ? `${this.identifier}-error-notification` : "duet-upload-error-notification" }, this.fileMaxReached && getI18nError("duet-upload-301", this.errorCodes), this.bytesMaxReached && getI18nError("duet-upload-202", this.errorCodes), this.filesToUploadExceedsLimit && getI18nError("duet-upload-302", this.errorCodes), this.filesToUploadTotalSizeIsAboveMax && getI18nError("duet-upload-203", this.errorCodes)))), h("duet-visually-hidden", { key: '5fb70459ca757cc24041ce6e01414165ba6497b5', "aria-hidden": "true" }, h("input", { key: '808b15c23e12cf691f85e48e1a03106409b81565', ref: input => {
959
+ this.filesToUploadTotalSizeIsAboveMax) && (h(Fragment, { key: '2984ff475257e2ed17b964aa6113e6592809996a' }, h("duet-spacer", { key: '3400a7c832dceb6f04c6a1efc9f69bc764004cc7', size: "medium" }), h("duet-alert", { key: '22bb6896cec80f0468dd34bb2ff29d20ccb474a9', part: this.identifier ? `${this.identifier}-error-notification` : "duet-upload-error-notification" }, this.fileMaxReached && getI18nError("duet-upload-301", this.errorCodes), this.bytesMaxReached && getI18nError("duet-upload-202", this.errorCodes), this.filesToUploadExceedsLimit && getI18nError("duet-upload-302", this.errorCodes), this.filesToUploadTotalSizeIsAboveMax && getI18nError("duet-upload-203", this.errorCodes)))), h("duet-visually-hidden", { key: 'f6871858e8e2e13839f9898cf340951616c81595', "aria-hidden": "true" }, h("input", { key: 'faa902cc6425f28c15c89a0f95c1c7ce69ec8b6b', ref: input => {
960
960
  this.nativeInput = input;
961
961
  }, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
962
962
  "duet-upload": true,
@@ -85,7 +85,7 @@ export class DuetUploadAriaStatus {
85
85
  * Always the last one in the class.
86
86
  */
87
87
  render() {
88
- return (h(Host, { key: 'dfba0ccef69bd34b3c4f8980caa95375ed480f83', role: "status", "aria-live": "assertive", "aria-atomic": "true", "aria-relevant": "all" }, h("duet-visually-hidden", { key: '20bd47d50fbc2097aae0656ffb367299284ff441' }, this.statusMessage)));
88
+ return (h(Host, { key: '5cf7965d65a20a104085bde4788a4b7a044b7eed', role: "status", "aria-live": "assertive", "aria-atomic": "true", "aria-relevant": "all" }, h("duet-visually-hidden", { key: 'fe28885c561bd1884856c733ae6f34f2b84873c7' }, this.statusMessage)));
89
89
  }
90
90
  static get is() { return "duet-upload-aria-status"; }
91
91
  static get encapsulation() { return "shadow"; }
@@ -73,9 +73,9 @@ export class DuetUploadItem {
73
73
  const { uid, meta, item } = this.data;
74
74
  const Badges = meta && meta.badges ? (h("span", null, meta.badges.map(badgeText => (h("duet-badge", { color: "primary" }, badgeText))))) : undefined;
75
75
  const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${item.name}`;
76
- return (h("div", { key: 'af4b480a7c50c90ebf35c2744a0c6d301c026ee9', class: {
76
+ return (h("div", { key: '77bb336f85e5157b02e275554ec058cd783a6f58', class: {
77
77
  "upload-item-row": true,
78
- } }, this.showCategory && (h("div", { key: '4717379f9f4b5848066dd29975972f19b46e2ca2', class: "item-categories" }, h("duet-heading", { key: '629de4c001a31d3ac9e509f4d8c4e48453b861bb', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.categoryLabel)), Badges)), h("div", { key: '0bab4d7664d6f2032dac1ea95b2b608297ab4d2a', class: { "item-name": true, "no-category": !this.showCategory } }, !!this.label && (h("duet-heading", { key: '65d2a44a4b4b3353766658557242ad53c357236e', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.label))), this.getFileNameLine()), h("div", { key: '5e5cce5f36a34f4b24c21a1055874ba9bc59493b', class: "item-actions" }, this.actions.map(actionItem => {
78
+ } }, this.showCategory && (h("div", { key: '1511526cfa7a8a3c7ffa039c761f0518c2de8f07', class: "item-categories" }, h("duet-heading", { key: '8190b64ad02a4cf3ad5d50fba2dd29175c91f2cb', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.categoryLabel)), Badges)), h("div", { key: '9a72d26ea9b6ac13f9f1edca9faab7c4ddd86474', class: { "item-name": true, "no-category": !this.showCategory } }, !!this.label && (h("duet-heading", { key: '463a1611352d71956e7a4264ca9bd238333a71f9', class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(this.label))), this.getFileNameLine()), h("div", { key: 'cb864f51d8d622526be69d3a34c32ee0b8722312', class: "item-actions" }, this.actions.map(actionItem => {
79
79
  return (h("duet-action-button", { actionMeta: Object.assign({}, meta || {}), actionId: uid || null, actionName: actionItem.name, theme: this.theme, iconName: actionItem.icon, iconColor: actionItem.color, iconSize: actionItem.size, background: actionItem.background, "accessible-label": `${actionDescription} ${getLocaleString(actionItem.label)} `, accessibleTitle: this.getActionButtonTitle(actionItem), ref: button => (this.actionButton = button) }));
80
80
  }))));
81
81
  }
@@ -8,7 +8,7 @@ export class DuetVisuallyHidden {
8
8
  * Always the last one in the class.
9
9
  */
10
10
  render() {
11
- return (h(Host, { key: '0b6d7c8ffd99088d9679558cf45fd682f17754b8', class: "duet-visually-hidden" }, h("slot", { key: 'a1fd4a31404091a50c989a4ccbe6ea9b8233fa73' })));
11
+ return (h(Host, { key: '24d3d4f9d5f7c38bb5f173d6fcb4ed6eb9c74510', class: "duet-visually-hidden" }, h("slot", { key: 'f6acbedb718f5416d46b82450ff03d8a3416ffc5' })));
12
12
  }
13
13
  static get is() { return "duet-visually-hidden"; }
14
14
  static get encapsulation() { return "shadow"; }