@duetds/components 6.8.2 → 6.8.3

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 (558) hide show
  1. package/hydrate/index.js +254 -58
  2. package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
  3. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
  9. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
  13. package/lib/cjs/duet-collapsible.cjs.entry.js +4 -2
  14. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  16. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  18. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-editable-table_3.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  21. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
  31. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +11 -3
  32. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +17 -4
  33. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
  34. package/lib/cjs/duet-menu-bar.cjs.entry.js +7 -1
  35. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  36. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  39. package/lib/cjs/duet-number-input.cjs.entry.js +3 -3
  40. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-scrollable_3.cjs.entry.js +2 -2
  46. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  47. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-slideout-lang.cjs.entry.js +2 -2
  49. package/lib/cjs/duet-slideout-link.cjs.entry.js +3 -3
  50. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +9 -3
  51. package/lib/cjs/duet-slideout-panel.cjs.entry.js +30 -9
  52. package/lib/cjs/duet-slideout.cjs.entry.js +41 -9
  53. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  54. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +13 -3
  55. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +31 -5
  56. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +12 -3
  57. package/lib/cjs/duet-submenu-bar.cjs.entry.js +42 -4
  58. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  60. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +11 -3
  61. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +17 -4
  62. package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
  63. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -1
  65. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  66. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  68. package/lib/cjs/duet.cjs.js +2 -2
  69. package/lib/cjs/{focus-utils-65c3a6dd.js → focus-utils-2ff2eab6.js} +1 -1
  70. package/lib/cjs/{index-5bd185a8.js → index-6d5f06d0.js} +1 -1
  71. package/lib/cjs/loader.cjs.js +2 -2
  72. package/lib/collection/components/duet-collapsible/duet-collapsible.css +3 -0
  73. package/lib/collection/components/duet-collapsible/duet-collapsible.js +20 -0
  74. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +16 -1
  75. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +7 -0
  76. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +7 -0
  77. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +41 -2
  78. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +7 -0
  79. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +9 -1
  80. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +7 -0
  81. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +1 -1
  82. package/lib/collection/components/duet-number-input/duet-number-input.js +2 -2
  83. package/lib/collection/components/duet-slideout/duet-slideout.css +14 -0
  84. package/lib/collection/components/duet-slideout/duet-slideout.js +68 -6
  85. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  86. package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +7 -0
  87. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +1 -1
  88. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +16 -0
  89. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +53 -6
  90. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +8 -1
  91. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +33 -1
  92. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +7 -0
  93. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +71 -2
  94. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +41 -8
  95. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +73 -3
  96. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +30 -0
  97. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +29 -1
  98. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +54 -0
  99. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +28 -1
  100. package/lib/collection/components/duet-tab-group/duet-tab-group.css +8 -0
  101. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +7 -0
  102. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +41 -2
  103. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +7 -0
  104. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +9 -1
  105. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +7 -0
  106. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +1 -1
  107. package/lib/collection/components/duet-tooltip/duet-tooltip.js +3 -0
  108. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  109. package/lib/dist-custom-elements/duet-alert.js +1 -1
  110. package/lib/dist-custom-elements/duet-badge.js +1 -1
  111. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  112. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  113. package/lib/dist-custom-elements/duet-button.js +1 -1
  114. package/lib/dist-custom-elements/duet-caption.js +1 -1
  115. package/lib/dist-custom-elements/duet-card.js +3 -3
  116. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  117. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  118. package/lib/dist-custom-elements/duet-choice-group.js +6 -6
  119. package/lib/dist-custom-elements/duet-choice.js +5 -5
  120. package/lib/dist-custom-elements/duet-collapsible.js +6 -3
  121. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  122. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  123. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  124. package/lib/dist-custom-elements/duet-date-picker.js +10 -10
  125. package/lib/dist-custom-elements/duet-divider.js +1 -1
  126. package/lib/dist-custom-elements/duet-editable-table.js +1 -1
  127. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  128. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  129. package/lib/dist-custom-elements/duet-footer.js +4 -4
  130. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  131. package/lib/dist-custom-elements/duet-grid.js +1 -1
  132. package/lib/dist-custom-elements/duet-header.js +8 -8
  133. package/lib/dist-custom-elements/duet-heading.js +1 -1
  134. package/lib/dist-custom-elements/duet-hero.js +9 -9
  135. package/lib/dist-custom-elements/duet-icon.js +1 -1
  136. package/lib/dist-custom-elements/duet-input.js +1 -1
  137. package/lib/dist-custom-elements/duet-label.js +1 -1
  138. package/lib/dist-custom-elements/duet-layout.js +1 -1
  139. package/lib/dist-custom-elements/duet-link.js +1 -1
  140. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  141. package/lib/dist-custom-elements/duet-list.js +1 -1
  142. package/lib/dist-custom-elements/duet-logo.js +1 -1
  143. package/lib/dist-custom-elements/duet-menu-bar-button.js +3 -3
  144. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +12 -4
  145. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +20 -6
  146. package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
  147. package/lib/dist-custom-elements/duet-menu-bar.js +9 -3
  148. package/lib/dist-custom-elements/duet-modal.js +7 -7
  149. package/lib/dist-custom-elements/duet-multiselect.js +8 -8
  150. package/lib/dist-custom-elements/duet-nav.js +1 -1
  151. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  152. package/lib/dist-custom-elements/duet-notification.js +2 -2
  153. package/lib/dist-custom-elements/duet-number-input.js +11 -11
  154. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  155. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  156. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  157. package/lib/dist-custom-elements/duet-progress.js +1 -1
  158. package/lib/dist-custom-elements/duet-radio-group.js +6 -6
  159. package/lib/dist-custom-elements/duet-radio.js +1 -1
  160. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  161. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  162. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  163. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  164. package/lib/dist-custom-elements/duet-select.js +1 -1
  165. package/lib/dist-custom-elements/duet-slideout-lang.js +4 -10
  166. package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
  167. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +12 -5
  168. package/lib/dist-custom-elements/duet-slideout-panel.js +32 -10
  169. package/lib/dist-custom-elements/duet-slideout.js +43 -11
  170. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  171. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  172. package/lib/dist-custom-elements/duet-step.js +4 -4
  173. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  174. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +15 -4
  175. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +35 -7
  176. package/lib/dist-custom-elements/duet-submenu-bar-link.js +14 -4
  177. package/lib/dist-custom-elements/duet-submenu-bar.js +46 -6
  178. package/lib/dist-custom-elements/duet-tab-group.js +10 -10
  179. package/lib/dist-custom-elements/duet-tab.js +1 -1
  180. package/lib/dist-custom-elements/duet-table.js +1 -1
  181. package/lib/dist-custom-elements/duet-textarea.js +8 -8
  182. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  183. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +12 -4
  184. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +20 -6
  185. package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
  186. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  187. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  188. package/lib/dist-custom-elements/duet-tray.js +3 -3
  189. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  190. package/lib/dist-custom-elements/duet-upload.js +18 -18
  191. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  192. package/lib/dist-custom-elements/index.js +1 -1
  193. package/lib/dist-custom-elements/{p-f6dad5c3.js → p-05e73b74.js} +1 -1
  194. package/lib/dist-custom-elements/{p-4040e9d1.js → p-10030e7c.js} +1 -1
  195. package/lib/dist-custom-elements/{p-df0799f0.js → p-13d9d4b0.js} +1 -1
  196. package/lib/dist-custom-elements/{p-b239c17f.js → p-1cb77270.js} +2 -2
  197. package/lib/dist-custom-elements/{p-2f7dd873.js → p-26afb575.js} +1 -1
  198. package/lib/dist-custom-elements/{p-6c1ba2d9.js → p-2e97d3cf.js} +1 -1
  199. package/lib/dist-custom-elements/{p-c6acb315.js → p-4a7f34e4.js} +2 -2
  200. package/lib/dist-custom-elements/{p-7ef0b13d.js → p-4ad31816.js} +1 -1
  201. package/lib/dist-custom-elements/{p-68b17599.js → p-53076cdd.js} +2 -2
  202. package/lib/dist-custom-elements/{p-1e73f619.js → p-57aace09.js} +6 -3
  203. package/lib/dist-custom-elements/{p-a1c07138.js → p-5ab6461c.js} +1 -1
  204. package/lib/dist-custom-elements/{p-6b444ad0.js → p-681c9a42.js} +5 -5
  205. package/lib/dist-custom-elements/{p-015d1608.js → p-6a8cdb7b.js} +1 -1
  206. package/lib/dist-custom-elements/{p-27004490.js → p-7a6f9236.js} +1 -1
  207. package/lib/dist-custom-elements/{p-d0a59e71.js → p-84c970d9.js} +1 -1
  208. package/lib/dist-custom-elements/{p-17f54d13.js → p-87b5525b.js} +3 -3
  209. package/lib/dist-custom-elements/{p-92a173c2.js → p-89dbfa07.js} +1 -1
  210. package/lib/dist-custom-elements/{p-7003023f.js → p-8aa1b007.js} +1 -1
  211. package/lib/dist-custom-elements/{p-e76d5673.js → p-8d8f500f.js} +6 -6
  212. package/lib/dist-custom-elements/{p-84465a50.js → p-9556589f.js} +1 -1
  213. package/lib/dist-custom-elements/{p-35850774.js → p-9b6166b7.js} +1 -1
  214. package/lib/dist-custom-elements/{p-bd43e7e4.js → p-9bf072bd.js} +2 -2
  215. package/lib/dist-custom-elements/{p-07f7b627.js → p-9cfa785f.js} +3 -3
  216. package/lib/dist-custom-elements/{p-5881ed64.js → p-9f1bb199.js} +1 -1
  217. package/lib/dist-custom-elements/{p-b869fb52.js → p-a0efab88.js} +4 -4
  218. package/lib/dist-custom-elements/{p-f070808d.js → p-c86c6df0.js} +2 -2
  219. package/lib/dist-custom-elements/{p-a4002a4d.js → p-cb7de9dd.js} +1 -1
  220. package/lib/dist-custom-elements/{p-c828fba6.js → p-ce7b7450.js} +1 -1
  221. package/lib/dist-custom-elements/{p-43f613b6.js → p-d5e06462.js} +1 -1
  222. package/lib/dist-custom-elements/{p-4ebe6fca.js → p-db69ae9d.js} +7 -7
  223. package/lib/dist-custom-elements/{p-f2ee6981.js → p-dd03af24.js} +1 -1
  224. package/lib/dist-custom-elements/{p-a3194fa3.js → p-f7a12024.js} +8 -8
  225. package/lib/duet/duet.esm.js +1 -1
  226. package/lib/duet/duet.js +1 -1
  227. package/lib/duet/{p-a2fba110.system.entry.js → p-0115b516.system.entry.js} +1 -1
  228. package/lib/duet/{p-24e47e60.system.entry.js → p-01833853.system.entry.js} +1 -1
  229. package/lib/duet/{p-5f4a75ea.system.entry.js → p-032d0db3.system.entry.js} +1 -1
  230. package/lib/duet/{p-d719bc5b.system.entry.js → p-0335d3ba.system.entry.js} +2 -2
  231. package/lib/duet/p-04a1f201.entry.js +4 -0
  232. package/lib/duet/{p-4a0eabaa.system.entry.js → p-07f8de09.system.entry.js} +1 -1
  233. package/lib/duet/{p-898b51f5.entry.js → p-0f2c807b.entry.js} +1 -1
  234. package/lib/duet/p-1515b46a.entry.js +4 -0
  235. package/lib/duet/{p-77e68564.entry.js → p-15b65a7c.entry.js} +1 -1
  236. package/lib/duet/p-15e1c955.entry.js +4 -0
  237. package/lib/duet/{p-0cc7ecde.system.entry.js → p-18a1350b.system.entry.js} +2 -2
  238. package/lib/duet/{p-04e7a695.system.entry.js → p-1bb2106c.system.entry.js} +1 -1
  239. package/lib/duet/{p-484cb1df.entry.js → p-1c21f6ee.entry.js} +1 -1
  240. package/lib/duet/{p-aba0c851.system.entry.js → p-1ccc3647.system.entry.js} +1 -1
  241. package/lib/duet/{p-e3dfa3fd.system.entry.js → p-1e86fdd0.system.entry.js} +1 -1
  242. package/lib/duet/{p-61b2a984.entry.js → p-1ea20994.entry.js} +1 -1
  243. package/lib/duet/{p-aa4d6d89.entry.js → p-1ec42ecd.entry.js} +1 -1
  244. package/lib/duet/{p-7b98e5b6.system.entry.js → p-20291d6a.system.entry.js} +1 -1
  245. package/lib/duet/{p-2c4f8685.system.entry.js → p-259eff20.system.entry.js} +1 -1
  246. package/lib/duet/p-268a27e0.system.entry.js +4 -0
  247. package/lib/duet/{p-68e640b3.system.entry.js → p-2765a53e.system.entry.js} +1 -1
  248. package/lib/duet/p-2a57d9b6.entry.js +4 -0
  249. package/lib/duet/{p-e0273afd.system.entry.js → p-2b3c2e41.system.entry.js} +1 -1
  250. package/lib/duet/{p-3f59ba68.entry.js → p-2c19f162.entry.js} +1 -1
  251. package/lib/duet/{p-05b8ca0a.system.entry.js → p-2d0a6607.system.entry.js} +1 -1
  252. package/lib/duet/{p-2c8c2eb0.entry.js → p-2e5b3bcf.entry.js} +1 -1
  253. package/lib/duet/{p-5f6f8b70.entry.js → p-2e6a3a17.entry.js} +1 -1
  254. package/lib/duet/{p-2020fc25.system.entry.js → p-31159c85.system.entry.js} +1 -1
  255. package/lib/duet/{p-0c17cc73.entry.js → p-35afcb27.entry.js} +1 -1
  256. package/lib/duet/p-39c79c00.system.entry.js +4 -0
  257. package/lib/duet/p-3ab084e8.system.entry.js +4 -0
  258. package/lib/duet/{p-1878784a.entry.js → p-3aeb487a.entry.js} +1 -1
  259. package/lib/duet/{p-3646032b.entry.js → p-3c5967bc.entry.js} +1 -1
  260. package/lib/duet/p-3dc1f3c6.system.entry.js +4 -0
  261. package/lib/duet/p-3f01f964.system.entry.js +4 -0
  262. package/lib/duet/{p-7204d1fd.system.entry.js → p-3ffbaf35.system.entry.js} +1 -1
  263. package/lib/duet/p-40b6203e.system.entry.js +4 -0
  264. package/lib/duet/{p-42160f39.entry.js → p-4266b177.entry.js} +1 -1
  265. package/lib/duet/{p-746ea729.entry.js → p-44c56bb6.entry.js} +1 -1
  266. package/lib/duet/{p-488a4d3f.entry.js → p-470e0520.entry.js} +1 -1
  267. package/lib/duet/p-475f863c.entry.js +4 -0
  268. package/lib/duet/{p-b457649c.entry.js → p-48a22eca.entry.js} +1 -1
  269. package/lib/duet/{p-7f7f4403.system.entry.js → p-49ebb54d.system.entry.js} +1 -1
  270. package/lib/duet/p-4af19474.entry.js +4 -0
  271. package/lib/duet/p-4d25be5d.entry.js +4 -0
  272. package/lib/duet/{p-5bc052a4.entry.js → p-4d5cb241.entry.js} +1 -1
  273. package/lib/duet/{p-ae043b1a.entry.js → p-4ddb8b0f.entry.js} +1 -1
  274. package/lib/duet/p-4f203781.js +4 -0
  275. package/lib/duet/{p-4e21a0e1.entry.js → p-50ee41e3.entry.js} +1 -1
  276. package/lib/duet/p-51588335.entry.js +4 -0
  277. package/lib/duet/{p-48ee2f44.entry.js → p-53de8491.entry.js} +1 -1
  278. package/lib/duet/p-56b49a2b.system.entry.js +4 -0
  279. package/lib/duet/{p-b9eec94d.entry.js → p-5a884cab.entry.js} +1 -1
  280. package/lib/duet/p-5bf71c27.entry.js +4 -0
  281. package/lib/duet/p-5fcf69f8.entry.js +4 -0
  282. package/lib/duet/{p-5b5238f6.system.entry.js → p-614c7065.system.entry.js} +1 -1
  283. package/lib/duet/{p-08577b4d.entry.js → p-64c8ddb9.entry.js} +1 -1
  284. package/lib/duet/{p-353cdb52.entry.js → p-68ab467a.entry.js} +1 -1
  285. package/lib/duet/{p-9e71007b.system.entry.js → p-70425e80.system.entry.js} +1 -1
  286. package/lib/duet/p-74c8d3c2.entry.js +4 -0
  287. package/lib/duet/{p-a5689603.system.entry.js → p-74e6b8fd.system.entry.js} +1 -1
  288. package/lib/duet/p-75492e02.system.entry.js +4 -0
  289. package/lib/duet/{p-346a2bd3.system.entry.js → p-76fdc86f.system.entry.js} +1 -1
  290. package/lib/duet/{p-1183c748.entry.js → p-770f94ca.entry.js} +1 -1
  291. package/lib/duet/p-77c2e21e.system.js +4 -0
  292. package/lib/duet/p-7c7f6370.entry.js +4 -0
  293. package/lib/duet/p-7f1506d7.entry.js +4 -0
  294. package/lib/duet/p-7ff34de9.entry.js +4 -0
  295. package/lib/duet/p-82e4f38f.entry.js +4 -0
  296. package/lib/duet/{p-1a769d18.entry.js → p-84cf594e.entry.js} +1 -1
  297. package/lib/duet/{p-3815cc9a.entry.js → p-84f17b60.entry.js} +1 -1
  298. package/lib/duet/{p-c99c31f7.entry.js → p-85961465.entry.js} +1 -1
  299. package/lib/duet/{p-6dd1beb2.entry.js → p-886c35c2.entry.js} +1 -1
  300. package/lib/duet/{p-ffa1f02e.system.entry.js → p-8ae86f38.system.entry.js} +1 -1
  301. package/lib/duet/{p-d2a65bd0.system.entry.js → p-8d4c36cc.system.entry.js} +1 -1
  302. package/lib/duet/{p-50e66d06.entry.js → p-8e6d9b39.entry.js} +1 -1
  303. package/lib/duet/{p-3d2b012c.entry.js → p-8ed7e105.entry.js} +1 -1
  304. package/lib/duet/p-8f1e0f63.entry.js +4 -0
  305. package/lib/duet/{p-5e3a7392.system.entry.js → p-9207cd90.system.entry.js} +1 -1
  306. package/lib/duet/{p-ef058a21.system.js → p-92d37e55.system.js} +1 -1
  307. package/lib/duet/{p-d48d67bc.entry.js → p-9431cbd9.entry.js} +1 -1
  308. package/lib/duet/{p-df278f38.system.entry.js → p-94fa2062.system.entry.js} +1 -1
  309. package/lib/duet/{p-0f50db76.entry.js → p-9693b127.entry.js} +1 -1
  310. package/lib/duet/{p-97eeacac.entry.js → p-9a911da7.entry.js} +1 -1
  311. package/lib/duet/{p-dc399de0.system.entry.js → p-9abc893a.system.entry.js} +1 -1
  312. package/lib/duet/{p-9e0534d6.entry.js → p-9aebf3f7.entry.js} +1 -1
  313. package/lib/duet/{p-2ed52ca0.system.entry.js → p-9ca2af16.system.entry.js} +1 -1
  314. package/lib/duet/{p-1e65e29d.system.entry.js → p-9d4592dc.system.entry.js} +1 -1
  315. package/lib/duet/{p-ec7a79f2.system.entry.js → p-9fd3df4e.system.entry.js} +1 -1
  316. package/lib/duet/{p-29413090.system.entry.js → p-a6653cdc.system.entry.js} +1 -1
  317. package/lib/duet/{p-0de14da6.system.entry.js → p-a8432547.system.entry.js} +1 -1
  318. package/lib/duet/{p-69617b20.entry.js → p-a8d67797.entry.js} +1 -1
  319. package/lib/duet/{p-f426cd26.system.entry.js → p-aabd9905.system.entry.js} +1 -1
  320. package/lib/duet/{p-308907c6.entry.js → p-ab4af140.entry.js} +1 -1
  321. package/lib/duet/p-abdd047f.system.entry.js +4 -0
  322. package/lib/duet/{p-70703d59.system.entry.js → p-b1296afd.system.entry.js} +1 -1
  323. package/lib/duet/{p-0b36298e.system.entry.js → p-b3c6d973.system.entry.js} +1 -1
  324. package/lib/duet/{p-f49afb80.system.entry.js → p-b7c160f8.system.entry.js} +1 -1
  325. package/lib/duet/{p-654e6734.system.entry.js → p-c3436d4d.system.entry.js} +1 -1
  326. package/lib/duet/{p-d114fc82.entry.js → p-c48232b6.entry.js} +1 -1
  327. package/lib/duet/p-c88e1b86.system.entry.js +4 -0
  328. package/lib/duet/{p-28fabb76.entry.js → p-c96b1fae.entry.js} +1 -1
  329. package/lib/duet/{p-d174f424.entry.js → p-c989c952.entry.js} +1 -1
  330. package/lib/duet/{p-41bac23d.entry.js → p-ca6f6878.entry.js} +1 -1
  331. package/lib/duet/{p-151a48c3.entry.js → p-cb814de3.entry.js} +1 -1
  332. package/lib/duet/p-cbd1e2c6.system.entry.js +4 -0
  333. package/lib/duet/{p-e0a55532.entry.js → p-cc332f12.entry.js} +1 -1
  334. package/lib/duet/p-cffc25f7.system.entry.js +4 -0
  335. package/lib/duet/p-d03517b4.system.entry.js +4 -0
  336. package/lib/duet/{p-c46a5357.js → p-d4d0fd29.js} +1 -1
  337. package/lib/duet/{p-4d16edd4.system.entry.js → p-d4e3b832.system.entry.js} +1 -1
  338. package/lib/duet/{p-cd515231.entry.js → p-d7014558.entry.js} +1 -1
  339. package/lib/duet/{p-f2f38e08.system.entry.js → p-d7d050f5.system.entry.js} +1 -1
  340. package/lib/duet/p-d871a695.system.entry.js +4 -0
  341. package/lib/duet/{p-582f45a6.entry.js → p-d8d0fb8f.entry.js} +1 -1
  342. package/lib/duet/{p-e48b3cb6.system.entry.js → p-d94e5b57.system.entry.js} +1 -1
  343. package/lib/duet/{p-374e2afa.system.entry.js → p-d9a1ce3e.system.entry.js} +1 -1
  344. package/lib/duet/p-da73f58c.system.entry.js +4 -0
  345. package/lib/duet/{p-06639fa9.system.js → p-dbc13c36.system.js} +1 -1
  346. package/lib/duet/p-dd6b8fec.system.entry.js +4 -0
  347. package/lib/duet/{p-0936046f.system.entry.js → p-deb0bf2b.system.entry.js} +1 -1
  348. package/lib/duet/{p-06e42ed2.system.entry.js → p-def345e8.system.entry.js} +1 -1
  349. package/lib/duet/{p-a7886626.system.entry.js → p-e30006d7.system.entry.js} +1 -1
  350. package/lib/duet/p-e459f448.entry.js +4 -0
  351. package/lib/duet/{p-7c95a58b.system.entry.js → p-e651dcce.system.entry.js} +1 -1
  352. package/lib/duet/{p-61f38e7c.entry.js → p-eb92e362.entry.js} +1 -1
  353. package/lib/duet/{p-6791f183.system.entry.js → p-ecb55af2.system.entry.js} +2 -2
  354. package/lib/duet/{p-642ab531.system.entry.js → p-ef7c6a28.system.entry.js} +2 -2
  355. package/lib/duet/p-efdc7c2e.entry.js +4 -0
  356. package/lib/duet/p-efe489f3.entry.js +4 -0
  357. package/lib/duet/{p-5db96ea2.system.entry.js → p-f5708af6.system.entry.js} +1 -1
  358. package/lib/duet/{p-b0a272b8.system.entry.js → p-f998b544.system.entry.js} +1 -1
  359. package/lib/duet/{p-b32e5d04.system.entry.js → p-fc1cf69f.system.entry.js} +1 -1
  360. package/lib/duet/p-fd7a5a08.entry.js +4 -0
  361. package/lib/duet/{p-b1a9298f.entry.js → p-fd7de93a.entry.js} +1 -1
  362. package/lib/duet/{p-c4c035fe.entry.js → p-fee010a2.entry.js} +1 -1
  363. package/lib/duet/{p-f3c7ffda.system.entry.js → p-ff84ff9d.system.entry.js} +1 -1
  364. package/lib/esm/duet-action-button.entry.js +1 -1
  365. package/lib/esm/duet-alert.entry.js +1 -1
  366. package/lib/esm/duet-badge.entry.js +1 -1
  367. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  368. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  369. package/lib/esm/duet-button_2.entry.js +1 -1
  370. package/lib/esm/duet-caption_4.entry.js +1 -1
  371. package/lib/esm/duet-card.entry.js +1 -1
  372. package/lib/esm/duet-checkbox.entry.js +1 -1
  373. package/lib/esm/duet-checkmark.entry.js +1 -1
  374. package/lib/esm/duet-choice_2.entry.js +2 -2
  375. package/lib/esm/duet-collapsible.entry.js +4 -2
  376. package/lib/esm/duet-combobox.entry.js +1 -1
  377. package/lib/esm/duet-contact-card.entry.js +1 -1
  378. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  379. package/lib/esm/duet-date-picker.entry.js +2 -2
  380. package/lib/esm/duet-divider_2.entry.js +1 -1
  381. package/lib/esm/duet-editable-table_3.entry.js +1 -1
  382. package/lib/esm/duet-empty-state.entry.js +1 -1
  383. package/lib/esm/duet-fieldset.entry.js +1 -1
  384. package/lib/esm/duet-footer.entry.js +1 -1
  385. package/lib/esm/duet-grid_2.entry.js +1 -1
  386. package/lib/esm/duet-header_2.entry.js +1 -1
  387. package/lib/esm/duet-hero.entry.js +1 -1
  388. package/lib/esm/duet-icon.entry.js +1 -1
  389. package/lib/esm/duet-input_2.entry.js +1 -1
  390. package/lib/esm/duet-layout.entry.js +1 -1
  391. package/lib/esm/duet-list_2.entry.js +1 -1
  392. package/lib/esm/duet-menu-bar-button.entry.js +2 -2
  393. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +11 -3
  394. package/lib/esm/duet-menu-bar-dropdown.entry.js +17 -4
  395. package/lib/esm/duet-menu-bar-link.entry.js +3 -3
  396. package/lib/esm/duet-menu-bar.entry.js +7 -1
  397. package/lib/esm/duet-modal.entry.js +2 -2
  398. package/lib/esm/duet-multiselect.entry.js +1 -1
  399. package/lib/esm/duet-nav.entry.js +1 -1
  400. package/lib/esm/duet-notification_2.entry.js +1 -1
  401. package/lib/esm/duet-number-input.entry.js +3 -3
  402. package/lib/esm/duet-page-heading.entry.js +1 -1
  403. package/lib/esm/duet-pagination_2.entry.js +1 -1
  404. package/lib/esm/duet-progress.entry.js +1 -1
  405. package/lib/esm/duet-radio_2.entry.js +1 -1
  406. package/lib/esm/duet-range-slider.entry.js +1 -1
  407. package/lib/esm/duet-scrollable_3.entry.js +2 -2
  408. package/lib/esm/duet-section-layout.entry.js +1 -1
  409. package/lib/esm/duet-select.entry.js +1 -1
  410. package/lib/esm/duet-slideout-lang.entry.js +2 -2
  411. package/lib/esm/duet-slideout-link.entry.js +3 -3
  412. package/lib/esm/duet-slideout-panel-dropdown.entry.js +9 -3
  413. package/lib/esm/duet-slideout-panel.entry.js +30 -9
  414. package/lib/esm/duet-slideout.entry.js +41 -9
  415. package/lib/esm/duet-step_2.entry.js +1 -1
  416. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +13 -3
  417. package/lib/esm/duet-submenu-bar-dropdown.entry.js +31 -5
  418. package/lib/esm/duet-submenu-bar-link.entry.js +12 -3
  419. package/lib/esm/duet-submenu-bar.entry.js +42 -4
  420. package/lib/esm/duet-textarea.entry.js +1 -1
  421. package/lib/esm/duet-toggle.entry.js +1 -1
  422. package/lib/esm/duet-toolbar-dropdown-link.entry.js +11 -3
  423. package/lib/esm/duet-toolbar-dropdown.entry.js +17 -4
  424. package/lib/esm/duet-toolbar-link.entry.js +3 -3
  425. package/lib/esm/duet-toolbar.entry.js +1 -1
  426. package/lib/esm/duet-tooltip.entry.js +4 -1
  427. package/lib/esm/duet-tray.entry.js +1 -1
  428. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  429. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  430. package/lib/esm/duet.js +3 -3
  431. package/lib/esm/{focus-utils-21a3a53d.js → focus-utils-24487417.js} +1 -1
  432. package/lib/esm/{index-bcaee850.js → index-3b6ef857.js} +1 -1
  433. package/lib/esm/loader.js +3 -3
  434. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  435. package/lib/esm-es5/duet-alert.entry.js +1 -1
  436. package/lib/esm-es5/duet-badge.entry.js +1 -1
  437. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  438. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  439. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  440. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  441. package/lib/esm-es5/duet-card.entry.js +1 -1
  442. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  443. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  444. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  445. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  446. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  447. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  448. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  449. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  450. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  451. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  452. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  453. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  454. package/lib/esm-es5/duet-footer.entry.js +1 -1
  455. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  456. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  457. package/lib/esm-es5/duet-hero.entry.js +1 -1
  458. package/lib/esm-es5/duet-icon.entry.js +1 -1
  459. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  460. package/lib/esm-es5/duet-layout.entry.js +1 -1
  461. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  462. package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
  463. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  464. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +2 -2
  465. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  466. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  467. package/lib/esm-es5/duet-modal.entry.js +1 -1
  468. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  469. package/lib/esm-es5/duet-nav.entry.js +1 -1
  470. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  471. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  472. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  473. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  474. package/lib/esm-es5/duet-progress.entry.js +1 -1
  475. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  476. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  477. package/lib/esm-es5/duet-scrollable_3.entry.js +2 -2
  478. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  479. package/lib/esm-es5/duet-select.entry.js +1 -1
  480. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  481. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  482. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  483. package/lib/esm-es5/duet-slideout-panel.entry.js +2 -2
  484. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  485. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  486. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  487. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +2 -2
  488. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  489. package/lib/esm-es5/duet-submenu-bar.entry.js +2 -2
  490. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  491. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  492. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  493. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +2 -2
  494. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  495. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  496. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  497. package/lib/esm-es5/duet-tray.entry.js +1 -1
  498. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  499. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  500. package/lib/esm-es5/duet.js +1 -1
  501. package/lib/esm-es5/focus-utils-24487417.js +4 -0
  502. package/lib/esm-es5/{index-bcaee850.js → index-3b6ef857.js} +1 -1
  503. package/lib/esm-es5/loader.js +1 -1
  504. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +4 -0
  505. package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +3 -1
  506. package/lib/types/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.d.ts +6 -0
  507. package/lib/types/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.d.ts +1 -0
  508. package/lib/types/components/duet-slideout/duet-slideout.d.ts +9 -0
  509. package/lib/types/components/duet-slideout-panel/duet-slideout-panel.d.ts +5 -0
  510. package/lib/types/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.d.ts +5 -0
  511. package/lib/types/components/duet-submenu-bar/duet-submenu-bar.d.ts +11 -0
  512. package/lib/types/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.d.ts +10 -0
  513. package/lib/types/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.d.ts +9 -0
  514. package/lib/types/components/duet-submenu-bar-link/duet-submenu-bar-link.d.ts +5 -0
  515. package/lib/types/components/duet-toolbar-dropdown/duet-toolbar-dropdown.d.ts +6 -0
  516. package/lib/types/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.d.ts +1 -0
  517. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +1 -0
  518. package/lib/types/components.d.ts +60 -0
  519. package/package.json +5 -5
  520. package/lib/duet/p-02f78e7e.entry.js +0 -4
  521. package/lib/duet/p-095c84a5.system.entry.js +0 -4
  522. package/lib/duet/p-0bc5e109.entry.js +0 -4
  523. package/lib/duet/p-14f3c696.system.entry.js +0 -4
  524. package/lib/duet/p-151ed5e0.system.entry.js +0 -4
  525. package/lib/duet/p-181d4b35.entry.js +0 -4
  526. package/lib/duet/p-1dcbe259.entry.js +0 -4
  527. package/lib/duet/p-28d28436.system.entry.js +0 -4
  528. package/lib/duet/p-3c4d9930.system.entry.js +0 -4
  529. package/lib/duet/p-3e428087.entry.js +0 -4
  530. package/lib/duet/p-40411d3b.system.entry.js +0 -4
  531. package/lib/duet/p-4176d5a4.entry.js +0 -4
  532. package/lib/duet/p-498b7d6a.system.entry.js +0 -4
  533. package/lib/duet/p-5fa09cdb.entry.js +0 -4
  534. package/lib/duet/p-61785e0b.system.entry.js +0 -4
  535. package/lib/duet/p-658283be.system.entry.js +0 -4
  536. package/lib/duet/p-6d4d5fc6.entry.js +0 -4
  537. package/lib/duet/p-727d0488.entry.js +0 -4
  538. package/lib/duet/p-72988da1.entry.js +0 -4
  539. package/lib/duet/p-78f118fb.entry.js +0 -4
  540. package/lib/duet/p-803ceb21.system.entry.js +0 -4
  541. package/lib/duet/p-86e6814a.entry.js +0 -4
  542. package/lib/duet/p-8b0d3fae.system.entry.js +0 -4
  543. package/lib/duet/p-9e886ecf.entry.js +0 -4
  544. package/lib/duet/p-a1eb24b8.system.entry.js +0 -4
  545. package/lib/duet/p-a7edccbb.entry.js +0 -4
  546. package/lib/duet/p-a8bb4f37.entry.js +0 -4
  547. package/lib/duet/p-aeea9d49.system.entry.js +0 -4
  548. package/lib/duet/p-b75cdfc6.entry.js +0 -4
  549. package/lib/duet/p-b8a5580a.entry.js +0 -4
  550. package/lib/duet/p-c3caf728.js +0 -4
  551. package/lib/duet/p-c7b12a60.system.js +0 -4
  552. package/lib/duet/p-c954e200.system.entry.js +0 -4
  553. package/lib/duet/p-d8ccc12d.entry.js +0 -4
  554. package/lib/duet/p-ea17eb88.entry.js +0 -4
  555. package/lib/duet/p-f3089cd4.system.entry.js +0 -4
  556. package/lib/duet/p-f550f63a.system.entry.js +0 -4
  557. package/lib/duet/p-f5623ee8.entry.js +0 -4
  558. package/lib/esm-es5/focus-utils-21a3a53d.js +0 -4
