@duetds/components 10.3.1 → 10.5.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 (452) hide show
  1. package/hydrate/index.js +501 -306
  2. package/hydrate/index.mjs +501 -306
  3. package/lib/cjs/{a11y-utils-dXXDBTyF.js → a11y-utils-DaAO4N9d.js} +1 -1
  4. package/lib/cjs/{app-globals-CyPV2FZK.js → app-globals-CHNvdfQj.js} +1 -1
  5. package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
  6. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  7. package/lib/cjs/duet-badge.cjs.entry.js +29 -6
  8. package/lib/cjs/duet-banner.cjs.entry.js +3 -3
  9. package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
  10. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
  11. package/lib/cjs/duet-button_2.cjs.entry.js +5 -5
  12. package/lib/cjs/duet-callout.cjs.entry.js +5 -5
  13. package/lib/cjs/duet-caption_4.cjs.entry.js +12 -12
  14. package/lib/cjs/duet-card.cjs.entry.js +3 -3
  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 +8 -9
  18. package/lib/cjs/duet-choice_2.cjs.entry.js +22 -22
  19. package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
  20. package/lib/cjs/duet-combobox.cjs.entry.js +26 -10
  21. package/lib/cjs/duet-contact-card.cjs.entry.js +5 -5
  22. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  23. package/lib/cjs/duet-date-picker.cjs.entry.js +11 -10
  24. package/lib/cjs/duet-divider_2.cjs.entry.js +4 -4
  25. package/lib/cjs/duet-editable-table_3.cjs.entry.js +10 -10
  26. package/lib/cjs/duet-empty-state.cjs.entry.js +33 -7
  27. package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
  28. package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
  29. package/lib/cjs/duet-footer.cjs.entry.js +8 -8
  30. package/lib/cjs/duet-grid_2.cjs.entry.js +15 -8
  31. package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
  32. package/lib/cjs/duet-hero.cjs.entry.js +9 -9
  33. package/lib/cjs/duet-icon.cjs.entry.js +5 -5
  34. package/lib/cjs/duet-indicator.cjs.entry.js +5 -5
  35. package/lib/cjs/duet-input_2.cjs.entry.js +79 -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 +4 -4
  40. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
  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 +12 -12
  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 +9 -9
  48. package/lib/cjs/duet-number-input.cjs.entry.js +13 -11
  49. package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
  50. package/lib/cjs/duet-page-heading.cjs.entry.js +20 -5
  51. package/lib/cjs/duet-pagination_2.cjs.entry.js +17 -18
  52. package/lib/cjs/duet-panel.cjs.entry.js +4 -4
  53. package/lib/cjs/duet-phone-input.cjs.entry.js +17 -5
  54. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +21 -11
  55. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  56. package/lib/cjs/duet-promo-card.cjs.entry.js +5 -5
  57. package/lib/cjs/duet-radio_2.cjs.entry.js +10 -11
  58. package/lib/cjs/duet-range-slider.cjs.entry.js +6 -6
  59. package/lib/cjs/duet-scrollable_3.cjs.entry.js +15 -15
  60. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  61. package/lib/cjs/duet-select.cjs.entry.js +10 -10
  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 +6 -6
  65. package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
  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 +11 -11
  70. package/lib/cjs/duet-slideout.cjs.entry.js +10 -10
  71. package/lib/cjs/duet-status-icon.cjs.entry.js +7 -3
  72. package/lib/cjs/duet-step_2.cjs.entry.js +6 -6
  73. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
  74. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
  75. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +6 -6
  76. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
  77. package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
  78. package/lib/cjs/duet-textarea.cjs.entry.js +14 -21
  79. package/lib/cjs/duet-toggle.cjs.entry.js +8 -8
  80. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
  81. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
  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 +13 -11
  86. package/lib/cjs/duet-tooltip.cjs.entry.js +24 -7
  87. package/lib/cjs/duet-tray.cjs.entry.js +5 -5
  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-DQ-I8x2z.js → errorcodes.utils-Dkf_MfrJ.js} +1 -1
  93. package/lib/cjs/{focus-utils-DstNW4_h.js → focus-utils-BuGg0Oha.js} +1 -1
  94. package/lib/cjs/{index-B_QTwXEx.js → index-ZxE6MB5V.js} +5 -5
  95. package/lib/cjs/{label-yAj5CKm3.js → label-CpPOBfjS.js} +1 -1
  96. package/lib/cjs/{language-utils-DjtvVntE.js → language-utils-C7Z0KYg-.js} +1 -1
  97. package/lib/cjs/loader.cjs.js +3 -3
  98. package/lib/cjs/{slot-utils-YUU0XWn9.js → slot-utils-BXdHT3A1.js} +2 -2
  99. package/lib/cjs/{themeable-component-h3OzJgCb.js → themeable-component-CIDaln0Z.js} +1 -1
  100. package/lib/collection/components/duet-badge/duet-badge.css +66 -5
  101. package/lib/collection/components/duet-badge/duet-badge.js +49 -2
  102. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  103. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  104. package/lib/collection/components/duet-button/duet-button.css +5 -0
  105. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  106. package/lib/collection/components/duet-chip/duet-chip.js +5 -6
  107. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  108. package/lib/collection/components/duet-choice/duet-choice.js +12 -39
  109. package/lib/collection/components/duet-choice-group/duet-choice-group.js +6 -8
  110. package/lib/collection/components/duet-combobox/duet-combobox.js +22 -6
  111. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  112. package/lib/collection/components/duet-date-picker/duet-date-picker.css +0 -1
  113. package/lib/collection/components/duet-date-picker/duet-date-picker.js +5 -2
  114. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  115. package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -2
  116. package/lib/collection/components/duet-empty-state/duet-empty-state.css +55 -2
  117. package/lib/collection/components/duet-empty-state/duet-empty-state.js +124 -6
  118. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  119. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  120. package/lib/collection/components/duet-footer/duet-footer.js +4 -4
  121. package/lib/collection/components/duet-grid/duet-grid.css +23 -0
  122. package/lib/collection/components/duet-grid/duet-grid.js +29 -2
  123. package/lib/collection/components/duet-grid-item/duet-grid-item.css +5 -0
  124. package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
  125. package/lib/collection/components/duet-heading/duet-heading.css +62 -0
  126. package/lib/collection/components/duet-heading/duet-heading.js +40 -2
  127. package/lib/collection/components/duet-hero/duet-hero.js +5 -5
  128. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  129. package/lib/collection/components/duet-indicator/duet-indicator.js +2 -2
  130. package/lib/collection/components/duet-input/duet-input.css +49 -5
  131. package/lib/collection/components/duet-input/duet-input.js +152 -15
  132. package/lib/collection/components/duet-layout/duet-layout.js +5 -5
  133. package/lib/collection/components/duet-link/duet-link.js +2 -2
  134. package/lib/collection/components/duet-list/duet-list.js +1 -1
  135. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  136. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  137. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +3 -3
  138. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  139. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  140. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  141. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  142. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  143. package/lib/collection/components/duet-modal/duet-modal.js +7 -7
  144. package/lib/collection/components/duet-multiselect/duet-multiselect.css +11 -2
  145. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  146. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  147. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  148. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +3 -3
  149. package/lib/collection/components/duet-number-input/duet-number-input.js +10 -9
  150. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  151. package/lib/collection/components/duet-page-heading/duet-page-heading.css +20 -1
  152. package/lib/collection/components/duet-page-heading/duet-page-heading.js +58 -2
  153. package/lib/collection/components/duet-pagination/duet-pagination.js +12 -13
  154. package/lib/collection/components/duet-panel/duet-panel.js +2 -2
  155. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  156. package/lib/collection/components/duet-phone-input/duet-phone-input.js +13 -1
  157. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +13 -3
  158. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  159. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  160. package/lib/collection/components/duet-radio/duet-radio.js +6 -7
  161. package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
  162. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  163. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  164. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  165. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  166. package/lib/collection/components/duet-select/duet-select.css +11 -2
  167. package/lib/collection/components/duet-select/duet-select.js +5 -5
  168. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  169. package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
  170. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
  171. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  172. package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
  173. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  174. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  175. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  176. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  177. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  178. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  179. package/lib/collection/components/duet-status-icon/duet-status-icon.css +39 -0
  180. package/lib/collection/components/duet-status-icon/duet-status-icon.js +13 -2
  181. package/lib/collection/components/duet-step/duet-step.js +2 -2
  182. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  183. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  184. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  185. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  186. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  187. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  188. package/lib/collection/components/duet-tab/duet-tab.js +2 -2
  189. package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
  190. package/lib/collection/components/duet-table/duet-table.js +2 -2
  191. package/lib/collection/components/duet-textarea/duet-textarea.css +11 -2
  192. package/lib/collection/components/duet-textarea/duet-textarea.js +8 -15
  193. package/lib/collection/components/duet-toggle/duet-toggle.js +3 -3
  194. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  195. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  196. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  197. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  198. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  199. package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +18 -4
  200. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +25 -3
  201. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +1 -1
  202. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
  203. package/lib/collection/components/duet-tooltip/duet-tooltip.js +47 -4
  204. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  205. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  206. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  207. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  208. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  209. package/lib/collection/utils/math.utils.js +1 -0
  210. package/lib/collection/utils/slot-utils.js +1 -1
  211. package/lib/duet/duet.esm.js +1 -1
  212. package/lib/duet/{p-c8e520b6.entry.js → p-02d8e844.entry.js} +1 -1
  213. package/lib/duet/p-06297bd8.entry.js +4 -0
  214. package/lib/duet/p-0c04f9f5.entry.js +4 -0
  215. package/lib/duet/p-110c7572.entry.js +4 -0
  216. package/lib/duet/p-18a8ea12.entry.js +4 -0
  217. package/lib/duet/{p-d8bc628c.entry.js → p-19863cdf.entry.js} +1 -1
  218. package/lib/duet/p-1bca9931.entry.js +4 -0
  219. package/lib/duet/{p-0cc2921b.entry.js → p-1da7703d.entry.js} +1 -1
  220. package/lib/duet/{p-690beb31.entry.js → p-20a8ef81.entry.js} +1 -1
  221. package/lib/duet/p-268b3066.entry.js +4 -0
  222. package/lib/duet/{p-2e126e15.entry.js → p-2dd7d75e.entry.js} +1 -1
  223. package/lib/duet/{p-5fb1092c.entry.js → p-2f8a47e2.entry.js} +1 -1
  224. package/lib/duet/{p-608ebd47.entry.js → p-30108edc.entry.js} +1 -1
  225. package/lib/duet/{p-3a45c3a4.entry.js → p-317a1fc0.entry.js} +1 -1
  226. package/lib/duet/{p-ae778cb1.entry.js → p-317e81f3.entry.js} +1 -1
  227. package/lib/duet/p-3277233e.entry.js +4 -0
  228. package/lib/duet/{p-efa1cd0b.entry.js → p-3690576a.entry.js} +1 -1
  229. package/lib/duet/{p-d7506eaa.entry.js → p-38973524.entry.js} +1 -1
  230. package/lib/duet/{p-3d00efb7.entry.js → p-3b2fba0f.entry.js} +1 -1
  231. package/lib/duet/{p-4b8293b3.entry.js → p-3f35fce3.entry.js} +1 -1
  232. package/lib/duet/p-3f3c6e64.entry.js +4 -0
  233. package/lib/duet/{p-06f17fe7.entry.js → p-3f7afd87.entry.js} +1 -1
  234. package/lib/duet/p-407f7f03.entry.js +4 -0
  235. package/lib/duet/p-40fa7371.entry.js +4 -0
  236. package/lib/duet/p-42ec7305.entry.js +4 -0
  237. package/lib/duet/p-43e076b5.entry.js +4 -0
  238. package/lib/duet/p-443af533.entry.js +4 -0
  239. package/lib/duet/{p-2d963ab0.entry.js → p-461d4089.entry.js} +1 -1
  240. package/lib/duet/p-4af6a8ed.entry.js +4 -0
  241. package/lib/duet/{p-ecf69f6d.entry.js → p-4b7f1244.entry.js} +1 -1
  242. package/lib/duet/{p-18eada94.entry.js → p-516397ba.entry.js} +1 -1
  243. package/lib/duet/p-5284c707.entry.js +4 -0
  244. package/lib/duet/{p-1e168d4b.entry.js → p-52beb436.entry.js} +1 -1
  245. package/lib/duet/p-5c9f443c.entry.js +4 -0
  246. package/lib/duet/{p-968546f6.entry.js → p-5f5f72d4.entry.js} +1 -1
  247. package/lib/duet/p-5lFzA17H.js +4 -0
  248. package/lib/duet/{p-a6bec2da.entry.js → p-61ec0e1c.entry.js} +1 -1
  249. package/lib/duet/{p-07b9b6c3.entry.js → p-6b469225.entry.js} +1 -1
  250. package/lib/duet/{p-10a326fa.entry.js → p-6ef683d5.entry.js} +1 -1
  251. package/lib/duet/{p-de4b0518.entry.js → p-70612314.entry.js} +1 -1
  252. package/lib/duet/{p-6cffc5b7.entry.js → p-70961edb.entry.js} +1 -1
  253. package/lib/duet/p-7294c37d.entry.js +4 -0
  254. package/lib/duet/{p-7ce31e10.entry.js → p-72b504ef.entry.js} +1 -1
  255. package/lib/duet/p-734249e0.entry.js +4 -0
  256. package/lib/duet/{p-4856f07c.entry.js → p-7353ee4c.entry.js} +1 -1
  257. package/lib/duet/p-74aac967.entry.js +4 -0
  258. package/lib/duet/{p-ed750cdf.entry.js → p-7c08fd87.entry.js} +1 -1
  259. package/lib/duet/{p-44a97d21.entry.js → p-7eea47d5.entry.js} +1 -1
  260. package/lib/duet/{p-86166f8d.entry.js → p-7fd39204.entry.js} +1 -1
  261. package/lib/duet/{p-898d5701.entry.js → p-8012c7bc.entry.js} +1 -1
  262. package/lib/duet/{p-162a0691.entry.js → p-829db926.entry.js} +1 -1
  263. package/lib/duet/p-83238bf3.entry.js +4 -0
  264. package/lib/duet/{p-25b4886a.entry.js → p-833802f9.entry.js} +1 -1
  265. package/lib/duet/{p-2ac11077.entry.js → p-86ffd3cb.entry.js} +1 -1
  266. package/lib/duet/{p-8a28f86e.entry.js → p-871620d3.entry.js} +1 -1
  267. package/lib/duet/{p-d2e74e89.entry.js → p-8ace1eb4.entry.js} +1 -1
  268. package/lib/duet/p-8b0dfbd7.entry.js +4 -0
  269. package/lib/duet/p-93ff8fe4.entry.js +4 -0
  270. package/lib/duet/{p-a8229728.entry.js → p-9ae7aaef.entry.js} +1 -1
  271. package/lib/duet/{p-f71d04ce.entry.js → p-9c9811ba.entry.js} +1 -1
  272. package/lib/duet/{p-f15ab3b8.entry.js → p-9e1a59d1.entry.js} +1 -1
  273. package/lib/duet/{p-DrqQiRTn.js → p-B2cboDWM.js} +1 -1
  274. package/lib/duet/{p-CW11pVgw.js → p-B8-N_qjs.js} +1 -1
  275. package/lib/duet/p-BzYmwX5_.js +4 -0
  276. package/lib/duet/{p-BUWuSkQW.js → p-C5Yfx2kd.js} +1 -1
  277. package/lib/duet/{p-DFAnksuG.js → p-CFqvB5PA.js} +1 -1
  278. package/lib/duet/p-Cg4m_WHe.js +4 -0
  279. package/lib/duet/{p-B6Z_1gqI.js → p-R3pTP2Oy.js} +1 -1
  280. package/lib/duet/p-a068c086.entry.js +4 -0
  281. package/lib/duet/p-a483117e.entry.js +4 -0
  282. package/lib/duet/p-a5177d32.entry.js +4 -0
  283. package/lib/duet/{p-65350441.entry.js → p-a8876b3d.entry.js} +1 -1
  284. package/lib/duet/{p-5c9530f1.entry.js → p-a9104184.entry.js} +1 -1
  285. package/lib/duet/{p-b4c18ee6.entry.js → p-b1326cbb.entry.js} +1 -1
  286. package/lib/duet/{p-17413943.entry.js → p-b747f6e9.entry.js} +1 -1
  287. package/lib/duet/{p-12b2d402.entry.js → p-bdbf0fae.entry.js} +1 -1
  288. package/lib/duet/{p-b6dc4395.entry.js → p-c1afac0d.entry.js} +1 -1
  289. package/lib/duet/p-c2026c6b.entry.js +4 -0
  290. package/lib/duet/{p-301b8664.entry.js → p-c216e746.entry.js} +1 -1
  291. package/lib/duet/{p-bfc75bb9.entry.js → p-c54be349.entry.js} +1 -1
  292. package/lib/duet/{p-fca9c5c4.entry.js → p-cb6c4158.entry.js} +1 -1
  293. package/lib/duet/{p-278ef4d8.entry.js → p-cbcee3e2.entry.js} +1 -1
  294. package/lib/duet/{p-0ccecf5b.entry.js → p-d3b5c997.entry.js} +1 -1
  295. package/lib/duet/{p-ec689a7c.entry.js → p-d3baa815.entry.js} +1 -1
  296. package/lib/duet/{p-f55f8bd9.entry.js → p-d5f90dbc.entry.js} +1 -1
  297. package/lib/duet/{p-b9a54319.entry.js → p-d6f0afa5.entry.js} +1 -1
  298. package/lib/duet/{p-d83f38c7.entry.js → p-d779fe42.entry.js} +1 -1
  299. package/lib/duet/{p-806c4ab8.entry.js → p-dedf6a32.entry.js} +1 -1
  300. package/lib/duet/{p-5fb783eb.entry.js → p-e08dce92.entry.js} +1 -1
  301. package/lib/duet/{p-fe00331c.entry.js → p-e7f2359a.entry.js} +1 -1
  302. package/lib/duet/{p-419b96b6.entry.js → p-efa4eecc.entry.js} +1 -1
  303. package/lib/duet/p-f040706c.entry.js +4 -0
  304. package/lib/duet/{p-17c063a3.entry.js → p-fa13ffe9.entry.js} +1 -1
  305. package/lib/duet/{p-93abd97a.entry.js → p-fe829b53.entry.js} +1 -1
  306. package/lib/duet/p-s8EL6NG5.js +4 -0
  307. package/lib/esm/{a11y-utils-D66Lzlz5.js → a11y-utils-ChN5Nhxh.js} +1 -1
  308. package/lib/esm/{app-globals-G9KPoeGD.js → app-globals-4kCk2rkO.js} +1 -1
  309. package/lib/esm/duet-action-button.entry.js +3 -3
  310. package/lib/esm/duet-alert.entry.js +4 -4
  311. package/lib/esm/duet-badge.entry.js +29 -6
  312. package/lib/esm/duet-banner.entry.js +3 -3
  313. package/lib/esm/duet-breadcrumb.entry.js +6 -6
  314. package/lib/esm/duet-breadcrumbs.entry.js +5 -5
  315. package/lib/esm/duet-button_2.entry.js +5 -5
  316. package/lib/esm/duet-callout.entry.js +5 -5
  317. package/lib/esm/duet-caption_4.entry.js +12 -12
  318. package/lib/esm/duet-card.entry.js +3 -3
  319. package/lib/esm/duet-checkbox.entry.js +3 -3
  320. package/lib/esm/duet-checkmark.entry.js +4 -4
  321. package/lib/esm/duet-chip.entry.js +8 -9
  322. package/lib/esm/duet-choice_2.entry.js +22 -22
  323. package/lib/esm/duet-collapsible.entry.js +3 -3
  324. package/lib/esm/duet-combobox.entry.js +26 -10
  325. package/lib/esm/duet-contact-card.entry.js +5 -5
  326. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  327. package/lib/esm/duet-date-picker.entry.js +11 -10
  328. package/lib/esm/duet-divider_2.entry.js +4 -4
  329. package/lib/esm/duet-editable-table_3.entry.js +10 -10
  330. package/lib/esm/duet-empty-state.entry.js +33 -7
  331. package/lib/esm/duet-fieldset.entry.js +6 -6
  332. package/lib/esm/duet-file-chooser.entry.js +3 -3
  333. package/lib/esm/duet-footer.entry.js +8 -8
  334. package/lib/esm/duet-grid_2.entry.js +15 -8
  335. package/lib/esm/duet-header_2.entry.js +4 -4
  336. package/lib/esm/duet-hero.entry.js +9 -9
  337. package/lib/esm/duet-icon.entry.js +5 -5
  338. package/lib/esm/duet-indicator.entry.js +5 -5
  339. package/lib/esm/duet-input_2.entry.js +79 -18
  340. package/lib/esm/duet-layout.entry.js +7 -7
  341. package/lib/esm/duet-list_2.entry.js +5 -5
  342. package/lib/esm/duet-menu-bar-button.entry.js +4 -4
  343. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
  344. package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
  345. package/lib/esm/duet-menu-bar-item.entry.js +7 -7
  346. package/lib/esm/duet-menu-bar-link.entry.js +4 -4
  347. package/lib/esm/duet-menu-bar.entry.js +6 -6
  348. package/lib/esm/duet-modal.entry.js +12 -12
  349. package/lib/esm/duet-multiselect.entry.js +11 -11
  350. package/lib/esm/duet-nav.entry.js +3 -3
  351. package/lib/esm/duet-notification_2.entry.js +9 -9
  352. package/lib/esm/duet-number-input.entry.js +13 -11
  353. package/lib/esm/duet-overlay.entry.js +3 -3
  354. package/lib/esm/duet-page-heading.entry.js +20 -5
  355. package/lib/esm/duet-pagination_2.entry.js +17 -18
  356. package/lib/esm/duet-panel.entry.js +4 -4
  357. package/lib/esm/duet-phone-input.entry.js +17 -5
  358. package/lib/esm/duet-popup-menu_2.entry.js +21 -11
  359. package/lib/esm/duet-progress.entry.js +3 -3
  360. package/lib/esm/duet-promo-card.entry.js +5 -5
  361. package/lib/esm/duet-radio_2.entry.js +10 -11
  362. package/lib/esm/duet-range-slider.entry.js +6 -6
  363. package/lib/esm/duet-scrollable_3.entry.js +15 -15
  364. package/lib/esm/duet-section-layout.entry.js +4 -4
  365. package/lib/esm/duet-select.entry.js +10 -10
  366. package/lib/esm/duet-shaped-image.entry.js +4 -4
  367. package/lib/esm/duet-share-chart-item.entry.js +2 -2
  368. package/lib/esm/duet-share-chart.entry.js +6 -6
  369. package/lib/esm/duet-show-more.entry.js +5 -5
  370. package/lib/esm/duet-slideout-lang.entry.js +4 -4
  371. package/lib/esm/duet-slideout-link.entry.js +7 -7
  372. package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
  373. package/lib/esm/duet-slideout-panel.entry.js +11 -11
  374. package/lib/esm/duet-slideout.entry.js +10 -10
  375. package/lib/esm/duet-status-icon.entry.js +7 -3
  376. package/lib/esm/duet-step_2.entry.js +6 -6
  377. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
  378. package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
  379. package/lib/esm/duet-submenu-bar-item.entry.js +6 -6
  380. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  381. package/lib/esm/duet-submenu-bar.entry.js +7 -7
  382. package/lib/esm/duet-textarea.entry.js +14 -21
  383. package/lib/esm/duet-toggle.entry.js +8 -8
  384. package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
  385. package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
  386. package/lib/esm/duet-toolbar-item.entry.js +8 -8
  387. package/lib/esm/duet-toolbar-link.entry.js +4 -4
  388. package/lib/esm/duet-toolbar.entry.js +4 -4
  389. package/lib/esm/duet-tooltip-button_2.entry.js +13 -11
  390. package/lib/esm/duet-tooltip.entry.js +25 -8
  391. package/lib/esm/duet-tray.entry.js +5 -5
  392. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  393. package/lib/esm/duet-upload-item.entry.js +6 -6
  394. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  395. package/lib/esm/duet.js +4 -4
  396. package/lib/esm/{errorcodes.utils-C6zptXiM.js → errorcodes.utils-DuFCu_27.js} +1 -1
  397. package/lib/esm/{focus-utils-YZ2ticmM.js → focus-utils-CFswdkeD.js} +1 -1
  398. package/lib/esm/{index-DrqQiRTn.js → index-B2cboDWM.js} +5 -5
  399. package/lib/esm/{label-CnTwCD-3.js → label-CJxIWUOT.js} +1 -1
  400. package/lib/esm/{language-utils-BEG0cFmw.js → language-utils-C4M4ASkT.js} +1 -1
  401. package/lib/esm/loader.js +4 -4
  402. package/lib/esm/{slot-utils-Dzrezpl3.js → slot-utils--sNK1DNn.js} +2 -2
  403. package/lib/esm/{themeable-component-BLql61nC.js → themeable-component-BBi3552X.js} +1 -1
  404. package/lib/types/common-types.d.ts +11 -28
  405. package/lib/types/components/duet-badge/duet-badge.d.ts +14 -0
  406. package/lib/types/components/duet-chip/duet-chip.d.ts +1 -1
  407. package/lib/types/components/duet-combobox/duet-combobox.d.ts +1 -0
  408. package/lib/types/components/duet-empty-state/duet-empty-state.d.ts +24 -4
  409. package/lib/types/components/duet-grid/duet-grid.d.ts +5 -0
  410. package/lib/types/components/duet-heading/duet-heading.d.ts +10 -0
  411. package/lib/types/components/duet-input/duet-input.d.ts +31 -3
  412. package/lib/types/components/duet-number-input/duet-number-input.d.ts +2 -1
  413. package/lib/types/components/duet-page-heading/duet-page-heading.d.ts +10 -0
  414. package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +2 -0
  415. package/lib/types/components/duet-radio/duet-radio.d.ts +0 -1
  416. package/lib/types/components/duet-textarea/duet-textarea.d.ts +0 -5
  417. package/lib/types/components/duet-tooltip/duet-tooltip-button.d.ts +1 -0
  418. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +6 -0
  419. package/lib/types/components.d.ts +151 -14
  420. package/lib/types/utils/math.utils.d.ts +1 -0
  421. package/package.json +5 -5
  422. package/lib/duet/p-0a80de40.entry.js +0 -4
  423. package/lib/duet/p-162993d2.entry.js +0 -4
  424. package/lib/duet/p-234f4365.entry.js +0 -4
  425. package/lib/duet/p-245c0535.entry.js +0 -4
  426. package/lib/duet/p-29599dc5.entry.js +0 -4
  427. package/lib/duet/p-3d0a716c.entry.js +0 -4
  428. package/lib/duet/p-3eba33cd.entry.js +0 -4
  429. package/lib/duet/p-550bfab9.entry.js +0 -4
  430. package/lib/duet/p-5c60eca3.entry.js +0 -4
  431. package/lib/duet/p-67b3a01a.entry.js +0 -4
  432. package/lib/duet/p-6e1b9cc8.entry.js +0 -4
  433. package/lib/duet/p-9172ba70.entry.js +0 -4
  434. package/lib/duet/p-BQVGvl4H.js +0 -4
  435. package/lib/duet/p-CLZq8YfV.js +0 -4
  436. package/lib/duet/p-D2JvSVnG.js +0 -4
  437. package/lib/duet/p-ELbbzMVZ.js +0 -4
  438. package/lib/duet/p-a3ad5622.entry.js +0 -4
  439. package/lib/duet/p-a73b7110.entry.js +0 -4
  440. package/lib/duet/p-b1d91a91.entry.js +0 -4
  441. package/lib/duet/p-b9be36c8.entry.js +0 -4
  442. package/lib/duet/p-bdae48d3.entry.js +0 -4
  443. package/lib/duet/p-bdf6a296.entry.js +0 -4
  444. package/lib/duet/p-c8d10c67.entry.js +0 -4
  445. package/lib/duet/p-ce4d9add.entry.js +0 -4
  446. package/lib/duet/p-da275568.entry.js +0 -4
  447. package/lib/duet/p-dc5682d8.entry.js +0 -4
  448. package/lib/duet/p-e050ed5c.entry.js +0 -4
  449. package/lib/duet/p-e9c2eb66.entry.js +0 -4
  450. package/lib/duet/p-ec5f40a5.entry.js +0 -4
  451. package/lib/duet/p-f68a4a23.entry.js +0 -4
  452. package/lib/duet/p-f8e26f21.entry.js +0 -4
