@duetds/components 8.3.0 → 8.4.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 (681) hide show
  1. package/hydrate/index.js +352 -103
  2. package/lib/cjs/duet-action-button.cjs.entry.js +2 -2
  3. package/lib/cjs/duet-alert.cjs.entry.js +2 -2
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-banner.cjs.entry.js +7 -6
  6. package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -2
  7. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-button_2.cjs.entry.js +2 -2
  9. package/lib/cjs/duet-callout.cjs.entry.js +5 -4
  10. package/lib/cjs/duet-caption_4.cjs.entry.js +4 -5
  11. package/lib/cjs/duet-card.cjs.entry.js +5 -4
  12. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-chip.cjs.entry.js +2 -2
  15. package/lib/cjs/duet-choice_2.cjs.entry.js +11 -11
  16. package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
  17. package/lib/cjs/duet-combobox.cjs.entry.js +2 -2
  18. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  20. package/lib/cjs/duet-date-picker.cjs.entry.js +6 -5
  21. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-editable-table_3.cjs.entry.js +2 -2
  23. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-fieldset.cjs.entry.js +3 -3
  25. package/lib/cjs/duet-file-chooser.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-footer.cjs.entry.js +2 -2
  27. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-header_2.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-hero.cjs.entry.js +9 -6
  30. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-input_2.cjs.entry.js +5 -4
  32. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
  35. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +2 -2
  36. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +3 -3
  37. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +88 -0
  38. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +2 -2
  39. package/lib/cjs/duet-menu-bar.cjs.entry.js +2 -15
  40. package/lib/cjs/duet-modal.cjs.entry.js +6 -6
  41. package/lib/cjs/duet-multiselect.cjs.entry.js +5 -4
  42. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-notification_2.cjs.entry.js +2 -2
  44. package/lib/cjs/duet-number-input.cjs.entry.js +5 -4
  45. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  46. package/lib/cjs/duet-pagination_2.cjs.entry.js +2 -2
  47. package/lib/cjs/duet-popup-menu-item.cjs.entry.js +3 -2
  48. package/lib/cjs/duet-popup-menu.cjs.entry.js +85 -22
  49. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  50. package/lib/cjs/duet-promo-card.cjs.entry.js +14 -9
  51. package/lib/cjs/duet-radio_2.cjs.entry.js +4 -3
  52. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  53. package/lib/cjs/duet-scrollable_3.cjs.entry.js +2 -2
  54. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-select.cjs.entry.js +4 -3
  56. package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-show-more.cjs.entry.js +2 -2
  58. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  60. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  61. package/lib/cjs/duet-slideout-panel.cjs.entry.js +4 -4
  62. package/lib/cjs/duet-slideout.cjs.entry.js +6 -6
  63. package/lib/cjs/duet-step_2.cjs.entry.js +2 -2
  64. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +2 -2
  65. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +2 -2
  66. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
  67. package/lib/cjs/duet-submenu-bar.cjs.entry.js +2 -2
  68. package/lib/cjs/duet-textarea.cjs.entry.js +4 -3
  69. package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
  70. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +3 -3
  71. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +3 -3
  72. package/lib/cjs/duet-toolbar-item.cjs.entry.js +59 -0
  73. package/lib/cjs/duet-toolbar-link.cjs.entry.js +2 -2
  74. package/lib/cjs/duet-toolbar.cjs.entry.js +2 -15
  75. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +3 -3
  76. package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
  77. package/lib/cjs/duet-tray.cjs.entry.js +2 -2
  78. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  79. package/lib/cjs/duet-upload-item.cjs.entry.js +1 -1
  80. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  81. package/lib/cjs/duet.cjs.js +2 -2
  82. package/lib/cjs/{focus-utils-da780025.js → focus-utils-26803c28.js} +1 -1
  83. package/lib/cjs/{index-34b8e765.js → index-4e1fe95e.js} +1 -1
  84. package/lib/cjs/{keyboard-utils-66010749.js → keyboard-utils-66ecb5d6.js} +4 -2
  85. package/lib/cjs/loader.cjs.js +2 -2
  86. package/lib/cjs/slot-utils-0b8037ab.js +51 -0
  87. package/lib/collection/collection-manifest.json +2 -0
  88. package/lib/collection/common/index.js +0 -1
  89. package/lib/collection/components/duet-banner/duet-banner.js +6 -5
  90. package/lib/collection/components/duet-button/duet-button.css +25 -0
  91. package/lib/collection/components/duet-callout/duet-callout.js +4 -3
  92. package/lib/collection/components/duet-card/duet-card.js +4 -3
  93. package/lib/collection/components/duet-choice/duet-choice.js +2 -1
  94. package/lib/collection/components/duet-choice-group/duet-choice-group.js +3 -2
  95. package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -1
  96. package/lib/collection/components/duet-date-picker/date-picker-input.js +1 -2
  97. package/lib/collection/components/duet-date-picker/duet-date-picker.css +2 -2
  98. package/lib/collection/components/duet-date-picker/duet-date-picker.js +2 -0
  99. package/lib/collection/components/duet-fieldset/duet-fieldset.js +1 -1
  100. package/lib/collection/components/duet-hero/duet-hero.a11y.e2e.js +4 -4
  101. package/lib/collection/components/duet-hero/duet-hero.js +8 -5
  102. package/lib/collection/components/duet-input/duet-input.js +3 -2
  103. package/lib/collection/components/duet-link/duet-link.js +3 -4
  104. package/lib/collection/components/duet-list/duet-list.js +1 -1
  105. package/lib/collection/components/duet-menu-bar/duet-menu-bar.a11y.e2e.js +45 -9
  106. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +1 -0
  107. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +0 -13
  108. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +1 -1
  109. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +1 -1
  110. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +103 -0
  111. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +286 -0
  112. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +1 -1
  113. package/lib/collection/components/duet-modal/duet-modal.css +2 -2
  114. package/lib/collection/components/duet-modal/duet-modal.js +2 -1
  115. package/lib/collection/components/duet-multiselect/duet-multiselect.js +3 -2
  116. package/lib/collection/components/duet-number-input/duet-number-input.js +3 -2
  117. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +95 -25
  118. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +20 -1
  119. package/lib/collection/components/duet-promo-card/duet-promo-card.css +10 -0
  120. package/lib/collection/components/duet-promo-card/duet-promo-card.js +13 -8
  121. package/lib/collection/components/duet-radio-group/duet-radio-group.js +3 -2
  122. package/lib/collection/components/duet-select/duet-select.js +3 -2
  123. package/lib/collection/components/duet-slideout/duet-slideout.css +3 -3
  124. package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
  125. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +1 -1
  126. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +3 -2
  127. package/lib/collection/components/duet-textarea/duet-textarea.js +3 -2
  128. package/lib/collection/components/duet-toolbar/duet-toolbar.a11y.e2e.js +65 -14
  129. package/lib/collection/components/duet-toolbar/duet-toolbar.css +1 -0
  130. package/lib/collection/components/duet-toolbar/duet-toolbar.js +0 -13
  131. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +1 -1
  132. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +1 -1
  133. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +122 -0
  134. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +270 -0
  135. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +1 -1
  136. package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
  137. package/lib/collection/utils/keyboard-utils.js +4 -2
  138. package/lib/collection/utils/slot-utils.js +42 -11
  139. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  140. package/lib/dist-custom-elements/duet-alert.js +1 -1
  141. package/lib/dist-custom-elements/duet-badge.js +1 -1
  142. package/lib/dist-custom-elements/duet-banner.js +9 -8
  143. package/lib/dist-custom-elements/duet-breadcrumb.js +4 -4
  144. package/lib/dist-custom-elements/duet-breadcrumbs.js +1 -1
  145. package/lib/dist-custom-elements/duet-button.js +1 -1
  146. package/lib/dist-custom-elements/duet-callout.js +6 -5
  147. package/lib/dist-custom-elements/duet-caption.js +1 -1
  148. package/lib/dist-custom-elements/duet-card.js +7 -6
  149. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  150. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  151. package/lib/dist-custom-elements/duet-chip.js +3 -3
  152. package/lib/dist-custom-elements/duet-choice-group.js +11 -10
  153. package/lib/dist-custom-elements/duet-choice.js +7 -7
  154. package/lib/dist-custom-elements/duet-collapsible.js +4 -4
  155. package/lib/dist-custom-elements/duet-combobox.js +3 -3
  156. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  157. package/lib/dist-custom-elements/duet-cookie-consent.js +7 -7
  158. package/lib/dist-custom-elements/duet-date-picker.js +16 -15
  159. package/lib/dist-custom-elements/duet-divider.js +1 -1
  160. package/lib/dist-custom-elements/duet-editable-table.js +8 -8
  161. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  162. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  163. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  164. package/lib/dist-custom-elements/duet-footer.js +5 -5
  165. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  166. package/lib/dist-custom-elements/duet-grid.js +1 -1
  167. package/lib/dist-custom-elements/duet-header.js +9 -9
  168. package/lib/dist-custom-elements/duet-heading.js +1 -1
  169. package/lib/dist-custom-elements/duet-hero.js +17 -14
  170. package/lib/dist-custom-elements/duet-icon.js +1 -1
  171. package/lib/dist-custom-elements/duet-input.js +1 -1
  172. package/lib/dist-custom-elements/duet-label.js +1 -1
  173. package/lib/dist-custom-elements/duet-layout.js +1 -1
  174. package/lib/dist-custom-elements/duet-link.js +1 -1
  175. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  176. package/lib/dist-custom-elements/duet-list.js +1 -1
  177. package/lib/dist-custom-elements/duet-logo.js +1 -1
  178. package/lib/dist-custom-elements/duet-menu-bar-button.js +3 -3
  179. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +3 -3
  180. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +4 -4
  181. package/lib/dist-custom-elements/duet-menu-bar-item.d.ts +11 -0
  182. package/lib/dist-custom-elements/duet-menu-bar-item.js +119 -0
  183. package/lib/dist-custom-elements/duet-menu-bar-link.js +3 -3
  184. package/lib/dist-custom-elements/duet-menu-bar.js +3 -16
  185. package/lib/dist-custom-elements/duet-modal.js +10 -10
  186. package/lib/dist-custom-elements/duet-multiselect.js +13 -12
  187. package/lib/dist-custom-elements/duet-nav.js +1 -1
  188. package/lib/dist-custom-elements/duet-notification-drawer.js +5 -5
  189. package/lib/dist-custom-elements/duet-notification.js +3 -3
  190. package/lib/dist-custom-elements/duet-number-input.js +15 -14
  191. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  192. package/lib/dist-custom-elements/duet-pagination.js +14 -14
  193. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  194. package/lib/dist-custom-elements/duet-popup-menu-item.js +5 -3
  195. package/lib/dist-custom-elements/duet-popup-menu.js +90 -24
  196. package/lib/dist-custom-elements/duet-progress.js +1 -1
  197. package/lib/dist-custom-elements/duet-promo-card.js +16 -11
  198. package/lib/dist-custom-elements/duet-radio-group.js +11 -10
  199. package/lib/dist-custom-elements/duet-radio.js +1 -1
  200. package/lib/dist-custom-elements/duet-range-slider.js +3 -3
  201. package/lib/dist-custom-elements/duet-range-stepper.js +5 -5
  202. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  203. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  204. package/lib/dist-custom-elements/duet-select.js +1 -1
  205. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  206. package/lib/dist-custom-elements/duet-show-more.js +6 -6
  207. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  208. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  209. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  210. package/lib/dist-custom-elements/duet-slideout-panel.js +3 -3
  211. package/lib/dist-custom-elements/duet-slideout.js +5 -5
  212. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  213. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  214. package/lib/dist-custom-elements/duet-step.js +5 -5
  215. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  216. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +3 -3
  217. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +3 -3
  218. package/lib/dist-custom-elements/duet-submenu-bar-link.js +3 -3
  219. package/lib/dist-custom-elements/duet-submenu-bar.js +3 -3
  220. package/lib/dist-custom-elements/duet-tab-group.js +14 -14
  221. package/lib/dist-custom-elements/duet-tab.js +2 -2
  222. package/lib/dist-custom-elements/duet-table.js +1 -1
  223. package/lib/dist-custom-elements/duet-textarea.js +13 -12
  224. package/lib/dist-custom-elements/duet-toggle.js +3 -3
  225. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +4 -4
  226. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +4 -4
  227. package/lib/dist-custom-elements/duet-toolbar-item.d.ts +11 -0
  228. package/lib/dist-custom-elements/duet-toolbar-item.js +90 -0
  229. package/lib/dist-custom-elements/duet-toolbar-link.js +3 -3
  230. package/lib/dist-custom-elements/duet-toolbar.js +2 -15
  231. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  232. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  233. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  234. package/lib/dist-custom-elements/duet-tray.js +4 -4
  235. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  236. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  237. package/lib/dist-custom-elements/duet-upload.js +18 -18
  238. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  239. package/lib/dist-custom-elements/index.js +1 -1
  240. package/lib/dist-custom-elements/{p-363d74c3.js → p-04647f60.js} +4 -4
  241. package/lib/dist-custom-elements/{p-afe568e9.js → p-0b90bbc2.js} +1 -1
  242. package/lib/dist-custom-elements/{p-73904865.js → p-0e584f41.js} +1 -1
  243. package/lib/dist-custom-elements/{p-b24c3dc4.js → p-1166a31e.js} +3 -3
  244. package/lib/dist-custom-elements/{p-8cd82767.js → p-148fdc67.js} +1 -1
  245. package/lib/dist-custom-elements/{p-e3d866c6.js → p-231e248d.js} +5 -5
  246. package/lib/dist-custom-elements/{p-ac4ee6ea.js → p-42a1b569.js} +2 -2
  247. package/lib/dist-custom-elements/{p-2718851e.js → p-42f3ff36.js} +1 -1
  248. package/lib/dist-custom-elements/{p-cf2212cc.js → p-440669fe.js} +14 -13
  249. package/lib/dist-custom-elements/{p-0233383b.js → p-54a40cbc.js} +1 -1
  250. package/lib/dist-custom-elements/{p-10c1d640.js → p-55dc7e3a.js} +1 -1
  251. package/lib/dist-custom-elements/{p-34fe2adb.js → p-581c0a5a.js} +1 -1
  252. package/lib/dist-custom-elements/{p-2c44fafc.js → p-5b7820b5.js} +1 -1
  253. package/lib/dist-custom-elements/{p-5b8774b6.js → p-604f5020.js} +6 -6
  254. package/lib/dist-custom-elements/{p-a13cbd71.js → p-6cb11f93.js} +1 -1
  255. package/lib/dist-custom-elements/p-796edee6.js +48 -0
  256. package/lib/dist-custom-elements/{p-60dcae4f.js → p-7cf48950.js} +1 -1
  257. package/lib/dist-custom-elements/{p-d27e5b0d.js → p-8356d992.js} +2 -2
  258. package/lib/dist-custom-elements/{p-5df55152.js → p-85712a7c.js} +1 -1
  259. package/lib/dist-custom-elements/{p-7183d0e7.js → p-88394bab.js} +10 -10
  260. package/lib/dist-custom-elements/{p-c7e3638d.js → p-88ce5a27.js} +1 -1
  261. package/lib/dist-custom-elements/{p-98ca74e0.js → p-9448a82f.js} +1 -1
  262. package/lib/dist-custom-elements/{p-0d6e1f1b.js → p-9c0ce616.js} +1 -1
  263. package/lib/dist-custom-elements/{p-41c5df58.js → p-a3651df3.js} +2 -2
  264. package/lib/dist-custom-elements/{p-7c44c302.js → p-b68755bb.js} +1 -1
  265. package/lib/dist-custom-elements/{p-997c1c72.js → p-b9f613f5.js} +1 -1
  266. package/lib/dist-custom-elements/{p-55634a0b.js → p-bec3a15c.js} +4 -2
  267. package/lib/dist-custom-elements/{p-8a5c7cdf.js → p-d07c620c.js} +5 -5
  268. package/lib/dist-custom-elements/{p-42da65d1.js → p-d2dafb20.js} +5 -6
  269. package/lib/dist-custom-elements/{p-b443af91.js → p-dd175a82.js} +11 -10
  270. package/lib/dist-custom-elements/{p-e445c96b.js → p-de066189.js} +1 -1
  271. package/lib/dist-custom-elements/{p-a73804b7.js → p-e278477e.js} +1 -1
  272. package/lib/dist-custom-elements/{p-2bc31f8b.js → p-e47bf090.js} +1 -1
  273. package/lib/dist-custom-elements/{p-96a8a294.js → p-f38ed7fe.js} +4 -4
  274. package/lib/dist-custom-elements/{p-5ccb7f41.js → p-fc352257.js} +7 -7
  275. package/lib/dist-custom-elements/{p-3bcad21a.js → p-ffe65adf.js} +3 -3
  276. package/lib/duet/duet.esm.js +1 -1
  277. package/lib/duet/duet.js +1 -1
  278. package/lib/duet/{p-505375e1.system.entry.js → p-05b8ae17.system.entry.js} +1 -1
  279. package/lib/duet/{p-dcaed1b0.entry.js → p-072607fd.entry.js} +1 -1
  280. package/lib/duet/{p-58a8254d.entry.js → p-077c7ac7.entry.js} +1 -1
  281. package/lib/duet/p-090ae709.entry.js +4 -0
  282. package/lib/duet/{p-19fc4ff9.system.entry.js → p-0c8ef637.system.entry.js} +1 -1
  283. package/lib/duet/{p-77b95466.system.entry.js → p-0c98eb74.system.entry.js} +1 -1
  284. package/lib/duet/p-0d452219.entry.js +4 -0
  285. package/lib/duet/{p-65dcf9ed.entry.js → p-0f80c628.entry.js} +1 -1
  286. package/lib/duet/{p-56be87c9.system.entry.js → p-1099ef42.system.entry.js} +1 -1
  287. package/lib/duet/{p-3ddc5b9d.entry.js → p-113ad39d.entry.js} +1 -1
  288. package/lib/duet/p-13bdce94.entry.js +4 -0
  289. package/lib/duet/{p-8a2f8d7d.entry.js → p-154f1517.entry.js} +1 -1
  290. package/lib/duet/{p-33771b10.system.entry.js → p-1c5a34ec.system.entry.js} +1 -1
  291. package/lib/duet/{p-1d91fb5d.entry.js → p-1ce475d7.entry.js} +1 -1
  292. package/lib/duet/{p-193fcf1c.system.entry.js → p-1d032bb3.system.entry.js} +1 -1
  293. package/lib/duet/{p-85e98030.entry.js → p-1e55dfa3.entry.js} +1 -1
  294. package/lib/duet/p-246f8836.system.entry.js +4 -0
  295. package/lib/duet/{p-97cf5b01.system.entry.js → p-265aaa8b.system.entry.js} +1 -1
  296. package/lib/duet/{p-b507f27d.system.entry.js → p-26859589.system.entry.js} +1 -1
  297. package/lib/duet/p-26c2008d.entry.js +4 -0
  298. package/lib/duet/{p-ffdb9d3f.system.entry.js → p-276fac2f.system.entry.js} +1 -1
  299. package/lib/duet/p-280e0b55.entry.js +4 -0
  300. package/lib/duet/{p-f801f2a7.entry.js → p-288ba4f9.entry.js} +1 -1
  301. package/lib/duet/{p-4ca1be7a.system.entry.js → p-2a29c6d5.system.entry.js} +1 -1
  302. package/lib/duet/{p-b9140794.entry.js → p-2b5c578e.entry.js} +1 -1
  303. package/lib/duet/{p-d7f9ea61.system.entry.js → p-2d4cd88c.system.entry.js} +1 -1
  304. package/lib/duet/{p-7083fb38.system.entry.js → p-30174f82.system.entry.js} +1 -1
  305. package/lib/duet/p-322b427c.system.entry.js +4 -0
  306. package/lib/duet/{p-9d841e0f.entry.js → p-33ba6560.entry.js} +1 -1
  307. package/lib/duet/p-3624bad1.js +4 -0
  308. package/lib/duet/{p-8c08f362.system.entry.js → p-36ca4962.system.entry.js} +1 -1
  309. package/lib/duet/{p-3ac0c888.system.entry.js → p-3706d57f.system.entry.js} +1 -1
  310. package/lib/duet/{p-573ce757.system.entry.js → p-378c88b0.system.entry.js} +1 -1
  311. package/lib/duet/{p-27485e15.system.entry.js → p-3790d9c6.system.entry.js} +1 -1
  312. package/lib/duet/{p-a3b8bb87.entry.js → p-37b390b1.entry.js} +1 -1
  313. package/lib/duet/p-3a2f42cc.entry.js +4 -0
  314. package/lib/duet/{p-5c42b7f0.system.entry.js → p-3b7af0aa.system.entry.js} +1 -1
  315. package/lib/duet/p-3ffede1b.entry.js +4 -0
  316. package/lib/duet/{p-90847ed0.system.entry.js → p-423cc443.system.entry.js} +2 -2
  317. package/lib/duet/{p-05cfffb1.entry.js → p-42f7208c.entry.js} +1 -1
  318. package/lib/duet/p-4594fdfc.system.entry.js +4 -0
  319. package/lib/duet/{p-c03920c0.entry.js → p-4646de9d.entry.js} +1 -1
  320. package/lib/duet/{p-e0db152c.system.entry.js → p-468606ef.system.entry.js} +1 -1
  321. package/lib/duet/{p-0296a34a.system.entry.js → p-46980318.system.entry.js} +1 -1
  322. package/lib/duet/{p-85c6a112.entry.js → p-46c368b6.entry.js} +1 -1
  323. package/lib/duet/{p-34b96e8d.system.entry.js → p-48d5fd63.system.entry.js} +1 -1
  324. package/lib/duet/{p-e79d2de2.system.entry.js → p-497fbe6f.system.entry.js} +1 -1
  325. package/lib/duet/{p-777fbef3.entry.js → p-4a69a574.entry.js} +1 -1
  326. package/lib/duet/p-4c2964ba.system.entry.js +4 -0
  327. package/lib/duet/p-4c40ab32.entry.js +4 -0
  328. package/lib/duet/{p-1953edbe.entry.js → p-4c99d4e4.entry.js} +1 -1
  329. package/lib/duet/{p-ba89aaf0.entry.js → p-4ddb4401.entry.js} +1 -1
  330. package/lib/duet/{p-82cd0795.entry.js → p-52aefd49.entry.js} +1 -1
  331. package/lib/duet/{p-25e0cbc3.entry.js → p-55f4b594.entry.js} +1 -1
  332. package/lib/duet/p-560b0225.system.entry.js +4 -0
  333. package/lib/duet/{p-fefcaeb4.entry.js → p-5969cc96.entry.js} +1 -1
  334. package/lib/duet/p-5a07838a.system.entry.js +4 -0
  335. package/lib/duet/{p-0abf8fe1.system.entry.js → p-5f6619db.system.entry.js} +1 -1
  336. package/lib/duet/{p-5bf6660a.entry.js → p-60cc4982.entry.js} +1 -1
  337. package/lib/duet/{p-d8144268.system.entry.js → p-613ca231.system.entry.js} +1 -1
  338. package/lib/duet/{p-2eb5153f.system.entry.js → p-62b76a24.system.entry.js} +1 -1
  339. package/lib/duet/{p-f43327c2.system.entry.js → p-65a1a167.system.entry.js} +1 -1
  340. package/lib/duet/{p-618cc2c7.system.entry.js → p-65bd8411.system.entry.js} +1 -1
  341. package/lib/duet/{p-cff7873f.entry.js → p-67a6cdda.entry.js} +1 -1
  342. package/lib/duet/{p-6626a173.entry.js → p-69d93a05.entry.js} +1 -1
  343. package/lib/duet/{p-e27a4bf4.system.entry.js → p-6bad4da4.system.entry.js} +1 -1
  344. package/lib/duet/{p-b263e985.js → p-6c4b49d5.js} +1 -1
  345. package/lib/duet/p-6db50eea.entry.js +4 -0
  346. package/lib/duet/{p-9ba3d633.entry.js → p-6ed83596.entry.js} +1 -1
  347. package/lib/duet/{p-fe79a10c.system.entry.js → p-7066a413.system.entry.js} +1 -1
  348. package/lib/duet/{p-d7175aea.entry.js → p-72bedacd.entry.js} +1 -1
  349. package/lib/duet/{p-87112f7c.system.entry.js → p-7436bd48.system.entry.js} +1 -1
  350. package/lib/duet/p-74f8da81.entry.js +4 -0
  351. package/lib/duet/p-75350b07.entry.js +4 -0
  352. package/lib/duet/{p-e3c31f72.system.entry.js → p-75503668.system.entry.js} +1 -1
  353. package/lib/duet/{p-e72a7aa6.system.entry.js → p-75f81010.system.entry.js} +1 -1
  354. package/lib/duet/{p-769b7d3c.system.js → p-76b3dfea.system.js} +1 -1
  355. package/lib/duet/{p-c16515e0.entry.js → p-76f3d250.entry.js} +1 -1
  356. package/lib/duet/{p-fa6061c9.entry.js → p-7792b370.entry.js} +1 -1
  357. package/lib/duet/p-796edee6.js +4 -0
  358. package/lib/duet/{p-71568bfa.entry.js → p-79b1232f.entry.js} +1 -1
  359. package/lib/duet/p-7a0523f1.entry.js +4 -0
  360. package/lib/duet/p-7c6d5f9c.system.js +4 -0
  361. package/lib/duet/p-8678ad49.system.js +4 -0
  362. package/lib/duet/{p-c9221359.system.entry.js → p-8b0053b4.system.entry.js} +1 -1
  363. package/lib/duet/p-8b01d018.entry.js +4 -0
  364. package/lib/duet/p-8b310c25.system.entry.js +4 -0
  365. package/lib/duet/{p-53e192de.system.entry.js → p-8b621333.system.entry.js} +1 -1
  366. package/lib/duet/{p-310fd85a.system.entry.js → p-8c340908.system.entry.js} +1 -1
  367. package/lib/duet/p-8cdbf7c7.system.entry.js +4 -0
  368. package/lib/duet/p-8da5c103.entry.js +4 -0
  369. package/lib/duet/{p-11be6924.system.entry.js → p-900abeb7.system.entry.js} +1 -1
  370. package/lib/duet/{p-604aab16.system.entry.js → p-913b9c68.system.entry.js} +1 -1
  371. package/lib/duet/p-91d750ad.system.js +4 -0
  372. package/lib/duet/{p-b9c1d172.entry.js → p-93950a7f.entry.js} +1 -1
  373. package/lib/duet/{p-39730ce5.entry.js → p-94e0fba1.entry.js} +1 -1
  374. package/lib/duet/{p-004f5593.system.entry.js → p-96c1789d.system.entry.js} +1 -1
  375. package/lib/duet/{p-c8466623.system.entry.js → p-97af661b.system.entry.js} +1 -1
  376. package/lib/duet/p-991f9b2e.entry.js +4 -0
  377. package/lib/duet/{p-079710fa.system.entry.js → p-994d95e9.system.entry.js} +1 -1
  378. package/lib/duet/{p-f1843c31.entry.js → p-99eb5647.entry.js} +1 -1
  379. package/lib/duet/p-9a1f8af3.entry.js +4 -0
  380. package/lib/duet/{p-d3aed7d8.system.entry.js → p-9cdf78b3.system.entry.js} +1 -1
  381. package/lib/duet/{p-ccb58dd2.entry.js → p-9ce07f50.entry.js} +1 -1
  382. package/lib/duet/{p-5d74e505.entry.js → p-a09d3878.entry.js} +1 -1
  383. package/lib/duet/{p-690d8509.system.entry.js → p-a15bdee3.system.entry.js} +1 -1
  384. package/lib/duet/{p-0322bace.entry.js → p-a1db3600.entry.js} +1 -1
  385. package/lib/duet/{p-73f87dff.system.entry.js → p-a43ad34f.system.entry.js} +1 -1
  386. package/lib/duet/{p-a9a0f040.system.entry.js → p-a50e095d.system.entry.js} +1 -1
  387. package/lib/duet/{p-859754bb.entry.js → p-a88d7e91.entry.js} +1 -1
  388. package/lib/duet/{p-2054dad2.entry.js → p-a8935106.entry.js} +1 -1
  389. package/lib/duet/{p-8726889d.system.entry.js → p-a8c96cc0.system.entry.js} +1 -1
  390. package/lib/duet/{p-213dab77.entry.js → p-aa14230b.entry.js} +1 -1
  391. package/lib/duet/{p-2f22f4cc.system.entry.js → p-aa840586.system.entry.js} +1 -1
  392. package/lib/duet/p-ad6388ce.entry.js +4 -0
  393. package/lib/duet/p-b01e1f6c.system.entry.js +4 -0
  394. package/lib/duet/{p-09c54c8e.system.js → p-b2716337.system.js} +1 -1
  395. package/lib/duet/{p-fbbfcc2d.system.entry.js → p-b2df2bb9.system.entry.js} +1 -1
  396. package/lib/duet/{p-98a822e3.entry.js → p-b3af96a8.entry.js} +1 -1
  397. package/lib/duet/{p-a01d2fdb.entry.js → p-b49d10f6.entry.js} +1 -1
  398. package/lib/duet/{p-e7b6657c.system.entry.js → p-b4e730ac.system.entry.js} +1 -1
  399. package/lib/duet/{p-294b9ccf.system.entry.js → p-b57e1bac.system.entry.js} +1 -1
  400. package/lib/duet/{p-45e26ba0.system.entry.js → p-b5f5d7ce.system.entry.js} +1 -1
  401. package/lib/duet/{p-5add7da0.entry.js → p-b7b4b33c.entry.js} +1 -1
  402. package/lib/duet/{p-7479da8d.system.entry.js → p-b85c4e9e.system.entry.js} +1 -1
  403. package/lib/duet/{p-52a756fe.entry.js → p-ba015d7a.entry.js} +1 -1
  404. package/lib/duet/p-bb640b45.entry.js +4 -0
  405. package/lib/duet/{p-82bef678.system.entry.js → p-bc8c2990.system.entry.js} +1 -1
  406. package/lib/duet/{p-4a4317af.system.entry.js → p-be8e8efc.system.entry.js} +1 -1
  407. package/lib/duet/{p-15c9c4cb.entry.js → p-c19ce026.entry.js} +1 -1
  408. package/lib/duet/{p-7fd03652.system.entry.js → p-c28e4280.system.entry.js} +1 -1
  409. package/lib/duet/{p-fdeb4f7d.entry.js → p-c383e8d6.entry.js} +1 -1
  410. package/lib/duet/{p-0d0867ae.entry.js → p-c899df04.entry.js} +1 -1
  411. package/lib/duet/{p-b2ccffd1.system.entry.js → p-c900f541.system.entry.js} +1 -1
  412. package/lib/duet/p-caa48d36.system.entry.js +4 -0
  413. package/lib/duet/{p-9e8772d1.entry.js → p-cd8fc9f7.entry.js} +1 -1
  414. package/lib/duet/{p-447943eb.entry.js → p-cd9619e3.entry.js} +1 -1
  415. package/lib/duet/{p-0f35fce0.system.entry.js → p-d047123e.system.entry.js} +1 -1
  416. package/lib/duet/{p-d864a0e3.system.entry.js → p-d257c333.system.entry.js} +1 -1
  417. package/lib/duet/{p-2888bff8.system.entry.js → p-d2cabbed.system.entry.js} +1 -1
  418. package/lib/duet/p-d2d6281b.entry.js +4 -0
  419. package/lib/duet/{p-0c416590.system.entry.js → p-d48ab4d3.system.entry.js} +1 -1
  420. package/lib/duet/p-d56b354c.entry.js +4 -0
  421. package/lib/duet/{p-9bba389f.entry.js → p-d9fd389c.entry.js} +1 -1
  422. package/lib/duet/{p-9686aa88.system.entry.js → p-db29100b.system.entry.js} +1 -1
  423. package/lib/duet/p-dc45b241.entry.js +4 -0
  424. package/lib/duet/p-de46b522.entry.js +4 -0
  425. package/lib/duet/p-de958fe7.system.entry.js +4 -0
  426. package/lib/duet/{p-2e3254e1.system.entry.js → p-e0befaf6.system.entry.js} +1 -1
  427. package/lib/duet/p-e1020f12.system.entry.js +4 -0
  428. package/lib/duet/{p-755f5cf0.system.entry.js → p-e19a12b4.system.entry.js} +1 -1
  429. package/lib/duet/{p-ba92e7b1.system.entry.js → p-e1b947e9.system.entry.js} +1 -1
  430. package/lib/duet/{p-a3351207.entry.js → p-e5c75975.entry.js} +1 -1
  431. package/lib/duet/{p-d84be985.entry.js → p-e632de74.entry.js} +1 -1
  432. package/lib/duet/p-e650b1b7.system.entry.js +4 -0
  433. package/lib/duet/p-e669b52a.entry.js +4 -0
  434. package/lib/duet/p-e6beb82f.entry.js +4 -0
  435. package/lib/duet/p-ea90f7c4.entry.js +4 -0
  436. package/lib/duet/{p-45464aa5.entry.js → p-eaa8473a.entry.js} +1 -1
  437. package/lib/duet/{p-1f6ad797.system.entry.js → p-ed9d957f.system.entry.js} +2 -2
  438. package/lib/duet/{p-560f26a5.entry.js → p-eededb83.entry.js} +1 -1
  439. package/lib/duet/p-f27034be.entry.js +4 -0
  440. package/lib/duet/p-f36f6e98.js +4 -0
  441. package/lib/duet/p-f3a2cd70.entry.js +4 -0
  442. package/lib/duet/p-f4b9871c.system.entry.js +4 -0
  443. package/lib/duet/{p-ca5cd66a.system.entry.js → p-fbede069.system.entry.js} +1 -1
  444. package/lib/duet/p-fd6421e9.entry.js +4 -0
  445. package/lib/esm/duet-action-button.entry.js +2 -2
  446. package/lib/esm/duet-alert.entry.js +2 -2
  447. package/lib/esm/duet-badge.entry.js +1 -1
  448. package/lib/esm/duet-banner.entry.js +7 -6
  449. package/lib/esm/duet-breadcrumb.entry.js +2 -2
  450. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  451. package/lib/esm/duet-button_2.entry.js +2 -2
  452. package/lib/esm/duet-callout.entry.js +5 -4
  453. package/lib/esm/duet-caption_4.entry.js +4 -5
  454. package/lib/esm/duet-card.entry.js +5 -4
  455. package/lib/esm/duet-checkbox.entry.js +1 -1
  456. package/lib/esm/duet-checkmark.entry.js +1 -1
  457. package/lib/esm/duet-chip.entry.js +2 -2
  458. package/lib/esm/duet-choice_2.entry.js +6 -6
  459. package/lib/esm/duet-collapsible.entry.js +3 -3
  460. package/lib/esm/duet-combobox.entry.js +2 -2
  461. package/lib/esm/duet-contact-card.entry.js +1 -1
  462. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  463. package/lib/esm/duet-date-picker.entry.js +6 -5
  464. package/lib/esm/duet-divider_2.entry.js +1 -1
  465. package/lib/esm/duet-editable-table_3.entry.js +2 -2
  466. package/lib/esm/duet-empty-state.entry.js +1 -1
  467. package/lib/esm/duet-fieldset.entry.js +2 -2
  468. package/lib/esm/duet-file-chooser.entry.js +1 -1
  469. package/lib/esm/duet-footer.entry.js +2 -2
  470. package/lib/esm/duet-grid_2.entry.js +1 -1
  471. package/lib/esm/duet-header_2.entry.js +2 -2
  472. package/lib/esm/duet-hero.entry.js +9 -6
  473. package/lib/esm/duet-icon.entry.js +1 -1
  474. package/lib/esm/duet-input_2.entry.js +5 -4
  475. package/lib/esm/duet-layout.entry.js +1 -1
  476. package/lib/esm/duet-list_2.entry.js +1 -1
  477. package/lib/esm/duet-menu-bar-button.entry.js +2 -2
  478. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +2 -2
  479. package/lib/esm/duet-menu-bar-dropdown.entry.js +3 -3
  480. package/lib/esm/duet-menu-bar-item.entry.js +84 -0
  481. package/lib/esm/duet-menu-bar-link.entry.js +2 -2
  482. package/lib/esm/duet-menu-bar.entry.js +2 -15
  483. package/lib/esm/duet-modal.entry.js +5 -5
  484. package/lib/esm/duet-multiselect.entry.js +5 -4
  485. package/lib/esm/duet-nav.entry.js +1 -1
  486. package/lib/esm/duet-notification_2.entry.js +2 -2
  487. package/lib/esm/duet-number-input.entry.js +5 -4
  488. package/lib/esm/duet-page-heading.entry.js +1 -1
  489. package/lib/esm/duet-pagination_2.entry.js +2 -2
  490. package/lib/esm/duet-popup-menu-item.entry.js +3 -2
  491. package/lib/esm/duet-popup-menu.entry.js +85 -22
  492. package/lib/esm/duet-progress.entry.js +1 -1
  493. package/lib/esm/duet-promo-card.entry.js +14 -9
  494. package/lib/esm/duet-radio_2.entry.js +4 -3
  495. package/lib/esm/duet-range-slider.entry.js +2 -2
  496. package/lib/esm/duet-scrollable_3.entry.js +2 -2
  497. package/lib/esm/duet-section-layout.entry.js +1 -1
  498. package/lib/esm/duet-select.entry.js +4 -3
  499. package/lib/esm/duet-shaped-image.entry.js +1 -1
  500. package/lib/esm/duet-show-more.entry.js +2 -2
  501. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  502. package/lib/esm/duet-slideout-link.entry.js +1 -1
  503. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  504. package/lib/esm/duet-slideout-panel.entry.js +3 -3
  505. package/lib/esm/duet-slideout.entry.js +5 -5
  506. package/lib/esm/duet-step_2.entry.js +2 -2
  507. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +2 -2
  508. package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -2
  509. package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
  510. package/lib/esm/duet-submenu-bar.entry.js +2 -2
  511. package/lib/esm/duet-textarea.entry.js +4 -3
  512. package/lib/esm/duet-toggle.entry.js +2 -2
  513. package/lib/esm/duet-toolbar-dropdown-link.entry.js +3 -3
  514. package/lib/esm/duet-toolbar-dropdown.entry.js +3 -3
  515. package/lib/esm/duet-toolbar-item.entry.js +55 -0
  516. package/lib/esm/duet-toolbar-link.entry.js +2 -2
  517. package/lib/esm/duet-toolbar.entry.js +2 -15
  518. package/lib/esm/duet-tooltip-button_2.entry.js +3 -3
  519. package/lib/esm/duet-tooltip.entry.js +3 -3
  520. package/lib/esm/duet-tray.entry.js +2 -2
  521. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  522. package/lib/esm/duet-upload-item.entry.js +1 -1
  523. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  524. package/lib/esm/duet.js +3 -3
  525. package/lib/esm/{focus-utils-a9110b59.js → focus-utils-a15379ec.js} +1 -1
  526. package/lib/esm/{index-ad0e5e61.js → index-2fcdad1e.js} +1 -1
  527. package/lib/esm/{keyboard-utils-c472d19d.js → keyboard-utils-0708be80.js} +4 -2
  528. package/lib/esm/loader.js +3 -3
  529. package/lib/esm/slot-utils-3c3ab3d6.js +48 -0
  530. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  531. package/lib/esm-es5/duet-alert.entry.js +1 -1
  532. package/lib/esm-es5/duet-badge.entry.js +1 -1
  533. package/lib/esm-es5/duet-banner.entry.js +1 -1
  534. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  535. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  536. package/lib/esm-es5/duet-button_2.entry.js +2 -2
  537. package/lib/esm-es5/duet-callout.entry.js +1 -1
  538. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  539. package/lib/esm-es5/duet-card.entry.js +1 -1
  540. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  541. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  542. package/lib/esm-es5/duet-chip.entry.js +1 -1
  543. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  544. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  545. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  546. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  547. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  548. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  549. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  550. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  551. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  552. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  553. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  554. package/lib/esm-es5/duet-footer.entry.js +1 -1
  555. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  556. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  557. package/lib/esm-es5/duet-hero.entry.js +2 -2
  558. package/lib/esm-es5/duet-icon.entry.js +1 -1
  559. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  560. package/lib/esm-es5/duet-layout.entry.js +1 -1
  561. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  562. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  563. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  564. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  565. package/lib/esm-es5/duet-menu-bar-item.entry.js +4 -0
  566. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  567. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  568. package/lib/esm-es5/duet-modal.entry.js +1 -1
  569. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  570. package/lib/esm-es5/duet-nav.entry.js +1 -1
  571. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  572. package/lib/esm-es5/duet-number-input.entry.js +2 -2
  573. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  574. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  575. package/lib/esm-es5/duet-popup-menu-item.entry.js +2 -2
  576. package/lib/esm-es5/duet-popup-menu.entry.js +1 -1
  577. package/lib/esm-es5/duet-progress.entry.js +1 -1
  578. package/lib/esm-es5/duet-promo-card.entry.js +2 -2
  579. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  580. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  581. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  582. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  583. package/lib/esm-es5/duet-select.entry.js +2 -2
  584. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  585. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  586. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  587. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  588. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  589. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  590. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  591. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  592. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  593. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  594. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  595. package/lib/esm-es5/duet-submenu-bar.entry.js +2 -2
  596. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  597. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  598. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  599. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  600. package/lib/esm-es5/duet-toolbar-item.entry.js +4 -0
  601. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  602. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  603. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  604. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  605. package/lib/esm-es5/duet-tray.entry.js +1 -1
  606. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  607. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  608. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  609. package/lib/esm-es5/duet.js +1 -1
  610. package/lib/esm-es5/{focus-utils-a9110b59.js → focus-utils-a15379ec.js} +1 -1
  611. package/lib/esm-es5/{index-ad0e5e61.js → index-2fcdad1e.js} +1 -1
  612. package/lib/esm-es5/{keyboard-utils-c472d19d.js → keyboard-utils-0708be80.js} +1 -1
  613. package/lib/esm-es5/loader.js +1 -1
  614. package/lib/esm-es5/slot-utils-3c3ab3d6.js +4 -0
  615. package/lib/types/common/index.d.ts +0 -1
  616. package/lib/types/components/duet-card/duet-card.d.ts +3 -2
  617. package/lib/types/components/duet-list/duet-list.d.ts +1 -0
  618. package/lib/types/components/duet-menu-bar-item/duet-menu-bar-item.d.ts +67 -0
  619. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +9 -2
  620. package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +4 -0
  621. package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +3 -1
  622. package/lib/types/components/duet-toolbar-item/duet-toolbar-item.d.ts +65 -0
  623. package/lib/types/components.d.ts +184 -6
  624. package/lib/types/utils/slot-utils.d.ts +14 -2
  625. package/package.json +5 -5
  626. package/lib/cjs/slot-query-3259af5b.js +0 -10
  627. package/lib/cjs/slot-utils-6c81bd09.js +0 -20
  628. package/lib/collection/common/slot-query.js +0 -9
  629. package/lib/dist-custom-elements/p-11230037.js +0 -8
  630. package/lib/dist-custom-elements/p-bb24a019.js +0 -18
  631. package/lib/duet/p-0c2cf3a5.system.entry.js +0 -4
  632. package/lib/duet/p-11230037.js +0 -4
  633. package/lib/duet/p-1c7ca800.entry.js +0 -4
  634. package/lib/duet/p-1cb624dd.entry.js +0 -4
  635. package/lib/duet/p-240c3f03.system.entry.js +0 -4
  636. package/lib/duet/p-2de5d10d.entry.js +0 -4
  637. package/lib/duet/p-32f3d9e9.entry.js +0 -4
  638. package/lib/duet/p-38bab76d.entry.js +0 -4
  639. package/lib/duet/p-3f9bb231.entry.js +0 -4
  640. package/lib/duet/p-43ee1368.entry.js +0 -4
  641. package/lib/duet/p-48f4acef.entry.js +0 -4
  642. package/lib/duet/p-578de372.entry.js +0 -4
  643. package/lib/duet/p-5eb9efcf.system.js +0 -4
  644. package/lib/duet/p-634e8787.system.js +0 -4
  645. package/lib/duet/p-6a9f8b30.entry.js +0 -4
  646. package/lib/duet/p-6ab9f8ce.entry.js +0 -4
  647. package/lib/duet/p-700eb8d9.system.entry.js +0 -4
  648. package/lib/duet/p-74fef701.system.entry.js +0 -4
  649. package/lib/duet/p-753d1ca4.system.js +0 -4
  650. package/lib/duet/p-7cdcc3f9.system.entry.js +0 -4
  651. package/lib/duet/p-85b08ff2.system.entry.js +0 -4
  652. package/lib/duet/p-8a90810c.system.entry.js +0 -4
  653. package/lib/duet/p-8b25f04b.system.entry.js +0 -4
  654. package/lib/duet/p-91e776e5.entry.js +0 -4
  655. package/lib/duet/p-93037a0a.entry.js +0 -4
  656. package/lib/duet/p-99269e38.system.js +0 -4
  657. package/lib/duet/p-9bfaaf32.entry.js +0 -4
  658. package/lib/duet/p-a5ebbe3e.entry.js +0 -4
  659. package/lib/duet/p-abe6350b.system.entry.js +0 -4
  660. package/lib/duet/p-afa0c531.entry.js +0 -4
  661. package/lib/duet/p-b3e26504.entry.js +0 -4
  662. package/lib/duet/p-bb24a019.js +0 -4
  663. package/lib/duet/p-c28792a8.entry.js +0 -4
  664. package/lib/duet/p-c9c43026.entry.js +0 -4
  665. package/lib/duet/p-cea6ffda.entry.js +0 -4
  666. package/lib/duet/p-cfdea256.system.entry.js +0 -4
  667. package/lib/duet/p-d36935fa.system.entry.js +0 -4
  668. package/lib/duet/p-da0e04fa.entry.js +0 -4
  669. package/lib/duet/p-e19067f1.js +0 -4
  670. package/lib/duet/p-e276fee0.js +0 -4
  671. package/lib/duet/p-e7ffb722.entry.js +0 -4
  672. package/lib/duet/p-ed8efd4d.system.entry.js +0 -4
  673. package/lib/duet/p-f61c00e3.entry.js +0 -4
  674. package/lib/duet/p-f7e13990.entry.js +0 -4
  675. package/lib/duet/p-fcb84038.entry.js +0 -4
  676. package/lib/duet/p-fea9215a.entry.js +0 -4
  677. package/lib/esm/slot-query-022710bb.js +0 -8
  678. package/lib/esm/slot-utils-07ba4363.js +0 -18
  679. package/lib/esm-es5/slot-query-022710bb.js +0 -4
  680. package/lib/esm-es5/slot-utils-07ba4363.js +0 -4
  681. package/lib/types/common/slot-query.d.ts +0 -1
