@duetds/components 10.1.0 → 10.2.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 (438) hide show
  1. package/hydrate/index.js +342 -265
  2. package/hydrate/index.mjs +342 -265
  3. package/lib/cjs/{a11y-utils-DzwEPbds.js → a11y-utils-Dt4L3QkG.js} +1 -1
  4. package/lib/cjs/{app-globals-BtFYkwDf.js → app-globals-1gECxmAH.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 +5 -5
  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 +5 -5
  10. package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
  11. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
  12. package/lib/cjs/duet-button_2.cjs.entry.js +7 -7
  13. package/lib/cjs/duet-callout.cjs.entry.js +5 -5
  14. package/lib/cjs/duet-caption_4.cjs.entry.js +22 -16
  15. package/lib/cjs/duet-card.cjs.entry.js +5 -5
  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 +6 -6
  21. package/lib/cjs/duet-combobox.cjs.entry.js +32 -11
  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 +6 -6
  26. package/lib/cjs/duet-editable-table_3.cjs.entry.js +12 -12
  27. package/lib/cjs/duet-empty-state.cjs.entry.js +4 -4
  28. package/lib/cjs/duet-fieldset.cjs.entry.js +7 -7
  29. package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
  30. package/lib/cjs/duet-footer.cjs.entry.js +25 -18
  31. package/lib/cjs/duet-grid_2.cjs.entry.js +7 -6
  32. package/lib/cjs/duet-header_2.cjs.entry.js +8 -8
  33. package/lib/cjs/duet-hero.cjs.entry.js +11 -11
  34. package/lib/cjs/duet-icon.cjs.entry.js +7 -7
  35. package/lib/cjs/duet-indicator.cjs.entry.js +4 -4
  36. package/lib/cjs/duet-input_2.cjs.entry.js +13 -13
  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 +15 -15
  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 +8 -8
  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 +18 -18
  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 +12 -12
  56. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  57. package/lib/cjs/duet-promo-card.cjs.entry.js +7 -7
  58. package/lib/cjs/duet-radio_2.cjs.entry.js +7 -7
  59. package/lib/cjs/duet-range-slider.cjs.entry.js +7 -7
  60. package/lib/cjs/duet-scrollable_3.cjs.entry.js +17 -17
  61. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  62. package/lib/cjs/duet-select.cjs.entry.js +9 -9
  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 +8 -8
  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 +13 -13
  71. package/lib/cjs/duet-slideout.cjs.entry.js +12 -12
  72. package/lib/cjs/duet-status-icon.cjs.entry.js +4 -4
  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 +7 -7
  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 +8 -8
  79. package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
  80. package/lib/cjs/duet-toggle.cjs.entry.js +25 -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 +5 -5
  88. package/lib/cjs/duet-tray.cjs.entry.js +6 -6
  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-BuseNrD9.js → errorcodes.utils-DtuBPKs3.js} +1 -1
  94. package/lib/cjs/{focus-utils-Cbk0cnOs.js → focus-utils-n84nLLND.js} +1 -1
  95. package/lib/cjs/{index-blgG8IJB.js → index-BfggyC6D.js} +1 -1
  96. package/lib/cjs/{label-DeanNJa0.js → label-CFsg_9mi.js} +1 -1
  97. package/lib/cjs/{language-utils-DWW8tvkB.js → language-utils-UQJMUCLw.js} +1 -1
  98. package/lib/cjs/loader.cjs.js +3 -3
  99. package/lib/cjs/{slot-utils-Byx247xX.js → slot-utils-BEQnfNX2.js} +1 -1
  100. package/lib/cjs/{themeable-component-DcR7DztR.js → themeable-component-BkwBlXGz.js} +1 -1
  101. package/lib/cjs/{token-utils-BJtlJxnJ.js → token-utils-GXq9O-4F.js} +1 -1
  102. package/lib/cjs/{tokens-BxWzRxOl.js → tokens-DZMc8s3K.js} +3 -0
  103. package/lib/cjs/{tokens.module-DJt2h4FX.js → tokens.module-Bc3oSOjD.js} +3 -0
  104. package/lib/collection/common-strings.js +7 -1
  105. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  106. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  107. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  108. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  109. package/lib/collection/components/duet-checkbox/duet-checkbox.css +11 -2
  110. package/lib/collection/components/duet-checkbox/duet-checkbox.js +24 -2
  111. package/lib/collection/components/duet-chip/duet-chip.js +1 -1
  112. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  113. package/lib/collection/components/duet-choice/duet-choice.js +6 -6
  114. package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
  115. package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
  116. package/lib/collection/components/duet-combobox/duet-combobox.css +0 -5
  117. package/lib/collection/components/duet-combobox/duet-combobox.js +27 -6
  118. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  119. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  120. package/lib/collection/components/duet-date-picker/duet-date-picker.css +2 -2
  121. package/lib/collection/components/duet-date-picker/duet-date-picker.js +2 -2
  122. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  123. package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -2
  124. package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
  125. package/lib/collection/components/duet-fieldset/duet-fieldset.css +2 -17
  126. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  127. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  128. package/lib/collection/components/duet-footer/duet-footer.js +20 -13
  129. package/lib/collection/components/duet-grid/duet-grid.js +2 -2
  130. package/lib/collection/components/duet-grid-item/duet-grid-item.js +3 -2
  131. package/lib/collection/components/duet-heading/duet-heading.js +2 -2
  132. package/lib/collection/components/duet-hero/duet-hero.css +1 -0
  133. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  134. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  135. package/lib/collection/components/duet-indicator/duet-indicator.js +1 -1
  136. package/lib/collection/components/duet-input/duet-input.js +6 -6
  137. package/lib/collection/components/duet-layout/duet-layout.js +5 -5
  138. package/lib/collection/components/duet-link/duet-link.css +42 -8
  139. package/lib/collection/components/duet-link/duet-link.js +11 -5
  140. package/lib/collection/components/duet-list/duet-list.js +1 -1
  141. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  142. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  143. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -3
  144. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  145. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  146. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  147. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  148. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  149. package/lib/collection/components/duet-modal/duet-modal.js +7 -7
  150. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  151. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  152. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  153. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +3 -3
  154. package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
  155. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  156. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  157. package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
  158. package/lib/collection/components/duet-panel/duet-panel.js +2 -2
  159. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  160. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +3 -3
  161. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  162. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  163. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  164. package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
  165. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  166. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  167. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  168. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  169. package/lib/collection/components/duet-select/duet-select.js +5 -5
  170. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  171. package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
  172. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
  173. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  174. package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
  175. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  176. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  177. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  178. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  179. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  180. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  181. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  182. package/lib/collection/components/duet-step/duet-step.js +2 -2
  183. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  184. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  185. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  186. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  187. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  188. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  189. package/lib/collection/components/duet-tab/duet-tab.js +2 -2
  190. package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
  191. package/lib/collection/components/duet-table/duet-table.js +2 -2
  192. package/lib/collection/components/duet-textarea/duet-textarea.js +3 -3
  193. package/lib/collection/components/duet-toggle/duet-toggle.css +22 -9
  194. package/lib/collection/components/duet-toggle/duet-toggle.js +84 -2
  195. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  196. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  197. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  198. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  199. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  200. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
  201. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
  202. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  203. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  204. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  205. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  206. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  207. package/lib/duet/duet.esm.js +1 -1
  208. package/lib/duet/{p-83c7bfe0.entry.js → p-01ede40e.entry.js} +1 -1
  209. package/lib/duet/{p-ab74c20e.entry.js → p-0c677bac.entry.js} +1 -1
  210. package/lib/duet/{p-8f2fbd03.entry.js → p-0e6feeaf.entry.js} +1 -1
  211. package/lib/duet/{p-4862f0c6.entry.js → p-10d943ea.entry.js} +1 -1
  212. package/lib/duet/{p-b2f22262.entry.js → p-11e17622.entry.js} +1 -1
  213. package/lib/duet/{p-6cf8e63d.entry.js → p-16db57d6.entry.js} +1 -1
  214. package/lib/duet/{p-e195c5e2.entry.js → p-19dfac00.entry.js} +1 -1
  215. package/lib/duet/{p-a9692b2a.entry.js → p-1a9f5440.entry.js} +1 -1
  216. package/lib/duet/{p-1d8da041.entry.js → p-1b1018d1.entry.js} +1 -1
  217. package/lib/duet/p-1e4903a7.entry.js +4 -0
  218. package/lib/duet/{p-36d2a441.entry.js → p-1e82c441.entry.js} +1 -1
  219. package/lib/duet/{p-960ada39.entry.js → p-1f76c77a.entry.js} +1 -1
  220. package/lib/duet/{p-8857eb7b.entry.js → p-2871d3f5.entry.js} +1 -1
  221. package/lib/duet/{p-2d0eb4b5.entry.js → p-2a1db046.entry.js} +1 -1
  222. package/lib/duet/{p-14d64261.entry.js → p-2b41b6c3.entry.js} +1 -1
  223. package/lib/duet/{p-e7c058b0.entry.js → p-2d813dd9.entry.js} +1 -1
  224. package/lib/duet/{p-d26c644d.entry.js → p-2e99a3d1.entry.js} +1 -1
  225. package/lib/duet/{p-486a4bc6.entry.js → p-308328c0.entry.js} +1 -1
  226. package/lib/duet/p-31c03dbc.entry.js +4 -0
  227. package/lib/duet/p-32ae38d2.entry.js +4 -0
  228. package/lib/duet/p-3650e089.entry.js +4 -0
  229. package/lib/duet/{p-43f15ad6.entry.js → p-3b6f0ed3.entry.js} +1 -1
  230. package/lib/duet/{p-4d14780b.entry.js → p-3c19d851.entry.js} +1 -1
  231. package/lib/duet/{p-dc57fff7.entry.js → p-3d85dbf7.entry.js} +1 -1
  232. package/lib/duet/p-3dd1304e.entry.js +4 -0
  233. package/lib/duet/{p-bb8634c4.entry.js → p-413ccfee.entry.js} +1 -1
  234. package/lib/duet/{p-04c9c13e.entry.js → p-45f8d839.entry.js} +1 -1
  235. package/lib/duet/{p-3b52f20d.entry.js → p-493b240f.entry.js} +1 -1
  236. package/lib/duet/{p-e3780362.entry.js → p-4f16859a.entry.js} +1 -1
  237. package/lib/duet/{p-320e4688.entry.js → p-50f80b6c.entry.js} +1 -1
  238. package/lib/duet/{p-1380370e.entry.js → p-5302f338.entry.js} +1 -1
  239. package/lib/duet/{p-40956ec6.entry.js → p-549e68da.entry.js} +1 -1
  240. package/lib/duet/{p-a28d4312.entry.js → p-6333c633.entry.js} +1 -1
  241. package/lib/duet/{p-bd0ad7c3.entry.js → p-6969647c.entry.js} +1 -1
  242. package/lib/duet/{p-d4e2e471.entry.js → p-6b06705f.entry.js} +1 -1
  243. package/lib/duet/{p-dc4d385d.entry.js → p-6b9ac7ea.entry.js} +1 -1
  244. package/lib/duet/{p-d9f504b7.entry.js → p-6bddd7b7.entry.js} +1 -1
  245. package/lib/duet/{p-db22799a.entry.js → p-7515a195.entry.js} +1 -1
  246. package/lib/duet/{p-24f206ab.entry.js → p-7916d25e.entry.js} +1 -1
  247. package/lib/duet/{p-6662042f.entry.js → p-81e55a2f.entry.js} +1 -1
  248. package/lib/duet/{p-ec5b54f3.entry.js → p-82ed09c9.entry.js} +1 -1
  249. package/lib/duet/{p-2c4f4896.entry.js → p-89cba286.entry.js} +1 -1
  250. package/lib/duet/p-8RjiAqaE.js +4 -0
  251. package/lib/duet/{p-140b87f4.entry.js → p-8a9ad498.entry.js} +1 -1
  252. package/lib/duet/{p-0d1a4928.entry.js → p-8ecfef50.entry.js} +1 -1
  253. package/lib/duet/{p-3a108321.entry.js → p-8f43c23a.entry.js} +1 -1
  254. package/lib/duet/{p-6qQ9c51e.js → p-8odxhfeD.js} +1 -1
  255. package/lib/duet/{p-d8ebfd49.entry.js → p-9289e2d6.entry.js} +1 -1
  256. package/lib/duet/{p-9dc2b0d2.entry.js → p-9bcb57a9.entry.js} +1 -1
  257. package/lib/duet/{p-57ba8f5f.entry.js → p-9efde101.entry.js} +1 -1
  258. package/lib/duet/{p-1U75pxcR.js → p-BcVbsW_2.js} +1 -1
  259. package/lib/duet/p-BhRNiBUo.js +4 -0
  260. package/lib/duet/p-BxH0r0DA.js +5 -0
  261. package/lib/duet/p-C-hMrqKD.js +4 -0
  262. package/lib/duet/{p-CxgSYSyh.js → p-C7D5HRhY.js} +1 -1
  263. package/lib/duet/p-CKemMSHL.js +4 -0
  264. package/lib/duet/p-CjSEMtsI.js +4 -0
  265. package/lib/duet/{p-Bg75Vqqq.js → p-D7VOYHjg.js} +1 -1
  266. package/lib/duet/p-DMjxD3N-.js +4 -0
  267. package/lib/duet/p-LYJwm2Mz.js +4 -0
  268. package/lib/duet/{p-fe34272e.entry.js → p-a408c8ef.entry.js} +1 -1
  269. package/lib/duet/{p-9ee8ddc9.entry.js → p-a8b8aa7f.entry.js} +1 -1
  270. package/lib/duet/{p-bcb8d390.entry.js → p-abb3a02c.entry.js} +1 -1
  271. package/lib/duet/{p-90981fbb.entry.js → p-ad2d810a.entry.js} +1 -1
  272. package/lib/duet/{p-a1e60676.entry.js → p-ad86f19c.entry.js} +1 -1
  273. package/lib/duet/{p-276f8827.entry.js → p-ad8929e4.entry.js} +1 -1
  274. package/lib/duet/p-aef55e42.entry.js +4 -0
  275. package/lib/duet/{p-823522c9.entry.js → p-b178aa13.entry.js} +1 -1
  276. package/lib/duet/{p-7a8f23b7.entry.js → p-b8fe3df0.entry.js} +1 -1
  277. package/lib/duet/{p-4de6cd49.entry.js → p-b9327667.entry.js} +1 -1
  278. package/lib/duet/{p-9fd10aed.entry.js → p-b9c35e5e.entry.js} +1 -1
  279. package/lib/duet/{p-6043a6de.entry.js → p-bbaa683a.entry.js} +1 -1
  280. package/lib/duet/{p-93303c68.entry.js → p-bdb10c77.entry.js} +1 -1
  281. package/lib/duet/{p-72c7816e.entry.js → p-bdd24cc6.entry.js} +1 -1
  282. package/lib/duet/p-be91dd8c.entry.js +4 -0
  283. package/lib/duet/{p-d31cafc9.entry.js → p-cb90478e.entry.js} +1 -1
  284. package/lib/duet/{p-de255274.entry.js → p-cdc6285c.entry.js} +1 -1
  285. package/lib/duet/{p-e2e7b3bd.entry.js → p-d1db3194.entry.js} +1 -1
  286. package/lib/duet/{p-f6720f8c.entry.js → p-d2c50765.entry.js} +1 -1
  287. package/lib/duet/{p-6862c7d5.entry.js → p-d625732a.entry.js} +1 -1
  288. package/lib/duet/{p-f6f6b960.entry.js → p-d8ddd6aa.entry.js} +1 -1
  289. package/lib/duet/{p-6b2823ed.entry.js → p-d948db17.entry.js} +1 -1
  290. package/lib/duet/{p-ac_1YilV.js → p-dX4lCxX-.js} +1 -1
  291. package/lib/duet/{p-db594a93.entry.js → p-dc7b2908.entry.js} +1 -1
  292. package/lib/duet/{p-fb4ab1f5.entry.js → p-dfb7e2a4.entry.js} +1 -1
  293. package/lib/duet/p-e042f54a.entry.js +4 -0
  294. package/lib/duet/{p-b2464865.entry.js → p-e197cf15.entry.js} +1 -1
  295. package/lib/duet/p-e21285ad.entry.js +4 -0
  296. package/lib/duet/p-e5173b25.entry.js +4 -0
  297. package/lib/duet/p-e6a05ef9.entry.js +4 -0
  298. package/lib/duet/{p-29e677bc.entry.js → p-ecad641c.entry.js} +1 -1
  299. package/lib/duet/{p-ba39d3ad.entry.js → p-ed84afb6.entry.js} +1 -1
  300. package/lib/duet/p-ee7e1387.entry.js +4 -0
  301. package/lib/duet/{p-581e1e08.entry.js → p-f2cc172e.entry.js} +1 -1
  302. package/lib/duet/p-f55ffe76.entry.js +4 -0
  303. package/lib/duet/{p-fd120a7b.entry.js → p-f80c76b3.entry.js} +1 -1
  304. package/lib/duet/{p-ca3fe683.entry.js → p-f920d7a8.entry.js} +1 -1
  305. package/lib/duet/{p-de639eff.entry.js → p-fc427a9c.entry.js} +1 -1
  306. package/lib/duet/{p-d35a4b95.entry.js → p-fd1bf11b.entry.js} +1 -1
  307. package/lib/esm/{a11y-utils-BuWx2D09.js → a11y-utils-Cc259XJX.js} +1 -1
  308. package/lib/esm/{app-globals-DRDLN5wE.js → app-globals-CIsV7gbu.js} +1 -1
  309. package/lib/esm/{common-strings-CVPfl9fc.js → common-strings-8RjiAqaE.js} +8 -2
  310. package/lib/esm/duet-action-button.entry.js +5 -5
  311. package/lib/esm/duet-alert.entry.js +5 -5
  312. package/lib/esm/duet-badge.entry.js +6 -6
  313. package/lib/esm/duet-banner.entry.js +5 -5
  314. package/lib/esm/duet-breadcrumb.entry.js +6 -6
  315. package/lib/esm/duet-breadcrumbs.entry.js +7 -7
  316. package/lib/esm/duet-button_2.entry.js +7 -7
  317. package/lib/esm/duet-callout.entry.js +5 -5
  318. package/lib/esm/duet-caption_4.entry.js +22 -16
  319. package/lib/esm/duet-card.entry.js +5 -5
  320. package/lib/esm/duet-checkbox.entry.js +19 -5
  321. package/lib/esm/duet-checkmark.entry.js +4 -4
  322. package/lib/esm/duet-chip.entry.js +4 -4
  323. package/lib/esm/duet-choice_2.entry.js +13 -13
  324. package/lib/esm/duet-collapsible.entry.js +6 -6
  325. package/lib/esm/duet-combobox.entry.js +33 -12
  326. package/lib/esm/duet-contact-card.entry.js +5 -5
  327. package/lib/esm/duet-cookie-consent.entry.js +3 -3
  328. package/lib/esm/duet-date-picker.entry.js +9 -9
  329. package/lib/esm/duet-divider_2.entry.js +6 -6
  330. package/lib/esm/duet-editable-table_3.entry.js +12 -12
  331. package/lib/esm/duet-empty-state.entry.js +4 -4
  332. package/lib/esm/duet-fieldset.entry.js +7 -7
  333. package/lib/esm/duet-file-chooser.entry.js +3 -3
  334. package/lib/esm/duet-footer.entry.js +25 -18
  335. package/lib/esm/duet-grid_2.entry.js +7 -6
  336. package/lib/esm/duet-header_2.entry.js +8 -8
  337. package/lib/esm/duet-hero.entry.js +11 -11
  338. package/lib/esm/duet-icon.entry.js +7 -7
  339. package/lib/esm/duet-indicator.entry.js +4 -4
  340. package/lib/esm/duet-input_2.entry.js +13 -13
  341. package/lib/esm/duet-layout.entry.js +7 -7
  342. package/lib/esm/duet-list_2.entry.js +5 -5
  343. package/lib/esm/duet-menu-bar-button.entry.js +4 -4
  344. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
  345. package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
  346. package/lib/esm/duet-menu-bar-item.entry.js +8 -8
  347. package/lib/esm/duet-menu-bar-link.entry.js +4 -4
  348. package/lib/esm/duet-menu-bar.entry.js +6 -6
  349. package/lib/esm/duet-modal.entry.js +15 -15
  350. package/lib/esm/duet-multiselect.entry.js +10 -10
  351. package/lib/esm/duet-nav.entry.js +3 -3
  352. package/lib/esm/duet-notification_2.entry.js +9 -9
  353. package/lib/esm/duet-number-input.entry.js +8 -8
  354. package/lib/esm/duet-overlay.entry.js +3 -3
  355. package/lib/esm/duet-page-heading.entry.js +4 -4
  356. package/lib/esm/duet-pagination_2.entry.js +18 -18
  357. package/lib/esm/duet-panel.entry.js +4 -4
  358. package/lib/esm/duet-phone-input.entry.js +4 -4
  359. package/lib/esm/duet-popup-menu_2.entry.js +12 -12
  360. package/lib/esm/duet-progress.entry.js +3 -3
  361. package/lib/esm/duet-promo-card.entry.js +7 -7
  362. package/lib/esm/duet-radio_2.entry.js +7 -7
  363. package/lib/esm/duet-range-slider.entry.js +7 -7
  364. package/lib/esm/duet-scrollable_3.entry.js +17 -17
  365. package/lib/esm/duet-section-layout.entry.js +4 -4
  366. package/lib/esm/duet-select.entry.js +9 -9
  367. package/lib/esm/duet-shaped-image.entry.js +4 -4
  368. package/lib/esm/duet-share-chart-item.entry.js +2 -2
  369. package/lib/esm/duet-share-chart.entry.js +8 -8
  370. package/lib/esm/duet-show-more.entry.js +5 -5
  371. package/lib/esm/duet-slideout-lang.entry.js +4 -4
  372. package/lib/esm/duet-slideout-link.entry.js +8 -8
  373. package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
  374. package/lib/esm/duet-slideout-panel.entry.js +13 -13
  375. package/lib/esm/duet-slideout.entry.js +12 -12
  376. package/lib/esm/duet-status-icon.entry.js +4 -4
  377. package/lib/esm/duet-step_2.entry.js +7 -7
  378. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
  379. package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
  380. package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
  381. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  382. package/lib/esm/duet-submenu-bar.entry.js +8 -8
  383. package/lib/esm/duet-textarea.entry.js +8 -8
  384. package/lib/esm/duet-toggle.entry.js +25 -7
  385. package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
  386. package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
  387. package/lib/esm/duet-toolbar-item.entry.js +9 -9
  388. package/lib/esm/duet-toolbar-link.entry.js +4 -4
  389. package/lib/esm/duet-toolbar.entry.js +4 -4
  390. package/lib/esm/duet-tooltip-button_2.entry.js +9 -9
  391. package/lib/esm/duet-tooltip.entry.js +5 -5
  392. package/lib/esm/duet-tray.entry.js +6 -6
  393. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  394. package/lib/esm/duet-upload-item.entry.js +6 -6
  395. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  396. package/lib/esm/duet.js +4 -4
  397. package/lib/esm/{errorcodes.utils-CjUqHglR.js → errorcodes.utils-KnjOo5JF.js} +1 -1
  398. package/lib/esm/{focus-utils-Do5KtPgs.js → focus-utils-Cgrh4d7y.js} +1 -1
  399. package/lib/esm/{index-BhYt_2Vd.js → index-BxH0r0DA.js} +1 -1
  400. package/lib/esm/{label-BRuShBbJ.js → label-DA-iWWhe.js} +1 -1
  401. package/lib/esm/{language-utils-D2jecvOr.js → language-utils-BqCiY8zW.js} +1 -1
  402. package/lib/esm/loader.js +4 -4
  403. package/lib/esm/{slot-utils-nDLvv_4O.js → slot-utils-Bi4BkMYE.js} +1 -1
  404. package/lib/esm/{themeable-component-C0nhBgYw.js → themeable-component-EeTaKAPP.js} +1 -1
  405. package/lib/esm/{token-utils-Dks4GBDa.js → token-utils-ibPg9tBe.js} +1 -1
  406. package/lib/esm/{tokens-DOuLHrH5.js → tokens-CjSEMtsI.js} +3 -0
  407. package/lib/esm/{tokens.module-BDAqOMlM.js → tokens.module-C-hMrqKD.js} +3 -1
  408. package/lib/types/common-strings.d.ts +1 -0
  409. package/lib/types/common-types.d.ts +8 -1
  410. package/lib/types/components/duet-checkbox/duet-checkbox.d.ts +6 -0
  411. package/lib/types/components/duet-combobox/duet-combobox.d.ts +4 -0
  412. package/lib/types/components/duet-footer/duet-footer.d.ts +2 -0
  413. package/lib/types/components/duet-grid-item/duet-grid-item.d.ts +4 -0
  414. package/lib/types/components/duet-link/duet-link.d.ts +3 -1
  415. package/lib/types/components/duet-toggle/duet-toggle.d.ts +16 -0
  416. package/lib/types/components.d.ts +28 -2
  417. package/package.json +5 -5
  418. package/lib/duet/p-01ce999b.entry.js +0 -4
  419. package/lib/duet/p-0fabcede.entry.js +0 -4
  420. package/lib/duet/p-141f03da.entry.js +0 -4
  421. package/lib/duet/p-28325583.entry.js +0 -4
  422. package/lib/duet/p-30ae4852.entry.js +0 -4
  423. package/lib/duet/p-540fc47b.entry.js +0 -4
  424. package/lib/duet/p-5db08755.entry.js +0 -4
  425. package/lib/duet/p-5f329414.entry.js +0 -4
  426. package/lib/duet/p-6d90a89c.entry.js +0 -4
  427. package/lib/duet/p-90eed96d.entry.js +0 -4
  428. package/lib/duet/p-94f1de2c.entry.js +0 -4
  429. package/lib/duet/p-B0pM7dNk.js +0 -4
  430. package/lib/duet/p-BDAqOMlM.js +0 -4
  431. package/lib/duet/p-BhYt_2Vd.js +0 -5
  432. package/lib/duet/p-BtxOyTe3.js +0 -4
  433. package/lib/duet/p-CVPfl9fc.js +0 -4
  434. package/lib/duet/p-DJzDRf9m.js +0 -4
  435. package/lib/duet/p-DOuLHrH5.js +0 -4
  436. package/lib/duet/p-a9cf57f5.entry.js +0 -4
  437. package/lib/duet/p-afabb51f.entry.js +0 -4
  438. package/lib/duet/p-xwlQQBxs.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
  */
