@duetds/components 4.30.0 → 4.33.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 (424) hide show
  1. package/hydrate/index.js +1481 -434
  2. package/lib/cjs/{dom-e89ebf90.js → dom-c850c8d7.js} +1 -1
  3. package/lib/cjs/duet-alert.cjs.entry.js +4 -2
  4. package/lib/cjs/duet-badge.cjs.entry.js +2 -2
  5. package/lib/cjs/duet-button_2.cjs.entry.js +6 -5
  6. package/lib/cjs/duet-caption_4.cjs.entry.js +21 -15
  7. package/lib/cjs/duet-card.cjs.entry.js +6 -6
  8. package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
  9. package/lib/cjs/duet-choice_2.cjs.entry.js +56 -25
  10. package/lib/cjs/duet-collapsible.cjs.entry.js +5 -2
  11. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-date-picker.cjs.entry.js +23 -13
  13. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-editable-table-button_3.cjs.entry.js +232 -0
  15. package/lib/cjs/{duet-table.cjs.entry.js → duet-editable-table_3.cjs.entry.js} +206 -2
  16. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-footer.cjs.entry.js +4 -4
  18. package/lib/cjs/duet-grid_2.cjs.entry.js +52 -4
  19. package/lib/cjs/duet-header_2.cjs.entry.js +26 -10
  20. package/lib/cjs/duet-hero.cjs.entry.js +6 -6
  21. package/lib/cjs/duet-icon.cjs.entry.js +6 -14
  22. package/lib/cjs/duet-input_2.cjs.entry.js +7 -7
  23. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-list_2.cjs.entry.js +2 -2
  25. package/lib/cjs/duet-modal.cjs.entry.js +8 -7
  26. package/lib/cjs/duet-notification_2.cjs.entry.js +6 -5
  27. package/lib/cjs/duet-number-input.cjs.entry.js +36 -15
  28. package/lib/cjs/duet-progress.cjs.entry.js +75 -0
  29. package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
  30. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  31. package/lib/cjs/duet-select.cjs.entry.js +6 -6
  32. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-tab_2.cjs.entry.js +12 -6
  34. package/lib/cjs/duet-textarea.cjs.entry.js +5 -5
  35. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-tooltip.cjs.entry.js +21 -10
  37. package/lib/cjs/duet-tray.cjs.entry.js +21 -10
  38. package/lib/cjs/duet-upload.cjs.entry.js +403 -180
  39. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  40. package/lib/cjs/duet.cjs.js +4 -4
  41. package/lib/cjs/{focus-utils-7605778f.js → focus-utils-a7a1fb8b.js} +1 -1
  42. package/lib/cjs/{index-0c949193.js → index-b724d698.js} +88 -77
  43. package/lib/cjs/js-utils-33a9dbe3.js +16 -0
  44. package/lib/cjs/{language-utils-70d6a9a4.js → language-utils-aa282901.js} +28 -9
  45. package/lib/cjs/loader.cjs.js +3 -3
  46. package/lib/cjs/{shadow-css-0c8c175b.js → shadow-css-e3edeed1.js} +9 -10
  47. package/lib/cjs/{string-utils-a6de43d8.js → string-utils-267e3dbb.js} +7 -0
  48. package/lib/cjs/{token-utils-13e5d13e.js → token-utils-63a9c8dc.js} +1 -1
  49. package/lib/cjs/{tokens.module-53b3bd92.js → tokens.module-6b2df1c2.js} +2 -0
  50. package/lib/cjs/{watch-options-3877c082.js → watch-options-d88afac0.js} +29 -6
  51. package/lib/collection/collection-manifest.json +15 -8
  52. package/lib/collection/components/duet-alert/duet-alert.js +12 -6
  53. package/lib/collection/components/duet-badge/duet-badge.css +1 -0
  54. package/lib/collection/components/duet-button/duet-button.js +17 -15
  55. package/lib/collection/components/duet-card/duet-card.css +30 -7
  56. package/lib/collection/components/duet-card/duet-card.js +4 -3
  57. package/lib/collection/components/duet-checkbox/duet-checkbox.css +1 -1
  58. package/lib/collection/components/duet-choice/duet-choice.css +16 -3
  59. package/lib/collection/components/duet-choice/duet-choice.js +123 -36
  60. package/lib/collection/components/duet-choice-group/duet-choice-group.css +1 -0
  61. package/lib/collection/components/duet-choice-group/duet-choice-group.js +4 -4
  62. package/lib/collection/components/duet-date-picker/duet-date-picker.css +1 -1
  63. package/lib/collection/components/duet-date-picker/duet-date-picker.js +78 -43
  64. package/lib/collection/components/duet-editable-table/duet-editable-table-button.css +32 -0
  65. package/lib/collection/components/duet-editable-table/duet-editable-table-button.js +218 -0
  66. package/lib/collection/components/duet-editable-table/duet-editable-table-item.css +36 -0
  67. package/lib/collection/components/duet-editable-table/duet-editable-table-item.js +203 -0
  68. package/lib/collection/components/duet-editable-table/duet-editable-table-tabledata.js +13 -0
  69. package/lib/collection/components/duet-editable-table/duet-editable-table.css +16 -0
  70. package/lib/collection/components/duet-editable-table/duet-editable-table.js +348 -0
  71. package/lib/collection/components/duet-footer/duet-footer.js +17 -15
  72. package/lib/collection/components/duet-grid/duet-grid.js +57 -6
  73. package/lib/collection/components/duet-grid-item/duet-grid-item.js +4 -4
  74. package/lib/collection/components/duet-header/duet-header.js +60 -35
  75. package/lib/collection/components/duet-heading/duet-heading.css +4 -0
  76. package/lib/collection/components/duet-heading/duet-heading.js +7 -6
  77. package/lib/collection/components/duet-hero/duet-hero.js +20 -15
  78. package/lib/collection/components/duet-icon/duet-icon.js +2 -6
  79. package/lib/collection/components/duet-icon/icon-utils.js +5 -8
  80. package/lib/collection/components/duet-input/duet-input.css +15 -0
  81. package/lib/collection/components/duet-input/duet-input.js +4 -4
  82. package/lib/collection/components/duet-label/duet-label.css +2 -0
  83. package/lib/collection/components/duet-link/duet-link.js +18 -19
  84. package/lib/collection/components/duet-logo/duet-logo.js +4 -4
  85. package/lib/collection/components/duet-modal/duet-modal.js +22 -17
  86. package/lib/collection/components/duet-notification/duet-notification.js +8 -8
  87. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +20 -15
  88. package/lib/collection/components/duet-number-input/duet-number-input.js +153 -29
  89. package/lib/collection/components/duet-paragraph/duet-paragraph.css +6 -0
  90. package/lib/collection/components/duet-paragraph/duet-paragraph.js +34 -3
  91. package/lib/collection/components/duet-progress/duet-progress.css +103 -0
  92. package/lib/collection/components/duet-progress/duet-progress.js +240 -0
  93. package/lib/collection/components/duet-radio/duet-radio.js +6 -6
  94. package/lib/collection/components/duet-select/duet-select.css +15 -0
  95. package/lib/collection/components/duet-select/duet-select.js +3 -3
  96. package/lib/collection/components/duet-step/duet-step.js +8 -8
  97. package/lib/collection/components/duet-tab-group/duet-tab-group.css +2 -2
  98. package/lib/collection/components/duet-tab-group/duet-tab-group.js +43 -12
  99. package/lib/collection/components/duet-textarea/duet-textarea.css +19 -0
  100. package/lib/collection/components/duet-textarea/duet-textarea.js +5 -4
  101. package/lib/collection/components/duet-tooltip/duet-tooltip.js +82 -20
  102. package/lib/collection/components/duet-tray/duet-tray.js +79 -17
  103. package/lib/collection/components/duet-upload/duet-upload-aria-status.js +217 -0
  104. package/lib/collection/components/duet-upload/duet-upload-editable-item-error.js +16 -0
  105. package/lib/collection/components/duet-upload/duet-upload-editable-item-inprogres.js +8 -0
  106. package/lib/collection/components/duet-upload/duet-upload-editable-item-success.js +30 -0
  107. package/lib/collection/components/duet-upload/duet-upload.css +17 -86
  108. package/lib/collection/components/duet-upload/duet-upload.js +551 -153
  109. package/lib/collection/components/duet-upload/errorcodes.utils.js +16 -4
  110. package/lib/collection/components/duet-upload/xhr.helpers.js +2 -6
  111. package/lib/collection/utils/fixture-utils.js +7 -5
  112. package/lib/collection/utils/js-utils.js +12 -0
  113. package/lib/collection/utils/language-utils.js +26 -9
  114. package/lib/collection/utils/string-utils.js +6 -0
  115. package/lib/collection/utils/watch-options.js +35 -6
  116. package/lib/custom-elements-bundle/index.d.ts +30 -0
  117. package/lib/custom-elements-bundle/index.js +1603 -721
  118. package/lib/duet/duet.esm.js +1 -1
  119. package/lib/duet/duet.js +1 -1
  120. package/lib/duet/{p-4a7911fd.entry.js → p-00735436.entry.js} +1 -1
  121. package/lib/duet/p-060d79be.entry.js +4 -0
  122. package/lib/duet/p-0d22396e.system.js +16 -0
  123. package/lib/duet/p-10deead0.system.js +4 -0
  124. package/lib/duet/p-1208c84f.entry.js +4 -0
  125. package/lib/duet/p-12721178.js +4 -0
  126. package/lib/duet/p-155ef581.system.entry.js +4 -0
  127. package/lib/duet/p-16c48c5d.entry.js +4 -0
  128. package/lib/duet/p-1797df7b.system.entry.js +4 -0
  129. package/lib/duet/p-1a08fc22.system.entry.js +4 -0
  130. package/lib/duet/{p-d1817efe.system.entry.js → p-237e47b4.system.entry.js} +1 -1
  131. package/lib/duet/p-2443bdca.system.entry.js +4 -0
  132. package/lib/duet/p-263bc9cd.system.entry.js +4 -0
  133. package/lib/duet/p-2764f081.js +4 -0
  134. package/lib/duet/p-27d80cef.system.entry.js +4 -0
  135. package/lib/duet/p-28e02c08.entry.js +4 -0
  136. package/lib/duet/{p-f81d8534.entry.js → p-2bb1460c.entry.js} +1 -1
  137. package/lib/duet/p-33c58756.entry.js +4 -0
  138. package/lib/duet/{p-bd9a7d8f.js → p-35a3794e.js} +0 -0
  139. package/lib/duet/{p-bbc229d8.system.entry.js → p-374fb7e6.system.entry.js} +1 -1
  140. package/lib/duet/p-387823af.system.entry.js +4 -0
  141. package/lib/duet/p-3af5d66f.entry.js +4 -0
  142. package/lib/duet/{p-322d1c38.js → p-3c1971d8.js} +1 -1
  143. package/lib/duet/{p-7e108b7e.entry.js → p-4607af59.entry.js} +1 -1
  144. package/lib/duet/p-48d1eb1f.system.entry.js +4 -0
  145. package/lib/duet/p-4a87e9ab.system.entry.js +4 -0
  146. package/lib/duet/{p-031c2cd8.system.entry.js → p-4b6ebe40.system.entry.js} +1 -1
  147. package/lib/duet/p-4e28da18.system.entry.js +4 -0
  148. package/lib/duet/p-548d484e.js +4 -0
  149. package/lib/duet/p-5826523b.entry.js +4 -0
  150. package/lib/duet/{p-ce1374a4.system.entry.js → p-58750bae.system.entry.js} +1 -1
  151. package/lib/duet/p-597d99c7.entry.js +4 -0
  152. package/lib/duet/p-5ea0cd19.entry.js +4 -0
  153. package/lib/duet/p-63d5bf73.system.entry.js +4 -0
  154. package/lib/duet/p-67d9a9a9.system.entry.js +4 -0
  155. package/lib/duet/p-6a19b5ec.entry.js +4 -0
  156. package/lib/duet/p-6cc3be76.system.entry.js +4 -0
  157. package/lib/duet/p-6e363557.system.js +4 -0
  158. package/lib/duet/p-6e6e76db.system.entry.js +4 -0
  159. package/lib/duet/p-70fafc98.system.js +4 -0
  160. package/lib/duet/p-7368b14e.system.entry.js +4 -0
  161. package/lib/duet/p-751542a0.system.entry.js +4 -0
  162. package/lib/duet/p-794659ac.entry.js +4 -0
  163. package/lib/duet/p-7e8d5bb9.system.entry.js +4 -0
  164. package/lib/duet/p-7fee0d23.system.entry.js +4 -0
  165. package/lib/duet/p-81867417.system.js +4 -0
  166. package/lib/duet/p-86daec1c.entry.js +4 -0
  167. package/lib/duet/{p-4265de16.system.entry.js → p-8b5ca0e7.system.entry.js} +1 -1
  168. package/lib/duet/{p-66dde4d2.entry.js → p-8cb7416d.entry.js} +1 -1
  169. package/lib/duet/p-8f826843.system.entry.js +4 -0
  170. package/lib/duet/p-94169303.entry.js +4 -0
  171. package/lib/duet/{p-36007600.entry.js → p-9481e312.entry.js} +1 -1
  172. package/lib/duet/{p-f82709ba.entry.js → p-984576c9.entry.js} +1 -1
  173. package/lib/duet/p-986779fb.js +4 -0
  174. package/lib/duet/p-987edcd0.js +15 -0
  175. package/lib/duet/{p-35e45c19.system.js → p-9a945278.system.js} +1 -1
  176. package/lib/duet/p-9d73343a.entry.js +4 -0
  177. package/lib/duet/{p-e26116e0.system.entry.js → p-9dca5c22.system.entry.js} +1 -1
  178. package/lib/duet/p-a207b008.entry.js +4 -0
  179. package/lib/duet/p-a5b9c192.system.entry.js +4 -0
  180. package/lib/duet/p-a6a84ec6.entry.js +4 -0
  181. package/lib/duet/{p-2d2c45f9.entry.js → p-a890da72.entry.js} +1 -1
  182. package/lib/duet/p-a9859a82.entry.js +4 -0
  183. package/lib/duet/p-aba68b7b.entry.js +4 -0
  184. package/lib/duet/p-acc57c77.entry.js +4 -0
  185. package/lib/duet/{p-2826f987.js → p-ad07f399.js} +1 -1
  186. package/lib/duet/p-aee24388.system.entry.js +4 -0
  187. package/lib/duet/p-aef1b720.system.entry.js +4 -0
  188. package/lib/duet/{p-62806bb6.system.entry.js → p-af41d894.system.entry.js} +1 -1
  189. package/lib/duet/p-b25d3769.js +4 -0
  190. package/lib/duet/{p-dee41056.system.entry.js → p-b32224fe.system.entry.js} +1 -1
  191. package/lib/duet/p-b3744481.entry.js +4 -0
  192. package/lib/duet/{p-de2be65b.system.js → p-b42d81c3.system.js} +1 -1
  193. package/lib/duet/{p-27d538f7.system.entry.js → p-b4e87f02.system.entry.js} +1 -1
  194. package/lib/duet/{p-f71f12ed.entry.js → p-bf93a991.entry.js} +1 -1
  195. package/lib/duet/{p-fd98468a.system.js → p-c18a599e.system.js} +0 -0
  196. package/lib/duet/p-c2e77278.entry.js +4 -0
  197. package/lib/duet/p-c34329f3.entry.js +4 -0
  198. package/lib/duet/{p-59a07cf9.entry.js → p-c36b4da0.entry.js} +1 -1
  199. package/lib/duet/{p-a321a98c.entry.js → p-cdd70b93.entry.js} +1 -1
  200. package/lib/duet/p-d1c19f04.system.entry.js +4 -0
  201. package/lib/duet/{p-f71e337e.system.entry.js → p-d3a3c3c7.system.entry.js} +1 -1
  202. package/lib/duet/{p-345ea4f2.system.entry.js → p-d4118b6e.system.entry.js} +1 -1
  203. package/lib/duet/{p-3dc9d15d.system.entry.js → p-d744d188.system.entry.js} +1 -1
  204. package/lib/duet/p-ddb6344c.system.js +4 -0
  205. package/lib/duet/p-de07c7d7.entry.js +4 -0
  206. package/lib/duet/p-dfe79666.system.entry.js +4 -0
  207. package/lib/duet/p-e12f2b8b.system.js +4 -0
  208. package/lib/duet/p-e2a44156.js +4 -0
  209. package/lib/duet/p-e76b722f.entry.js +4 -0
  210. package/lib/duet/p-e964d062.entry.js +4 -0
  211. package/lib/duet/p-eb55ccd2.system.js +4 -0
  212. package/lib/duet/p-f0a4b68d.system.entry.js +4 -0
  213. package/lib/duet/p-f364eb96.entry.js +4 -0
  214. package/lib/duet/{p-a88df408.entry.js → p-f8ce39fb.entry.js} +1 -1
  215. package/lib/esm/{dom-21034390.js → dom-58cd15f6.js} +1 -1
  216. package/lib/esm/duet-alert.entry.js +4 -2
  217. package/lib/esm/duet-badge.entry.js +2 -2
  218. package/lib/esm/duet-button_2.entry.js +6 -5
  219. package/lib/esm/duet-caption_4.entry.js +21 -15
  220. package/lib/esm/duet-card.entry.js +6 -6
  221. package/lib/esm/duet-checkbox.entry.js +2 -2
  222. package/lib/esm/duet-choice_2.entry.js +57 -26
  223. package/lib/esm/duet-collapsible.entry.js +5 -2
  224. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  225. package/lib/esm/duet-date-picker.entry.js +23 -13
  226. package/lib/esm/duet-divider_2.entry.js +1 -1
  227. package/lib/esm/duet-editable-table-button_3.entry.js +226 -0
  228. package/lib/esm/{duet-table.entry.js → duet-editable-table_3.entry.js} +205 -3
  229. package/lib/esm/duet-empty-state.entry.js +1 -1
  230. package/lib/esm/duet-footer.entry.js +4 -4
  231. package/lib/esm/duet-grid_2.entry.js +52 -4
  232. package/lib/esm/duet-header_2.entry.js +26 -10
  233. package/lib/esm/duet-hero.entry.js +6 -6
  234. package/lib/esm/duet-icon.entry.js +6 -14
  235. package/lib/esm/duet-input_2.entry.js +7 -7
  236. package/lib/esm/duet-layout.entry.js +1 -1
  237. package/lib/esm/duet-list_2.entry.js +2 -2
  238. package/lib/esm/duet-modal.entry.js +8 -7
  239. package/lib/esm/duet-notification_2.entry.js +6 -5
  240. package/lib/esm/duet-number-input.entry.js +36 -15
  241. package/lib/esm/duet-progress.entry.js +71 -0
  242. package/lib/esm/duet-radio_2.entry.js +2 -2
  243. package/lib/esm/duet-range-slider.entry.js +2 -2
  244. package/lib/esm/duet-select.entry.js +6 -6
  245. package/lib/esm/duet-step_2.entry.js +1 -1
  246. package/lib/esm/duet-tab_2.entry.js +12 -6
  247. package/lib/esm/duet-textarea.entry.js +5 -5
  248. package/lib/esm/duet-toggle.entry.js +1 -1
  249. package/lib/esm/duet-tooltip.entry.js +21 -10
  250. package/lib/esm/duet-tray.entry.js +21 -10
  251. package/lib/esm/duet-upload.entry.js +403 -180
  252. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  253. package/lib/esm/duet.js +4 -4
  254. package/lib/esm/{focus-utils-0b12f0df.js → focus-utils-1fe0dcd0.js} +1 -1
  255. package/lib/esm/{index-f70ddc7f.js → index-84d97bd1.js} +88 -78
  256. package/lib/esm/js-utils-b69f17df.js +14 -0
  257. package/lib/esm/{language-utils-ab9c3afc.js → language-utils-344d894c.js} +28 -10
  258. package/lib/esm/loader.js +3 -3
  259. package/lib/esm/{shadow-css-31e2d504.js → shadow-css-7c726abb.js} +9 -10
  260. package/lib/esm/{string-utils-69cf0d09.js → string-utils-2f1793b8.js} +7 -1
  261. package/lib/esm/{token-utils-5a35377f.js → token-utils-590d9413.js} +1 -1
  262. package/lib/esm/{tokens.module-edb66c04.js → tokens.module-49cbf963.js} +3 -1
  263. package/lib/esm/watch-options-dd55bce8.js +57 -0
  264. package/lib/esm-es5/{dom-21034390.js → dom-58cd15f6.js} +0 -0
  265. package/lib/esm-es5/duet-alert.entry.js +1 -1
  266. package/lib/esm-es5/duet-badge.entry.js +1 -1
  267. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  268. package/lib/esm-es5/duet-caption_4.entry.js +2 -2
  269. package/lib/esm-es5/duet-card.entry.js +1 -1
  270. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  271. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  272. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  273. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  274. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  275. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  276. package/lib/esm-es5/duet-editable-table-button_3.entry.js +4 -0
  277. package/lib/esm-es5/duet-editable-table_3.entry.js +4 -0
  278. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  279. package/lib/esm-es5/duet-footer.entry.js +1 -1
  280. package/lib/esm-es5/duet-grid_2.entry.js +2 -2
  281. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  282. package/lib/esm-es5/duet-hero.entry.js +1 -1
  283. package/lib/esm-es5/duet-icon.entry.js +2 -2
  284. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  285. package/lib/esm-es5/duet-layout.entry.js +1 -1
  286. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  287. package/lib/esm-es5/duet-modal.entry.js +1 -1
  288. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  289. package/lib/esm-es5/duet-number-input.entry.js +2 -2
  290. package/lib/esm-es5/duet-progress.entry.js +4 -0
  291. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  292. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  293. package/lib/esm-es5/duet-select.entry.js +1 -1
  294. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  295. package/lib/esm-es5/duet-tab_2.entry.js +2 -2
  296. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  297. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  298. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  299. package/lib/esm-es5/duet-tray.entry.js +1 -1
  300. package/lib/esm-es5/duet-upload.entry.js +2 -2
  301. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  302. package/lib/esm-es5/duet.js +1 -1
  303. package/lib/esm-es5/{focus-utils-0b12f0df.js → focus-utils-1fe0dcd0.js} +1 -1
  304. package/lib/esm-es5/index-84d97bd1.js +4 -0
  305. package/lib/esm-es5/js-utils-b69f17df.js +4 -0
  306. package/lib/esm-es5/language-utils-344d894c.js +4 -0
  307. package/lib/esm-es5/loader.js +1 -1
  308. package/lib/esm-es5/shadow-css-7c726abb.js +15 -0
  309. package/lib/esm-es5/{string-utils-69cf0d09.js → string-utils-2f1793b8.js} +1 -1
  310. package/lib/esm-es5/{token-utils-5a35377f.js → token-utils-590d9413.js} +1 -1
  311. package/lib/esm-es5/tokens.module-49cbf963.js +4 -0
  312. package/lib/esm-es5/watch-options-dd55bce8.js +4 -0
  313. package/lib/types/components/duet-alert/duet-alert.d.ts +2 -1
  314. package/lib/types/components/duet-button/duet-button.d.ts +1 -1
  315. package/lib/types/components/duet-choice/duet-choice.d.ts +24 -5
  316. package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +15 -9
  317. package/lib/types/components/duet-editable-table/duet-editable-table-button.d.ts +72 -0
  318. package/lib/types/components/duet-editable-table/duet-editable-table-item.d.ts +72 -0
  319. package/lib/types/components/duet-editable-table/duet-editable-table-tabledata.d.ts +7 -0
  320. package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +84 -0
  321. package/lib/types/components/duet-footer/duet-footer.d.ts +1 -1
  322. package/lib/types/components/duet-grid/duet-grid.d.ts +16 -2
  323. package/lib/types/components/duet-header/duet-header.d.ts +21 -5
  324. package/lib/types/components/duet-heading/duet-heading.d.ts +2 -2
  325. package/lib/types/components/duet-hero/duet-hero.d.ts +3 -3
  326. package/lib/types/components/duet-icon/duet-icon.d.ts +1 -1
  327. package/lib/types/components/duet-link/duet-link.d.ts +2 -3
  328. package/lib/types/components/duet-modal/duet-modal.d.ts +3 -3
  329. package/lib/types/components/duet-notification-drawer/duet-notification-drawer.d.ts +3 -3
  330. package/lib/types/components/duet-number-input/duet-number-input.d.ts +21 -0
  331. package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +9 -1
  332. package/lib/types/components/duet-progress/duet-progress.d.ts +64 -0
  333. package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +6 -0
  334. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +11 -0
  335. package/lib/types/components/duet-tray/duet-tray.d.ts +11 -0
  336. package/lib/types/components/duet-upload/duet-upload-aria-status.d.ts +49 -0
  337. package/lib/types/components/duet-upload/duet-upload-editable-item-error.d.ts +7 -0
  338. package/lib/types/components/duet-upload/duet-upload-editable-item-inprogres.d.ts +7 -0
  339. package/lib/types/components/duet-upload/duet-upload-editable-item-success.d.ts +8 -0
  340. package/lib/types/components/duet-upload/duet-upload.d.ts +94 -25
  341. package/lib/types/components/duet-upload/errorcodes.utils.d.ts +1 -0
  342. package/lib/types/components/duet-upload/xhr.helpers.d.ts +7 -1
  343. package/lib/types/components.d.ts +611 -79
  344. package/lib/types/utils/js-utils.d.ts +1 -0
  345. package/lib/types/utils/language-utils.d.ts +8 -3
  346. package/lib/types/utils/string-utils.d.ts +1 -0
  347. package/lib/types/utils/watch-options.d.ts +2 -0
  348. package/package.json +19 -15
  349. package/hydrate/package.json +0 -6
  350. package/lib/cjs/duet-fieldset.cjs.entry.js +0 -62
  351. package/lib/collection/components/duet-upload/duet-upload-file-list.js +0 -49
  352. package/lib/duet/p-0733c303.system.entry.js +0 -4
  353. package/lib/duet/p-095060cc.js +0 -4
  354. package/lib/duet/p-156864a1.system.entry.js +0 -4
  355. package/lib/duet/p-15c15c6a.js +0 -15
  356. package/lib/duet/p-1911dfe7.system.entry.js +0 -4
  357. package/lib/duet/p-1c41525a.entry.js +0 -4
  358. package/lib/duet/p-1cfe38b1.system.entry.js +0 -4
  359. package/lib/duet/p-2834a302.entry.js +0 -4
  360. package/lib/duet/p-28a3d38f.system.entry.js +0 -4
  361. package/lib/duet/p-2a1a9f9f.entry.js +0 -4
  362. package/lib/duet/p-2a4d7c5b.system.entry.js +0 -4
  363. package/lib/duet/p-3eb36e3d.entry.js +0 -4
  364. package/lib/duet/p-4095dba5.entry.js +0 -4
  365. package/lib/duet/p-418b2ce7.system.js +0 -4
  366. package/lib/duet/p-4289b543.entry.js +0 -4
  367. package/lib/duet/p-43e39d98.system.js +0 -4
  368. package/lib/duet/p-46a3ae43.system.js +0 -4
  369. package/lib/duet/p-4a38cf9d.entry.js +0 -4
  370. package/lib/duet/p-4be8e814.entry.js +0 -4
  371. package/lib/duet/p-4dcea8fb.system.entry.js +0 -4
  372. package/lib/duet/p-591b2137.entry.js +0 -4
  373. package/lib/duet/p-5c5bdb06.system.entry.js +0 -4
  374. package/lib/duet/p-5f70e318.entry.js +0 -4
  375. package/lib/duet/p-62c294d6.system.entry.js +0 -4
  376. package/lib/duet/p-6a356ab1.system.js +0 -4
  377. package/lib/duet/p-6c2729da.js +0 -4
  378. package/lib/duet/p-6f107847.system.entry.js +0 -4
  379. package/lib/duet/p-77a5fe4c.system.js +0 -4
  380. package/lib/duet/p-7809e78b.system.entry.js +0 -4
  381. package/lib/duet/p-7a36d76f.system.entry.js +0 -4
  382. package/lib/duet/p-7ee52f58.entry.js +0 -4
  383. package/lib/duet/p-884693f1.entry.js +0 -4
  384. package/lib/duet/p-89db3b94.entry.js +0 -4
  385. package/lib/duet/p-8cfce39e.system.entry.js +0 -4
  386. package/lib/duet/p-8ffe1461.system.entry.js +0 -4
  387. package/lib/duet/p-9381c2d4.entry.js +0 -4
  388. package/lib/duet/p-9a450c9a.entry.js +0 -4
  389. package/lib/duet/p-9a89ec39.js +0 -4
  390. package/lib/duet/p-9bbfe606.system.entry.js +0 -4
  391. package/lib/duet/p-a6096b05.system.entry.js +0 -4
  392. package/lib/duet/p-a89d5d7c.entry.js +0 -4
  393. package/lib/duet/p-b07055fd.system.entry.js +0 -4
  394. package/lib/duet/p-b4374f0e.entry.js +0 -4
  395. package/lib/duet/p-b456d684.system.entry.js +0 -4
  396. package/lib/duet/p-bd18c93f.js +0 -4
  397. package/lib/duet/p-bddb1c15.system.entry.js +0 -4
  398. package/lib/duet/p-c0b95b58.entry.js +0 -4
  399. package/lib/duet/p-c3688975.entry.js +0 -4
  400. package/lib/duet/p-c4d183e6.entry.js +0 -4
  401. package/lib/duet/p-c9303f9a.entry.js +0 -4
  402. package/lib/duet/p-cd4e8ccf.js +0 -4
  403. package/lib/duet/p-ceb75b35.system.entry.js +0 -4
  404. package/lib/duet/p-cf243bcb.system.entry.js +0 -4
  405. package/lib/duet/p-d37c8a05.system.js +0 -4
  406. package/lib/duet/p-d989af11.entry.js +0 -4
  407. package/lib/duet/p-e58ca7af.system.js +0 -16
  408. package/lib/duet/p-e6128d82.system.entry.js +0 -4
  409. package/lib/duet/p-e86cdc17.entry.js +0 -4
  410. package/lib/duet/p-eadb29c7.entry.js +0 -4
  411. package/lib/duet/p-f30b14d6.system.entry.js +0 -4
  412. package/lib/duet/p-f79f8da1.entry.js +0 -4
  413. package/lib/duet/p-fc397e03.system.entry.js +0 -4
  414. package/lib/esm/duet-fieldset.entry.js +0 -58
  415. package/lib/esm/watch-options-de55ea78.js +0 -35
  416. package/lib/esm-es5/duet-fieldset.entry.js +0 -4
  417. package/lib/esm-es5/duet-table.entry.js +0 -4
  418. package/lib/esm-es5/index-f70ddc7f.js +0 -4
  419. package/lib/esm-es5/language-utils-ab9c3afc.js +0 -4
  420. package/lib/esm-es5/shadow-css-31e2d504.js +0 -15
  421. package/lib/esm-es5/tokens.module-edb66c04.js +0 -4
  422. package/lib/esm-es5/watch-options-de55ea78.js +0 -4
  423. package/lib/html.html-data.json +0 -4556
  424. package/lib/types/components/duet-upload/duet-upload-file-list.d.ts +0 -9
