@duetds/components 6.5.1 → 6.5.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 (500) hide show
  1. package/hydrate/index.js +128 -25
  2. package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
  3. package/lib/cjs/duet-alert.cjs.entry.js +2 -2
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-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 +3 -3
  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-choice_2.cjs.entry.js +2 -2
  12. package/lib/cjs/duet-collapsible.cjs.entry.js +5 -3
  13. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-editable-table_3.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  21. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-input_2.cjs.entry.js +64 -7
  26. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +13 -2
  29. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -2
  30. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +3 -2
  31. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  34. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  39. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  46. package/lib/cjs/duet-slideout-link.cjs.entry.js +6 -3
  47. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
  49. package/lib/cjs/duet-slideout.cjs.entry.js +17 -7
  50. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  51. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  52. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  53. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  54. package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  56. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -2
  58. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  60. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  61. package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  65. package/lib/cjs/duet.cjs.js +2 -2
  66. package/lib/cjs/{focus-utils-51b5276c.js → focus-utils-ed2dad1b.js} +1 -1
  67. package/lib/cjs/{index-64cbfac2.js → index-9ee8fef8.js} +1 -1
  68. package/lib/cjs/loader.cjs.js +2 -2
  69. package/lib/collection/components/duet-alert/duet-alert.css +1 -0
  70. package/lib/collection/components/duet-button/duet-button.css +25 -12
  71. package/lib/collection/components/duet-button/duet-button.js +2 -2
  72. package/lib/collection/components/duet-collapsible/duet-collapsible.css +6 -1
  73. package/lib/collection/components/duet-collapsible/duet-collapsible.js +7 -2
  74. package/lib/collection/components/duet-input/duet-input.css +66 -0
  75. package/lib/collection/components/duet-input/duet-input.js +71 -8
  76. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +203 -1
  77. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +19 -1
  78. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +0 -19
  79. package/lib/collection/components/duet-slideout/duet-slideout.css +41 -2
  80. package/lib/collection/components/duet-slideout/duet-slideout.js +18 -9
  81. package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +12 -0
  82. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +58 -2
  83. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +38 -1
  84. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  85. package/lib/dist-custom-elements/duet-alert.js +1 -1
  86. package/lib/dist-custom-elements/duet-badge.js +1 -1
  87. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  88. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  89. package/lib/dist-custom-elements/duet-button.js +1 -1
  90. package/lib/dist-custom-elements/duet-caption.js +1 -1
  91. package/lib/dist-custom-elements/duet-card.js +3 -3
  92. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  93. package/lib/dist-custom-elements/duet-choice-group.js +6 -6
  94. package/lib/dist-custom-elements/duet-choice.js +5 -5
  95. package/lib/dist-custom-elements/duet-collapsible.js +6 -4
  96. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  97. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  98. package/lib/dist-custom-elements/duet-date-picker.js +25 -13
  99. package/lib/dist-custom-elements/duet-divider.js +1 -1
  100. package/lib/dist-custom-elements/duet-editable-table.js +1 -1
  101. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  102. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  103. package/lib/dist-custom-elements/duet-footer.js +4 -4
  104. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  105. package/lib/dist-custom-elements/duet-grid.js +1 -1
  106. package/lib/dist-custom-elements/duet-header.js +8 -8
  107. package/lib/dist-custom-elements/duet-heading.js +1 -1
  108. package/lib/dist-custom-elements/duet-hero.js +9 -9
  109. package/lib/dist-custom-elements/duet-icon.js +1 -1
  110. package/lib/dist-custom-elements/duet-input.js +1 -1
  111. package/lib/dist-custom-elements/duet-label.js +1 -1
  112. package/lib/dist-custom-elements/duet-layout.js +1 -1
  113. package/lib/dist-custom-elements/duet-link.js +1 -1
  114. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  115. package/lib/dist-custom-elements/duet-list.js +1 -1
  116. package/lib/dist-custom-elements/duet-logo.js +1 -1
  117. package/lib/dist-custom-elements/duet-menu-bar-button.js +25 -3
  118. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +3 -5
  119. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +5 -3
  120. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  121. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  122. package/lib/dist-custom-elements/duet-modal.js +7 -7
  123. package/lib/dist-custom-elements/duet-multiselect.js +8 -8
  124. package/lib/dist-custom-elements/duet-nav.js +1 -1
  125. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  126. package/lib/dist-custom-elements/duet-notification.js +2 -2
  127. package/lib/dist-custom-elements/duet-number-input.js +23 -11
  128. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  129. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  130. package/lib/dist-custom-elements/duet-progress.js +1 -1
  131. package/lib/dist-custom-elements/duet-radio-group.js +6 -6
  132. package/lib/dist-custom-elements/duet-radio.js +1 -1
  133. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  134. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  135. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  136. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  137. package/lib/dist-custom-elements/duet-select.js +1 -1
  138. package/lib/dist-custom-elements/duet-slideout-lang.js +3 -3
  139. package/lib/dist-custom-elements/duet-slideout-link.js +10 -4
  140. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  141. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  142. package/lib/dist-custom-elements/duet-slideout.js +17 -8
  143. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  144. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  145. package/lib/dist-custom-elements/duet-step.js +4 -4
  146. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  147. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  148. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  149. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  150. package/lib/dist-custom-elements/duet-submenu-bar.js +2 -2
  151. package/lib/dist-custom-elements/duet-tab-group.js +8 -8
  152. package/lib/dist-custom-elements/duet-tab.js +1 -1
  153. package/lib/dist-custom-elements/duet-table.js +1 -1
  154. package/lib/dist-custom-elements/duet-textarea.js +8 -8
  155. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  156. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +7 -3
  157. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  158. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  159. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  160. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  161. package/lib/dist-custom-elements/duet-tray.js +3 -3
  162. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  163. package/lib/dist-custom-elements/duet-upload.js +18 -18
  164. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  165. package/lib/dist-custom-elements/index.js +1 -1
  166. package/lib/dist-custom-elements/{p-e36e0709.js → p-018af97c.js} +1 -1
  167. package/lib/dist-custom-elements/{p-fe6b0ed3.js → p-0f583b14.js} +1 -1
  168. package/lib/dist-custom-elements/{p-1cfd49ee.js → p-12b2209e.js} +2 -2
  169. package/lib/dist-custom-elements/{p-c5a072f2.js → p-19f6ccfd.js} +2 -2
  170. package/lib/dist-custom-elements/p-1c1d12e6.js +265 -0
  171. package/lib/dist-custom-elements/{p-f04e8a3b.js → p-2799f459.js} +2 -2
  172. package/lib/dist-custom-elements/{p-0df84707.js → p-2973295e.js} +1 -1
  173. package/lib/dist-custom-elements/{p-f0803854.js → p-29ac3d37.js} +1 -1
  174. package/lib/dist-custom-elements/{p-688a047d.js → p-2cc693bd.js} +3 -3
  175. package/lib/dist-custom-elements/{p-6775ca86.js → p-3f4b8d49.js} +6 -6
  176. package/lib/dist-custom-elements/{p-21cfd55b.js → p-4385956a.js} +1 -1
  177. package/lib/dist-custom-elements/{p-cb5e8149.js → p-47157a1e.js} +1 -1
  178. package/lib/dist-custom-elements/{p-ef91ff76.js → p-51525197.js} +7 -7
  179. package/lib/dist-custom-elements/{p-aa118c82.js → p-637de545.js} +3 -3
  180. package/lib/dist-custom-elements/{p-1287c9f0.js → p-65ff709e.js} +3 -3
  181. package/lib/dist-custom-elements/{p-14c4ae63.js → p-6fc347ac.js} +1 -1
  182. package/lib/dist-custom-elements/{p-8ef57d6b.js → p-70525432.js} +2 -2
  183. package/lib/dist-custom-elements/{p-ea4a0707.js → p-a3118d10.js} +1 -1
  184. package/lib/dist-custom-elements/{p-19125b3a.js → p-a9df186e.js} +1 -1
  185. package/lib/dist-custom-elements/{p-012ce9cd.js → p-b1567b3c.js} +1 -1
  186. package/lib/dist-custom-elements/{p-59d01811.js → p-b33885be.js} +1 -1
  187. package/lib/dist-custom-elements/{p-84e4317d.js → p-c4833a6d.js} +2 -2
  188. package/lib/dist-custom-elements/{p-2cae1940.js → p-c58ed6c1.js} +1 -1
  189. package/lib/dist-custom-elements/{p-9c0459ca.js → p-c8062b13.js} +1 -1
  190. package/lib/dist-custom-elements/{p-a7fc05d9.js → p-e41dcc90.js} +1 -1
  191. package/lib/dist-custom-elements/{p-8ece8544.js → p-e9433706.js} +1 -1
  192. package/lib/dist-custom-elements/{p-0d44f43d.js → p-f0e97570.js} +1 -1
  193. package/lib/dist-custom-elements/{p-788c36f2.js → p-f51c6f0d.js} +6 -6
  194. package/lib/dist-custom-elements/{p-667f368c.js → p-fd3b1d69.js} +87 -16
  195. package/lib/dist-custom-elements/{p-a7331687.js → p-fdfff09b.js} +1 -1
  196. package/lib/dist-custom-elements/{p-dd54924c.js → p-ff814bad.js} +1 -1
  197. package/lib/duet/duet.esm.js +1 -1
  198. package/lib/duet/duet.js +1 -1
  199. package/lib/duet/{p-de635e2e.entry.js → p-006b7cf2.entry.js} +1 -1
  200. package/lib/duet/{p-e4eb67fa.system.entry.js → p-04103703.system.entry.js} +1 -1
  201. package/lib/duet/p-052545fb.system.entry.js +4 -0
  202. package/lib/duet/{p-401a0998.system.entry.js → p-055cffab.system.entry.js} +1 -1
  203. package/lib/duet/{p-03ee21a3.entry.js → p-05ff4ff2.entry.js} +1 -1
  204. package/lib/duet/{p-6cde8c43.entry.js → p-08cc78bf.entry.js} +1 -1
  205. package/lib/duet/{p-3f2d8fe4.entry.js → p-08f3c955.entry.js} +1 -1
  206. package/lib/duet/{p-b519684f.entry.js → p-09c3fee3.entry.js} +1 -1
  207. package/lib/duet/{p-362174cc.entry.js → p-0d24350f.entry.js} +1 -1
  208. package/lib/duet/{p-890aabd1.entry.js → p-0e4288ad.entry.js} +1 -1
  209. package/lib/duet/{p-f54e0616.entry.js → p-0eed7e9d.entry.js} +1 -1
  210. package/lib/duet/p-10525faa.system.entry.js +4 -0
  211. package/lib/duet/{p-1f745490.system.entry.js → p-107abf9a.system.entry.js} +1 -1
  212. package/lib/duet/p-111468b4.system.js +4 -0
  213. package/lib/duet/{p-b94a478a.system.entry.js → p-11c83814.system.entry.js} +1 -1
  214. package/lib/duet/{p-2deda672.system.entry.js → p-11eec0c4.system.entry.js} +1 -1
  215. package/lib/duet/{p-ba93a403.system.entry.js → p-12014f2b.system.entry.js} +1 -1
  216. package/lib/duet/{p-09be550b.system.entry.js → p-15910757.system.entry.js} +1 -1
  217. package/lib/duet/{p-e781e62c.entry.js → p-183db4fd.entry.js} +1 -1
  218. package/lib/duet/p-1ca17c3d.system.entry.js +4 -0
  219. package/lib/duet/{p-a3047a26.entry.js → p-1d3b7252.entry.js} +1 -1
  220. package/lib/duet/{p-44d2a1b5.entry.js → p-1d86c33e.entry.js} +1 -1
  221. package/lib/duet/{p-2b73dd59.system.entry.js → p-1f5b0f23.system.entry.js} +1 -1
  222. package/lib/duet/{p-2fdbd2c6.system.entry.js → p-1fcb57c4.system.entry.js} +1 -1
  223. package/lib/duet/{p-2cea3fdb.entry.js → p-20077ae5.entry.js} +1 -1
  224. package/lib/duet/{p-87f2c5d4.system.entry.js → p-24ec796f.system.entry.js} +1 -1
  225. package/lib/duet/{p-f9be45b3.entry.js → p-25f8b35d.entry.js} +1 -1
  226. package/lib/duet/{p-b8decc75.system.entry.js → p-285a5c7a.system.entry.js} +1 -1
  227. package/lib/duet/{p-3d4aa492.system.entry.js → p-29f2cb57.system.entry.js} +1 -1
  228. package/lib/duet/{p-5983d1b7.system.entry.js → p-2bea974a.system.entry.js} +1 -1
  229. package/lib/duet/{p-9884486c.entry.js → p-3179dcc4.entry.js} +1 -1
  230. package/lib/duet/p-35d9ede4.system.entry.js +4 -0
  231. package/lib/duet/{p-1d2a9cf6.system.entry.js → p-36ad1015.system.entry.js} +1 -1
  232. package/lib/duet/p-36e6b035.entry.js +4 -0
  233. package/lib/duet/{p-672dcefc.system.entry.js → p-3783db99.system.entry.js} +1 -1
  234. package/lib/duet/{p-48aa12e2.entry.js → p-3bfd250e.entry.js} +1 -1
  235. package/lib/duet/{p-a9f36246.entry.js → p-43abf083.entry.js} +1 -1
  236. package/lib/duet/{p-80c05a0f.entry.js → p-466341b7.entry.js} +1 -1
  237. package/lib/duet/{p-d6b7e4e9.entry.js → p-4a7c0c4f.entry.js} +1 -1
  238. package/lib/duet/{p-408a536f.entry.js → p-4aa4735d.entry.js} +1 -1
  239. package/lib/duet/{p-8e05ca49.system.entry.js → p-4bb8d188.system.entry.js} +1 -1
  240. package/lib/duet/{p-98c780ad.system.entry.js → p-4be58c8b.system.entry.js} +1 -1
  241. package/lib/duet/{p-7d54d6e1.entry.js → p-4faaf699.entry.js} +1 -1
  242. package/lib/duet/{p-823de698.system.entry.js → p-5058dcff.system.entry.js} +1 -1
  243. package/lib/duet/{p-a63f753e.system.js → p-51721695.system.js} +1 -1
  244. package/lib/duet/{p-17e21461.system.entry.js → p-51dae606.system.entry.js} +1 -1
  245. package/lib/duet/{p-ae39325e.entry.js → p-577f5a55.entry.js} +1 -1
  246. package/lib/duet/{p-781aa86e.system.entry.js → p-5831b7b3.system.entry.js} +1 -1
  247. package/lib/duet/{p-2afce187.entry.js → p-5b7cbc4d.entry.js} +1 -1
  248. package/lib/duet/{p-276895fe.entry.js → p-5c66df7c.entry.js} +1 -1
  249. package/lib/duet/{p-da31f5fc.entry.js → p-5e02b923.entry.js} +1 -1
  250. package/lib/duet/{p-97816dce.system.entry.js → p-5e110a00.system.entry.js} +1 -1
  251. package/lib/duet/{p-437083ed.system.entry.js → p-5ec490da.system.entry.js} +1 -1
  252. package/lib/duet/p-5fff98bf.entry.js +4 -0
  253. package/lib/duet/{p-fb74bd6a.system.entry.js → p-609cd028.system.entry.js} +1 -1
  254. package/lib/duet/{p-42e7aa32.entry.js → p-61fe36d3.entry.js} +1 -1
  255. package/lib/duet/{p-2e49d057.entry.js → p-6410c967.entry.js} +1 -1
  256. package/lib/duet/{p-593f2330.system.entry.js → p-68986f07.system.entry.js} +1 -1
  257. package/lib/duet/{p-6c5f600b.system.entry.js → p-6989d392.system.entry.js} +1 -1
  258. package/lib/duet/{p-ec91cdca.system.entry.js → p-69ab5590.system.entry.js} +1 -1
  259. package/lib/duet/p-6d3a3fd0.js +4 -0
  260. package/lib/duet/{p-5bfb6d98.entry.js → p-72bda1b3.entry.js} +1 -1
  261. package/lib/duet/{p-3937796f.system.entry.js → p-74a742c9.system.entry.js} +1 -1
  262. package/lib/duet/{p-7c4798b2.entry.js → p-79ff1a6a.entry.js} +1 -1
  263. package/lib/duet/{p-fd2c782d.system.entry.js → p-7e39a550.system.entry.js} +1 -1
  264. package/lib/duet/{p-1d08b9ed.entry.js → p-80ffbd1c.entry.js} +1 -1
  265. package/lib/duet/{p-9c7ecd2a.system.entry.js → p-8e69027d.system.entry.js} +1 -1
  266. package/lib/duet/{p-8f69d87b.entry.js → p-94f0387e.entry.js} +1 -1
  267. package/lib/duet/{p-942e7a28.entry.js → p-95a4082f.entry.js} +1 -1
  268. package/lib/duet/p-98ae2cb9.entry.js +4 -0
  269. package/lib/duet/{p-233e91ea.entry.js → p-9ad584d2.entry.js} +1 -1
  270. package/lib/duet/p-9b949b28.entry.js +4 -0
  271. package/lib/duet/p-9bc15874.entry.js +4 -0
  272. package/lib/duet/{p-4e3e91fd.system.entry.js → p-9cbc891f.system.entry.js} +1 -1
  273. package/lib/duet/{p-75c38aee.system.entry.js → p-a1dc9c9e.system.entry.js} +1 -1
  274. package/lib/duet/{p-6afd7b03.entry.js → p-a4054eae.entry.js} +1 -1
  275. package/lib/duet/{p-e7a8d51f.system.entry.js → p-a5a6751e.system.entry.js} +1 -1
  276. package/lib/duet/{p-4ce3c6a6.system.entry.js → p-a77d4c37.system.entry.js} +1 -1
  277. package/lib/duet/{p-2c67137b.system.js → p-a7ec9aa4.system.js} +1 -1
  278. package/lib/duet/{p-01fcb80e.system.js → p-a9ba6306.system.js} +1 -1
  279. package/lib/duet/{p-e68499ea.entry.js → p-aa9f3fc8.entry.js} +1 -1
  280. package/lib/duet/{p-0b415c31.entry.js → p-acf4057a.entry.js} +1 -1
  281. package/lib/duet/{p-91893eb4.system.entry.js → p-ae1e4397.system.entry.js} +1 -1
  282. package/lib/duet/{p-704eb099.entry.js → p-ae39acbe.entry.js} +1 -1
  283. package/lib/duet/{p-ac1eaf2d.entry.js → p-af8dbf72.entry.js} +1 -1
  284. package/lib/duet/{p-4c12d8ba.system.entry.js → p-b0428a5d.system.entry.js} +1 -1
  285. package/lib/duet/{p-77e3c513.system.entry.js → p-b0e1180e.system.entry.js} +1 -1
  286. package/lib/duet/{p-6cf7ebc2.entry.js → p-b20bff64.entry.js} +1 -1
  287. package/lib/duet/{p-4970d360.system.entry.js → p-b3f3bca8.system.entry.js} +1 -1
  288. package/lib/duet/{p-64d1cc95.entry.js → p-b4659570.entry.js} +1 -1
  289. package/lib/duet/p-b63f60f6.system.entry.js +4 -0
  290. package/lib/duet/{p-da71d66d.entry.js → p-b6753d6e.entry.js} +1 -1
  291. package/lib/duet/{p-40ac94f6.entry.js → p-b77e364d.entry.js} +1 -1
  292. package/lib/duet/{p-26d917a0.entry.js → p-bbc717af.entry.js} +1 -1
  293. package/lib/duet/{p-ab4e81ca.entry.js → p-bdbf8bca.entry.js} +1 -1
  294. package/lib/duet/{p-1ab5cbbc.entry.js → p-c0d2e97b.entry.js} +1 -1
  295. package/lib/duet/{p-5ce46c84.entry.js → p-c2f44fde.entry.js} +1 -1
  296. package/lib/duet/{p-6921cfa6.system.entry.js → p-c41c7735.system.entry.js} +2 -2
  297. package/lib/duet/p-c81e306c.system.entry.js +4 -0
  298. package/lib/duet/{p-d39cf5b1.entry.js → p-ca5373cf.entry.js} +1 -1
  299. package/lib/duet/p-cce6bb84.entry.js +4 -0
  300. package/lib/duet/{p-3e5839c6.entry.js → p-cd33c4cd.entry.js} +1 -1
  301. package/lib/duet/p-cd514cf6.system.entry.js +4 -0
  302. package/lib/duet/{p-99e33456.system.entry.js → p-ce35d050.system.entry.js} +1 -1
  303. package/lib/duet/{p-341a9eb0.system.entry.js → p-cfd2206f.system.entry.js} +1 -1
  304. package/lib/duet/{p-31e877bf.system.entry.js → p-d2ffedfa.system.entry.js} +1 -1
  305. package/lib/duet/{p-933256d2.system.entry.js → p-d3f8e957.system.entry.js} +1 -1
  306. package/lib/duet/{p-1c82d61e.entry.js → p-d57020ab.entry.js} +1 -1
  307. package/lib/duet/{p-054a2d07.system.entry.js → p-d76aa87f.system.entry.js} +1 -1
  308. package/lib/duet/p-d86cf803.entry.js +4 -0
  309. package/lib/duet/{p-ab11408b.js → p-d9859e96.js} +1 -1
  310. package/lib/duet/{p-f36dc895.entry.js → p-d9aa697b.entry.js} +1 -1
  311. package/lib/duet/p-dc1e280d.entry.js +4 -0
  312. package/lib/duet/{p-01b63777.system.entry.js → p-dc87c6ce.system.entry.js} +1 -1
  313. package/lib/duet/p-dcf65419.entry.js +4 -0
  314. package/lib/duet/{p-0590a8c0.system.entry.js → p-debdd0e0.system.entry.js} +1 -1
  315. package/lib/duet/{p-d30d6c41.system.entry.js → p-df40670a.system.entry.js} +1 -1
  316. package/lib/duet/{p-ec7699f0.system.entry.js → p-dfe588e8.system.entry.js} +1 -1
  317. package/lib/duet/p-e0c48a7d.entry.js +4 -0
  318. package/lib/duet/{p-9b4de80f.entry.js → p-e82cc5a7.entry.js} +1 -1
  319. package/lib/duet/{p-85658cea.system.entry.js → p-ea09c830.system.entry.js} +1 -1
  320. package/lib/duet/{p-e3165e41.entry.js → p-ebfb519a.entry.js} +1 -1
  321. package/lib/duet/{p-4b838a9c.system.entry.js → p-ecc8c5f4.system.entry.js} +1 -1
  322. package/lib/duet/p-edd23a3b.entry.js +4 -0
  323. package/lib/duet/{p-525687a7.system.entry.js → p-ee4e7bff.system.entry.js} +1 -1
  324. package/lib/duet/{p-54f35a79.js → p-f077c646.js} +1 -1
  325. package/lib/duet/{p-c1f14850.system.entry.js → p-f4b19481.system.entry.js} +1 -1
  326. package/lib/duet/{p-59d13b8d.system.entry.js → p-f58e2c75.system.entry.js} +1 -1
  327. package/lib/duet/{p-d15c8354.system.entry.js → p-f7cefa5d.system.entry.js} +1 -1
  328. package/lib/duet/{p-f6a3085c.system.entry.js → p-f888deb6.system.entry.js} +1 -1
  329. package/lib/duet/{p-4e37aedf.entry.js → p-f8bdcad4.entry.js} +1 -1
  330. package/lib/duet/{p-16911df0.system.entry.js → p-fc6de9c4.system.entry.js} +1 -1
  331. package/lib/duet/{p-66f2c12f.system.entry.js → p-feb0de52.system.entry.js} +1 -1
  332. package/lib/esm/duet-action-button.entry.js +2 -2
  333. package/lib/esm/duet-alert.entry.js +2 -2
  334. package/lib/esm/duet-badge.entry.js +1 -1
  335. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  336. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  337. package/lib/esm/duet-button_2.entry.js +3 -3
  338. package/lib/esm/duet-caption_4.entry.js +1 -1
  339. package/lib/esm/duet-card.entry.js +2 -2
  340. package/lib/esm/duet-checkbox.entry.js +1 -1
  341. package/lib/esm/duet-choice_2.entry.js +3 -3
  342. package/lib/esm/duet-collapsible.entry.js +6 -4
  343. package/lib/esm/duet-combobox.entry.js +2 -2
  344. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  345. package/lib/esm/duet-date-picker.entry.js +2 -2
  346. package/lib/esm/duet-divider_2.entry.js +1 -1
  347. package/lib/esm/duet-editable-table_3.entry.js +2 -2
  348. package/lib/esm/duet-empty-state.entry.js +1 -1
  349. package/lib/esm/duet-fieldset.entry.js +1 -1
  350. package/lib/esm/duet-footer.entry.js +1 -1
  351. package/lib/esm/duet-grid_2.entry.js +1 -1
  352. package/lib/esm/duet-header_2.entry.js +2 -2
  353. package/lib/esm/duet-hero.entry.js +1 -1
  354. package/lib/esm/duet-icon.entry.js +1 -1
  355. package/lib/esm/duet-input_2.entry.js +65 -8
  356. package/lib/esm/duet-layout.entry.js +1 -1
  357. package/lib/esm/duet-list_2.entry.js +1 -1
  358. package/lib/esm/duet-menu-bar-button.entry.js +13 -2
  359. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -2
  360. package/lib/esm/duet-menu-bar-dropdown.entry.js +3 -2
  361. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  362. package/lib/esm/duet-menu-bar.entry.js +1 -1
  363. package/lib/esm/duet-modal.entry.js +3 -3
  364. package/lib/esm/duet-multiselect.entry.js +2 -2
  365. package/lib/esm/duet-nav.entry.js +1 -1
  366. package/lib/esm/duet-notification_2.entry.js +1 -1
  367. package/lib/esm/duet-number-input.entry.js +2 -2
  368. package/lib/esm/duet-pagination_2.entry.js +2 -2
  369. package/lib/esm/duet-progress.entry.js +1 -1
  370. package/lib/esm/duet-radio_2.entry.js +1 -1
  371. package/lib/esm/duet-range-slider.entry.js +1 -1
  372. package/lib/esm/duet-scrollable_3.entry.js +2 -2
  373. package/lib/esm/duet-section-layout.entry.js +1 -1
  374. package/lib/esm/duet-select.entry.js +1 -1
  375. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  376. package/lib/esm/duet-slideout-link.entry.js +6 -3
  377. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  378. package/lib/esm/duet-slideout-panel.entry.js +2 -2
  379. package/lib/esm/duet-slideout.entry.js +17 -7
  380. package/lib/esm/duet-step_2.entry.js +2 -2
  381. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  382. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  383. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  384. package/lib/esm/duet-submenu-bar.entry.js +1 -1
  385. package/lib/esm/duet-textarea.entry.js +1 -1
  386. package/lib/esm/duet-toggle.entry.js +1 -1
  387. package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -2
  388. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  389. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  390. package/lib/esm/duet-toolbar.entry.js +1 -1
  391. package/lib/esm/duet-tooltip.entry.js +1 -1
  392. package/lib/esm/duet-tray.entry.js +1 -1
  393. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  394. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  395. package/lib/esm/duet.js +2 -2
  396. package/lib/esm/{focus-utils-f1a08e01.js → focus-utils-9717e725.js} +1 -1
  397. package/lib/esm/{index-bcdc5466.js → index-e394f675.js} +1 -1
  398. package/lib/esm/{keyboard-utils-88ea1007.js → keyboard-utils-d237bd5a.js} +1 -1
  399. package/lib/esm/loader.js +2 -2
  400. package/lib/esm-es5/duet-action-button.entry.js +2 -2
  401. package/lib/esm-es5/duet-alert.entry.js +1 -1
  402. package/lib/esm-es5/duet-badge.entry.js +1 -1
  403. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  404. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  405. package/lib/esm-es5/duet-button_2.entry.js +2 -2
  406. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  407. package/lib/esm-es5/duet-card.entry.js +1 -1
  408. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  409. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  410. package/lib/esm-es5/duet-collapsible.entry.js +2 -2
  411. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  412. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  413. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  414. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  415. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  416. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  417. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  418. package/lib/esm-es5/duet-footer.entry.js +1 -1
  419. package/lib/esm-es5/duet-grid_2.entry.js +2 -2
  420. package/lib/esm-es5/duet-header_2.entry.js +2 -2
  421. package/lib/esm-es5/duet-hero.entry.js +1 -1
  422. package/lib/esm-es5/duet-icon.entry.js +1 -1
  423. package/lib/esm-es5/duet-input_2.entry.js +2 -2
  424. package/lib/esm-es5/duet-layout.entry.js +1 -1
  425. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  426. package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
  427. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  428. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  429. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  430. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  431. package/lib/esm-es5/duet-modal.entry.js +1 -1
  432. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  433. package/lib/esm-es5/duet-nav.entry.js +1 -1
  434. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  435. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  436. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  437. package/lib/esm-es5/duet-progress.entry.js +1 -1
  438. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  439. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  440. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  441. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  442. package/lib/esm-es5/duet-select.entry.js +1 -1
  443. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  444. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  445. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  446. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  447. package/lib/esm-es5/duet-slideout.entry.js +2 -2
  448. package/lib/esm-es5/duet-step_2.entry.js +2 -2
  449. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  450. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  451. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  452. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  453. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  454. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  455. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  456. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  457. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  458. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  459. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  460. package/lib/esm-es5/duet-tray.entry.js +1 -1
  461. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  462. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  463. package/lib/esm-es5/duet.js +1 -1
  464. package/lib/esm-es5/focus-utils-9717e725.js +4 -0
  465. package/lib/esm-es5/{index-bcdc5466.js → index-e394f675.js} +1 -1
  466. package/lib/esm-es5/{keyboard-utils-88ea1007.js → keyboard-utils-d237bd5a.js} +1 -1
  467. package/lib/esm-es5/loader.js +1 -1
  468. package/lib/types/components/duet-button/duet-button.d.ts +1 -1
  469. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +2 -0
  470. package/lib/types/components/duet-input/duet-input.d.ts +23 -4
  471. package/lib/types/components/duet-menu-bar-button/duet-menu-bar-button.d.ts +51 -1
  472. package/lib/types/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.d.ts +6 -0
  473. package/lib/types/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.d.ts +0 -4
  474. package/lib/types/components/duet-slideout/duet-slideout.d.ts +4 -3
  475. package/lib/types/components/duet-slideout-link/duet-slideout-link.d.ts +15 -1
  476. package/lib/types/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.d.ts +10 -0
  477. package/lib/types/components.d.ts +144 -16
  478. package/package.json +5 -5
  479. package/lib/dist-custom-elements/p-45377b84.js +0 -265
  480. package/lib/duet/p-0112579c.entry.js +0 -4
  481. package/lib/duet/p-24cb9a5c.entry.js +0 -4
  482. package/lib/duet/p-2aed3283.system.entry.js +0 -4
  483. package/lib/duet/p-2b5f338b.entry.js +0 -4
  484. package/lib/duet/p-3211450e.entry.js +0 -4
  485. package/lib/duet/p-35bb4ee9.entry.js +0 -4
  486. package/lib/duet/p-37de9a2f.entry.js +0 -4
  487. package/lib/duet/p-3f375bef.entry.js +0 -4
  488. package/lib/duet/p-4ab49eb4.js +0 -4
  489. package/lib/duet/p-555192b0.system.entry.js +0 -4
  490. package/lib/duet/p-5feb0657.system.entry.js +0 -4
  491. package/lib/duet/p-64cca33a.entry.js +0 -4
  492. package/lib/duet/p-6ab272dd.system.entry.js +0 -4
  493. package/lib/duet/p-6d7d186f.entry.js +0 -4
  494. package/lib/duet/p-6e75fbd6.system.entry.js +0 -4
  495. package/lib/duet/p-7bd6683a.system.entry.js +0 -4
  496. package/lib/duet/p-9b4402ef.entry.js +0 -4
  497. package/lib/duet/p-c87eeeb5.system.js +0 -4
  498. package/lib/duet/p-e53e892f.system.entry.js +0 -4
  499. package/lib/duet/p-f3301cbc.entry.js +0 -4
  500. package/lib/esm-es5/focus-utils-f1a08e01.js +0 -4
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import icon from "@duetds/icons/lib/assets/action-arrow-down-small";
5
5
  import * as tokens from "@duetds/tokens/lib/tokens.json";