@@ -66,11 +72,15 @@ export class DuetToggle {
66
72
  * Component event handling.
67
73
  */
68
74
  this.onClick = (ev) => {
75
+ console.log("click");
69
76
  ev.preventDefault();
70
77
  this.setFocus();
71
78
  this.checked = !this.checked;
72
79
  };
73
80
  }
81
+ setLoadingState() {
82
+ this.loadingComplete = !this.loading;
83
+ }
74
84
  checkedChanged(isChecked) {
75
85
  this.duetChange.emit({
76
86
  checked: isChecked,
@@ -109,13 +119,19 @@ export class DuetToggle {
109
119
  */
110
120
  render() {
111
121
  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: {
122
+ return (h(Host, { key: '512f0afaafc2cd0bb097f52be094a57d35933d8f', onClick: this.disabled || this.loading ? undefined : this.onClick, class: {
123
+ "duet-m-0": this.margin === "none",
124
+ "duet-toggle-is-disabled": this.disabled,
125
+ "duet-toggle-is-loading": this.loading,
126
+ } }, h("div", { key: '11a884ca254f910c8e066e28d623ee7f074a75cb', class: {
113
127
  "duet-toggle": true,
114
128
  "duet-theme-turva": this.theme === "turva",
115
129
  "duet-side-label": this.labelPosition !== "top",
116
130
  "duet-reverse-label": this.labelPosition === "right",
117
131
  "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" })))));
132
+ "duet-toggle-is-disabled": this.disabled,
133
+ "duet-toggle-is-loading": this.loading,
134
+ } }, h(DuetInternalLabel, { key: '51c6fbc61a7322024ad75091c2b2c855738afffa', theme: this.theme, color: this.labelColor, weight: this.labelWeight, for: identifier, margin: this.labelPosition === "top" ? "auto" : "none" }, this.label), h("label", { key: '0657f6a2d4314dbc196a906495c22f94d7d3e551', class: "duet-switch" }, h("input", { key: '0f84f9f1ca13523adf2b4d86b5f9f4186016996a', 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: '1a6c06cb5c314e5f7431ecbca9b59615dd0ac040', class: "duet-slider" }), this.loading && h("duet-spinner", { key: '94d364fd5f11a06f81b9a0160ab3630ba8bae2c0', color: "primary" }))), this.loading && (h("duet-visually-hidden", { key: '2171c862cedb3bb2eeaee72f9f6b1e9d02eac3e0', "aria-live": "polite" }, this.accessibleLabelLoading || DuetStringsLoadingDefaults[getLanguage()])), this.loadingComplete && (h("duet-visually-hidden", { key: '8671fbb46feeeb3d651cb55f0a9243c77c97ab2c', "aria-live": "polite" }, this.accessibleLabelComplete || DuetStringsCompleteDefaults[getLanguage()]))));
119
135
  }
