@duetds/components 6.8.2 → 6.8.4

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 (632) hide show
  1. package/hydrate/index.js +407 -86
  2. package/lib/cjs/duet-action-button.cjs.entry.js +11 -2
  3. package/lib/cjs/duet-alert.cjs.entry.js +14 -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 +9 -1
  8. package/lib/cjs/duet-caption_4.cjs.entry.js +15 -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 +22 -4
  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 +15 -3
  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 +14 -2
  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 +12 -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 +6 -4
  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 +9 -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 +37 -9
  52. package/lib/cjs/duet-slideout.cjs.entry.js +48 -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-1cfcd199.js} +1 -1
  70. package/lib/cjs/{index-5bd185a8.js → index-ab015402.js} +1 -1
  71. package/lib/cjs/loader.cjs.js +2 -2
  72. package/lib/collection/components/duet-action-button/duet-action-button.js +38 -3
  73. package/lib/collection/components/duet-alert/duet-alert.js +21 -4
  74. package/lib/collection/components/duet-button/duet-button.js +27 -12
  75. package/lib/collection/components/duet-caption/duet-caption.js +1 -1
  76. package/lib/collection/components/duet-card/duet-card.js +3 -3
  77. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  78. package/lib/collection/components/duet-choice/duet-choice.js +33 -11
  79. package/lib/collection/components/duet-choice-group/duet-choice-group.css +1 -1
  80. package/lib/collection/components/duet-collapsible/duet-collapsible.css +3 -0
  81. package/lib/collection/components/duet-collapsible/duet-collapsible.js +23 -3
  82. package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
  83. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  84. package/lib/collection/components/duet-date-picker/duet-date-picker.js +23 -9
  85. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  86. package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
  87. package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
  88. package/lib/collection/components/duet-footer/duet-footer.js +26 -12
  89. package/lib/collection/components/duet-grid/duet-grid.js +3 -3
  90. package/lib/collection/components/duet-header/duet-header.js +15 -15
  91. package/lib/collection/components/duet-heading/duet-heading.js +1 -1
  92. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  93. package/lib/collection/components/duet-icon/duet-icon.js +1 -1
  94. package/lib/collection/components/duet-input/duet-input.js +8 -8
  95. package/lib/collection/components/duet-label/duet-label.js +2 -2
  96. package/lib/collection/components/duet-layout/duet-layout.js +1 -1
  97. package/lib/collection/components/duet-link/duet-link.js +20 -3
  98. package/lib/collection/components/duet-list/duet-list.js +4 -4
  99. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  100. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +17 -2
  101. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +7 -0
  102. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +7 -0
  103. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +41 -2
  104. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +7 -0
  105. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +9 -1
  106. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +7 -0
  107. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +1 -1
  108. package/lib/collection/components/duet-modal/duet-modal.js +19 -7
  109. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  110. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
  111. package/lib/collection/components/duet-number-input/duet-number-input.js +6 -6
  112. package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
  113. package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
  114. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  115. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  116. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +6 -4
  117. package/lib/collection/components/duet-select/duet-select.js +5 -5
  118. package/lib/collection/components/duet-slideout/duet-slideout.css +14 -0
  119. package/lib/collection/components/duet-slideout/duet-slideout.js +81 -7
  120. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +14 -2
  121. package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +7 -0
  122. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +1 -1
  123. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +16 -0
  124. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +63 -8
  125. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +8 -1
  126. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +33 -1
  127. package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
  128. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  129. package/lib/collection/components/duet-step/duet-step.js +2 -2
  130. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  131. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +7 -0
  132. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +71 -2
  133. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +41 -8
  134. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +73 -3
  135. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +30 -0
  136. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +29 -1
  137. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +54 -0
  138. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +28 -1
  139. package/lib/collection/components/duet-tab-group/duet-tab-group.css +8 -0
  140. package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
  141. package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
  142. package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
  143. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +7 -0
  144. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +41 -2
  145. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +7 -0
  146. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +9 -1
  147. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +7 -0
  148. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +1 -1
  149. package/lib/collection/components/duet-tooltip/duet-tooltip.js +4 -1
  150. package/lib/collection/components/duet-upload/duet-upload.js +13 -13
  151. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  152. package/lib/dist-custom-elements/duet-alert.js +1 -1
  153. package/lib/dist-custom-elements/duet-badge.js +1 -1
  154. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  155. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  156. package/lib/dist-custom-elements/duet-button.js +1 -1
  157. package/lib/dist-custom-elements/duet-caption.js +1 -1
  158. package/lib/dist-custom-elements/duet-card.js +3 -3
  159. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  160. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  161. package/lib/dist-custom-elements/duet-choice-group.js +7 -7
  162. package/lib/dist-custom-elements/duet-choice.js +28 -9
  163. package/lib/dist-custom-elements/duet-collapsible.js +6 -3
  164. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  165. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  166. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  167. package/lib/dist-custom-elements/duet-date-picker.js +26 -14
  168. package/lib/dist-custom-elements/duet-divider.js +1 -1
  169. package/lib/dist-custom-elements/duet-editable-table.js +1 -1
  170. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  171. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  172. package/lib/dist-custom-elements/duet-footer.js +20 -8
  173. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  174. package/lib/dist-custom-elements/duet-grid.js +1 -1
  175. package/lib/dist-custom-elements/duet-header.js +8 -8
  176. package/lib/dist-custom-elements/duet-heading.js +1 -1
  177. package/lib/dist-custom-elements/duet-hero.js +9 -9
  178. package/lib/dist-custom-elements/duet-icon.js +1 -1
  179. package/lib/dist-custom-elements/duet-input.js +1 -1
  180. package/lib/dist-custom-elements/duet-label.js +1 -1
  181. package/lib/dist-custom-elements/duet-layout.js +1 -1
  182. package/lib/dist-custom-elements/duet-link.js +1 -1
  183. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  184. package/lib/dist-custom-elements/duet-list.js +1 -1
  185. package/lib/dist-custom-elements/duet-logo.js +1 -1
  186. package/lib/dist-custom-elements/duet-menu-bar-button.js +3 -3
  187. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +12 -4
  188. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +20 -6
  189. package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
  190. package/lib/dist-custom-elements/duet-menu-bar.js +9 -3
  191. package/lib/dist-custom-elements/duet-modal.js +20 -10
  192. package/lib/dist-custom-elements/duet-multiselect.js +8 -8
  193. package/lib/dist-custom-elements/duet-nav.js +1 -1
  194. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  195. package/lib/dist-custom-elements/duet-notification.js +2 -2
  196. package/lib/dist-custom-elements/duet-number-input.js +11 -11
  197. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  198. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  199. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  200. package/lib/dist-custom-elements/duet-progress.js +1 -1
  201. package/lib/dist-custom-elements/duet-radio-group.js +6 -6
  202. package/lib/dist-custom-elements/duet-radio.js +1 -1
  203. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  204. package/lib/dist-custom-elements/duet-range-stepper.js +9 -7
  205. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  206. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  207. package/lib/dist-custom-elements/duet-select.js +1 -1
  208. package/lib/dist-custom-elements/duet-slideout-lang.js +14 -12
  209. package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
  210. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +12 -5
  211. package/lib/dist-custom-elements/duet-slideout-panel.js +41 -11
  212. package/lib/dist-custom-elements/duet-slideout.js +51 -11
  213. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  214. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  215. package/lib/dist-custom-elements/duet-step.js +4 -4
  216. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  217. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +15 -4
  218. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +35 -7
  219. package/lib/dist-custom-elements/duet-submenu-bar-link.js +14 -4
  220. package/lib/dist-custom-elements/duet-submenu-bar.js +46 -6
  221. package/lib/dist-custom-elements/duet-tab-group.js +10 -10
  222. package/lib/dist-custom-elements/duet-tab.js +1 -1
  223. package/lib/dist-custom-elements/duet-table.js +1 -1
  224. package/lib/dist-custom-elements/duet-textarea.js +8 -8
  225. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  226. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +12 -4
  227. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +20 -6
  228. package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
  229. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  230. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  231. package/lib/dist-custom-elements/duet-tray.js +3 -3
  232. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  233. package/lib/dist-custom-elements/duet-upload.js +18 -18
  234. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  235. package/lib/dist-custom-elements/index.js +1 -1
  236. package/lib/dist-custom-elements/{p-a4002a4d.js → p-03f5e1df.js} +1 -1
  237. package/lib/dist-custom-elements/{p-6b444ad0.js → p-104dae34.js} +21 -7
  238. package/lib/dist-custom-elements/{p-df0799f0.js → p-139ccc08.js} +1 -1
  239. package/lib/dist-custom-elements/{p-a1c07138.js → p-14fe8052.js} +1 -1
  240. package/lib/dist-custom-elements/{p-b239c17f.js → p-17a5bfd6.js} +2 -2
  241. package/lib/dist-custom-elements/{p-5881ed64.js → p-1b6d9683.js} +1 -1
  242. package/lib/dist-custom-elements/{p-17f54d13.js → p-21ae30e5.js} +20 -6
  243. package/lib/dist-custom-elements/{p-c828fba6.js → p-258d095f.js} +1 -1
  244. package/lib/dist-custom-elements/{p-84465a50.js → p-2b8d110c.js} +1 -1
  245. package/lib/dist-custom-elements/{p-d0a59e71.js → p-43901e47.js} +1 -1
  246. package/lib/dist-custom-elements/{p-92a173c2.js → p-49026ea5.js} +1 -1
  247. package/lib/dist-custom-elements/{p-7ef0b13d.js → p-51be19a2.js} +1 -1
  248. package/lib/dist-custom-elements/{p-4040e9d1.js → p-5333970a.js} +1 -1
  249. package/lib/dist-custom-elements/{p-68b17599.js → p-6891c1b3.js} +2 -2
  250. package/lib/dist-custom-elements/{p-43f613b6.js → p-6c630da1.js} +1 -1
  251. package/lib/dist-custom-elements/{p-f070808d.js → p-7782af26.js} +2 -2
  252. package/lib/dist-custom-elements/{p-1e73f619.js → p-7cccb592.js} +6 -3
  253. package/lib/dist-custom-elements/{p-27004490.js → p-8a77e325.js} +1 -1
  254. package/lib/dist-custom-elements/{p-c6acb315.js → p-92135039.js} +2 -2
  255. package/lib/dist-custom-elements/{p-f2ee6981.js → p-a53cebf1.js} +1 -1
  256. package/lib/dist-custom-elements/{p-6c1ba2d9.js → p-a89fd096.js} +1 -1
  257. package/lib/dist-custom-elements/{p-4ebe6fca.js → p-a971f4cf.js} +7 -7
  258. package/lib/dist-custom-elements/{p-bd43e7e4.js → p-b2b89a56.js} +2 -2
  259. package/lib/dist-custom-elements/{p-f6dad5c3.js → p-bf71c608.js} +1 -1
  260. package/lib/dist-custom-elements/{p-015d1608.js → p-c05dc335.js} +1 -1
  261. package/lib/dist-custom-elements/{p-a3194fa3.js → p-c1d5b264.js} +8 -8
  262. package/lib/dist-custom-elements/{p-e76d5673.js → p-cd486ca1.js} +6 -6
  263. package/lib/dist-custom-elements/{p-7003023f.js → p-d3e697f4.js} +1 -1
  264. package/lib/dist-custom-elements/{p-2f7dd873.js → p-d4995343.js} +1 -1
  265. package/lib/dist-custom-elements/{p-35850774.js → p-e9e98c22.js} +1 -1
  266. package/lib/dist-custom-elements/{p-07f7b627.js → p-f41d4dba.js} +15 -5
  267. package/lib/dist-custom-elements/{p-b869fb52.js → p-fa93f54b.js} +15 -7
  268. package/lib/duet/duet.esm.js +1 -1
  269. package/lib/duet/duet.js +1 -1
  270. package/lib/duet/{p-7f7f4403.system.entry.js → p-006cfe82.system.entry.js} +1 -1
  271. package/lib/duet/{p-6c05e879.js → p-076452be.js} +1 -1
  272. package/lib/duet/p-0769bfaa.system.entry.js +4 -0
  273. package/lib/duet/{p-c46a5357.js → p-0a64a5a4.js} +1 -1
  274. package/lib/duet/{p-df278f38.system.entry.js → p-0a79b874.system.entry.js} +1 -1
  275. package/lib/duet/{p-f2f38e08.system.entry.js → p-0a96cc2c.system.entry.js} +1 -1
  276. package/lib/duet/{p-2c4f8685.system.entry.js → p-0aac4192.system.entry.js} +1 -1
  277. package/lib/duet/p-0ec18f3b.system.entry.js +4 -0
  278. package/lib/duet/p-0ec5260f.system.entry.js +4 -0
  279. package/lib/duet/p-0f5b0e9a.entry.js +4 -0
  280. package/lib/duet/{p-346a2bd3.system.entry.js → p-0f7ab746.system.entry.js} +1 -1
  281. package/lib/duet/p-141234e3.entry.js +4 -0
  282. package/lib/duet/{p-e3dfa3fd.system.entry.js → p-142e0dd6.system.entry.js} +1 -1
  283. package/lib/duet/{p-68e640b3.system.entry.js → p-15346bb7.system.entry.js} +1 -1
  284. package/lib/duet/p-1578385a.system.entry.js +4 -0
  285. package/lib/duet/p-1835986d.system.entry.js +4 -0
  286. package/lib/duet/p-19deb8bb.entry.js +4 -0
  287. package/lib/duet/{p-0c17cc73.entry.js → p-1bdce03c.entry.js} +1 -1
  288. package/lib/duet/{p-353cdb52.entry.js → p-1c731783.entry.js} +1 -1
  289. package/lib/duet/{p-6dd1beb2.entry.js → p-207ad310.entry.js} +1 -1
  290. package/lib/duet/{p-1a769d18.entry.js → p-21f94254.entry.js} +1 -1
  291. package/lib/duet/{p-a7886626.system.entry.js → p-23500651.system.entry.js} +1 -1
  292. package/lib/duet/{p-7204d1fd.system.entry.js → p-238517b4.system.entry.js} +1 -1
  293. package/lib/duet/{p-42160f39.entry.js → p-25bf58d2.entry.js} +1 -1
  294. package/lib/duet/p-271e6527.entry.js +4 -0
  295. package/lib/duet/p-28b0eafe.entry.js +4 -0
  296. package/lib/duet/{p-d174f424.entry.js → p-2b6e9c34.entry.js} +1 -1
  297. package/lib/duet/{p-b457649c.entry.js → p-2b998d32.entry.js} +1 -1
  298. package/lib/duet/p-2b9c8a7d.entry.js +4 -0
  299. package/lib/duet/{p-0de14da6.system.entry.js → p-2b9fb222.system.entry.js} +1 -1
  300. package/lib/duet/{p-05b8ca0a.system.entry.js → p-2dafbb00.system.entry.js} +1 -1
  301. package/lib/duet/p-322c2769.entry.js +4 -0
  302. package/lib/duet/{p-c3caf728.js → p-32ba724d.js} +1 -1
  303. package/lib/duet/{p-ffa1f02e.system.entry.js → p-33a2e92d.system.entry.js} +1 -1
  304. package/lib/duet/p-3405c2df.entry.js +4 -0
  305. package/lib/duet/p-345381c1.entry.js +4 -0
  306. package/lib/duet/{p-d48d67bc.entry.js → p-3490b163.entry.js} +1 -1
  307. package/lib/duet/p-350bad81.system.entry.js +4 -0
  308. package/lib/duet/{p-d114fc82.entry.js → p-369661b2.entry.js} +1 -1
  309. package/lib/duet/p-39f8bec2.entry.js +4 -0
  310. package/lib/duet/{p-2c8c2eb0.entry.js → p-3b197740.entry.js} +1 -1
  311. package/lib/duet/{p-374e2afa.system.entry.js → p-3d2339ae.system.entry.js} +1 -1
  312. package/lib/duet/{p-f49afb80.system.entry.js → p-433085d5.system.entry.js} +1 -1
  313. package/lib/duet/p-45c55f88.system.entry.js +4 -0
  314. package/lib/duet/p-464e267f.system.js +4 -0
  315. package/lib/duet/{p-41bac23d.entry.js → p-4de46382.entry.js} +1 -1
  316. package/lib/duet/p-514e2f71.entry.js +4 -0
  317. package/lib/duet/p-5252d291.system.entry.js +4 -0
  318. package/lib/duet/p-52a0bf60.system.entry.js +4 -0
  319. package/lib/duet/{p-4d16edd4.system.entry.js → p-53d28f2b.system.entry.js} +1 -1
  320. package/lib/duet/p-545ca91e.system.entry.js +4 -0
  321. package/lib/duet/p-57824291.entry.js +4 -0
  322. package/lib/duet/{p-ae043b1a.entry.js → p-599dfb21.entry.js} +1 -1
  323. package/lib/duet/p-5aaee74b.entry.js +4 -0
  324. package/lib/duet/{p-d2a65bd0.system.entry.js → p-5b0b828a.system.entry.js} +1 -1
  325. package/lib/duet/p-5d3c68ad.system.entry.js +4 -0
  326. package/lib/duet/p-5daa0d26.system.entry.js +4 -0
  327. package/lib/duet/p-5dedf71b.entry.js +4 -0
  328. package/lib/duet/{p-582f45a6.entry.js → p-5f1e31c7.entry.js} +1 -1
  329. package/lib/duet/{p-b0a272b8.system.entry.js → p-5f5fae98.system.entry.js} +1 -1
  330. package/lib/duet/p-6597319a.entry.js +4 -0
  331. package/lib/duet/{p-70703d59.system.entry.js → p-6aa662f0.system.entry.js} +1 -1
  332. package/lib/duet/p-6b7be36b.entry.js +4 -0
  333. package/lib/duet/{p-e0a55532.entry.js → p-6c171fd9.entry.js} +1 -1
  334. package/lib/duet/p-6d99c12c.entry.js +4 -0
  335. package/lib/duet/{p-4a0eabaa.system.entry.js → p-6f930a32.system.entry.js} +1 -1
  336. package/lib/duet/p-71eda242.entry.js +4 -0
  337. package/lib/duet/{p-61b2a984.entry.js → p-73e2201d.entry.js} +1 -1
  338. package/lib/duet/{p-e48b3cb6.system.entry.js → p-76dabced.system.entry.js} +1 -1
  339. package/lib/duet/{p-a2fba110.system.entry.js → p-783530af.system.entry.js} +1 -1
  340. package/lib/duet/{p-08577b4d.entry.js → p-78b89180.entry.js} +1 -1
  341. package/lib/duet/{p-06639fa9.system.js → p-7adef50f.system.js} +1 -1
  342. package/lib/duet/p-8025514b.system.entry.js +4 -0
  343. package/lib/duet/{p-9e0534d6.entry.js → p-8085ad32.entry.js} +1 -1
  344. package/lib/duet/{p-484cb1df.entry.js → p-83ac5c6e.entry.js} +1 -1
  345. package/lib/duet/p-85053e56.system.entry.js +4 -0
  346. package/lib/duet/{p-aba0c851.system.entry.js → p-8661ddb0.system.entry.js} +1 -1
  347. package/lib/duet/{p-898b51f5.entry.js → p-86799457.entry.js} +1 -1
  348. package/lib/duet/{p-ef058a21.system.js → p-8684b2af.system.js} +1 -1
  349. package/lib/duet/p-886f3df1.system.entry.js +4 -0
  350. package/lib/duet/{p-2ed52ca0.system.entry.js → p-88d3cc5a.system.entry.js} +1 -1
  351. package/lib/duet/{p-0f50db76.entry.js → p-8aba8575.entry.js} +1 -1
  352. package/lib/duet/{p-61f38e7c.entry.js → p-8ada2a8a.entry.js} +1 -1
  353. package/lib/duet/{p-3f59ba68.entry.js → p-8c20f50a.entry.js} +1 -1
  354. package/lib/duet/p-8dc321a1.entry.js +4 -0
  355. package/lib/duet/{p-5e3a7392.system.entry.js → p-8de9a81e.system.entry.js} +1 -1
  356. package/lib/duet/{p-0b36298e.system.entry.js → p-8f7a04bc.system.entry.js} +1 -1
  357. package/lib/duet/{p-b1a9298f.entry.js → p-8fcd5734.entry.js} +1 -1
  358. package/lib/duet/p-9116af4f.entry.js +4 -0
  359. package/lib/duet/p-94c6c463.entry.js +4 -0
  360. package/lib/duet/{p-4e21a0e1.entry.js → p-994c33e2.entry.js} +1 -1
  361. package/lib/duet/{p-7b98e5b6.system.entry.js → p-9c456965.system.entry.js} +1 -1
  362. package/lib/duet/p-9eaee650.system.entry.js +4 -0
  363. package/lib/duet/{p-0cc7ecde.system.entry.js → p-a05666f0.system.entry.js} +1 -1
  364. package/lib/duet/p-a08a9752.entry.js +4 -0
  365. package/lib/duet/p-a4042d5b.system.entry.js +4 -0
  366. package/lib/duet/{p-654e6734.system.entry.js → p-a4f9eacd.system.entry.js} +1 -1
  367. package/lib/duet/{p-77e68564.entry.js → p-a7b1f336.entry.js} +1 -1
  368. package/lib/duet/p-ac37e21d.entry.js +4 -0
  369. package/lib/duet/p-ad983011.entry.js +4 -0
  370. package/lib/duet/p-aee5400b.system.entry.js +4 -0
  371. package/lib/duet/p-af47bd24.system.entry.js +4 -0
  372. package/lib/duet/{p-06e42ed2.system.entry.js → p-b16848d3.system.entry.js} +1 -1
  373. package/lib/duet/{p-c99c31f7.entry.js → p-b2ebc2e1.entry.js} +1 -1
  374. package/lib/duet/{p-04e7a695.system.entry.js → p-b3e57f17.system.entry.js} +1 -1
  375. package/lib/duet/{p-b32e5d04.system.entry.js → p-b59904ae.system.entry.js} +1 -1
  376. package/lib/duet/{p-5f6f8b70.entry.js → p-c17ad6a4.entry.js} +1 -1
  377. package/lib/duet/p-c32df4f2.system.entry.js +4 -0
  378. package/lib/duet/{p-e0273afd.system.entry.js → p-c46b2038.system.entry.js} +1 -1
  379. package/lib/duet/{p-f426cd26.system.entry.js → p-c6787142.system.entry.js} +1 -1
  380. package/lib/duet/{p-3646032b.entry.js → p-c8892cfa.entry.js} +1 -1
  381. package/lib/duet/{p-5b5238f6.system.entry.js → p-c8b3d426.system.entry.js} +1 -1
  382. package/lib/duet/{p-2ef88161.system.js → p-c8dc599d.system.js} +1 -1
  383. package/lib/duet/{p-6791f183.system.entry.js → p-ca4539ce.system.entry.js} +2 -2
  384. package/lib/duet/{p-1183c748.entry.js → p-ca8a79e7.entry.js} +1 -1
  385. package/lib/duet/{p-5f4a75ea.system.entry.js → p-ccbff327.system.entry.js} +1 -1
  386. package/lib/duet/p-cf33e4a4.entry.js +4 -0
  387. package/lib/duet/{p-aa4d6d89.entry.js → p-d27f9702.entry.js} +1 -1
  388. package/lib/duet/p-d65b676f.entry.js +4 -0
  389. package/lib/duet/{p-dc399de0.system.entry.js → p-d8769dca.system.entry.js} +1 -1
  390. package/lib/duet/p-daf3ccef.system.entry.js +4 -0
  391. package/lib/duet/{p-29413090.system.entry.js → p-db98a514.system.entry.js} +1 -1
  392. package/lib/duet/{p-3d2b012c.entry.js → p-dc8c7e0b.entry.js} +1 -1
  393. package/lib/duet/p-e0651eca.system.entry.js +4 -0
  394. package/lib/duet/{p-48ee2f44.entry.js → p-e4b73cff.entry.js} +1 -1
  395. package/lib/duet/{p-cd515231.entry.js → p-e829bf10.entry.js} +1 -1
  396. package/lib/duet/{p-24e47e60.system.entry.js → p-ec5ae55d.system.entry.js} +1 -1
  397. package/lib/duet/p-ec9d77cf.system.entry.js +4 -0
  398. package/lib/duet/p-f0384acb.entry.js +4 -0
  399. package/lib/duet/{p-642ab531.system.entry.js → p-f06940f6.system.entry.js} +2 -2
  400. package/lib/duet/{p-9e71007b.system.entry.js → p-f0ba21c3.system.entry.js} +1 -1
  401. package/lib/duet/p-f5e7e0a7.system.entry.js +4 -0
  402. package/lib/duet/p-f6f5032b.entry.js +4 -0
  403. package/lib/duet/p-f738d8e5.entry.js +4 -0
  404. package/lib/duet/{p-308907c6.entry.js → p-faaa35cf.entry.js} +1 -1
  405. package/lib/duet/{p-69617b20.entry.js → p-fb1b340d.entry.js} +1 -1
  406. package/lib/duet/{p-7c95a58b.system.entry.js → p-fc318998.system.entry.js} +1 -1
  407. package/lib/duet/p-fcca01e2.entry.js +4 -0
  408. package/lib/duet/{p-1878784a.entry.js → p-ffba3249.entry.js} +1 -1
  409. package/lib/esm/duet-action-button.entry.js +12 -3
  410. package/lib/esm/duet-alert.entry.js +15 -2
  411. package/lib/esm/duet-badge.entry.js +1 -1
  412. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  413. package/lib/esm/duet-breadcrumbs.entry.js +2 -2
  414. package/lib/esm/duet-button_2.entry.js +10 -2
  415. package/lib/esm/duet-caption_4.entry.js +16 -2
  416. package/lib/esm/duet-card.entry.js +1 -1
  417. package/lib/esm/duet-checkbox.entry.js +1 -1
  418. package/lib/esm/duet-checkmark.entry.js +1 -1
  419. package/lib/esm/duet-choice_2.entry.js +23 -5
  420. package/lib/esm/duet-collapsible.entry.js +4 -2
  421. package/lib/esm/duet-combobox.entry.js +2 -2
  422. package/lib/esm/duet-contact-card.entry.js +2 -2
  423. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  424. package/lib/esm/duet-date-picker.entry.js +16 -4
  425. package/lib/esm/duet-divider_2.entry.js +1 -1
  426. package/lib/esm/duet-editable-table_3.entry.js +2 -2
  427. package/lib/esm/duet-empty-state.entry.js +1 -1
  428. package/lib/esm/duet-fieldset.entry.js +1 -1
  429. package/lib/esm/duet-footer.entry.js +15 -3
  430. package/lib/esm/duet-grid_2.entry.js +1 -1
  431. package/lib/esm/duet-header_2.entry.js +2 -2
  432. package/lib/esm/duet-hero.entry.js +2 -2
  433. package/lib/esm/duet-icon.entry.js +1 -1
  434. package/lib/esm/duet-input_2.entry.js +2 -2
  435. package/lib/esm/duet-layout.entry.js +1 -1
  436. package/lib/esm/duet-list_2.entry.js +1 -1
  437. package/lib/esm/duet-menu-bar-button.entry.js +2 -2
  438. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +11 -3
  439. package/lib/esm/duet-menu-bar-dropdown.entry.js +17 -4
  440. package/lib/esm/duet-menu-bar-link.entry.js +3 -3
  441. package/lib/esm/duet-menu-bar.entry.js +7 -1
  442. package/lib/esm/duet-modal.entry.js +13 -3
  443. package/lib/esm/duet-multiselect.entry.js +2 -2
  444. package/lib/esm/duet-nav.entry.js +1 -1
  445. package/lib/esm/duet-notification_2.entry.js +2 -2
  446. package/lib/esm/duet-number-input.entry.js +4 -4
  447. package/lib/esm/duet-page-heading.entry.js +1 -1
  448. package/lib/esm/duet-pagination_2.entry.js +7 -5
  449. package/lib/esm/duet-progress.entry.js +2 -2
  450. package/lib/esm/duet-radio_2.entry.js +1 -1
  451. package/lib/esm/duet-range-slider.entry.js +1 -1
  452. package/lib/esm/duet-scrollable_3.entry.js +3 -3
  453. package/lib/esm/duet-section-layout.entry.js +1 -1
  454. package/lib/esm/duet-select.entry.js +1 -1
  455. package/lib/esm/duet-slideout-lang.entry.js +10 -3
  456. package/lib/esm/duet-slideout-link.entry.js +3 -3
  457. package/lib/esm/duet-slideout-panel-dropdown.entry.js +9 -3
  458. package/lib/esm/duet-slideout-panel.entry.js +38 -10
  459. package/lib/esm/duet-slideout.entry.js +48 -9
  460. package/lib/esm/duet-step_2.entry.js +1 -1
  461. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +13 -3
  462. package/lib/esm/duet-submenu-bar-dropdown.entry.js +31 -5
  463. package/lib/esm/duet-submenu-bar-link.entry.js +12 -3
  464. package/lib/esm/duet-submenu-bar.entry.js +42 -4
  465. package/lib/esm/duet-textarea.entry.js +1 -1
  466. package/lib/esm/duet-toggle.entry.js +1 -1
  467. package/lib/esm/duet-toolbar-dropdown-link.entry.js +11 -3
  468. package/lib/esm/duet-toolbar-dropdown.entry.js +17 -4
  469. package/lib/esm/duet-toolbar-link.entry.js +3 -3
  470. package/lib/esm/duet-toolbar.entry.js +1 -1
  471. package/lib/esm/duet-tooltip.entry.js +5 -2
  472. package/lib/esm/duet-tray.entry.js +2 -2
  473. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  474. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  475. package/lib/esm/duet.js +3 -3
  476. package/lib/esm/{focus-utils-21a3a53d.js → focus-utils-5c277b1d.js} +1 -1
  477. package/lib/esm/{index-bcaee850.js → index-dc7d6b8d.js} +1 -1
  478. package/lib/esm/{language-utils-7b211f31.js → language-utils-6be16ff0.js} +1 -1
  479. package/lib/esm/loader.js +3 -3
  480. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  481. package/lib/esm-es5/duet-alert.entry.js +2 -2
  482. package/lib/esm-es5/duet-badge.entry.js +1 -1
  483. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  484. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  485. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  486. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  487. package/lib/esm-es5/duet-card.entry.js +1 -1
  488. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  489. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  490. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  491. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  492. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  493. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  494. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  495. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  496. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  497. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  498. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  499. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  500. package/lib/esm-es5/duet-footer.entry.js +2 -2
  501. package/lib/esm-es5/duet-grid_2.entry.js +2 -2
  502. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  503. package/lib/esm-es5/duet-hero.entry.js +1 -1
  504. package/lib/esm-es5/duet-icon.entry.js +2 -2
  505. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  506. package/lib/esm-es5/duet-layout.entry.js +1 -1
  507. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  508. package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
  509. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  510. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +2 -2
  511. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  512. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  513. package/lib/esm-es5/duet-modal.entry.js +1 -1
  514. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  515. package/lib/esm-es5/duet-nav.entry.js +1 -1
  516. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  517. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  518. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  519. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  520. package/lib/esm-es5/duet-progress.entry.js +1 -1
  521. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  522. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  523. package/lib/esm-es5/duet-scrollable_3.entry.js +2 -2
  524. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  525. package/lib/esm-es5/duet-select.entry.js +1 -1
  526. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  527. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  528. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
  529. package/lib/esm-es5/duet-slideout-panel.entry.js +2 -2
  530. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  531. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  532. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  533. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +2 -2
  534. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  535. package/lib/esm-es5/duet-submenu-bar.entry.js +2 -2
  536. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  537. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  538. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  539. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +2 -2
  540. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  541. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  542. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  543. package/lib/esm-es5/duet-tray.entry.js +1 -1
  544. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  545. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  546. package/lib/esm-es5/duet.js +1 -1
  547. package/lib/esm-es5/focus-utils-5c277b1d.js +4 -0
  548. package/lib/esm-es5/{index-bcaee850.js → index-dc7d6b8d.js} +1 -1
  549. package/lib/esm-es5/{language-utils-7b211f31.js → language-utils-6be16ff0.js} +1 -1
  550. package/lib/esm-es5/loader.js +1 -1
  551. package/lib/types/components/duet-action-button/duet-action-button.d.ts +6 -0
  552. package/lib/types/components/duet-alert/duet-alert.d.ts +4 -1
  553. package/lib/types/components/duet-button/duet-button.d.ts +3 -2
  554. package/lib/types/components/duet-choice/duet-choice.d.ts +6 -2
  555. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +4 -0
  556. package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +3 -0
  557. package/lib/types/components/duet-footer/duet-footer.d.ts +3 -0
  558. package/lib/types/components/duet-link/duet-link.d.ts +3 -0
  559. package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +3 -1
  560. package/lib/types/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.d.ts +6 -0
  561. package/lib/types/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.d.ts +1 -0
  562. package/lib/types/components/duet-modal/duet-modal.d.ts +2 -0
  563. package/lib/types/components/duet-range-stepper/duet-range-stepper.d.ts +0 -1
  564. package/lib/types/components/duet-slideout/duet-slideout.d.ts +13 -1
  565. package/lib/types/components/duet-slideout-lang/duet-slideout-lang.d.ts +4 -1
  566. package/lib/types/components/duet-slideout-panel/duet-slideout-panel.d.ts +9 -1
  567. package/lib/types/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.d.ts +5 -0
  568. package/lib/types/components/duet-submenu-bar/duet-submenu-bar.d.ts +11 -0
  569. package/lib/types/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.d.ts +10 -0
  570. package/lib/types/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.d.ts +9 -0
  571. package/lib/types/components/duet-submenu-bar-link/duet-submenu-bar-link.d.ts +5 -0
  572. package/lib/types/components/duet-toolbar-dropdown/duet-toolbar-dropdown.d.ts +6 -0
  573. package/lib/types/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.d.ts +1 -0
  574. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +1 -0
  575. package/lib/types/components.d.ts +68 -4
  576. package/package.json +5 -5
  577. package/lib/duet/p-02f78e7e.entry.js +0 -4
  578. package/lib/duet/p-0936046f.system.entry.js +0 -4
  579. package/lib/duet/p-095c84a5.system.entry.js +0 -4
  580. package/lib/duet/p-0bc5e109.entry.js +0 -4
  581. package/lib/duet/p-14f3c696.system.entry.js +0 -4
  582. package/lib/duet/p-151a48c3.entry.js +0 -4
  583. package/lib/duet/p-151ed5e0.system.entry.js +0 -4
  584. package/lib/duet/p-181d4b35.entry.js +0 -4
  585. package/lib/duet/p-1dcbe259.entry.js +0 -4
  586. package/lib/duet/p-1e65e29d.system.entry.js +0 -4
  587. package/lib/duet/p-2020fc25.system.entry.js +0 -4
  588. package/lib/duet/p-28d28436.system.entry.js +0 -4
  589. package/lib/duet/p-28fabb76.entry.js +0 -4
  590. package/lib/duet/p-3815cc9a.entry.js +0 -4
  591. package/lib/duet/p-3c4d9930.system.entry.js +0 -4
  592. package/lib/duet/p-3e428087.entry.js +0 -4
  593. package/lib/duet/p-40411d3b.system.entry.js +0 -4
  594. package/lib/duet/p-4176d5a4.entry.js +0 -4
  595. package/lib/duet/p-488a4d3f.entry.js +0 -4
  596. package/lib/duet/p-498b7d6a.system.entry.js +0 -4
  597. package/lib/duet/p-50e66d06.entry.js +0 -4
  598. package/lib/duet/p-5bc052a4.entry.js +0 -4
  599. package/lib/duet/p-5db96ea2.system.entry.js +0 -4
  600. package/lib/duet/p-5fa09cdb.entry.js +0 -4
  601. package/lib/duet/p-61785e0b.system.entry.js +0 -4
  602. package/lib/duet/p-658283be.system.entry.js +0 -4
  603. package/lib/duet/p-6d4d5fc6.entry.js +0 -4
  604. package/lib/duet/p-727d0488.entry.js +0 -4
  605. package/lib/duet/p-72988da1.entry.js +0 -4
  606. package/lib/duet/p-746ea729.entry.js +0 -4
  607. package/lib/duet/p-78f118fb.entry.js +0 -4
  608. package/lib/duet/p-803ceb21.system.entry.js +0 -4
  609. package/lib/duet/p-86e6814a.entry.js +0 -4
  610. package/lib/duet/p-8b0d3fae.system.entry.js +0 -4
  611. package/lib/duet/p-97eeacac.entry.js +0 -4
  612. package/lib/duet/p-9e886ecf.entry.js +0 -4
  613. package/lib/duet/p-a1eb24b8.system.entry.js +0 -4
  614. package/lib/duet/p-a5689603.system.entry.js +0 -4
  615. package/lib/duet/p-a7edccbb.entry.js +0 -4
  616. package/lib/duet/p-a8bb4f37.entry.js +0 -4
  617. package/lib/duet/p-aeea9d49.system.entry.js +0 -4
  618. package/lib/duet/p-b75cdfc6.entry.js +0 -4
  619. package/lib/duet/p-b8a5580a.entry.js +0 -4
  620. package/lib/duet/p-b9eec94d.entry.js +0 -4
  621. package/lib/duet/p-c4c035fe.entry.js +0 -4
  622. package/lib/duet/p-c7b12a60.system.js +0 -4
  623. package/lib/duet/p-c954e200.system.entry.js +0 -4
  624. package/lib/duet/p-d719bc5b.system.entry.js +0 -4
  625. package/lib/duet/p-d8ccc12d.entry.js +0 -4
  626. package/lib/duet/p-ea17eb88.entry.js +0 -4
  627. package/lib/duet/p-ec7a79f2.system.entry.js +0 -4
  628. package/lib/duet/p-f3089cd4.system.entry.js +0 -4
  629. package/lib/duet/p-f3c7ffda.system.entry.js +0 -4
  630. package/lib/duet/p-f550f63a.system.entry.js +0 -4
  631. package/lib/duet/p-f5623ee8.entry.js +0 -4
  632. package/lib/esm-es5/focus-utils-21a3a53d.js +0 -4