6
- import { h, Host } from "@stencil/core";
6
+ import { Build, h, Host } from "@stencil/core";
7
7
  import { inheritGlobalTheme } from "../../common/themeable-component";
8
8
  import { createID } from "../../utils/create-id";
9
9
  import { isKeyboardClick } from "../../utils/keyboard-utils";
@@ -11,6 +11,7 @@ import { sanitizeString } from "../../utils/string-utils";
11
11
  /**
12
12
  * @part duet-collapsible-heading-content - piercing selector for styling the heading content
13
13
  * @part duet-collapsible-content - piercing selector for styling the content
14
+ * @slot after-heading - Content after the heading can be for example badges.
14
15
  */
15
16
  export class DuetCollapsible {
16
17
  constructor() {
@@ -74,6 +75,9 @@ export class DuetCollapsible {
74
75
  */
75
76
  componentWillLoad() {
76
77
  inheritGlobalTheme(this);
78
+ this.hasAfterHeading = Build.isServer
79
+ ? Array.from(this.element.children).filter(el => el.matches("[slot='after-heading']")).length > 0
80
+ : !!this.element.querySelector(":scope > [slot='after-heading']");
77
81
  }
78
82
  /**
79
83
  * Sets focus on the specified `duet-collapsible`. Use this method instead of the global
@@ -95,7 +99,8 @@ export class DuetCollapsible {
95
99
  "duet-collapsible-heading": true,
96
100
  "duet-theme-turva": this.theme === "turva",
97
101
  "duet-collapsible-normal-weight": this.headingWeight === "normal",
98
- }, style: { "font-size": this.getFontSizeFromTokens() }, role: "button", tabindex: "0", ref: button => (this.nativeButton = button), "aria-expanded": this.open ? "true" : "false", "aria-controls": this.id, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { class: "duet-collapsible-heading-icon" }, h("duet-icon", { margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary", size: this.getEquivalentIconSize(), icon: icon.svg })), h("div", { class: "duet-collapsible-heading-content", part: "duet-collapsible-heading-content" }, this.heading)), h("div", { id: this.id, class: { "duet-collapsible-content": true, "duet-theme-turva": this.theme === "turva" }, part: "duet-collapsible-content" }, h("slot", null))));
102
+ "has-after-heading": this.hasAfterHeading,
103
+ }, style: { "font-size": this.getFontSizeFromTokens() }, role: "button", tabindex: "0", ref: button => (this.nativeButton = button), "aria-expanded": this.open ? "true" : "false", "aria-controls": this.id, onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("div", { class: "duet-collapsible-heading-icon" }, h("duet-icon", { margin: "none", color: this.theme === "turva" ? "secondary-turva" : "secondary", size: this.getEquivalentIconSize(), icon: icon.svg })), h("div", { class: "duet-collapsible-heading-content", part: "duet-collapsible-heading-content" }, this.heading), this.hasAfterHeading && (h("div", null, h("slot", { name: "after-heading" })))), h("div", { id: this.id, class: { "duet-collapsible-content": true, "duet-theme-turva": this.theme === "turva" }, part: "duet-collapsible-content" }, h("slot", null))));
99
104
  }
100
105
  static get is() { return "duet-collapsible"; }
101
106
  static get encapsulation() { return "scoped"; }
@@ -388,4 +388,70 @@ duet-caption:not(:last-of-type) {
388
388
  border-right-width: 0 !important;
389
389
  border-top-right-radius: 0 !important;
390
390
  border-bottom-right-radius: 0 !important;
391
+ }
392
+
393
+ .duet-input-variation-revealable {
394
+ position: relative;
395
+ width: 100%;
396
+ }
397
+ .duet-input-variation-revealable ::-ms-reveal {
398
+ display: none;
399
+ }
400
+ .duet-input-variation-revealable .duet-input-relative {
401
+ display: flex;
402
+ flex-direction: row;
403
+ flex-wrap: nowrap;
404
+ align-content: center;
405
+ align-items: center;
406
+ justify-content: flex-start;
407
+ width: auto;
408
+ border: 1px solid #909599;
409
+ border-radius: 4px;
410
+ box-shadow: initial;
411
+ transition: box-shadow 150ms ease, border 150ms ease;
412
+ }
413
+ .duet-theme-turva .duet-input-variation-revealable .duet-input-relative {
414
+ border-color: #747475;
415
+ }
416
+ .duet-input-variation-revealable .duet-input-relative duet-button {
417
+ z-index: 250;
418
+ margin-bottom: 0;
419
+ }
420
+ .duet-input-variation-revealable .duet-input-relative .duet-input {
421
+ border-width: 0 !important;
422
+ }
423
+ .duet-input-variation-revealable .duet-input-relative .duet-input:focus, .duet-input-variation-revealable .duet-input-relative .duet-input:hover {
424
+ border-width: 0 !important;
425
+ box-shadow: none !important;
426
+ }
427
+ .duet-input-variation-revealable.disabled .duet-input-relative {
428
+ background: #f5f8fa;
429
+ border-color: #e1e3e6;
430
+ box-shadow: none;
431
+ }
432
+ .duet-input-variation-revealable.has-error .duet-input-relative {
433
+ border-color: #de2362;
434
+ }
435
+ .duet-input-variation-revealable.duet-theme-turva.has-error .duet-input-relative {
436
+ border-color: #e02a0d;
437
+ }
438
+ .duet-input-variation-revealable.has-focus .duet-input-relative {
439
+ border-color: #0077b3;
440
+ box-shadow: 0 0 0 1px #0077b3;
441
+ }
442
+ .duet-input-variation-revealable.duet-theme-turva.has-focus .duet-input-relative {
443
+ border-color: #171c3a;
444
+ box-shadow: 0 0 0 1px #171c3a;
445
+ }
446
+ .duet-input-variation-revealable:hover:not(.disabled) .duet-input-relative {
447
+ box-shadow: 0 0 0 1px #909599;
448
+ }
449
+ .duet-input-variation-revealable.duet-theme-turva:hover:not(.disabled) .duet-input-relative {
450
+ box-shadow: 0 0 0 1px #747475;
451
+ }
452
+ .duet-input-variation-revealable.has-error:hover:not(.disabled) .duet-input-relative {
453
+ box-shadow: 0 0 0 1px #de2362;
454
+ }
455
+ .duet-input-variation-revealable.duet-theme-turva.has-error:hover:not(.disabled) .duet-input-relative {
456
+ box-shadow: 0 0 0 1px #e02a0d;
391
457
  }
@@ -7,7 +7,7 @@ import { h, Host } from "@stencil/core";
7
7
  import { inheritGlobalTheme } from "../../common";
8
8
  import { createID } from "../../utils/create-id";
9
9
  import { cleanValue, resetCursor } from "../../utils/input-utils";
10
- import { isEscapeKey } from "../../utils/keyboard-utils";
10
+ import { isEnterKey, isEscapeKey } from "../../utils/keyboard-utils";
11
11
  import { getLocaleString } from "../../utils/language-utils";
12
12
  const icons = {
13
13
  search: searchIcon,
@@ -35,6 +35,26 @@ export class DuetInput {
35
35
  fi: "Aika",
36
36
  sv: "Tid",
37
37
  });
38
+ this.showPasswordLabel = getLocaleString({
39
+ en: "Show password",
40
+ fi: "Näytä salasana",
41
+ sv: "Visa lösenord",
42
+ });
43
+ this.hidePasswordLabel = getLocaleString({
44
+ en: "Hide password",
45
+ fi: "Piilota salasana",
46
+ sv: "Dölj lösenord",
47
+ });
48
+ this.passwordShownAriaAnnouncement = getLocaleString({
49
+ en: "Password is shown",
50
+ fi: "Salasana näytetään",
51
+ sv: "Lösenordet visas",
52
+ });
53
+ this.passwordHiddenAriaAnnouncement = getLocaleString({
54
+ en: "Password is hidden",
55
+ fi: "Salasana on piilotettu",
56
+ sv: "Lösenordet är dolt",
57
+ });
38
58
  /**
39
59
  * Component event handling.
40
60
  */
@@ -50,6 +70,14 @@ export class DuetInput {
50
70
  });
51
71
  };
52
72
  this.onBlur = (ev) => {
73
+ // prevent blur event when focus moves to the reveal password button or the input itself
74
+ if (ev.relatedTarget === this.nativeInput || ev.relatedTarget === this.togglePasswordRevealedButton) {
75
+ return;
76
+ }
77
+ if (this.variation === "revealable") {
78
+ this.isPasswordRevealed = false;
79
+ }
80
+ this.isFocused = false;
53
81
  this.duetBlur.emit({
54
82
  originalEvent: ev,
55
83
  value: this.value,
@@ -57,6 +85,7 @@ export class DuetInput {
57
85
  });
58
86
  };
59
87
  this.onFocus = (ev) => {
88
+ this.isFocused = true;
60
89
  this.duetFocus.emit({
61
90
  originalEvent: ev,
62
91
  value: this.value,
@@ -70,8 +99,8 @@ export class DuetInput {
70
99
  component: "duet-input",
71
100
  });
72
101
  };
73
- /** Private functions
74
- *
102
+ /**
103
+ * Private functions
75
104
  */
76
105
  this.getDescribedBy = () => {
77
106
  let describedBy = "";
@@ -98,8 +127,27 @@ export class DuetInput {
98
127
  if (isEscapeKey(event) && this.clear) {
99
128
  this.handleClearClick(event);
100
129
  }
130
+ if (isEnterKey(event) && this.variation === "revealable") {
131
+ if (event.target === this.togglePasswordRevealedButton) {
132
+ event.stopPropagation();
133
+ }
134
+ else {
135
+ this.isPasswordRevealed = false;
136
+ }
137
+ }
101
138
  return event;
102
139
  };
140
+ this.togglePasswordRevealed = () => {
141
+ this.isPasswordRevealed = !this.isPasswordRevealed;
142
+ };
143
+ this.getInputType = () => {
144
+ if (this.variation === "revealable") {
145
+ return this.isPasswordRevealed ? "text" : "password";
146
+ }
147
+ return this.type;
148
+ };
149
+ this.isPasswordRevealed = false;
150
+ this.isFocused = false;
103
151
  this.accessibleActiveDescendant = undefined;
104
152
  this.accessibleAutocomplete = undefined;
105
153
  this.accessibleControls = undefined;
@@ -173,6 +221,13 @@ export class DuetInput {
173
221
  this.disallowedPatternChange();
174
222
  this.isCaptionVisible = !!this.caption;
175
223
  }
224
+ componentDidLoad() {
225
+ if (this.variation === "revealable" && this.nativeInput.form) {
226
+ this.nativeInput.form.addEventListener("submit", () => {
227
+ this.isPasswordRevealed = false;
228
+ });
229
+ }
230
+ }
176
231
  /**
177
232
  * Sets focus on the specified `duet-input`. Use this method instead of the global
178
233
  * `input.focus()`.
@@ -248,19 +303,21 @@ export class DuetInput {
248
303
  (this.type !== "text" && this.type !== "tel" && this.type !== "password" && this.type !== "time")),
249
304
  "has-error": !!this.error,
250
305
  "has-clear": this.clear,
251
- } }, h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-label-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { class: "duet-input-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { class: "duet-input-relative" }, this.placeholder && this.echoPlaceholder && (this.value || this.type === "time") && (h("duet-caption", { id: this.topCaptionPlaceholderId, class: "duet-input-placeholder", margin: "none", size: "small" }, this.placeholder)), h("input", Object.assign({ ref: input => (this.nativeInput = input), onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, type: this.type, class: {
306
+ "has-focus": this.isFocused,
307
+ disabled: this.disabled,
308
+ } }, h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-label-has-tooltip": !!this.tooltip }, margin: this.isCaptionVisible ? "small" : "auto", id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { class: "duet-input-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { class: "duet-input-relative" }, this.placeholder && this.echoPlaceholder && (this.value || this.type === "time") && (h("duet-caption", { id: this.topCaptionPlaceholderId, class: "duet-input-placeholder", margin: "none", size: "small" }, this.placeholder)), h("input", Object.assign({ ref: input => (this.nativeInput = input), onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, type: this.getInputType(), class: {
252
309
  "duet-input": true,
253
310
  disabled: this.disabled,
254
311
  "is-number": this.component === "number",
255
312
  "is-date": this.component === "date",
256
313
  }, value: this.value, disabled: this.disabled, "aria-invalid": this.error ? "true" : "false", "aria-labelledby": this.accessibleLabelledBy
257
314
  ? `${this.errorId} ${this.labelId} ${this.accessibleLabelledBy}`
258
- : `${this.errorId} ${this.labelId}`, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-details": this.accessibleDetails, "aria-errormessage": this.error ? this.errorId : null, "aria-description": this.accessibleDescription, "aria-expanded": this.accessibleExpanded, "aria-haspopup": this.accessibleHasPopup, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), placeholder: this.placeholder, spellcheck: "false", minlength: this.minlength, maxlength: this.maxlength, autocomplete: this.autoComplete, required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)), !this.value && hasInputIcon && (h("div", { class: "duet-input-icon" }, h("duet-icon", { margin: "none", size: "small", icon: icons[this.type].svg, color: "currentColor" }))), this.clear && this.value && (h("div", { class: {
315
+ : `${this.errorId} ${this.labelId}`, "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-details": this.accessibleDetails, "aria-errormessage": this.error ? this.errorId : null, "aria-description": this.accessibleDescription, "aria-expanded": this.accessibleExpanded, "aria-haspopup": this.accessibleHasPopup, "aria-owns": this.accessibleOwns, "aria-describedby": this.getDescribedBy(), placeholder: this.placeholder, spellcheck: "false", minlength: this.minlength, maxlength: this.maxlength, autocomplete: this.type === "password" ? "off" : this.autoComplete, required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)), !this.value && hasInputIcon && (h("div", { class: "duet-input-icon" }, h("duet-icon", { margin: "none", size: "small", icon: icons[this.type].svg, color: "currentColor" }))), this.clear && this.value && (h("div", { class: {
259
316
  "duet-input-clear-icon": true,
260
317
  "duet-input-clear-icon-single": !hasInputIcon,
261
318
  "duet-input-clear-icon-double": !!this.icon,
262
319
  "duet-input-clear-icon-button": this.variation === "button",
263
- } }, h("button", { onClick: this.handleClearClick, id: this.clearId, "aria-label": this.clearLabel, "aria-keyshortcuts": "Escape" }, h("duet-icon", { margin: "none", size: "medium", name: "action-clear-input", color: "currentColor" })))), this.icon && this.variation !== "button" && (h("div", { class: "duet-input-icon" }, h("duet-icon", { margin: "none", size: "small", name: this.icon, color: "currentColor" }))), this.variation === "button" && h("slot", { name: "button" }), h("slot", null)), h("span", { class: "duet-input-help", id: this.errorId, "aria-atomic": "true", "aria-live": "polite", "aria-relevant": "additions removals" }, this.error && h("span", { class: "duet-input-error" }, this.error)))));
320
+ } }, h("button", { onClick: this.handleClearClick, id: this.clearId, "aria-label": this.clearLabel, "aria-keyshortcuts": "Escape" }, h("duet-icon", { margin: "none", size: "medium", name: "action-clear-input", color: "currentColor" })))), this.icon && this.variation !== "button" && (h("div", { class: "duet-input-icon" }, h("duet-icon", { margin: "none", size: "small", name: this.icon, color: "currentColor" }))), this.variation === "button" && h("slot", { name: "button" }), this.variation === "revealable" && (h("duet-button", { ref: button => (this.togglePasswordRevealedButton = button), onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.togglePasswordRevealed, icon: this.isPasswordRevealed ? "action-hide" : "action-show", accessibleLabel: this.isPasswordRevealed ? this.hidePasswordLabel : this.showPasswordLabel, margin: "none", variation: "input-button-embedded", fixed: true, iconOnly: true })), this.variation === "revealable" && (h("duet-visually-hidden", null, h("span", { "aria-live": "polite" }, this.isPasswordRevealed ? this.passwordShownAriaAnnouncement : this.passwordHiddenAriaAnnouncement))), h("slot", null)), h("span", { class: "duet-input-help", id: this.errorId, "aria-atomic": "true", "aria-live": "polite", "aria-relevant": "additions removals" }, this.error && h("span", { class: "duet-input-error" }, this.error)))));
264
321
  }
265
322
  static get is() { return "duet-input"; }
266
323
  static get encapsulation() { return "scoped"; }
@@ -666,7 +723,7 @@ export class DuetInput {
666
723
  "mutable": false,
667
724
  "complexType": {
668
725
  "original": "DuetVariationType",
669
- "resolved": "\"button\" | \"default\"",
726
+ "resolved": "\"button\" | \"default\" | \"revealable\"",
670
727
  "references": {
671
728
  "DuetVariationType": {
672
729
  "location": "local"
@@ -677,7 +734,7 @@ export class DuetInput {
677
734
  "optional": false,
678
735
  "docs": {
679
736
  "tags": [],
680
- "text": "Variation of button."
737
+ "text": "Variation of button. Use \"button\" to render a button element next to the input. Use \"revealable\" to render a button that reveals the password."
681
738
  },
682
739
  "attribute": "variation",
683
740
  "reflect": false,
@@ -997,6 +1054,12 @@ export class DuetInput {
997
1054
  }
998
1055
  };
999
1056
  }
1057
+ static get states() {
1058
+ return {
1059
+ "isPasswordRevealed": {},
1060
+ "isFocused": {}
1061
+ };
1062
+ }
1000
1063
  static get events() {
1001
1064
  return [{
1002
1065
  "method": "duetInput",
@@ -17,6 +17,17 @@ export class DuetMenuBarButton {
17
17
  }
18
18
  };
19
19
  this.iconSize = "x-small";
20
+ this.accessibleLabel = undefined;
21
+ this.accessibleControls = undefined;
22
+ this.accessiblePopup = "false";
23
+ this.accessibleActiveDescendant = undefined;
24
+ this.accessibleOwns = undefined;
25
+ this.accessibleDescribedBy = undefined;
26
+ this.accessibleDetails = undefined;
27
+ this.accessibleLabelledBy = undefined;
28
+ this.accessibleDescription = undefined;
29
+ this.accessibleExpanded = undefined;
30
+ this.accessiblePressed = undefined;
20
31
  this.theme = "";
21
32
  this.icon = undefined;
22
33
  }
@@ -62,7 +73,7 @@ export class DuetMenuBarButton {
62
73
  return (h(Host, { onfocus: () => this.setFocus() }, h("button", { ref: button => (this.nativeButton = button), class: {
63
74
  "duet-menu-bar-button": true,
64
75
  "duet-theme-turva": this.theme === "turva",
65
- } }, this.icon && h("duet-icon", { size: this.iconSize, name: this.icon, margin: "none" }), h("slot", null))));
76
+ }, "aria-controls": this.accessibleControls, "aria-label": this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-pressed": this.accessiblePressed != null ? this.accessiblePressed.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined }, this.icon && h("duet-icon", { size: this.iconSize, name: this.icon, margin: "none" }), h("slot", null))));
66
77
  }
67
78
  static get is() { return "duet-menu-bar-button"; }
68
79
  static get encapsulation() { return "shadow"; }
@@ -78,6 +89,197 @@ export class DuetMenuBarButton {
78
89
  }
79
90
  static get properties() {
80
91
  return {
92
+ "accessibleLabel": {
93
+ "type": "string",
94
+ "mutable": false,
95
+ "complexType": {
96
+ "original": "string",
97
+ "resolved": "string",
98
+ "references": {}
99
+ },
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": "Adds accessible label for the button that is only shown for screen readers.\nTypically, this label text replaces the visible text on the button for\nusers who use assistive technology."
105
+ },
106
+ "attribute": "accessible-label",
107
+ "reflect": false
108
+ },
109
+ "accessibleControls": {
110
+ "type": "string",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "string",
114
+ "resolved": "string",
115
+ "references": {}
116
+ },
117
+ "required": false,
118
+ "optional": false,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": "Use this property to add an aria-controls attribute to the button. Use\nthe attribute to point to the unique id of the content that the button manages."
122
+ },
123
+ "attribute": "accessible-controls",
124
+ "reflect": false
125
+ },
126
+ "accessiblePopup": {
127
+ "type": "string",
128
+ "mutable": false,
129
+ "complexType": {
130
+ "original": "string",
131
+ "resolved": "string",
132
+ "references": {}
133
+ },
134
+ "required": false,
135
+ "optional": false,
136
+ "docs": {
137
+ "tags": [],
138
+ "text": "Use this property to add an aria-haspopup attribute to a button, if you are using it as a menu button."
139
+ },
140
+ "attribute": "accessible-popup",
141
+ "reflect": false,
142
+ "defaultValue": "\"false\""
143
+ },
144
+ "accessibleActiveDescendant": {
145
+ "type": "string",
146
+ "mutable": false,
147
+ "complexType": {
148
+ "original": "string",
149
+ "resolved": "string",
150
+ "references": {}
151
+ },
152
+ "required": false,
153
+ "optional": false,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": "Indicates the id of a related component\u2019s visually focused element."
157
+ },
158
+ "attribute": "accessible-active-descendant",
159
+ "reflect": false
160
+ },
161
+ "accessibleOwns": {
162
+ "type": "string",
163
+ "mutable": false,
164
+ "complexType": {
165
+ "original": "string",
166
+ "resolved": "string",
167
+ "references": {}
168
+ },
169
+ "required": false,
170
+ "optional": false,
171
+ "docs": {
172
+ "tags": [],
173
+ "text": "Indicates the id of a component owned by the button."
174
+ },
175
+ "attribute": "accessible-owns",
176
+ "reflect": false
177
+ },
178
+ "accessibleDescribedBy": {
179
+ "type": "string",
180
+ "mutable": false,
181
+ "complexType": {
182
+ "original": "string",
183
+ "resolved": "string",
184
+ "references": {}
185
+ },
186
+ "required": false,
187
+ "optional": false,
188
+ "docs": {
189
+ "tags": [],
190
+ "text": "Indicates the id of a component that describes the button."
191
+ },
192
+ "attribute": "accessible-described-by",
193
+ "reflect": false
194
+ },
195
+ "accessibleDetails": {
196
+ "type": "string",
197
+ "mutable": false,
198
+ "complexType": {
199
+ "original": "string",
200
+ "resolved": "string",
201
+ "references": {}
202
+ },
203
+ "required": false,
204
+ "optional": false,
205
+ "docs": {
206
+ "tags": [],
207
+ "text": "Details of the component"
208
+ },
209
+ "attribute": "accessible-details",
210
+ "reflect": false,
211
+ "defaultValue": "undefined"
212
+ },
213
+ "accessibleLabelledBy": {
214
+ "type": "string",
215
+ "mutable": false,
216
+ "complexType": {
217
+ "original": "string",
218
+ "resolved": "string",
219
+ "references": {}
220
+ },
221
+ "required": false,
222
+ "optional": false,
223
+ "docs": {
224
+ "tags": [],
225
+ "text": "String of id's that indicate alternative labels elements"
226
+ },
227
+ "attribute": "accessible-labelled-by",
228
+ "reflect": false,
229
+ "defaultValue": "undefined"
230
+ },
231
+ "accessibleDescription": {
232
+ "type": "string",
233
+ "mutable": false,
234
+ "complexType": {
235
+ "original": "string",
236
+ "resolved": "string",
237
+ "references": {}
238
+ },
239
+ "required": false,
240
+ "optional": false,
241
+ "docs": {
242
+ "tags": [],
243
+ "text": "Aria description the button"
244
+ },
245
+ "attribute": "accessible-description",
246
+ "reflect": false,
247
+ "defaultValue": "undefined"
248
+ },
249
+ "accessibleExpanded": {
250
+ "type": "boolean",
251
+ "mutable": false,
252
+ "complexType": {
253
+ "original": "boolean",
254
+ "resolved": "boolean",
255
+ "references": {}
256
+ },
257
+ "required": false,
258
+ "optional": false,
259
+ "docs": {
260
+ "tags": [],
261
+ "text": "If a button expands or collapses adjacent content, then use the ariaExpanded\nprop to add the aria-expanded attribute to the button. Set the value to convey\nthe current expanded (true) or collapsed (false) state of the content."
262
+ },
263
+ "attribute": "accessible-expanded",
264
+ "reflect": false
265
+ },
266
+ "accessiblePressed": {
267
+ "type": "boolean",
268
+ "mutable": false,
269
+ "complexType": {
270
+ "original": "boolean",
271
+ "resolved": "boolean",
272
+ "references": {}
273
+ },
274
+ "required": false,
275
+ "optional": false,
276
+ "docs": {
277
+ "tags": [],
278
+ "text": "Tells screen reader the element is pressed."
279
+ },
280
+ "attribute": "accessible-pressed",
281
+ "reflect": false
282
+ },
81
283
  "theme": {
82
284
  "type": "string",
83
285
  "mutable": true,
@@ -19,6 +19,7 @@ export class DuetMenuBarDropdown {
19
19
  return "right";
20
20
  }
21
21
  };
22
+ this.accessibleLabel = undefined;
22
23
  this.theme = "";
23
24
  this.open = false;
24
25
  this.icon = undefined;
@@ -45,7 +46,7 @@ export class DuetMenuBarDropdown {
45
46
  "duet-theme-turva": this.theme === "turva",
46
47
  active: this.open,
47
48
  [`duet-menu-bar-dropdown--slot-${this.getVariant()}`]: true,
48
- } }, h("button", { "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
49
+ } }, h("button", { "aria-label": this.accessibleLabel, "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
49
50
  active: this.open,
50
51
  }, onClick: this.onClick }, this.icon && h("duet-icon", { name: this.icon, size: "x-small", margin: "none" }), h("div", { class: "label" }, h("slot", { name: "label" }), h("duet-icon", { class: "caret", name: "action-arrow-down-small", margin: "none", size: "xxx-small" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
51
52
  items: true,
@@ -66,6 +67,23 @@ export class DuetMenuBarDropdown {
66
67
  }
67
68
  static get properties() {
68
69
  return {
70
+ "accessibleLabel": {
71
+ "type": "string",
72
+ "mutable": false,
73
+ "complexType": {
74
+ "original": "string",
75
+ "resolved": "string",
76
+ "references": {}
77
+ },
78
+ "required": false,
79
+ "optional": false,
80
+ "docs": {
81
+ "tags": [],
82
+ "text": "Adds accessible label for the button that is only shown for screen readers.\nTypically, this label text replaces the visible text on the button for\nusers who use assistive technology."
83
+ },
84
+ "attribute": "accessible-label",
85
+ "reflect": false
86
+ },
69
87
  "theme": {
70
88
  "type": "string",
71
89
  "mutable": true,
@@ -19,7 +19,6 @@ export class DuetMenuBarDropdownLink {
19
19
  this.theme = "";
20
20
  this.href = "#";
21
21
  this.icon = undefined;
22
- this.caret = false;
23
22
  }
24
23
  /**
25
24
  * Component lifecycle events.
@@ -110,24 +109,6 @@ export class DuetMenuBarDropdownLink {
110
109
  "attribute": "icon",
111
110
  "reflect": true,
112
111
  "defaultValue": "undefined"
113
- },
114
- "caret": {
115
- "type": "boolean",
116
- "mutable": true,
117
- "complexType": {
118
- "original": "boolean",
119
- "resolved": "boolean",
120
- "references": {}
121
- },
122
- "required": false,
123
- "optional": false,
124
- "docs": {
125
- "tags": [],
126
- "text": "Caret"
127
- },
128
- "attribute": "caret",
129
- "reflect": false,
130
- "defaultValue": "false"
131
112
  }
132
113
  };
133
114
  }
@@ -29,6 +29,11 @@
29
29
  opacity: 0;
30
30
  transition: top 0.3s ease-in, opacity 0.3s ease-in;
31
31
  }
32
+ @media (min-width: 62em) {
33
+ :host slot:not([name=toggle])::slotted(*) {
34
+ transition: none;
35
+ }
36
+ }
32
37
 
33
38
  :host([open]) slot:not([name=toggle])::slotted(*) {
34
39
  top: 0;
@@ -40,6 +45,34 @@
40
45
  align-items: center;
41
46
  height: 100%;
42
47
  }
48
+ .duet-slideout .desktop-bg {
49
+ display: none;
50
+ }
51
+ @media (min-width: 62em) {
52
+ .duet-slideout .desktop-bg {
53
+ position: fixed;
54
+ top: 0;
55
+ left: 0;
56
+ z-index: 400;
57
+ display: block;
58
+ width: 100%;
59
+ height: 100%;
60
+ visibility: hidden;
61
+ background: rgba(0, 41, 77, 0.6);
62
+ opacity: 0;
63
+ transition: 600ms ease;
64
+ }
65
+ .duet-slideout .desktop-bg:not(.hidden) {
66
+ visibility: visible;
67
+ opacity: 1;
68
+ transition: 600ms ease;
69
+ }
70
+ }
71
+ @media (min-width: 62em) {
72
+ .duet-slideout.duet-theme-turva .desktop-bg {
73
+ background: rgba(23, 28, 58, 0.6);
74
+ }
75
+ }
43
76
  .duet-slideout .dialog {
44
77
  position: fixed;
45
78
  top: 0;
@@ -57,15 +90,21 @@
57
90
  right: 0;
58
91
  left: auto;
59
92
  width: 500px;
60
- transition: right 600ms ease;
93
+ transition: right 300ms ease;
94
+ transition-delay: 0s;
61
95
  }
62
96
  }
63
97
  .duet-slideout .dialog .top {
98
+ position: relative;
99
+ z-index: 1;
64
100
  display: flex;
65
101
  align-items: center;
66
102
  justify-content: flex-end;
67
103
  padding: 4px;
68
104
  }
105
+ .duet-slideout .dialog .top button {
106
+ cursor: pointer;
107
+ }
69
108
  .duet-slideout .dialog .top duet-icon {
70
109
  padding: 16px;
71
110
  }
@@ -83,7 +122,7 @@
83
122
  @media (min-width: 62em) {
84
123
  .duet-slideout .dialog.hidden {
85
124
  right: -500px;
86
- visibility: visible;
125
+ transition: 300ms ease;
87
126
  }
88
127
  }
89
128
  .duet-slideout.duet-theme-turva button {