@duetds/components 10.0.0-alpha.21 → 10.0.0-alpha.22

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 (531) hide show
  1. package/hydrate/index.js +687 -352
  2. package/hydrate/index.mjs +687 -352
  3. package/lib/cjs/{a11y-utils-qqRC-Gci.js → a11y-utils-DrU-H4zQ.js} +1 -1
  4. package/lib/cjs/{app-globals-B6AFACoz.js → app-globals-D7ZqN2ux.js} +1 -1
  5. package/lib/cjs/{common-strings-BhhnIQp3.js → common-strings-DQ3xONmA.js} +6 -0
  6. package/lib/cjs/duet-action-button.cjs.entry.js +4 -4
  7. package/lib/cjs/duet-alert.cjs.entry.js +32 -9
  8. package/lib/cjs/duet-badge.cjs.entry.js +5 -5
  9. package/lib/cjs/duet-banner.cjs.entry.js +5 -5
  10. package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
  11. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +6 -6
  12. package/lib/cjs/duet-button_2.cjs.entry.js +14 -16
  13. package/lib/cjs/duet-callout.cjs.entry.js +6 -6
  14. package/lib/cjs/duet-caption_4.cjs.entry.js +21 -18
  15. package/lib/cjs/duet-card.cjs.entry.js +7 -7
  16. package/lib/cjs/duet-checkbox.cjs.entry.js +5 -5
  17. package/lib/cjs/duet-checkmark.cjs.entry.js +5 -5
  18. package/lib/cjs/duet-chip.cjs.entry.js +13 -6
  19. package/lib/cjs/duet-choice_2.cjs.entry.js +22 -16
  20. package/lib/cjs/duet-collapsible.cjs.entry.js +6 -6
  21. package/lib/cjs/duet-combobox.cjs.entry.js +5 -5
  22. package/lib/cjs/duet-contact-card.cjs.entry.js +6 -6
  23. package/lib/cjs/duet-cookie-consent.cjs.entry.js +4 -4
  24. package/lib/cjs/duet-date-picker.cjs.entry.js +9 -9
  25. package/lib/cjs/duet-divider_2.cjs.entry.js +5 -5
  26. package/lib/cjs/duet-editable-table_3.cjs.entry.js +70 -10
  27. package/lib/cjs/duet-empty-state.cjs.entry.js +5 -5
  28. package/lib/cjs/duet-fieldset.cjs.entry.js +7 -7
  29. package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
  30. package/lib/cjs/duet-footer.cjs.entry.js +10 -10
  31. package/lib/cjs/duet-grid_2.cjs.entry.js +38 -9
  32. package/lib/cjs/duet-header_2.cjs.entry.js +6 -6
  33. package/lib/cjs/duet-hero.cjs.entry.js +37 -11
  34. package/lib/cjs/duet-icon.cjs.entry.js +6 -6
  35. package/lib/cjs/duet-input_2.cjs.entry.js +14 -13
  36. package/lib/cjs/duet-layout.cjs.entry.js +7 -7
  37. package/lib/cjs/duet-list_2.cjs.entry.js +15 -6
  38. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +5 -5
  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 +9 -9
  42. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +5 -5
  43. package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
  44. package/lib/cjs/duet-modal.cjs.entry.js +13 -13
  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 +7 -7
  49. package/lib/cjs/duet-overlay.cjs.entry.js +4 -4
  50. package/lib/cjs/duet-page-heading.cjs.entry.js +5 -5
  51. package/lib/cjs/duet-pagination_2.cjs.entry.js +18 -18
  52. package/lib/cjs/duet-phone-input.cjs.entry.js +17 -15
  53. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +41 -13
  54. package/lib/cjs/duet-progress.cjs.entry.js +4 -4
  55. package/lib/cjs/duet-promo-card.cjs.entry.js +5 -5
  56. package/lib/cjs/duet-radio_2.cjs.entry.js +15 -9
  57. package/lib/cjs/duet-range-slider.cjs.entry.js +7 -7
  58. package/lib/cjs/duet-scrollable_3.cjs.entry.js +17 -17
  59. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  60. package/lib/cjs/duet-select.cjs.entry.js +10 -10
  61. package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
  62. package/lib/cjs/duet-share-chart-item.cjs.entry.js +22 -0
  63. package/lib/cjs/duet-share-chart.cjs.entry.js +85 -0
  64. package/lib/cjs/duet-show-more.cjs.entry.js +6 -6
  65. package/lib/cjs/duet-slideout-lang.cjs.entry.js +5 -5
  66. package/lib/cjs/duet-slideout-link.cjs.entry.js +9 -9
  67. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +7 -7
  68. package/lib/cjs/duet-slideout-panel.cjs.entry.js +12 -12
  69. package/lib/cjs/duet-slideout.cjs.entry.js +10 -10
  70. package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
  71. package/lib/cjs/duet-step_2.cjs.entry.js +22 -8
  72. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +5 -5
  73. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
  74. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +8 -8
  75. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +4 -4
  76. package/lib/cjs/duet-submenu-bar.cjs.entry.js +8 -8
  77. package/lib/cjs/duet-textarea.cjs.entry.js +10 -10
  78. package/lib/cjs/duet-toggle.cjs.entry.js +7 -7
  79. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +5 -5
  80. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +7 -7
  81. package/lib/cjs/duet-toolbar-item.cjs.entry.js +10 -10
  82. package/lib/cjs/duet-toolbar-link.cjs.entry.js +5 -5
  83. package/lib/cjs/duet-toolbar.cjs.entry.js +5 -5
  84. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +10 -10
  85. package/lib/cjs/duet-tooltip.cjs.entry.js +4 -4
  86. package/lib/cjs/duet-tray.cjs.entry.js +6 -6
  87. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  88. package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
  89. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  90. package/lib/cjs/duet.cjs.js +3 -3
  91. package/lib/cjs/{errorcodes.utils-CWkNAdwZ.js → errorcodes.utils-BCVCTW73.js} +1 -1
  92. package/lib/cjs/{focus-utils-C1gNgKW5.js → focus-utils-B_auBCmH.js} +1 -1
  93. package/lib/cjs/{index-C-4fRZp1.js → index-DzIZlfK0.js} +9 -1
  94. package/lib/cjs/{label-BYZNaLK_.js → label-yz2T8WXb.js} +1 -1
  95. package/lib/cjs/{language-utils-DjPkoVoW.js → language-utils-KOz2utYq.js} +9 -1
  96. package/lib/cjs/loader.cjs.js +3 -3
  97. package/lib/cjs/{slot-utils-DYGV7vRF.js → slot-utils-DO9r1K5y.js} +1 -1
  98. package/lib/cjs/themeable-component-CwVP03Xh.js +23 -0
  99. package/lib/collection/collection-manifest.json +2 -0
  100. package/lib/collection/common/themeable-component.js +11 -3
  101. package/lib/collection/common-strings.js +5 -0
  102. package/lib/collection/components/duet-action-button/duet-action-button.css +15 -0
  103. package/lib/collection/components/duet-alert/duet-alert.js +28 -5
  104. package/lib/collection/components/duet-badge/duet-badge.css +12 -0
  105. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  106. package/lib/collection/components/duet-banner/duet-banner.js +2 -2
  107. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  108. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +11 -0
  109. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  110. package/lib/collection/components/duet-button/duet-button.css +61 -0
  111. package/lib/collection/components/duet-button/duet-button.js +5 -8
  112. package/lib/collection/components/duet-callout/duet-callout.css +5 -0
  113. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  114. package/lib/collection/components/duet-caption/duet-caption.css +4 -0
  115. package/lib/collection/components/duet-caption/duet-caption.js +2 -2
  116. package/lib/collection/components/duet-card/duet-card.css +13 -0
  117. package/lib/collection/components/duet-card/duet-card.js +3 -3
  118. package/lib/collection/components/duet-checkbox/duet-checkbox.css +11 -0
  119. package/lib/collection/components/duet-checkbox/duet-checkbox.js +2 -2
  120. package/lib/collection/components/duet-chip/duet-chip.css +25 -0
  121. package/lib/collection/components/duet-chip/duet-chip.js +10 -1
  122. package/lib/collection/components/duet-choice/duet-checkmark.css +4 -0
  123. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  124. package/lib/collection/components/duet-choice/duet-choice.css +51 -0
  125. package/lib/collection/components/duet-choice/duet-choice.js +7 -7
  126. package/lib/collection/components/duet-choice-group/duet-choice-group.js +11 -2
  127. package/lib/collection/components/duet-collapsible/duet-collapsible.css +8 -0
  128. package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -2
  129. package/lib/collection/components/duet-combobox/duet-combobox.css +7 -0
  130. package/lib/collection/components/duet-contact-card/duet-contact-card.css +4 -0
  131. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  132. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.css +9 -0
  133. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  134. package/lib/collection/components/duet-date-picker/duet-date-picker.css +37 -1
  135. package/lib/collection/components/duet-date-picker/duet-date-picker.js +2 -2
  136. package/lib/collection/components/duet-divider/duet-divider.css +4 -2
  137. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  138. package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -2
  139. package/lib/collection/components/duet-empty-state/duet-empty-state.css +4 -0
  140. package/lib/collection/components/duet-empty-state/duet-empty-state.js +2 -2
  141. package/lib/collection/components/duet-fieldset/duet-fieldset.css +4 -0
  142. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  143. package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
  144. package/lib/collection/components/duet-footer/duet-footer.css +15 -0
  145. package/lib/collection/components/duet-footer/duet-footer.js +4 -4
  146. package/lib/collection/components/duet-grid/duet-grid.js +33 -4
  147. package/lib/collection/components/duet-grid-item/duet-grid-item.css +4 -0
  148. package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
  149. package/lib/collection/components/duet-header/duet-header.css +69 -0
  150. package/lib/collection/components/duet-heading/duet-heading.css +4 -0
  151. package/lib/collection/components/duet-heading/duet-heading.js +2 -2
  152. package/lib/collection/components/duet-hero/duet-hero.css +17 -0
  153. package/lib/collection/components/duet-hero/duet-hero.js +32 -6
  154. package/lib/collection/components/duet-icon/duet-icon.css +7 -0
  155. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  156. package/lib/collection/components/duet-input/duet-input.css +61 -0
  157. package/lib/collection/components/duet-input/duet-input.js +7 -6
  158. package/lib/collection/components/duet-label/duet-label.css +4 -0
  159. package/lib/collection/components/duet-layout/duet-layout.js +5 -5
  160. package/lib/collection/components/duet-link/duet-link.css +74 -0
  161. package/lib/collection/components/duet-link/duet-link.js +10 -3
  162. package/lib/collection/components/duet-list/duet-list.js +1 -1
  163. package/lib/collection/components/duet-list-item/duet-list-item.css +20 -0
  164. package/lib/collection/components/duet-list-item/duet-list-item.js +38 -2
  165. package/lib/collection/components/duet-logo/duet-logo.js +1 -1
  166. package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +7 -0
  167. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +2 -2
  168. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +6 -0
  169. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  170. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +13 -0
  171. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  172. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +7 -0
  173. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  174. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.css +15 -0
  175. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  176. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +12 -0
  177. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  178. package/lib/collection/components/duet-modal/duet-modal.css +10 -2
  179. package/lib/collection/components/duet-modal/duet-modal.js +6 -6
  180. package/lib/collection/components/duet-multiselect/duet-multiselect.css +30 -0
  181. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  182. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  183. package/lib/collection/components/duet-notification/duet-notification.css +16 -0
  184. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  185. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +12 -0
  186. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +2 -2
  187. package/lib/collection/components/duet-number-input/duet-number-input.css +7 -0
  188. package/lib/collection/components/duet-number-input/duet-number-input.js +2 -2
  189. package/lib/collection/components/duet-overlay/duet-overlay.css +4 -0
  190. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  191. package/lib/collection/components/duet-page-heading/duet-page-heading.css +27 -11
  192. package/lib/collection/components/duet-page-heading/duet-page-heading.js +2 -2
  193. package/lib/collection/components/duet-pagination/duet-pagination.css +4 -0
  194. package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
  195. package/lib/collection/components/duet-paragraph/duet-paragraph.css +7 -0
  196. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  197. package/lib/collection/components/duet-phone-input/duet-phone-input.js +13 -11
  198. package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +8 -0
  199. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +30 -5
  200. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +10 -0
  201. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +5 -2
  202. package/lib/collection/components/duet-progress/duet-progress.css +19 -0
  203. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  204. package/lib/collection/components/duet-radio/duet-radio.css +20 -0
  205. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  206. package/lib/collection/components/duet-radio-group/duet-radio-group.js +10 -1
  207. package/lib/collection/components/duet-range-slider/duet-range-slider.css +40 -0
  208. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  209. package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +4 -0
  210. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  211. package/lib/collection/components/duet-scrollable/duet-scrollable.css +7 -0
  212. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  213. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  214. package/lib/collection/components/duet-select/duet-select.css +33 -0
  215. package/lib/collection/components/duet-select/duet-select.js +5 -5
  216. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  217. package/lib/collection/components/duet-share-chart/duet-share-chart.css +82 -0
  218. package/lib/collection/components/duet-share-chart/duet-share-chart.js +142 -0
  219. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +67 -0
  220. package/lib/collection/components/duet-show-more/duet-show-more.css +4 -0
  221. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  222. package/lib/collection/components/duet-slideout/duet-slideout.css +28 -0
  223. package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
  224. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.css +4 -0
  225. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  226. package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +10 -0
  227. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  228. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +20 -0
  229. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  230. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +13 -0
  231. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  232. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  233. package/lib/collection/components/duet-spinner/duet-spinner.css +3 -0
  234. package/lib/collection/components/duet-spinner/duet-spinner.js +3 -5
  235. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  236. package/lib/collection/components/duet-step/duet-step.css +13 -0
  237. package/lib/collection/components/duet-step/duet-step.js +2 -2
  238. package/lib/collection/components/duet-stepper/duet-stepper.js +24 -6
  239. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +14 -0
  240. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  241. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +31 -0
  242. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  243. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +18 -0
  244. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  245. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.css +20 -0
  246. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  247. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +22 -0
  248. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  249. package/lib/collection/components/duet-tab/duet-tab.js +2 -2
  250. package/lib/collection/components/duet-tab-group/duet-tab-group.css +31 -0
  251. package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
  252. package/lib/collection/components/duet-table/duet-table-styles.js +60 -0
  253. package/lib/collection/components/duet-table/duet-table.js +2 -2
  254. package/lib/collection/components/duet-textarea/duet-textarea.css +29 -0
  255. package/lib/collection/components/duet-textarea/duet-textarea.js +5 -5
  256. package/lib/collection/components/duet-toggle/duet-toggle.css +11 -0
  257. package/lib/collection/components/duet-toggle/duet-toggle.js +2 -2
  258. package/lib/collection/components/duet-toolbar/duet-toolbar.css +7 -0
  259. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  260. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +21 -0
  261. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  262. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +10 -0
  263. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  264. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.css +25 -0
  265. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  266. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +24 -0
  267. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  268. package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +7 -0
  269. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
  270. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +25 -0
  271. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +2 -2
  272. package/lib/collection/components/duet-tray/duet-tray.css +12 -0
  273. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  274. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  275. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  276. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  277. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  278. package/lib/collection/utils/language-utils.js +7 -0
  279. package/lib/duet/duet.esm.js +1 -1
  280. package/lib/duet/{p-fde72aa3.entry.js → p-021ca010.entry.js} +1 -1
  281. package/lib/duet/p-11a0b4b1.entry.js +4 -0
  282. package/lib/duet/p-1289085f.entry.js +4 -0
  283. package/lib/duet/{p-547e30c3.entry.js → p-128fac38.entry.js} +1 -1
  284. package/lib/duet/{p-2df8b608.entry.js → p-15aeca04.entry.js} +1 -1
  285. package/lib/duet/p-16e1210a.entry.js +4 -0
  286. package/lib/duet/p-19163909.entry.js +4 -0
  287. package/lib/duet/p-1a79adf4.entry.js +4 -0
  288. package/lib/duet/p-1cb5a9ef.entry.js +4 -0
  289. package/lib/duet/p-2100f112.entry.js +4 -0
  290. package/lib/duet/p-249e9a88.entry.js +4 -0
  291. package/lib/duet/{p-5964d490.entry.js → p-2ae3f776.entry.js} +1 -1
  292. package/lib/duet/p-2f60185b.entry.js +4 -0
  293. package/lib/duet/{p-9f48a30c.entry.js → p-306c2a29.entry.js} +1 -1
  294. package/lib/duet/{p-d064dd2d.entry.js → p-3569fb01.entry.js} +1 -1
  295. package/lib/duet/{p-294adde1.entry.js → p-38440fec.entry.js} +1 -1
  296. package/lib/duet/{p-e0fcc26a.entry.js → p-3d998041.entry.js} +1 -1
  297. package/lib/duet/{p-d74bb3b4.entry.js → p-3ea1b697.entry.js} +1 -1
  298. package/lib/duet/p-41438696.entry.js +4 -0
  299. package/lib/duet/{p-4ec38183.entry.js → p-426ad459.entry.js} +1 -1
  300. package/lib/duet/p-428ea355.entry.js +4 -0
  301. package/lib/duet/p-44e3dd4d.entry.js +4 -0
  302. package/lib/duet/p-4d4c8e31.entry.js +4 -0
  303. package/lib/duet/{p-722eb4b8.entry.js → p-4f832459.entry.js} +1 -1
  304. package/lib/duet/p-508242df.entry.js +4 -0
  305. package/lib/duet/{p-2661240f.entry.js → p-50868a2f.entry.js} +1 -1
  306. package/lib/duet/{p-23adcf71.entry.js → p-50b61aab.entry.js} +1 -1
  307. package/lib/duet/{p-0fb24b59.entry.js → p-5b65fbef.entry.js} +1 -1
  308. package/lib/duet/p-631e6aaa.entry.js +4 -0
  309. package/lib/duet/p-6802cdc6.entry.js +4 -0
  310. package/lib/duet/p-680e5ae3.entry.js +4 -0
  311. package/lib/duet/{p-d195712b.entry.js → p-6fc62f6a.entry.js} +1 -1
  312. package/lib/duet/{p-1b3b9ed6.entry.js → p-749947e9.entry.js} +1 -1
  313. package/lib/duet/{p-7189e720.entry.js → p-753047f7.entry.js} +1 -1
  314. package/lib/duet/p-765d5aa1.entry.js +4 -0
  315. package/lib/duet/p-767a1f6f.entry.js +4 -0
  316. package/lib/duet/p-77fc84fa.entry.js +4 -0
  317. package/lib/duet/{p-958a2b42.entry.js → p-7956a7c7.entry.js} +1 -1
  318. package/lib/duet/{p-f865dcfc.entry.js → p-7b72e97e.entry.js} +1 -1
  319. package/lib/duet/{p-008beeb0.entry.js → p-7f0336e3.entry.js} +1 -1
  320. package/lib/duet/p-7f79795b.entry.js +4 -0
  321. package/lib/duet/p-7yB0WcN3.js +4 -0
  322. package/lib/duet/{p-a24fff3c.entry.js → p-82ef56e8.entry.js} +1 -1
  323. package/lib/duet/{p-595b2f3b.entry.js → p-876556b5.entry.js} +1 -1
  324. package/lib/duet/{p-90c43d96.entry.js → p-8c3ef65c.entry.js} +1 -1
  325. package/lib/duet/{p-72a4ada8.entry.js → p-8ce7295a.entry.js} +1 -1
  326. package/lib/duet/{p-8c02d2af.entry.js → p-8ee4cced.entry.js} +1 -1
  327. package/lib/duet/p-90ec955a.entry.js +4 -0
  328. package/lib/duet/{p-155586a6.entry.js → p-92f6867e.entry.js} +1 -1
  329. package/lib/duet/{p-f110c4fb.entry.js → p-9c70db83.entry.js} +1 -1
  330. package/lib/duet/p-9d32216e.entry.js +4 -0
  331. package/lib/duet/{p-Djr45qSY.js → p-BMR0um0_.js} +1 -1
  332. package/lib/duet/p-BZd_-P-l.js +4 -0
  333. package/lib/duet/{p-CCVcVc3m.js → p-Bj5nqN_-.js} +1 -1
  334. package/lib/duet/p-BplvOJkj.js +4 -0
  335. package/lib/duet/p-Bx_o402c.js +4 -0
  336. package/lib/duet/p-CR50RA9g.js +4 -0
  337. package/lib/duet/p-MxsWrBCY.js +4 -0
  338. package/lib/duet/p-a11936dc.entry.js +4 -0
  339. package/lib/duet/{p-580d558b.entry.js → p-a1faa55d.entry.js} +1 -1
  340. package/lib/duet/{p-068cfada.entry.js → p-a2cb4c57.entry.js} +1 -1
  341. package/lib/duet/p-a68727d5.entry.js +4 -0
  342. package/lib/duet/{p-6b17cd4a.entry.js → p-a79f3799.entry.js} +1 -1
  343. package/lib/duet/{p-abe188c7.entry.js → p-a898b6ce.entry.js} +1 -1
  344. package/lib/duet/{p-1326964d.entry.js → p-a8ffe18b.entry.js} +1 -1
  345. package/lib/duet/p-abda6219.entry.js +4 -0
  346. package/lib/duet/{p-3ae06437.entry.js → p-adb5edf1.entry.js} +1 -1
  347. package/lib/duet/p-b38ff647.entry.js +4 -0
  348. package/lib/duet/{p-3381e3e2.entry.js → p-b43b56f9.entry.js} +1 -1
  349. package/lib/duet/{p-0e78737d.entry.js → p-b562dcda.entry.js} +1 -1
  350. package/lib/duet/p-bc970f09.entry.js +4 -0
  351. package/lib/duet/{p-e232c7ad.entry.js → p-c07676bf.entry.js} +1 -1
  352. package/lib/duet/{p-ed9b30ed.entry.js → p-c3c96ccd.entry.js} +1 -1
  353. package/lib/duet/p-ca59f39e.entry.js +4 -0
  354. package/lib/duet/p-cafcfc6c.entry.js +4 -0
  355. package/lib/duet/{p-96e70d5b.entry.js → p-cb194f7f.entry.js} +1 -1
  356. package/lib/duet/{p-91e669ab.entry.js → p-cc3d91af.entry.js} +1 -1
  357. package/lib/duet/p-ce23a866.entry.js +4 -0
  358. package/lib/duet/{p-2f30e410.entry.js → p-d1885308.entry.js} +1 -1
  359. package/lib/duet/{p-08affd1f.entry.js → p-d297f286.entry.js} +1 -1
  360. package/lib/duet/p-da53b233.entry.js +4 -0
  361. package/lib/duet/p-de702a7f.entry.js +4 -0
  362. package/lib/duet/{p-909352a9.entry.js → p-dfa128fd.entry.js} +1 -1
  363. package/lib/duet/{p-66693593.entry.js → p-e8a2db32.entry.js} +1 -1
  364. package/lib/duet/{p-2c420105.entry.js → p-eab99c65.entry.js} +1 -1
  365. package/lib/duet/{p-42621b5c.entry.js → p-edd118cc.entry.js} +1 -1
  366. package/lib/duet/p-f3c7655e.entry.js +4 -0
  367. package/lib/duet/p-f3e4bc4f.entry.js +4 -0
  368. package/lib/duet/{p-d7990dff.entry.js → p-f4f9c5ff.entry.js} +1 -1
  369. package/lib/duet/p-fb1b5d61.entry.js +4 -0
  370. package/lib/duet/{p-62c46ebb.entry.js → p-fbd2c394.entry.js} +1 -1
  371. package/lib/duet/p-fdcf696e.entry.js +4 -0
  372. package/lib/duet/p-o7bk2K5K.js +4 -0
  373. package/lib/duet/{p-BAFwjrjc.js → p-qQBlrLa4.js} +1 -1
  374. package/lib/esm/{a11y-utils-CQOH3qGQ.js → a11y-utils-DGj9K5Th.js} +1 -1
  375. package/lib/esm/{app-globals-D3VunZ8x.js → app-globals-_OR3Nu1D.js} +1 -1
  376. package/lib/esm/{common-strings-D6YBFNe9.js → common-strings-MxsWrBCY.js} +6 -1
  377. package/lib/esm/duet-action-button.entry.js +4 -4
  378. package/lib/esm/duet-alert.entry.js +32 -9
  379. package/lib/esm/duet-badge.entry.js +5 -5
  380. package/lib/esm/duet-banner.entry.js +5 -5
  381. package/lib/esm/duet-breadcrumb.entry.js +7 -7
  382. package/lib/esm/duet-breadcrumbs.entry.js +6 -6
  383. package/lib/esm/duet-button_2.entry.js +14 -16
  384. package/lib/esm/duet-callout.entry.js +6 -6
  385. package/lib/esm/duet-caption_4.entry.js +21 -18
  386. package/lib/esm/duet-card.entry.js +7 -7
  387. package/lib/esm/duet-checkbox.entry.js +5 -5
  388. package/lib/esm/duet-checkmark.entry.js +5 -5
  389. package/lib/esm/duet-chip.entry.js +13 -6
  390. package/lib/esm/duet-choice_2.entry.js +22 -16
  391. package/lib/esm/duet-collapsible.entry.js +6 -6
  392. package/lib/esm/duet-combobox.entry.js +5 -5
  393. package/lib/esm/duet-contact-card.entry.js +6 -6
  394. package/lib/esm/duet-cookie-consent.entry.js +4 -4
  395. package/lib/esm/duet-date-picker.entry.js +9 -9
  396. package/lib/esm/duet-divider_2.entry.js +5 -5
  397. package/lib/esm/duet-editable-table_3.entry.js +70 -10
  398. package/lib/esm/duet-empty-state.entry.js +5 -5
  399. package/lib/esm/duet-fieldset.entry.js +7 -7
  400. package/lib/esm/duet-file-chooser.entry.js +3 -3
  401. package/lib/esm/duet-footer.entry.js +10 -10
  402. package/lib/esm/duet-grid_2.entry.js +38 -9
  403. package/lib/esm/duet-header_2.entry.js +6 -6
  404. package/lib/esm/duet-hero.entry.js +37 -11
  405. package/lib/esm/duet-icon.entry.js +6 -6
  406. package/lib/esm/duet-input_2.entry.js +14 -13
  407. package/lib/esm/duet-layout.entry.js +7 -7
  408. package/lib/esm/duet-list_2.entry.js +15 -6
  409. package/lib/esm/duet-menu-bar-button.entry.js +5 -5
  410. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +5 -5
  411. package/lib/esm/duet-menu-bar-dropdown.entry.js +7 -7
  412. package/lib/esm/duet-menu-bar-item.entry.js +9 -9
  413. package/lib/esm/duet-menu-bar-link.entry.js +5 -5
  414. package/lib/esm/duet-menu-bar.entry.js +6 -6
  415. package/lib/esm/duet-modal.entry.js +13 -13
  416. package/lib/esm/duet-multiselect.entry.js +11 -11
  417. package/lib/esm/duet-nav.entry.js +3 -3
  418. package/lib/esm/duet-notification_2.entry.js +9 -9
  419. package/lib/esm/duet-number-input.entry.js +7 -7
  420. package/lib/esm/duet-overlay.entry.js +4 -4
  421. package/lib/esm/duet-page-heading.entry.js +5 -5
  422. package/lib/esm/duet-pagination_2.entry.js +18 -18
  423. package/lib/esm/duet-phone-input.entry.js +17 -15
  424. package/lib/esm/duet-popup-menu_2.entry.js +41 -13
  425. package/lib/esm/duet-progress.entry.js +4 -4
  426. package/lib/esm/duet-promo-card.entry.js +5 -5
  427. package/lib/esm/duet-radio_2.entry.js +15 -9
  428. package/lib/esm/duet-range-slider.entry.js +7 -7
  429. package/lib/esm/duet-scrollable_3.entry.js +17 -17
  430. package/lib/esm/duet-section-layout.entry.js +4 -4
  431. package/lib/esm/duet-select.entry.js +10 -10
  432. package/lib/esm/duet-shaped-image.entry.js +4 -4
  433. package/lib/esm/duet-share-chart-item.entry.js +20 -0
  434. package/lib/esm/duet-share-chart.entry.js +83 -0
  435. package/lib/esm/duet-show-more.entry.js +6 -6
  436. package/lib/esm/duet-slideout-lang.entry.js +5 -5
  437. package/lib/esm/duet-slideout-link.entry.js +9 -9
  438. package/lib/esm/duet-slideout-panel-dropdown.entry.js +7 -7
  439. package/lib/esm/duet-slideout-panel.entry.js +12 -12
  440. package/lib/esm/duet-slideout.entry.js +10 -10
  441. package/lib/esm/duet-status-icon.entry.js +3 -3
  442. package/lib/esm/duet-step_2.entry.js +22 -8
  443. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +5 -5
  444. package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
  445. package/lib/esm/duet-submenu-bar-item.entry.js +8 -8
  446. package/lib/esm/duet-submenu-bar-link.entry.js +4 -4
  447. package/lib/esm/duet-submenu-bar.entry.js +8 -8
  448. package/lib/esm/duet-textarea.entry.js +10 -10
  449. package/lib/esm/duet-toggle.entry.js +7 -7
  450. package/lib/esm/duet-toolbar-dropdown-link.entry.js +5 -5
  451. package/lib/esm/duet-toolbar-dropdown.entry.js +7 -7
  452. package/lib/esm/duet-toolbar-item.entry.js +10 -10
  453. package/lib/esm/duet-toolbar-link.entry.js +5 -5
  454. package/lib/esm/duet-toolbar.entry.js +5 -5
  455. package/lib/esm/duet-tooltip-button_2.entry.js +10 -10
  456. package/lib/esm/duet-tooltip.entry.js +4 -4
  457. package/lib/esm/duet-tray.entry.js +6 -6
  458. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  459. package/lib/esm/duet-upload-item.entry.js +6 -6
  460. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  461. package/lib/esm/duet.js +4 -4
  462. package/lib/esm/{errorcodes.utils--4tOXPNI.js → errorcodes.utils-BGfLijBB.js} +1 -1
  463. package/lib/esm/{focus-utils-CUvuUZuo.js → focus-utils-ugQsYlwO.js} +1 -1
  464. package/lib/esm/{index-Djr45qSY.js → index-BMR0um0_.js} +9 -1
  465. package/lib/esm/{label-DoZNNWYj.js → label-DqBJopZl.js} +1 -1
  466. package/lib/esm/{language-utils-BCnFs8Da.js → language-utils-CETcDBuc.js} +9 -2
  467. package/lib/esm/loader.js +4 -4
  468. package/lib/esm/{slot-utils-CSLPO69o.js → slot-utils-Bt-G2UeG.js} +2 -2
  469. package/lib/esm/themeable-component-CR50RA9g.js +21 -0
  470. package/lib/types/common-strings.d.ts +1 -0
  471. package/lib/types/common-types.d.ts +1 -1
  472. package/lib/types/components/duet-alert/duet-alert.d.ts +1 -0
  473. package/lib/types/components/duet-chip/duet-chip.d.ts +1 -0
  474. package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +1 -0
  475. package/lib/types/components/duet-hero/duet-hero.d.ts +3 -0
  476. package/lib/types/components/duet-list-item/duet-list-item.d.ts +9 -3
  477. package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +0 -1
  478. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +1 -0
  479. package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +1 -0
  480. package/lib/types/components/duet-radio-group/duet-radio-group.d.ts +1 -0
  481. package/lib/types/components/duet-share-chart/duet-share-chart.d.ts +36 -0
  482. package/lib/types/components/duet-share-chart-item/duet-share-chart-item.d.ts +13 -0
  483. package/lib/types/components/duet-spinner/duet-spinner.d.ts +1 -0
  484. package/lib/types/components/duet-stepper/duet-stepper.d.ts +5 -2
  485. package/lib/types/components.d.ts +78 -4
  486. package/lib/types/utils/language-utils.d.ts +1 -0
  487. package/package.json +3 -3
  488. package/lib/cjs/themeable-component-C57DSx5w.js +0 -15
  489. package/lib/duet/p-0239abf5.entry.js +0 -4
  490. package/lib/duet/p-088001ee.entry.js +0 -4
  491. package/lib/duet/p-214a4675.entry.js +0 -4
  492. package/lib/duet/p-22773cce.entry.js +0 -4
  493. package/lib/duet/p-27fbdb67.entry.js +0 -4
  494. package/lib/duet/p-2b3219a7.entry.js +0 -4
  495. package/lib/duet/p-412ef68f.entry.js +0 -4
  496. package/lib/duet/p-47597304.entry.js +0 -4
  497. package/lib/duet/p-4a791521.entry.js +0 -4
  498. package/lib/duet/p-4f750925.entry.js +0 -4
  499. package/lib/duet/p-50d0ff41.entry.js +0 -4
  500. package/lib/duet/p-56574361.entry.js +0 -4
  501. package/lib/duet/p-60eb6013.entry.js +0 -4
  502. package/lib/duet/p-6fe83dd7.entry.js +0 -4
  503. package/lib/duet/p-75db52e4.entry.js +0 -4
  504. package/lib/duet/p-77d68685.entry.js +0 -4
  505. package/lib/duet/p-8974c058.entry.js +0 -4
  506. package/lib/duet/p-8d5e5316.entry.js +0 -4
  507. package/lib/duet/p-9302dba5.entry.js +0 -4
  508. package/lib/duet/p-948f9054.entry.js +0 -4
  509. package/lib/duet/p-98f1ee13.entry.js +0 -4
  510. package/lib/duet/p-9f2785ce.entry.js +0 -4
  511. package/lib/duet/p-CDAA0sDY.js +0 -4
  512. package/lib/duet/p-CO8vqpmW.js +0 -4
  513. package/lib/duet/p-D6YBFNe9.js +0 -4
  514. package/lib/duet/p-DX5mWLkB.js +0 -4
  515. package/lib/duet/p-FCSGJbLJ.js +0 -4
  516. package/lib/duet/p-WhCDf9tt.js +0 -4
  517. package/lib/duet/p-a47e139c.entry.js +0 -4
  518. package/lib/duet/p-b0dc7df5.entry.js +0 -4
  519. package/lib/duet/p-cb60a521.entry.js +0 -4
  520. package/lib/duet/p-cebee4a6.entry.js +0 -4
  521. package/lib/duet/p-d2402c02.entry.js +0 -4
  522. package/lib/duet/p-d56c1db9.entry.js +0 -4
  523. package/lib/duet/p-d60c71fc.entry.js +0 -4
  524. package/lib/duet/p-de5e4a26.entry.js +0 -4
  525. package/lib/duet/p-e8718555.entry.js +0 -4
  526. package/lib/duet/p-f383ccca.entry.js +0 -4
  527. package/lib/duet/p-f593a703.entry.js +0 -4
  528. package/lib/duet/p-fa355e38.entry.js +0 -4
  529. package/lib/duet/p-fc83b2e2.entry.js +0 -4
  530. package/lib/duet/p-k-CbGkPp.js +0 -4
  531. package/lib/esm/themeable-component-WhCDf9tt.js +0 -13