@@ -0,0 +1,286 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import { media_query_large } from "@duetds/tokens/lib/tokens.json";
5
+ import { h, Host } from "@stencil/core";
6
+ import { inheritGlobalTheme } from "../../common/themeable-component";
7
+ export class DuetMenuBarItem {
8
+ constructor() {
9
+ this.mql = [window.matchMedia(media_query_large.replace(/'/g, ""))];
10
+ this.boundMqlFunctions = [];
11
+ this.changeIconSize = () => {
12
+ if (this.mql[0].matches) {
13
+ this.iconSize = "x-small";
14
+ }
15
+ else {
16
+ this.iconSize = "small";
17
+ }
18
+ };
19
+ this.iconSize = "x-small";
20
+ this.theme = "";
21
+ this.active = false;
22
+ this.url = undefined;
23
+ this.leadingIcon = undefined;
24
+ this.trailingIcon = undefined;
25
+ this.accessibleLabel = undefined;
26
+ this.accessibleExpanded = undefined;
27
+ this.accessiblePopup = "false";
28
+ }
29
+ /**
30
+ * Component lifecycle events.
31
+ */
32
+ componentWillLoad() {
33
+ inheritGlobalTheme(this);
34
+ }
35
+ connectedCallback() {
36
+ this.changeIconSize();
37
+ for (let i = 0; i < this.mql.length; i++) {
38
+ // addEventListener is not available in Stencil hydrate
39
+ if (this.mql[i].addEventListener) {
40
+ const bound = this.changeIconSize.bind(this);
41
+ this.mql[i].addEventListener("change", bound);
42
+ this.boundMqlFunctions[i] = bound;
43
+ }
44
+ }
45
+ }
46
+ disconnectedCallback() {
47
+ for (let i = 0; i < this.mql.length; i++) {
48
+ // removeEventListener is not available in Stencil hydrate
49
+ if (this.mql[i].removeEventListener) {
50
+ this.mql[i].removeEventListener("change", this.boundMqlFunctions[i]);
51
+ }
52
+ }
53
+ this.boundMqlFunctions = [];
54
+ }
55
+ /**
56
+ * Sets focus. Use this method instead of the global focus().
57
+ */
58
+ async setFocus(options) {
59
+ setTimeout(() => this.itemElement.focus(options), 200);
60
+ }
61
+ /**
62
+ * render() function
63
+ * Always the last one in the class.
64
+ */
65
+ render() {
66
+ const TagName = this.url ? "a" : "button";
67
+ return (h(Host, { role: "listitem" }, h(TagName, { ref: element => (this.itemElement = element), class: {
68
+ "duet-menu-bar-item": true,
69
+ "duet-theme-turva": this.theme === "turva",
70
+ active: this.active,
71
+ }, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.leadingIcon && (h("duet-icon", { size: this.iconSize, name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" })), h("slot", null), this.trailingIcon && (h("duet-icon", { class: {
72
+ "trailing-icon": true,
73
+ rotate: this.trailingIcon === "action-arrow-down-small" && this.accessibleExpanded,
74
+ }, theme: this.theme, name: this.trailingIcon, margin: "none", size: this.trailingIcon === "action-arrow-down-small" ? "xxx-small" : this.iconSize, color: "currentColor" })))));
75
+ }
76
+ static get is() { return "duet-menu-bar-item"; }
77
+ static get encapsulation() { return "shadow"; }
78
+ static get originalStyleUrls() {
79
+ return {
80
+ "$": ["duet-menu-bar-item.scss"]
81
+ };
82
+ }
83
+ static get styleUrls() {
84
+ return {
85
+ "$": ["duet-menu-bar-item.css"]
86
+ };
87
+ }
88
+ static get properties() {
89
+ return {
90
+ "theme": {
91
+ "type": "string",
92
+ "mutable": true,
93
+ "complexType": {
94
+ "original": "DuetTheme",
95
+ "resolved": "\"\" | \"default\" | \"turva\"",
96
+ "references": {
97
+ "DuetTheme": {
98
+ "location": "import",
99
+ "path": "../../common-types",
100
+ "id": "src/common-types.d.ts::DuetTheme"
101
+ }
102
+ }
103
+ },
104
+ "required": false,
105
+ "optional": false,
106
+ "docs": {
107
+ "tags": [],
108
+ "text": "Theme."
109
+ },
110
+ "attribute": "theme",
111
+ "reflect": false,
112
+ "defaultValue": "\"\""
113
+ },
114
+ "active": {
115
+ "type": "boolean",
116
+ "mutable": true,
117
+ "complexType": {
118
+ "original": "boolean",
119
+ "resolved": "boolean",
120
+ "references": {}
121
+ },
122
+ "required": false,
123
+ "optional": false,
124
+ "docs": {
125
+ "tags": [],
126
+ "text": "Active"
127
+ },
128
+ "attribute": "active",
129
+ "reflect": false,
130
+ "defaultValue": "false"
131
+ },
132
+ "url": {
133
+ "type": "string",
134
+ "mutable": false,
135
+ "complexType": {
136
+ "original": "string",
137
+ "resolved": "string",
138
+ "references": {}
139
+ },
140
+ "required": false,
141
+ "optional": false,
142
+ "docs": {
143
+ "tags": [],
144
+ "text": "Url"
145
+ },
146
+ "attribute": "url",
147
+ "reflect": false
148
+ },
149
+ "leadingIcon": {
150
+ "type": "string",
151
+ "mutable": false,
152
+ "complexType": {
153
+ "original": "DuetIconName",
154
+ "resolved": "string",
155
+ "references": {
156
+ "DuetIconName": {
157
+ "location": "import",
158
+ "path": "../../common-types",
159
+ "id": "src/common-types.d.ts::DuetIconName"
160
+ }
161
+ }
162
+ },
163
+ "required": false,
164
+ "optional": false,
165
+ "docs": {
166
+ "tags": [],
167
+ "text": "Left icon."
168
+ },
169
+ "attribute": "leading-icon",
170
+ "reflect": false,
171
+ "defaultValue": "undefined"
172
+ },
173
+ "trailingIcon": {
174
+ "type": "string",
175
+ "mutable": false,
176
+ "complexType": {
177
+ "original": "DuetIconName",
178
+ "resolved": "string",
179
+ "references": {
180
+ "DuetIconName": {
181
+ "location": "import",
182
+ "path": "../../common-types",
183
+ "id": "src/common-types.d.ts::DuetIconName"
184
+ }
185
+ }
186
+ },
187
+ "required": false,
188
+ "optional": false,
189
+ "docs": {
190
+ "tags": [],
191
+ "text": "Right icon."
192
+ },
193
+ "attribute": "trailing-icon",
194
+ "reflect": false,
195
+ "defaultValue": "undefined"
196
+ },
197
+ "accessibleLabel": {
198
+ "type": "string",
199
+ "mutable": false,
200
+ "complexType": {
201
+ "original": "string",
202
+ "resolved": "string",
203
+ "references": {}
204
+ },
205
+ "required": false,
206
+ "optional": false,
207
+ "docs": {
208
+ "tags": [],
209
+ "text": "Adds accessible label for the link that is only shown for screen readers.\nTypically, this label text replaces the visible text on the link for users\nwho use assistive technology."
210
+ },
211
+ "attribute": "accessible-label",
212
+ "reflect": false
213
+ },
214
+ "accessibleExpanded": {
215
+ "type": "boolean",
216
+ "mutable": true,
217
+ "complexType": {
218
+ "original": "boolean",
219
+ "resolved": "boolean",
220
+ "references": {}
221
+ },
222
+ "required": false,
223
+ "optional": false,
224
+ "docs": {
225
+ "tags": [],
226
+ "text": "If a button expands or collapses adjacent content, then use the ariaExpanded\nprop to add the aria-expanded attribute to the button. Set the value to convey\nthe current expanded (true) or collapsed (false) state of the content."
227
+ },
228
+ "attribute": "accessible-expanded",
229
+ "reflect": true
230
+ },
231
+ "accessiblePopup": {
232
+ "type": "string",
233
+ "mutable": true,
234
+ "complexType": {
235
+ "original": "string",
236
+ "resolved": "string",
237
+ "references": {}
238
+ },
239
+ "required": false,
240
+ "optional": false,
241
+ "docs": {
242
+ "tags": [],
243
+ "text": "Use this property to add an aria-haspopup attribute to a button."
244
+ },
245
+ "attribute": "accessible-popup",
246
+ "reflect": true,
247
+ "defaultValue": "\"false\""
248
+ }
249
+ };
250
+ }
251
+ static get states() {
252
+ return {
253
+ "iconSize": {}
254
+ };
255
+ }
256
+ static get methods() {
257
+ return {
258
+ "setFocus": {
259
+ "complexType": {
260
+ "signature": "(options?: FocusOptions) => Promise<void>",
261
+ "parameters": [{
262
+ "name": "options",
263
+ "type": "FocusOptions",
264
+ "docs": ""
265
+ }],
266
+ "references": {
267
+ "Promise": {
268
+ "location": "global",
269
+ "id": "global::Promise"
270
+ },
271
+ "FocusOptions": {
272
+ "location": "global",
273
+ "id": "global::FocusOptions"
274
+ }
275
+ },
276
+ "return": "Promise<void>"
277
+ },
278
+ "docs": {
279
+ "text": "Sets focus. Use this method instead of the global focus().",
280
+ "tags": []
281
+ }
282
+ }
283
+ };
284
+ }
285
+ static get elementRef() { return "element"; }
286
+ }
@@ -57,7 +57,7 @@ export class DuetMenuBarLink {
57
57
  * Always the last one in the class.
58
58
  */
59
59
  render() {
60
- return (h(Host, null, h("a", { class: {
60
+ return (h(Host, { role: "listitem" }, h("a", { class: {
61
61
  "duet-menu-bar-link": true,
62
62
  "duet-theme-turva": this.theme === "turva",
63
63
  active: this.active,
@@ -32,13 +32,13 @@
32
32
  max-height: 100vh;
33
33
  overflow-y: auto;
34
34
  visibility: hidden;
35
- background: rgba(0, 41, 77, 0.85);
35
+ background: rgba(0, 41, 77, 0.3);
36
36
  opacity: 0;
37
37
  transition: 300ms ease;
38
38
  transition-delay: 200ms;
39
39
  }
40
40
  .duet-modal-overlay.duet-theme-turva {
41
- background: rgba(23, 28, 58, 0.85);
41
+ background: rgba(23, 28, 58, 0.3);
42
42
  }
43
43
  .duet-modal-overlay.duet-modal-active {
44
44
  visibility: visible;
@@ -3,11 +3,12 @@
3
3
  */
4
4
  import { h } from "@stencil/core";
5
5
  import { disableBodyScroll, enableBodyScroll } from "body-scroll-lock/lib/bodyScrollLock.es6.js";
6
- import { hasSlot, inheritGlobalTheme } from "../../common";
6
+ import { inheritGlobalTheme } from "../../common";
7
7
  import { createID } from "../../utils/create-id";
8
8
  import { focusElement, FocusGuard } from "../../utils/focus-utils";
9
9
  import { isEscapeKey } from "../../utils/keyboard-utils";
10
10
  import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, getLocaleString, } from "../../utils/language-utils";
11
+ import { hasSlot } from "../../utils/slot-utils";
11
12
  import { Teleport } from "../../utils/teleport";
12
13
  // The transition below is slightly higher than the actual CSS transition as VoiceOver on
13
14
  // iOS has otherwise problems moving the focus from modal back to the original element.
@@ -6,7 +6,7 @@ import { inheritGlobalTheme } from "../../common/themeable-component";
6
6
  import { createID } from "../../utils/create-id";
7
7
  import { isArrowDownKey, isArrowLeftKey, isArrowRightKey, isArrowUpKey, isEnterKey, isEscapeKey, isTabKey, } from "../../utils/keyboard-utils";
8
8
  import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, } from "../../utils/language-utils";
9
- import { slotElementCheck } from "../../utils/slot-utils";
9
+ import { checkNamedSlotElement } from "../../utils/slot-utils";
10
10
  import { parsePossibleJSON } from "../../utils/string-utils";
11
11
  function toggleInArray(arr, item) {
12
12
  return arr.includes(item) ? arr.filter(i => i !== item) : [...arr, item];
@@ -170,6 +170,7 @@ export class DuetMultiselect {
170
170
  componentWillLoad() {
171
171
  inheritGlobalTheme(this);
172
172
  this.isCaptionVisible = !!this.caption;
173
+ checkNamedSlotElement(this.element, "tooltip", "duet-tooltip", 1, true);
173
174
  this.refresh();
174
175
  }
175
176
  connectedCallback() {
@@ -207,7 +208,7 @@ export class DuetMultiselect {
207
208
  "duet-theme-turva": this.theme === "turva",
208
209
  "duet-input-top-caption-shown": this.isCaptionVisible,
209
210
  "has-error": !!this.error,
210
- }, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: this.identifier }, this.label), this.tooltip && (h("duet-tooltip", { class: "duet-multiselect-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { name: "tooltip", onSlotchange: ev => slotElementCheck(ev, this, "duet-tooltip") }), this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { class: "duet-multiselect-wrapper" }, h("button", { id: this.identifier, ref: el => (this.multiselectElement = el), class: { "duet-multiselect": true, "duet-multiselect-active": this.checkboxesVisible }, tabindex: "0", onClick: () => this.toggleCheckboxes(), onFocus: e => this.onFocus(e), onBlur: e => this.onBlur(e), role: "combobox", "aria-expanded": this.checkboxesVisible ? "true" : "false", "aria-haspopup": "listbox", "aria-labelledby": this.labelId, "aria-describedby": this.getDescribedBy(), "aria-owns": `${this.identifier}-checkboxes`, onKeyDown: (e) => this.onMultiselectInputKeyDown(e), disabled: this.disabled }, h("span", { role: "textbox", "aria-readonly": "true", "aria-multiline": "false", "aria-autocomplete": "none", "aria-controls": `${this.identifier}-checkboxes`, "aria-label": this.placeholderLabel[this.language], class: "duet-multiselect-label" }, this.placeholder), this.value && this.value.length > 0 && (h("span", { class: "duet-multiselect-badge" }, this.value.length, h("duet-visually-hidden", null, this.selectedLangObject[this.language], ", ", this.value.map(item => item.label).join(", ")))), h("svg", { class: { "duet-multiselect-icon": true, "duet-multiselect-icon--rotate": this.checkboxesVisible }, fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" }))), h("div", { id: `${this.identifier}-checkboxes`, role: "listbox", class: {
211
+ }, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: this.identifier }, this.label), this.tooltip && (h("duet-tooltip", { class: "duet-multiselect-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { name: "tooltip" }), this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { class: "duet-multiselect-wrapper" }, h("button", { id: this.identifier, ref: el => (this.multiselectElement = el), class: { "duet-multiselect": true, "duet-multiselect-active": this.checkboxesVisible }, tabindex: "0", onClick: () => this.toggleCheckboxes(), onFocus: e => this.onFocus(e), onBlur: e => this.onBlur(e), role: "combobox", "aria-expanded": this.checkboxesVisible ? "true" : "false", "aria-haspopup": "listbox", "aria-labelledby": this.labelId, "aria-describedby": this.getDescribedBy(), "aria-owns": `${this.identifier}-checkboxes`, onKeyDown: (e) => this.onMultiselectInputKeyDown(e), disabled: this.disabled }, h("span", { role: "textbox", "aria-readonly": "true", "aria-multiline": "false", "aria-autocomplete": "none", "aria-controls": `${this.identifier}-checkboxes`, "aria-label": this.placeholderLabel[this.language], class: "duet-multiselect-label" }, this.placeholder), this.value && this.value.length > 0 && (h("span", { class: "duet-multiselect-badge" }, this.value.length, h("duet-visually-hidden", null, this.selectedLangObject[this.language], ", ", this.value.map(item => item.label).join(", ")))), h("svg", { class: { "duet-multiselect-icon": true, "duet-multiselect-icon--rotate": this.checkboxesVisible }, fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" }))), h("div", { id: `${this.identifier}-checkboxes`, role: "listbox", class: {
211
212
  "duet-multiselect-checkboxes": true,
212
213
  "duet-multiselect-checkboxes-active": this.checkboxesVisible,
213
214
  }, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, this.processedItems && this.allControls && (h("div", { class: "duet-multiselect-all-control-buttons" }, h("button", { class: "duet-multiselect-select-all", onClick: this.handleSelectAllClick, id: this.getOptionIdentifier(-2), onKeyDown: (e) => this.onCheckboxKeyDown(e, -2) }, this.selectAllLabel[this.language]), h("button", { class: "duet-multiselect-clear-all", onClick: this.handleClearAllClick, id: this.getOptionIdentifier(-1), onKeyDown: (e) => this.onCheckboxKeyDown(e, -1) }, this.clearAllLabel[this.language]))), this.processedItems &&
@@ -9,7 +9,7 @@ import { createID } from "../../utils/create-id";
9
9
  import { isArrowDownKey, isArrowLeftKey, isArrowRightKey, isArrowUpKey, isBackspaceKey, subscribeTabbingChange, unsubscribeTabbingChange, } from "../../utils/keyboard-utils";
10
10
  import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, getLocale, getLocaleString, } from "../../utils/language-utils";
11
11
  import { clamp, roundTo, SafeParseFloat } from "../../utils/math.utils";
12
- import { slotElementCheck } from "../../utils/slot-utils";
12
+ import { checkNamedSlotElement } from "../../utils/slot-utils";
13
13
  /**
14
14
  * @slot tooltip - Use to place a tooltip alongside the label.
15
15
  */
@@ -237,6 +237,7 @@ export class DuetNumberInput {
237
237
  if (this.value) {
238
238
  this.value = this.localizeValue(SafeParseFloat(this.value, this.locale));
239
239
  }
240
+ checkNamedSlotElement(this.element, "tooltip", "duet-tooltip", 1, true);
240
241
  }
241
242
  connectedCallback() {
242
243
  connectLanguageChangeObserver(this, [
@@ -291,7 +292,7 @@ export class DuetNumberInput {
291
292
  "duet-theme-turva": this.theme === "turva",
292
293
  "duet-expand": this.expand,
293
294
  "duet-m-0": this.margin === "none",
294
- } }, h("div", { class: "duet-number-container" }, h("duet-input", { ref: input => (this.duetInputElement = input), onDuetChange: event => this.handleChange(event), onDuetFocus: this.handleFocus, onDuetBlur: event => this.handleBlur(event), onKeyDown: event => this.handleKeyDown(event), label: this.label, value: this.value ? `${this.value} ${this.unit}` : "", error: this.error, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": cleanedValue != null ? cleanedValue : "", maxlength: maxlength, name: this.name, component: "number", required: this.required, disabled: this.disabled, role: this.role, labelHidden: this.labelHidden, tooltip: this.tooltip, identifier: identifier, theme: this.theme, margin: "none", expand: true, numericKeyboard: true, autoComplete: "off", type: "text", accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleLabelledBy: this.accessibleLabelledBy, accessibleDescription: this.accessibleDescription, accessibleDetails: this.accessibleDetails, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy }, h("slot", { name: "tooltip", onSlotchange: ev => slotElementCheck(ev, this, "duet-tooltip") }), h("div", { class: { "duet-number-buttons": true, "duet-no-label": this.labelHidden } }, h("button", { "aria-controls": identifier, disabled: this.disabled, "aria-disabled": cleanedValue == null || cleanedValue === this.min ? "true" : "false", class: "duet-number-button duet-number-button-subtract", onClick: this.subtract, type: "button" }, h("duet-visually-hidden", null, this.accessibleSubtract, " ", this.step), h("duet-icon", { icon: subtractIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })), h("button", { "aria-controls": identifier, disabled: this.disabled, "aria-disabled": cleanedValue === this.max ? "true" : "false", class: "duet-number-button duet-number-button-add", onClick: this.add, type: "button" }, h("duet-visually-hidden", null, this.accessibleAdd, " ", this.step), h("duet-icon", { icon: addIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })))), this.accessibleLiveEnabled && (h("duet-visually-hidden", { "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement())))));
295
+ } }, h("div", { class: "duet-number-container" }, h("duet-input", { ref: input => (this.duetInputElement = input), onDuetChange: event => this.handleChange(event), onDuetFocus: this.handleFocus, onDuetBlur: event => this.handleBlur(event), onKeyDown: event => this.handleKeyDown(event), label: this.label, value: this.value ? `${this.value} ${this.unit}` : "", error: this.error, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": cleanedValue != null ? cleanedValue : "", maxlength: maxlength, name: this.name, component: "number", required: this.required, disabled: this.disabled, role: this.role, labelHidden: this.labelHidden, tooltip: this.tooltip, identifier: identifier, theme: this.theme, margin: "none", expand: true, numericKeyboard: true, autoComplete: "off", type: "text", accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleLabelledBy: this.accessibleLabelledBy, accessibleDescription: this.accessibleDescription, accessibleDetails: this.accessibleDetails, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy }, h("slot", { name: "tooltip" }), h("div", { class: { "duet-number-buttons": true, "duet-no-label": this.labelHidden } }, h("button", { "aria-controls": identifier, disabled: this.disabled, "aria-disabled": cleanedValue == null || cleanedValue === this.min ? "true" : "false", class: "duet-number-button duet-number-button-subtract", onClick: this.subtract, type: "button" }, h("duet-visually-hidden", null, this.accessibleSubtract, " ", this.step), h("duet-icon", { icon: subtractIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })), h("button", { "aria-controls": identifier, disabled: this.disabled, "aria-disabled": cleanedValue === this.max ? "true" : "false", class: "duet-number-button duet-number-button-add", onClick: this.add, type: "button" }, h("duet-visually-hidden", null, this.accessibleAdd, " ", this.step), h("duet-icon", { icon: addIcon.svg, size: "small", margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary" })))), this.accessibleLiveEnabled && (h("duet-visually-hidden", { "aria-live": "polite", "aria-atomic": "true", "aria-relevant": "all" }, this.formatAnnouncement())))));
295
296
  }
296
297
  static get is() { return "duet-number-input"; }
297
298
  static get encapsulation() { return "scoped"; }
@@ -2,18 +2,34 @@
2
2
  * Built with Duet Design System
3
3
  */
4
4
  import { computePosition, flip, offset } from "@floating-ui/dom";
5
- import { Build, h, Host } from "@stencil/core";
5
+ import { Build, h, Host, } from "@stencil/core";
6
6
  import { inheritGlobalTheme } from "../../common/themeable-component";
7
7
  import { focusElement } from "../../utils/focus-utils";
8
8
  import { isArrowDownKey, isArrowUpKey, isEscapeKey, isTabKey } from "../../utils/keyboard-utils";
9
9
  import { Teleport } from "../../utils/teleport";
10
10
  export class DuetPopupMenu {
11
11
  constructor() {
12
+ this.setOpenButton = (element) => {
13
+ if (!element) {
14
+ return;
15
+ }
16
+ try {
17
+ const button = element;
18
+ button.accessiblePopup = "true";
19
+ button.accessibleExpanded = false;
20
+ button.setAttribute("trailing-icon", "action-arrow-down-small");
21
+ this.openButton = button;
22
+ }
23
+ catch (_e) { }
24
+ };
25
+ this.openButtonEventListener = () => {
26
+ this.toggle();
27
+ };
12
28
  this.updatePlacement = async () => {
13
- if (!this.controller) {
29
+ if (!this.openButton) {
14
30
  return;
15
31
  }
16
- const coordinates = await computePosition(this.controller, this.menuElement, {
32
+ const coordinates = await computePosition(this.openButton, this.menuElement, {
17
33
  middleware: [offset({ mainAxis: this.mainAxisOffset, crossAxis: this.crossAxisOffset }), flip()],
18
34
  placement: this.placement,
19
35
  strategy: this.position,
@@ -45,6 +61,15 @@ export class DuetPopupMenu {
45
61
  this.updatePlacement();
46
62
  }
47
63
  }
64
+ connectedCallback() {
65
+ this.handleControllerChange(this.controller, null);
66
+ }
67
+ disconnectedCallback() {
68
+ if (this.openButton) {
69
+ this.openButton.removeEventListener("click", this.openButtonEventListener);
70
+ this.openButton.removeAttribute("trailing-icon");
71
+ }
72
+ }
48
73
  /**
49
74
  * Component event handling.
50
75
  */
@@ -52,7 +77,7 @@ export class DuetPopupMenu {
52
77
  if (this.open) {
53
78
  // When Esc is pressed the menu should be closed
54
79
  if (isEscapeKey(evt)) {
55
- this.focusController();
80
+ this.focusOpenButton();
56
81
  this.hide();
57
82
  }
58
83
  }
@@ -90,7 +115,7 @@ export class DuetPopupMenu {
90
115
  }
91
116
  }
92
117
  handleClick(evt) {
93
- const isClickOutside = evt.composedPath().every(node => node !== this.element && node !== this.controller);
118
+ const isClickOutside = evt.composedPath().every(node => node !== this.element && node !== this.openButton);
94
119
  if (this.open && isClickOutside) {
95
120
  this.hide();
96
121
  }
@@ -106,23 +131,12 @@ export class DuetPopupMenu {
106
131
  */
107
132
  async show() {
108
133
  this.open = true;
109
- this.teleport.go();
110
- if (this.accessibleRole === "menu") {
111
- this.itemElements[0].setFocus();
112
- }
113
- this.duetToggle.emit({ open: this.open, component: "duet-popup-menu" });
114
- this.updatePlacement();
115
134
  }
116
135
  /**
117
136
  * Hide.
118
137
  */
119
138
  async hide() {
120
139
  this.open = false;
121
- this.duetToggle.emit({ open: this.open, component: "duet-popup-menu" });
122
- if (this.accessibleRole === "menu") {
123
- this.focusController();
124
- }
125
- this.teleport.resume(200);
126
140
  }
127
141
  /**
128
142
  * Toggle.
@@ -135,9 +149,53 @@ export class DuetPopupMenu {
135
149
  this.show();
136
150
  }
137
151
  }
138
- focusController() {
139
- if (this.controller) {
140
- focusElement(this.controller);
152
+ handleControllerChange(newValue, oldValue) {
153
+ if (!!newValue === !!oldValue) {
154
+ return;
155
+ }
156
+ if (typeof this.controller === "string") {
157
+ this.setOpenButton(document.getElementById(this.controller));
158
+ if (this.openButton) {
159
+ this.openButton.addEventListener("click", this.openButtonEventListener);
160
+ }
161
+ }
162
+ else {
163
+ this.setOpenButton(this.controller);
164
+ }
165
+ }
166
+ handleOpenChange(newValue, oldValue) {
167
+ if (!!newValue === !!oldValue) {
168
+ return;
169
+ }
170
+ if (this.open && !oldValue) {
171
+ if (this.openButton) {
172
+ this.openButton.accessibleExpanded = true;
173
+ }
174
+ this.teleport.go(true);
175
+ this.updatePlacement();
176
+ setTimeout(() => {
177
+ if (this.accessibleRole === "menu") {
178
+ this.itemElements[0].setFocus();
179
+ }
180
+ this.duetToggle.emit({ open: this.open, component: "duet-popup-menu" });
181
+ }, 200);
182
+ }
183
+ else if (!this.open && oldValue) {
184
+ if (this.openButton) {
185
+ this.openButton.accessibleExpanded = false;
186
+ }
187
+ setTimeout(() => {
188
+ if (this.accessibleRole === "menu") {
189
+ this.focusOpenButton();
190
+ }
191
+ this.duetToggle.emit({ open: this.open, component: "duet-popup-menu" });
192
+ this.teleport.resume();
193
+ }, 200);
194
+ }
195
+ }
196
+ focusOpenButton() {
197
+ if (this.open) {
198
+ focusElement(this.openButton);
141
199
  }
142
200
  }
143
201
  get itemElements() {
@@ -156,8 +214,9 @@ export class DuetPopupMenu {
156
214
  const positionStyles = {
157
215
  top: `${this.menuY}px`,
158
216
  left: `${this.menuX}px`,
217
+ position: this.position,
159
218
  };
160
- return (h(Host, { class: this.position }, h("div", { ref: element => (this.menuElement = element), style: positionStyles, class: { open: this.open, "duet-popup-menu-list": true, "duet-theme-turva": this.theme === "turva" }, role: this.accessibleRole, "aria-label": this.accessibleLabel }, h("slot", null))));
219
+ return (h(Host, null, h("div", { ref: element => (this.menuElement = element), style: positionStyles, class: { open: this.open, "duet-popup-menu-list": true, "duet-theme-turva": this.theme === "turva" }, role: this.accessibleRole, "aria-label": this.accessibleLabel }, h("slot", null))));
161
220
  }
162
221
  static get is() { return "duet-popup-menu"; }
163
222
  static get encapsulation() { return "shadow"; }
@@ -233,11 +292,11 @@ export class DuetPopupMenu {
233
292
  "defaultValue": "\"\""
234
293
  },
235
294
  "controller": {
236
- "type": "unknown",
295
+ "type": "string",
237
296
  "mutable": false,
238
297
  "complexType": {
239
- "original": "HTMLElement & FocusableComponent & OpenerComponent",
240
- "resolved": "HTMLElement & FocusableComponent & OpenerComponent",
298
+ "original": "string | (HTMLElement & FocusableComponent & OpenerComponent)",
299
+ "resolved": "HTMLElement & FocusableComponent & OpenerComponent | string",
241
300
  "references": {
242
301
  "HTMLElement": {
243
302
  "location": "global",
@@ -260,7 +319,9 @@ export class DuetPopupMenu {
260
319
  "docs": {
261
320
  "tags": [],
262
321
  "text": "Element controlling the opening and closing of the popup menu."
263
- }
322
+ },
323
+ "attribute": "controller",
324
+ "reflect": false
264
325
  },
265
326
  "placement": {
266
327
  "type": "string",
@@ -282,7 +343,7 @@ export class DuetPopupMenu {
282
343
  },
283
344
  "position": {
284
345
  "type": "string",
285
- "mutable": false,
346
+ "mutable": true,
286
347
  "complexType": {
287
348
  "original": "\"absolute\" | \"fixed\"",
288
349
  "resolved": "\"absolute\" | \"fixed\"",
@@ -440,6 +501,15 @@ export class DuetPopupMenu {
440
501
  };
441
502
  }
442
503
  static get elementRef() { return "element"; }
504
+ static get watchers() {
505
+ return [{
506
+ "propName": "controller",
507
+ "methodName": "handleControllerChange"
508
+ }, {
509
+ "propName": "open",
510
+ "methodName": "handleOpenChange"
511
+ }];
512
+ }
443
513
  static get listeners() {
444
514
  return [{
445
515
  "name": "keyup",
@@ -30,6 +30,7 @@ export class DuetPopupMenuItem {
30
30
  this.theme = "";
31
31
  this.url = undefined;
32
32
  this.external = false;
33
+ this.targetLanguage = undefined;
33
34
  this.value = undefined;
34
35
  this.leadingIcon = undefined;
35
36
  this.leadingIconColor = undefined;
@@ -62,7 +63,7 @@ export class DuetPopupMenuItem {
62
63
  active: this.active,
63
64
  "duet-theme-turva": this.theme === "turva",
64
65
  };
65
- return (h(Host, null, h(TagName, { ref: element => (this.itemElement = element), tabIndex: this.accessibleRole === "menuitem" ? -1 : 0, onFocus: this.onFocus, onBlur: this.onBlur, role: `${TagName === "a" ? "link" : "button"} ${this.accessibleRole}`, "aria-label": this.accessibleLabel, class: classes, value: this.value, href: this.url, target: this.external ? "_blank" : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("duet-icon", { name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), h("span", { class: "duet-popup-menu-item-label" }, h("slot", null)), this.trailingIcon && (h("duet-icon", { name: this.trailingIcon, size: "x-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && h("span", { class: "duet-popup-menu-item-trailing" }, this.trailingText))));
66
+ return (h(Host, { role: this.accessibleRole }, h(TagName, { ref: element => (this.itemElement = element), tabIndex: this.accessibleRole === "menuitem" ? -1 : 0, onFocus: this.onFocus, onBlur: this.onBlur, role: `${TagName === "a" ? "link" : "button"}`, "aria-label": this.accessibleLabel, class: classes, value: this.value, href: this.url, target: this.external ? "_blank" : undefined, rel: this.external ? "noopener" : undefined, lang: TagName === "button" ? undefined : this.targetLanguage, hreflang: TagName === "button" ? undefined : this.targetLanguage }, this.leadingIcon && (h("duet-icon", { name: this.leadingIcon, size: "x-small", color: this.leadingIconColor ? this.leadingIconColor : "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), h("span", { class: "duet-popup-menu-item-label" }, h("slot", null)), (this.trailingIcon || this.active) && (h("duet-icon", { name: this.active ? "messaging-checked-small" : this.trailingIcon, size: this.active ? "xx-small" : "x-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && h("span", { class: "duet-popup-menu-item-trailing" }, this.trailingText))));
66
67
  }
67
68
  static get is() { return "duet-popup-menu-item"; }
68
69
  static get encapsulation() { return "shadow"; }
@@ -172,6 +173,24 @@ export class DuetPopupMenuItem {
172
173
  "reflect": false,
173
174
  "defaultValue": "false"
174
175
  },
176
+ "targetLanguage": {
177
+ "type": "string",
178
+ "mutable": false,
179
+ "complexType": {
180
+ "original": "\"en\" | \"fi\" | \"sv\"",
181
+ "resolved": "\"en\" | \"fi\" | \"sv\"",
182
+ "references": {}
183
+ },
184
+ "required": false,
185
+ "optional": false,
186
+ "docs": {
187
+ "tags": [],
188
+ "text": "Language of the link. Use this only for language selection links."
189
+ },
190
+ "attribute": "target-language",
191
+ "reflect": false,
192
+ "defaultValue": "undefined"
193
+ },
175
194
  "value": {
176
195
  "type": "string",
177
196
  "mutable": false,