@duetds/components 6.8.1 → 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 (562) hide show
  1. package/hydrate/index.js +259 -63
  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 +3 -3
  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 +10 -4
  51. package/lib/cjs/duet-slideout-panel.cjs.entry.js +31 -10
  52. package/lib/cjs/duet-slideout.cjs.entry.js +42 -10
  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-b0dc8aa1.js → focus-utils-2ff2eab6.js} +1 -1
  70. package/lib/cjs/{index-d02209e9.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-hero/duet-hero.css +8 -2
  75. package/lib/collection/components/duet-hero/duet-hero.js +1 -1
  76. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +16 -1
  77. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +10 -0
  78. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +7 -0
  79. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +41 -2
  80. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +7 -0
  81. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +9 -1
  82. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +10 -0
  83. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +1 -1
  84. package/lib/collection/components/duet-number-input/duet-number-input.js +2 -2
  85. package/lib/collection/components/duet-slideout/duet-slideout.css +15 -1
  86. package/lib/collection/components/duet-slideout/duet-slideout.js +69 -7
  87. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  88. package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +7 -0
  89. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +1 -1
  90. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +18 -2
  91. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +54 -7
  92. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +13 -3
  93. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +34 -2
  94. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +7 -0
  95. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +71 -2
  96. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +41 -8
  97. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +73 -3
  98. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +30 -0
  99. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +29 -1
  100. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +54 -0
  101. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +28 -1
  102. package/lib/collection/components/duet-tab-group/duet-tab-group.css +8 -0
  103. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +7 -0
  104. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +41 -2
  105. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +7 -0
  106. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +9 -1
  107. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +7 -0
  108. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +1 -1
  109. package/lib/collection/components/duet-tooltip/duet-tooltip.js +3 -0
  110. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  111. package/lib/dist-custom-elements/duet-alert.js +1 -1
  112. package/lib/dist-custom-elements/duet-badge.js +1 -1
  113. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  114. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  115. package/lib/dist-custom-elements/duet-button.js +1 -1
  116. package/lib/dist-custom-elements/duet-caption.js +1 -1
  117. package/lib/dist-custom-elements/duet-card.js +3 -3
  118. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  119. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  120. package/lib/dist-custom-elements/duet-choice-group.js +6 -6
  121. package/lib/dist-custom-elements/duet-choice.js +5 -5
  122. package/lib/dist-custom-elements/duet-collapsible.js +6 -3
  123. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  124. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  125. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  126. package/lib/dist-custom-elements/duet-date-picker.js +10 -10
  127. package/lib/dist-custom-elements/duet-divider.js +1 -1
  128. package/lib/dist-custom-elements/duet-editable-table.js +1 -1
  129. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  130. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  131. package/lib/dist-custom-elements/duet-footer.js +4 -4
  132. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  133. package/lib/dist-custom-elements/duet-grid.js +1 -1
  134. package/lib/dist-custom-elements/duet-header.js +8 -8
  135. package/lib/dist-custom-elements/duet-heading.js +1 -1
  136. package/lib/dist-custom-elements/duet-hero.js +11 -11
  137. package/lib/dist-custom-elements/duet-icon.js +1 -1
  138. package/lib/dist-custom-elements/duet-input.js +1 -1
  139. package/lib/dist-custom-elements/duet-label.js +1 -1
  140. package/lib/dist-custom-elements/duet-layout.js +1 -1
  141. package/lib/dist-custom-elements/duet-link.js +1 -1
  142. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  143. package/lib/dist-custom-elements/duet-list.js +1 -1
  144. package/lib/dist-custom-elements/duet-logo.js +1 -1
  145. package/lib/dist-custom-elements/duet-menu-bar-button.js +3 -3
  146. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +12 -4
  147. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +20 -6
  148. package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
  149. package/lib/dist-custom-elements/duet-menu-bar.js +9 -3
  150. package/lib/dist-custom-elements/duet-modal.js +7 -7
  151. package/lib/dist-custom-elements/duet-multiselect.js +8 -8
  152. package/lib/dist-custom-elements/duet-nav.js +1 -1
  153. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  154. package/lib/dist-custom-elements/duet-notification.js +2 -2
  155. package/lib/dist-custom-elements/duet-number-input.js +11 -11
  156. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  157. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  158. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  159. package/lib/dist-custom-elements/duet-progress.js +1 -1
  160. package/lib/dist-custom-elements/duet-radio-group.js +6 -6
  161. package/lib/dist-custom-elements/duet-radio.js +1 -1
  162. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  163. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  164. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  165. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  166. package/lib/dist-custom-elements/duet-select.js +1 -1
  167. package/lib/dist-custom-elements/duet-slideout-lang.js +4 -10
  168. package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
  169. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +13 -6
  170. package/lib/dist-custom-elements/duet-slideout-panel.js +33 -11
  171. package/lib/dist-custom-elements/duet-slideout.js +44 -12
  172. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  173. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  174. package/lib/dist-custom-elements/duet-step.js +4 -4
  175. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  176. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +15 -4
  177. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +35 -7
  178. package/lib/dist-custom-elements/duet-submenu-bar-link.js +14 -4
  179. package/lib/dist-custom-elements/duet-submenu-bar.js +46 -6
  180. package/lib/dist-custom-elements/duet-tab-group.js +10 -10
  181. package/lib/dist-custom-elements/duet-tab.js +1 -1
  182. package/lib/dist-custom-elements/duet-table.js +1 -1
  183. package/lib/dist-custom-elements/duet-textarea.js +8 -8
  184. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  185. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +12 -4
  186. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +20 -6
  187. package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
  188. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  189. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  190. package/lib/dist-custom-elements/duet-tray.js +3 -3
  191. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  192. package/lib/dist-custom-elements/duet-upload.js +18 -18
  193. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  194. package/lib/dist-custom-elements/index.js +1 -1
  195. package/lib/dist-custom-elements/{p-6f251b0d.js → p-05e73b74.js} +1 -1
  196. package/lib/dist-custom-elements/{p-2b1e6b5d.js → p-10030e7c.js} +1 -1
  197. package/lib/dist-custom-elements/{p-2d0de36a.js → p-13d9d4b0.js} +1 -1
  198. package/lib/dist-custom-elements/{p-43c6d719.js → p-1cb77270.js} +2 -2
  199. package/lib/dist-custom-elements/{p-f6acbcec.js → p-26afb575.js} +1 -1
  200. package/lib/dist-custom-elements/{p-51d9c7c1.js → p-2e97d3cf.js} +1 -1
  201. package/lib/dist-custom-elements/{p-9ffd6287.js → p-4a7f34e4.js} +2 -2
  202. package/lib/dist-custom-elements/{p-01ffc602.js → p-4ad31816.js} +1 -1
  203. package/lib/dist-custom-elements/{p-bf7f746f.js → p-53076cdd.js} +2 -2
  204. package/lib/dist-custom-elements/{p-cc3bb9f3.js → p-57aace09.js} +6 -3
  205. package/lib/dist-custom-elements/{p-76544393.js → p-5ab6461c.js} +1 -1
  206. package/lib/dist-custom-elements/{p-cdd3420f.js → p-681c9a42.js} +5 -5
  207. package/lib/dist-custom-elements/{p-a9b833c4.js → p-6a8cdb7b.js} +1 -1
  208. package/lib/dist-custom-elements/{p-2053808f.js → p-7a6f9236.js} +1 -1
  209. package/lib/dist-custom-elements/{p-d9c36445.js → p-84c970d9.js} +1 -1
  210. package/lib/dist-custom-elements/{p-20a7e678.js → p-87b5525b.js} +3 -3
  211. package/lib/dist-custom-elements/{p-aa7f3d85.js → p-89dbfa07.js} +1 -1
  212. package/lib/dist-custom-elements/{p-ba3c9ede.js → p-8aa1b007.js} +1 -1
  213. package/lib/dist-custom-elements/{p-3ec4c5a3.js → p-8d8f500f.js} +6 -6
  214. package/lib/dist-custom-elements/{p-aa4fc281.js → p-9556589f.js} +1 -1
  215. package/lib/dist-custom-elements/{p-55d4ce4d.js → p-9b6166b7.js} +1 -1
  216. package/lib/dist-custom-elements/{p-1ef726c7.js → p-9bf072bd.js} +2 -2
  217. package/lib/dist-custom-elements/{p-e1c7945c.js → p-9cfa785f.js} +3 -3
  218. package/lib/dist-custom-elements/{p-5cd6cc1c.js → p-9f1bb199.js} +1 -1
  219. package/lib/dist-custom-elements/{p-c4e077b3.js → p-a0efab88.js} +4 -4
  220. package/lib/dist-custom-elements/{p-e65fa79a.js → p-c86c6df0.js} +2 -2
  221. package/lib/dist-custom-elements/{p-6a114fc5.js → p-cb7de9dd.js} +1 -1
  222. package/lib/dist-custom-elements/{p-d8caf2d2.js → p-ce7b7450.js} +1 -1
  223. package/lib/dist-custom-elements/{p-156628ee.js → p-d5e06462.js} +1 -1
  224. package/lib/dist-custom-elements/{p-326cf323.js → p-db69ae9d.js} +7 -7
  225. package/lib/dist-custom-elements/{p-53e6d3f1.js → p-dd03af24.js} +1 -1
  226. package/lib/dist-custom-elements/{p-6aa4d505.js → p-f7a12024.js} +8 -8
  227. package/lib/duet/duet.esm.js +1 -1
  228. package/lib/duet/duet.js +1 -1
  229. package/lib/duet/{p-f6b884c4.system.entry.js → p-0115b516.system.entry.js} +1 -1
  230. package/lib/duet/{p-b35baeed.system.entry.js → p-01833853.system.entry.js} +1 -1
  231. package/lib/duet/{p-427add54.system.entry.js → p-032d0db3.system.entry.js} +1 -1
  232. package/lib/duet/{p-d07aacdc.system.entry.js → p-0335d3ba.system.entry.js} +2 -2
  233. package/lib/duet/p-04a1f201.entry.js +4 -0
  234. package/lib/duet/{p-a37ef41d.system.entry.js → p-07f8de09.system.entry.js} +1 -1
  235. package/lib/duet/{p-21ecd01e.entry.js → p-0f2c807b.entry.js} +1 -1
  236. package/lib/duet/p-1515b46a.entry.js +4 -0
  237. package/lib/duet/{p-f5db84bb.entry.js → p-15b65a7c.entry.js} +1 -1
  238. package/lib/duet/p-15e1c955.entry.js +4 -0
  239. package/lib/duet/{p-113efe69.system.entry.js → p-18a1350b.system.entry.js} +2 -2
  240. package/lib/duet/{p-20dc2ce5.system.entry.js → p-1bb2106c.system.entry.js} +1 -1
  241. package/lib/duet/{p-afe0e62a.entry.js → p-1c21f6ee.entry.js} +1 -1
  242. package/lib/duet/{p-334a3c39.system.entry.js → p-1ccc3647.system.entry.js} +1 -1
  243. package/lib/duet/{p-700a95eb.system.entry.js → p-1e86fdd0.system.entry.js} +1 -1
  244. package/lib/duet/{p-81308c38.entry.js → p-1ea20994.entry.js} +1 -1
  245. package/lib/duet/{p-283301cd.entry.js → p-1ec42ecd.entry.js} +1 -1
  246. package/lib/duet/{p-17d9c17b.system.entry.js → p-20291d6a.system.entry.js} +1 -1
  247. package/lib/duet/{p-365da977.system.entry.js → p-259eff20.system.entry.js} +1 -1
  248. package/lib/duet/p-268a27e0.system.entry.js +4 -0
  249. package/lib/duet/{p-9291c5a9.system.entry.js → p-2765a53e.system.entry.js} +1 -1
  250. package/lib/duet/p-2a57d9b6.entry.js +4 -0
  251. package/lib/duet/{p-17680aab.system.entry.js → p-2b3c2e41.system.entry.js} +1 -1
  252. package/lib/duet/{p-6a4118bf.entry.js → p-2c19f162.entry.js} +1 -1
  253. package/lib/duet/{p-b11d4150.system.entry.js → p-2d0a6607.system.entry.js} +1 -1
  254. package/lib/duet/{p-61d0fa5b.entry.js → p-2e5b3bcf.entry.js} +1 -1
  255. package/lib/duet/{p-35daef86.entry.js → p-2e6a3a17.entry.js} +1 -1
  256. package/lib/duet/{p-6f621e11.system.entry.js → p-31159c85.system.entry.js} +1 -1
  257. package/lib/duet/{p-4f03d185.entry.js → p-35afcb27.entry.js} +1 -1
  258. package/lib/duet/p-39c79c00.system.entry.js +4 -0
  259. package/lib/duet/p-3ab084e8.system.entry.js +4 -0
  260. package/lib/duet/{p-da8c937e.entry.js → p-3aeb487a.entry.js} +1 -1
  261. package/lib/duet/{p-bde04bd3.entry.js → p-3c5967bc.entry.js} +1 -1
  262. package/lib/duet/p-3dc1f3c6.system.entry.js +4 -0
  263. package/lib/duet/p-3f01f964.system.entry.js +4 -0
  264. package/lib/duet/{p-04a72387.system.entry.js → p-3ffbaf35.system.entry.js} +1 -1
  265. package/lib/duet/p-40b6203e.system.entry.js +4 -0
  266. package/lib/duet/{p-03de94fe.entry.js → p-4266b177.entry.js} +1 -1
  267. package/lib/duet/p-44c56bb6.entry.js +4 -0
  268. package/lib/duet/{p-7727a44a.entry.js → p-470e0520.entry.js} +1 -1
  269. package/lib/duet/p-475f863c.entry.js +4 -0
  270. package/lib/duet/{p-bb7b92e9.entry.js → p-48a22eca.entry.js} +1 -1
  271. package/lib/duet/{p-a5b08a77.system.entry.js → p-49ebb54d.system.entry.js} +1 -1
  272. package/lib/duet/p-4af19474.entry.js +4 -0
  273. package/lib/duet/p-4d25be5d.entry.js +4 -0
  274. package/lib/duet/{p-25f31f1d.entry.js → p-4d5cb241.entry.js} +1 -1
  275. package/lib/duet/{p-93564d46.entry.js → p-4ddb8b0f.entry.js} +1 -1
  276. package/lib/duet/p-4f203781.js +4 -0
  277. package/lib/duet/{p-3a6729c3.entry.js → p-50ee41e3.entry.js} +1 -1
  278. package/lib/duet/p-51588335.entry.js +4 -0
  279. package/lib/duet/{p-fed8565c.entry.js → p-53de8491.entry.js} +1 -1
  280. package/lib/duet/p-56b49a2b.system.entry.js +4 -0
  281. package/lib/duet/{p-e4355e6c.entry.js → p-5a884cab.entry.js} +1 -1
  282. package/lib/duet/p-5bf71c27.entry.js +4 -0
  283. package/lib/duet/p-5fcf69f8.entry.js +4 -0
  284. package/lib/duet/{p-6bce1181.system.entry.js → p-614c7065.system.entry.js} +1 -1
  285. package/lib/duet/{p-d82c4706.entry.js → p-64c8ddb9.entry.js} +1 -1
  286. package/lib/duet/{p-78ed0c18.entry.js → p-68ab467a.entry.js} +1 -1
  287. package/lib/duet/{p-35f98b09.system.entry.js → p-70425e80.system.entry.js} +1 -1
  288. package/lib/duet/p-74c8d3c2.entry.js +4 -0
  289. package/lib/duet/{p-e97f7391.system.entry.js → p-74e6b8fd.system.entry.js} +1 -1
  290. package/lib/duet/p-75492e02.system.entry.js +4 -0
  291. package/lib/duet/{p-c1ebf12e.system.entry.js → p-76fdc86f.system.entry.js} +1 -1
  292. package/lib/duet/{p-1d7f1df4.entry.js → p-770f94ca.entry.js} +1 -1
  293. package/lib/duet/p-77c2e21e.system.js +4 -0
  294. package/lib/duet/p-7c7f6370.entry.js +4 -0
  295. package/lib/duet/p-7f1506d7.entry.js +4 -0
  296. package/lib/duet/p-7ff34de9.entry.js +4 -0
  297. package/lib/duet/p-82e4f38f.entry.js +4 -0
  298. package/lib/duet/{p-b81a4e3c.entry.js → p-84cf594e.entry.js} +1 -1
  299. package/lib/duet/{p-d6925758.entry.js → p-84f17b60.entry.js} +1 -1
  300. package/lib/duet/{p-1babc6be.entry.js → p-85961465.entry.js} +1 -1
  301. package/lib/duet/{p-4d585c01.entry.js → p-886c35c2.entry.js} +1 -1
  302. package/lib/duet/{p-be1ca3c9.system.entry.js → p-8ae86f38.system.entry.js} +1 -1
  303. package/lib/duet/{p-cdf2e7e8.system.entry.js → p-8d4c36cc.system.entry.js} +1 -1
  304. package/lib/duet/{p-9acb547a.entry.js → p-8e6d9b39.entry.js} +1 -1
  305. package/lib/duet/{p-4707c32c.entry.js → p-8ed7e105.entry.js} +1 -1
  306. package/lib/duet/p-8f1e0f63.entry.js +4 -0
  307. package/lib/duet/{p-95c75961.system.entry.js → p-9207cd90.system.entry.js} +1 -1
  308. package/lib/duet/{p-2c44325a.system.js → p-92d37e55.system.js} +1 -1
  309. package/lib/duet/{p-2fb4f3b5.entry.js → p-9431cbd9.entry.js} +1 -1
  310. package/lib/duet/{p-95c0d478.system.entry.js → p-94fa2062.system.entry.js} +1 -1
  311. package/lib/duet/{p-f12bf693.entry.js → p-9693b127.entry.js} +1 -1
  312. package/lib/duet/{p-7a3f2b74.entry.js → p-9a911da7.entry.js} +1 -1
  313. package/lib/duet/{p-40b97e14.system.entry.js → p-9abc893a.system.entry.js} +1 -1
  314. package/lib/duet/{p-072cc012.entry.js → p-9aebf3f7.entry.js} +1 -1
  315. package/lib/duet/{p-05ca989b.system.entry.js → p-9ca2af16.system.entry.js} +1 -1
  316. package/lib/duet/{p-0535962b.system.entry.js → p-9d4592dc.system.entry.js} +1 -1
  317. package/lib/duet/{p-66584556.system.entry.js → p-9fd3df4e.system.entry.js} +1 -1
  318. package/lib/duet/{p-975684e4.system.entry.js → p-a6653cdc.system.entry.js} +1 -1
  319. package/lib/duet/{p-70f4ebe3.system.entry.js → p-a8432547.system.entry.js} +1 -1
  320. package/lib/duet/{p-33884197.entry.js → p-a8d67797.entry.js} +1 -1
  321. package/lib/duet/{p-5f0b9b1c.system.entry.js → p-aabd9905.system.entry.js} +1 -1
  322. package/lib/duet/{p-cd7db17d.entry.js → p-ab4af140.entry.js} +1 -1
  323. package/lib/duet/p-abdd047f.system.entry.js +4 -0
  324. package/lib/duet/{p-f936f13c.system.entry.js → p-b1296afd.system.entry.js} +1 -1
  325. package/lib/duet/{p-51410532.system.entry.js → p-b3c6d973.system.entry.js} +1 -1
  326. package/lib/duet/{p-c7b63dea.system.entry.js → p-b7c160f8.system.entry.js} +1 -1
  327. package/lib/duet/{p-561ad02e.system.entry.js → p-c3436d4d.system.entry.js} +1 -1
  328. package/lib/duet/{p-2058c3cb.entry.js → p-c48232b6.entry.js} +1 -1
  329. package/lib/duet/p-c88e1b86.system.entry.js +4 -0
  330. package/lib/duet/{p-38a57d62.entry.js → p-c96b1fae.entry.js} +1 -1
  331. package/lib/duet/{p-6f85b3b2.entry.js → p-c989c952.entry.js} +1 -1
  332. package/lib/duet/{p-6ba49302.entry.js → p-ca6f6878.entry.js} +1 -1
  333. package/lib/duet/{p-9340367b.entry.js → p-cb814de3.entry.js} +1 -1
  334. package/lib/duet/p-cbd1e2c6.system.entry.js +4 -0
  335. package/lib/duet/{p-0b8d596f.entry.js → p-cc332f12.entry.js} +1 -1
  336. package/lib/duet/p-cffc25f7.system.entry.js +4 -0
  337. package/lib/duet/p-d03517b4.system.entry.js +4 -0
  338. package/lib/duet/{p-15df8929.js → p-d4d0fd29.js} +1 -1
  339. package/lib/duet/{p-062f3759.system.entry.js → p-d4e3b832.system.entry.js} +1 -1
  340. package/lib/duet/{p-a5331bb2.entry.js → p-d7014558.entry.js} +1 -1
  341. package/lib/duet/{p-f3ac3c5b.system.entry.js → p-d7d050f5.system.entry.js} +1 -1
  342. package/lib/duet/p-d871a695.system.entry.js +4 -0
  343. package/lib/duet/{p-3176b8fc.entry.js → p-d8d0fb8f.entry.js} +1 -1
  344. package/lib/duet/{p-4c1e550d.system.entry.js → p-d94e5b57.system.entry.js} +1 -1
  345. package/lib/duet/{p-047713ed.system.entry.js → p-d9a1ce3e.system.entry.js} +1 -1
  346. package/lib/duet/p-da73f58c.system.entry.js +4 -0
  347. package/lib/duet/{p-81844f31.system.js → p-dbc13c36.system.js} +1 -1
  348. package/lib/duet/p-dd6b8fec.system.entry.js +4 -0
  349. package/lib/duet/{p-3e100ee8.system.entry.js → p-deb0bf2b.system.entry.js} +1 -1
  350. package/lib/duet/{p-1c3be420.system.entry.js → p-def345e8.system.entry.js} +1 -1
  351. package/lib/duet/{p-e56d2f1e.system.entry.js → p-e30006d7.system.entry.js} +1 -1
  352. package/lib/duet/p-e459f448.entry.js +4 -0
  353. package/lib/duet/{p-410fd1f0.system.entry.js → p-e651dcce.system.entry.js} +1 -1
  354. package/lib/duet/{p-07e4077e.entry.js → p-eb92e362.entry.js} +1 -1
  355. package/lib/duet/p-ecb55af2.system.entry.js +4 -0
  356. package/lib/duet/{p-76858d7c.system.entry.js → p-ef7c6a28.system.entry.js} +2 -2
  357. package/lib/duet/p-efdc7c2e.entry.js +4 -0
  358. package/lib/duet/p-efe489f3.entry.js +4 -0
  359. package/lib/duet/{p-74d1ce07.system.entry.js → p-f5708af6.system.entry.js} +1 -1
  360. package/lib/duet/{p-f9b6198b.system.entry.js → p-f998b544.system.entry.js} +1 -1
  361. package/lib/duet/{p-c538413b.system.entry.js → p-fc1cf69f.system.entry.js} +1 -1
  362. package/lib/duet/p-fd7a5a08.entry.js +4 -0
  363. package/lib/duet/{p-2065404b.entry.js → p-fd7de93a.entry.js} +1 -1
  364. package/lib/duet/{p-1de3cfb8.entry.js → p-fee010a2.entry.js} +1 -1
  365. package/lib/duet/{p-b226a97c.system.entry.js → p-ff84ff9d.system.entry.js} +1 -1
  366. package/lib/esm/duet-action-button.entry.js +1 -1
  367. package/lib/esm/duet-alert.entry.js +1 -1
  368. package/lib/esm/duet-badge.entry.js +1 -1
  369. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  370. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  371. package/lib/esm/duet-button_2.entry.js +1 -1
  372. package/lib/esm/duet-caption_4.entry.js +1 -1
  373. package/lib/esm/duet-card.entry.js +1 -1
  374. package/lib/esm/duet-checkbox.entry.js +1 -1
  375. package/lib/esm/duet-checkmark.entry.js +1 -1
  376. package/lib/esm/duet-choice_2.entry.js +2 -2
  377. package/lib/esm/duet-collapsible.entry.js +4 -2
  378. package/lib/esm/duet-combobox.entry.js +1 -1
  379. package/lib/esm/duet-contact-card.entry.js +1 -1
  380. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  381. package/lib/esm/duet-date-picker.entry.js +2 -2
  382. package/lib/esm/duet-divider_2.entry.js +1 -1
  383. package/lib/esm/duet-editable-table_3.entry.js +1 -1
  384. package/lib/esm/duet-empty-state.entry.js +1 -1
  385. package/lib/esm/duet-fieldset.entry.js +1 -1
  386. package/lib/esm/duet-footer.entry.js +1 -1
  387. package/lib/esm/duet-grid_2.entry.js +1 -1
  388. package/lib/esm/duet-header_2.entry.js +1 -1
  389. package/lib/esm/duet-hero.entry.js +3 -3
  390. package/lib/esm/duet-icon.entry.js +1 -1
  391. package/lib/esm/duet-input_2.entry.js +1 -1
  392. package/lib/esm/duet-layout.entry.js +1 -1
  393. package/lib/esm/duet-list_2.entry.js +1 -1
  394. package/lib/esm/duet-menu-bar-button.entry.js +2 -2
  395. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +11 -3
  396. package/lib/esm/duet-menu-bar-dropdown.entry.js +17 -4
  397. package/lib/esm/duet-menu-bar-link.entry.js +3 -3
  398. package/lib/esm/duet-menu-bar.entry.js +7 -1
  399. package/lib/esm/duet-modal.entry.js +2 -2
  400. package/lib/esm/duet-multiselect.entry.js +1 -1
  401. package/lib/esm/duet-nav.entry.js +1 -1
  402. package/lib/esm/duet-notification_2.entry.js +1 -1
  403. package/lib/esm/duet-number-input.entry.js +3 -3
  404. package/lib/esm/duet-page-heading.entry.js +1 -1
  405. package/lib/esm/duet-pagination_2.entry.js +1 -1
  406. package/lib/esm/duet-progress.entry.js +1 -1
  407. package/lib/esm/duet-radio_2.entry.js +1 -1
  408. package/lib/esm/duet-range-slider.entry.js +1 -1
  409. package/lib/esm/duet-scrollable_3.entry.js +2 -2
  410. package/lib/esm/duet-section-layout.entry.js +1 -1
  411. package/lib/esm/duet-select.entry.js +1 -1
  412. package/lib/esm/duet-slideout-lang.entry.js +2 -2
  413. package/lib/esm/duet-slideout-link.entry.js +3 -3
  414. package/lib/esm/duet-slideout-panel-dropdown.entry.js +10 -4
  415. package/lib/esm/duet-slideout-panel.entry.js +31 -10
  416. package/lib/esm/duet-slideout.entry.js +42 -10
  417. package/lib/esm/duet-step_2.entry.js +1 -1
  418. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +13 -3
  419. package/lib/esm/duet-submenu-bar-dropdown.entry.js +31 -5
  420. package/lib/esm/duet-submenu-bar-link.entry.js +12 -3
  421. package/lib/esm/duet-submenu-bar.entry.js +42 -4
  422. package/lib/esm/duet-textarea.entry.js +1 -1
  423. package/lib/esm/duet-toggle.entry.js +1 -1
  424. package/lib/esm/duet-toolbar-dropdown-link.entry.js +11 -3
  425. package/lib/esm/duet-toolbar-dropdown.entry.js +17 -4
  426. package/lib/esm/duet-toolbar-link.entry.js +3 -3
  427. package/lib/esm/duet-toolbar.entry.js +1 -1
  428. package/lib/esm/duet-tooltip.entry.js +4 -1
  429. package/lib/esm/duet-tray.entry.js +1 -1
  430. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  431. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  432. package/lib/esm/duet.js +3 -3
  433. package/lib/esm/{focus-utils-e582db06.js → focus-utils-24487417.js} +1 -1
  434. package/lib/esm/{index-2ffd554c.js → index-3b6ef857.js} +1 -1
  435. package/lib/esm/loader.js +3 -3
  436. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  437. package/lib/esm-es5/duet-alert.entry.js +1 -1
  438. package/lib/esm-es5/duet-badge.entry.js +1 -1
  439. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  440. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  441. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  442. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  443. package/lib/esm-es5/duet-card.entry.js +1 -1
  444. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  445. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  446. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  447. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  448. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  449. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  450. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  451. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  452. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  453. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  454. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  455. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  456. package/lib/esm-es5/duet-footer.entry.js +1 -1
  457. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  458. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  459. package/lib/esm-es5/duet-hero.entry.js +1 -1
  460. package/lib/esm-es5/duet-icon.entry.js +1 -1
  461. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  462. package/lib/esm-es5/duet-layout.entry.js +1 -1
  463. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  464. package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
  465. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  466. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +2 -2
  467. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  468. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  469. package/lib/esm-es5/duet-modal.entry.js +1 -1
  470. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  471. package/lib/esm-es5/duet-nav.entry.js +1 -1
  472. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  473. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  474. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  475. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  476. package/lib/esm-es5/duet-progress.entry.js +1 -1
  477. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  478. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  479. package/lib/esm-es5/duet-scrollable_3.entry.js +2 -2
  480. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  481. package/lib/esm-es5/duet-select.entry.js +1 -1
  482. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  483. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  484. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  485. package/lib/esm-es5/duet-slideout-panel.entry.js +2 -2
  486. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  487. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  488. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  489. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +2 -2
  490. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  491. package/lib/esm-es5/duet-submenu-bar.entry.js +2 -2
  492. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  493. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  494. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  495. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +2 -2
  496. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  497. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  498. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  499. package/lib/esm-es5/duet-tray.entry.js +1 -1
  500. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  501. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  502. package/lib/esm-es5/duet.js +1 -1
  503. package/lib/esm-es5/focus-utils-24487417.js +4 -0
  504. package/lib/esm-es5/{index-2ffd554c.js → index-3b6ef857.js} +1 -1
  505. package/lib/esm-es5/loader.js +1 -1
  506. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +4 -0
  507. package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +3 -1
  508. package/lib/types/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.d.ts +6 -0
  509. package/lib/types/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.d.ts +1 -0
  510. package/lib/types/components/duet-slideout/duet-slideout.d.ts +9 -0
  511. package/lib/types/components/duet-slideout-panel/duet-slideout-panel.d.ts +5 -0
  512. package/lib/types/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.d.ts +5 -0
  513. package/lib/types/components/duet-submenu-bar/duet-submenu-bar.d.ts +11 -0
  514. package/lib/types/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.d.ts +10 -0
  515. package/lib/types/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.d.ts +9 -0
  516. package/lib/types/components/duet-submenu-bar-link/duet-submenu-bar-link.d.ts +5 -0
  517. package/lib/types/components/duet-toolbar-dropdown/duet-toolbar-dropdown.d.ts +6 -0
  518. package/lib/types/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.d.ts +1 -0
  519. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +1 -0
  520. package/lib/types/components.d.ts +60 -0
  521. package/package.json +5 -5
  522. package/lib/duet/p-00172969.js +0 -4
  523. package/lib/duet/p-0050fcea.system.entry.js +0 -4
  524. package/lib/duet/p-0c65784e.entry.js +0 -4
  525. package/lib/duet/p-1ace9df6.system.entry.js +0 -4
  526. package/lib/duet/p-34db2dcf.entry.js +0 -4
  527. package/lib/duet/p-47ad406b.system.entry.js +0 -4
  528. package/lib/duet/p-4bd30449.system.entry.js +0 -4
  529. package/lib/duet/p-4f1e71ea.system.entry.js +0 -4
  530. package/lib/duet/p-56574368.entry.js +0 -4
  531. package/lib/duet/p-56f058c2.entry.js +0 -4
  532. package/lib/duet/p-643f0001.entry.js +0 -4
  533. package/lib/duet/p-666fe490.entry.js +0 -4
  534. package/lib/duet/p-729a6e20.entry.js +0 -4
  535. package/lib/duet/p-74ad3952.system.entry.js +0 -4
  536. package/lib/duet/p-7677f2f8.system.entry.js +0 -4
  537. package/lib/duet/p-7db95aa4.entry.js +0 -4
  538. package/lib/duet/p-7dea3b1c.entry.js +0 -4
  539. package/lib/duet/p-7e97bed4.system.entry.js +0 -4
  540. package/lib/duet/p-803bec7d.entry.js +0 -4
  541. package/lib/duet/p-8821f614.entry.js +0 -4
  542. package/lib/duet/p-8a363e59.entry.js +0 -4
  543. package/lib/duet/p-9bf1b6ec.entry.js +0 -4
  544. package/lib/duet/p-9e6763fd.system.entry.js +0 -4
  545. package/lib/duet/p-9e7923ce.entry.js +0 -4
  546. package/lib/duet/p-a036041f.entry.js +0 -4
  547. package/lib/duet/p-a09e6bdb.system.entry.js +0 -4
  548. package/lib/duet/p-a2293dee.system.js +0 -4
  549. package/lib/duet/p-a3da6b7b.system.entry.js +0 -4
  550. package/lib/duet/p-a5db1616.system.entry.js +0 -4
  551. package/lib/duet/p-a7ee23c4.entry.js +0 -4
  552. package/lib/duet/p-aace5d7b.entry.js +0 -4
  553. package/lib/duet/p-c829c363.entry.js +0 -4
  554. package/lib/duet/p-cad2ce97.system.entry.js +0 -4
  555. package/lib/duet/p-d337fd5d.entry.js +0 -4
  556. package/lib/duet/p-deadbb54.system.entry.js +0 -4
  557. package/lib/duet/p-e5aaea95.entry.js +0 -4
  558. package/lib/duet/p-ec4e2f2a.system.entry.js +0 -4
  559. package/lib/duet/p-f599ebfc.system.entry.js +0 -4
  560. package/lib/duet/p-f86b3eb4.system.entry.js +0 -4
  561. package/lib/duet/p-fd5f21d8.entry.js +0 -4
  562. package/lib/esm-es5/focus-utils-e582db06.js +0 -4
@@ -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
- }, onClick: this.onToggleClick }, this.icon && h("duet-icon", { name: this.icon, size: "medium", margin: "none" }), 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" }))), h("div", { class: {
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" })), 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" }))), 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;
@@ -104,7 +108,13 @@
104
108
  }