@@ -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);
@@ -4,14 +4,19 @@
4
4
  import { h, Host } from "@stencil/core";
5
5
  import { inheritGlobalTheme } from "../../common/themeable-component";
6
6
  import { FocusGuard } from "../../utils/focus-utils";
7
- import { getLocaleString } from "../../utils/language-utils";
7
+ import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, getLocaleString, } from "../../utils/language-utils";
8
8
  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']");
@@ -40,6 +45,7 @@ export class DuetSlideoutPanel {
40
45
  }
41
46
  };
42
47
  this.label = undefined;
48
+ this.language = getLanguage();
43
49
  this.theme = "";
44
50
  this.active = false;
45
51
  this.open = false;
@@ -54,6 +60,27 @@ export class DuetSlideoutPanel {
54
60
  inheritGlobalTheme(this);
55
61
  this.updateLabel();
56
62
  }
63
+ connectedCallback() {
64
+ connectLanguageChangeObserver(this);
65
+ }
66
+ disconnectedCallback() {
67
+ disconnectLanguageChangeObserver(this);
68
+ }
69
+ /**
70
+ * Sets focus. Use this method instead of the global focus().
71
+ */
72
+ async setFocus(options) {
73
+ if (this.open) {
74
+ setTimeout(() => {
75
+ this.closeButton.focus(options);
76
+ }, 200);
77
+ }
78
+ else {
79
+ setTimeout(() => {
80
+ this.openButton.focus(options);
81
+ }, 200);
82
+ }
83
+ }
57
84
  /**
58
85
  * render() function
59
86
  * Always the last one in the class.
@@ -68,19 +95,20 @@ export class DuetSlideoutPanel {
68
95
  background: getColorByName(defaultBackgroundColor, this.theme),
69
96
  };
70
97
  const exitTranslation = getLocaleString(this.exitLangObject);
98
+ const backTranslation = getLocaleString(this.backLangObject);
71
99
  return (h(Host, null, h("div", { class: {
72
100
  "duet-slideout-panel": true,
73
101
  "duet-theme-turva": this.theme === "turva",
74
102
  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: {
103
+ } }, 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
104
  link: true,
77
105
  active: this.active,
78
106
  }, 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
107
  dialog: true,
80
108
  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: {
109
+ }, 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
110
  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: {
111
+ }, 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
112
  items: true,
85
113
  } }, h("slot", null)), h(FocusGuard, { moveFocusTo: this.closeButton })))));
86
114
  }
@@ -220,7 +248,34 @@ export class DuetSlideoutPanel {
220
248
  }
221
249
  static get states() {
222
250
  return {
223
- "label": {}
251
+ "label": {},
252
+ "language": {}
253
+ };
254
+ }
255
+ static get methods() {
256
+ return {
257
+ "setFocus": {
258
+ "complexType": {
259
+ "signature": "(options?: FocusOptions) => Promise<void>",
260
+ "parameters": [{
261
+ "tags": [],
262
+ "text": ""
263
+ }],
264
+ "references": {
265
+ "Promise": {
266
+ "location": "global"
267
+ },
268
+ "FocusOptions": {
269
+ "location": "global"
270
+ }
271
+ },
272
+ "return": "Promise<void>"
273
+ },
274
+ "docs": {
275
+ "text": "Sets focus. Use this method instead of the global focus().",
276
+ "tags": []
277
+ }
278
+ }
224
279
  };
225
280
  }
226
281
  static get elementRef() { return "element"; }
@@ -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 [{
@@ -49,7 +49,7 @@ export class DuetSpacer {
49
49
  "references": {
50
50
  "DuetSpacerSize": {
51
51
  "location": "local",
52
- "path": "/Users/laaksju3/duetds/packages/components/src/components/duet-spacer/duet-spacer.tsx"
52
+ "path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-spacer/duet-spacer.tsx"
53
53
  }
54
54
  }
55
55
  },
@@ -95,7 +95,7 @@ export class DuetSpacer {
95
95
  "references": {
96
96
  "DuetSpacerBreakpoint": {
97
97
  "location": "local",
98
- "path": "/Users/laaksju3/duetds/packages/components/src/components/duet-spacer/duet-spacer.tsx"
98
+ "path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-spacer/duet-spacer.tsx"
99
99
  }
100
100
  }
101
101
  },
@@ -95,7 +95,7 @@ export class DuetSpinner {
95
95
  "references": {
96
96
  "DuetSpinnerSize": {
97
97
  "location": "local",
98
- "path": "/Users/laaksju3/duetds/packages/components/src/components/duet-spinner/duet-spinner.tsx"
98
+ "path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-spinner/duet-spinner.tsx"
99
99
  }
100
100
  }
101
101
  },
@@ -193,7 +193,7 @@ export class DuetStep {
193
193
  "references": {
194
194
  "DuetStepState": {
195
195
  "location": "local",
196
- "path": "/Users/laaksju3/duetds/packages/components/src/components/duet-step/duet-step.tsx"
196
+ "path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-step/duet-step.tsx"
197
197
  }
198
198
  }
199
199
  },
@@ -270,7 +270,7 @@ export class DuetStep {
270
270
  "references": {
271
271
  "DuetStepClickEvent": {
272
272
  "location": "local",
273
- "path": "/Users/laaksju3/duetds/packages/components/src/components/duet-step/duet-step.tsx"
273
+ "path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-step/duet-step.tsx"
274
274
  }
275
275
  }
276
276
  }
@@ -223,7 +223,7 @@ export class DuetStepper {
223
223
  "references": {
224
224
  "DuetStepChangeEvent": {
225
225
  "location": "local",
226
- "path": "/Users/laaksju3/duetds/packages/components/src/components/duet-stepper/duet-stepper.tsx"
226
+ "path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-stepper/duet-stepper.tsx"
227
227
  }
228
228
  }
229
229
  }
@@ -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 [{