120
136
  static get is() { return "duet-toggle"; }
121
137
  static get encapsulation() { return "shadow"; }
@@ -319,6 +335,64 @@ export class DuetToggle {
319
335
  "reflect": false,
320
336
  "defaultValue": "undefined"
321
337
  },
338
+ "accessibleLabelLoading": {
339
+ "type": "string",
340
+ "attribute": "accessible-label-loading",
341
+ "mutable": false,
342
+ "complexType": {
343
+ "original": "string",
344
+ "resolved": "string",
345
+ "references": {}
346
+ },
347
+ "required": false,
348
+ "optional": true,
349
+ "docs": {
350
+ "tags": [],
351
+ "text": "Adds accessible announcement for toggle in \"loading\" state\nIf not set, default strings are used: fi: \"Ladataan\", sv: \"Lastning\", en: \"Loading\""
352
+ },
353
+ "getter": false,
354
+ "setter": false,
355
+ "reflect": false
356
+ },
357
+ "accessibleLabelComplete": {
358
+ "type": "string",
359
+ "attribute": "accessible-label-complete",
360
+ "mutable": false,
361
+ "complexType": {
362
+ "original": "string",
363
+ "resolved": "string",
364
+ "references": {}
365
+ },
366
+ "required": false,
367
+ "optional": true,
368
+ "docs": {
369
+ "tags": [],
370
+ "text": "Adds accessible announcement for toggle when \"loading\" state ends.\nIf not set, default strings are used: fi: \"Valmis\", sv: \"F\u00E4rdig\", en: \"Complete\""
371
+ },
372
+ "getter": false,
373
+ "setter": false,
374
+ "reflect": false
375
+ },
376
+ "loading": {
377
+ "type": "boolean",
378
+ "attribute": "loading",
379
+ "mutable": false,
380
+ "complexType": {
381
+ "original": "boolean",
382
+ "resolved": "boolean",
383
+ "references": {}
384
+ },
385
+ "required": false,
386
+ "optional": false,
387
+ "docs": {
388
+ "tags": [],
389
+ "text": "Loading state of the toggle"
390
+ },
391
+ "getter": false,
392
+ "setter": false,
393
+ "reflect": false,
394
+ "defaultValue": "false"
395
+ },
322
396
  "label": {
323
397
  "type": "string",
324
398
  "attribute": "label",
@@ -561,6 +635,11 @@ export class DuetToggle {
561
635
  }
562
636
  };
563
637
  }
638
+ static get states() {
639
+ return {
640
+ "loadingComplete": {}
641
+ };
642
+ }
564
643
  static get events() {
565
644
  return [{
566
645
  "method": "duetChange",
@@ -617,6 +696,9 @@ export class DuetToggle {
617
696
  static get elementRef() { return "element"; }
618
697
  static get watchers() {
619
698
  return [{
699
+ "propName": "loading",
700
+ "methodName": "setLoadingState"
701
+ }, {
620
702
  "propName": "checked",
621
703
  "methodName": "checkedChanged"
622
704
  }];
@@ -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"; }