@@ -37,11 +37,11 @@ export class DuetCallout {
37
37
  <path d="M6.6591 0.557547L9.2031 2.33355C7.0911 5.21355 6.1311 7.18155 5.8431 8.90955C7.4751 9.34155 8.7231 10.5415 8.7231 12.6535C8.7231 15.2935 6.9471 16.9255 4.6431 16.9255C2.0511 16.9255 0.227096 15.1975 0.227096 12.2695C0.227096 8.28555 2.3871 4.34955 6.6591 0.557547ZM17.9871 8.95755C19.6191 9.34155 20.8671 10.5415 20.8671 12.6535C20.8671 15.2935 19.1391 16.9255 16.8351 16.9255C14.2431 16.9255 12.4191 15.1975 12.4191 12.2695C12.4191 8.28555 14.5791 4.34955 18.8511 0.557547L21.3951 2.33355C19.2351 5.21355 18.3231 7.18155 17.9871 8.95755Z"/>
38
38
  </svg>
39
39
  `;
40
- return (h(Host, { key: 'c491469b698a73c9a411cf3f660770be81879bd7' }, h("div", { key: '4c7e1af2f3c229e617d04c0aaf1355bce04a2d6d', class: {
40
+ return (h(Host, { key: 'b082df5828c66c540240a355c2143bdc97cdeda2' }, h("div", { key: '318c40bc242a649eb1e74191703e77ef9f567dac', class: {
41
41
  "duet-callout": true,
42
42
  "duet-theme-turva": this.theme === "turva",
43
43
  "duet-m-0": this.margin === "none",
44
- } }, h("figure", { key: 'eb03690c450a0d767e18bffdbce24d83e3334e65', class: "container" }, h("duet-icon", { key: '1695f3f5c59f29b3497a9df3269e791bc19095a6', class: "callout-icon", shape: "brand-rotated", background: "primary-lighter", "background-opacity": "0.75", "background-rotation": this.theme === "turva" ? "0" : "7", color: "secondary", icon: icon, size: "auto", margin: "none", theme: this.theme }), h("blockquote", { key: '6297aefa621ef90e3cb100bcfd07c798cf9b378a' }, h("slot", { key: '14186875763fbf1989d9de9cb90706be15de8508' })), this.hasAuthorSlot && (h("figcaption", { key: 'c17e4fe83fb3c067c4c91369ee6d80a2a6abf3a8', class: "author" }, h("span", { key: 'fac4c2303e1ff78e28fd1538ab43d1b19e84610f' }, "\u2014 "), h("slot", { key: '648acac653c20369d7d52a5537c43175cb4dbd5d', name: "author" })))))));
44
+ } }, h("figure", { key: '4c7ff23d3c646e8e37452488aba5b9a28344625f', class: "container" }, h("duet-icon", { key: 'd5234359ce6513b20a552366603498b7dc5729f5', class: "callout-icon", shape: "brand-rotated", background: "primary-lighter", "background-opacity": "0.75", "background-rotation": this.theme === "turva" ? "0" : "7", color: "secondary", icon: icon, size: "auto", margin: "none", theme: this.theme }), h("blockquote", { key: '67ab9a0d89f6abff523b8ca16a20c2a67865b86a' }, h("slot", { key: 'fc4670a439f114411b42ce3dcd8ef7f365fa650c' })), this.hasAuthorSlot && (h("figcaption", { key: '9d1b92d3229bef3447e7b5590efc766d4efb2ad6', class: "author" }, h("span", { key: '5310ad556c87706338d0a75058107d2e4d1fe241' }, "\u2014 "), h("slot", { key: 'f7281f1633a536bd242831e952ca1bc240b98b1c', name: "author" })))))));
45
45
  }
46
46
  static get is() { return "duet-callout"; }
47
47
  static get encapsulation() { return "shadow"; }
@@ -89,7 +89,9 @@ export class DuetChip {
89
89
  radioInput.ariaDisabled = this.disabled ? "true" : undefined;
90
90
  radioInput.id = this.identifier || this.chipId;
91
91
  radioInput.type = "radio";
92
- radioInput.name = this.name;
92
+ if (radioInput.name !== this.name) {
93
+ radioInput.name = this.name;
94
+ }
93
95
  radioInput.value = this.value;
94
96
  radioInput.checked = this.checked;
95
97
  radioInput.ariaLabel = this.element.textContent;
@@ -201,16 +203,14 @@ export class DuetChip {
201
203
  }
202
204
  };
203
205
  /**
204
- * Stop propagation and prevent default if popup is present, as the popup controls value and checked state.
206
+ * Stop prevent default if popup is present, as the popup controls value and checked state.
205
207
  */
206
208
  this.onFilterClick = (evt) => {
207
209
  if (this.disabled) {
208
- evt.stopPropagation();
209
210
  evt.preventDefault();
210
211
  return;
211
212
  }
212
213
  if (this.popupElement) {
213
- evt.stopPropagation();
214
214
  evt.preventDefault();
215
215
  this.popupElement.toggle();
216
216
  }
@@ -219,7 +219,6 @@ export class DuetChip {
219
219
  * Remove input chip
220
220
  */
221
221
  this.onRemoveClick = (evt) => {
222
- evt === null || evt === void 0 ? void 0 : evt.stopPropagation();
223
222
  evt === null || evt === void 0 ? void 0 : evt.preventDefault();
224
223
  this.duetRemove.emit({
225
224
  originalEvent: evt,
@@ -332,7 +331,7 @@ export class DuetChip {
332
331
  onBlur: this.onBlur,
333
332
  ref: el => (this.focusableElement = el),
334
333
  };
335
- return (h(Host, { key: '767a15cc909e022208fcde5be228793bee3b6976', class: { [this.variation]: true } }, this.variation === "button" && (h("span", { key: 'c8825faa73dbdcdcb1205a23cda99d78a3260094', class: classes }, h("button", Object.assign({ key: 'e6da48743479479b5297d5d6ab907ff496d16ffc', id: identifier, "aria-label": this.accessibleLabel, "aria-haspopup": this.getAccessiblePopup(), "aria-expanded": this.getAccessibleExpanded(), "aria-disabled": this.disabled ? "true" : undefined, name: this.name, value: this.value, onClick: this.disabled ? evt => evt.stopPropagation() : undefined }, focusHandlers), h("span", { key: '96950c91e2d34903ddccd8e9db3af5d0768965cb', class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { key: '51549e09fbf833745b858e166b074a136afbdf74', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", { key: '9feae0579ee54a12770b88ec4f6c4ea1d19b9150' })))), this.variation === "input" && (h("span", { key: '6da4e282e09b8c5d597c889d7f213e40be19668d', class: classes, "aria-label": this.getAccessibleInputChipLabel() }, h("button", Object.assign({ key: '188896fb3724b4e136d4dae90ddfa19948c45417', id: identifier, class: "duet-chip-input-button", value: this.value, "aria-label": this.accessibleLabel, onMouseOver: () => (this.inputChipHover = true), onMouseOut: () => (this.inputChipHover = false), onClick: () => (this.selected = !this.selected) }, focusHandlers), h("span", { key: '55b16c4be2ba628ad94bc2dbb5115a52e6e06f14', class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { key: 'b290e850434af122fc074a33ad80e79284b63f04', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", { key: '85481330d91a6fda693bd86588333d8b721ea9d7' })), h("button", { key: '8eec4cb37be314a064f5638b0ed412d5c450fd83', class: "duet-chip-remove-button", "aria-label": this.getAccessibleDeleteLabel(), onClick: this.onRemoveClick, onFocus: () => (this.inputChipDeleteFocus = true), onBlur: () => (this.inputChipDeleteFocus = false), ref: el => (this.deleteButtonElement = el) }, h("duet-icon", { key: '8efbe50fabd85dd7599e4a3b304d06c023c5e150', name: "activity-close", size: "xx-small", margin: "none", color: "currentColor" })))), this.variation === "filter" && (h("span", { key: '789ab88639feff72321c139d23afab0ddcfeaca9', class: classes }, h("input", Object.assign({ key: '611a30eed4de5b7c4fd0153006db23f7ad16f797', "aria-haspopup": this.getAccessiblePopup(), "aria-controls": (_a = this.popupElement) === null || _a === void 0 ? void 0 : _a.id, "aria-expanded": this.getAccessibleExpanded(), "aria-disabled": this.disabled ? "true" : undefined, id: identifier, type: "checkbox", name: this.name, value: this.value, checked: this.checked, onClick: this.onFilterClick, onChange: this.onFilterChange }, focusHandlers)), h("label", { key: '574fa08ad87d0337be9d919367fca851ce1230fc', htmlFor: identifier }, this.icon && (h("span", { key: 'e1c2ccf10a2be64b8d7e17b244f7c0c618262160', class: "duet-chip-icon-container" }, h("duet-icon", { key: 'a91294fe02e8444302c3f75a94e90fddb9a3b0ca', name: this.icon, size: this.size === "large" ? "small" : "x-small", margin: "none", color: "currentColor" }), h("duet-icon", { key: '1f4eae14832b5ba6cd943ddd69a69841b4b4e494', name: "messaging-checked-small", size: this.size === "large" ? "x-small" : "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), h("slot", { key: '6685426d95bfccb9d349d357fdda0311af132d08' }), this.popupElement && (h("span", { key: '6736d4b0b1b32d092bb2896ae909812e2abaede9', class: "duet-chip-popup-disclosure" }, h("duet-icon", { key: '68f49f84e631f7fcb4010f0b748c380aea6c9fda', name: "action-arrow-down-small", size: this.size === "large" ? "xx-small" : "xxx-small", margin: "none", color: "currentColor" })))))), this.variation === "radio" && (h("span", { key: '8e95895e06e422064e64a037cb7fecc560614043', class: classes }, h("slot", { key: 'ef700ca570f14aa7306abf57a071bdf9f102abb3', name: "input" }), h("label", { key: '599aec04fc86a809f0e4d86cdde2c329c160ef7c', htmlFor: identifier }, this.icon && (h("span", { key: '9b138f1e3303ac8b6143756af5a371e2972925de', class: "duet-chip-icon-container" }, h("duet-icon", { key: '4b4fe62396483bcd44270c0a9e6fb592caf903b6', name: this.icon, size: this.size === "large" ? "small" : "x-small", margin: "none", color: "currentColor" }), h("duet-icon", { key: '53bad7860f10b420e15875726dbd423148785873', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), h("slot", { key: '9c2141abc5349eb9e4fa1ee8a93a99dffcefc829' }))))));
334
+ return (h(Host, { key: 'ebc8f8cba112ee9f682c22ba09f04b05968d4ba2', class: { [this.variation]: true } }, this.variation === "button" && (h("span", { key: '6bf0c0545a457d2917df074d7d263e12e07e3255', class: classes }, h("button", Object.assign({ key: '51780aa4be42824dd17784e59b17ff23cdca4ea1', id: identifier, "aria-label": this.accessibleLabel, "aria-haspopup": this.getAccessiblePopup(), "aria-expanded": this.getAccessibleExpanded(), "aria-disabled": this.disabled ? "true" : undefined, name: this.name, value: this.value, onClick: this.disabled ? evt => evt.stopPropagation() : undefined }, focusHandlers), h("span", { key: '52036fee728f26c3b21701d9ed870caf45e9295f', class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { key: '7ef322e3c74ca552fb91a03d1d4d7cbba4b325e3', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", { key: 'b781a521f1dc02c0c7b0792309d4fb730acc5c2d' })))), this.variation === "input" && (h("span", { key: 'c997bfd1f27de93629210b953c9788bdf754538f', class: classes, "aria-label": this.getAccessibleInputChipLabel() }, h("button", Object.assign({ key: 'c1ff3d503dda53884a42637460d048a27fe0d40e', id: identifier, class: "duet-chip-input-button", value: this.value, "aria-label": this.accessibleLabel, onMouseOver: () => (this.inputChipHover = true), onMouseOut: () => (this.inputChipHover = false), onClick: () => (this.selected = !this.selected) }, focusHandlers), h("span", { key: '73d0e2250e46b6bdd1ffd65f9879e7c9d90da448', class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { key: 'f5353d825977fb008fb2d71fe796a2c6f4720181', name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", { key: '2932e26e6266957b80953b2ce275d580466e47ba' })), h("button", { key: '248c016d99211ec7893a1cc74f7ecd268d44d343', class: "duet-chip-remove-button", "aria-label": this.getAccessibleDeleteLabel(), onClick: this.onRemoveClick, onFocus: () => (this.inputChipDeleteFocus = true), onBlur: () => (this.inputChipDeleteFocus = false), ref: el => (this.deleteButtonElement = el) }, h("duet-icon", { key: '6172cedf507d0e6f69ea39ce8fa6a4e21b714d11', name: "activity-close", size: "xx-small", margin: "none", color: "currentColor" })))), this.variation === "filter" && (h("span", { key: '8c7b88c4c077b7bd4afd0c7bdf36d01f9c9092ae', class: classes }, h("input", Object.assign({ key: 'b97c5cba016483f506521d00100f022160f48680', "aria-haspopup": this.getAccessiblePopup(), "aria-controls": (_a = this.popupElement) === null || _a === void 0 ? void 0 : _a.id, "aria-expanded": this.getAccessibleExpanded(), "aria-disabled": this.disabled ? "true" : undefined, id: identifier, type: "checkbox", name: this.name, value: this.value, checked: this.checked, onClick: this.onFilterClick, onChange: this.onFilterChange }, focusHandlers)), h("label", { key: 'cc082e72c8f2a782f4bfd44afc35daea973c6b08', htmlFor: identifier }, this.icon && (h("span", { key: 'a453948d4d0507fe5dbd080f573d83356f95f35c', class: "duet-chip-icon-container" }, h("duet-icon", { key: '4545c9c75f4ac311e19d9932328eb7e6d8318ac9', name: this.icon, size: this.size === "large" ? "small" : "x-small", margin: "none", color: "currentColor" }), h("duet-icon", { key: '2dd3e4bc69e6efd4138ba8b74a5fddf52394416f', name: "messaging-checked-small", size: this.size === "large" ? "x-small" : "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), h("slot", { key: '5367a32b3b34e7c67412bd0a0dfa9ace24636687' }), this.popupElement && (h("span", { key: 'edad2d024ba464eea661cd1990629633438b6ba0', class: "duet-chip-popup-disclosure" }, h("duet-icon", { key: 'aa76a07f9446fea95dc61660c92c5bee645f27d4', name: "action-arrow-down-small", size: this.size === "large" ? "xx-small" : "xxx-small", margin: "none", color: "currentColor" })))))), this.variation === "radio" && (h("span", { key: '97fe2aee42e9823b794acaeda3df724470c4c832', class: classes }, h("slot", { key: 'f820fe5d09ff67433693698dd9d60848535cab8a', name: "input" }), h("label", { key: '0953b3248cc1c8f6fa46f2684f7fc465bfd0a412', htmlFor: identifier }, this.icon && (h("span", { key: '25e66d3992af529de900ead65488bf64a4c12650', class: "duet-chip-icon-container" }, h("duet-icon", { key: '731d3562a51b7c231d8142c7b0ec8d95675439ab', name: this.icon, size: this.size === "large" ? "small" : "x-small", margin: "none", color: "currentColor" }), h("duet-icon", { key: '9b041e11ab55414369bcd45962c31263129fd5b6', name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" }))), h("slot", { key: '9a9dd5c4ba7e327a2df00f24bb272f61a4061d65' }))))));
336
335
  }
337
336
  static get is() { return "duet-chip"; }
338
337
  static get encapsulation() { return "shadow"; }
@@ -33,11 +33,11 @@ export class DuetCheckmark {
33
33
  inheritGlobalTheme(this);
34
34
  }
35
35
  render() {
36
- return (h(Host, { key: '9a2512992413ec797c17d55d2a41908cda0e6307', class: { "duet-theme-turva": this.theme === "turva" } }, h("div", { key: 'f95a151961586c89597dd2d31436deecc0cabf4d', role: this.presentationOnly ? "presentation" : null, class: { checked: this.checked } }, h("div", { key: '42f1b50012a17910a3c1d91bac31bfc370c73abf', class: {
36
+ return (h(Host, { key: '77d8d9cfa205def19022cd899ab98eb36007d2e2', class: { "duet-theme-turva": this.theme === "turva" } }, h("div", { key: 'b93b32d626ceca01d12390209e700eef8665fd8b', role: this.presentationOnly ? "presentation" : null, class: { checked: this.checked } }, h("div", { key: 'fa4d7323cf416248275604e05b261bc1f542ea6e', class: {
37
37
  "duet-checkmark-container": true,
38
38
  center: this.center,
39
39
  "duet-checkmark-radio": this.type === "radio",
40
- } }, this.checked && h("div", { key: 'ed62491f54edf398da1c22ae672683107b6aa8bc', class: "duet-checkmark" })))));
40
+ } }, this.checked && h("div", { key: 'd2a988ecdd6f5d41ce318365966515ff92c252c6', class: "duet-checkmark" })))));
41
41
  }
42
42
  static get is() { return "duet-checkmark"; }
43
43
  static get originalStyleUrls() {
@@ -176,7 +176,9 @@ export class DuetChoice {
176
176
  input.disabled = this.getDisabled();
177
177
  input.id = this.identifier || this.choiceId;
178
178
  input.type = this.type;
179
- input.name = this.name;
179
+ if (input.name !== this.name) {
180
+ input.name = this.name;
181
+ }
180
182
  input.value = this.value;
181
183
  input.checked = this.checked;
182
184
  input.required = this.required;
@@ -261,13 +263,13 @@ export class DuetChoice {
261
263
  * Local methods
262
264
  */
263
265
  this.toggleChecked = ev => {
266
+ // As label click by default toggles the input, but we handle
267
+ // toggling here, prevent default.
264
268
  ev.preventDefault();
265
- ev.stopPropagation();
266
269
  if (this.getDisabled()) {
267
270
  return;
268
271
  }
269
- // if it's a radio button, and it's already checked
270
- // we shouldn't fire an event, so exit early
272
+ // For a checked radio button do not toggle checkedness nor emit event.
271
273
  if (this.type === "radio" && this.checked) {
272
274
  return;
273
275
  }
@@ -422,7 +424,7 @@ export class DuetChoice {
422
424
  * Always the last one in the class.
423
425
  */
424
426
  render() {
425
- return (h(Host, { key: '20fca5910765c8cca647f5632a5b922957ab3295', class: {
427
+ return (h(Host, { key: '161ca837a384fd96fde8171eb0ee9a922f348740', class: {
426
428
  horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
427
429
  [`horizontal-responsive-${this.groupResponsive}`]: this.groupDirection === "horizontal" && !!this.groupResponsive,
428
430
  "vertical-stretch": this.groupDirection === "horizontal",
@@ -431,10 +433,10 @@ export class DuetChoice {
431
433
  "duet-theme-turva": this.theme === "turva",
432
434
  "no-hover": this.isHovering,
433
435
  disabled: this.getDisabled(),
434
- } }, h("div", { key: 'fd4d2187540b58f67ba2215fb1e92ae80e1bda59', class: {
436
+ } }, h("div", { key: '9b1f7f73d1e644294e06780f748a5b5c86f3c419', class: {
435
437
  "duet-choice-card-flextainer": true,
436
438
  "duet-theme-turva": this.theme === "turva",
437
- } }, h("div", { key: '767518376936e2ac6b0317ed2961c9832a9540f9', class: {
439
+ } }, h("div", { key: '5bd120316eff11e496393cc3d41401c7523d1fdc', class: {
438
440
  "duet-choice-card": true,
439
441
  "has-icon": !!this.icon,
440
442
  "has-info": this.hasInfo,
@@ -443,16 +445,16 @@ export class DuetChoice {
443
445
  collapsible: this.collapsible,
444
446
  "collapsible-force-expanded": this.collapsibleForceExpanded,
445
447
  "duet-p-0": this.padding === "none",
446
- } }, h("slot", { key: '3218ec3ce6232219942048b1dc4720e6544d5a8e', name: "choiceinput" }), h("label", { key: '43d66fc0a5fbe3dc91ba24b1b9a61bfe1565c9c4', class: {
448
+ } }, h("slot", { key: '25b753b3d13766c86e7c03e48ecde9ee345151c9', name: "choiceinput" }), h("label", { key: 'd113e5e6012cd5606552b6964c0f792b992483af', class: {
447
449
  "duet-choice-label": true,
448
450
  "has-before-text": this.hasBeforeText,
449
451
  checked: this.checked,
450
452
  focus: this.focus,
451
453
  disabled: this.getDisabled(),
452
- }, onClick: this.onClick }, this.hasBeforeText && h("slot", { key: '144d416819882f6ef4d1b7e8fc2de04e045e9e6f', name: "before-text" }), this.icon && (h("div", { key: 'adfb01ba2ba8dd118a9780ec2e01db2efa75c0ce', class: "duet-choice-card-icon" }, h("duet-icon", { key: 'abf48b519c4d60cc2ce9923eaf6a1830061a13a6', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), h("div", { key: 'ddccee835dbdc2c123fc51ec2ced2539515f5e07', class: "duet-choice-card-text" }, h("div", { key: '68c2770f71856d031a720d03242809bcae202624' }, this.hasLabel ? h("slot", { name: "label" }) : this.label), this.caption && (h("div", { key: '67a7ead271ee52570028c6f2ce64267c9b7e687d' }, h("duet-spacer", { key: 'eb726497b2e68a5ddc43486af8fa621e4a620dd0', size: "xx-small" }), h("duet-caption", { key: '7656a138b5d881f6aaa5ce978816d550d30debd4', margin: "none", selected: this.checked }, this.caption))), this.hasAdditional && (h("div", { key: 'ed0700c59f2e492ba38dd03f1157332ac5794003' }, h("duet-spacer", { key: 'e45435defc128599b911095c8d845a4b19b5085c', size: "xx-small" }), h("slot", { key: 'aff1622080409265769aad87862ad14e6f4e96a1', name: "additional" })))), h("div", { key: '01f506c4af993b10b3f651a4175a3f93288ffac4' }, h("div", { key: '9d328e36a1e61a1ebec8bc5bab0fdbce0ba03cc2', class: { "duet-checkmark-container": true, "duet-checkmark-radio": this.type === "radio" } }, this.checked && h("div", { key: 'ebad90b11052d439d9a9c3243fa32a621d770215', class: "duet-checkmark" }))))), this.hasInfo && !this.collapsible && (h("button", { key: 'a1d78aab1bd360876936e79ad1c8a00d534ad2d5', ref: button => (this.infoButtonEl = button), id: this.infoButtonId, class: {
454
+ }, onClick: this.onClick }, this.hasBeforeText && h("slot", { key: '1ab6a902a2a1e6ea5ab7e075a2318482cf0a1f75', name: "before-text" }), this.icon && (h("div", { key: '524b6f9260ab2e3bab12f933ad14e744b1401a12', class: "duet-choice-card-icon" }, h("duet-icon", { key: 'b969cf6e06ffaf643aa701c37d4541e36f4e16a8', margin: "none", size: "small", name: this.icon, color: "currentColor" }))), h("div", { key: '9cc50495673c27a7c6a5f3bdb14c609e6a4601f8', class: "duet-choice-card-text" }, h("div", { key: 'c87f5c7fbfcb824cd962b47f5b245b0d113cb04b' }, this.hasLabel ? h("slot", { name: "label" }) : this.label), this.caption && (h("div", { key: '8b325a22769d880383b1b3b24e531306b83bc082' }, h("duet-spacer", { key: '7d0b9e0b85d3ed5d5da0bcad6991d17ceb385587', size: "xx-small" }), h("duet-caption", { key: '3a3a799147caa313ca58a101dc47e5149c0c214f', margin: "none", selected: this.checked }, this.caption))), this.hasAdditional && (h("div", { key: 'ebea33b278a48a2d1277df23682aff24ffca5f93' }, h("duet-spacer", { key: 'c06cf1daace2056cfc11c90e2fdbe2e3d5a02281', size: "xx-small" }), h("slot", { key: '952ec73f80beb3dc70550cc7f294f3cc19466109', name: "additional" })))), h("div", { key: 'c011bec512f287c09ac07c7eb27351bdf035d95f' }, h("div", { key: 'df64779e16fd3eb7a476794b11516433f7d9cdce', class: { "duet-checkmark-container": true, "duet-checkmark-radio": this.type === "radio" } }, this.checked && h("div", { key: '94314b297dc613c45adaa647eeec06f93b01e325', class: "duet-checkmark" }))))), this.hasInfo && !this.collapsible && (h("button", { key: 'dd3fc995ac9ac436708557efc5319b7c081d76e8', ref: button => (this.infoButtonEl = button), id: this.infoButtonId, class: {
453
455
  "duet-choice-info-toggle": true,
454
456
  "duet-theme-turva": this.theme === "turva",
455
- }, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.toggleInfo, disabled: this.getDisabled(), "aria-expanded": this.isInfoOpen ? "true" : "false", "aria-label": `${this.infoLabel} ${this.label}`, "aria-controls": this.expandId, tabindex: this.type === "radio" && !this.checked ? "-1" : "0", type: "button", onKeyUp: e => this.handleEscape(e) }, h("div", { key: '8c394a1cc633e65e9f8c9162fbe4c361e37a15f6', class: "duet-choice-info-icon" }, h("duet-icon", { key: '52c25fe2a72346e9efde109af0736ec6673dfc0e', icon: infoIcon.svg, margin: "none", size: "small", color: "currentColor" }))))), this.collapsible && (h("span", { key: 'dda02c201e7874c64ed98b6b48e30f734bc8ecb8', id: `${this.choiceId}-collapsible-notification`, hidden: true }, this.collapsibleNotification)), this.collapsible || this.hasInfo ? (h("div", { class: this.getClassNames(), id: this.expandId }, h("span", { class: {
457
+ }, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, onClick: this.toggleInfo, disabled: this.getDisabled(), "aria-expanded": this.isInfoOpen ? "true" : "false", "aria-label": `${this.infoLabel} ${this.label}`, "aria-controls": this.expandId, tabindex: this.type === "radio" && !this.checked ? "-1" : "0", type: "button", onKeyUp: e => this.handleEscape(e) }, h("div", { key: 'a78097639b91f3c310e490e8cfc23040a7dfcb48', class: "duet-choice-info-icon" }, h("duet-icon", { key: 'a4a43850eb0cbbb171ff87b7834e135247d5f4c8', icon: infoIcon.svg, margin: "none", size: "small", color: "currentColor" }))))), this.collapsible && (h("span", { key: 'd081dffa05b32cd86475b5dcaed06d8d12af4b85', id: `${this.choiceId}-collapsible-notification`, hidden: true }, this.collapsibleNotification)), this.collapsible || this.hasInfo ? (h("div", { class: this.getClassNames(), id: this.expandId }, h("span", { class: {
456
458
  "duet-choice-section-visible": this.collapsible ? this.getExpanded() : this.isInfoOpen,
457
459
  "duet-choice-section-hidden": this.collapsible ? !this.getExpanded() : !this.isInfoOpen,
458
460
  } }, h("span", { id: this.headerId }, h("slot", { name: "header" })), this.hasInfo ? (h("span", { ref: span => (this.infoContainer = span), tabindex: "-1", class: "duet-choice-info-container", onKeyUp: e => this.handleEscape(e) }, h("span", null, h("slot", { name: "info" })), h("slot", null))) : (h("span", { id: `${this.choiceId}-collapsible-content` }, h("slot", null)))))) : null));
@@ -1316,32 +1318,3 @@ export class DuetChoice {
1316
1318
  }
1317
1319
  static get elementRef() { return "element"; }
1318
1320
  }
1319
- /*
1320
-
1321
- {this.type === "checkbox" && (
1322
- <input
1323
- class="duet-choice-input"
1324
- type={this.type}
1325
- onFocus={this.onFocus}
1326
- onBlur={this.onBlur}
1327
- onChange={this.onChange}
1328
- disabled={this.getDisabled()}
1329
- required={this.required}
1330
- id={identifier}
1331
- name={this.name}
1332
- value={this.value}
1333
- checked={this.checked}
1334
- aria-label={this.getLabel()}
1335
- aria-controls={this.accessibleControls}
1336
- aria-activedescendant={this.accessibleActiveDescendant}
1337
- aria-labelledby={this.accessibleLabelledBy}
1338
- aria-details={this.accessibleDetails}
1339
- aria-description={this.accessibleDescription}
1340
- aria-owns={this.accessibleOwns}
1341
- aria-describedby={this.getAriaDescribedby()}
1342
- onKeyDown={this.handleKeyDown}
1343
- ref={input => (this.focusableElement = input)}
1344
- ></input>
1345
- )}
1346
-
1347
- */
@@ -75,7 +75,7 @@ export class DuetChoiceGroup {
75
75
  if (mutationList.some(r => {
76
76
  var _a;
77
77
  return ((_a = r.removedNodes) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
78
- Array.from(r.removedNodes.values()).some(n => n.nodeName.toLowerCase() === "duet-choice");
78
+ Array.from(r.removedNodes.values()).some(n => n.nodeName.toLowerCase() === "duet-choice" && this.choices.has(n));
79
79
  })) {
80
80
  this.updateChoices();
81
81
  }
@@ -145,13 +145,11 @@ export class DuetChoiceGroup {
145
145
  async updateChoices() {
146
146
  var _a;
147
147
  const value = (_a = this.value) !== null && _a !== void 0 ? _a : this.initialValue;
148
+ const allChoices = Array.from(this.element.querySelectorAll("duet-choice"));
149
+ const ownChoices = allChoices.filter(choice => !allChoices.includes(choice.parentElement.closest("duet-choice")));
148
150
  let hasChecked = false;
149
151
  this.choices.clear();
150
- this.element.querySelectorAll("duet-choice").forEach((choice) => {
151
- if (choice.closest("duet-choice-group") === this.element) {
152
- this.choices.add(choice);
153
- }
154
- });
152
+ ownChoices.forEach(choice => this.choices.add(choice));
155
153
  // Walk the DOM in reverse order, since the last selected one wins
156
154
  for (const choice of Array.from(this.choices)) {
157
155
  choice.name = this.name;
@@ -183,14 +181,14 @@ export class DuetChoiceGroup {
183
181
  * Always the last one in the class.
184
182
  */
185
183
  render() {
186
- return (h(Host, { key: '76d5ad8cc7a9f59c9ab08932b3e6e6596ff1f9d0', onDuetChange: this.onSelect, onDuetChoiceReady: this.onChoiceReady, class: {
184
+ return (h(Host, { key: '94d0ad93557a1487328291dec3786b2a54809a33', onDuetChange: this.onSelect, onDuetChoiceReady: this.onChoiceReady, class: {
187
185
  horizontal: this.direction === "horizontal",
188
186
  "duet-choice-group-breakpoint-x-small": this.responsive && this.breakpoint === "x-small",
189
187
  "duet-choice-group-breakpoint-small": this.responsive && this.breakpoint === "small",
190
188
  "duet-choice-group-breakpoint-medium": this.responsive && this.breakpoint === "medium",
191
189
  "duet-choice-group-breakpoint-large": this.responsive && this.breakpoint === "large",
192
190
  "duet-choice-group-breakpoint-x-large": this.responsive && this.breakpoint === "x-large",
193
- } }, h("duet-fieldset", { key: 'ade69113f55cbcc86f0504f857ede704aa4c0075', label: this.label, labelHidden: this.labelHidden, compactLabel: true, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme, "accessible-live-error": this.accessibleLiveError }, this.tooltip && (h("duet-tooltip", { key: '388b1ccb2ac2ba51cb35dbe6f9f824183f0d3f0f', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: '104f30e94ea5413347edb6abc1975fcd9ae8ad6c', name: "tooltip", slot: "tooltip" }), h("div", { key: 'af118f2f9fef2e7c2a6aa8d242bdd0cb4001f328', class: { [this.choiceGroupName]: true, "duet-no-stacking": !this.responsive } }, h("slot", { key: 'ebb96354e1a32cb4821ad6700e0cdbe1087ee815' })))));
191
+ } }, h("duet-fieldset", { key: '21ef6afa85bf7d3dddc001aae2583adbd3dee304', label: this.label, labelHidden: this.labelHidden, compactLabel: true, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme, "accessible-live-error": this.accessibleLiveError }, this.tooltip && (h("duet-tooltip", { key: '5ff31a8282e6e7eace9d2bb035d325af2d073fea', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: '8e9b7d9abb95cd49f4bbc5fa9a694c2691a32c7d', name: "tooltip", slot: "tooltip" }), h("div", { key: 'be989adb0d4a5794d0132a3ee00979cf1bf79bd9', class: { [this.choiceGroupName]: true, "duet-no-stacking": !this.responsive } }, h("slot", { key: '725c965b94dd5e8555d9e2e450ac6d61e74cefb6' })))));
194
192
  }
195
193
  static get is() { return "duet-choice-group"; }
196
194
  static get encapsulation() { return "shadow"; }
@@ -20,6 +20,7 @@ export class DuetCombobox {
20
20
  this.activeDescendantId = createID("duet-combobox-active-descendant");
21
21
  this.isAndroidDevice = ((_b = (_a = navigator === null || navigator === void 0 ? void 0 : navigator.userAgent) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === null || _b === void 0 ? void 0 : _b.indexOf("android")) > -1 || null;
22
22
  this.isInsideModal = false;
23
+ this.labelClick = false;
23
24
  this.resizeObserver = new ResizeObserver(debounce(entries => {
24
25
  var _a, _b, _c;
25
26
  // otherwise, something is wrong, expecting 1 element only
@@ -104,8 +105,18 @@ export class DuetCombobox {
104
105
  const newValue = e.detail.value;
105
106
  this.inputValue = newValue;
106
107
  };
107
- this.onInputClick = () => {
108
- this.popupMenuController = this.input.nativeInputElement;
108
+ this.onInputClick = e => {
109
+ const composedPath = e.composedPath();
110
+ if (composedPath && composedPath[1].nodeName === "LABEL") {
111
+ this.labelClick = true;
112
+ this.listOpen = false;
113
+ return;
114
+ }
115
+ if (this.labelClick || (composedPath && composedPath[0].nodeName !== "INPUT")) {
116
+ this.labelClick = false;
117
+ this.listOpen = false;
118
+ return;
119
+ }
109
120
  // change listOpen on next tick so popup controller is set when open changes
110
121
  setTimeout(() => {
111
122
  var _a, _b;
@@ -183,7 +194,6 @@ export class DuetCombobox {
183
194
  return;
184
195
  }
185
196
  nextActiveItem = this.listOpen ? this.activeItem + 1 : this.activeItem;
186
- this.popupMenuController = this.input.nativeInputElement;
187
197
  // change listOpen on next tick so popup controller is set when open changes
188
198
  setTimeout(() => {
189
199
  this.listOpen = true;
@@ -356,7 +366,7 @@ export class DuetCombobox {
356
366
  this.input.chips = this.multiple;
357
367
  this.input.addEventListener("duetChange", this.onInputChange);
358
368
  this.input.addEventListener("duetInput", this.onInputTyping);
359
- this.input.addEventListener("click", this.onInputClick);
369
+ this.element.addEventListener("click", this.onInputClick);
360
370
  //add correct aria attributes to the input element
361
371
  this.input.role = "combobox";
362
372
  this.input.accessibleExpanded = this.listOpen ? "true" : "false";
@@ -366,13 +376,20 @@ export class DuetCombobox {
366
376
  this.element.addEventListener("keydown", this.onKeyDown);
367
377
  connectLanguageChangeObserver(this, { prop: "accessibleLabels", defaults: "accessibleLabelDefaults" });
368
378
  this.processListOpenChange();
379
+ setTimeout(() => {
380
+ var _a;
381
+ const nativeInputElement = (_a = this.input) === null || _a === void 0 ? void 0 : _a.nativeInputElement;
382
+ if (nativeInputElement && this.popupMenuController !== nativeInputElement) {
383
+ this.popupMenuController = nativeInputElement;
384
+ }
385
+ }, 100);
369
386
  }
370
387
  disconnectedCallback() {
371
388
  if (Build.isServer) {
372
389
  return;
373
390
  }
374
391
  this.input.removeEventListener("duetChange", this.onInputChange);
375
- this.input.removeEventListener("click", this.onInputClick);
392
+ this.element.removeEventListener("click", this.onInputClick);
376
393
  this.element.removeEventListener("keydown", this.onKeyDown);
377
394
  this.resizeObserver.disconnect();
378
395
  disconnectLanguageChangeObserver(this);
@@ -528,7 +545,6 @@ export class DuetCombobox {
528
545
  // Event handlers
529
546
  onListClick(e, item) {
530
547
  e.preventDefault();
531
- e.stopPropagation();
532
548
  // update selected item with id
533
549
  if (this.multiple) {
534
550
  this.addSelectedItem(item.id, true);
@@ -47,10 +47,10 @@ export class DuetContactCard {
47
47
  render() {
48
48
  const isTurva = this.theme === "turva";
49
49
  const theme = isTurva ? "turva" : "default";
50
- return (h(Host, { key: 'a08fac4daef7586a885d4556d27260feb027d4fb', class: { "duet-m-0": this.margin === "none" } }, h("div", { key: 'd70cc29e06be46210e3150661f16bcf19fab27b1', class: {
50
+ return (h(Host, { key: '6cf20cb225b22fbb826b136c3909234684d30e3d', class: { "duet-m-0": this.margin === "none" } }, h("div", { key: '24e57cbe34b4d01ff024fe8128d3168b61e61af6', class: {
51
51
  "duet-contact-card": true,
52
52
  "duet-theme-turva": this.theme === "turva",
53
- }, role: "group", "aria-label": this.name }, this.image ? h("img", { class: "image", src: this.image, alt: this.name }) : h("div", null), h("div", { key: '4cde139368ebb252e83638d0634671f2167b14a0' }, this.name && (h("duet-heading", { key: 'c91fe7f5ef066de893cfa2fb4018e9b17e5e66af', class: "name", level: "h3", margin: "none", theme: theme }, this.name)), this.description && (h("duet-paragraph", { key: '9ef8bdab5f11c125115cfa147428327131e6086a', class: "description", margin: "none", theme: theme }, this.description)), this.email && (h("div", { key: 'd07bbb21d8963247655a3b172e26c9f1becc2fd2', class: "email" }, h("duet-icon", { key: 'd25b13911b29302d0eabc8f715e13ff59b473c7f', name: "navigation-message", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: '2765a6cbc0fb671c3cb8a37d7ac2fe578f369cfe', url: `mailto:${this.email}`, accessibleLabel: `Email: ${this.email}`, theme: theme }, this.email))), this.phone && (h("div", { key: 'fcbed4d2a82ed0ee1e90665f5e42f10bfdcaf344', class: "phone" }, h("duet-icon", { key: '17233a8a4863c68255e207c23de3667437bd1177', name: "form-tel", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: '0a49811728ddfd13096701fe9d33c54722554107', url: `tel:${this.phone}`, accessibleLabel: `${this.phoneLabel[this.language]}: ${this.phone}`, theme: theme }, this.phone)))), this.buttonUrl && this.buttonText && (h("div", { key: 'eb199cf8f4f83cb7ebebbfb2e791c78b6424091e', class: "call-to-action" }, h("duet-button", { key: 'c8e0d2d72d5b15a74b0d7fd79a595c6ffddf6f7e', variation: "default", icon: this.buttonIcon, fixed: true, margin: "none", url: this.buttonUrl, theme: theme }, this.buttonText))), h("div", { key: '5e2f0915b883c85ad3bca3f54b62347af8250749' }), h("slot", { key: '388383ea2ca2a756a28d13bdbf521cd85094526a' }))));
53
+ }, role: "group", "aria-label": this.name }, this.image ? h("img", { class: "image", src: this.image, alt: this.name }) : h("div", null), h("div", { key: 'f3c40c440d2d9dd97e3c1e24817d60e62f6347f0' }, this.name && (h("duet-heading", { key: 'cde7a70f10cfdd45e801c9ef923e116b2ee12e42', class: "name", level: "h3", margin: "none", theme: theme }, this.name)), this.description && (h("duet-paragraph", { key: '1c855114d2101701a8b39f75fe8b2ae76d5ffe57', class: "description", margin: "none", theme: theme }, this.description)), this.email && (h("div", { key: 'b552b0f0de5e16059e77ee518e2087d24a2171c4', class: "email" }, h("duet-icon", { key: '2048a5cb8e29d7d664c984c72031cdfd1894e0a6', name: "navigation-message", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: '6e2a9b632e0fb1df3efd51dc66d6df1891eaa3a1', url: `mailto:${this.email}`, accessibleLabel: `Email: ${this.email}`, theme: theme }, this.email))), this.phone && (h("div", { key: '1a263f67d1844f9c2ba334ba24ebc32d9faf4b86', class: "phone" }, h("duet-icon", { key: 'dab3c18ed7f4c092aa8644ef6d9a915854c9e33d', name: "form-tel", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: '68c6b2ff4480300f563b7d8d65fb4d47160fcd8b', url: `tel:${this.phone}`, accessibleLabel: `${this.phoneLabel[this.language]}: ${this.phone}`, theme: theme }, this.phone)))), this.buttonUrl && this.buttonText && (h("div", { key: '70288a25480b39a333831a129def567c99f202b7', class: "call-to-action" }, h("duet-button", { key: 'c5fccd74b8b2b6b4917b464c5e723c657e326bb0', variation: "default", icon: this.buttonIcon, fixed: true, margin: "none", url: this.buttonUrl, theme: theme }, this.buttonText))), h("div", { key: '9fd8e574534d15aa89eaac786c257586a6f9f845' }), h("slot", { key: 'ab0fa1cc3232c70441d441e4c673b8b562ffbe92' }))));
54
54
  }
55
55
  static get is() { return "duet-contact-card"; }
56
56
  static get encapsulation() { return "shadow"; }
@@ -179,7 +179,6 @@
179
179
  pointer-events: none;
180
180
  cursor: not-allowed;
181
181
  background: rgb(245, 248, 250) !important;
182
- border: 0 !important;
183
182
  }
184
183
  .duet-date-button:disabled::before {
185
184
  display: none;
@@ -475,13 +475,13 @@ export class DuetDatePicker {
475
475
  if (maxDate) {
476
476
  maxYear = Math.min(maxYear, maxDate.getFullYear());
477
477
  }
478
- return (h(Host, { key: '5ebd34bf6ba1033b890138e5523f45fecd17eaf4', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, h("div", { key: '8c4b995485be3c6b070ce738f3416db0d9683771', class: "duet-date" }, h(DatePickerInput, { key: 'c0b308099cd5c56790a1160d10a682551ce9da7e', 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 })), h("div", { key: 'cca008327d5a939054a1b2abd748b08170b19a07', class: {
478
+ return (h(Host, { key: 'bc53156f31fd151a978be4cb494d89811177d2de', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, h("div", { key: 'bd85feeae1d997447181347f131cf0eaa309af93', class: "duet-date" }, 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 })), h("div", { key: 'c4575f4c809d00307b254756d1c00e5d65520b03', class: {
479
479
  "duet-theme-turva": this.theme === "turva",
480
480
  "duet-date-dialog": true,
481
481
  left: this.direction === "left",
482
482
  error: !!this.error,
483
483
  active: this.open,
484
- }, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, h("duet-overlay", { key: 'fcb2d3f3fd5333529c2ebc82590a6a543112a5f4', visible: this.open, "display-device": "x-small" }), h(FocusGuard, { key: '0de38fdb796337ec9448bcff1bb652776fdf6f60', moveFocusTo: this.focusedDayNode }), h("div", { key: '9950afbc58987e498e2e6734fd6af177c65d94a8', class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, h("duet-visually-hidden", { key: '2394f33f1efd2e0626b2a1bc3642a73193798b13', "aria-live": "polite" }, text.keyboardInstruction), h("div", { key: '74b68ad35d92ab0c2616be5466ea6b8b2c1a1451', class: "duet-date-dialog-mobile-header" }, h(DuetInternalLabel, { key: '7385d9ef814cf4557cf903f705b38a7571369d0f', margin: "none" }, this.label), h("button", { key: '5ba61af3c6b024f1f3ef531b412e5c20243d83ca', class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, h("duet-icon", { key: '14e320af49eb06c184cfe918a67f278bdac888bf', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), h("duet-visually-hidden", { key: 'b58668ebd6f0849ae6e8f0454800b4ceb916443e' }, text.closeLabel))), h("div", { key: '79a07d6373ca479f45808ff3eef1ea6239148b26', class: "duet-date-dialog-header" }, h("div", { key: '6f08a300db74dd1562c658334c8220fc1569228c', class: "duet-date-dialog-dropdowns" }, h("duet-visually-hidden", { key: '400b1451a2180e0a189a5c1e7c27139647ec5539' }, h("h2", { key: '47225d656584304da5b114f0430e17cb74a38e53', id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), h("duet-visually-hidden", { key: 'b66a24df41db7807ed3c0d3f36d380a897360fa6' }, h("label", { key: 'aae8cf780c5452e1399421e177309ad7a9179803', htmlFor: this.monthSelectId }, text.monthSelectLabel)), h("div", { key: 'f2bad2498489114a7bc0ffd6fc8c4f842b507e43', class: "duet-date-dialog-select" }, h("select", { key: '9d58e711523ace0781cc27947fb9ecc52bda8499', id: this.monthSelectId, class: "duet-date-month-select", ref: element => (this.monthSelectNode = element), onChange: this.handleMonthSelect }, text.monthLabels.map((month, i) => (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)))), h("div", { key: '914f0bef1d172d4d5391991fd9f8206f7d0576df', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", { key: '7aebf3e0cbc22a117a5e155e0dd4518189f9b946' }, text.monthLabelsShort[focusedMonth]), h("duet-icon", { key: 'faf140d4032093b37db295f06e23ea761fa27c65', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), h("duet-visually-hidden", { key: '66399d5d57f605fe4db9c13ee13bcf89f4d38efd' }, h("label", { key: '76256efb6db83d4165a903420b70e9a6d43a2e49', htmlFor: this.yearSelectId }, text.yearSelectLabel)), h("div", { key: 'e871aa90559d85cad33752f52a6e538571e6984f', class: "duet-date-dialog-select" }, h("select", { key: 'af2e90cb3d28123c36c83853753be30beff06400', id: this.yearSelectId, class: "duet-date-year-select", onChange: this.handleYearSelect }, range(minYear, maxYear).map(year => (h("option", { key: year, selected: year === focusedYear }, year)))), h("div", { key: 'a1487d1853c56fc62c20bf2b3df60cc73d666017', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", { key: 'ad43c7efa4a93e4417c2051e000fe0f786b35612' }, this.focusedDay.getFullYear()), h("duet-icon", { key: '5c42115e3dd7c4a48e5cae87b5f03ed274087ba5', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), h("div", { key: 'bc63edbea7a3b069774fc0b8766983f570479501', class: "duet-date-dialog-buttons" }, h("duet-action-button", { key: 'e3cb3ade86eeedbaf914d104ce9b638109708eb6', 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), h("duet-action-button", { key: '3d1b9df7ab5852d770d6c98285b73e002a9f4468', 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))), h(DatePickerMonth, { key: 'fb66dbdf2065a158a265490a6f7c0ace038919d5', 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 })), h(FocusGuard, { key: 'b40a59659930ae4a47fb6d8dd45f334e5fcdf026', moveFocusTo: this.closeButtonNode }))));
484
+ }, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, h("duet-overlay", { key: '73718663a16c1f4f18625a0e9b5e12c4d84e2862', visible: this.open, "display-device": "x-small" }), h(FocusGuard, { key: '55795dff1697ed625725a441813c2837b9180ca4', moveFocusTo: this.focusedDayNode }), h("div", { key: '4575c14cab6890c2ed93f14cc269495f4e6112c6', class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, h("duet-visually-hidden", { key: '64ec3d2f1809490ebfe3dd1e04bd332fd603010a', "aria-live": "polite" }, text.keyboardInstruction), h("div", { key: 'b5545e0104ad9a0bc9f99ff3a725752595a0ffa6', class: "duet-date-dialog-mobile-header" }, h(DuetInternalLabel, { key: '73d2c0aa481b994ce191816304e1867f461aa7d7', margin: "none" }, this.label), h("button", { key: 'c7483c8e743830ff8a21c2127897b43e45b57d8b', class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, h("duet-icon", { key: 'b2b8fd08895e8a5b0de42af39fb3e8b4810314e7', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), h("duet-visually-hidden", { key: '9238a95c2b5266055844e593ba8ab6349d9d033f' }, text.closeLabel))), h("div", { key: '3f68135c40899e3de9f9546ebdace84fbe831141', class: "duet-date-dialog-header" }, h("div", { key: '5cc6d3e6a2665e29091147f86fe44339af33327c', class: "duet-date-dialog-dropdowns" }, h("duet-visually-hidden", { key: '5bf35b2c9736d2d110344b92942f13be850d644b' }, h("h2", { key: '95391f17e2c907733fe1c3d567678d236e369fdc', id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), h("duet-visually-hidden", { key: 'a356aafd4ce51cf91cbc363297645efa79da42e3' }, h("label", { key: 'd806131d0e348f3743726e47daeb580baaec91a2', htmlFor: this.monthSelectId }, text.monthSelectLabel)), h("div", { key: '5e4a84de81c95b6c62dc03de1c805f472377805c', class: "duet-date-dialog-select" }, 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) => (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)))), h("div", { key: '8bf72353d282a2c82f0e64e1a752a17dbcd6423b', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", { key: '1b9a7f95c0007b30117782c962311c54244228a3' }, text.monthLabelsShort[focusedMonth]), h("duet-icon", { key: 'a234a84604cb1f87ee8c382b7d886e00a13cd913', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), h("duet-visually-hidden", { key: 'f41e59ff6c32248ea057f4547ef6bf24688423e1' }, h("label", { key: '10ea1d3b43b673950054ad36abe59688971843d0', htmlFor: this.yearSelectId }, text.yearSelectLabel)), h("div", { key: 'b7cd16b90fb5126189de4648b99c6634c15bc5a2', class: "duet-date-dialog-select" }, h("select", { key: '852475517a751519016dcc2c14023b9f1850b0d9', id: this.yearSelectId, class: "duet-date-year-select", onChange: this.handleYearSelect }, range(minYear, maxYear).map(year => (h("option", { key: year, selected: year === focusedYear }, year)))), h("div", { key: '426ab30bd0268b659253d8b9dcd375b7da1952dd', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", { key: '55b9cc0f5e60cd6ad666e58c2724865216d1c635' }, this.focusedDay.getFullYear()), h("duet-icon", { key: 'b28ab73ebb1ca7fac93ee3c52d696fa65f2bef29', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), h("div", { key: 'eee0f191f6b409674d0ef2b7383d6ab45c316d7c', class: "duet-date-dialog-buttons" }, 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), 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))), 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 })), h(FocusGuard, { key: '9727a0dab133694bd4b2ef008adec00439040b8b', moveFocusTo: this.closeButtonNode }))));
485
485
  }
486
486
  static get is() { return "duet-date-picker"; }
487
487
  static get encapsulation() { return "shadow"; }
@@ -1299,6 +1299,9 @@ export class DuetDatePicker {
1299
1299
  }, {
1300
1300
  "propName": "required",
1301
1301
  "methodName": "updateValidity"
1302
+ }, {
1303
+ "propName": "inputValue",
1304
+ "methodName": "updateValidity"
1302
1305
  }, {
1303
1306
  "propName": "value",
1304
1307
  "methodName": "updateInternalValue"
@@ -32,7 +32,7 @@ export class DuetDivider {
32
32
  */
33
33
  render() {
34
34
  const background = getColorByName(this.color);
35
- return (h("div", { key: 'a833c22a31c93caea94753696848ad720b5dc06d', class: {
35
+ return (h("div", { key: 'cfe1692393e236239489a12b1348ee3ceacbd6e8', class: {
36
36
  "duet-m-0": this.margin === "none",
37
37
  "duet-m-s": this.margin === "small",
38
38
  "duet-divider": true,
@@ -206,7 +206,7 @@ export class DuetEditableTable {
206
206
  * Render Methods
207
207
  */
208
208
  render() {
209
- return (h(Host, { key: 'a0c3202194fcc3910b50193f2a4fcb3bd7d3a5d8', class: {
209
+ return (h(Host, { key: 'e8047048590b1dfac635e5a94a46fb1d61e4030b', class: {
210
210
  [`duet-editable-table-${this.variation}`]: true,
211
211
  "duet-editable-table": true,
212
212
  [`duet-editable-table-${this.theme}`]: true,
@@ -216,7 +216,7 @@ export class DuetEditableTable {
216
216
  "duet-editable-table-actions": !!this.actions,
217
217
  "duet-m-0": this.margin === "none",
218
218
  "duet-theme-turva": this.theme === "turva",
219
- } }, h("duet-table", { key: '6e53631c212527e8702f9e9c8a1b9bc2b390c830', class: "duet-editable-table-table", sticky: this.sticky, stickyDistance: this.stickyDistance, margin: this.margin, theme: this.theme, variation: this.variation, breakpoint: this.breakpoint, "hide-head-visually": this.hideHeadVisually }, h("table", { key: '990481c1affeb11d6a6541a36a8f0118c961915c', role: this.accessibleRole }, h("caption", { key: 'f7b1bc44ab9fef0194485fdd6e49e11a306e365c' }, h("slot", { key: '2caecec6e5c024bdde6fa6bf72917914e2626752', name: "tcaption" })), h("thead", { key: 'c892dcd586814dcecddc46fbaf0319b04b6d9f16' }, this.hasHeadSlotFirst && (h("tr", { key: 'bfbac21dbab8afab7f34e952bd5803954be4991d' }, h("td", { key: '0a491ed1c4855d55b4dbc493a52029d657a08cc5', class: "duet-editable-table-actions-menu", colSpan: 99 }, h("slot", { key: '87c033e72a1bd3b87a51a4981b1b4939de66578d', name: "thead-first" })))), this.renderTableHeader(), this.hasHeadSlotLast && (h("tr", { key: '2ab66f9b14fe592f7ee7e6293cdd56b3aed0190e' }, h("td", { key: 'edb3ae066371b6f5dc990f10f088246c0d9388d9', class: "duet-editable-table-actions-menu", colSpan: 99 }, h("slot", { key: 'f57ebf07ee01c40cb47469b2fa07a706c4724dae', name: "thead-last" }))))), h("tbody", { key: '538b2de606132fcb272e5af1650cafb947fc5b2a' }, this.renderTableBody()), this.hasFootSlot && (h("tfoot", { key: '2f1a98dd550705933222f7179bc3ff4d6554d117' }, h("tr", { key: 'ecb9667d57ea85de7efa6fa0035fbfbb16c78a9e' }, h("td", { key: 'c78b25495de0621c55f70cce5131b1d192fc5e0e', class: "duet-editable-table-footer-menu", colSpan: 99 }, h("slot", { key: 'ed051b0e66c28fdbee565b33c1c394034a817a82', name: "tfoot" })))))))));
219
+ } }, h("duet-table", { key: 'abcb5c0dc22830d840bbf18144e66605207849d0', class: "duet-editable-table-table", sticky: this.sticky, stickyDistance: this.stickyDistance, margin: this.margin, theme: this.theme, variation: this.variation, breakpoint: this.breakpoint, "hide-head-visually": this.hideHeadVisually }, h("table", { key: '269ab86ebe745cfcf2e208e174e0914ea7b4fed8', role: this.accessibleRole }, h("caption", { key: '2753e748db0c5264c994a41b002e52a5641d2971' }, h("slot", { key: '567de210690137ae00e2ad40e2e2c1e1c733f3d7', name: "tcaption" })), h("thead", { key: 'ea6b829d344cd19619f667d75304614cbf60cc9d' }, this.hasHeadSlotFirst && (h("tr", { key: '84c66d116690df93737670dbbd0fc2b0e5c9f80b' }, h("td", { key: '3ab4954300f48b65cdc48f612045ef4296f3561d', class: "duet-editable-table-actions-menu", colSpan: 99 }, h("slot", { key: '9f32c90606e46036a34ca037bdfd61d4eae70fb2', name: "thead-first" })))), this.renderTableHeader(), this.hasHeadSlotLast && (h("tr", { key: '8be7b6223bd2ba7109db839efde2baab0f04c40f' }, h("td", { key: '1d6b0626d4b9dfdedc24f1118b53558e3ad80a54', class: "duet-editable-table-actions-menu", colSpan: 99 }, h("slot", { key: '247e4a043cc716d504a4827c415a3d73e8285046', name: "thead-last" }))))), h("tbody", { key: '778fd5a880190cffa0f9649b37839b2a0abedbe5' }, this.renderTableBody()), this.hasFootSlot && (h("tfoot", { key: '8c5e4045377ec3547c5005836f389cac2221dc62' }, h("tr", { key: '71959adb135cbcd6b7e19c9c9d4dcd3e799e8720' }, h("td", { key: 'ff1dc8216a9c918c1d9dec4aaf77454fd728a9ff', class: "duet-editable-table-footer-menu", colSpan: 99 }, h("slot", { key: '450238c070a9f72a326737a26b1f6ede2f9606d2', name: "tfoot" })))))))));
220
220
  }
221
221
  static get is() { return "duet-editable-table"; }
222
222
  static get encapsulation() { return "shadow"; }
@@ -40,10 +40,63 @@
40
40
  color: rgb(8, 42, 77);
41
41
  text-align: center;
42
42
  background: rgb(245, 248, 250);
43
- border-radius: 4px;
43
+ border-radius: 12px;
44
+ }
45
+ .duet-empty-state.padding-small {
46
+ padding: 36px;
47
+ }
48
+ .duet-empty-state.padding-large {
49
+ padding: 72px;
50
+ }
51
+ .duet-empty-state.warning {
52
+ background: rgb(255, 247, 221);
53
+ }
54
+ .duet-empty-state.duet-no-background {
55
+ background: none;
56
+ }
57
+ .duet-empty-state > div {
58
+ max-width: 800px;
59
+ margin: auto;
60
+ }
61
+ .duet-empty-state .duet-empty-state-heading {
62
+ font-size: 4vw;
63
+ font-family: "localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
64
+ font-style: normal;
65
+ font-weight: 600;
66
+ line-height: 1.25;
67
+ color: rgb(8, 42, 77);
68
+ letter-spacing: 0;
69
+ }
70
+ @media (max-width: 27.5rem) {
71
+ .duet-empty-state .duet-empty-state-heading {
72
+ font-size: 1.1rem;
73
+ }
74
+ }
75
+ @media (min-width: 28.4090909091rem) {
76
+ .duet-empty-state .duet-empty-state-heading {
77
+ font-size: 1.1363636364rem;
78
+ }
79
+ }
80
+ @container (width < 576px) {
81
+ .duet-empty-state {
82
+ padding: 36px;
83
+ }
84
+ .duet-empty-state.padding-small {
85
+ padding: 28px;
86
+ }
87
+ .duet-empty-state.padding-large {
88
+ padding: 48px;
89
+ }
44
90
  }
45
91
 
46
- .duet-empty-state.duet-theme-turva {
92
+ .duet-theme-turva.duet-empty-state {
47
93
  color: rgb(23, 42, 59);
94
+ }
95
+ .duet-theme-turva.duet-empty-state:not(.warning):not(.duet-no-background) {
48
96
  background: rgb(245, 246, 247);
97
+ }
98
+ .duet-theme-turva.duet-empty-state .duet-empty-state-heading {
99
+ font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
100
+ font-weight: 700;
101
+ color: rgb(23, 42, 59);
49
102
  }