105
109
  .duet-slideout-panel-dropdown.duet-theme-turva button {
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
- color: rgb(148, 9, 37);
111
+ color: rgb(23, 28, 58);
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
+ }
116
+ .duet-slideout-panel-dropdown.duet-theme-turva button.active .label::after {
117
+ background: rgb(198, 12, 48);
108
118
  }
109
119
 
110
120
  slot {
@@ -115,7 +125,7 @@ slot {
115
125
  color: rgb(0, 41, 77);
116
126
  }
117
127
  .duet-theme-turva slot {
118
- color: rgb(148, 9, 37);
128
+ color: rgb(23, 28, 58);
119
129
  }
120
130
 
121
131
  slot[name=label] {
@@ -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,9 +44,9 @@ 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
- }, onClick: this.onClick }, this.icon && h("duet-icon", { name: this.icon, size: "medium", margin: "none" }), h("div", { class: "label" }, h("slot", { name: "label" }), h("duet-icon", { class: "caret", name: "action-arrow-down-small", margin: "none", size: "xx-small" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
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,
45
51
  hidden: !this.open,
46
52
  } }, h("slot", null)))));
@@ -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) {
@@ -4,6 +4,7 @@
4
4
  import { media_query_large } from "@duetds/tokens/lib/tokens.json";
5
5
  import { h, Host } from "@stencil/core";
6
6
  import { inheritGlobalTheme } from "../../common/themeable-component";
7
+ import { isEscapeKey } from "../../utils/keyboard-utils";
7
8
  export class DuetSubmenuBarDropdown {
8
9
  constructor() {
9
10
  /**
@@ -24,6 +25,7 @@ export class DuetSubmenuBarDropdown {
24
25
  };
25
26
  this.iconSize = "small";
26
27
  this.theme = "";
28
+ this.active = false;
27
29
  this.open = false;
28
30
  this.icon = undefined;
29
31
  }
@@ -59,14 +61,38 @@ export class DuetSubmenuBarDropdown {
59
61
  }
60
62
  this.boundMqlFunctions = [];
61
63
  }
64
+ handleEscape(e) {
65
+ if (isEscapeKey(e)) {
66
+ if (this.open) {
67
+ this.open = false;
68
+ }
69
+ else {
70
+ const dropdown = this.element.closest("duet-submenu-bar");
71
+ dropdown.open = false;
72
+ dropdown.setFocus();
73
+ }
74
+ }
75
+ }
76
+ /**
77
+ * Sets focus. Use this method instead of the global focus().
78
+ */
79
+ async setFocus(options) {
80
+ this.button.focus(options);
81
+ }
62
82
  /**
63
83
  * render() function
64
84
  * Always the last one in the class.
65
85
  */
66
86
  render() {
67
- return (h(Host, null, h("div", { class: { "duet-submenu-bar-dropdown": true, "duet-theme-turva": this.theme === "turva", active: this.open } }, h("button", { "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
68
- active: this.open,
69
- }, onClick: this.onClick }, this.icon && (h("duet-icon", { theme: this.theme, name: this.icon, size: this.iconSize, margin: "none", color: "currentColor" })), h("div", { class: "label" }, h("slot", { name: "label" }), h("duet-icon", { class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
87
+ return (h(Host, null, h("div", { class: {
88
+ "duet-submenu-bar-dropdown": true,
89
+ "duet-theme-turva": this.theme === "turva",
90
+ open: this.open,
91
+ active: this.active,
92
+ } }, 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: {
93
+ open: this.open,
94
+ active: this.active,
95
+ }, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { theme: this.theme, name: this.icon, size: this.iconSize, margin: "none", color: "currentColor" })), h("div", { class: "label" }, h("span", { class: "label-text" }, h("slot", { name: "label" })), h("duet-icon", { class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
70
96
  items: true,
71
97
  hidden: !this.open,
72
98
  } }, h("slot", null)))));
@@ -108,6 +134,24 @@ export class DuetSubmenuBarDropdown {
108
134
  "reflect": false,
109
135
  "defaultValue": "\"\""
110
136
  },
137
+ "active": {
138
+ "type": "boolean",
139
+ "mutable": true,
140
+ "complexType": {
141
+ "original": "boolean",
142
+ "resolved": "boolean",
143
+ "references": {}
144
+ },
145
+ "required": false,
146
+ "optional": false,
147
+ "docs": {
148
+ "tags": [],
149
+ "text": "Active"
150
+ },
151
+ "attribute": "active",
152
+ "reflect": false,
153
+ "defaultValue": "false"
154
+ },
111
155
  "open": {
112
156
  "type": "boolean",
113
157
  "mutable": true,
@@ -151,6 +195,32 @@ export class DuetSubmenuBarDropdown {
151
195
  "iconSize": {}
152
196
  };
153
197
  }
198
+ static get methods() {
199
+ return {
200
+ "setFocus": {
201
+ "complexType": {
202
+ "signature": "(options?: FocusOptions) => Promise<void>",
203
+ "parameters": [{
204
+ "tags": [],
205
+ "text": ""
206
+ }],
207
+ "references": {
208
+ "Promise": {
209
+ "location": "global"
210
+ },
211
+ "FocusOptions": {
212
+ "location": "global"
213
+ }
214
+ },
215
+ "return": "Promise<void>"
216
+ },
217
+ "docs": {
218
+ "text": "Sets focus. Use this method instead of the global focus().",
219
+ "tags": []
220
+ }
221
+ }
222
+ };
223
+ }
154
224
  static get elementRef() { return "element"; }
155
225
  static get listeners() {
156
226
  return [{
@@ -46,10 +46,40 @@
46
46
  font-size: 0.875rem;
47
47
  }
48
48
  }
49
+ .duet-submenu-bar-dropdown-link:focus {
50
+ outline: 0;
51
+ box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179);
52
+ }
53
+ .duet-submenu-bar-dropdown-link:focus.duet-theme-turva {
54
+ box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58);
55
+ }
56
+ .duet-submenu-bar-dropdown-link.active .label {
57
+ position: relative;
58
+ }
59
+ .duet-submenu-bar-dropdown-link.active .label::after {
60
+ position: absolute;
61
+ top: auto;
62
+ bottom: 0;
63
+ left: 0;
64
+ display: block;
65
+ width: 100%;
66
+ height: 1px;
67
+ content: "";
68
+ background: rgb(0, 119, 179);
69
+ transform: 1px;
70
+ }
71
+ @media (min-width: 62em) {
72
+ .duet-submenu-bar-dropdown-link.active .label::after {
73
+ display: none;
74
+ }
75
+ }
49
76
  .duet-submenu-bar-dropdown-link.duet-theme-turva {
50
77
  font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
51
78
  color: rgb(23, 28, 58);
52
79
  }
80
+ .duet-submenu-bar-dropdown-link.duet-theme-turva.active .label::after {
81
+ background: rgb(198, 12, 48);
82
+ }
53
83
  @media (min-width: 62em) {
54
84
  .duet-submenu-bar-dropdown-link:hover {
55
85
  color: rgb(0, 77, 128);
@@ -3,9 +3,11 @@
3
3
  */
4
4
  import { h, Host } from "@stencil/core";
5
5
  import { inheritGlobalTheme } from "../../common/themeable-component";
6
+ import { isEscapeKey } from "../../utils/keyboard-utils";
6
7
  export class DuetSubmenuBarDropdownLink {
7
8
  constructor() {
8
9
  this.theme = "";
10
+ this.active = false;
9
11
  this.href = "#";
10
12
  this.icon = undefined;
11
13
  this.caret = false;
@@ -17,6 +19,13 @@ export class DuetSubmenuBarDropdownLink {
17
19
  componentWillLoad() {
18
20
  inheritGlobalTheme(this);
19
21
  }
22
+ handleEscape(e) {
23
+ if (isEscapeKey(e)) {
24
+ const dropdown = this.element.closest("duet-submenu-bar-dropdown");
25
+ dropdown.open = false;
26
+ dropdown.setFocus();
27
+ }
28
+ }
20
29
  /**
21
30
  * render() function
22
31
  * Always the last one in the class.
@@ -26,7 +35,8 @@ export class DuetSubmenuBarDropdownLink {
26
35
  "duet-submenu-bar-dropdown-link": true,
27
36
  "duet-theme-turva": this.theme === "turva",
28
37
  highlight: this.highlight,
29
- }, href: this.href, role: "menuitem" }, this.icon && h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" }), h("slot", null), this.caret && h("duet-icon", { name: "action-arrow-right-small", size: "xxx-small", margin: "none" }))));
38
+ active: this.active,
39
+ }, "aria-current": this.active ? "true" : "false", href: this.href, onKeyUp: e => this.handleEscape(e) }, this.icon && h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" }), h("span", { class: "label" }, h("slot", null)), this.caret && h("duet-icon", { name: "action-arrow-right-small", size: "xxx-small", margin: "none" }))));
30
40
  }
31
41
  static get is() { return "duet-submenu-bar-dropdown-link"; }
32
42
  static get encapsulation() { return "shadow"; }
@@ -65,6 +75,24 @@ export class DuetSubmenuBarDropdownLink {
65
75
  "reflect": false,
66
76
  "defaultValue": "\"\""
67
77
  },
78
+ "active": {
79
+ "type": "boolean",
80
+ "mutable": true,
81
+ "complexType": {
82
+ "original": "boolean",
83
+ "resolved": "boolean",
84
+ "references": {}
85
+ },
86
+ "required": false,
87
+ "optional": false,
88
+ "docs": {
89
+ "tags": [],
90
+ "text": "Active"
91
+ },
92
+ "attribute": "active",
93
+ "reflect": false,
94
+ "defaultValue": "false"
95
+ },
68
96
  "href": {
69
97
  "type": "string",
70
98
  "mutable": true,