@@ -52,10 +52,10 @@ export class DuetModal {
52
52
  */
53
53
  this.language = getLanguage();
54
54
  /**
55
- * Property to change accessibleCloseLabel defaults on the component.
56
- * normally you would handle these strings on an application level and override @accessibleCloseLabel when needed
55
+ * Defaults for accessibleCloseLabel
56
+ * @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
57
57
  */
58
- this.accessibleCloseLabelDefault = {
58
+ this.accessibleCloseLabelDefaults = {
59
59
  fi: "Sulje ikkuna",
60
60
  sv: "Stäng fönstret",
61
61
  en: "Close the dialog",
@@ -66,7 +66,7 @@ export class DuetModal {
66
66
  * Swedish translation for this property is “Stäng fönstret”.
67
67
  * @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
68
68
  */
69
- this.accessibleCloseLabel = getLocaleString(this.accessibleCloseLabelDefault);
69
+ this.accessibleCloseLabel = getLocaleString(this.accessibleCloseLabelDefaults, this.language);
70
70
  /**
71
71
  * Size of the modal window.
72
72
  */
@@ -263,11 +263,11 @@ export class DuetModal {
263
263
  "optional": false,
264
264
  "docs": {
265
265
  "tags": [{
266
- "text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing",
267
- "name": "deprecated"
266
+ "name": "deprecated",
267
+ "text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
268
268
  }, {
269
- "text": "\"fi\"",
270
- "name": "default"
269
+ "name": "default",
270
+ "text": "\"fi\""
271
271
  }],
272
272
  "text": "The currently active language. This setting also changes the logo to match\nthe chosen language."
273
273
  },
@@ -275,12 +275,12 @@ export class DuetModal {
275
275
  "reflect": false,
276
276
  "defaultValue": "getLanguage()"
277
277
  },
278
- "accessibleCloseLabelDefault": {
279
- "type": "unknown",
278
+ "accessibleCloseLabelDefaults": {
279
+ "type": "string",
280
280
  "mutable": false,
281
281
  "complexType": {
282
- "original": "DuetLangObject",
283
- "resolved": "DuetLangObject",
282
+ "original": "DuetLangObject | string",
283
+ "resolved": "DuetLangObject | string",
284
284
  "references": {
285
285
  "DuetLangObject": {
286
286
  "location": "import",
@@ -291,9 +291,14 @@ export class DuetModal {
291
291
  "required": false,
292
292
  "optional": false,
293
293
  "docs": {
294
- "tags": [],
295
- "text": "Property to change accessibleCloseLabel defaults on the component.\nnormally you would handle these strings on an application level and override @accessibleCloseLabel when needed"
294
+ "tags": [{
295
+ "name": "default",
296
+ "text": "{fi: \"Sulje ikkuna\", sv: \"St\u00E4ng f\u00F6nstret\", en: \"Close the dialog\", }"
297
+ }],
298
+ "text": "Defaults for accessibleCloseLabel"
296
299
  },
300
+ "attribute": "accessible-close-label-default",
301
+ "reflect": false,
297
302
  "defaultValue": "{\n fi: \"Sulje ikkuna\",\n sv: \"St\u00E4ng f\u00F6nstret\",\n en: \"Close the dialog\",\n }"
298
303
  },
299
304
  "accessibleCloseLabel": {
@@ -308,14 +313,14 @@ export class DuetModal {
308
313
  "optional": false,
309
314
  "docs": {
310
315
  "tags": [{
311
- "text": "{fi: \"Sulje ikkuna\", sv: \"St\u00E4ng f\u00F6nstret\", en: \"Close the dialog\", }",
312
- "name": "default"
316
+ "name": "default",
317
+ "text": "{fi: \"Sulje ikkuna\", sv: \"St\u00E4ng f\u00F6nstret\", en: \"Close the dialog\", }"
313
318
  }],
314
319
  "text": "Adds accessible label for the close icon that is only shown for screen\nreaders. This property is always required to create an accessibly interface!\nSwedish translation for this property is \u201CSt\u00E4ng f\u00F6nstret\u201D."
315
320
  },
316
321
  "attribute": "accessible-close-label",
317
322
  "reflect": false,
318
- "defaultValue": "getLocaleString(this.accessibleCloseLabelDefault)"
323
+ "defaultValue": "getLocaleString(this.accessibleCloseLabelDefaults, this.language)"
319
324
  },
320
325
  "size": {
321
326
  "type": "string",
@@ -104,11 +104,11 @@ export class DuetNotification {
104
104
  "optional": false,
105
105
  "docs": {
106
106
  "tags": [{
107
- "text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing",
108
- "name": "deprecated"
107
+ "name": "deprecated",
108
+ "text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
109
109
  }, {
110
- "text": "\"fi\"",
111
- "name": "default"
110
+ "name": "default",
111
+ "text": "\"fi\""
112
112
  }],
113
113
  "text": "The currently active language.\nUsed for announcing unread notifications to screen readers."
114
114
  },
@@ -149,8 +149,8 @@ export class DuetNotification {
149
149
  "optional": false,
150
150
  "docs": {
151
151
  "tags": [{
152
- "text": "{ en: \"Unread\", fi: \"Lukematon\", sv: \"Ol\u00E4st\" }",
153
- "name": "default"
152
+ "name": "default",
153
+ "text": "{ en: \"Unread\", fi: \"Lukematon\", sv: \"Ol\u00E4st\" }"
154
154
  }],
155
155
  "text": "Adds accessible label for tooltip that is shown over unread counter"
156
156
  },
@@ -260,8 +260,8 @@ export class DuetNotification {
260
260
  "signature": "(options?: FocusOptions) => Promise<void>",
261
261
  "parameters": [{
262
262
  "tags": [{
263
- "text": "options",
264
- "name": "param"
263
+ "name": "param",
264
+ "text": "options"
265
265
  }],
266
266
  "text": ""
267
267
  }],
@@ -27,8 +27,8 @@ export class DuetNotificationDrawer {
27
27
  */
28
28
  this.language = getLanguage();
29
29
  /**
30
- * Property to change accessibleLabelNotifications defaults on the component.
31
- * normally you would handle these strings on an application level and override @accessibleLabelNotifications when needed
30
+ * Defaults for accessibleLabelNotifications
31
+ * @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
32
32
  */
33
33
  this.accessibleLabelNotificationsDefaults = {
34
34
  en: "No notifications",
@@ -39,7 +39,7 @@ export class DuetNotificationDrawer {
39
39
  * Adds accessible label for tooltip that is shown for notifications
40
40
  * @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
41
41
  */
42
- this.accessibleLabelNotifications = getLocaleString(this.accessibleLabelNotificationsDefaults, this.language);
42
+ this.accessibleLabelNotifications = getLocaleString(this.accessibleLabelNotificationsDefaults);
43
43
  /**
44
44
  * Show a badge that indicates something has changed.
45
45
  */
@@ -217,11 +217,11 @@ export class DuetNotificationDrawer {
217
217
  "defaultValue": "getLanguage()"
218
218
  },
219
219
  "accessibleLabelNotificationsDefaults": {
220
- "type": "unknown",
220
+ "type": "string",
221
221
  "mutable": false,
222
222
  "complexType": {
223
- "original": "DuetLangObject",
224
- "resolved": "DuetLangObject",
223
+ "original": "| DuetLangObject\n | string",
224
+ "resolved": "DuetLangObject | string",
225
225
  "references": {
226
226
  "DuetLangObject": {
227
227
  "location": "import",
@@ -232,9 +232,14 @@ export class DuetNotificationDrawer {
232
232
  "required": false,
233
233
  "optional": false,
234
234
  "docs": {
235
- "tags": [],
236
- "text": "Property to change accessibleLabelNotifications defaults on the component.\nnormally you would handle these strings on an application level and override @accessibleLabelNotifications when needed"
235
+ "tags": [{
236
+ "name": "default",
237
+ "text": "{en: \"No notifications\", fi: \"Ei ilmoituksia\", sv: \"Inga notifikationer\"}"
238
+ }],
239
+ "text": "Defaults for accessibleLabelNotifications"
237
240
  },
241
+ "attribute": "accessible-label-notification-default",
242
+ "reflect": false,
238
243
  "defaultValue": "{\n en: \"No notifications\",\n fi: \"Ei ilmoituksia\",\n sv: \"Inga notifikationer\",\n }"
239
244
  },
240
245
  "accessibleLabelNotifications": {
@@ -249,14 +254,14 @@ export class DuetNotificationDrawer {
249
254
  "optional": false,
250
255
  "docs": {
251
256
  "tags": [{
252
- "text": "{en: \"No notifications\", fi: \"Ei ilmoituksia\", sv: \"Inga notifikationer\"}",
253
- "name": "default"
257
+ "name": "default",
258
+ "text": "{en: \"No notifications\", fi: \"Ei ilmoituksia\", sv: \"Inga notifikationer\"}"
254
259
  }],
255
260
  "text": "Adds accessible label for tooltip that is shown for notifications"
256
261
  },
257
262
  "attribute": "accessible-label-notifications",
258
263
  "reflect": false,
259
- "defaultValue": "getLocaleString(\n this.accessibleLabelNotificationsDefaults,\n this.language\n )"
264
+ "defaultValue": "getLocaleString(this.accessibleLabelNotificationsDefaults)"
260
265
  },
261
266
  "badge": {
262
267
  "type": "boolean",
@@ -332,8 +337,8 @@ export class DuetNotificationDrawer {
332
337
  "signature": "(options?: FocusOptions) => Promise<void>",
333
338
  "parameters": [{
334
339
  "tags": [{
335
- "text": "options",
336
- "name": "param"
340
+ "name": "param",
341
+ "text": "options"
337
342
  }],
338
343
  "text": ""
339
344
  }],
@@ -376,8 +381,8 @@ export class DuetNotificationDrawer {
376
381
  "signature": "(moveFocusToButton?: boolean) => Promise<void>",
377
382
  "parameters": [{
378
383
  "tags": [{
379
- "text": "moveFocusToButton should focus be moved to the menu's button on close?",
380
- "name": "param"
384
+ "name": "param",
385
+ "text": "moveFocusToButton should focus be moved to the menu's button on close?"
381
386
  }],
382
387
  "text": "should focus be moved to the menu's button on close?"
383
388
  }],
@@ -28,37 +28,52 @@ export class DuetNumberInput {
28
28
  */
29
29
  this.unit = getLocale(this.language).money;
30
30
  /**
31
- * Format of message used to announce current amount when switching between amounts.
32
- * The string {current} is replaced with the current amount.
31
+ * Defaults for accessibleLive
33
32
  * @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
34
33
  */
35
- this.accessibleLive = getLocaleString({
34
+ this.accessibleLiveDefaults = {
36
35
  fi: "{current} euroa valittuna",
37
36
  en: "{current} euros selected",
38
37
  sv: "{current} euro valt",
39
- }, this.language);
38
+ };
39
+ /**
40
+ * Format of message used to announce current amount when switching between amounts.
41
+ * The string {current} is replaced with the current amount.
42
+ * @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
43
+ */
44
+ this.accessibleLive = getLocaleString(this.accessibleLiveDefaults, this.language);
40
45
  /**
41
46
  * Disables the aria-live messaging used internally in this component. This could be useful when you want to use custom aria-live messages instead.
42
47
  */
43
48
  this.accessibleLiveEnabled = true;
44
49
  /**
45
- * Accessible label for the add button that is read for screen reader users.
50
+ * Defaults for accessibleAdd
46
51
  * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
47
52
  */
48
- this.accessibleAdd = getLocaleString({
53
+ this.accessibleAddDefaults = {
49
54
  fi: "Lisää summaan",
50
55
  en: "Add to the amount",
51
56
  sv: "Lägg till beloppet",
52
- }, this.language);
57
+ };
53
58
  /**
54
- * Accessible label for the subtract button that is read for screen reader users.
59
+ * Accessible label for the add button that is read for screen reader users.
60
+ * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
61
+ */
62
+ this.accessibleAdd = getLocaleString(this.accessibleAddDefaults, this.language);
63
+ /**
64
+ * Defaults for accessibleSubtract
55
65
  * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
56
66
  */
57
- this.accessibleSubtract = getLocaleString({
67
+ this.accessibleSubtractDefaults = {
58
68
  fi: "Vähennä summasta",
59
69
  en: "Subtract from the amount",
60
70
  sv: "Dra från beloppet",
61
- }, this.language);
71
+ };
72
+ /**
73
+ * Accessible label for the subtract button that is read for screen reader users.
74
+ * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
75
+ */
76
+ this.accessibleSubtract = getLocaleString(this.accessibleSubtractDefaults, this.language);
62
77
  /**
63
78
  * Theme of the input.
64
79
  */
@@ -76,14 +91,19 @@ export class DuetNumberInput {
76
91
  */
77
92
  this.min = 0;
78
93
  /**
79
- * Label for the number input.
94
+ * Defaults for Label
80
95
  * @default {fi: "Etiketti", en: "Label", sv: "Märka"}
81
96
  */
82
- this.label = getLocaleString({
97
+ this.labelDefaults = {
83
98
  fi: "Nimilappu",
84
99
  en: "Label",
85
100
  sv: "Etikett",
86
- }, this.language);
101
+ };
102
+ /**
103
+ * Label for the number input.
104
+ * @default {fi: "Etiketti", en: "Label", sv: "Märka"}
105
+ */
106
+ this.label = getLocaleString(this.labelDefaults, this.language);
87
107
  /**
88
108
  * Visually hide the label, but still show it to screen readers.
89
109
  */
@@ -350,11 +370,11 @@ export class DuetNumberInput {
350
370
  "optional": false,
351
371
  "docs": {
352
372
  "tags": [{
353
- "text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing",
354
- "name": "deprecated"
373
+ "name": "deprecated",
374
+ "text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
355
375
  }, {
356
- "text": "\"fi\"",
357
- "name": "default"
376
+ "name": "default",
377
+ "text": "\"fi\""
358
378
  }],
359
379
  "text": "The currently active language. This setting changes the accessible labels to match the\nchosen language."
360
380
  },
@@ -471,6 +491,32 @@ export class DuetNumberInput {
471
491
  "attribute": "accessible-described-by",
472
492
  "reflect": false
473
493
  },
494
+ "accessibleLiveDefaults": {
495
+ "type": "string",
496
+ "mutable": false,
497
+ "complexType": {
498
+ "original": "DuetLangObject | string",
499
+ "resolved": "DuetLangObject | string",
500
+ "references": {
501
+ "DuetLangObject": {
502
+ "location": "import",
503
+ "path": "../../utils/language-utils"
504
+ }
505
+ }
506
+ },
507
+ "required": false,
508
+ "optional": false,
509
+ "docs": {
510
+ "tags": [{
511
+ "name": "default",
512
+ "text": "{fi: \"{current} euroa valittuna\", en: \"{current} euros selected\", sv: \"{current} valda euro\"}"
513
+ }],
514
+ "text": "Defaults for accessibleLive"
515
+ },
516
+ "attribute": "accessible-live-default",
517
+ "reflect": false,
518
+ "defaultValue": "{\n fi: \"{current} euroa valittuna\",\n en: \"{current} euros selected\",\n sv: \"{current} euro valt\",\n }"
519
+ },
474
520
  "accessibleLive": {
475
521
  "type": "string",
476
522
  "mutable": false,
@@ -483,14 +529,14 @@ export class DuetNumberInput {
483
529
  "optional": false,
484
530
  "docs": {
485
531
  "tags": [{
486
- "text": "{fi: \"{current} euroa valittuna\", en: \"{current} euros selected\", sv: \"{current} valda euro\"}",
487
- "name": "default"
532
+ "name": "default",
533
+ "text": "{fi: \"{current} euroa valittuna\", en: \"{current} euros selected\", sv: \"{current} valda euro\"}"
488
534
  }],
489
535
  "text": "Format of message used to announce current amount when switching between amounts.\nThe string {current} is replaced with the current amount."
490
536
  },
491
537
  "attribute": "accessible-live",
492
538
  "reflect": false,
493
- "defaultValue": "getLocaleString(\n {\n fi: \"{current} euroa valittuna\",\n en: \"{current} euros selected\",\n sv: \"{current} euro valt\",\n },\n this.language\n )"
539
+ "defaultValue": "getLocaleString(this.accessibleLiveDefaults, this.language)"
494
540
  },
495
541
  "accessibleLiveEnabled": {
496
542
  "type": "boolean",
@@ -510,6 +556,32 @@ export class DuetNumberInput {
510
556
  "reflect": false,
511
557
  "defaultValue": "true"
512
558
  },
559
+ "accessibleAddDefaults": {
560
+ "type": "string",
561
+ "mutable": false,
562
+ "complexType": {
563
+ "original": "DuetLangObject | string",
564
+ "resolved": "DuetLangObject | string",
565
+ "references": {
566
+ "DuetLangObject": {
567
+ "location": "import",
568
+ "path": "../../utils/language-utils"
569
+ }
570
+ }
571
+ },
572
+ "required": false,
573
+ "optional": false,
574
+ "docs": {
575
+ "tags": [{
576
+ "name": "default",
577
+ "text": "{fi: \"Lis\u00E4\u00E4 summaan\", en: \"Add to the amount\", sv: \"L\u00E4gg till beloppet\"}"
578
+ }],
579
+ "text": "Defaults for accessibleAdd"
580
+ },
581
+ "attribute": "accessible-add-default",
582
+ "reflect": false,
583
+ "defaultValue": "{\n fi: \"Lis\u00E4\u00E4 summaan\",\n en: \"Add to the amount\",\n sv: \"L\u00E4gg till beloppet\",\n }"
584
+ },
513
585
  "accessibleAdd": {
514
586
  "type": "string",
515
587
  "mutable": false,
@@ -522,14 +594,40 @@ export class DuetNumberInput {
522
594
  "optional": false,
523
595
  "docs": {
524
596
  "tags": [{
525
- "text": "{fi: \"Lis\u00E4\u00E4 summaan\", en: \"Add to the amount\", sv: \"L\u00E4gg till beloppet\"}",
526
- "name": "default"
597
+ "name": "default",
598
+ "text": "{fi: \"Lis\u00E4\u00E4 summaan\", en: \"Add to the amount\", sv: \"L\u00E4gg till beloppet\"}"
527
599
  }],
528
600
  "text": "Accessible label for the add button that is read for screen reader users."
529
601
  },
530
602
  "attribute": "accessible-add",
531
603
  "reflect": false,
532
- "defaultValue": "getLocaleString(\n {\n fi: \"Lis\u00E4\u00E4 summaan\",\n en: \"Add to the amount\",\n sv: \"L\u00E4gg till beloppet\",\n },\n this.language\n )"
604
+ "defaultValue": "getLocaleString(this.accessibleAddDefaults, this.language)"
605
+ },
606
+ "accessibleSubtractDefaults": {
607
+ "type": "string",
608
+ "mutable": false,
609
+ "complexType": {
610
+ "original": "DuetLangObject | string",
611
+ "resolved": "DuetLangObject | string",
612
+ "references": {
613
+ "DuetLangObject": {
614
+ "location": "import",
615
+ "path": "../../utils/language-utils"
616
+ }
617
+ }
618
+ },
619
+ "required": false,
620
+ "optional": false,
621
+ "docs": {
622
+ "tags": [{
623
+ "name": "default",
624
+ "text": "{fi: \"V\u00E4henn\u00E4 summasta\", en: \"Subtract from the amount\", sv: \"Dra fr\u00E5n beloppet\"}"
625
+ }],
626
+ "text": "Defaults for accessibleSubtract"
627
+ },
628
+ "attribute": "accessible-subtract-defaults",
629
+ "reflect": false,
630
+ "defaultValue": "{\n fi: \"V\u00E4henn\u00E4 summasta\",\n en: \"Subtract from the amount\",\n sv: \"Dra fr\u00E5n beloppet\",\n }"
533
631
  },
534
632
  "accessibleSubtract": {
535
633
  "type": "string",
@@ -543,14 +641,14 @@ export class DuetNumberInput {
543
641
  "optional": false,
544
642
  "docs": {
545
643
  "tags": [{
546
- "text": "{fi: \"V\u00E4henn\u00E4 summasta\", en: \"Subtract from the amount\", sv: \"Dra fr\u00E5n beloppet\"}",
547
- "name": "default"
644
+ "name": "default",
645
+ "text": "{fi: \"V\u00E4henn\u00E4 summasta\", en: \"Subtract from the amount\", sv: \"Dra fr\u00E5n beloppet\"}"
548
646
  }],
549
647
  "text": "Accessible label for the subtract button that is read for screen reader users."
550
648
  },
551
649
  "attribute": "accessible-subtract",
552
650
  "reflect": false,
553
- "defaultValue": "getLocaleString(\n {\n fi: \"V\u00E4henn\u00E4 summasta\",\n en: \"Subtract from the amount\",\n sv: \"Dra fr\u00E5n beloppet\",\n },\n this.language\n )"
651
+ "defaultValue": "getLocaleString(this.accessibleSubtractDefaults, this.language)"
554
652
  },
555
653
  "theme": {
556
654
  "type": "string",
@@ -651,6 +749,32 @@ export class DuetNumberInput {
651
749
  "reflect": false,
652
750
  "defaultValue": "0"
653
751
  },
752
+ "labelDefaults": {
753
+ "type": "string",
754
+ "mutable": false,
755
+ "complexType": {
756
+ "original": "DuetLangObject | string",
757
+ "resolved": "DuetLangObject | string",
758
+ "references": {
759
+ "DuetLangObject": {
760
+ "location": "import",
761
+ "path": "../../utils/language-utils"
762
+ }
763
+ }
764
+ },
765
+ "required": false,
766
+ "optional": false,
767
+ "docs": {
768
+ "tags": [{
769
+ "name": "default",
770
+ "text": "{fi: \"Etiketti\", en: \"Label\", sv: \"M\u00E4rka\"}"
771
+ }],
772
+ "text": "Defaults for Label"
773
+ },
774
+ "attribute": "label-default",
775
+ "reflect": false,
776
+ "defaultValue": "{\n fi: \"Nimilappu\",\n en: \"Label\",\n sv: \"Etikett\",\n }"
777
+ },
654
778
  "label": {
655
779
  "type": "string",
656
780
  "mutable": false,
@@ -663,14 +787,14 @@ export class DuetNumberInput {
663
787
  "optional": false,
664
788
  "docs": {
665
789
  "tags": [{
666
- "text": "{fi: \"Etiketti\", en: \"Label\", sv: \"M\u00E4rka\"}",
667
- "name": "default"
790
+ "name": "default",
791
+ "text": "{fi: \"Etiketti\", en: \"Label\", sv: \"M\u00E4rka\"}"
668
792
  }],
669
793
  "text": "Label for the number input."
670
794
  },
671
795
  "attribute": "label",
672
796
  "reflect": false,
673
- "defaultValue": "getLocaleString(\n {\n fi: \"Nimilappu\",\n en: \"Label\",\n sv: \"Etikett\",\n },\n this.language\n )"
797
+ "defaultValue": "getLocaleString(this.labelDefaults, this.language)"
674
798
  },
675
799
  "labelHidden": {
676
800
  "type": "boolean",
@@ -52,6 +52,12 @@
52
52
  .duet-paragraph.duet-paragraph-small {
53
53
  font-size: 0.875rem;
54
54
  }
55
+ .duet-paragraph.duet-paragraph-semi-bold {
56
+ font-weight: 600;
57
+ }
58
+ .duet-paragraph.duet-paragraph-bold {
59
+ font-weight: 700;
60
+ }
55
61
  .duet-paragraph.duet-m-0 {
56
62
  margin: 0 !important;
57
63
  }
@@ -4,10 +4,13 @@
4
4
  import { Component, Element, h, Prop } from "@stencil/core";
5
5
  import { inheritGlobalTheme } from "../../utils/themeable-component";
6
6
  import { getColorByName } from "../../utils/token-utils";
7
+ /**
8
+ * @part duet-paragraph - piercing selector for styling the paragraph
9
+ */
7
10
  export class DuetParagraph {
8
11
  constructor() {
9
12
  /**
10
- * Theme of the card.
13
+ * Theme of the paragraph.
11
14
  */
12
15
  this.theme = "";
13
16
  /**
@@ -18,6 +21,10 @@ export class DuetParagraph {
18
21
  * Controls the size of the paragraph.
19
22
  */
20
23
  this.size = "medium";
24
+ /**
25
+ * Controls the Font-Weight of the paragraph.
26
+ */
27
+ this.weight = undefined;
21
28
  /**
22
29
  * Style variation of the paragraph.
23
30
  */
@@ -43,10 +50,12 @@ export class DuetParagraph {
43
50
  return (h("p", { class: {
44
51
  "duet-paragraph": true,
45
52
  "duet-paragraph-small": this.size === "small",
53
+ "duet-paragraph-semi-bold": this.weight === "semi-bold",
54
+ "duet-paragraph-bold": this.weight === "bold",
46
55
  "duet-m-0": this.margin === "none",
47
56
  [this.variation]: true,
48
57
  "duet-theme-turva": this.theme === "turva",
49
- }, style: { color } },
58
+ }, style: { color }, part: "duet-paragraph" },
50
59
  h("slot", null)));
51
60
  }
52
61
  static get is() { return "duet-paragraph"; }
@@ -75,7 +84,7 @@ export class DuetParagraph {
75
84
  "optional": false,
76
85
  "docs": {
77
86
  "tags": [],
78
- "text": "Theme of the card."
87
+ "text": "Theme of the paragraph."
79
88
  },
80
89
  "attribute": "theme",
81
90
  "reflect": false,
@@ -126,6 +135,28 @@ export class DuetParagraph {
126
135
  "reflect": false,
127
136
  "defaultValue": "\"medium\""
128
137
  },
138
+ "weight": {
139
+ "type": "string",
140
+ "mutable": false,
141
+ "complexType": {
142
+ "original": "DuetParagraphWeight",
143
+ "resolved": "\"bold\" | \"semi-bold\"",
144
+ "references": {
145
+ "DuetParagraphWeight": {
146
+ "location": "local"
147
+ }
148
+ }
149
+ },
150
+ "required": false,
151
+ "optional": false,
152
+ "docs": {
153
+ "tags": [],
154
+ "text": "Controls the Font-Weight of the paragraph."
155
+ },
156
+ "attribute": "weight",
157
+ "reflect": false,
158
+ "defaultValue": "undefined"
159
+ },
129
160
  "variation": {
130
161
  "type": "string",
131
162
  "mutable": false,