@@ -4,9 +4,16 @@
4
4
  import { Build, h, Host } from "@stencil/core";
5
5
  import { inheritGlobalTheme } from "../../common/themeable-component";
6
6
  import { FocusGuard } from "../../utils/focus-utils";
7
+ import { isEscapeKey } from "../../utils/keyboard-utils";
8
+ import { getLocaleString } from "../../utils/language-utils";
7
9
  import { getColorByName } from "../../utils/token-utils";
8
10
  export class DuetSlideout {
9
11
  constructor() {
12
+ this.exitLangObject = {
13
+ en: "Exit the menu",
14
+ fi: "Poistu valikosta",
15
+ sv: "Avsluta menyn",
16
+ };
10
17
  this.toggleMenu = (e) => {
11
18
  const toggle = !this.open;
12
19
  this.open = toggle;
@@ -17,9 +24,15 @@ export class DuetSlideout {
17
24
  component: "duet-slideout",
18
25
  });
19
26
  if (toggle) {
20
- setTimeout(() => {
21
- this.closeButton.focus();
22
- }, 200);
27
+ const openPanel = this.element.querySelector("duet-slideout-panel[open]");
28
+ if (openPanel) {
29
+ openPanel.setFocus();
30
+ }
31
+ else {
32
+ setTimeout(() => {
33
+ this.closeButton.focus();
34
+ }, 200);
35
+ }
23
36
  }
24
37
  else {
25
38
  setTimeout(() => {
@@ -59,8 +72,8 @@ export class DuetSlideout {
59
72
  this.openButton = this.element.querySelector(":scope > [slot='toggle']");
60
73
  }
61
74
  if (this.openButton) {
62
- this.openButton.setAttribute("aria-haspopup", "dialog");
63
- this.openButton.setAttribute("aria-expanded", "false");
75
+ this.openButton.accessiblePopup = "true";
76
+ this.openButton.accessibleExpanded = false;
64
77
  this.openButton.addEventListener("click", e => {
65
78
  e.stopPropagation();
66
79
  e.preventDefault();
@@ -69,6 +82,23 @@ export class DuetSlideout {
69
82
  this.openButton = this.openButton;
70
83
  }
71
84
  }
85
+ /**
86
+ * Component event handling.
87
+ */
88
+ handleKeyUp(ev) {
89
+ // When Esc is pressed
90
+ if (isEscapeKey(ev)) {
91
+ if (this.open) {
92
+ this.toggleMenu(ev);
93
+ }
94
+ }
95
+ }
96
+ /**
97
+ * Sets focus. Use this method instead of the global focus().
98
+ */
99
+ async setFocus(options) {
100
+ this.openButton.focus(options);
101
+ }
72
102
  /**
73
103
  * render() function
74
104
  * Always the last one in the class.
@@ -77,6 +107,7 @@ export class DuetSlideout {
77
107
  const styles = {
78
108
  background: getColorByName(this.backgroundColor, this.theme),
79
109
  };
110
+ const exitTranslation = getLocaleString(this.exitLangObject);
80
111
  return (h(Host, null, h("div", { class: { "duet-slideout": true, "duet-theme-turva": this.theme === "turva" } }, h("slot", { name: "toggle" }), h("div", { class: {
81
112
  "desktop-bg": true,
82
113
  hidden: !this.open,
@@ -85,7 +116,7 @@ export class DuetSlideout {
85
116
  } }), h("div", { tabindex: "-1", role: "dialog", id: "dialog", "aria-labelledby": "button", "aria-modal": "true", "aria-flowto": "menubar", class: {
86
117
  dialog: true,
87
118
  hidden: !this.open,
88
- }, style: styles }, h(FocusGuard, { moveFocusTo: this.closeButton }), h("div", { class: "top" }, h("button", { ref: element => (this.closeButton = element), "aria-haspopup": "dialog", "aria-controls": "dialog", "aria-expanded": this.open ? "true" : "false", type: "button", class: {
119
+ }, style: styles }, h(FocusGuard, { moveFocusTo: this.closeButton }), h("div", { class: "top" }, h("button", { ref: element => (this.closeButton = element), "aria-haspopup": "dialog", "aria-controls": "dialog", "aria-expanded": this.open ? "true" : "false", "aria-label": `${exitTranslation}`, type: "button", class: {
89
120
  "slideout-close": true,
90
121
  active: this.open,
91
122
  }, onClick: this.onClick }, h("duet-icon", { name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), h("div", { id: "menubar", role: "menubar", class: {
@@ -212,8 +243,39 @@ export class DuetSlideout {
212
243
  "text": "Toggles the slideout.",
213
244
  "tags": []
214
245
  }
246
+ },
247
+ "setFocus": {
248
+ "complexType": {
249
+ "signature": "(options?: FocusOptions) => Promise<void>",
250
+ "parameters": [{
251
+ "tags": [],
252
+ "text": ""
253
+ }],
254
+ "references": {
255
+ "Promise": {
256
+ "location": "global"
257
+ },
258
+ "FocusOptions": {
259
+ "location": "global"
260
+ }
261
+ },
262
+ "return": "Promise<void>"
263
+ },
264
+ "docs": {
265
+ "text": "Sets focus. Use this method instead of the global focus().",
266
+ "tags": []
267
+ }
215
268
  }
216
269
  };
217
270
  }
218
271
  static get elementRef() { return "element"; }
272
+ static get listeners() {
273
+ return [{
274
+ "name": "keyup",
275
+ "method": "handleKeyUp",
276
+ "target": "window",
277
+ "capture": false,
278
+ "passive": false
279
+ }];
280
+ }
219
281
  }
@@ -28,7 +28,7 @@ export class DuetSlideoutLang {
28
28
  */
29
29
  render() {
30
30
  const langTranslation = getLocaleString(this.chooseLangObject);
31
- return (h(Host, null, h("div", { class: "duet-slideout-lang" }, h("duet-visually-hidden", null, langTranslation), h("duet-icon", { name: "navigation-language", margin: "none", color: "secondary" }), h("slot", null))));
31
+ return (h(Host, null, h("div", { class: "duet-slideout-lang", "aria-role": "group", "aria-label": langTranslation }, h("duet-icon", { name: "navigation-language", margin: "none", color: "secondary" }), h("slot", null))));
32
32
  }
33
33
  static get is() { return "duet-slideout-lang"; }
34
34
  static get encapsulation() { return "shadow"; }
@@ -44,6 +44,13 @@
44
44
  .duet-slideout-link.duet-theme-turva {
45
45
  font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
46
46
  }
47
+ .duet-slideout-link:focus {
48
+ outline: 0;
49
+ box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179);
50
+ }
51
+ .duet-slideout-link:focus.duet-theme-turva {
52
+ box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58);
53
+ }
47
54
  .duet-slideout-link.active span {
48
55
  position: relative;
49
56
  }
@@ -31,7 +31,7 @@ export class DuetSlideoutLink {
31
31
  "duet-theme-turva": this.theme === "turva",
32
32
  active: this.active,
33
33
  [this.size]: true,
34
- }, href: this.href, role: this.menuItem && "menuitem", lang: this.targetLanguage, hreflang: this.targetLanguage, "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { name: this.icon, color: "secondary", size: this.menuItem ? "x-small" : "medium", margin: "none" })), h("div", { class: "label" }, h("span", null, h("slot", null), h("slot", { name: "description" })), this.caret && (h("duet-icon", { name: "action-arrow-right", color: "secondary", size: "x-small", margin: "none" }))))));
34
+ }, href: this.href, "aria-current": this.active ? "true" : "false", lang: this.targetLanguage, hreflang: this.targetLanguage, "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { name: this.icon, color: "secondary", size: this.menuItem ? "x-small" : "medium", margin: "none" })), h("div", { class: "label" }, h("span", null, h("slot", null), h("slot", { name: "description" })), this.caret && (h("duet-icon", { name: "action-arrow-right", color: "secondary", size: "x-small", margin: "none" }))))));
35
35
  }
36
36
  static get is() { return "duet-slideout-link"; }
37
37
  static get encapsulation() { return "shadow"; }
@@ -76,6 +76,10 @@
76
76
  font-size: 1.5rem;
77
77
  font-weight: 800;
78
78
  }
79
+ .duet-slideout-panel .link:focus {
80
+ outline: 0;
81
+ box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179);
82
+ }
79
83
  .duet-slideout-panel .link.active .label-text {
80
84
  position: relative;
81
85
  }
@@ -122,6 +126,11 @@
122
126
  opacity: 1;
123
127
  transition: top 0.3s ease-in, opacity 0.3s ease-in;
124
128
  }
