@duetds/components 10.5.0 → 10.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (462) hide show
  1. package/hydrate/index.js +501 -263
  2. package/hydrate/index.mjs +501 -263
  3. package/lib/cjs/{a11y-utils-DaAO4N9d.js → a11y-utils-CgWjS7yq.js} +1 -1
  4. package/lib/cjs/{app-globals-CHNvdfQj.js → app-globals-D68ciWsb.js} +1 -1
  5. package/lib/cjs/duet-action-button.cjs.entry.js +6 -6
  6. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  7. package/lib/cjs/duet-badge.cjs.entry.js +7 -7
  8. package/lib/cjs/duet-banner.cjs.entry.js +15 -16
  9. package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
  10. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
  11. package/lib/cjs/duet-button_2.cjs.entry.js +8 -8
  12. package/lib/cjs/duet-callout.cjs.entry.js +5 -5
  13. package/lib/cjs/duet-caption_4.cjs.entry.js +11 -11
  14. package/lib/cjs/duet-card.cjs.entry.js +21 -10
  15. package/lib/cjs/duet-checkbox.cjs.entry.js +3 -3
  16. package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
  17. package/lib/cjs/duet-chip.cjs.entry.js +28 -12
  18. package/lib/cjs/duet-choice_2.cjs.entry.js +7 -7
  19. package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
  20. package/lib/cjs/duet-combobox.cjs.entry.js +6 -6
  21. package/lib/cjs/duet-contact-card.cjs.entry.js +17 -7
  22. package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
  23. package/lib/cjs/duet-date-picker.cjs.entry.js +127 -14
  24. package/lib/cjs/duet-divider_2.cjs.entry.js +5 -5
  25. package/lib/cjs/duet-editable-table_3.cjs.entry.js +15 -15
  26. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  27. package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
  28. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-footer.cjs.entry.js +5 -5
  30. package/lib/cjs/duet-grid_2.cjs.entry.js +4 -4
  31. package/lib/cjs/duet-header_2.cjs.entry.js +7 -7
  32. package/lib/cjs/duet-hero.cjs.entry.js +22 -21
  33. package/lib/cjs/duet-icon.cjs.entry.js +7 -7
  34. package/lib/cjs/duet-indicator.cjs.entry.js +5 -5
  35. package/lib/cjs/duet-input_2.cjs.entry.js +70 -18
  36. package/lib/cjs/duet-layout.cjs.entry.js +7 -7
  37. package/lib/cjs/duet-list_2.cjs.entry.js +5 -5
  38. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
  39. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +5 -5
  40. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +7 -7
  41. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +7 -7
  42. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
  43. package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
  44. package/lib/cjs/duet-modal.cjs.entry.js +15 -15
  45. package/lib/cjs/duet-multiselect.cjs.entry.js +11 -11
  46. package/lib/cjs/duet-nav.cjs.entry.js +3 -3
  47. package/lib/cjs/duet-notification_2.cjs.entry.js +10 -10
  48. package/lib/cjs/duet-number-input.cjs.entry.js +9 -9
  49. package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
  50. package/lib/cjs/duet-page-heading.cjs.entry.js +6 -6
  51. package/lib/cjs/duet-pagination_2.cjs.entry.js +19 -19
  52. package/lib/cjs/duet-panel.cjs.entry.js +4 -4
  53. package/lib/cjs/duet-phone-input.cjs.entry.js +11 -6
  54. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +10 -10
  55. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  56. package/lib/cjs/duet-promo-card.cjs.entry.js +20 -8
  57. package/lib/cjs/duet-radio_2.cjs.entry.js +7 -7
  58. package/lib/cjs/duet-range-slider.cjs.entry.js +8 -8
  59. package/lib/cjs/duet-scrollable_3.cjs.entry.js +18 -18
  60. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  61. package/lib/cjs/duet-select.cjs.entry.js +9 -9
  62. package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
  63. package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
  64. package/lib/cjs/duet-share-chart.cjs.entry.js +8 -8
  65. package/lib/cjs/duet-show-more.cjs.entry.js +6 -6
  66. package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
  67. package/lib/cjs/duet-slideout-link.cjs.entry.js +7 -7
  68. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
  69. package/lib/cjs/duet-slideout-panel.cjs.entry.js +13 -13
  70. package/lib/cjs/duet-slideout.cjs.entry.js +20 -14
  71. package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
  72. package/lib/cjs/duet-step_2.cjs.entry.js +7 -7
  73. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +5 -5
  74. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
  75. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
  76. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +4 -4
  77. package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
  78. package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
  79. package/lib/cjs/duet-toggle.cjs.entry.js +9 -9
  80. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +5 -5
  81. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +7 -7
  82. package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
  83. package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
  84. package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
  85. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +10 -10
  86. package/lib/cjs/duet-tooltip.cjs.entry.js +5 -5
  87. package/lib/cjs/duet-tray.cjs.entry.js +7 -7
  88. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  89. package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
  90. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  91. package/lib/cjs/duet.cjs.js +3 -3
  92. package/lib/cjs/{errorcodes.utils-Dkf_MfrJ.js → errorcodes.utils-C0tQ3k6Z.js} +1 -1
  93. package/lib/cjs/{focus-utils-BuGg0Oha.js → focus-utils-tCoGOO7d.js} +1 -1
  94. package/lib/cjs/{index-ZxE6MB5V.js → index-BeiMjjVl.js} +9 -9
  95. package/lib/cjs/{keyboard-utils-D9UlHbik.js → keyboard-utils-DibQafwg.js} +2 -0
  96. package/lib/cjs/{label-CpPOBfjS.js → label-Cu4DNShe.js} +1 -1
  97. package/lib/cjs/{language-utils-C7Z0KYg-.js → language-utils-B3NubUDr.js} +1 -1
  98. package/lib/cjs/loader.cjs.js +3 -3
  99. package/lib/cjs/picture-utils-D_HVgfq5.js +15 -0
  100. package/lib/cjs/{slot-utils-BXdHT3A1.js → slot-utils-Dny6EJ_G.js} +1 -1
  101. package/lib/cjs/{themeable-component-CIDaln0Z.js → themeable-component-Csdvrnsd.js} +1 -1
  102. package/lib/cjs/{token-utils-DY3-olMV.js → token-utils-ZISdNshf.js} +1 -1
  103. package/lib/cjs/{tokens.module-CTbvyezn.js → tokens.module-CGRpZaa1.js} +2 -1
  104. package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
  105. package/lib/collection/components/duet-alert/duet-alert.js +1 -1
  106. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  107. package/lib/collection/components/duet-banner/duet-banner.css +12 -0
  108. package/lib/collection/components/duet-banner/duet-banner.js +30 -5
  109. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  110. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  111. package/lib/collection/components/duet-button/duet-button.js +8 -8
  112. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  113. package/lib/collection/components/duet-caption/duet-caption.js +1 -1
  114. package/lib/collection/components/duet-card/duet-card.css +3 -0
  115. package/lib/collection/components/duet-card/duet-card.js +43 -7
  116. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  117. package/lib/collection/components/duet-chip/duet-chip.js +53 -17
  118. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  119. package/lib/collection/components/duet-choice/duet-choice.js +3 -3
  120. package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
  121. package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
  122. package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
  123. package/lib/collection/components/duet-contact-card/duet-contact-card.css +3 -0
  124. package/lib/collection/components/duet-contact-card/duet-contact-card.js +38 -2
  125. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  126. package/lib/collection/components/duet-date-picker/date-picker-month.js +4 -2
  127. package/lib/collection/components/duet-date-picker/date-utils.js +7 -0
  128. package/lib/collection/components/duet-date-picker/disallowed-days.js +23 -0
  129. package/lib/collection/components/duet-date-picker/duet-date-picker.js +100 -10
  130. package/lib/collection/components/duet-date-picker/finnish-bank-holidays.js +66 -0
  131. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  132. package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
  133. package/lib/collection/components/duet-empty-state/duet-empty-state.js +3 -3
  134. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  135. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  136. package/lib/collection/components/duet-footer/duet-footer.js +7 -7
  137. package/lib/collection/components/duet-grid/duet-grid.js +3 -3
  138. package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
  139. package/lib/collection/components/duet-header/duet-header.js +15 -15
  140. package/lib/collection/components/duet-heading/duet-heading.js +1 -1
  141. package/lib/collection/components/duet-hero/duet-hero.css +92 -14
  142. package/lib/collection/components/duet-hero/duet-hero.js +47 -21
  143. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  144. package/lib/collection/components/duet-indicator/duet-indicator.js +3 -3
  145. package/lib/collection/components/duet-input/duet-input.js +73 -20
  146. package/lib/collection/components/duet-label/duet-label.js +2 -2
  147. package/lib/collection/components/duet-layout/duet-layout.js +6 -6
  148. package/lib/collection/components/duet-link/duet-link.js +2 -2
  149. package/lib/collection/components/duet-list/duet-list.js +4 -4
  150. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  151. package/lib/collection/components/duet-logo/duet-logo.js +2 -2
  152. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +4 -4
  153. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  154. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  155. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  156. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  157. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  158. package/lib/collection/components/duet-modal/duet-modal.js +11 -11
  159. package/lib/collection/components/duet-multiselect/duet-multiselect.js +11 -11
  160. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  161. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  162. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +4 -4
  163. package/lib/collection/components/duet-number-input/duet-number-input.js +8 -8
  164. package/lib/collection/components/duet-overlay/duet-overlay.js +2 -2
  165. package/lib/collection/components/duet-page-heading/duet-page-heading.js +3 -3
  166. package/lib/collection/components/duet-pagination/duet-pagination.js +13 -13
  167. package/lib/collection/components/duet-panel/duet-panel.js +3 -3
  168. package/lib/collection/components/duet-paragraph/duet-paragraph.js +5 -5
  169. package/lib/collection/components/duet-phone-input/duet-phone-input.js +30 -5
  170. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
  171. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +4 -4
  172. package/lib/collection/components/duet-promo-card/duet-promo-card.css +4 -0
  173. package/lib/collection/components/duet-promo-card/duet-promo-card.js +39 -2
  174. package/lib/collection/components/duet-radio/duet-radio.js +6 -6
  175. package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
  176. package/lib/collection/components/duet-range-slider/duet-range-slider.js +4 -4
  177. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +3 -3
  178. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  179. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  180. package/lib/collection/components/duet-select/duet-select.js +10 -10
  181. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  182. package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
  183. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
  184. package/lib/collection/components/duet-show-more/duet-show-more.js +3 -3
  185. package/lib/collection/components/duet-slideout/duet-slideout.js +12 -6
  186. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  187. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  188. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  189. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  190. package/lib/collection/components/duet-spacer/duet-spacer.js +3 -3
  191. package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
  192. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  193. package/lib/collection/components/duet-step/duet-step.js +4 -4
  194. package/lib/collection/components/duet-stepper/duet-stepper.js +2 -2
  195. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  196. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  197. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  198. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  199. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  200. package/lib/collection/components/duet-tab/duet-tab.js +2 -2
  201. package/lib/collection/components/duet-tab-group/duet-tab-group.js +9 -9
  202. package/lib/collection/components/duet-table/duet-table-styles.js +5 -5
  203. package/lib/collection/components/duet-table/duet-table.js +2 -2
  204. package/lib/collection/components/duet-textarea/duet-textarea.js +7 -7
  205. package/lib/collection/components/duet-toggle/duet-toggle.js +4 -4
  206. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  207. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  208. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  209. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  210. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  211. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
  212. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
  213. package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
  214. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  215. package/lib/collection/components/duet-upload/duet-upload.js +16 -16
  216. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  217. package/lib/collection/components/duet-upload-item/duet-upload-item.js +4 -4
  218. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  219. package/lib/collection/utils/keyboard-utils.js +1 -0
  220. package/lib/duet/duet.esm.js +1 -1
  221. package/lib/duet/p-054c334d.entry.js +4 -0
  222. package/lib/duet/{p-3277233e.entry.js → p-0e10e36b.entry.js} +1 -1
  223. package/lib/duet/{p-9ae7aaef.entry.js → p-12d7fdf6.entry.js} +1 -1
  224. package/lib/duet/{p-3f7afd87.entry.js → p-1579bdf5.entry.js} +1 -1
  225. package/lib/duet/{p-7eea47d5.entry.js → p-174935bc.entry.js} +1 -1
  226. package/lib/duet/{p-42ec7305.entry.js → p-1d7a9425.entry.js} +1 -1
  227. package/lib/duet/{p-317e81f3.entry.js → p-20066df8.entry.js} +1 -1
  228. package/lib/duet/{p-3690576a.entry.js → p-20c8226c.entry.js} +1 -1
  229. package/lib/duet/{p-19863cdf.entry.js → p-210bc161.entry.js} +1 -1
  230. package/lib/duet/{p-b747f6e9.entry.js → p-244bfbf9.entry.js} +1 -1
  231. package/lib/duet/{p-38973524.entry.js → p-264688ae.entry.js} +1 -1
  232. package/lib/duet/{p-93ff8fe4.entry.js → p-2bf78fe4.entry.js} +1 -1
  233. package/lib/duet/{p-9e1a59d1.entry.js → p-2e44c6b8.entry.js} +1 -1
  234. package/lib/duet/{p-c1afac0d.entry.js → p-304a9a55.entry.js} +1 -1
  235. package/lib/duet/{p-516397ba.entry.js → p-30d8a1e4.entry.js} +1 -1
  236. package/lib/duet/p-3445529c.entry.js +4 -0
  237. package/lib/duet/{p-2f8a47e2.entry.js → p-3533d6ee.entry.js} +1 -1
  238. package/lib/duet/{p-fe829b53.entry.js → p-374b48f6.entry.js} +1 -1
  239. package/lib/duet/{p-7353ee4c.entry.js → p-3b9d7f6a.entry.js} +1 -1
  240. package/lib/duet/{p-5f5f72d4.entry.js → p-3def9480.entry.js} +1 -1
  241. package/lib/duet/p-3fbe466a.entry.js +4 -0
  242. package/lib/duet/{p-d3b5c997.entry.js → p-407d4e5a.entry.js} +1 -1
  243. package/lib/duet/p-41230630.entry.js +4 -0
  244. package/lib/duet/p-44e53564.entry.js +4 -0
  245. package/lib/duet/p-46287d85.entry.js +4 -0
  246. package/lib/duet/p-48e77341.entry.js +4 -0
  247. package/lib/duet/{p-a8876b3d.entry.js → p-4a041c60.entry.js} +1 -1
  248. package/lib/duet/{p-efa4eecc.entry.js → p-4a251661.entry.js} +1 -1
  249. package/lib/duet/{p-407f7f03.entry.js → p-4a4e5bb5.entry.js} +1 -1
  250. package/lib/duet/{p-b1326cbb.entry.js → p-4acdc586.entry.js} +1 -1
  251. package/lib/duet/{p-8ace1eb4.entry.js → p-4b07ce36.entry.js} +1 -1
  252. package/lib/duet/{p-e7f2359a.entry.js → p-4cee693b.entry.js} +1 -1
  253. package/lib/duet/{p-3f35fce3.entry.js → p-4e1c2676.entry.js} +1 -1
  254. package/lib/duet/{p-40fa7371.entry.js → p-4e5532c8.entry.js} +1 -1
  255. package/lib/duet/{p-7fd39204.entry.js → p-512d18c8.entry.js} +1 -1
  256. package/lib/duet/{p-6ef683d5.entry.js → p-555e0c78.entry.js} +1 -1
  257. package/lib/duet/{p-cb6c4158.entry.js → p-5b322a86.entry.js} +1 -1
  258. package/lib/duet/p-5f72134e.entry.js +4 -0
  259. package/lib/duet/{p-dedf6a32.entry.js → p-61abccd4.entry.js} +1 -1
  260. package/lib/duet/{p-443af533.entry.js → p-6a11ba26.entry.js} +1 -1
  261. package/lib/duet/{p-f040706c.entry.js → p-6bd78205.entry.js} +1 -1
  262. package/lib/duet/p-6c239923.entry.js +4 -0
  263. package/lib/duet/{p-bdbf0fae.entry.js → p-6ce82324.entry.js} +1 -1
  264. package/lib/duet/{p-268b3066.entry.js → p-6d1d1199.entry.js} +1 -1
  265. package/lib/duet/p-81c5d3e3.entry.js +4 -0
  266. package/lib/duet/p-829bccb7.entry.js +4 -0
  267. package/lib/duet/{p-c2026c6b.entry.js → p-83dcbb64.entry.js} +1 -1
  268. package/lib/duet/{p-461d4089.entry.js → p-84f8bee8.entry.js} +1 -1
  269. package/lib/duet/{p-d6f0afa5.entry.js → p-8927ccc1.entry.js} +1 -1
  270. package/lib/duet/{p-3b2fba0f.entry.js → p-8bdcfd1f.entry.js} +1 -1
  271. package/lib/duet/{p-833802f9.entry.js → p-8fbcea55.entry.js} +1 -1
  272. package/lib/duet/{p-20a8ef81.entry.js → p-914ee7ac.entry.js} +1 -1
  273. package/lib/duet/{p-d3baa815.entry.js → p-95bb2a8d.entry.js} +1 -1
  274. package/lib/duet/{p-cbcee3e2.entry.js → p-985213bb.entry.js} +1 -1
  275. package/lib/duet/{p-52beb436.entry.js → p-9889218e.entry.js} +1 -1
  276. package/lib/duet/{p-30108edc.entry.js → p-9b2731b9.entry.js} +1 -1
  277. package/lib/duet/{p-829db926.entry.js → p-9b448008.entry.js} +1 -1
  278. package/lib/duet/p-9c41f1d5.entry.js +4 -0
  279. package/lib/duet/p-BDgGHTHh.js +4 -0
  280. package/lib/duet/p-BZev46O8.js +4 -0
  281. package/lib/duet/p-BaefVzkx.js +4 -0
  282. package/lib/duet/p-CcoGR9T9.js +4 -0
  283. package/lib/duet/{p-R3pTP2Oy.js → p-CyfEm8iD.js} +1 -1
  284. package/lib/duet/p-D3450NfA.js +5 -0
  285. package/lib/duet/{p-CFqvB5PA.js → p-D9N9LBeD.js} +1 -1
  286. package/lib/duet/{p-C5Yfx2kd.js → p-DI7IXBXp.js} +1 -1
  287. package/lib/duet/{p-D2ly4TZR.js → p-DYmL1tSl.js} +1 -1
  288. package/lib/duet/p-Dk60lC7n.js +4 -0
  289. package/lib/duet/p-JFwTD5kM.js +4 -0
  290. package/lib/duet/{p-BzYmwX5_.js → p-KbNgo0QF.js} +1 -1
  291. package/lib/duet/{p-110c7572.entry.js → p-a01f3141.entry.js} +1 -1
  292. package/lib/duet/{p-43e076b5.entry.js → p-a49b5d93.entry.js} +1 -1
  293. package/lib/duet/p-a6dbe893.entry.js +4 -0
  294. package/lib/duet/{p-1da7703d.entry.js → p-aa1256f9.entry.js} +1 -1
  295. package/lib/duet/{p-a068c086.entry.js → p-aa7e4c81.entry.js} +1 -1
  296. package/lib/duet/{p-70612314.entry.js → p-ac4fc44c.entry.js} +1 -1
  297. package/lib/duet/{p-61ec0e1c.entry.js → p-ae382e2e.entry.js} +1 -1
  298. package/lib/duet/{p-a483117e.entry.js → p-bc41d13d.entry.js} +1 -1
  299. package/lib/duet/{p-734249e0.entry.js → p-c54ecb23.entry.js} +1 -1
  300. package/lib/duet/{p-70961edb.entry.js → p-d72dee5d.entry.js} +1 -1
  301. package/lib/duet/p-d7abb7fa.entry.js +4 -0
  302. package/lib/duet/{p-8b0dfbd7.entry.js → p-dbb9e1d4.entry.js} +1 -1
  303. package/lib/duet/{p-317a1fc0.entry.js → p-e40d9c21.entry.js} +1 -1
  304. package/lib/duet/{p-06297bd8.entry.js → p-e43df9c2.entry.js} +1 -1
  305. package/lib/duet/{p-02d8e844.entry.js → p-e442943d.entry.js} +1 -1
  306. package/lib/duet/p-eb7bc989.entry.js +4 -0
  307. package/lib/duet/{p-a9104184.entry.js → p-ec1d2e0a.entry.js} +1 -1
  308. package/lib/duet/p-edcdf0b7.entry.js +4 -0
  309. package/lib/duet/{p-e08dce92.entry.js → p-ee369233.entry.js} +1 -1
  310. package/lib/duet/{p-8012c7bc.entry.js → p-f297f8f2.entry.js} +1 -1
  311. package/lib/duet/{p-c54be349.entry.js → p-f30c3cfe.entry.js} +1 -1
  312. package/lib/duet/{p-a5177d32.entry.js → p-f4538e9d.entry.js} +1 -1
  313. package/lib/duet/{p-c216e746.entry.js → p-f4de7ac0.entry.js} +1 -1
  314. package/lib/duet/{p-4b7f1244.entry.js → p-f8d640ba.entry.js} +1 -1
  315. package/lib/duet/{p-2dd7d75e.entry.js → p-f9db8670.entry.js} +1 -1
  316. package/lib/duet/p-fc1a18f8.entry.js +4 -0
  317. package/lib/duet/{p-d779fe42.entry.js → p-fc2be136.entry.js} +1 -1
  318. package/lib/duet/p-fdc4a97c.entry.js +4 -0
  319. package/lib/duet/p-kkZE1C6Z.js +4 -0
  320. package/lib/esm/{a11y-utils-ChN5Nhxh.js → a11y-utils--wwGTL0T.js} +1 -1
  321. package/lib/esm/{app-globals-4kCk2rkO.js → app-globals-Diuuep9d.js} +1 -1
  322. package/lib/esm/duet-action-button.entry.js +6 -6
  323. package/lib/esm/duet-alert.entry.js +4 -4
  324. package/lib/esm/duet-badge.entry.js +7 -7
  325. package/lib/esm/duet-banner.entry.js +15 -16
  326. package/lib/esm/duet-breadcrumb.entry.js +7 -7
  327. package/lib/esm/duet-breadcrumbs.entry.js +7 -7
  328. package/lib/esm/duet-button_2.entry.js +8 -8
  329. package/lib/esm/duet-callout.entry.js +5 -5
  330. package/lib/esm/duet-caption_4.entry.js +11 -11
  331. package/lib/esm/duet-card.entry.js +22 -11
  332. package/lib/esm/duet-checkbox.entry.js +3 -3
  333. package/lib/esm/duet-checkmark.entry.js +4 -4
  334. package/lib/esm/duet-chip.entry.js +28 -12
  335. package/lib/esm/duet-choice_2.entry.js +7 -7
  336. package/lib/esm/duet-collapsible.entry.js +4 -4
  337. package/lib/esm/duet-combobox.entry.js +6 -6
  338. package/lib/esm/duet-contact-card.entry.js +17 -7
  339. package/lib/esm/duet-cookie-consent.entry.js +3 -3
  340. package/lib/esm/duet-date-picker.entry.js +127 -14
  341. package/lib/esm/duet-divider_2.entry.js +5 -5
  342. package/lib/esm/duet-editable-table_3.entry.js +15 -15
  343. package/lib/esm/duet-empty-state.entry.js +2 -2
  344. package/lib/esm/duet-fieldset.entry.js +6 -6
  345. package/lib/esm/duet-file-chooser.entry.js +2 -2
  346. package/lib/esm/duet-footer.entry.js +5 -5
  347. package/lib/esm/duet-grid_2.entry.js +4 -4
  348. package/lib/esm/duet-header_2.entry.js +7 -7
  349. package/lib/esm/duet-hero.entry.js +22 -21
  350. package/lib/esm/duet-icon.entry.js +7 -7
  351. package/lib/esm/duet-indicator.entry.js +5 -5
  352. package/lib/esm/duet-input_2.entry.js +70 -18
  353. package/lib/esm/duet-layout.entry.js +7 -7
  354. package/lib/esm/duet-list_2.entry.js +5 -5
  355. package/lib/esm/duet-menu-bar-button.entry.js +4 -4
  356. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +5 -5
  357. package/lib/esm/duet-menu-bar-dropdown.entry.js +7 -7
  358. package/lib/esm/duet-menu-bar-item.entry.js +7 -7
  359. package/lib/esm/duet-menu-bar-link.entry.js +4 -4
  360. package/lib/esm/duet-menu-bar.entry.js +6 -6
  361. package/lib/esm/duet-modal.entry.js +15 -15
  362. package/lib/esm/duet-multiselect.entry.js +11 -11
  363. package/lib/esm/duet-nav.entry.js +3 -3
  364. package/lib/esm/duet-notification_2.entry.js +10 -10
  365. package/lib/esm/duet-number-input.entry.js +9 -9
  366. package/lib/esm/duet-overlay.entry.js +3 -3
  367. package/lib/esm/duet-page-heading.entry.js +6 -6
  368. package/lib/esm/duet-pagination_2.entry.js +19 -19
  369. package/lib/esm/duet-panel.entry.js +4 -4
  370. package/lib/esm/duet-phone-input.entry.js +11 -6
  371. package/lib/esm/duet-popup-menu_2.entry.js +10 -10
  372. package/lib/esm/duet-progress.entry.js +3 -3
  373. package/lib/esm/duet-promo-card.entry.js +20 -8
  374. package/lib/esm/duet-radio_2.entry.js +7 -7
  375. package/lib/esm/duet-range-slider.entry.js +8 -8
  376. package/lib/esm/duet-scrollable_3.entry.js +18 -18
  377. package/lib/esm/duet-section-layout.entry.js +4 -4
  378. package/lib/esm/duet-select.entry.js +9 -9
  379. package/lib/esm/duet-shaped-image.entry.js +4 -4
  380. package/lib/esm/duet-share-chart-item.entry.js +2 -2
  381. package/lib/esm/duet-share-chart.entry.js +8 -8
  382. package/lib/esm/duet-show-more.entry.js +6 -6
  383. package/lib/esm/duet-slideout-lang.entry.js +4 -4
  384. package/lib/esm/duet-slideout-link.entry.js +7 -7
  385. package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
  386. package/lib/esm/duet-slideout-panel.entry.js +13 -13
  387. package/lib/esm/duet-slideout.entry.js +20 -14
  388. package/lib/esm/duet-status-icon.entry.js +3 -3
  389. package/lib/esm/duet-step_2.entry.js +7 -7
  390. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +5 -5
  391. package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
  392. package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
  393. package/lib/esm/duet-submenu-bar-link.entry.js +4 -4
  394. package/lib/esm/duet-submenu-bar.entry.js +7 -7
  395. package/lib/esm/duet-textarea.entry.js +8 -8
  396. package/lib/esm/duet-toggle.entry.js +9 -9
  397. package/lib/esm/duet-toolbar-dropdown-link.entry.js +5 -5
  398. package/lib/esm/duet-toolbar-dropdown.entry.js +7 -7
  399. package/lib/esm/duet-toolbar-item.entry.js +8 -8
  400. package/lib/esm/duet-toolbar-link.entry.js +4 -4
  401. package/lib/esm/duet-toolbar.entry.js +4 -4
  402. package/lib/esm/duet-tooltip-button_2.entry.js +10 -10
  403. package/lib/esm/duet-tooltip.entry.js +5 -5
  404. package/lib/esm/duet-tray.entry.js +7 -7
  405. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  406. package/lib/esm/duet-upload-item.entry.js +6 -6
  407. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  408. package/lib/esm/duet.js +4 -4
  409. package/lib/esm/{errorcodes.utils-DuFCu_27.js → errorcodes.utils-S_WrUPeV.js} +1 -1
  410. package/lib/esm/{focus-utils-CFswdkeD.js → focus-utils-C4oaajGr.js} +1 -1
  411. package/lib/esm/{index-B2cboDWM.js → index-D3450NfA.js} +9 -9
  412. package/lib/esm/{keyboard-utils-Db8rvjPI.js → keyboard-utils-BaefVzkx.js} +2 -1
  413. package/lib/esm/{label-CJxIWUOT.js → label-C1HF2o4Y.js} +1 -1
  414. package/lib/esm/{language-utils-C4M4ASkT.js → language-utils-D4WVl8Ph.js} +1 -1
  415. package/lib/esm/loader.js +4 -4
  416. package/lib/esm/picture-utils-MSeJTkDk.js +13 -0
  417. package/lib/esm/{slot-utils--sNK1DNn.js → slot-utils-Dxcjtmp3.js} +1 -1
  418. package/lib/esm/{themeable-component-BBi3552X.js → themeable-component-QHdUfcat.js} +1 -1
  419. package/lib/esm/{token-utils-B0KAgyj_.js → token-utils-BILzD7LX.js} +1 -1
  420. package/lib/esm/{tokens.module-DEzE2U5T.js → tokens.module-kkZE1C6Z.js} +1 -1
  421. package/lib/types/components/duet-banner/duet-banner.d.ts +5 -1
  422. package/lib/types/components/duet-button/duet-button.d.ts +1 -1
  423. package/lib/types/components/duet-card/duet-card.d.ts +5 -0
  424. package/lib/types/components/duet-chip/duet-chip.d.ts +15 -8
  425. package/lib/types/components/duet-contact-card/duet-contact-card.d.ts +5 -0
  426. package/lib/types/components/duet-date-picker/date-picker-month.d.ts +3 -0
  427. package/lib/types/components/duet-date-picker/date-utils.d.ts +4 -0
  428. package/lib/types/components/duet-date-picker/disallowed-days.d.ts +9 -0
  429. package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +14 -0
  430. package/lib/types/components/duet-date-picker/finnish-bank-holidays.d.ts +11 -0
  431. package/lib/types/components/duet-hero/duet-hero.d.ts +5 -0
  432. package/lib/types/components/duet-input/duet-input.d.ts +11 -0
  433. package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +5 -0
  434. package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +6 -0
  435. package/lib/types/components.d.ts +104 -12
  436. package/lib/types/utils/keyboard-utils.d.ts +1 -0
  437. package/package.json +5 -5
  438. package/lib/duet/p-0c04f9f5.entry.js +0 -4
  439. package/lib/duet/p-18a8ea12.entry.js +0 -4
  440. package/lib/duet/p-1bca9931.entry.js +0 -4
  441. package/lib/duet/p-3f3c6e64.entry.js +0 -4
  442. package/lib/duet/p-4af6a8ed.entry.js +0 -4
  443. package/lib/duet/p-5284c707.entry.js +0 -4
  444. package/lib/duet/p-5c9f443c.entry.js +0 -4
  445. package/lib/duet/p-5lFzA17H.js +0 -4
  446. package/lib/duet/p-6b469225.entry.js +0 -4
  447. package/lib/duet/p-7294c37d.entry.js +0 -4
  448. package/lib/duet/p-72b504ef.entry.js +0 -4
  449. package/lib/duet/p-74aac967.entry.js +0 -4
  450. package/lib/duet/p-7c08fd87.entry.js +0 -4
  451. package/lib/duet/p-83238bf3.entry.js +0 -4
  452. package/lib/duet/p-86ffd3cb.entry.js +0 -4
  453. package/lib/duet/p-871620d3.entry.js +0 -4
  454. package/lib/duet/p-9c9811ba.entry.js +0 -4
  455. package/lib/duet/p-B2cboDWM.js +0 -5
  456. package/lib/duet/p-B8-N_qjs.js +0 -4
  457. package/lib/duet/p-Cg4m_WHe.js +0 -4
  458. package/lib/duet/p-DEzE2U5T.js +0 -4
  459. package/lib/duet/p-Db8rvjPI.js +0 -4
  460. package/lib/duet/p-d5f90dbc.entry.js +0 -4
  461. package/lib/duet/p-fa13ffe9.entry.js +0 -4
  462. package/lib/duet/p-s8EL6NG5.js +0 -4
