@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
@@ -3,13 +3,13 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ZxE6MB5V.js');
7
- var label = require('./label-CpPOBfjS.js');
8
- var themeableComponent = require('./themeable-component-CIDaln0Z.js');
6
+ var index = require('./index-BeiMjjVl.js');
7
+ var label = require('./label-Cu4DNShe.js');
8
+ var themeableComponent = require('./themeable-component-Csdvrnsd.js');
9
9
  var createId = require('./create-id-DtslnIOq.js');
10
- var focusUtils = require('./focus-utils-BuGg0Oha.js');
11
- var languageUtils = require('./language-utils-C7Z0KYg-.js');
12
- var slotUtils = require('./slot-utils-BXdHT3A1.js');
10
+ var focusUtils = require('./focus-utils-tCoGOO7d.js');
11
+ var languageUtils = require('./language-utils-B3NubUDr.js');
12
+ var slotUtils = require('./slot-utils-Dny6EJ_G.js');
13
13
  var _commonjsHelpers = require('./_commonjsHelpers-4N64IRaP.js');
14
14
  require('./string-utils-B35hEUBv.js');
15
15
 
@@ -278,6 +278,13 @@ function setYear(date, year) {
278
278
  d.setFullYear(year);
279
279
  return d;
280
280
  }
281
+ /**
282
+ * Check if date falls on a Saturday or Sunday
283
+ */
284
+ function isWeekend(date) {
285
+ const day = date.getDay();
286
+ return day === 0 || day === 6;
287
+ }
281
288
  /**
282
289
  * Check if date is within a min and max
283
290
  */
@@ -341,6 +348,88 @@ const DatePickerDay = ({ focusedDay, today, day, language, onDaySelect, onKeyboa
341
348
  index.h("span", { class: { "duet-date-table-button": true, outside: isOutsideRange, disabled: isDisabled, today: isToday } }, day.getDate())));
342
349
  };
343
350
 
351
+ const holidaysByYear = new Map();
352
+ /**
353
+ * Calculate the date of Easter Sunday for a given year using the
354
+ * Meeus/Jones/Butcher Gregorian algorithm.
355
+ */
356
+ function getEasterSunday(year) {
357
+ const a = year % 19;
358
+ const b = Math.floor(year / 100);
359
+ const c = year % 100;
360
+ const d = Math.floor(b / 4);
361
+ const e = b % 4;
362
+ const f = Math.floor((b + 8) / 25);
363
+ const g = Math.floor((b - f + 1) / 3);
364
+ const h = (19 * a + b - d - g + 15) % 30;
365
+ const i = Math.floor(c / 4);
366
+ const k = c % 4;
367
+ const l = (32 + 2 * e + 2 * i - h - k) % 7;
368
+ const m = Math.floor((a + 11 * h + 22 * l) / 451);
369
+ const monthAndDay = h + l - 7 * m + 114;
370
+ const month = Math.floor(monthAndDay / 31);
371
+ const day = (monthAndDay % 31) + 1;
372
+ return new Date(year, month - 1, day);
373
+ }
374
+ /**
375
+ * Midsummer Eve is the Friday falling between 19 and 25 June (inclusive).
376
+ */
377
+ function getMidsummerEve(year) {
378
+ for (let day = 19; day <= 25; day++) {
379
+ const date = new Date(year, 5, day);
380
+ if (date.getDay() === 5) {
381
+ return date;
382
+ }
383
+ }
384
+ }
385
+ /**
386
+ * Finnish bank holidays for a given year, as published by the Bank of Finland:
387
+ * https://www.suomenpankki.fi/en/money-and-payments/bank-holidays/
388
+ */
389
+ function getFinnishBankHolidays(year) {
390
+ if (holidaysByYear.has(year)) {
391
+ return holidaysByYear.get(year);
392
+ }
393
+ const easterSunday = getEasterSunday(year);
394
+ const holidays = [
395
+ new Date(year, 0, 1), // New Year's Day
396
+ new Date(year, 0, 6), // Epiphany
397
+ addDays(easterSunday, -2), // Good Friday
398
+ addDays(easterSunday, 1), // Easter Monday
399
+ new Date(year, 4, 1), // May Day
400
+ addDays(easterSunday, 39), // Ascension Day
401
+ getMidsummerEve(year), // Midsummer Eve
402
+ new Date(year, 11, 6), // Independence Day
403
+ new Date(year, 11, 24), // Christmas Eve
404
+ new Date(year, 11, 25), // Christmas Day
405
+ new Date(year, 11, 26), // Boxing Day
406
+ ];
407
+ holidaysByYear.set(year, holidays);
408
+ return holidays;
409
+ }
410
+ function isFinnishBankHoliday(date) {
411
+ return getFinnishBankHolidays(date.getFullYear()).some(holiday => isEqual(holiday, date));
412
+ }
413
+
414
+ function parseDisallowedDates(disallowedDates) {
415
+ if (!disallowedDates) {
416
+ return [];
417
+ }
418
+ return Array.isArray(disallowedDates) ? disallowedDates : disallowedDates.split(",").map(date => date.trim());
419
+ }
420
+ /**
421
+ * Check if a date is disallowed by any of the given weekend/bank-holiday/explicit-date rules
422
+ */
423
+ function isDateDisallowed(date, options) {
424
+ if (options.disallowWeekends && isWeekend(date)) {
425
+ return true;
426
+ }
427
+ if (options.disallowBankHolidays && isFinnishBankHoliday(date)) {
428
+ return true;
429
+ }
430
+ return parseDisallowedDates(options.disallowedDates).some(isoDate => isEqual(parseISODate(isoDate), date));
431
+ }
432
+
344
433
  /**
345
434
  * Creates an array representing an inclusive numeric range.
346
435
  * `from` must be less than `to`
@@ -400,7 +489,7 @@ function createShortcuts(shortcuts) {
400
489
  };
401
490
  }
402
491
 
403
- const DatePickerMonth = ({ selectedDate, focusedDate, labelledById, theme, language, min, max, onDateSelect, onKeyboardNavigation, focusedDayRef, onFocusEnter, onFocusExit, }) => {
492
+ const DatePickerMonth = ({ selectedDate, focusedDate, labelledById, theme, language, min, max, disallowWeekends, disallowBankHolidays, disallowedDates, onDateSelect, onKeyboardNavigation, focusedDayRef, onFocusEnter, onFocusExit, }) => {
404
493
  const { dayLabels } = i18n[language];
405
494
  const today = new Date();
406
495
  const days = getViewOfMonth(focusedDate);
@@ -418,7 +507,8 @@ const DatePickerMonth = ({ selectedDate, focusedDate, labelledById, theme, langu
418
507
  index.h("thead", null,
419
508
  index.h("tr", null, dayLabels.map(label => (index.h("th", { scope: "col" },
420
509
  index.h("span", { "aria-hidden": "true" }, label.substr(0, 2))))))),
421
- index.h("tbody", null, chunk(days, 7).map(week => (index.h("tr", { class: "duet-date-table-row" }, week.map(day => (index.h(DatePickerDay, { day: day, today: today, language: language, focusedDay: focusedDate, inRange: inRange(day, min, max), isSelected: isEqual(day, selectedDate), onDaySelect: onDateSelect, onKeyboardNavigation: onKeyboardNavigation, ref: el => {
510
+ index.h("tbody", null, chunk(days, 7).map(week => (index.h("tr", { class: "duet-date-table-row" }, week.map(day => (index.h(DatePickerDay, { day: day, today: today, language: language, focusedDay: focusedDate, inRange: inRange(day, min, max) &&
511
+ !isDateDisallowed(day, { disallowWeekends, disallowBankHolidays, disallowedDates }), isSelected: isEqual(day, selectedDate), onDaySelect: onDateSelect, onKeyboardNavigation: onKeyboardNavigation, ref: el => {
422
512
  if (el && isEqual(day, focusedDate)) {
423
513
  focusedDayRef(el);
424
514
  }
@@ -461,6 +551,11 @@ const DuetDatePicker = class {
461
551
  fi: "Päivämäärä vaaditaan",
462
552
  sv: "Datum krävs",
463
553
  },
554
+ customError: {
555
+ en: "Date not allowed",
556
+ fi: "Päivämäärä ei sallittu",
557
+ sv: "Datum inte tillåtet",
558
+ },
464
559
  };
465
560
  this.open = false;
466
561
  this.focusedDay = new Date();
@@ -569,6 +664,19 @@ const DuetDatePicker = class {
569
664
  * This setting can be used alone or together with the min property.
570
665
  */