129
+ .duet-slideout-panel .top .back:focus,
130
+ .duet-slideout-panel .top .close:focus {
131
+ outline: 0;
132
+ box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179);
133
+ }
125
134
  .duet-slideout-panel .top duet-icon {
126
135
  padding: 16px;
127
136
  }
@@ -147,9 +156,16 @@
147
156
  font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
148
157
  color: rgb(23, 28, 58);
149
158
  }
159
+ .duet-slideout-panel.duet-theme-turva .link:focus {
160
+ box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58);
161
+ }
150
162
  .duet-slideout-panel.duet-theme-turva .link.active .label-text::after {
151
163
  background: rgb(198, 12, 48);
152
164
  }
165
+ .duet-slideout-panel.duet-theme-turva .top .back:focus,
166
+ .duet-slideout-panel.duet-theme-turva .top .close:focus {
167
+ box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58);
168
+ }
153
169
  .duet-slideout-panel.duet-theme-turva .top span {
154
170
  font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
155
171
  color: rgb(23, 28, 58);
@@ -9,9 +9,14 @@ import { getColorByName } from "../../utils/token-utils";
9
9
  export class DuetSlideoutPanel {
10
10
  constructor() {
11
11
  this.exitLangObject = {
12
- en: "Exit the dialog",
13
- fi: "Poistu dialogista",
14
- sv: "Stäng dialogrutan",
12
+ en: "Exit the menu",
13
+ fi: "Poistu valikosta",
14
+ sv: "Avsluta menyn",
15
+ };
16
+ this.backLangObject = {
17
+ en: "Back to main menu",
18
+ fi: "Takaisin päävalikkoon",
19
+ sv: "Tillbaka till huvudmenyn",
15
20
  };
16
21
  this.updateLabel = () => {
17
22
  const labelSlotElement = this.element.querySelector("[slot='label']");
@@ -54,6 +59,21 @@ export class DuetSlideoutPanel {
54
59
  inheritGlobalTheme(this);
55
60
  this.updateLabel();
56
61
  }
62
+ /**
63
+ * Sets focus. Use this method instead of the global focus().
64
+ */
65
+ async setFocus(options) {
66
+ if (this.open) {
67
+ setTimeout(() => {
68
+ this.closeButton.focus(options);
69
+ }, 200);
70
+ }
71
+ else {
72
+ setTimeout(() => {
73
+ this.openButton.focus(options);
74
+ }, 200);
75
+ }
76
+ }
57
77
  /**
58
78
  * render() function
59
79
  * Always the last one in the class.
@@ -68,19 +88,20 @@ export class DuetSlideoutPanel {
68
88
  background: getColorByName(defaultBackgroundColor, this.theme),
69
89
  };
70
90
  const exitTranslation = getLocaleString(this.exitLangObject);
91
+ const backTranslation = getLocaleString(this.backLangObject);
71
92
  return (h(Host, null, h("div", { class: {
72
93
  "duet-slideout-panel": true,
73
94
  "duet-theme-turva": this.theme === "turva",
74
95
  active: this.open,
75
- } }, h("button", { ref: element => (this.openButton = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
96
+ } }, h("button", { ref: element => (this.openButton = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
76
97
  link: true,
77
98
  active: this.active,
78
99
  }, onClick: this.onToggleClick }, this.icon && h("duet-icon", { name: this.icon, size: "medium", margin: "none", color: "secondary" }), h("div", { class: "label" }, h("span", { class: { "label-text": true, [this.labelSize]: true } }, h("slot", { name: "label" })), h("duet-icon", { class: "caret", name: "action-arrow-right", margin: "none", size: "x-small", color: "secondary" }))), h("div", { class: {
79
100
  dialog: true,
80
101
  hidden: !this.open,
81
- }, style: styles }, h(FocusGuard, { moveFocusTo: this.closeButton }), h("div", { class: "top" }, h("button", { ref: element => (this.closeButton = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", type: "button", class: {
102
+ }, style: styles }, h(FocusGuard, { moveFocusTo: this.closeButton }), h("div", { class: "top" }, h("button", { ref: element => (this.closeButton = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-label": `${backTranslation}`, type: "button", class: {
82
103
  back: true,
83
- }, onClick: this.onToggleClick }, h("duet-icon", { class: "caret", name: "action-arrow-left", margin: "none", size: "small", color: "secondary" })), h("span", null, this.label.innerHTML), h("button", { type: "button", onClick: this.onCloseClick, "aria-label": `${exitTranslation}` }, h("duet-icon", { name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
104
+ }, onClick: this.onToggleClick }, h("duet-icon", { class: "caret", name: "action-arrow-left", margin: "none", size: "small", color: "secondary" })), h("span", null, this.label.innerHTML), h("button", { class: "close", type: "button", onClick: this.onCloseClick, "aria-label": `${exitTranslation}` }, h("duet-icon", { name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
84
105
  items: true,
85
106
  } }, h("slot", null)), h(FocusGuard, { moveFocusTo: this.closeButton })))));
86
107
  }
@@ -223,5 +244,31 @@ export class DuetSlideoutPanel {
223
244
  "label": {}
224
245
  };
225
246
  }
247
+ static get methods() {
248
+ return {
249
+ "setFocus": {
250
+ "complexType": {
251
+ "signature": "(options?: FocusOptions) => Promise<void>",
252
+ "parameters": [{
253
+ "tags": [],
254
+ "text": ""
255
+ }],
256
+ "references": {
257
+ "Promise": {
258
+ "location": "global"
259
+ },
260
+ "FocusOptions": {
261
+ "location": "global"
262
+ }
263
+ },
264
+ "return": "Promise<void>"
265
+ },
266
+ "docs": {
267
+ "text": "Sets focus. Use this method instead of the global focus().",
268
+ "tags": []
269
+ }
270
+ }
271
+ };
272
+ }
226
273
  static get elementRef() { return "element"; }
227
274
  }
@@ -66,6 +66,10 @@
66
66
  align-items: center;
67
67
  justify-content: center;
68
68
  }
69
+ .duet-slideout-panel-dropdown button:focus {
70
+ outline: 0;
71
+ box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179);
72
+ }
69
73
  .duet-slideout-panel-dropdown button.active .label::after {
70
74
  position: absolute;
71
75
  top: auto;
@@ -85,7 +89,7 @@
85
89
  justify-content: center;
86
90
  width: 100%;
87
91
  max-height: 1000px;
88
- padding: 0 20px 8px 44px;
92
+ padding: 4px 20px 8px 44px;
89
93
  overflow-y: auto;
90
94
  visibility: visible;
91
95
  transition: max-height 0.3s ease-in, padding-bottom 0.3s ease-in;
@@ -106,6 +110,9 @@
106
110
  font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
107
111
  color: rgb(23, 28, 58);
108
112
  }
113
+ .duet-slideout-panel-dropdown.duet-theme-turva button:focus {
114
+ box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58);
115
+ }
109
116
  .duet-slideout-panel-dropdown.duet-theme-turva button.active .label::after {
110
117
  background: rgb(198, 12, 48);
111
118
  }
@@ -29,6 +29,12 @@ export class DuetSlideoutPanelDropdown {
29
29
  link.menuItem = true;
30
30
  });
31
31
  }
32
+ /**
33
+ * Sets focus. Use this method instead of the global focus().
34
+ */
35
+ async setFocus(options) {
36
+ this.button.focus(options);
37
+ }
32
38
  /**
33
39
  * render() function
34
40
  * Always the last one in the class.
@@ -38,7 +44,7 @@ export class DuetSlideoutPanelDropdown {
38
44
  "duet-slideout-panel-dropdown": true,
39
45
  "duet-theme-turva": this.theme === "turva",
40
46
  active: this.open,
41
- } }, h("button", { "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
47
+ } }, h("button", { ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
42
48
  active: this.active,
43
49
  }, onClick: this.onClick }, this.icon && h("duet-icon", { name: this.icon, size: "medium", margin: "none", color: "secondary" }), h("div", { class: "label" }, h("slot", { name: "label" }), h("duet-icon", { class: "caret", name: "action-arrow-down-small", margin: "none", size: "xx-small", color: "secondary" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
44
50
  items: true,
@@ -138,6 +144,32 @@ export class DuetSlideoutPanelDropdown {
138
144
  }
139
145
  };
140
146
  }
147
+ static get methods() {
148
+ return {
149
+ "setFocus": {
150
+ "complexType": {
151
+ "signature": "(options?: FocusOptions) => Promise<void>",
152
+ "parameters": [{
153
+ "tags": [],
154
+ "text": ""
155
+ }],
156
+ "references": {
157
+ "Promise": {
158
+ "location": "global"
159
+ },
160
+ "FocusOptions": {
161
+ "location": "global"
162
+ }
163
+ },
164
+ "return": "Promise<void>"
165
+ },
166
+ "docs": {
167
+ "text": "Sets focus. Use this method instead of the global focus().",
168
+ "tags": []
169
+ }
170
+ }
171
+ };
172
+ }
141
173
  static get elementRef() { return "element"; }
142
174
  static get listeners() {
143
175
  return [{
@@ -67,6 +67,10 @@
67
67
  line-height: 1.25;
68
68
  color: rgb(0, 41, 77);
69
69
  }
70
+ .duet-submenu-bar button:focus {
71
+ outline: 0;
72
+ box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179);
73
+ }
70
74
  .duet-submenu-bar button.active .caret {
71
75
  transform: rotate(180deg);
72
76
  }
@@ -118,6 +122,9 @@
118
122
  background: rgb(245, 245, 247);
119
123
  border-bottom: 1px solid rgb(228, 228, 230);
120
124
  }
125
+ .duet-submenu-bar.duet-theme-turva button:focus {
126
+ box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58);
127
+ }
121
128
  .duet-submenu-bar.duet-theme-turva .items {
122
129
  background: rgb(245, 245, 247);
123
130
  }
@@ -1,13 +1,25 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
+ import { media_query_large } from "@duetds/tokens/lib/tokens.json";
4
5
  import { h, Host } from "@stencil/core";
5
6
  import { inheritGlobalTheme } from "../../common/themeable-component";
6
7
  export class DuetSubmenuBar {
7
8
  constructor() {
9
+ this.mql = [window.matchMedia(media_query_large.replace(/'/g, ""))];
10
+ this.boundMqlFunctions = [];
11
+ this.changeAriaProperties = () => {
12
+ if (this.mql[0].matches) {
13
+ this.mobile = false;
14
+ }
15
+ else {
16
+ this.mobile = true;
17
+ }
18
+ };
8
19
  this.onClick = () => {
9
20
  this.open = !this.open;
10
21
  };
22
+ this.mobile = true;
11
23
  this.theme = "";
12
24
  this.open = false;
13
25
  }
@@ -17,14 +29,40 @@ export class DuetSubmenuBar {
17
29
  componentWillLoad() {
18
30
  inheritGlobalTheme(this);
19
31
  }
32
+ connectedCallback() {
33
+ this.changeAriaProperties();
34
+ for (let i = 0; i < this.mql.length; i++) {
35
+ // addEventListener is not available in Stencil hydrate
36
+ if (this.mql[i].addEventListener) {
37
+ const bound = this.changeAriaProperties.bind(this);
38
+ this.mql[i].addEventListener("change", bound);
39
+ this.boundMqlFunctions[i] = bound;
40
+ }
41
+ }
42
+ }
43
+ disconnectedCallback() {
44
+ for (let i = 0; i < this.mql.length; i++) {
45
+ // removeEventListener is not available in Stencil hydrate
46
+ if (this.mql[i].removeEventListener) {
47
+ this.mql[i].removeEventListener("change", this.boundMqlFunctions[i]);
48
+ }
49
+ }
50
+ this.boundMqlFunctions = [];
51
+ }
52
+ /**
53
+ * Sets focus. Use this method instead of the global focus().
54
+ */
55
+ async setFocus(options) {
56
+ this.button.focus(options);
57
+ }
20
58
  /**
21
59
  * render() function
22
60
  * Always the last one in the class.
23
61
  */
24
62
  render() {
25
- return (h(Host, null, h("div", { class: { "duet-submenu-bar": true, "duet-theme-turva": this.theme === "turva" }, role: "menubar" }, h("button", { "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
63
+ return (h(Host, null, h("div", { class: { "duet-submenu-bar": true, "duet-theme-turva": this.theme === "turva" }, role: this.mobile ? null : "menubar" }, h("button", { ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
26
64
  active: this.open,
27
- }, onClick: this.onClick }, h("div", { class: "label" }, h("slot", { name: "label" }), h("duet-icon", { theme: this.theme, class: "caret", name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { role: "menu", id: "menu", "aria-labelledby": "button", "aria-expanded": this.open ? "true" : "false", class: {
65
+ }, onClick: this.onClick }, h("div", { class: "label" }, h("slot", { name: "label" }), h("duet-icon", { theme: this.theme, class: "caret", name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { role: this.mobile ? "menu" : null, id: "menu", "aria-labelledby": this.mobile ? "button" : null, "aria-expanded": this.mobile ? (this.open ? "true" : "false") : null, class: {
28
66
  items: true,
29
67
  hidden: !this.open,
30
68
  } }, h("slot", null)))));
@@ -86,5 +124,36 @@ export class DuetSubmenuBar {
86
124
  }
87
125
  };
88
126
  }
127
+ static get states() {
128
+ return {
129
+ "mobile": {}
130
+ };
131
+ }
132
+ static get methods() {
133
+ return {
134
+ "setFocus": {
135
+ "complexType": {
136
+ "signature": "(options?: FocusOptions) => Promise<void>",
137
+ "parameters": [{
138
+ "tags": [],
139
+ "text": ""
140
+ }],
141
+ "references": {
142
+ "Promise": {
143
+ "location": "global"
144
+ },
145
+ "FocusOptions": {
146
+ "location": "global"
147
+ }
148
+ },
149
+ "return": "Promise<void>"
150
+ },
151
+ "docs": {
152
+ "text": "Sets focus. Use this method instead of the global focus().",
153
+ "tags": []
154
+ }
155
+ }
156
+ };
157
+ }
89
158
  static get elementRef() { return "element"; }
90
159
  }
@@ -69,9 +69,33 @@
69
69
  align-items: center;
70
70
  justify-content: center;
71
71
  }
72
- .duet-submenu-bar-dropdown button.active .caret {
72
+ .duet-submenu-bar-dropdown button:focus {
73
+ outline: 0;
74
+ box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179);
75
+ }
76
+ .duet-submenu-bar-dropdown button.open .caret {
73
77
  transform: rotate(180deg);
74
78
  }
79
+ .duet-submenu-bar-dropdown button.active .label-text {
80
+ position: relative;
81
+ }
82
+ .duet-submenu-bar-dropdown button.active .label-text::after {
83
+ position: absolute;
84
+ top: auto;
85
+ bottom: 0;
86
+ left: 0;
87
+ display: block;
88
+ width: 100%;
89
+ height: 1px;
90
+ content: "";
91
+ background: rgb(0, 119, 179);
92
+ transform: 1px;
93
+ }
94
+ @media (min-width: 62em) {
95
+ .duet-submenu-bar-dropdown button.active .label-text::after {
96
+ display: none;
97
+ }
98
+ }
75
99
  @media (min-width: 62em) {
76
100
  .duet-submenu-bar-dropdown button .caret {
77
101
  position: absolute;
@@ -82,7 +106,10 @@
82
106
  background: rgb(230, 242, 248);
83
107
  }
84
108
  .duet-submenu-bar-dropdown button:hover.active {
85
- color: rgb(0, 119, 179);
109
+ color: rgb(0, 41, 77);
110
+ }
111
+ .duet-theme-turva .duet-submenu-bar-dropdown button:hover.active {
112
+ color: rgb(23, 28, 58);
86
113
  }
87
114
  .duet-submenu-bar-dropdown button.active {
88
115
  color: rgb(0, 119, 179);
@@ -90,7 +117,7 @@
90
117
  .duet-theme-turva .duet-submenu-bar-dropdown button.active {
91
118
  color: rgb(198, 12, 48);
92
119
  }
93
- .duet-submenu-bar-dropdown button.active::after {
120
+ .duet-submenu-bar-dropdown button.active::after, .duet-submenu-bar-dropdown button.open::after {
94
121
  position: absolute;
95
122
  top: auto;
96
123
  bottom: 0;
@@ -103,7 +130,7 @@
103
130
  transition: 300ms ease;
104
131
  transform: translateY(1px);
105
132
  }
106
- .duet-theme-turva .duet-submenu-bar-dropdown button.active::after {
133
+ .duet-theme-turva .duet-submenu-bar-dropdown button.active::after, .duet-theme-turva .duet-submenu-bar-dropdown button.open::after {
107
134
  background: rgb(198, 12, 48);
108
135
  }
109
136
  }
@@ -113,7 +140,7 @@
113
140
  align-items: center;
114
141
  justify-content: center;
115
142
  max-height: 1000px;
116
- padding: 0 0 16px;
143
+ padding: 4px 0 16px;
117
144
  overflow-y: auto;
118
145
  color: rgb(0, 41, 77);
119
146
  visibility: visible;
@@ -130,7 +157,7 @@
130
157
  top: 102%;
131
158
  z-index: 600;
132
159
  min-width: 320px;
133
- padding: 0;
160
+ padding: 4px 0 0;
134
161
  background: rgb(255, 255, 255);
135
162
  border-radius: 0 0 4px 4px;
136
163
  box-shadow: 0 6px 6px 0 rgba(0, 41, 77, 0.1);
@@ -148,17 +175,23 @@
148
175
  font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
149
176
  color: rgb(23, 28, 58);
150
177
  }
178
+ .duet-submenu-bar-dropdown.duet-theme-turva button:focus {
179
+ box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58);
180
+ }
151
181
  @media (min-width: 62em) {
152
182
  .duet-submenu-bar-dropdown.duet-theme-turva button:hover {
153
183
  background: rgb(228, 228, 230);
154
184
  }
155
185
  }
186
+ .duet-submenu-bar-dropdown.duet-theme-turva button.active .label-text::after, .duet-submenu-bar-dropdown.duet-theme-turva button.open .label-text::after {
187
+ background: rgb(198, 12, 48);
188
+ }
156
189
  @media (min-width: 62em) {
157
- .duet-submenu-bar-dropdown.duet-theme-turva button.active {
190
+ .duet-submenu-bar-dropdown.duet-theme-turva button.active, .duet-submenu-bar-dropdown.duet-theme-turva button.open {
158
191
  color: rgb(148, 9, 37);
159
192
  }
160
193
  }
161
- .duet-submenu-bar-dropdown.duet-theme-turva button.active::after {
194
+ .duet-submenu-bar-dropdown.duet-theme-turva button.active::after, .duet-submenu-bar-dropdown.duet-theme-turva button.open::after {
162
195
  background: rgb(148, 9, 37);
163
196
  }
164
197
  @media (min-width: 62em) {