@@ -156,13 +156,13 @@ export class DuetRangeSlider {
156
156
  const rangeStyles = {
157
157
  background: `-webkit-linear-gradient(left,${active} 0%,${active} ${percentage}%,${inactive} ${percentage}%)`,
158
158
  };
159
- return (h(Host, { key: '591c961de650998ecf1680202b9d6ebb85e88d76', class: { "duet-m-0": this.margin === "none", "duet-expand": this.expand } }, h("div", { key: 'd7992dd90cba5c881171c75377573bc0f650923c', class: {
159
+ return (h(Host, { key: 'fca0c61d3288da56d73529c73457f63a78df6b26', class: { "duet-m-0": this.margin === "none", "duet-expand": this.expand } }, h("div", { key: '64c191339324cf735bd837bcfb3b05203ee256b7', class: {
160
160
  "duet-range-container": true,
161
161
  "duet-label-hidden": this.labelHidden,
162
162
  "duet-theme-turva": this.theme === "turva",
163
163
  "duet-ie": isInternetExplorer(),
164
164
  "duet-range-disabled": this.disabled,
165
- } }, h(DuetInternalLabel, { key: '69abfec74af9aae13ebc498374205c571667ace2', theme: theme, color: this.labelColor, weight: this.labelWeight, margin: "small", for: identifier }, this.label), h("output", { key: 'a165cce8cbd95b8e5f62f03473b7741df139a4f1', "aria-hidden": "true", htmlFor: identifier, class: "duet-output" }, this.value.toLocaleString(this.locale), this.unit), h("input", { key: 'd88393860f5ba334044588500ef6f762bc32ea2e', onInput: this.onInput, onChange: this.onChange, ref: input => (this.nativeInput = input), type: "range", min: this.min, max: this.max, step: this.step, value: this.value, style: rangeStyles, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.value, "aria-valuetext": `${this.value} ${this.unit}`, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, id: identifier, name: this.name, disabled: this.disabled, required: this.required, class: "duet-range" }))));
165
+ } }, h(DuetInternalLabel, { key: 'f2e5cb43789c7385f46987f31e59d01d0e0cbe77', theme: theme, color: this.labelColor, weight: this.labelWeight, margin: "small", for: identifier }, this.label), h("output", { key: 'a0becf96bebb8b1762f3236046eb3083083034cd', "aria-hidden": "true", htmlFor: identifier, class: "duet-output" }, this.value.toLocaleString(this.locale), this.unit), h("input", { key: '6108673d85c857d9b95cd5de00eb0a7b261afc75', onInput: this.onInput, onChange: this.onChange, ref: input => (this.nativeInput = input), type: "range", min: this.min, max: this.max, step: this.step, value: this.value, style: rangeStyles, "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.value, "aria-valuetext": `${this.value} ${this.unit}`, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, id: identifier, name: this.name, disabled: this.disabled, required: this.required, class: "duet-range" }))));
166
166
  }
167
167
  static get is() { return "duet-range-slider"; }
168
168
  static get encapsulation() { return "shadow"; }
@@ -46,4 +46,8 @@
46
46
  }
47
47
  .duet-range-stepper ::part(button) {
48
48
  border: 0;
49
+ }
50
+
51
+ :host(.duet-theme-turva2) .duet-theme-turva .duet-range-step-counter {
52
+ color: rgb(35, 46, 61);
49
53
  }
@@ -196,10 +196,10 @@ export class DuetRangeStepper {
196
196
  * Always the last one in the class.
197
197
  */
198
198
  render() {
199
- return (h("div", { key: '6ee831dd873413efb28eb9bc4e74d13f62471d5a', class: {
199
+ return (h("div", { key: '39ffc4c324f8b610879fb7ed01aaaf4263b970c3', class: {
200
200
  "duet-range-stepper": true,
201
201
  "duet-theme-turva": this.theme === "turva",
202
- }, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, h("span", { key: '9f4857e8c049cd3c732201d33681fe0d194307ad', class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()), h("duet-action-button", { key: 'f90f6c22d9d60a87a1e97ef34c7845d1fe1e2fce', disabled: this.disabled || this.buttonLeftDisabled, class: "duet-range-step-button duet-range-step-minus", onClick: e => this.handleClick(e, -1), id: this.leftBn, "accessible-label": `${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`, ref: el => (this.leftBnRef = el), part: "navigation-arrow", iconName: "action-arrow-left-small", title: "" }), h("duet-action-button", { key: '1d6d7fd979563dd7fb004316e0ccff7c5b66114d', disabled: this.disabled || this.buttonRightDisabled, class: "duet-range-step-button duet-range-step-plus", onClick: e => this.handleClick(e, 1), "accessible-label": `${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`, id: this.rightBn, ref: el => (this.rightBnRef = el), part: "navigation-arrow", iconName: "action-arrow-right-small", title: "" })));
202
+ }, onKeyDown: e => this.onKeyboardDown(e), "aria-controls": this.ariaControls }, h("span", { key: '2ea4499bc567d644530b625eec22d91b0bf5226d', class: "duet-range-step-counter", part: "range-numbers" }, this.generateStepSize()), h("duet-action-button", { key: 'e0613ae54e7134000a06bd0329af05c42d8fc521', disabled: this.disabled || this.buttonLeftDisabled, class: "duet-range-step-button duet-range-step-minus", onClick: e => this.handleClick(e, -1), id: this.leftBn, "accessible-label": `${this.ariaLabels.previous_increment} ${this.generatePreviousIncrementLabel()}`, ref: el => (this.leftBnRef = el), part: "navigation-arrow", iconName: "action-arrow-left-small", title: "" }), h("duet-action-button", { key: 'fbd6d9a4acda0fa78642b8af959dd361dd280f15', disabled: this.disabled || this.buttonRightDisabled, class: "duet-range-step-button duet-range-step-plus", onClick: e => this.handleClick(e, 1), "accessible-label": `${this.ariaLabels.next_increment} ${this.generateNextIncrementLabel()}`, id: this.rightBn, ref: el => (this.rightBnRef = el), part: "navigation-arrow", iconName: "action-arrow-right-small", title: "" })));
203
203
  }
204
204
  static get is() { return "duet-range-stepper"; }
205
205
  static get encapsulation() { return "shadow"; }
@@ -208,4 +208,11 @@
208
208
  transition: transform 0.2s ease-in-out;
209
209
  transition: transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
210
210
  scroll-snap-align: center;
211
+ }
212
+
213
+ :host(.duet-theme-turva2) .duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover {
214
+ border-color: rgb(244, 213, 193);
215
+ }
216
+ :host(.duet-theme-turva2) .duet-scrollable-items.duet-theme-turva .duet-scrollable-button-container .duet-scrollable-button--absolute:hover {
217
+ border-color: rgb(244, 213, 193);
211
218
  }
@@ -265,18 +265,18 @@ export class DuetScrollable {
265
265
  * Always the last one in the class.
266
266
  */
267
267
  render() {
268
- return (h(Host, { key: 'dabca4939b3be30f3d3ecd1b9f68e52456269e0a', class: {
268
+ return (h(Host, { key: '9b73fe51d20fba362851dced55d9e1f87c8ad44a', class: {
269
269
  "duet-theme-turva": this.theme === "turva",
270
270
  "duet-theme-default": this.theme === "default",
271
- } }, this.hasCollapseButtonLabelSlot && (h("div", { key: '2ff182f33a6de936878bb0c8fa90609b298b2e8f', class: {
271
+ } }, this.hasCollapseButtonLabelSlot && (h("div", { key: 'f1f3da5e12482c842edd6167db704220985491da', class: {
272
272
  collapse: true,
273
273
  hide: !this.needsScrolling && !this.collapsed,
274
- } }, h("duet-button", { key: '7c7cfad3a7ca7252d6b5353eb8983d31d5fc6532', variation: "plain", margin: "none", "center-text": true, onClick: () => this.collapsedOnClick() }, h("slot", { key: '7e7ad479953be49eb8c6868e0afe130ef8f8e719', name: "collapse-button-label" })))), h("div", { key: '437ccb24c0eb10de320c28e54d1fbcaaba37ba43', class: {
274
+ } }, h("duet-button", { key: '12d843aa10a260c33b84d71b84e73a500caab348', variation: "plain", margin: "none", "center-text": true, onClick: () => this.collapsedOnClick() }, h("slot", { key: '4ad5eb7b1e7d625ca1f349f993620c8983b4c63a', name: "collapse-button-label" })))), h("div", { key: '3a72bd55510a6560596aa04971d8e5c476fd2e7c', class: {
275
275
  "duet-scrollable-items": true,
276
276
  buttons: this.buttons,
277
277
  center: this.center,
278
278
  "duet-theme-turva": this.theme === "turva",
279
- } }, this.buttons && this.renderButton("left"), h("div", { key: '9f6b170c54152d4778e09e581199897ea6da96ad', class: {
279
+ } }, this.buttons && this.renderButton("left"), h("div", { key: 'a346ac45470e0430bd3eb56e277cc8981490d13b', class: {
280
280
  "duet-scrollable-list": true,
281
281
  [`duet-scrollable-list--${this.buttonPosition}`]: true,
282
282
  [`gap-${this.gap}`]: true,
@@ -284,7 +284,7 @@ export class DuetScrollable {
284
284
  [`duet-overflow-padding--${this.padding}`]: this.padding !== "none",
285
285
  [`duet-scrollable-list--${this.buttonPosition}`]: this.buttonPosition === "absolute",
286
286
  "duet-scrollable-stretch": this.stretch,
287
- }, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, h("slot", { key: 'cb3852e8f2c7c5a3114a9c373f10d0ec878707e7' })), this.buttons && this.renderButton("right"))));
287
+ }, onScroll: () => this.updateScrollButtons(), ref: element => (this.scrollPaneElement = element) }, h("slot", { key: 'f28675757450449fd5ab3dd6c9dc7fd9b77a887c' })), this.buttons && this.renderButton("right"))));
288
288
  }
289
289
  static get is() { return "duet-scrollable"; }
290
290
  static get encapsulation() { return "shadow"; }
@@ -24,13 +24,13 @@ export class DuetSectionLayout {
24
24
  * Always the last one in the class.
25
25
  */
26
26
  render() {
27
- return (h(Host, { key: '6e87a8404b55791ef09fbe67defcf0b1926f28f1', class: {
27
+ return (h(Host, { key: '6de257513172547ac3127aae4897d23e1d232ab0', class: {
28
28
  "duet-middle": this.middle,
29
29
  "duet-ie": isInternetExplorer(),
30
- } }, h("div", { key: '7dbb8ba1ffa4a6c80fdef3d109aa5acd1e801bfb', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, h("div", { key: 'b98ee3ba1f0de7404f3b94073e0d430c3433d209', class: {
30
+ } }, h("div", { key: '162b80b3878f2da062f7f95e883e297e006cf62a', class: { "duet-layout-wrapper": true, "duet-m-0": this.margin === "none" } }, h("div", { key: '6a790a124425ee7c8851b6e805c752eb0702ecb1', class: {
31
31
  "duet-layout": true,
32
32
  [`padding-${this.paddingBreakpoint}`]: !!this.paddingBreakpoint,
33
- } }, h("section", { key: '82ab08ebb3a64ecefa53ff85fe51907347eb81e2', class: "duet-main" }, h("slot", { key: 'f4117e551edc8c13d703686fd4679cb37bb44244' }))))));
33
+ } }, h("section", { key: '4bd2cec88d4ce18d7f1033a2424f231968838d71', class: "duet-main" }, h("slot", { key: '701a5cdb76890ac29a419e178b33ab849d78b508' }))))));
34
34
  }
35
35
  static get is() { return "duet-section-layout"; }
36
36
  static get encapsulation() { return "shadow"; }
@@ -382,4 +382,37 @@ duet-tooltip,
382
382
  overflow: hidden;
383
383
  clip: rect(0 0 0 0);
384
384
  border: 0;
385
+ }
386
+
387
+ :host(.duet-theme-turva2) .duet-theme-turva .duet-select-placeholder {
388
+ background: rgb(248, 229, 217);
389
+ }
390
+ :host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:hover + .duet-select {
391
+ border-color: rgb(244, 213, 193);
392
+ }
393
+ :host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:focus + .duet-select {
394
+ border-color: rgb(35, 46, 61);
395
+ }
396
+ :host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select:focus + .duet-select .duet-select-icon {
397
+ color: rgb(35, 46, 61);
398
+ }
399
+ :host(.duet-theme-turva2) .duet-theme-turva .duet-select-wrapper select[disabled] + .duet-select {
400
+ color: rgb(35, 46, 61) !important;
401
+ background: rgb(253, 247, 242) !important;
402
+ border-color: rgb(253, 247, 242) !important;
403
+ -webkit-text-fill-color: rgb(35, 46, 61) !important;
404
+ }
405
+ :host(.duet-theme-turva2) .duet-theme-turva .duet-select {
406
+ color: rgb(35, 46, 61);
407
+ background: rgb(255, 255, 255); /* unchanged unless you want a Turva2 token */
408
+ border-color: rgb(244, 213, 193);
409
+ }
410
+ :host(.duet-theme-turva2) .duet-theme-turva .duet-select svg {
411
+ color: rgb(35, 46, 61);
412
+ }
413
+ :host(.duet-theme-turva2) .duet-theme-turva.has-error .duet-select {
414
+ border-color: rgb(214, 28, 82) !important;
415
+ }
416
+ :host(.duet-theme-turva2) .duet-theme-turva .duet-select-help {
417
+ color: rgb(244, 213, 193);
385
418
  }
@@ -200,23 +200,23 @@ export class DuetSelect {
200
200
  */
201
201
  render() {
202
202
  const identifier = this.identifier || this.selectId;
203
- return (h(Host, { key: 'f7fb5ab26bd271f6e526be28f8d212a1f58317b5', onClick: this.onClick, class: {
203
+ return (h(Host, { key: 'cee7a0483220ecb054516922696bea8f3566e16e', onClick: this.onClick, class: {
204
204
  "duet-m-0": this.margin === "none",
205
205
  "duet-expand": this.expand,
206
206
  [`duet-select-variation-${this.variation}`]: true,
207
- } }, h("div", { key: '426ba8ae0167b334ddd6fd011add388174414109', class: {
207
+ } }, h("div", { key: 'f267d7f36626adc44d29cba18b60f717cff3cac1', class: {
208
208
  "duet-select-container": true,
209
209
  "duet-label-hidden": this.labelHidden,
210
210
  "duet-theme-turva": this.theme === "turva",
211
211
  [`duet-select-variation-${this.variation}`]: true,
212
212
  "duet-input-top-caption-shown": this.isCaptionVisible,
213
213
  "has-error": !!this.error,
214
- } }, h(DuetInternalLabel, { key: 'b39090e1503169c346addf003b6d8b30708c8b3b', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { key: '6e354abbd09879db33d2b9939d2d7b586d429b4f', direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: '8ec384b22a9430c112efa531c5133a9af2b921ed', name: "tooltip" }), this.caption && (h("duet-caption", { key: '098fcc251d0000132dd670d448f175951374ad0e', id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { key: '8c87160e79d975cc2f04c8f0c92bf16f7b446336', class: "duet-select-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { key: 'c812926146fe2ae74db2760f20c00604c15fbe10', id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)), h("slot", { key: '5ea31f03168f75354a7a8ea01503edafb713b297' }), h("select", { key: 'd39fd3b000915130c8565a5f82e2d6b9662f9b69', ref: select => (this.nativeSelect = select), disabled: this.disabled, name: this.name, id: identifier, role: this.role, "aria-labelledby": this.labelId, "aria-describedby": this.getDescribedBy(), "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, required: this.required }, this.placeholder && (h("option", { key: 'bc215c396c0aaa1a39f6702c6e3cb7870ec70d93', disabled: true, selected: true, value: "" }, this.placeholder)), !this.processedItems ? (h("option", null, "Virhe valintoja ladattaessa. P\u00E4ivit\u00E4 sivu ja kokeile uusiksi.")) : (this.processedItems.map(item => {
214
+ } }, h(DuetInternalLabel, { key: 'dd7ca5dec1b2de6ae4212356c91ee10b61589921', theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, color: this.labelColor, weight: this.labelWeight, id: this.labelId, for: identifier }, this.label), this.tooltip && (h("duet-tooltip", { key: '87fe5ca8e117bcce9d95e4dd671315b2d919553e', direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: 'ac112e24deab401fbecdaeac85abc4a4fe610898', name: "tooltip" }), this.caption && (h("duet-caption", { key: '5238f512e4d7b8d24765c0a03791615762621e39', id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { key: '977e09a6d9edbe28f371a7b008696524cfe443a4', class: "duet-select-wrapper" }, this.placeholder && this.echoPlaceholder && this.value && (h("duet-caption", { key: 'fdc4d06a6de42770c12b21a1652f0bae51cf1cc2', id: this.topCaptionPlaceholderId, class: "duet-select-placeholder", size: "small" }, this.placeholder)), h("slot", { key: '378fcfd46c3d512884b3fa935e39676b523d1a08' }), h("select", { key: '3e24a10d59ec07522bddc3808695aabab5abb097', ref: select => (this.nativeSelect = select), disabled: this.disabled, name: this.name, id: identifier, role: this.role, "aria-labelledby": this.labelId, "aria-describedby": this.getDescribedBy(), "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, required: this.required }, this.placeholder && (h("option", { key: '859e86a0dea68cb4da7588130b572e7c378368a1', disabled: true, selected: true, value: "" }, this.placeholder)), !this.processedItems ? (h("option", null, "Virhe valintoja ladattaessa. P\u00E4ivit\u00E4 sivu ja kokeile uusiksi.")) : (this.processedItems.map(item => {
215
215
  return isOptionGroup(item) ? this.renderOptionGroup(item) : this.renderOption(item);
216
- }))), h("div", { key: 'f3e36992c843080b868a557afc596f4460fc8ccf', class: {
216
+ }))), h("div", { key: '9e7ed1fa9404cb96990665e963474a5483dd1efd', class: {
217
217
  "duet-select": true,
218
218
  [`duet-select-variation-${this.variation}`]: true,
219
- }, "aria-hidden": "true" }, h("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (h("svg", { key: 'dc32868d15cff1e4c389f866b84e488150f61bfe', role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '8d73a8e85acee6c7b5e3fb637f676035cc263704', d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" })))) || (h("duet-icon", { key: '42bb00d482b9b26a894b6aa8650ae81fdb9f423b', theme: this.theme, name: "action-arrow-down-small", color: "currentColor", margin: "none", size: this.variation === "compact" ? "xxx-small" : "xx-small" }))), h("span", { key: '30501f1a3ea30a482866c167f5d8b0613ecb9558', class: "duet-keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), h("span", { key: 'bbc67f9602f36034303854ccf7b3b2371ed8a0d4', class: "duet-select-help", id: this.errorId, "aria-live": this.accessibleLiveError, "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && h("span", { key: '9a5801436542d56495308caf0dd5e124efafbc80' }, this.error)))));
219
+ }, "aria-hidden": "true" }, h("span", { key: this.value, class: "duet-select-selected-value" }, this.getSelectedItemLabel()), (this.variation === "default" && (h("svg", { key: '4f2ec9d40e57c9c5d81e14e2ce311c2b3714cbc9', role: "img", class: "duet-select-icon", fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '62569ac4e1cf6428809163495d81a5666b8204d8', d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" })))) || (h("duet-icon", { key: '14076b6de2956bbd8b56c2bad3b8de6ec0f571d0', theme: this.theme, name: "action-arrow-down-small", color: "currentColor", margin: "none", size: this.variation === "compact" ? "xxx-small" : "xx-small" }))), h("span", { key: '2f930786471092de2ed9cc231e7bdeb30ba05940', class: "duet-keep-container-height", role: "presention", "aria-hidden": "true" }, "_")), h("span", { key: '8ee87497d78be2b13e5abb2f9531dd48600f2c72', class: "duet-select-help", id: this.errorId, "aria-live": this.accessibleLiveError, "aria-atomic": "true", "aria-relevant": "additions removals" }, this.error && h("span", { key: '59ffb4f9118c79dff0a38d063ed841f2177bd662' }, this.error)))));
220
220
  }
221
221
  static get is() { return "duet-select"; }
222
222
  static get encapsulation() { return "shadow"; }
@@ -33,9 +33,9 @@ export class DuetShapedImage {
33
33
  const style = {
34
34
  "--rotation": `${this.rotation}deg`,
35
35
  };
36
- return (h(Host, { key: '1d1053d155b9e1841b6d953585cd04aab69d19b3', class: { "duet-theme-turva": this.theme === "turva", "duet-m-0": this.margin === "none" } }, h("span", { key: '8fe40998d799d66bf6b705d95ba192181a65cf50', class: {
36
+ return (h(Host, { key: '81cb42f6d5d476c90fd596286ac1d08ec3fd691b', class: { "duet-theme-turva": this.theme === "turva", "duet-m-0": this.margin === "none" } }, h("span", { key: '3b6ed786402f59520017f12fe1e920828e4973a7', class: {
37
37
  "shaped-image": true,
38
- }, role: "img", "aria-label": this.accessibleLabel, style: style }, h("span", { key: '40f7cd9536a69fd2871a473ddd382acf393bd1b9', class: "shaped-image-mask", role: "presentation" }, h("span", { key: 'eda5c54d79dd7b3d06cac81547b5ca56e626597f', class: "shaped-image-img", role: "presentation", style: { backgroundImage: `url("${this.src}")` } })))));
38
+ }, role: "img", "aria-label": this.accessibleLabel, style: style }, h("span", { key: '3f70c4449ad67e77227d59eb853ef0261b51712b', class: "shaped-image-mask", role: "presentation" }, h("span", { key: '673b893d5f6763ec1579b2ec568bba4f856b4a22', class: "shaped-image-img", role: "presentation", style: { backgroundImage: `url("${this.src}")` } })))));
39
39
  }
40
40
  static get is() { return "duet-shaped-image"; }
41
41
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,82 @@
1
+ *,
2
+ *::after,
3
+ *::before {
4
+ box-sizing: border-box;
5
+ padding: 0;
6
+ margin: 0;
7
+ background: transparent;
8
+ border: 0;
9
+ -moz-appearance: none;
10
+ -webkit-appearance: none;
11
+ appearance: none;
12
+ }
13
+
14
+ :host {
15
+ box-sizing: border-box;
16
+ padding: 0;
17
+ margin: 0;
18
+ background: transparent;
19
+ border: 0;
20
+ -moz-appearance: none;
21
+ -webkit-appearance: none;
22
+ appearance: none;
23
+ }
24
+
25
+ .duet-share-chart-horizontal-bar {
26
+ height: 16px;
27
+ margin-bottom: 20px;
28
+ border-radius: 4px;
29
+ }
30
+ .duet-share-chart-horizontal-bar .duet-share-chart-share {
31
+ box-sizing: border-box;
32
+ display: inline-block;
33
+ height: 16px;
34
+ border-color: rgb(255, 255, 255);
35
+ border-style: solid;
36
+ border-width: 0 1px;
37
+ }
38
+ .duet-share-chart-horizontal-bar .duet-share-chart-share:first-child {
39
+ border-left-width: 0;
40
+ border-radius: 4px 0 0 4px;
41
+ }
42
+ .duet-share-chart-horizontal-bar .duet-share-chart-share:last-child {
43
+ border-right-width: 0;
44
+ border-radius: 0 4px 4px 0;
45
+ }
46
+
47
+ .duet-share-chart-item-list {
48
+ padding: 0 4px;
49
+ margin: 0;
50
+ list-style: none;
51
+ }
52
+ .duet-share-chart-item-list li {
53
+ display: flex;
54
+ font-family: "localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
55
+ font-size: 1rem;
56
+ font-style: normal;
57
+ font-weight: 400;
58
+ font-variant-numeric: tabular-nums;
59
+ color: rgb(8, 42, 77);
60
+ }
61
+ .duet-share-chart-item-list li.duet-theme-turva {
62
+ font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
63
+ color: rgb(23, 28, 58);
64
+ }
65
+ .duet-share-chart-item-list span {
66
+ display: inline-block;
67
+ }
68
+ .duet-share-chart-item-list .duet-share-chart-item-color {
69
+ flex-shrink: 0;
70
+ width: 12px;
71
+ height: 12px;
72
+ margin-top: calc((1.5rem - 12px) / 2);
73
+ margin-right: 12px;
74
+ border-radius: 4px;
75
+ }
76
+ .duet-share-chart-item-list .duet-share-chart-item-value {
77
+ font-weight: 600;
78
+ }
79
+
80
+ :host(.duet-theme-turva2) .duet-share-chart-item-list li.duet-theme-turva {
81
+ color: rgb(35, 46, 61);
82
+ }
@@ -0,0 +1,142 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import { Build, h, Host } from "@stencil/core";
5
+ import { inheritGlobalTheme } from "../../common";
6
+ import { getElementsFromDefaultSlot } from "../../utils/slot-utils";
7
+ import { getColorByName } from "../../utils/token-utils";
8
+ export class DuetShareChart {
9
+ constructor() {
10
+ this.defaultColors = [
11
+ "lt-blue-800",
12
+ "lt-blue-600",
13
+ "success-600",
14
+ "success-800",
15
+ "warning-600",
16
+ "danger-600",
17
+ "danger-800",
18
+ ];
19
+ /**
20
+ * Theme of the component.
21
+ */
22
+ this.theme = "";
23
+ /**
24
+ * The string to show after each items value. When using "%" the enclosed items' values should add up to 100.
25
+ */
26
+ this.unit = "%";
27
+ /**
28
+ * Local methods
29
+ */
30
+ this.colorPickCount = 0;
31
+ }
32
+ /**
33
+ * Component lifecycle events.
34
+ */
35
+ componentWillLoad() {
36
+ inheritGlobalTheme(this);
37
+ }
38
+ connectedCallback() {
39
+ if (!Build.isServer) {
40
+ this.childObserver = new MutationObserver(this.updateChartItems.bind(this));
41
+ this.childObserver.observe(this.element, { childList: true });
42
+ }
43
+ this.updateChartItems();
44
+ }
45
+ disconnectedCallback() {
46
+ if (this.childObserver) {
47
+ this.childObserver.disconnect();
48
+ this.childObserver = undefined;
49
+ }
50
+ }
51
+ pickColor() {
52
+ const color = this.defaultColors[this.colorPickCount];
53
+ this.colorPickCount += 1;
54
+ if (this.colorPickCount > this.defaultColors.length - 1) {
55
+ this.colorPickCount = 0;
56
+ }
57
+ return color;
58
+ }
59
+ updateChartItems() {
60
+ const children = getElementsFromDefaultSlot(this.element).filter(el => el.tagName.toLocaleLowerCase() === "duet-share-chart-item");
61
+ this.items = children.map(child => ({
62
+ text: child.innerText,
63
+ value: child.value,
64
+ color: child.color || this.pickColor(),
65
+ }));
66
+ this.itemsTotalValue = this.items.reduce((total, { value }) => total + value, 0);
67
+ }
68
+ render() {
69
+ return (h(Host, { key: 'e27a89ca1b9bf4a1ae16f9848aaa24ad314aabfb' }, h("div", { key: 'e12eced2ec3c3d7adb8373b3d7761ca8ca5cff8e', class: "duet-share-chart-horizontal-bar", role: "presentation" }, this.items.map(item => (h("span", { class: "duet-share-chart-share", style: {
70
+ width: `${(item.value / this.itemsTotalValue) * 100}%`,
71
+ backgroundColor: getColorByName(item.color, this.theme),
72
+ } })))), h("ul", { key: '018a3d26bb0f43ef5b9ff8787a5912ffbd5c86a2', class: "duet-share-chart-item-list" }, this.items.map(item => (h("li", { class: { "duet-theme-turva": this.theme === "turva" } }, h("span", { class: "duet-share-chart-item-color", style: { background: getColorByName(item.color, this.theme) } }), h("span", { class: "duet-share-chart-item-text" }, item.text, ":"), h("span", { class: "duet-share-chart-item-value" }, "\u00A0", item.value, "\u00A0", this.unit), this.unit !== "%" && (h("duet-visually-hidden", null, `${(item.value / this.itemsTotalValue) * 100}%`)))))), h("slot", { key: '55ae378193e7583ebf2afbaf11135d3103ba98bf' })));
73
+ }
74
+ static get is() { return "duet-share-chart"; }
75
+ static get encapsulation() { return "shadow"; }
76
+ static get originalStyleUrls() {
77
+ return {
78
+ "$": ["duet-share-chart.scss"]
79
+ };
80
+ }
81
+ static get styleUrls() {
82
+ return {
83
+ "$": ["duet-share-chart.css"]
84
+ };
85
+ }
86
+ static get properties() {
87
+ return {
88
+ "theme": {
89
+ "type": "string",
90
+ "attribute": "theme",
91
+ "mutable": true,
92
+ "complexType": {
93
+ "original": "DuetTheme",
94
+ "resolved": "\"\" | \"default\" | \"turva\"",
95
+ "references": {
96
+ "DuetTheme": {
97
+ "location": "import",
98
+ "path": "../../common-types",
99
+ "id": "src/common-types.d.ts::DuetTheme"
100
+ }
101
+ }
102
+ },
103
+ "required": false,
104
+ "optional": false,
105
+ "docs": {
106
+ "tags": [],
107
+ "text": "Theme of the component."
108
+ },
109
+ "getter": false,
110
+ "setter": false,
111
+ "reflect": false,
112
+ "defaultValue": "\"\""
113
+ },
114
+ "unit": {
115
+ "type": "string",
116
+ "attribute": "unit",
117
+ "mutable": false,
118
+ "complexType": {
119
+ "original": "string",
120
+ "resolved": "string",
121
+ "references": {}
122
+ },
123
+ "required": false,
124
+ "optional": false,
125
+ "docs": {
126
+ "tags": [],
127
+ "text": "The string to show after each items value. When using \"%\" the enclosed items' values should add up to 100."
128
+ },
129
+ "getter": false,
130
+ "setter": false,
131
+ "reflect": false,
132
+ "defaultValue": "\"%\""
133
+ }
134
+ };
135
+ }
136
+ static get states() {
137
+ return {
138
+ "items": {}
139
+ };
140
+ }
141
+ static get elementRef() { return "element"; }
142
+ }
@@ -0,0 +1,67 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import { h, Host } from "@stencil/core";
5
+ export class DuetShareChartItem {
6
+ constructor() {
7
+ /**
8
+ * The value of the item.
9
+ */
10
+ this.value = 0;
11
+ }
12
+ render() {
13
+ return (h(Host, { key: '4ba5a4ae29d40c6f06f4baabeff0b2d421d2fe32' }, h("div", { key: '2f001235b3069b2e77312156802aca83583f72d7', hidden: true }, h("slot", { key: '023986d23e42609f106de5b4e16d9bc59c30d605' }))));
14
+ }
15
+ static get is() { return "duet-share-chart-item"; }
16
+ static get encapsulation() { return "shadow"; }
17
+ static get properties() {
18
+ return {
19
+ "value": {
20
+ "type": "number",
21
+ "attribute": "value",
22
+ "mutable": false,
23
+ "complexType": {
24
+ "original": "number",
25
+ "resolved": "number",
26
+ "references": {}
27
+ },
28
+ "required": false,
29
+ "optional": false,
30
+ "docs": {
31
+ "tags": [],
32
+ "text": "The value of the item."
33
+ },
34
+ "getter": false,
35
+ "setter": false,
36
+ "reflect": false,
37
+ "defaultValue": "0"
38
+ },
39
+ "color": {
40
+ "type": "string",
41
+ "attribute": "color",
42
+ "mutable": false,
43
+ "complexType": {
44
+ "original": "DuetColor",
45
+ "resolved": "string",
46
+ "references": {
47
+ "DuetColor": {
48
+ "location": "import",
49
+ "path": "../../common-types",
50
+ "id": "src/common-types.d.ts::DuetColor"
51
+ }
52
+ }
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": "The color to use in the graph given as a Duet color token. If left out, the Share chart picks a color from a default set."
59
+ },
60
+ "getter": false,
61
+ "setter": false,
62
+ "reflect": false
63
+ }
64
+ };
65
+ }
66
+ static get elementRef() { return "element"; }
67
+ }
@@ -50,4 +50,8 @@
50
50
  }
51
51
  .duet-show-more.duet-theme-turva .content:focus {
52
52
  box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a;
53
+ }
54
+
55
+ :host(.duet-theme-turva2) .duet-show-more.duet-theme-turva {
56
+ color: rgb(35, 46, 61);
53
57
  }
@@ -136,12 +136,12 @@ export class DuetShowMore {
136
136
  * Always the last one of the class.
137
137
  */
138
138
  render() {
139
- return (h(Host, { key: '77e828e77011e6b34daa519acc2f5e0d918bba32' }, h("div", { key: '0a7265323fa24b6eaf734f150601a08363a138ba', class: {
139
+ return (h(Host, { key: 'c72a4a66bcedd71aaa4de71227da44163b6691c7' }, h("div", { key: '7f229c8848525ff7c081ee34fa1044f837c1079f', class: {
140
140
  "duet-show-more": true,
141
141
  "duet-theme-turva": this.theme === "turva",
142
142
  "duet-m-0": this.margin === "none",
143
143
  open: this.open,
144
- } }, h("div", { key: '982dadaab1d35e6b33d39f4b13cc762749d9dc54', ref: ref => (this.contentElement = ref), class: { content: true }, id: this.contentId, tabindex: this.open ? "0" : "" }, h("div", { key: '921775915ea6f6a2da3f54ea646c21588eb134bd', class: { "slotted-content": true } }, h("slot", { key: '19cfcbdfc392eb9915e4918792b4f404406939b2' }))), h("duet-button", { key: 'b66af202ee05aa55c875980743cba1e5265a6c36', id: this.buttonId, variation: "plain", "accessible-label": this.buttonAriaOpen ? this.showLessAccessibleLabel : this.showMoreAccessibleLabel, "accessible-expanded": this.buttonAriaOpen ? "true" : "false", "accessible-controls": this.contentId, accessiblePressed: this.isSafariBrowser ? this.open : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "icon-right": true, icon: this.open ? "action-arrow-up-small" : "action-arrow-down-small", "icon-size": "medium-small", size: "small", margin: this.buttonMargin, padding: this.buttonPadding, theme: this.theme === "turva" ? "turva" : "default" }, h("span", { key: '03278664411c1274ad117d1b4e353ae2da21ad21' }, this.open ? this.showLessLabel : this.showMoreLabel)))));
144
+ } }, h("div", { key: '6f3aca5e04f4862578d92be1cfafc31de40a8742', ref: ref => (this.contentElement = ref), class: { content: true }, id: this.contentId, tabindex: this.open ? "-1" : "" }, h("div", { key: 'e3d983d64cb3cce593c8af76bcb73a3cbe79202f', class: { "slotted-content": true } }, h("slot", { key: 'a0070a27d8774d45a112c969d7302e1d82327500' }))), h("duet-button", { key: 'faf518247c7d13158e51c77a5e044882942642f6', id: this.buttonId, variation: "plain", "accessible-label": this.buttonAriaOpen ? this.showLessAccessibleLabel : this.showMoreAccessibleLabel, "accessible-expanded": this.buttonAriaOpen ? "true" : "false", "accessible-controls": this.contentId, accessiblePressed: this.isSafariBrowser ? this.open : null, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "icon-right": true, icon: this.open ? "action-arrow-up-small" : "action-arrow-down-small", "icon-size": "medium-small", size: "small", margin: this.buttonMargin, padding: this.buttonPadding, theme: this.theme === "turva" ? "turva" : "default" }, h("span", { key: 'e0d03636ec1022c28fead58cb4807d371f0e9b62' }, this.open ? this.showLessLabel : this.showMoreLabel)))));
145
145
  }
146
146
  static get is() { return "duet-show-more"; }
147
147
  static get encapsulation() { return "shadow"; }
@@ -174,4 +174,32 @@ slot {
174
174
  }
175
175
  .duet-theme-turva slot {
176
176
  color: rgb(23, 28, 58);
177
+ }
178
+
179
+ :host(.duet-theme-turva2) .duet-slideout.duet-theme-turva {
180
+ color: rgb(35, 46, 61);
181
+ }
182
+ @media (min-width: 62em) {
183
+ :host(.duet-theme-turva2) .duet-slideout.duet-theme-turva .desktop-bg {
184
+ background: rgb(35, 46, 61);
185
+ }
186
+ }
187
+ :host(.duet-theme-turva2) .duet-slideout.duet-theme-turva button {
188
+ color: rgb(35, 46, 61);
189
+ }
190
+ :host(.duet-theme-turva2) .duet-slideout.duet-theme-turva button.active {
191
+ color: rgb(197, 29, 65);
192
+ }
193
+ :host(.duet-theme-turva2) .duet-slideout.duet-theme-turva button.active::after {
194
+ background: rgb(197, 29, 65);
195
+ }
196
+ :host(.duet-theme-turva2) .duet-slideout.duet-theme-turva .has-sticky-header-slot .top {
197
+ background: rgb(253, 247, 242);
198
+ }
199
+ :host(.duet-theme-turva2) .duet-slideout.duet-theme-turva .has-sticky-header-slot .sticky-header {
200
+ background: rgb(253, 247, 242);
201
+ border-bottom-color: rgb(248, 229, 217);
202
+ }
203
+ :host(.duet-theme-turva2) slot {
204
+ color: rgb(35, 46, 61);
177
205
  }
@@ -294,16 +294,16 @@ export class DuetSlideout {
294
294
  };
295
295
  const topLevelOpenMenuBarTranslation = getLocaleString(this.topLevelOpenMenuBarLangObject);
296
296
  const exitTranslation = getLocaleString(this.exitLangObject);
297
- return (h(Host, { key: 'f1af2161f067a29167ead323062f8ea103b429d0' }, h("div", { key: '766d832f6b096ca69ccb7175ec222fcc3ee642ae', class: { "duet-slideout": true, "duet-theme-turva": this.theme === "turva" } }, this.modal && h("duet-overlay", { key: '93810976f50722eddc54d5cf37b767e191e763fe', visible: this.open, "display-device": "large", zIndex: "600" }), h("div", { key: '53e899fe85d80cf9074555c7707e902d0b962ea3', ref: element => (this.dialog = element), tabindex: "-1", role: "dialog", id: "dialog", "aria-labelledby": "button", "aria-modal": this.isSafariBrowser ? false : true, "aria-flowto": "slot-container", class: {
297
+ return (h(Host, { key: 'd5fc5379a48de292b10c704161a4992c10eedf48' }, h("div", { key: 'd8b63e68d03786884a34dd8df9d7d03bc0c4554d', class: { "duet-slideout": true, "duet-theme-turva": this.theme === "turva" } }, this.modal && h("duet-overlay", { key: '073ac973858525fbb37d68e5528b552684000c81', visible: this.open, "display-device": "large", zIndex: "600" }), h("div", { key: 'ded136e561639dba54984936537c8359da325df0', ref: element => (this.dialog = element), tabindex: "-1", role: "dialog", id: "dialog", "aria-labelledby": "button", "aria-modal": this.isSafariBrowser ? false : true, "aria-flowto": "slot-container", class: {
298
298
  dialog: true,
299
299
  hidden: !this.open,
300
300
  modal: this.modal,
301
- }, style: styles }, h(FocusGuard, { key: '4f9c526cb264929c15b719b5a2d701915b2c5c1a', moveFocusTo: this.closeButton }), h("div", { key: 'f43307cd66d748956d0e91669c07a9a466178735', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, h("div", { key: 'ac504597db356aa7881ed7d0b36e1f7550a67a3d', class: "top" }, h("button", { key: '9d494f57f01da95865f96521cbe12d6c4f222974', ref: element => (this.closeButton = element), "aria-haspopup": "dialog", "aria-controls": "dialog", "aria-expanded": this.open ? "true" : "false", "aria-label": `${exitTranslation}`, type: "button", class: {
301
+ }, style: styles }, h(FocusGuard, { key: '86ee0669e0c080a053b332368b3bfba35b30cc8c', moveFocusTo: this.closeButton }), h("div", { key: '50b95210bd617e9807e8f94f7bc9c96f9ea6a8ff', class: { "top-container": true, "has-sticky-header-slot": this.hasStickyHeaderSlot } }, h("div", { key: '0c61ffe50dc9abb4ca5e59d78c069de25d05f90e', class: "top" }, h("button", { key: '7db284cfc9e1decf6d592882710761227519dd93', ref: element => (this.closeButton = element), "aria-haspopup": "dialog", "aria-controls": "dialog", "aria-expanded": this.open ? "true" : "false", "aria-label": `${exitTranslation}`, type: "button", class: {
302
302
  "slideout-close": true,
303
303
  active: this.open,
304
- }, onClick: this.onClick, inert: this.openPanel }, h("duet-icon", { key: '99a782f4e093ec82fed61786a644ce69ca5a62b3', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), h("div", { key: '2c908ff564b510b578d3f1254caa1840d7e57e29', class: "sticky-header" }, h("slot", { key: '33ab4628cdfc0dc9418ce3c275a24966b6c9d2d8', name: "sticky-header" }))), h("div", { key: '20b355693757d23bc16d3f31a76f6071209a84d6', id: "slot-container", role: this.accessibleRole, "aria-label": this.openPanel ? topLevelOpenMenuBarTranslation : null, class: {
304
+ }, onClick: this.onClick, inert: this.openPanel }, h("duet-icon", { key: '83fa3337162f14e0f8126ea981972776de18f186', name: "navigation-close", size: "small", margin: "none", color: "secondary" }))), h("div", { key: '4e73db5953ed25c6eb57f150dc911304420222e3', class: "sticky-header" }, h("slot", { key: '430f0f35f35e9df8952e7f5cfdabad4cfb4f94dc', name: "sticky-header" }))), h("div", { key: '5b5e438600a0d2cd85fe041bfd84d1bbcd54d716', id: "slot-container", role: this.accessibleRole, "aria-label": this.openPanel ? topLevelOpenMenuBarTranslation : null, class: {
305
305
  items: true,
306
- } }, h("slot", { key: '5e99e7ae8296174976aa0c14d8837427b8fbf8e8' })), h(FocusGuard, { key: '6931a81a3f11656480c57bfea90aaccb81a9cc65', moveFocusTo: this.closeButton })))));
306
+ } }, h("slot", { key: '0e7ab1f88b776f8b477b7f115c83472f0d5fae10' })), h(FocusGuard, { key: '4294b263eede7fa45c6828f3ba486a56a9ce1564', moveFocusTo: this.closeButton })))));
307
307
  }
308
308
  static get is() { return "duet-slideout"; }
309
309
  static get encapsulation() { return "shadow"; }
@@ -52,4 +52,8 @@
52
52
 
53
53
  .duet-theme-turva ::slotted(:not(:last-child))::after {
54
54
  background: rgb(23, 28, 58);
55
+ }
56
+
57
+ :host(.duet-theme-turva2) .duet-theme-turva ::slotted(:not(:last-child))::after {
58
+ background: rgb(35, 46, 61);
55
59
  }
@@ -38,7 +38,7 @@ export class DuetSlideoutLang {
38
38
  */
39
39
  render() {
40
40
  const langTranslation = getLocaleString(this.chooseLangObject);
41
- return (h(Host, { key: '81d1f6d9e2c6d9f6dd8b5218608be304ffde350f' }, h("div", { key: '26b3a9e6224f4a53c13998466b62f5430c1d944e', class: "duet-slideout-lang", role: "group", "aria-label": langTranslation }, h("duet-icon", { key: '4fd6ea04d3f884ee1a58979d4d7bb74151aa3331', name: "navigation-language", margin: "none", color: "secondary" }), h("slot", { key: 'ea0b580bbccc19ab497e06b4e668cf4825af3307' }))));
41
+ return (h(Host, { key: '42d97d6392e13c989b34c9a47c81ea725f6f9bfa' }, h("div", { key: 'a0852b95d079f61557b3673870f03409972f5786', class: "duet-slideout-lang", role: "group", "aria-label": langTranslation }, h("duet-icon", { key: 'd3ecc2574ac64f2d911118054e3873b9ede245fb', name: "navigation-language", margin: "none", color: "secondary" }), h("slot", { key: '9735206820035e046d83f2dd2bce49137dea8108' }))));
42
42
  }
43
43
  static get is() { return "duet-slideout-lang"; }
44
44
  static get encapsulation() { return "shadow"; }
@@ -118,4 +118,14 @@ slot[name=description]::slotted(*) {
118
118
  }
119
119
  .duet-theme-turva slot[name=description]::slotted(*) {
120
120
  color: rgb(113, 118, 132);
121
+ }
122
+
123
+ :host(.duet-theme-turva2) .duet-slideout-link.duet-theme-turva {
124
+ color: rgb(35, 46, 61);
125
+ }
126
+ :host(.duet-theme-turva2) .duet-slideout-link.duet-theme-turva.active .label-content::after {
127
+ background: rgb(197, 29, 65);
128
+ }
129
+ :host(.duet-theme-turva2) slot[name=description]::slotted(*) {
130
+ color: rgb(35, 46, 61);
121
131
  }