@@ -144,11 +144,11 @@ export class DuetIcon {
144
144
  : {};
145
145
  const iconStyles = Object.assign({}, iconRotationStyles);
146
146
  const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
147
- return (h(Host, { key: 'f6a74ccabd59055d22eec3654bde9c81fd4a9ce3', class: {
147
+ return (h(Host, { key: 'ac454937867acd98e1552f998f09cecb7b6db6f6', class: {
148
148
  "duet-m-0": this.margin === "none",
149
149
  "duet-icon-has-outline": !!this.outline,
150
150
  "duet-icon-has-background": !!this.background,
151
- } }, h("span", { key: 'f2ea10e9ec8459d5a5995781e193c6d8df7fb1ef', "aria-hidden": "true", style: styles, class: {
151
+ } }, h("span", { key: '61bd9c9b857bd54bfa18b71035af646ddfc8b490', "aria-hidden": "true", style: styles, class: {
152
152
  "duet-icon": true,
153
153
  "duet-theme-turva": this.theme === "turva",
154
154
  "duet-theme-default": this.theme === "default",
@@ -157,7 +157,7 @@ export class DuetIcon {
157
157
  [shapeStyle]: true,
158
158
  rotated: this.shape === "brand-rotated" && this.theme !== "turva",
159
159
  "duet-icon-not-responsive": !this.responsive,
160
- } }, h("span", { key: '3d93b31d1831fa77b71a5f574a38d838636c7757', "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, "data-name": this.name, innerHTML: this.svgContent, style: iconStyles }))));
160
+ } }, h("span", { key: '513e30e9f69a6661e54b5f2a0989eaf14887f533', "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, "data-name": this.name, innerHTML: this.svgContent, style: iconStyles }))));
161
161
  }
162
162
  static get is() { return "duet-icon"; }
163
163
  static get encapsulation() { return "shadow"; }
@@ -45,11 +45,11 @@ export class DuetIndicator {
45
45
  inheritGlobalTheme(this);
46
46
  }
47
47
  render() {
48
- return (h(Host, { key: '6c412435545134515ed6bb4eb8f5e1ec8701dce7' }, h("span", { key: 'f7c0f6b5019c3d9abcd01b8da701ad123910b5b3', class: {
48
+ return (h(Host, { key: '329e985ec026dde828ee0e4f896bbbf68054a4ce' }, h("span", { key: '688c53ea00e20e7c2aa612ed6cdaede9a83655f9', class: {
49
49
  "duet-indicator": true,
50
50
  [`duet-indicator-${this.variation}`]: true,
51
51
  "duet-theme-turva": this.theme === "turva",
52
- } }), h("duet-visually-hidden", { key: 'c4ceeb86a4ab008a251f1ce9f4f6271c3fab73ef' }, this.getAccessibleLabel())));
52
+ } }), h("duet-visually-hidden", { key: '37a42c32af9d6d46946d30239592a4794e16de93' }, this.getAccessibleLabel())));
53
53
  }
54
54
  static get is() { return "duet-indicator"; }
55
55
  static get encapsulation() { return "shadow"; }
@@ -75,7 +75,7 @@ export class DuetIndicator {
75
75
  "references": {
76
76
  "IndicatorVariation": {
77
77
  "location": "local",
78
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-indicator/duet-indicator.tsx",
78
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-indicator/duet-indicator.tsx",
79
79
  "id": "src/components/duet-indicator/duet-indicator.tsx::IndicatorVariation"
80
80
  }
81
81
  }
@@ -8,7 +8,7 @@ import { inheritGlobalTheme } from "../../common";
8
8
  import { DuetInternalLabel } from "../../common/label";
9
9
  import { createID } from "../../utils/create-id";
10
10
  import { cleanValue, resetCursor } from "../../utils/input-utils";
11
- import { isArrowLeftKey, isArrowRightKey, isBackspaceKey, isEnterKey, isEscapeKey } from "../../utils/keyboard-utils";
11
+ import { isArrowLeftKey, isArrowRightKey, isBackspaceKey, isCharacterInsertKey, isEnterKey, isEscapeKey, } from "../../utils/keyboard-utils";
12
12
  import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, getLocaleString, } from "../../utils/language-utils";
13
13
  import { checkNamedSlotElement, proxyInputToSlot } from "../../utils/slot-utils";
14
14
  const icons = {
@@ -33,6 +33,7 @@ export class DuetInput {
33
33
  this.topCaptionPlaceholderId = createID("DuetCaptionPlaceholderTop");
34
34
  this.chipCountId = createID("DuetInputChipCount");
35
35
  this.errorId = createID("DuetError");
36
+ this.maxlengthAnnouncementKey = 0;
36
37
  this.disallowPatternRegex = null;
37
38
  this.clearLabel = {
38
39
  en: "Clear",
@@ -69,6 +70,11 @@ export class DuetInput {
69
70
  fi: "valittu",
70
71
  sv: "valt",
71
72
  };
73
+ this.maxlengthReachedLabel = {
74
+ en: "This field has a maximum length of {max} characters. Limit reached.",
75
+ fi: "Tämän kentän enimmäispituus on {max} merkkiä. Raja on saavutettu.",
76
+ sv: "Det här fältet har en maximal längd på {max} tecken. Gränsen är nådd.",
77
+ };
72
78
  /**
73
79
  * State() variables
74
80
  */
@@ -78,6 +84,10 @@ export class DuetInput {
78
84
  */
79
85
  this.isFocused = false;
80
86
  this._accessiblePopup = undefined;
87
+ /**
88
+ * Text announced to screen readers when the maxlength limit is reached.
89
+ */
90
+ this.maxlengthAnnouncement = "";
81
91
  /**
82
92
  * Indicates the id or a string of space seperated ids of a component(s) that describes the input.
83
93
  */
@@ -208,9 +218,22 @@ export class DuetInput {
208
218
  * Component event handling.
209
219
  */
210
220
  this.onInput = (ev) => {
211
- if (this.maxlength && this.nativeInput.value.length > this.maxlength) {
221
+ var _a;
222
+ // In addition to input event, maxlength handling uses also keyDown and paste events as input event may not be
223
+ // triggered when entry is truncated by the browser.
224
+ if (this.maxlength) {
225
+ const wasAtMaxlength = (((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) || 0) >= this.maxlength;
226
+ const nativeLength = this.nativeInput.value.length;
212
227
  // Android doesn't honor maxlength
213
- this.nativeInput.value = this.nativeInput.value.slice(0, this.maxlength);
228
+ const inputOverflow = nativeLength > this.maxlength;
229
+ if (inputOverflow) {
230
+ this.nativeInput.value = this.nativeInput.value.slice(0, this.maxlength);
231
+ }
232
+ const limitJustReached = !wasAtMaxlength && nativeLength === this.maxlength;
233
+ const limitExceededWhileFull = wasAtMaxlength && inputOverflow;
234
+ if (limitJustReached || limitExceededWhileFull) {
235
+ this.handleMaxlengthLimitReached();
236
+ }
214
237
  }
215
238
  if (this.disallowPatternRegex) {
216
239
  cleanValue(this.nativeInput, this.disallowPatternRegex);
@@ -256,6 +279,30 @@ export class DuetInput {
256
279
  component: "duet-input",
257
280
  });
258
281
  };
282
+ this.onInputKeyDown = (ev) => {
283
+ if (this.maxlength && isCharacterInsertKey(ev) && this.isAtMaxlengthWithoutSelection()) {
284
+ this.handleMaxlengthLimitReached();
285
+ }
286
+ };
287
+ this.onInputPaste = () => {
288
+ if (this.maxlength && this.isAtMaxlengthWithoutSelection()) {
289
+ this.handleMaxlengthLimitReached();
290
+ }
291
+ };
292
+ this.isAtMaxlengthWithoutSelection = () => {
293
+ const input = this.nativeInput;
294
+ const inputIsWithoutSelection = input.selectionStart === input.selectionEnd;
295
+ const inputIsAtMaxlength = input.value.length >= this.maxlength;
296
+ return inputIsWithoutSelection && inputIsAtMaxlength;
297
+ };
298
+ this.handleMaxlengthLimitReached = () => {
299
+ clearTimeout(this.maxlengthAnnouncementTimeoutId);
300
+ this.maxlengthAnnouncement = "";
301
+ this.maxlengthAnnouncementTimeoutId = setTimeout(() => {
302
+ this.maxlengthAnnouncementKey++;
303
+ this.maxlengthAnnouncement = this.maxlengthReachedLabel[this.language].replace("{max}", String(this.maxlength));
304
+ }, 300);
305
+ };
259
306
  /**
260
307
  * Private functions
261
308
  */
@@ -536,10 +583,15 @@ export class DuetInput {
536
583
  if (this.type === "password") {
537
584
  return "off";
538
585
  }
586
+ const tokens = this.autoComplete.split(/\s+/);
539
587
  // If attribute includes "email", e.g. "work email", don't overwrite it
540
- if (this.type === "email" && this.autoComplete !== "off" && !this.autoComplete.includes("email")) {
588
+ if (this.type === "email" && this.autoComplete !== "off" && !tokens.includes("email")) {
541
589
  return "email";
542
590
  }
591
+ // If attribute includes "tel", e.g. "mobile tel", don't overwrite it
592
+ if (this.type === "tel" && this.autoComplete !== "off" && !tokens.includes("tel")) {
593
+ return "tel";
594
+ }
543
595
  return this.autoComplete;
544
596
  }
545
597
  /**
@@ -606,7 +658,7 @@ export class DuetInput {
606
658
  this.type !== "password" &&
607
659
  this.type !== "time" &&
608
660
  this.variation !== "button";
609
- return (h(Host, { key: '776ea6ee90a20ff356574b64890a7b98d9947e6c', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" }, onKeyUp: e => this.keyHandler(e) }, this.type === "time" && (h("duet-visually-hidden", { key: 'a56addb34f4bcf57a59e060921e3dacab36a98b7', "aria-live": "polite", "aria-atomic": "true" }, selectedTime ? `${this.timeAnnouncement[this.language]} ${selectedTime.toLocaleTimeString()}` : "")), h("div", { key: '04447fa85e1470adbfc2307f7b2fd5758454e0b7', class: {
661
+ return (h(Host, { key: '1119e8e51f3a490e34665e77ce32ec21f7bc70c7', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" }, onKeyUp: e => this.keyHandler(e) }, this.type === "time" && (h("duet-visually-hidden", { key: '31afa65dcb1b161f8c5a87c65953a26a552066b8', "aria-live": "polite", "aria-atomic": "true" }, selectedTime ? `${this.timeAnnouncement[this.language]} ${selectedTime.toLocaleTimeString()}` : "")), h("div", { key: '5574afef8c592593193cbf0c99eaf8eaa84dbf11', class: {
610
662
  "duet-input-container": true,
611
663
  "duet-theme-turva": this.theme === "turva",
612
664
  [`duet-input-variation-${this.variation}`]: true,
@@ -623,11 +675,11 @@ export class DuetInput {
623
675
  "has-prefix": !!this.fieldPrefix,
624
676
  "has-suffix": !!this.fieldSuffix,
625
677
  disabled: this.disabled,
626
- } }, h("div", { key: 'f5f3de4654fac36f5ffb7e0302ffccb56263728a', class: "duet-input-label-container" }, h(DuetInternalLabel, { key: '566d4df4f7cfe09b50f4aedaf342cef70e7fc80a', theme: this.theme === "turva" ? "turva" : "default", margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { key: '7560dd36ade42746228061727b2fb2b38dce7ed6', class: "duet-input-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), h("slot", { key: '9b8a15f4f79269696a24c9fd989186f95dfc1e62', name: "tooltip" })), this.caption && (h("duet-caption", { key: 'c425ac21ec5942adfe5a4e48ae20080ab661bf4d', id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { key: 'ac98b112529396687ec21a938c55ce1b3d86f091', class: {
678
+ } }, h("div", { key: 'cd0dfb4e8ef821c84d342fff017da9b3e6938134', class: "duet-input-label-container" }, h(DuetInternalLabel, { key: '7ef9a4e3ccbc5b7ac030ca66912eb0471103ed10', theme: this.theme === "turva" ? "turva" : "default", margin: this.isCaptionVisible ? "small" : "auto", color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { key: 'f263424aa51a59f4252cad4b4a1347b5986869ae', class: "duet-input-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label, theme: this.theme === "turva" ? "turva" : "default" }, this.tooltip)), h("slot", { key: 'b4afd5ae65bbc03083b81996965cb354d6fd2a35', name: "tooltip" })), this.caption && (h("duet-caption", { key: '1d126824ee2ef4b7a4dae8650363e9da0b58c288', id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { key: 'adb5b8fa3b3de37c96d74fd1b888de75689a3ce0', class: {
627
679
  "duet-input-relative": true,
628
680
  "duet-theme-turva": this.theme === "turva",
629
681
  "has-error": !!this.error,
630
- } }, this.placeholder && this.echoPlaceholder && (this.value || this.type === "time") && (h("duet-caption", { key: 'db332864c2b97112aa2b9347da3d6c2468f77b0b', id: this.topCaptionPlaceholderId, class: "duet-input-placeholder", margin: "none", size: "small" }, this.placeholder)), this.chips && (h("duet-visually-hidden", { key: 'e92de63c87071f00143ee9db06c94361970b704a', id: this.chipCountId }, ", ", `${this.getAllChips().length} ${getLocaleString(this.chipsSelectedDesriptionLabel)}`, ",")), this.variation === "button-left" && h("slot", { key: '274e2fe6a604c30aa879ac72a33154f1fb3c8fc9', name: "button-left" }), this.fieldPrefix && (h("span", { key: '2bd5154e89d13c7562283684a3087c3c48481fb9', class: "input-adornment prefix", id: this.prefixId }, this.fieldPrefix)), h("input", Object.assign({ key: '0b77d2e90b3acdb1452d73ad2a736e924200009a', ref: input => (this.nativeInput = input), onInput: this.onInput, onBlur: this.onBlur, onFocus: this.onFocus, type: this.getInputType(), class: {
682
+ } }, this.placeholder && this.echoPlaceholder && (this.value || this.type === "time") && (h("duet-caption", { key: 'fcadd06bf9e0dc4115c0bd004de23fa5692b03fc', id: this.topCaptionPlaceholderId, class: "duet-input-placeholder", margin: "none", size: "small" }, this.placeholder)), this.chips && (h("duet-visually-hidden", { key: '84a8a1feed5a0895936f5e1d5ee310c6282f1678', id: this.chipCountId }, ", ", `${this.getAllChips().length} ${getLocaleString(this.chipsSelectedDesriptionLabel)}`, ",")), this.variation === "button-left" && h("slot", { key: '90533c1b234e2644eb97317f903abbf04fee8138', name: "button-left" }), this.fieldPrefix && (h("span", { key: '151fd6757766b8c7e86ded73639d87bb32814089', class: "input-adornment prefix", id: this.prefixId }, this.fieldPrefix)), h("input", Object.assign({ key: '06811722717032661d4ba5e3bfa9c2b6196cf082', ref: input => (this.nativeInput = input), onInput: this.onInput, onKeyDown: this.onInputKeyDown, onPaste: this.onInputPaste, onBlur: this.onBlur, onFocus: this.onFocus, type: this.getInputType(), class: {
631
683
  "duet-input": true,
632
684
  disabled: this.disabled,
633
685
  "is-number": this.component === "number",
@@ -635,17 +687,17 @@ export class DuetInput {
635
687
  "after-chip": this.getAllChips().length > 0,
636
688
  "align-right": this.inputAlign === "right",
637
689
  [`input-padding-${this.inputPadding}`]: true,
638
- }, value: this.value, disabled: this.disabled, "aria-invalid": this.error ? "true" : "false", "aria-labelledby": this.getAriaLabelledBy(), "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-expanded": this.accessibleExpanded, "aria-haspopup": this.accessibleHasPopup, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedBy(), placeholder: this.placeholder, spellcheck: "false", minlength: this.minlength, maxlength: this.maxlength, autocomplete: this.getAutocomplete(), required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)), this.fieldSuffix && (h("span", { key: '00f86f44a74b91127a1c11b696b51983d62a7c28', class: "input-adornment suffix", id: this.suffixId }, this.fieldSuffix)), !this.value && hasInputIcon && (h("div", { key: 'f1d531cc26ab9de06b90e38a4b790069fe920d88', class: "duet-input-icon" }, h("duet-icon", { key: 'fb14ea462e583a24e6bbd0337666dfa4ef9c9a1a', margin: "none", size: "small", icon: icons[this.type].svg, color: "currentColor" }))), this.clear && this.value && (h("div", { key: 'f2e415cb5d8c5eaa0bbb1bb0cad942d8a976e9a5', class: {
690
+ }, value: this.value, disabled: this.disabled, "aria-invalid": this.error ? "true" : "false", "aria-labelledby": this.getAriaLabelledBy(), "aria-controls": this.accessibleControls, "aria-autocomplete": this.accessibleAutocomplete, "aria-activedescendant": this.accessibleActiveDescendant, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, "aria-expanded": this.accessibleExpanded, "aria-haspopup": this.accessibleHasPopup, "aria-owns": this.accessibleOwns, "aria-describedby": this.getAriaDescribedBy(), placeholder: this.placeholder, spellcheck: "false", minlength: this.minlength, maxlength: this.maxlength, autocomplete: this.getAutocomplete(), required: this.required, role: this.role, name: this.name, id: identifier }, inputProps)), this.maxlength && (h("duet-visually-hidden", { key: `maxlength-announcement-${this.maxlengthAnnouncementKey}`, "aria-live": "polite", "aria-atomic": "true" }, this.maxlengthAnnouncement)), this.fieldSuffix && (h("span", { key: 'b2d284fc05798f7dab08555f524cabf4f94f0e19', class: "input-adornment suffix", id: this.suffixId }, this.fieldSuffix)), !this.value && hasInputIcon && (h("div", { key: '8364a8a7687b6e37279585edf55da9005673f4df', class: "duet-input-icon" }, h("duet-icon", { key: '1b420da3e76241f1e105ce5ef8b9f40e6490424d', margin: "none", size: "small", icon: icons[this.type].svg, color: "currentColor" }))), this.clear && this.value && (h("div", { key: 'c67978258fbf64a22563a8e139b7a7de012bb4ca', class: {
639
691
  "duet-input-clear-icon": true,
640
692
  "duet-input-clear-icon-single": !hasInputIcon,
641
693
  "duet-input-clear-icon-double": !!this.icon,
642
694
  "duet-input-clear-icon-button": this.variation === "button",
643
695
  [`input-padding-${this.inputPadding}`]: true,
644
- } }, h("button", { key: '7046a5f2c94bf429f4fc46dd4a9d590171975f04', onClick: this.handleClearClick, id: this.clearId, "aria-label": this.clearLabel[this.language], "aria-keyshortcuts": "Escape" }, h("duet-icon", { key: 'd33b0603197b14c98b4b8d76773f0c2325d365a9', margin: "none", size: "medium", name: "action-clear-input", color: "currentColor" })))), this.icon && this.variation !== "button" && (h("div", { key: 'f5b6861e2cd8f9affe011fc08700092296ef50c8', class: "duet-input-icon" }, h("duet-icon", { key: 'af0f1a819e505da950eec079950eb2a6c13c5254', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), this.variation === "button" && h("slot", { key: 'db2a27e9e1683615a207b34f63a2981e0bbfe3e8', name: "button" }), this.variation === "revealable" && (h("duet-button", { key: 'f2c727cd4f07ea799ad033e737f490d14a285ded', ref: button => (this.togglePasswordRevealedButton = button), onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.togglePasswordRevealed, icon: this.isPasswordRevealed ? "action-hide" : "action-show", accessibleLabel: this.isPasswordRevealed
696
+ } }, h("button", { key: 'b243244d6d5184c42a9afb93483479a0b07bad7d', onClick: this.handleClearClick, id: this.clearId, "aria-label": this.clearLabel[this.language], "aria-keyshortcuts": "Escape" }, h("duet-icon", { key: '2ff21863005e55dc7a4dc1a16e2e2e40ad7f85cf', margin: "none", size: "medium", name: "action-clear-input", color: "currentColor" })))), this.icon && this.variation !== "button" && (h("div", { key: '7732892f159a6c7c9ad7c89b0031052b1ed45502', class: "duet-input-icon" }, h("duet-icon", { key: '97de6dc8ff0c506db494dc36edc6d0107792c2b9', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), this.variation === "button" && h("slot", { key: '5c940caf605e2eaff4db2a36c63548db78f36f41', name: "button" }), this.variation === "revealable" && (h("duet-button", { key: 'caf0a7c8bec4a620e2ca5f897eaabc1814f32c5d', ref: button => (this.togglePasswordRevealedButton = button), onBlur: this.onBlur, onFocus: this.onFocus, onClick: this.togglePasswordRevealed, icon: this.isPasswordRevealed ? "action-hide" : "action-show", accessibleLabel: this.isPasswordRevealed
645
697
  ? this.hidePasswordLabel[this.language]
646
- : this.showPasswordLabel[this.language], margin: "none", variation: "input-button-embedded", fixed: true, iconOnly: true })), this.variation === "revealable" && this.isPasswordRevealed !== undefined && (h("duet-visually-hidden", { key: 'd240447d7431097c99bd50fa6241a48d87b48ae0' }, h("span", { key: '47d29c787f119d0dae23436a69b192855b7bca63', "aria-live": "polite" }, this.isPasswordRevealed
698
+ : this.showPasswordLabel[this.language], margin: "none", variation: "input-button-embedded", fixed: true, iconOnly: true })), this.variation === "revealable" && this.isPasswordRevealed !== undefined && (h("duet-visually-hidden", { key: 'cc394dbd7d28fc9e1cf0a864c67e7e7a6a835d1a' }, h("span", { key: '20033ed28c86634d6faf03180e53cff84def1329', "aria-live": "polite" }, this.isPasswordRevealed
647
699
  ? this.passwordShownAriaAnnouncement[this.language]
648
- : this.passwordHiddenAriaAnnouncement[this.language]))), h("slot", { key: 'cd872ef0355479149e3b926e98e33ebccc1d0faa' })), h("span", { key: 'bbbbc5e7b7b1ddd8064bdda229ad110686075dd2', class: "duet-input-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: '91876b01063f2de6147210b06daad0e5a3c71b3c', class: "duet-input-error" }, this.error)))));
700
+ : this.passwordHiddenAriaAnnouncement[this.language]))), h("slot", { key: 'b72c50503fa80fd1ba6764b7b3348bc5d7b2813c' })), h("span", { key: '25790e8c5147bb271fefa6cbce2343287b57c816', class: "duet-input-help", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: 'c62d261a03ebec492aed9c65a836525e47660cfc', class: "duet-input-error" }, this.error)))));
649
701
  }
650
702
  static get is() { return "duet-input"; }
651
703
  static get encapsulation() { return "shadow"; }
@@ -1165,7 +1217,7 @@ export class DuetInput {
1165
1217
  "references": {
1166
1218
  "DuetInputType": {
1167
1219
  "location": "local",
1168
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-input/duet-input.tsx",
1220
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
1169
1221
  "id": "src/components/duet-input/duet-input.tsx::DuetInputType"
1170
1222
  }
1171
1223
  }
@@ -1191,7 +1243,7 @@ export class DuetInput {
1191
1243
  "references": {
1192
1244
  "DuetVariationType": {
1193
1245
  "location": "local",
1194
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-input/duet-input.tsx",
1246
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
1195
1247
  "id": "src/components/duet-input/duet-input.tsx::DuetVariationType"
1196
1248
  }
1197
1249
  }
@@ -1532,7 +1584,7 @@ export class DuetInput {
1532
1584
  "references": {
1533
1585
  "DuetInputComponentType": {
1534
1586
  "location": "local",
1535
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-input/duet-input.tsx",
1587
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
1536
1588
  "id": "src/components/duet-input/duet-input.tsx::DuetInputComponentType"
1537
1589
  }
1538
1590
  }
@@ -1756,7 +1808,8 @@ export class DuetInput {
1756
1808
  "language": {},
1757
1809
  "isPasswordRevealed": {},
1758
1810
  "isFocused": {},
1759
- "_accessiblePopup": {}
1811
+ "_accessiblePopup": {},
1812
+ "maxlengthAnnouncement": {}
1760
1813
  };
1761
1814
  }
1762
1815
  static get events() {
@@ -1776,7 +1829,7 @@ export class DuetInput {
1776
1829
  "references": {
1777
1830
  "DuetInputEvent": {
1778
1831
  "location": "local",
1779
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-input/duet-input.tsx",
1832
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
1780
1833
  "id": "src/components/duet-input/duet-input.tsx::DuetInputEvent"
1781
1834
  }
1782
1835
  }
@@ -1797,7 +1850,7 @@ export class DuetInput {
1797
1850
  "references": {
1798
1851
  "DuetInputEvent": {
1799
1852
  "location": "local",
1800
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-input/duet-input.tsx",
1853
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
1801
1854
  "id": "src/components/duet-input/duet-input.tsx::DuetInputEvent"
1802
1855
  }
1803
1856
  }
@@ -1818,7 +1871,7 @@ export class DuetInput {
1818
1871
  "references": {
1819
1872
  "DuetInputEvent": {
1820
1873
  "location": "local",
1821
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-input/duet-input.tsx",
1874
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
1822
1875
  "id": "src/components/duet-input/duet-input.tsx::DuetInputEvent"
1823
1876
  }
1824
1877
  }
@@ -1839,7 +1892,7 @@ export class DuetInput {
1839
1892
  "references": {
1840
1893
  "DuetInputEvent": {
1841
1894
  "location": "local",
1842
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-input/duet-input.tsx",
1895
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
1843
1896
  "id": "src/components/duet-input/duet-input.tsx::DuetInputEvent"
1844
1897
  }
1845
1898
  }
@@ -1860,7 +1913,7 @@ export class DuetInput {
1860
1913
  "references": {
1861
1914
  "DuetInputEvent": {
1862
1915
  "location": "local",
1863
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-input/duet-input.tsx",
1916
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-input/duet-input.tsx",
1864
1917
  "id": "src/components/duet-input/duet-input.tsx::DuetInputEvent"
1865
1918
  }
1866
1919
  }
@@ -121,7 +121,7 @@ export class DuetLabel {
121
121
  "references": {
122
122
  "DuetLabelMargin": {
123
123
  "location": "local",
124
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-label/duet-label.tsx",
124
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-label/duet-label.tsx",
125
125
  "id": "src/components/duet-label/duet-label.tsx::DuetLabelMargin"
126
126
  }
127
127
  }
@@ -147,7 +147,7 @@ export class DuetLabel {
147
147
  "references": {
148
148
  "DuetLabelSize": {
149
149
  "location": "local",
150
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-label/duet-label.tsx",
150
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-label/duet-label.tsx",
151
151
  "id": "src/components/duet-label/duet-label.tsx::DuetLabelSize"
152
152
  }
153
153
  }
@@ -66,24 +66,24 @@ export class DuetLayout {
66
66
  * Always the last one in the class.
67
67
  */
68
68
  render() {
69
- return (h(Host, { key: '7796cda5c4db65768c100838b80382b318b3ac73', class: {
69
+ return (h(Host, { key: 'c3ba619c0c3088257b425ba8f5022ebef33c1100', class: {
70
70
  center: this.center,
71
71
  "duet-middle": this.middle,
72
72
  "duet-ie": isInternetExplorer(),
73
- } }, h("div", { key: '1b4f06b0ccaf2a93e30cb57085b3260c9d138d1f', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, this.hasTop && (h("div", { key: '9b64258743ef0f5802e2853b2251788fc3c7f02d', class: {
73
+ } }, h("div", { key: 'd627f63579dfb957bf3abe17191e8a8e943f0aae', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, this.hasTop && (h("div", { key: '4586ff77f2ef4209020a2401eef63273527a2e27', class: {
74
74
  "duet-layout-top": true,
75
75
  "duet-center": this.center,
76
- } }, h("div", { key: '8de64147ed6cd7c0942f5f477da01c1ee4a8a0ce', class: "duet-layout-top-wrapper" }, h("slot", { key: '5b3dcec144e1e7a7707f52b18b8b1dc1d3cb13e7', name: "top" })))), h("div", { key: '57ef787cdd754a6749f76ce151ed15bb779b110b', class: {
76
+ } }, h("div", { key: 'daebb47e73054b59bb0459dc3327e0e60b17ebbe', class: "duet-layout-top-wrapper" }, h("slot", { key: '339fac00b53c0b4f532cfc77d5743217b5f72057', name: "top" })))), h("div", { key: 'bbf287d1f0aa701c40553a426b7a77b0a1c24c17', class: {
77
77
  "duet-layout": true,
78
78
  "has-sidebar": this.hasSidebar,
79
79
  "duet-center": this.center,
80
80
  [`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
81
- } }, h("main", { key: '11712887cb73595787e00eb4ae51be583e222d69', class: "duet-main" }, this.hasPageHeading && h("slot", { key: '024128c99761e9ce2df803f1a7af98da0bb39d48', name: "page-heading" }), h("slot", { key: '5ec1793d46d607633b527d9497e9c160f1879f4a', name: "main" })), this.hasSidebar && (h("aside", { key: 'c68315f8b323267fabd94fb2f45fa29294c6e17a', class: "duet-sidebar" }, h("div", { key: '5222f4a3bc1b36710f1efc85cd09c31cd676d661', class: {
81
+ } }, h("main", { key: '0d75aa9aeb65fa61f8e0ff114cee467abe49f1cd', class: "duet-main" }, this.hasPageHeading && h("slot", { key: 'fd0ed7464c54122f1cfbbfbfc40f78d8c9ab41c7', name: "page-heading" }), h("slot", { key: '1004e4007a1d82e22147ddf3a883e8ddc9c7b0dc', name: "main" })), this.hasSidebar && (h("aside", { key: '167c6d2495c8bbc7cd0275f723e0810b9fc311b6', class: "duet-sidebar" }, h("div", { key: 'f0bbcbeb756bf18ba1b678c405c3890fb00ad857', class: {
82
82
  "duet-sidebar-container": true,
83
83
  "has-tabs": this.tabs,
84
84
  sticky: this.sticky,
85
85
  [this.stickyDistance]: this.sticky,
86
- } }, h("slot", { key: '2c51db0affb26210fbbf38b7776d66f64c530f6f', name: "sidebar" }))))))));
86
+ } }, h("slot", { key: 'b8b30e8b29bb87ea6a0c0891ca5f841d0921f72b', name: "sidebar" }))))))));
87
87
  }
88
88
  static get is() { return "duet-layout"; }
89
89
  static get encapsulation() { return "shadow"; }
@@ -155,7 +155,7 @@ export class DuetLayout {
155
155
  "references": {
156
156
  "DuetLayoutStickyDistance": {
157
157
  "location": "local",
158
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-layout/duet-layout.tsx",
158
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-layout/duet-layout.tsx",
159
159
  "id": "src/components/duet-layout/duet-layout.tsx::DuetLayoutStickyDistance"
160
160
  }
161
161
  }
@@ -187,10 +187,10 @@ export class DuetLink {
187
187
  const Tag = !this.url && this.variation !== "default" ? "button" : "a";
188
188
  const role = !this.url && this.variation === "default" ? "button" : null;
189
189
  const isButton = Tag === "button";
190
- return (h(Host, { key: '63ea212c967fed116f28d316bf7b4dc6f7bed88d', class: {
190
+ return (h(Host, { key: '07cf184d2f321700e665e358f8a0cb988e798da8', class: {
191
191
  [`duet-link-${this.variation}`]: true,
192
192
  "duet-m-0": this.margin === "none",
193
- } }, h(Tag, { key: 'c799db0446fbca186340c781f23ccecaf58e4336', href: this.url, class: {
193
+ } }, h(Tag, { key: 'bb416240f5adc73c8eeacbd4ca0524619326a954', href: this.url, class: {
194
194
  "duet-link": true,
195
195
  "duet-link-is-external": this.external,
196
196
  "duet-link-is-download": !!this.download,
@@ -101,7 +101,7 @@ export class DuetList {
101
101
  * Always the last one in the class.
102
102
  */
103
103
  render() {
104
- return (h("dl", { key: '8b5a83409655ee3c79b0d076851d5f35ac038766', class: { "duet-list-component": true, "duet-m-0": this.margin === "none" } }, h("slot", { key: 'f9e3dfbf22a5055c0ee910c4347f2d69b7971d59' })));
104
+ return (h("dl", { key: 'c83e43f3d82e32198e0a5d45a0812b8358f6be07', class: { "duet-list-component": true, "duet-m-0": this.margin === "none" } }, h("slot", { key: '7a65328f555edf10f4da02166eebcfcf8b8f68f7' })));
105
105
  }
106
106
  static get is() { return "duet-list"; }
107
107
  static get encapsulation() { return "shadow"; }
@@ -205,7 +205,7 @@ export class DuetList {
205
205
  "references": {
206
206
  "DuetListMobileAlignment": {
207
207
  "location": "local",
208
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-list/duet-list.tsx",
208
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-list/duet-list.tsx",
209
209
  "id": "src/components/duet-list/duet-list.tsx::DuetListMobileAlignment"
210
210
  }
211
211
  }
@@ -257,7 +257,7 @@ export class DuetList {
257
257
  "references": {
258
258
  "DuetListVariation": {
259
259
  "location": "local",
260
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-list/duet-list.tsx",
260
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-list/duet-list.tsx",
261
261
  "id": "src/components/duet-list/duet-list.tsx::DuetListVariation"
262
262
  }
263
263
  }
@@ -283,7 +283,7 @@ export class DuetList {
283
283
  "references": {
284
284
  "DuetListLabelWidth": {
285
285
  "location": "local",
286
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-list/duet-list.tsx",
286
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-list/duet-list.tsx",
287
287
  "id": "src/components/duet-list/duet-list.tsx::DuetListLabelWidth"
288
288
  }
289
289
  }
@@ -34,7 +34,7 @@ export class DuetListItem {
34
34
  * Always the last one in the class.
35
35
  */
36
36
  render() {
37
- return (h(Host, { key: '2fc646c6ec771484ba741b13db4e05af02190613', class: {
37
+ return (h(Host, { key: '83029afa5ebc666926eb1572b8ad9a311bdbfcf1', class: {
38
38
  "duet-theme-turva": this.theme === "turva",
39
39
  "duet-no-stacking": !this.responsive,
40
40
  "duet-list-item-breakpoint-x-small": this.breakpoint === "x-small",
@@ -42,7 +42,7 @@ export class DuetListItem {
42
42
  "duet-list-item-breakpoint-medium": this.breakpoint === "medium",
43
43
  "duet-list-item-breakpoint-large": this.breakpoint === "large",
44
44
  "duet-list-item-breakpoint-x-large": this.breakpoint === "x-large",
45
- } }, h("dt", { key: 'a6f04cd679b723dec94b73f49a1f01e765cc2c2c' }, h("slot", { key: '3406e6b4499bc4e1ccbb65c8c20861a940058120', name: "label" })), h("dd", { key: '12904de4492dd50e266c323d2d038a514e4ed4f1' }, h("slot", { key: '1b5922436da8b77d4687c2fe55e7f58c5af37647', name: "value" }))));
45
+ } }, h("dt", { key: '884936458d12b95cd553cd4dc4d8a237cd8e5830' }, h("slot", { key: 'b17473caf7b410acf49f8c68f9ae53b3071397d7', name: "label" })), h("dd", { key: 'e5c6aa8b8d8998d500d27493896a288f71861df6' }, h("slot", { key: '7a6a3b223c394bb3376d7734791cfd439076d5f7', name: "value" }))));
46
46
  }
47
47
  static get is() { return "duet-list-item"; }
48
48
  static get encapsulation() { return "shadow"; }
@@ -123,7 +123,7 @@ export class DuetLogo {
123
123
  */
124
124
  render() {
125
125
  const TagName = this.href ? "a" : "div";
126
- return (h(Host, { key: 'e210c4ffcf033bc1f53fb90ae2d1a9c98c8f61f6', class: { "duet-m-0": this.margin === "none" } }, h(TagName, { key: 'cabf21f4898aab94d08a9de35222313124a6645c', href: this.href, ref: link => (this.nativeLink = link), "aria-label": this.accessibleLabel, class: {
126
+ return (h(Host, { key: 'b66ac360589fd13695f735c6c659bc4f94e2375e', class: { "duet-m-0": this.margin === "none" } }, h(TagName, { key: '91a1d72ee9da1ac978938f28eaab541f3dc7a2ce', href: this.href, ref: link => (this.nativeLink = link), "aria-label": this.accessibleLabel, class: {
127
127
  "duet-logo": true,
128
128
  [this.size]: true,
129
129
  "duet-logo-inverse": this.inverse,
@@ -229,7 +229,7 @@ export class DuetLogo {
229
229
  "references": {
230
230
  "DuetLogoSize": {
231
231
  "location": "local",
232
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-logo/duet-logo.tsx",
232
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-logo/duet-logo.tsx",
233
233
  "id": "src/components/duet-logo/duet-logo.tsx::DuetLogoSize"
234
234
  }
235
235
  }
@@ -132,17 +132,17 @@ export class DuetMenuBar {
132
132
  render() {
133
133
  const slideoutAvailable = document.querySelectorAll("duet-slideout").length > 0;
134
134
  const isUsedAsAdditionalHorizontalNav = slideoutAvailable && !this.logo;
135
- return (h(Host, { key: '0ebf784bb990ec8bd12412e38dd2ba2a78fb52b7' }, h("nav", { key: '64c163dbdfb5179dae0026489a795e2834141a8a', class: {
135
+ return (h(Host, { key: '8e72a749ab5f9a2b180ea11670931e4a5f1dfc48' }, h("nav", { key: '13aa3dead3343cbd11debfec1c4e4c7b6d58ea41', class: {
136
136
  "duet-menu-bar": true,
137
137
  "duet-theme-turva": this.theme === "turva",
138
138
  "horizontal-nav": isUsedAsAdditionalHorizontalNav,
139
139
  "duet-menu-bar-slim": !this.centerSlotUsed,
140
140
  hidden: this.hidden && this.hideOnScroll,
141
141
  bottom: this.onBottom,
142
- }, "aria-label": this.accessibleLabel }, h("div", { key: 'f98ccc695bc530e42a1301dfd641cc370657db84', class: "top" }), h("div", { key: 'd642b8235270592ef2fe2f8a0e09efc1f7c6642a', class: { container: true, "with-info-text": !!this.logoInfoText && !this.centerSlotUsed }, ref: el => (this.container = el), onScroll: () => this.scrollbarCheck() }, this.logo && (h("div", { key: '0af4e7323cad0bd980ed583c1fca8d84d8bb91e5' }, h("duet-logo", { key: 'f6c4faec9956d31df570be2e37dcff785eb716e3', class: "medium", size: "medium", margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), h("duet-logo", { key: 'b32ee7cfe7ffdffe9daadb6a3e134fbd8f1a979a', class: "large", size: "large", margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), h("duet-logo", { key: '2051733dc6d65e369f731cc2060cc7ffd64433a9', class: "only-symbol", onlySymbol: true, margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), this.logoInfoText && !this.centerSlotUsed && (h("div", { key: '3e4aabaf4fe328670b3c0aac894219ed8d8948b8', class: {
142
+ }, "aria-label": this.accessibleLabel }, h("div", { key: 'f6f5066520f23e2f40105c60550f9ca09a3f3ce4', class: "top" }), h("div", { key: '1bc95be8d4b824e14c1ab97ea7b6131bdf80ae84', class: { container: true, "with-info-text": !!this.logoInfoText && !this.centerSlotUsed }, ref: el => (this.container = el), onScroll: () => this.scrollbarCheck() }, this.logo && (h("div", { key: '1126ebdb087ef0879f0a3367a7c230d1b161e14c' }, h("duet-logo", { key: '770ef75946420cf9122526af88eac7afec069ae2', class: "medium", size: "medium", margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), h("duet-logo", { key: '400f1b37fe02584a549d7b20e9a8df46ecfdf1b3', class: "large", size: "large", margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), h("duet-logo", { key: '91c920bbb82868d57688e80a8cb8ce9e0862d44a', class: "only-symbol", onlySymbol: true, margin: "none", theme: this.theme, href: this.logoHref, accessibleLabel: this.logoLinkAccessibleLabel, onClick: this.handleLogoClick, language: this.language }), this.logoInfoText && !this.centerSlotUsed && (h("div", { key: 'fffe9b63fe88c88c7513747e8c7c4c6132a09bc3', class: {
143
143
  "duet-logo-info-text": true,
144
144
  "duet-theme-turva": this.theme === "turva",
145
- } }, this.logoInfoText)))), h("div", { key: '69a656950f585ea5a403c2cbef0fe43a187c3fb9', class: "list center", role: "list" }, h("div", { key: 'c09b81f8d1445a9a6e160a17e8b2ae8385e48c32', class: "more-left", hidden: !this.leftMoreVisible, role: "presentation" }), h("slot", { key: '73b85aa0012107a492b4193248889d19dc4f0284', name: "center" }), h("div", { key: 'd63135139588f5edde15aa4fe06db312f81c2d16', class: "more-right", hidden: !this.rightMoreVisible, role: "presentation" })), h("div", { key: '2e226edcf43265cfe66c6d593b852e22bc0b184c', class: "list right", role: "list" }, h("slot", { key: 'ff09b9aca19634847dec1ae050e29378cffee6eb', name: "right" }))), h("div", { key: '037e499130954d66e9a319da25bbf134fa53acec', class: "bottom" }))));
145
+ } }, this.logoInfoText)))), h("div", { key: '7f0792cfa41b0056d5cc7cc307664b527d0b5936', class: "list center", role: "list" }, h("div", { key: '0c670a1650d4733e837851a0205225e559bb62ed', class: "more-left", hidden: !this.leftMoreVisible, role: "presentation" }), h("slot", { key: 'ff44edce07857e78676b4dbcf06f078d6974d15b', name: "center" }), h("div", { key: '6b742ff9c5f993a8814689cea374a5befc4c88ec', class: "more-right", hidden: !this.rightMoreVisible, role: "presentation" })), h("div", { key: 'c1fd0a243705d349ff084880a3523c4ebf62d474', class: "list right", role: "list" }, h("slot", { key: '1662a98510c36ad29a273cda970b3b91cc1a48ef', name: "right" }))), h("div", { key: 'baa3b56ef2c6320468a982cc84052b1294638599', class: "bottom" }))));
146
146
  }
147
147
  static get is() { return "duet-menu-bar"; }
148
148
  static get encapsulation() { return "shadow"; }
@@ -362,7 +362,7 @@ export class DuetMenuBar {
362
362
  "references": {
363
363
  "DuetMenuBarChangeEvent": {
364
364
  "location": "local",
365
- "path": "/Users/juha-matti.laaksonen/duetds/packages/components/src/components/duet-menu-bar/duet-menu-bar.tsx",
365
+ "path": "/Users/kasimir/projects/lahitapiola/duet-design-system/packages/components/src/components/duet-menu-bar/duet-menu-bar.tsx",
366
366
  "id": "src/components/duet-menu-bar/duet-menu-bar.tsx::DuetMenuBarChangeEvent"
367
367
  }
368
368
  }
@@ -49,10 +49,10 @@ export class DuetMenuBarButton {
49
49
  * Always the last one in the class.
50
50
  */
51
51
  render() {
52
- return (h(Host, { key: '27fb2c633e88b04b7397830d15c881240d29a91b', role: "listitem", onfocus: () => this.setFocus() }, h("button", { key: '29791cfd8473dc9407238460bcb1e169f183f074', ref: button => (this.nativeButton = button), class: {
52
+ return (h(Host, { key: 'e826fdb0b0fb223aea52738971ddbc17f6004833', role: "listitem", onfocus: () => this.setFocus() }, h("button", { key: '350dd3a06df24d5f3a3f3dccb4a4a48b4a43e9f7', ref: button => (this.nativeButton = button), class: {
53
53
  "duet-menu-bar-button": true,
54
54
  "duet-theme-turva": this.theme === "turva",
55
- }, "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", { key: 'e037dac1385bef39b070602ba5bfb278470a49dd', class: "menu-bar-button-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), h("slot", { key: '95fd0aef38328dece2756ceed18c904c0c447d76' }))));
55
+ }, "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", { key: '96911d1ad50d5b247e27d3e6b5712326434a6354', class: "menu-bar-button-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), h("slot", { key: '004e73cb6a5e6f3126a45d9fa7184f7b424d4f60' }))));
56
56
  }
57
57
  static get is() { return "duet-menu-bar-button"; }
58
58
  static get encapsulation() { return "shadow"; }
@@ -62,17 +62,17 @@ export class DuetMenuBarDropdown {
62
62
  * Always the last one in the class.
63
63
  */
64
64
  render() {
65
- return (h(Host, { key: 'c46c77a3b37d72d4f026c5027a8bed6dc33621c5', role: "listitem" }, h("div", { key: 'bed24491075bfc2c5dcf225c5262a1af76e7a34f', class: {
65
+ return (h(Host, { key: 'a8e5a338b3e99161819aca174ed5d7390adcd508', role: "listitem" }, h("div", { key: '3515f7355c3f564bdebbea9a7d1845754ad9d3ce', class: {
66
66
  "duet-menu-bar-dropdown": true,
67
67
  "duet-theme-turva": this.theme === "turva",
68
68
  active: this.open,
69
69
  [`duet-menu-bar-dropdown--slot-${this.getVariant()}`]: true,
70
- } }, h("button", { key: 'bee18f72f97fe86364cdf6afa685602feea7f694', ref: element => (this.button = element), "aria-label": this.accessibleLabel, "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
70
+ } }, h("button", { key: '8ae1babb7852048ac222167858eeb10f2ef8a3ee', ref: element => (this.button = element), "aria-label": this.accessibleLabel, "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
71
71
  active: this.open,
72
- }, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { key: '9b5beb13681712fe262c14ba74de6b30ab481dff', class: "menu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), h("div", { key: 'debea3ea41d1b4358dbf774b54558d8921b92006', class: "label" }, h("slot", { key: 'fffcc54cdfb0032577c066e374c3465eafac3206', name: "label" }), h("duet-icon", { key: 'a36c591292ca2c2b445e04f53721f788a4005934', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { key: '3794aa5366239e4db4286303ef75f30778e3b911', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
72
+ }, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { key: '2d22eaa31070fc91119b0d15fcae8768764b3038', class: "menu-bar-dropdown-icon", theme: this.theme, name: this.icon, size: "auto", margin: "none", color: "currentColor" })), h("div", { key: 'fa891196c7c3247a4349fc5db8d59e0500754cb9', class: "label" }, h("slot", { key: '59a1658b0e39bae2f94b8583e7ce787118f13221', name: "label" }), h("duet-icon", { key: '31da6e0c50072b0411a7e9c69d79aa810963d0b8', class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { key: '9490db9c65cf17be947333aed8562e5a146da13e', tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
73
73
  items: true,
74
74
  hidden: !this.open,
75
- } }, h("slot", { key: '4a0657ee88ab885d6e177b654e0e9231d0027ec1' })))));
75
+ } }, h("slot", { key: '31a887188bb39ed4efbe1383940b3b8db7396102' })))));
76
76
  }
77
77
  static get is() { return "duet-menu-bar-dropdown"; }
78
78
  static get encapsulation() { return "shadow"; }
@@ -48,11 +48,11 @@ export class DuetMenuBarDropdownLink {
48
48
  * Always the last one in the class.
49
49
  */
50
50
  render() {
51
- return (h(Host, { key: '44c02bb0c92ca03579e70dc6f79178099f38de61' }, h("a", { key: '26b45ac19043800a070894afec67517d051b6ccc', class: {
51
+ return (h(Host, { key: '9321ae6f770fbc1b00cde317df160db1d32fc53a' }, h("a", { key: '85ef5b95cffcae577699f0a3453b0c3fd24d50e9', class: {
52
52
  "duet-menu-bar-dropdown-link": true,
53
53
  [`duet-menu-bar-dropdown-link--slot-${this.getVariant()}`]: true,
54
54
  "duet-theme-turva": this.theme === "turva",
55
- }, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '4d481450931bbf089d2f6d5ee7076aca7c3978f1', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("slot", { key: 'b47043814429787c833949bac92bae95b2001419' }))));
55
+ }, href: this.href, role: "menuitem", onKeyUp: e => this.handleEscape(e), "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '374d983fce34f87bf8c7878ede20b9fae712b8cc', theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("slot", { key: '26ababe0542732c2fc589340dda968e3bc574caa' }))));
56
56
  }
57
57
  static get is() { return "duet-menu-bar-dropdown-link"; }
58
58
  static get encapsulation() { return "shadow"; }
@@ -71,11 +71,11 @@ export class DuetMenuBarItem {
71
71
  */
72
72
  render() {
73
73
  const TagName = this.url ? "a" : "button";
74
- return (h(Host, { key: '9feca792c6d12ed05344d17db4a5076ad037994e', role: "listitem" }, h(TagName, { key: '5ab6813f5290c5f323713e6015a46330089d555a', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
74
+ return (h(Host, { key: '19ec1a0c3d191845df0ae30cdb8f9b83c198b79b', role: "listitem" }, h(TagName, { key: '85786500b66990fe9eee940a466ab9cd08eb2103', target: !this.url ? null : this.external ? "_blank" : "_self", ref: element => (this.itemElement = element), class: {
75
75
  "duet-menu-bar-item": true,
76
76
  "duet-theme-turva": this.theme === "turva",
77
77
  active: this.active,
78
- }, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("duet-icon", { key: '7b6541e7b7cab53fedf815feebc683b9f122e323', class: "leading-icon", size: "auto", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" })), h("slot", { key: 'ab89cf87285d10e52798cd123c404acb69d6bf91' }), (this.trailingIcon || this.external) && (h("duet-icon", { key: '6bc587bed959b634caf6b25db7f3374ed538151c', class: {
78
+ }, href: this.url, role: `${TagName === "a" ? "link" : "button"}`, "aria-current": this.active ? "true" : "false", "aria-label": (this.url && getAccessibleLinkLabel(this)) || this.accessibleLabel, "aria-expanded": this.accessibleExpanded != null ? this.accessibleExpanded.toString() : undefined, "aria-haspopup": this.accessiblePopup != null ? this.accessiblePopup.toString() : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("duet-icon", { key: 'ba8faece0464d006590733c1ff8437cdd931ca03', class: "leading-icon", size: "auto", name: this.leadingIcon, margin: "none", theme: this.theme, color: "currentColor" })), h("slot", { key: '80207075bb856dbfecb6a91e0a72b13287751da4' }), (this.trailingIcon || this.external) && (h("duet-icon", { key: '7e04921588a4c306f61b8056c7c0a7b83c2c29f8', class: {
79
79
  "trailing-icon": !!this.trailingIcon,
80
80
  "trailing-icon-arrow": this.trailingIcon === "action-arrow-down-small",
81
81
  "external-icon": !!this.external,
@@ -33,11 +33,11 @@ export class DuetMenuBarLink {
33
33
  * Always the last one in the class.
34
34
  */
35
35
  render() {
36
- return (h(Host, { key: '044fd632f4ea61ecd3bbbb77e3c2d0eda50f16a4', role: "listitem" }, h("a", { key: 'b910e6d15c696910ab231b49facb9cd3250d66c4', class: {
36
+ return (h(Host, { key: 'ed2a24c6bdd70f91370a4a70bf22804ce698ca49', role: "listitem" }, h("a", { key: 'f957e2da0344bdd58789bb90151c23b341824d93', class: {
37
37
  "duet-menu-bar-link": true,
38
38
  "duet-theme-turva": this.theme === "turva",
39
39
  active: this.active,
40
- }, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: '46ede326e61111856df4318b018a4128b7743658', class: "menu-bar-link-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), h("slot", { key: '774a0d744c12e5d43783123c2d07d450a0ad0472' }))));
40
+ }, href: this.href, "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel }, this.icon && (h("duet-icon", { key: 'c6f7c0a4fbc065c7ff132dba57ec468036359582', class: "menu-bar-link-icon", theme: this.theme, size: "auto", name: this.icon, margin: "none", color: "currentColor" })), h("slot", { key: '73100c0c85e3087896e81c526816b1e92d13b9c3' }))));
41
41
  }
42
42
  static get is() { return "duet-menu-bar-link"; }
43
43
  static get encapsulation() { return "shadow"; }