571
666
  this.max = "";
667
+ /**
668
+ * Disallow selecting Saturdays and Sundays.
669
+ */
670
+ this.disallowWeekends = false;
671
+ /**
672
+ * Disallow selecting Finnish bank holidays, including Easter-based dates and Midsummer Eve.
673
+ */
674
+ this.disallowBankHolidays = false;
675
+ /**
676
+ * Disallow selecting specific dates. Accepts an array of ISO-8601 (YYYY-MM-DD) dates,
677
+ * or a comma-separated string of the same when set as an HTML attribute.
678
+ */
679
+ this.disallowedDates = [];
572
680
  /**
573
681
  * Increment to add to years, defaults to 10 for simplicity, if you need a larger selectionspace you can set it to 100
574
682
  */
@@ -671,7 +779,7 @@ const DuetDatePicker = class {
671
779
  this.handleDaySelect = (_event, day) => {
672
780
  const min = parseISODate(this.min);
673
781
  const max = parseISODate(this.max);
674
- if (inRange(day, min, max)) {
782
+ if (inRange(day, min, max) && !isDateDisallowed(day, this)) {
675
783
  this.setValue(day);
676
784
  this.hide();
677
785
  }
@@ -692,6 +800,7 @@ const DuetDatePicker = class {
692
800
  * This offers information relating to the current validity of the component.
693
801
  * It follow as closely as possible the behaviour of the native date input.
694
802
  * Useful properties to inspect are badInput, valueMissing, rangeOverflow, rangeUnderflow.
803
+ * For disallowed dates property customError is set true.
695
804
  */
696
805
  get validity() {
697
806
  this.determineValidity();
@@ -816,9 +925,10 @@ const DuetDatePicker = class {
816
925
  const valueMissing = !valueAsDate && this.required;
817
926
  const rangeOverflow = valueAsDate ? !inRange(valueAsDate, null, parseISODate(this.max)) : false;
818
927
  const rangeUnderflow = valueAsDate ? !inRange(valueAsDate, parseISODate(this.min)) : false;
928
+ const customError = valueAsDate ? isDateDisallowed(valueAsDate, this) : false;
819
929
  this._validity = {
820
930
  patternMismatch: false,
821
- customError: false,
931
+ customError,
822
932
  stepMismatch: false,
823
933
  tooLong: false,
824
934
  tooShort: false,
@@ -827,7 +937,7 @@ const DuetDatePicker = class {
827
937
  rangeUnderflow,
828
938
  rangeOverflow,
829
939
  valueMissing,
830
- valid: !(valueMissing || badInput || rangeUnderflow || rangeOverflow),
940
+ valid: !(valueMissing || badInput || rangeUnderflow || rangeOverflow || customError),
831
941
  };
832
942
  if (this._validity.valid) {
833
943
  this.error = "";
@@ -890,13 +1000,13 @@ const DuetDatePicker = class {
890
1000
  if (maxDate) {
891
1001
  maxYear = Math.min(maxYear, maxDate.getFullYear());
892
1002
  }
893
- return (index.h(index.Host, { key: 'bc53156f31fd151a978be4cb494d89811177d2de', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, index.h("div", { key: 'bd85feeae1d997447181347f131cf0eaa309af93', class: "duet-date" }, index.h(DatePickerInput, { key: '0e22a10646a9df5c2dee41047df08e8df6b63872', hasFocus: this.inputHasFocus, value: this.value, valueAsDate: valueAsDate, formattedValue: this.inputValue, language: this.language, onInput: this.handleInputChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.toggleOpen, name: this.name, disabled: this.disabled, error: this.error, role: this.role, required: this.required, theme: this.theme, tooltip: this.tooltip, tooltipDirection: this.tooltipDirection, labelHidden: this.labelHidden, placeholder: this.placeholder, inputLabel: this.label, identifier: this.identifier, buttonRef: element => (this.datePickerButton = element), inputRef: element => (this.datePickerInput = element), accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy, accessibleLiveError: this.accessibleLiveError, echoPlaceholder: this.echoPlaceholder, caption: this.caption })), index.h("div", { key: 'c4575f4c809d00307b254756d1c00e5d65520b03', class: {
1003
+ return (index.h(index.Host, { key: '574a2e443eb79af37f178f46845a206f561cba2e', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, index.h("div", { key: '62fa53292d9b464c3bfce84805c61abbc729b32c', class: "duet-date" }, index.h(DatePickerInput, { key: 'fd44ced264f1b867ffa5642a110d118cfd8a7977', hasFocus: this.inputHasFocus, value: this.value, valueAsDate: valueAsDate, formattedValue: this.inputValue, language: this.language, onInput: this.handleInputChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.toggleOpen, name: this.name, disabled: this.disabled, error: this.error, role: this.role, required: this.required, theme: this.theme, tooltip: this.tooltip, tooltipDirection: this.tooltipDirection, labelHidden: this.labelHidden, placeholder: this.placeholder, inputLabel: this.label, identifier: this.identifier, buttonRef: element => (this.datePickerButton = element), inputRef: element => (this.datePickerInput = element), accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy, accessibleLiveError: this.accessibleLiveError, echoPlaceholder: this.echoPlaceholder, caption: this.caption })), index.h("div", { key: '7db19721a17bc48c0f232de5a91e9aee49435f6b', class: {
894
1004
  "duet-theme-turva": this.theme === "turva",
895
1005
  "duet-date-dialog": true,
896
1006
  left: this.direction === "left",
897
1007
  error: !!this.error,
898
1008
  active: this.open,
899
- }, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, index.h("duet-overlay", { key: '73718663a16c1f4f18625a0e9b5e12c4d84e2862', visible: this.open, "display-device": "x-small" }), index.h(focusUtils.FocusGuard, { key: '55795dff1697ed625725a441813c2837b9180ca4', moveFocusTo: this.focusedDayNode }), index.h("div", { key: '4575c14cab6890c2ed93f14cc269495f4e6112c6', class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, index.h("duet-visually-hidden", { key: '64ec3d2f1809490ebfe3dd1e04bd332fd603010a', "aria-live": "polite" }, text.keyboardInstruction), index.h("div", { key: 'b5545e0104ad9a0bc9f99ff3a725752595a0ffa6', class: "duet-date-dialog-mobile-header" }, index.h(label.DuetInternalLabel, { key: '73d2c0aa481b994ce191816304e1867f461aa7d7', margin: "none" }, this.label), index.h("button", { key: 'c7483c8e743830ff8a21c2127897b43e45b57d8b', class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, index.h("duet-icon", { key: 'b2b8fd08895e8a5b0de42af39fb3e8b4810314e7', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), index.h("duet-visually-hidden", { key: '9238a95c2b5266055844e593ba8ab6349d9d033f' }, text.closeLabel))), index.h("div", { key: '3f68135c40899e3de9f9546ebdace84fbe831141', class: "duet-date-dialog-header" }, index.h("div", { key: '5cc6d3e6a2665e29091147f86fe44339af33327c', class: "duet-date-dialog-dropdowns" }, index.h("duet-visually-hidden", { key: '5bf35b2c9736d2d110344b92942f13be850d644b' }, index.h("h2", { key: '95391f17e2c907733fe1c3d567678d236e369fdc', id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), index.h("duet-visually-hidden", { key: 'a356aafd4ce51cf91cbc363297645efa79da42e3' }, index.h("label", { key: 'd806131d0e348f3743726e47daeb580baaec91a2', htmlFor: this.monthSelectId }, text.monthSelectLabel)), index.h("div", { key: '5e4a84de81c95b6c62dc03de1c805f472377805c', class: "duet-date-dialog-select" }, index.h("select", { key: 'aa66520799ef32c4dfe30506cdbeb4f01000055e', id: this.monthSelectId, class: "duet-date-month-select", ref: element => (this.monthSelectNode = element), onChange: this.handleMonthSelect }, text.monthLabels.map((month, i) => (index.h("option", { key: month, value: i, selected: i === focusedMonth, disabled: !inRange(new Date(focusedYear, i, 1), minDate ? startOfMonth(minDate) : null, maxDate ? endOfMonth(maxDate) : null) }, month)))), index.h("div", { key: '8bf72353d282a2c82f0e64e1a752a17dbcd6423b', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, index.h("span", { key: '1b9a7f95c0007b30117782c962311c54244228a3' }, text.monthLabelsShort[focusedMonth]), index.h("duet-icon", { key: 'a234a84604cb1f87ee8c382b7d886e00a13cd913', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), index.h("duet-visually-hidden", { key: 'f41e59ff6c32248ea057f4547ef6bf24688423e1' }, index.h("label", { key: '10ea1d3b43b673950054ad36abe59688971843d0', htmlFor: this.yearSelectId }, text.yearSelectLabel)), index.h("div", { key: 'b7cd16b90fb5126189de4648b99c6634c15bc5a2', class: "duet-date-dialog-select" }, index.h("select", { key: '852475517a751519016dcc2c14023b9f1850b0d9', id: this.yearSelectId, class: "duet-date-year-select", onChange: this.handleYearSelect }, range(minYear, maxYear).map(year => (index.h("option", { key: year, selected: year === focusedYear }, year)))), index.h("div", { key: '426ab30bd0268b659253d8b9dcd375b7da1952dd', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, index.h("span", { key: '55b9cc0f5e60cd6ad666e58c2724865216d1c635' }, this.focusedDay.getFullYear()), index.h("duet-icon", { key: 'b28ab73ebb1ca7fac93ee3c52d696fa65f2bef29', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), index.h("div", { key: 'eee0f191f6b409674d0ef2b7383d6ab45c316d7c', class: "duet-date-dialog-buttons" }, index.h("duet-action-button", { key: '5a4c05b83e76b2740f71fe7e2d94602e16aa0219', accessibleLabel: i18n[this.language].prevMonthLabel, actionName: i18n[this.language].prevMonthLabel, class: "duet-date-dialog-prev", onClick: this.handlePreviousMonthClick, disabled: prevMonthDisabled, "icon-name": "action-arrow-left-small" }, text.prevMonthLabel), index.h("duet-action-button", { key: '0d4117fdd8511135bede66b13c8177d7105b567f', accessibleLabel: i18n[this.language].nextMonthLabel, actionName: i18n[this.language].nextMonthLabel, class: "duet-date-dialog-next", onClick: this.handleNextMonthClick, disabled: nextMonthDisabled, "icon-name": "action-arrow-right-small" }, text.nextMonthLabel))), index.h(DatePickerMonth, { key: 'ac47f9d6b83fa994e5137a45c300db313dd70701', selectedDate: valueAsDate, focusedDate: this.focusedDay, onDateSelect: this.handleDaySelect, onKeyboardNavigation: this.handleKeyboardNavigation, labelledById: this.dialogLabelId, language: this.language, theme: this.theme, min: minDate, max: maxDate, focusedDayRef: element => (this.focusedDayNode = element), onFocusEnter: this.enableActiveFocus, onFocusExit: this.disableActiveFocus })), index.h(focusUtils.FocusGuard, { key: '9727a0dab133694bd4b2ef008adec00439040b8b', moveFocusTo: this.closeButtonNode }))));
1009
+ }, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, index.h("duet-overlay", { key: 'b762f7971ef0f3cfdba4338da8b66ddd932d739c', visible: this.open, "display-device": "x-small" }), index.h(focusUtils.FocusGuard, { key: '116f8a028515e1cabbdfe6c7c4fbe46a366e8417', moveFocusTo: this.focusedDayNode }), index.h("div", { key: '46df5dc4188ca94f1e9288cc94b369a56a951ee1', class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, index.h("duet-visually-hidden", { key: '1de44e1f4c44b9c97adb419fa7abf60f937b0fa2', "aria-live": "polite" }, text.keyboardInstruction), index.h("div", { key: '4a36684eab5f83211dcd9f04f240ad535f781376', class: "duet-date-dialog-mobile-header" }, index.h(label.DuetInternalLabel, { key: 'ef9877f7fc10b63428437a0ddbc07a787792617b', margin: "none" }, this.label), index.h("button", { key: '52b087991727aa7c32178aef85a7ff6a88b33f6e', class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, index.h("duet-icon", { key: '9434a8ab91835101fca28fb28d3ba3b5fc768583', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), index.h("duet-visually-hidden", { key: 'eaa01ae0b3e0270af1ee5b7777c4bf1c823ed55d' }, text.closeLabel))), index.h("div", { key: '8f59e259985eb3628f23dd8aa4edd90eab33ce45', class: "duet-date-dialog-header" }, index.h("div", { key: 'fd9e2ffede5b19a2008684f5587663372a769b0f', class: "duet-date-dialog-dropdowns" }, index.h("duet-visually-hidden", { key: '9bfda8777868d3a1a0b5dfb1146d4bd22ece9b9d' }, index.h("h2", { key: '4f8171f8b0bfabeb8ef0d44f604c668810572ba8', id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), index.h("duet-visually-hidden", { key: 'f55f26894bef3e11233e3d72b62d70ff5f4f30fc' }, index.h("label", { key: '01d6cda898862ee9c82f018e4a875a54c8a4454c', htmlFor: this.monthSelectId }, text.monthSelectLabel)), index.h("div", { key: '758b166665674a916ab6d6b2c9fd78b6f51f27fd', class: "duet-date-dialog-select" }, index.h("select", { key: '548b2e7615f581454c64c30fe8e8c8d6dfe0d969', id: this.monthSelectId, class: "duet-date-month-select", ref: element => (this.monthSelectNode = element), onChange: this.handleMonthSelect }, text.monthLabels.map((month, i) => (index.h("option", { key: month, value: i, selected: i === focusedMonth, disabled: !inRange(new Date(focusedYear, i, 1), minDate ? startOfMonth(minDate) : null, maxDate ? endOfMonth(maxDate) : null) }, month)))), index.h("div", { key: '34d1e610de1d9f1c1436fdf1ffb2294742269696', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, index.h("span", { key: '84d57f82660038e7fb7d631e6eb03be0ef9c4315' }, text.monthLabelsShort[focusedMonth]), index.h("duet-icon", { key: 'f706752d81c80ae05bf13a19ed6cfa3b2d7262cc', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), index.h("duet-visually-hidden", { key: 'fb67730ced2246377442fb2fd2ebf5086db34fbd' }, index.h("label", { key: '0d3d28925711a15b919004ad2384c719b9832f7d', htmlFor: this.yearSelectId }, text.yearSelectLabel)), index.h("div", { key: '371bb8461b655460da25e9982e17c0385fab8f71', class: "duet-date-dialog-select" }, index.h("select", { key: 'c466eed369426ad7cc78fbed3278a0523529920c', id: this.yearSelectId, class: "duet-date-year-select", onChange: this.handleYearSelect }, range(minYear, maxYear).map(year => (index.h("option", { key: year, selected: year === focusedYear }, year)))), index.h("div", { key: '78db254ed00d0d7b5104f4932415d970ff17e1f4', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, index.h("span", { key: '9a66b0dad5bf39fd769cd851cb529b4568310d9d' }, this.focusedDay.getFullYear()), index.h("duet-icon", { key: 'a68a8da9385f631020ba28389caf1b611def6676', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), index.h("div", { key: 'd1dd09f7da7f1e9d50cdd79ae97d13ba4d89be25', class: "duet-date-dialog-buttons" }, index.h("duet-action-button", { key: 'e7b3c41d7d56f2c24b4e69db80e4c8fc2e0395a2', accessibleLabel: i18n[this.language].prevMonthLabel, actionName: i18n[this.language].prevMonthLabel, class: "duet-date-dialog-prev", onClick: this.handlePreviousMonthClick, disabled: prevMonthDisabled, "icon-name": "action-arrow-left-small" }, text.prevMonthLabel), index.h("duet-action-button", { key: '980a6a1316a3f0b64a0ae62dd80d3494ea855ae8', accessibleLabel: i18n[this.language].nextMonthLabel, actionName: i18n[this.language].nextMonthLabel, class: "duet-date-dialog-next", onClick: this.handleNextMonthClick, disabled: nextMonthDisabled, "icon-name": "action-arrow-right-small" }, text.nextMonthLabel))), index.h(DatePickerMonth, { key: '8524700a8665fe9b8edc04bd6b90b4aacc1eeea0', selectedDate: valueAsDate, focusedDate: this.focusedDay, onDateSelect: this.handleDaySelect, onKeyboardNavigation: this.handleKeyboardNavigation, labelledById: this.dialogLabelId, language: this.language, theme: this.theme, min: minDate, max: maxDate, disallowWeekends: this.disallowWeekends, disallowBankHolidays: this.disallowBankHolidays, disallowedDates: this.disallowedDates, focusedDayRef: element => (this.focusedDayNode = element), onFocusEnter: this.enableActiveFocus, onFocusExit: this.disableActiveFocus })), index.h(focusUtils.FocusGuard, { key: '8b92a3d7d025848e2e3c976e9c091364b52b7f96', moveFocusTo: this.closeButtonNode }))));
900
1010
  }
901
1011
  get element() { return index.getElement(this); }
902
1012
  static get watchers() { return {
@@ -904,7 +1014,10 @@ const DuetDatePicker = class {
904
1014
  "max": ["updateValidity"],
905
1015
  "value": ["updateValidity", "updateInternalValue"],
906
1016
  "required": ["updateValidity"],
907
- "inputValue": ["updateValidity"]
1017
+ "inputValue": ["updateValidity"],
1018
+ "disallowWeekends": ["updateValidity"],
1019
+ "disallowBankHolidays": ["updateValidity"],
1020
+ "disallowedDates": ["updateValidity"]
908
1021
  }; }
909
1022
  };
910
1023
  DuetDatePicker.style = duetDatePickerCss;
@@ -3,10 +3,10 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ZxE6MB5V.js');
7
- var themeableComponent = require('./themeable-component-CIDaln0Z.js');
8
- var tokenUtils = require('./token-utils-DY3-olMV.js');
9
- require('./tokens.module-CTbvyezn.js');
6
+ var index = require('./index-BeiMjjVl.js');
7
+ var themeableComponent = require('./themeable-component-Csdvrnsd.js');
8
+ var tokenUtils = require('./token-utils-ZISdNshf.js');
9
+ require('./tokens.module-CGRpZaa1.js');
10
10
 
11
11
  const duetDividerCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:block;width:100%}.duet-divider{-webkit-user-select:none;user-select:none;display:block;width:100%;height:1px;margin-top:var(--divider-margin, 36px) !important;margin-right:var(--divider-margin, 0);margin-bottom:var(--divider-margin, 28px);margin-left:var(--divider-margin, 0);background:rgb(212, 223, 229)}.duet-divider.duet-p-0{padding:0 !important}.duet-divider.duet-m-0{margin:0 !important}.duet-divider.duet-m-s{margin-bottom:16px !important;margin-top:0 !important}.duet-divider.duet-theme-turva{background:rgb(212, 221, 226)}";
12
12
 
@@ -74,7 +74,7 @@ const DuetSpacer = class {
74
74
  * Always the last one in the class.
75
75
  */
76
76
  render() {
77
- return (index.h(index.Host, { key: '76988a79c56144ea938670ea5a369478d5cbbb9d', class: {
77
+ return (index.h(index.Host, { key: 'b494dd7486aac50ad7c79b76b0476a66fb197a89', class: {
78
78
  "duet-spacer": true,
79
79
  "duet-spacer-xx-small": this.breakpoint === "xx-small",
80
80
  "duet-spacer-x-small": this.breakpoint === "x-small",
@@ -3,16 +3,16 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ZxE6MB5V.js');
7
- var themeableComponent = require('./themeable-component-CIDaln0Z.js');
6
+ var index = require('./index-BeiMjjVl.js');
7
+ var themeableComponent = require('./themeable-component-Csdvrnsd.js');
8
8
  var jsUtils = require('./js-utils-hJ4A2edy.js');
9
- var keyboardUtils = require('./keyboard-utils-D9UlHbik.js');
10
- var languageUtils = require('./language-utils-C7Z0KYg-.js');
11
- var tokens_module = require('./tokens.module-CTbvyezn.js');
12
- var tokenUtils = require('./token-utils-DY3-olMV.js');
9
+ var keyboardUtils = require('./keyboard-utils-DibQafwg.js');
10
+ var languageUtils = require('./language-utils-B3NubUDr.js');
11
+ var tokens_module = require('./tokens.module-CGRpZaa1.js');
12
+ var tokenUtils = require('./token-utils-ZISdNshf.js');
13
13
  var createId = require('./create-id-DtslnIOq.js');
14
14
  var stringUtils = require('./string-utils-B35hEUBv.js');
15
- var errorcodes_utils = require('./errorcodes.utils-Dkf_MfrJ.js');
15
+ var errorcodes_utils = require('./errorcodes.utils-C0tQ3k6Z.js');
16
16
 
17
17
  //simple functional component that renders the data in the table
18
18
  const TableData = ({ data, groupId, alignment }, _children) => {
@@ -315,7 +315,7 @@ duet-table {
315
315
  th {
316
316
  font-weight: ${tokens_module.fontWeightSemiBold};
317
317
  line-height: ${tokens_module.lineHeightSmall};
318
- color: ${tokens_module.colorGrayDarker};
318
+ color: ${tokens_module.colorForegroundSecondary};
319
319
  text-align: left;
320
320
  }
321
321
 
@@ -467,7 +467,7 @@ duet-table {
467
467
  }
468
468
  }
469
469
 
470
-
470
+
471
471
 
472
472
  tbody th {
473
473
  padding-top: calc(${tokens_module.spaceLarge} * 2) !important;
@@ -653,7 +653,7 @@ duet-table {
653
653
  }
654
654
  }
655
655
  }
656
-
656
+
657
657
  duet-table.duet-theme-turva table {
658
658
  font-family: ${tokens_module.fontFamilyTextTurva};
659
659
  }
@@ -663,7 +663,7 @@ duet-table.duet-theme-turva td {
663
663
  }
664
664
 
665
665
  duet-table.duet-theme-turva th {
666
- color: ${tokens_module.colorGrayDarkTurva};
666
+ color: ${tokens_module.colorForegroundSecondaryTurva};
667
667
  }
668
668
 
669
669
  duet-table.duet-theme-turva tbody th {
@@ -884,7 +884,7 @@ const DuetTable = class {
884
884
  });
885
885
  }
886
886
  render() {
887
- return (index.h(index.Host, { key: '9f1704f22fc4624b02f78c7aef30b43a788ce295', class: {
887
+ return (index.h(index.Host, { key: '968bf1e9fea756e09fd9c3c26596fcf857ad8a61', class: {
888
888
  [`duet-table-${this.variation}`]: true,
889
889
  "duet-table-flattened": !this.matchesBreakpoint,
890
890
  // sticky only valid when in regular table layout
@@ -893,7 +893,7 @@ const DuetTable = class {
893
893
  "duet-m-0": this.margin === "none",
894
894
  "duet-theme-turva": this.theme === "turva",
895
895
  "duet-table-hide-head-visually": this.hideHeadVisually,
896
- } }, index.h("slot", { key: '110acd28c9af7e36e6be318cfc5ad44251b72d32' })));
896
+ } }, index.h("slot", { key: 'ccde2e16ca1aea0af30556faad3207a61a8219d0' })));
897
897
  }
898
898
  get element() { return index.getElement(this); }
899
899
  static get watchers() { return {
@@ -2151,10 +2151,10 @@ const DuetUpload = class {
2151
2151
  this.externalUploadButton.accessibleLabel = `${this.externalUploadButton.innerText}. ${caption}`;
2152
2152
  }
2153
2153
  // @ts-ignore
2154
- return (index.h(index.Host, { key: 'fe296e7a1f173e1f9d106725647de568270f7381', class: { "duet-m-0": this.margin === "none" } }, index.h("duet-fieldset", { key: '72451c8e8021c8efdbef350e92d5d00db671f5eb', "label-heading-level": this.headerHeadingLevel, "label-hidden": this.hideHeader, label: this.label }, index.h("slot", { key: '120762b8d74276d518b1a4aa5ebc9267bb821b86', name: "header" }), !this.files.size && (index.h("duet-empty-state", { key: '7d1685f051c1607ed5984f21ca0306cffb135f9c', id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, index.h("duet-paragraph", { key: '4341d78e97e8842976517a9427dad1fb79f15600', margin: "none" }, this.fileListEmpty))), !!this.files.size && index.h("slot", { key: 'ebd5fcbee689a2d69689a66da5770057f959e05b', name: "fileheader" }), !!this.files.size && (index.h("duet-upload-aria-status", { key: 'da8d067ccff2b9de4ef7036d28538c3e1a99813a', invalid: this.getFilesAsArray().invalid.length, valid: this.getFilesAsArray().valid.length, inprogress: this.filesInProgress.size, total: this.files.size, statusMessageLabel: this.internalStatusMessageLabel })), !!this.files.size && this.renderUploadedItems(), !!this.files.size && index.h("slot", { key: '72fb36ce235d388cf811d0b1e2689e673f166aee', name: "filefooter" }), index.h("slot", { key: '1f0f3dc31f01636b94567622dc365a743bb9c555', name: "uploadfooter" }), this.captionOnBottom && (index.h("duet-caption", { key: '071ab836a62ea4c49ab66af59eebf8fd8e6ac0a1', margin: "none", size: "small" }, index.h("div", { key: '8cb3bbe8afe46260ee01de1ccfec1171ad7d15b3', class: "upload-bottom-caption" }, caption))), index.h("slot", { key: '6ccb7bba76d874455cb6c6e4cde19fb4f3118c84', name: "afterfooter" }), !this.hideButton && (index.h(index.Fragment, { key: 'fb69a17ce2cd8ab89382b3a88aaf11c3ec5111d3' }, index.h("duet-spacer", { key: 'd12382964296660b0138d5e7cb23119d9ba51315', size: "large" }), index.h("duet-button", { key: '585b1a6670caf0810ea89a1dc930b4cb7a45c09a', id: this.buttonId, onClick: this.startUpload, "accessible-controls": identifier, disabled: this.fileMaxReached, "accessible-label": this.accessibleButtonLabel || `${this.buttonLabel}. ${caption}`, "accessible-owns": identifier, size: "small", variation: "secondary", fixed: true, icon: "action-add-circle", part: this.identifier ? `${this.identifier}-button-upload` : "duet-upload-button-upload" }, this.buttonLabel))), (this.fileMaxReached ||
2154
+ return (index.h(index.Host, { key: '56a66fb13e2d5b1e975502e6c02e0374b464dab1', class: { "duet-m-0": this.margin === "none" } }, index.h("duet-fieldset", { key: '402d0cd0bfc53a1fd6d981227186277cf58ef428', "label-heading-level": this.headerHeadingLevel, "label-hidden": this.hideHeader, label: this.label }, index.h("slot", { key: '2e9c7748bbd2e39175cb19e2d3fa2a6c5b5e0d90', name: "header" }), !this.files.size && (index.h("duet-empty-state", { key: 'a7c200b271571a9758bbc92c91d0c0d761a8383f', id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, index.h("duet-paragraph", { key: '5bd08aa838e2b2fe41c7cda3895dea43ad14cdc2', margin: "none" }, this.fileListEmpty))), !!this.files.size && index.h("slot", { key: '1e874d98480606d31435b4e8c18e78b5562d5af3', name: "fileheader" }), !!this.files.size && (index.h("duet-upload-aria-status", { key: '2093949b2d42328009e91051a6c8e2cd3c8d66cb', invalid: this.getFilesAsArray().invalid.length, valid: this.getFilesAsArray().valid.length, inprogress: this.filesInProgress.size, total: this.files.size, statusMessageLabel: this.internalStatusMessageLabel })), !!this.files.size && this.renderUploadedItems(), !!this.files.size && index.h("slot", { key: '7f5376e608450c72e17e44360074667501fab26f', name: "filefooter" }), index.h("slot", { key: '0786ed3f222fea600dbe962f9fc8567de54fc612', name: "uploadfooter" }), this.captionOnBottom && (index.h("duet-caption", { key: 'c2a67358020739bb490e36f573fd9bf7f60cbb48', margin: "none", size: "small" }, index.h("div", { key: 'fdd83feb31ce19b351e40e28005c3081d69e0a6c', class: "upload-bottom-caption" }, caption))), index.h("slot", { key: 'bf1265497a10a890adc43104eebf251f1876cc32', name: "afterfooter" }), !this.hideButton && (index.h(index.Fragment, { key: '3e1d242d5a44cac89bf099556b2323a249d615b4' }, index.h("duet-spacer", { key: '664591d6c28c59f626e14e691fcdc9434c37a23b', size: "large" }), index.h("duet-button", { key: 'b688f7277f2d77bcc7bac03bb357b6a71302b1bf', id: this.buttonId, onClick: this.startUpload, "accessible-controls": identifier, disabled: this.fileMaxReached, "accessible-label": this.accessibleButtonLabel || `${this.buttonLabel}. ${caption}`, "accessible-owns": identifier, size: "small", variation: "secondary", fixed: true, icon: "action-add-circle", part: this.identifier ? `${this.identifier}-button-upload` : "duet-upload-button-upload" }, this.buttonLabel))), (this.fileMaxReached ||
2155
2155
  this.bytesMaxReached ||
2156
2156
  this.filesToUploadExceedsLimit ||
2157
- this.filesToUploadTotalSizeIsAboveMax) && (index.h(index.Fragment, { key: '2c6faea7f05f92b8156afb6125ed218230d03a9b' }, index.h("duet-spacer", { key: '0a03717e16ad6080343f46e9cea6235fe7c95fb3', size: "medium" }), index.h("duet-alert", { key: '6e455df241d9c0371a4ac45e9d7f11f9d5b2469a', part: this.identifier ? `${this.identifier}-error-notification` : "duet-upload-error-notification" }, this.fileMaxReached && errorcodes_utils.getI18nError("duet-upload-301", this.errorCodes), this.bytesMaxReached && errorcodes_utils.getI18nError("duet-upload-202", this.errorCodes), this.filesToUploadExceedsLimit && errorcodes_utils.getI18nError("duet-upload-302", this.errorCodes), this.filesToUploadTotalSizeIsAboveMax && errorcodes_utils.getI18nError("duet-upload-203", this.errorCodes)))), index.h("duet-visually-hidden", { key: '0dcf57e2b593b8b4581b9516300d7fcf93a94ded', "aria-hidden": "true" }, index.h("input", { key: '8c8089792d4049c26b827d1b543bd9ddaaba326b', ref: input => {
2157
+ this.filesToUploadTotalSizeIsAboveMax) && (index.h(index.Fragment, { key: '1d525d949fe3b1f16cbad102b17ccb1662b6ebda' }, index.h("duet-spacer", { key: '0f9192d41feeb38243181a24cd8282f88f1c8615', size: "medium" }), index.h("duet-alert", { key: '6ff272d122f622205262c116a25a99dc889ffa6f', part: this.identifier ? `${this.identifier}-error-notification` : "duet-upload-error-notification" }, this.fileMaxReached && errorcodes_utils.getI18nError("duet-upload-301", this.errorCodes), this.bytesMaxReached && errorcodes_utils.getI18nError("duet-upload-202", this.errorCodes), this.filesToUploadExceedsLimit && errorcodes_utils.getI18nError("duet-upload-302", this.errorCodes), this.filesToUploadTotalSizeIsAboveMax && errorcodes_utils.getI18nError("duet-upload-203", this.errorCodes)))), index.h("duet-visually-hidden", { key: '9c819c3fa17b4954699fe60bd343ff32188ae5da', "aria-hidden": "true" }, index.h("input", { key: 'bb9d9c02d82c35b46c9ed91a8f7340aeb6f69fb1', ref: input => {
2158
2158
  this.nativeInput = input;
2159
2159
  }, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
2160
2160
  "duet-upload": true,
@@ -3,8 +3,8 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ZxE6MB5V.js');
7
- var themeableComponent = require('./themeable-component-CIDaln0Z.js');
6
+ var index = require('./index-BeiMjjVl.js');
7
+ var themeableComponent = require('./themeable-component-Csdvrnsd.js');
8
8
 
9
9
  const duetEmptyStateCss = "*,\n*::after,\n*::before {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n background: transparent;\n border: 0;\n}\n\n:host {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n background: transparent;\n border: 0;\n display: block;\n width: 100%;\n height: 100%;\n}\n\n.duet-empty-state {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n background: transparent;\n border: 0;\n width: 100%;\n height: 100%;\n padding: 48px;\n color: rgb(8, 42, 77);\n text-align: center;\n background: rgb(245, 248, 250);\n border-radius: 12px;\n}\n.duet-empty-state.padding-small {\n padding: 36px;\n}\n.duet-empty-state.padding-large {\n padding: 72px;\n}\n.duet-empty-state.warning {\n background: rgb(255, 247, 221);\n}\n.duet-empty-state.duet-no-background {\n background: none;\n}\n.duet-empty-state > div {\n max-width: 800px;\n margin: auto;\n}\n.duet-empty-state .duet-empty-state-heading {\n font-size: 4vw;\n font-family: \"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n font-style: normal;\n font-weight: 600;\n line-height: 1.25;\n color: rgb(8, 42, 77);\n letter-spacing: 0;\n}\n@media (max-width: 27.5rem) {\n .duet-empty-state .duet-empty-state-heading {\n font-size: 1.1rem;\n }\n}\n@media (min-width: 28.4090909091rem) {\n .duet-empty-state .duet-empty-state-heading {\n font-size: 1.1363636364rem;\n }\n}\n@container (width < 576px) {\n .duet-empty-state {\n padding: 36px;\n }\n .duet-empty-state.padding-small {\n padding: 28px;\n }\n .duet-empty-state.padding-large {\n padding: 48px;\n }\n}\n\n.duet-theme-turva.duet-empty-state {\n color: rgb(23, 42, 59);\n}\n.duet-theme-turva.duet-empty-state:not(.warning):not(.duet-no-background) {\n background: rgb(245, 246, 247);\n}\n.duet-theme-turva.duet-empty-state .duet-empty-state-heading {\n font-family: \"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";\n font-weight: 700;\n color: rgb(23, 42, 59);\n}";
10
10
 
@@ -3,10 +3,10 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ZxE6MB5V.js');
7
- var themeableComponent = require('./themeable-component-CIDaln0Z.js');
6
+ var index = require('./index-BeiMjjVl.js');
7
+ var themeableComponent = require('./themeable-component-Csdvrnsd.js');
8
8
  var createId = require('./create-id-DtslnIOq.js');
9
- var slotUtils = require('./slot-utils-BXdHT3A1.js');
9
+ var slotUtils = require('./slot-utils-Dny6EJ_G.js');
10
10
 
11
11
  const duetFieldsetCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-bottom:12px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}fieldset{position:relative;width:100%;min-width:0;border:0}fieldset legend{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;border:0 !important;clip:rect(1px, 1px, 1px, 1px) !important}.duet-legend-wrapper{position:relative;display:block;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(8, 42, 77);text-align:left;background:transparent}.duet-legend-wrapper.duet-legend-compact:not(.duet-legend-has-caption){line-height:1.25}.duet-fieldset-label{margin-bottom:12px !important;display:flex;margin-top:8px}.duet-legend-has-caption .duet-fieldset-label{margin-bottom:6px !important}@media (min-width: 48em){.duet-legend-has-tooltip.duet-legend-has-caption .duet-fieldset-label{margin-bottom:-3px !important}}.duet-fieldset-caption{margin-bottom:12px !important}.duet-fieldset-help{display:block;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(214, 28, 82);border-radius:4px}.duet-fieldset-help span{display:block;margin-top:12px}.duet-fieldset-help span.duet-m-0{margin-top:0}.duet-theme-turva .duet-fieldset-help{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(214, 28, 82)}::slotted(duet-tooltip){position:relative;top:4px}.duet-legend-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}.duet-theme-turva .duet-legend-wrapper{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 42, 59)}.duet-theme-turva .duet-fieldset-help{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(214, 28, 82)}";
12
12
 
@@ -77,20 +77,20 @@ const DuetFieldset = class {
77
77
  * Always the last one in the class.
78
78
  */
79
79
  render() {
80
- return (index.h(index.Host, { key: 'ac0f503ac6d41953e774ad46b418c8ea39ff4708', class: { "duet-m-0": this.margin === "none" } }, index.h("fieldset", { key: 'b564273ca16fac8fbb500ab8bfc9dff72e579770', "aria-labelledby": this.labelId, "aria-describedby": this.error ? this.errorId : null,
80
+ return (index.h(index.Host, { key: 'dfc4801eaf8c1165b778701dffc06cb6c6729dab', class: { "duet-m-0": this.margin === "none" } }, index.h("fieldset", { key: '720a2326b5106d5a7665528aedf93a351173abd0', "aria-labelledby": this.labelId, "aria-describedby": this.error ? this.errorId : null,
81
81
  // NVDA and VoiceOver do not yet support aria-errormessage
82
82
  // once they do, we can remove errors from the aria-describedby
83
83
  // aria-errormessage={this.error ? this.errorId : null}
84
84
  class: {
85
85
  "duet-fieldset": true,
86
86
  "duet-theme-turva": this.theme === "turva",
87
- } }, index.h("legend", { key: '607df92d8f78aaad01e4c80e33c17da55a52e20f', id: this.labelId }, index.h(this.labelHeadingLevel, { key: '33cee42411e380076885a046790cb8006088c5ed' }, this.label), this.caption && index.h("span", { key: '52c809bbe842c11a84e7d1a5c3083bfe92472d36' }, this.caption)), index.h("div", { key: 'aa297b27900d3a28a48bf8102b75e900896393ff', class: {
87
+ } }, index.h("legend", { key: 'a3e0f5a2079c07462370fe5b4953029868a34128', id: this.labelId }, index.h(this.labelHeadingLevel, { key: '8b09fc7c58d0cb9ce5228f420c16b7e753cbff32' }, this.label), this.caption && index.h("span", { key: '5505e5ff8f0fb05d0de2100a606281efc89de10d' }, this.caption)), index.h("div", { key: 'c283e26732c4a1a23ab92f2f69c470f8576a1295', class: {
88
88
  "duet-legend-wrapper": true,
89
89
  "duet-legend-has-caption": !!this.caption,
90
90
  "duet-legend-has-tooltip": this.hasTooltip,
91
91
  "duet-legend-hidden": this.labelHidden,
92
92
  "duet-legend-compact": this.compactLabel,
93
- } }, index.h("div", { key: '3af22b271c143a074adee18554408291e3faa660', class: "duet-fieldset-label" }, index.h("span", { key: '939a883743e233ba83e8ff3328b18842b0c4eae4', "aria-hidden": "true" }, this.label), index.h("slot", { key: '822892f650b6c0f733cc58a1aee1654e21d1f1f6', onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (index.h("div", { key: 'bc40348b978fc775d1007cdf3949e95d4d3b54e0', class: "duet-fieldset-caption", "aria-hidden": "true" }, index.h("duet-caption", { key: '3119b1a7963015c24d6324d5de47fc53cdfd748e', theme: this.theme, margin: "none" }, this.caption)))), index.h("slot", { key: 'fa922540a117205680098064372a70aefc0953ae' }), index.h("span", { key: 'ad8d4d59379d7a9f89e618754d46404eb5c3c664', class: "duet-fieldset-help duet-fieldset-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && index.h("span", { key: 'c36abae3849393120d72e3781305cb2ce88b384c', class: { "duet-m-0": this.lastItemIsChip } }, this.error)))));
93
+ } }, index.h("div", { key: '1ffa47a6b399b46b218a71a35e645f3c7f3e4699', class: "duet-fieldset-label" }, index.h("span", { key: '8f13839c07004cfa7b57c7e90a56a9416e5318cd', "aria-hidden": "true" }, this.label), index.h("slot", { key: '48871bac950c808682971d71b05bffb3e4d2f423', onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (index.h("div", { key: '9a67fb599acf90e1b6711421f08b5f76776c9c2a', class: "duet-fieldset-caption", "aria-hidden": "true" }, index.h("duet-caption", { key: '4b40741c7e05704d6c7d8226a926a6a38ceff851', theme: this.theme, margin: "none" }, this.caption)))), index.h("slot", { key: 'f57fd8b8ab64c31c89e7daf22baa9c9ae1251cfa' }), index.h("span", { key: '3fc490294c332706136999063ea7b3091c95676d', class: "duet-fieldset-help duet-fieldset-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && index.h("span", { key: 'f8b4d8ccd2a8d7b1b0ef640f55520278995fe80b', class: { "duet-m-0": this.lastItemIsChip } }, this.error)))));
94
94
  }
95
95
  get element() { return index.getElement(this); }
96
96
  };
@@ -3,8 +3,8 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ZxE6MB5V.js');
7
- var themeableComponent = require('./themeable-component-CIDaln0Z.js');
6
+ var index = require('./index-BeiMjjVl.js');
7
+ var themeableComponent = require('./themeable-component-Csdvrnsd.js');
8
8
 
9
9
  const duetFileChooserCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.container{display:flex;flex-direction:row;gap:8px;align-items:center}.container .label{margin-bottom:8px}";
10
10
 
@@ -3,13 +3,13 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ZxE6MB5V.js');
6
+ var index = require('./index-BeiMjjVl.js');
7
7
  var actionNewWindowSmall = require('./action-new-window-small-BWlVx6YN.js');
8
8
  var commonStrings = require('./common-strings-DMaSb4Ld.js');
9
- var themeableComponent = require('./themeable-component-CIDaln0Z.js');
10
- var keyboardUtils = require('./keyboard-utils-D9UlHbik.js');
11
- var languageUtils = require('./language-utils-C7Z0KYg-.js');
12
- var slotUtils = require('./slot-utils-BXdHT3A1.js');
9
+ var themeableComponent = require('./themeable-component-Csdvrnsd.js');
10
+ var keyboardUtils = require('./keyboard-utils-DibQafwg.js');
11
+ var languageUtils = require('./language-utils-B3NubUDr.js');
12
+ var slotUtils = require('./slot-utils-Dny6EJ_G.js');
13
13
  var stringUtils = require('./string-utils-B35hEUBv.js');
14
14
  require('./_commonjsHelpers-4N64IRaP.js');
15
15
 
@@ -3,8 +3,8 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ZxE6MB5V.js');
7
- var themeableComponent = require('./themeable-component-CIDaln0Z.js');
6
+ var index = require('./index-BeiMjjVl.js');
7
+ var themeableComponent = require('./themeable-component-Csdvrnsd.js');
8
8
 
9
9
  const duetGridCss = ":host {\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n -moz-appearance: none;\n -webkit-appearance: none;\n appearance: none;\n background: transparent;\n border: 0;\n}\n\n:host(.duet-grid-variation-flex) {\n display: flex !important;\n flex-direction: column !important;\n align-items: flex-start !important;\n justify-content: flex-start !important;\n width: 100%;\n max-width: 100%;\n height: auto;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-breakpoint-x-small) {\n flex-direction: row !important;\n}\n@media (max-width: 22.5em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-x-small) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-breakpoint-x-small.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-small) {\n flex-direction: row !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-small.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-medium) {\n flex-direction: row !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-medium.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-large) {\n flex-direction: row !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-large.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-x-large) {\n flex-direction: row !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-breakpoint-x-large.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-wrap) {\n flex-wrap: wrap !important;\n}\n\n:host(.duet-grid-variation-flex.duet-no-stacking) {\n flex-direction: row !important;\n}\n\n:host(.duet-grid-variation-flex.duet-no-stacking.duet-grid-row-reverse) {\n flex-direction: row-reverse !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-small) {\n flex-direction: column !important;\n}\n@media (max-width: 35.9375em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-small) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-small) {\n flex-direction: column !important;\n}\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-small) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-medium) {\n flex-direction: column !important;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-medium) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-large) {\n flex-direction: column !important;\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-large) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-large) {\n flex-direction: column !important;\n}\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-direction-vertical.duet-grid-breakpoint-x-large) {\n flex-direction: column !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-top.duet-no-stacking) {\n align-items: flex-start !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-no-stacking) {\n align-items: flex-end !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-center.duet-no-stacking) {\n align-items: center !important;\n}\n\n.duet-grid-align-stretch.duet-no-stacking {\n align-items: stretch !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-no-stacking) {\n align-items: baseline !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-x-small) {\n align-items: flex-start !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-x-small) {\n align-items: flex-end !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-x-small) {\n align-items: center !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-x-small) {\n align-items: stretch !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-x-small) {\n align-items: baseline !important;\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-small) {\n align-items: flex-start !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-small) {\n align-items: flex-end !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-small) {\n align-items: center !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-small) {\n align-items: stretch !important;\n }\n}\n\n@media (min-width: 36em) {\n :host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-small) {\n align-items: baseline !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-medium) {\n align-items: flex-start !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-medium) {\n align-items: flex-end !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-medium) {\n align-items: center !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-medium) {\n align-items: stretch !important;\n }\n}\n\n@media (min-width: 48em) {\n :host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-medium) {\n align-items: baseline !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-large) {\n align-items: flex-start !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-large) {\n align-items: flex-end !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-large) {\n align-items: center !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-large) {\n align-items: stretch !important;\n }\n}\n\n@media (min-width: 62em) {\n :host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-large) {\n align-items: baseline !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-top.duet-grid-breakpoint-x-large) {\n align-items: flex-start !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-bottom.duet-grid-breakpoint-x-large) {\n align-items: flex-end !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-center.duet-grid-breakpoint-x-large) {\n align-items: center !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-stretch.duet-grid-breakpoint-x-large) {\n align-items: stretch !important;\n }\n}\n\n@media (min-width: 64.0625em) {\n :host(.duet-grid-variation-flex.duet-grid-align-baseline.duet-grid-breakpoint-x-large) {\n align-items: baseline !important;\n }\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-left) {\n justify-content: flex-start !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-right) {\n justify-content: flex-end !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-center) {\n justify-content: center !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-between) {\n justify-content: space-between !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-around) {\n justify-content: space-around !important;\n}\n\n:host(.duet-grid-variation-flex.duet-grid-distribution-evenly) {\n justify-content: space-evenly !important;\n}\n\n@media (max-width: 35.9375em) {\n :host(.duet-grid-variation-flex.duet-grid-mobile-left) {\n align-items: flex-start !important;\n justify-content: flex-start !important;\n text-align: left !important;\n }\n}\n\n@media (max-width: 35.9375em) {\n :host(.duet-grid-variation-flex.duet-grid-mobile-center) {\n align-items: center !important;\n justify-content: center !important;\n text-align: center !important;\n }\n :host(.duet-grid-variation-flex.duet-grid-mobile-center) * {\n text-align: center !important;\n }\n}\n\n@media (max-width: 35.9375em) {\n :host(.duet-grid-variation-flex.duet-grid-mobile-right) {\n align-items: flex-end !important;\n justify-content: flex-end !important;\n text-align: right !important;\n }\n :host(.duet-grid-variation-flex.duet-grid-mobile-right) * {\n text-align: right !important;\n }\n}\n\n:host(.duet-grid-variation-grid) {\n display: grid;\n grid-template-rows: repeat(1, 1fr);\n grid-template-columns: repeat(4, minmax(0, 1fr));\n gap: 16px;\n align-items: flex-start;\n justify-content: center;\n padding: 0 20px;\n container-type: inline-size;\n overflow-x: clip;\n}\n@media (min-width: 36em) {\n :host(.duet-grid-variation-grid) {\n gap: 24px;\n padding: 0 40px;\n }\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid) {\n grid-template-columns: repeat(8, 55px);\n gap: 24px 32px;\n padding: 0;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid) {\n grid-template-columns: repeat(12, minmax(0, 1fr));\n padding: 0 64px;\n }\n}\n@media (min-width: 76.25em) {\n :host(.duet-grid-variation-grid) {\n grid-template-columns: repeat(12, 55px);\n gap: 40px;\n padding: 0;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-no-row-gap) {\n row-gap: 0;\n}\n\n:host(.duet-grid-variation-grid.duet-grid-no-column-gap) {\n column-gap: 0;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-no-column-gap) {\n grid-template-columns: repeat(8, 83px);\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-no-column-gap) {\n grid-template-columns: repeat(12, minmax(0, 1fr));\n }\n}\n@media (min-width: 76.25em) {\n :host(.duet-grid-variation-grid.duet-grid-no-column-gap) {\n grid-template-columns: repeat(12, 91.6666666667px);\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-small) ::slotted(*) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-small) ::slotted(*) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-small) ::slotted(*) {\n grid-column: 3/span 8;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-medium) ::slotted(*) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-medium) ::slotted(*) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-medium) ::slotted(*) {\n grid-column: 2/span 10;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-large) ::slotted(*) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-large) ::slotted(*) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-large) ::slotted(*) {\n grid-column: 1/span 12;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 8;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(even)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(even)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-right) ::slotted(:nth-child(even)) {\n grid-column: 9/span 4;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(even)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(even)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-sidebar-left) ::slotted(:nth-child(even)) {\n grid-column: 5/span 8;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 4;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(odd)) {\n grid-column: 1/span 6;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(even)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(even)) {\n grid-column: 5/span 4;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-two-columns) ::slotted(:nth-child(even)) {\n grid-column: 7/span 6;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+1)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+1)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+1)) {\n grid-column: 1/span 4;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+2)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+2)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+2)) {\n grid-column: 5/span 4;\n }\n}\n:host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+3)) {\n grid-column: 1/span 4;\n}\n@media (min-width: 48em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+3)) {\n grid-column: 1/span 8;\n }\n}\n@media (min-width: 62em) {\n :host(.duet-grid-variation-grid.duet-grid-template-three-columns) ::slotted(:nth-child(3n+3)) {\n grid-column: 9/span 4;\n }\n}\n\n:host(.duet-grid-variation-grid.duet-grid-template-button-grid) {\n grid-template-columns: minmax(0, 1fr);\n gap: 12px;\n padding: 0;\n}\n@media (min-width: 36em) {\n :host(.duet-grid-variation-grid.duet-grid-template-button-grid) {\n gap: 16px;\n }\n}\n@container (min-width: 664px) {\n :host(.duet-grid-variation-grid.duet-grid-template-button-grid) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n}\n@container (min-width: 1100px) {\n :host(.duet-grid-variation-grid.duet-grid-template-button-grid) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n}";
10
10
 
@@ -307,7 +307,7 @@ const DuetGridItem = class {
307
307
  * Always the last one in the class.
308
308
  */
309
309
  render() {
310
- return (index.h(index.Host, { key: '59b2546565c78716d981db97ba3a66b9f4b06104', style: {
310
+ return (index.h(index.Host, { key: 'df12b3cc2925272599581a0a6c922364a9ddbc83', style: {
311
311
  "min-width": this.minWidth,
312
312
  "max-width": this.maxWidth,
313
313
  }, class: {
@@ -324,7 +324,7 @@ const DuetGridItem = class {
324
324
  "duet-grid-item-br-medium": this.breakpoint === "medium",
325
325
  "duet-grid-item-br-large": this.breakpoint === "large",
326
326
  "duet-grid-item-br-x-large": this.breakpoint === "x-large",
327
- } }, index.h("slot", { key: '78c0ca977366f49a62d91c19e42b7140455c0e7e' })));
327
+ } }, index.h("slot", { key: 'beb1eff26b3dd81aab53500be3b2f5274c099c9d' })));
328
328
  }
329
329
  get element() { return index.getElement(this); }
330
330
  };
@@ -3,19 +3,19 @@
3
3
  */
4
4
  'use strict';
5
5
 
6
- var index = require('./index-ZxE6MB5V.js');
6
+ var index = require('./index-BeiMjjVl.js');
7
7
  var formSearch = require('./form-search-CzPfHB80.js');
8
8
  var _commonjsHelpers = require('./_commonjsHelpers-4N64IRaP.js');
9
9
  var tokens = require('./tokens-COLlUECP.js');
10
10
  var bodyScrollLock_es6 = require('./bodyScrollLock.es6-B2sCDud5.js');
11
11
  var commonStrings = require('./common-strings-DMaSb4Ld.js');
12
- var themeableComponent = require('./themeable-component-CIDaln0Z.js');
13
- var keyboardUtils = require('./keyboard-utils-D9UlHbik.js');
14
- var languageUtils = require('./language-utils-C7Z0KYg-.js');
12
+ var themeableComponent = require('./themeable-component-Csdvrnsd.js');
13
+ var keyboardUtils = require('./keyboard-utils-DibQafwg.js');
14
+ var languageUtils = require('./language-utils-B3NubUDr.js');
15
15
  var stringUtils = require('./string-utils-B35hEUBv.js');
16
- var tokenUtils = require('./token-utils-DY3-olMV.js');
16
+ var tokenUtils = require('./token-utils-ZISdNshf.js');
17
17
  var actionArrowDownSmall = require('./action-arrow-down-small-CDsSJFvZ.js');
18
- var tokens_module = require('./tokens.module-CTbvyezn.js');
18
+ var tokens_module = require('./tokens.module-CGRpZaa1.js');
19
19
  var createId = require('./create-id-DtslnIOq.js');
20
20
 
21
21
  var navigationContactDropdown;
@@ -856,7 +856,7 @@ const DuetLogo = class {
856
856
  */
857
857
  render() {
858
858
  const TagName = this.href ? "a" : "div";
859
- return (index.h(index.Host, { key: 'e210c4ffcf033bc1f53fb90ae2d1a9c98c8f61f6', class: { "duet-m-0": this.margin === "none" } }, index.h(TagName, { key: 'cabf21f4898aab94d08a9de35222313124a6645c', href: this.href, ref: link => (this.nativeLink = link), "aria-label": this.accessibleLabel, class: {
859
+ return (index.h(index.Host, { key: 'b66ac360589fd13695f735c6c659bc4f94e2375e', class: { "duet-m-0": this.margin === "none" } }, index.h(TagName, { key: '91a1d72ee9da1ac978938f28eaab541f3dc7a2ce', href: this.href, ref: link => (this.nativeLink = link), "aria-label": this.accessibleLabel, class: {
860
860
  "duet-logo": true,
861
861
  [this.size]: true,
862
862
  "duet-logo-inverse": this.inverse,