@duetds/components 4.30.1 → 4.33.1

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 (427) hide show
  1. package/hydrate/index.js +1531 -442
  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 +55 -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.cjs.entry.js +89 -0
  15. package/lib/cjs/duet-editable-table_4.cjs.entry.js +1445 -0
  16. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-footer.cjs.entry.js +4 -4
  19. package/lib/cjs/duet-grid_2.cjs.entry.js +52 -4
  20. package/lib/cjs/duet-header_2.cjs.entry.js +26 -10
  21. package/lib/cjs/duet-hero.cjs.entry.js +6 -6
  22. package/lib/cjs/duet-icon.cjs.entry.js +21 -19
  23. package/lib/cjs/duet-input_2.cjs.entry.js +7 -7
  24. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-list_2.cjs.entry.js +2 -2
  26. package/lib/cjs/duet-modal.cjs.entry.js +8 -7
  27. package/lib/cjs/duet-notification_2.cjs.entry.js +6 -5
  28. package/lib/cjs/duet-number-input.cjs.entry.js +36 -15
  29. package/lib/cjs/duet-progress.cjs.entry.js +75 -0
  30. package/lib/cjs/duet-radio_2.cjs.entry.js +2 -2
  31. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  32. package/lib/cjs/duet-select.cjs.entry.js +6 -6
  33. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-tab_2.cjs.entry.js +12 -6
  35. package/lib/cjs/duet-textarea.cjs.entry.js +5 -5
  36. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-tooltip.cjs.entry.js +21 -10
  38. package/lib/cjs/duet-tray.cjs.entry.js +21 -10
  39. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +100 -0
  40. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  41. package/lib/cjs/duet.cjs.js +4 -4
  42. package/lib/cjs/{focus-utils-7605778f.js → focus-utils-b609a7a5.js} +1 -1
  43. package/lib/cjs/{index-0c949193.js → index-9a57d969.js} +95 -77
  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 +16 -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 +122 -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 +20 -13
  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.css +17 -86
  104. package/lib/collection/components/duet-upload/duet-upload.js +587 -164
  105. package/lib/collection/components/duet-upload/errorcodes.utils.js +16 -4
  106. package/lib/collection/components/duet-upload/upload-editable-item-error.js +16 -0
  107. package/lib/collection/components/duet-upload/upload-editable-item-inprogres.js +8 -0
  108. package/lib/collection/components/duet-upload/upload-editable-item-success.js +30 -0
  109. package/lib/collection/components/duet-upload/{duet-upload-validators.js → upload-validators.js} +0 -0
  110. package/lib/collection/components/duet-upload/xhr.helpers.js +2 -6
  111. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +217 -0
  112. package/lib/collection/utils/fixture-utils.js +7 -5
  113. package/lib/collection/utils/js-utils.js +12 -0
  114. package/lib/collection/utils/language-utils.js +26 -9
  115. package/lib/collection/utils/string-utils.js +6 -0
  116. package/lib/collection/utils/watch-options.js +35 -6
  117. package/lib/custom-elements-bundle/index.d.ts +30 -0
  118. package/lib/custom-elements-bundle/index.js +1651 -730
  119. package/lib/duet/duet.esm.js +1 -1
  120. package/lib/duet/duet.js +1 -1
  121. package/lib/duet/p-00210a63.entry.js +4 -0
  122. package/lib/duet/{p-66dde4d2.entry.js → p-0205162d.entry.js} +1 -1
  123. package/lib/duet/{p-3dc9d15d.system.entry.js → p-020a2c42.system.entry.js} +1 -1
  124. package/lib/duet/{p-59a07cf9.entry.js → p-079795e5.entry.js} +1 -1
  125. package/lib/duet/p-09013a48.system.entry.js +4 -0
  126. package/lib/duet/p-0a89315d.entry.js +4 -0
  127. package/lib/duet/p-0d22396e.system.js +16 -0
  128. package/lib/duet/p-0e90f075.system.entry.js +4 -0
  129. package/lib/duet/p-12721178.js +4 -0
  130. package/lib/duet/p-19d7d9d5.system.entry.js +4 -0
  131. package/lib/duet/p-1cbc6269.entry.js +4 -0
  132. package/lib/duet/p-2297d13f.system.entry.js +4 -0
  133. package/lib/duet/p-2764f081.js +4 -0
  134. package/lib/duet/p-2a822e91.system.entry.js +4 -0
  135. package/lib/duet/{p-f81d8534.entry.js → p-2fdcff82.entry.js} +1 -1
  136. package/lib/duet/p-3013c9bb.system.entry.js +4 -0
  137. package/lib/duet/p-3212a556.entry.js +4 -0
  138. package/lib/duet/{p-dee41056.system.entry.js → p-323643af.system.entry.js} +1 -1
  139. package/lib/duet/p-32b7397d.entry.js +4 -0
  140. package/lib/duet/{p-bd9a7d8f.js → p-35a3794e.js} +0 -0
  141. package/lib/duet/p-360086f8.entry.js +4 -0
  142. package/lib/duet/{p-f71f12ed.entry.js → p-37cda933.entry.js} +1 -1
  143. package/lib/duet/{p-62806bb6.system.entry.js → p-3ba62cf1.system.entry.js} +1 -1
  144. package/lib/duet/{p-322d1c38.js → p-3c1971d8.js} +1 -1
  145. package/lib/duet/p-3fd9190b.system.entry.js +4 -0
  146. package/lib/duet/p-43847557.entry.js +4 -0
  147. package/lib/duet/{p-bbc229d8.system.entry.js → p-4b6e8558.system.entry.js} +1 -1
  148. package/lib/duet/p-4c5eedf8.entry.js +4 -0
  149. package/lib/duet/p-4c827f0d.entry.js +4 -0
  150. package/lib/duet/{p-de2be65b.system.js → p-51955fc0.system.js} +1 -1
  151. package/lib/duet/p-5cfc53f9.entry.js +4 -0
  152. package/lib/duet/p-5decc259.system.entry.js +4 -0
  153. package/lib/duet/p-5e0071d6.js +4 -0
  154. package/lib/duet/p-5e77432e.system.entry.js +4 -0
  155. package/lib/duet/{p-ce1374a4.system.entry.js → p-6024e484.system.entry.js} +1 -1
  156. package/lib/duet/p-68008644.entry.js +4 -0
  157. package/lib/duet/p-69385972.system.entry.js +4 -0
  158. package/lib/duet/p-6a4d85ed.system.entry.js +4 -0
  159. package/lib/duet/{p-f82709ba.entry.js → p-6a5ab3eb.entry.js} +1 -1
  160. package/lib/duet/p-6e363557.system.js +4 -0
  161. package/lib/duet/p-6e4b1c0d.entry.js +4 -0
  162. package/lib/duet/p-6f36f647.system.entry.js +4 -0
  163. package/lib/duet/p-6fa6c4fb.system.entry.js +4 -0
  164. package/lib/duet/p-70fafc98.system.js +4 -0
  165. package/lib/duet/p-71a77368.system.entry.js +4 -0
  166. package/lib/duet/p-73f9db25.system.entry.js +4 -0
  167. package/lib/duet/p-74f4a0d8.system.entry.js +4 -0
  168. package/lib/duet/p-7530be48.system.entry.js +4 -0
  169. package/lib/duet/{p-36007600.entry.js → p-75edcaed.entry.js} +1 -1
  170. package/lib/duet/{p-d1817efe.system.entry.js → p-7a8597c2.system.entry.js} +1 -1
  171. package/lib/duet/{p-1cfe38b1.system.entry.js → p-85ad012a.system.entry.js} +1 -1
  172. package/lib/duet/{p-a321a98c.entry.js → p-85e52be8.entry.js} +1 -1
  173. package/lib/duet/p-8aaf3383.entry.js +4 -0
  174. package/lib/duet/p-986779fb.js +4 -0
  175. package/lib/duet/p-987edcd0.js +15 -0
  176. package/lib/duet/{p-35e45c19.system.js → p-9a945278.system.js} +1 -1
  177. package/lib/duet/p-9e79e033.entry.js +4 -0
  178. package/lib/duet/{p-7e108b7e.entry.js → p-9f35d682.entry.js} +1 -1
  179. package/lib/duet/{p-f71e337e.system.entry.js → p-a2a00146.system.entry.js} +1 -1
  180. package/lib/duet/p-a545398c.entry.js +4 -0
  181. package/lib/duet/{p-2826f987.js → p-ad07f399.js} +1 -1
  182. package/lib/duet/{p-4a7911fd.entry.js → p-af49d4f9.entry.js} +1 -1
  183. package/lib/duet/{p-1c41525a.entry.js → p-b25edbbe.entry.js} +1 -1
  184. package/lib/duet/p-b314348c.system.js +4 -0
  185. package/lib/duet/p-b4111e88.system.entry.js +4 -0
  186. package/lib/duet/p-b5c7d304.system.entry.js +4 -0
  187. package/lib/duet/p-b6e9860a.entry.js +4 -0
  188. package/lib/duet/p-ba18b56e.entry.js +4 -0
  189. package/lib/duet/p-bf4596bd.system.entry.js +4 -0
  190. package/lib/duet/{p-4265de16.system.entry.js → p-bf9f6d80.system.entry.js} +1 -1
  191. package/lib/duet/{p-fd98468a.system.js → p-c18a599e.system.js} +0 -0
  192. package/lib/duet/p-c1a1ea1b.js +4 -0
  193. package/lib/duet/p-c742856b.system.entry.js +4 -0
  194. package/lib/duet/p-cbdb9e98.system.entry.js +4 -0
  195. package/lib/duet/{p-27d538f7.system.entry.js → p-cf319832.system.entry.js} +1 -1
  196. package/lib/duet/p-d67fff56.entry.js +4 -0
  197. package/lib/duet/{p-031c2cd8.system.entry.js → p-dd76db9b.system.entry.js} +1 -1
  198. package/lib/duet/p-ddb6344c.system.js +4 -0
  199. package/lib/duet/{p-345ea4f2.system.entry.js → p-de5ec54e.system.entry.js} +1 -1
  200. package/lib/duet/p-df6f39a3.entry.js +4 -0
  201. package/lib/duet/p-e1dc86b5.system.js +4 -0
  202. package/lib/duet/p-e2596ea0.entry.js +4 -0
  203. package/lib/duet/p-e370c18b.entry.js +4 -0
  204. package/lib/duet/{p-e26116e0.system.entry.js → p-e48f3a32.system.entry.js} +1 -1
  205. package/lib/duet/p-e5031543.entry.js +4 -0
  206. package/lib/duet/p-e60ee8b0.entry.js +4 -0
  207. package/lib/duet/p-e70088d5.entry.js +4 -0
  208. package/lib/duet/p-e7b90769.system.entry.js +4 -0
  209. package/lib/duet/{p-a88df408.entry.js → p-e8123a53.entry.js} +1 -1
  210. package/lib/duet/p-eb55ccd2.system.js +4 -0
  211. package/lib/duet/{p-2d2c45f9.entry.js → p-ef7251bf.entry.js} +1 -1
  212. package/lib/duet/p-f0cfe033.system.entry.js +4 -0
  213. package/lib/duet/p-f2a087a8.system.entry.js +4 -0
  214. package/lib/duet/p-f5a55b3c.entry.js +4 -0
  215. package/lib/duet/p-fd613733.entry.js +4 -0
  216. package/lib/esm/{dom-21034390.js → dom-58cd15f6.js} +1 -1
  217. package/lib/esm/duet-alert.entry.js +4 -2
  218. package/lib/esm/duet-badge.entry.js +2 -2
  219. package/lib/esm/duet-button_2.entry.js +6 -5
  220. package/lib/esm/duet-caption_4.entry.js +21 -15
  221. package/lib/esm/duet-card.entry.js +6 -6
  222. package/lib/esm/duet-checkbox.entry.js +2 -2
  223. package/lib/esm/duet-choice_2.entry.js +56 -26
  224. package/lib/esm/duet-collapsible.entry.js +5 -2
  225. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  226. package/lib/esm/duet-date-picker.entry.js +23 -13
  227. package/lib/esm/duet-divider_2.entry.js +1 -1
  228. package/lib/esm/duet-editable-table-button.entry.js +85 -0
  229. package/lib/esm/duet-editable-table_4.entry.js +1438 -0
  230. package/lib/esm/duet-empty-state.entry.js +1 -1
  231. package/lib/esm/duet-fieldset.entry.js +1 -1
  232. package/lib/esm/duet-footer.entry.js +4 -4
  233. package/lib/esm/duet-grid_2.entry.js +52 -4
  234. package/lib/esm/duet-header_2.entry.js +26 -10
  235. package/lib/esm/duet-hero.entry.js +6 -6
  236. package/lib/esm/duet-icon.entry.js +21 -19
  237. package/lib/esm/duet-input_2.entry.js +7 -7
  238. package/lib/esm/duet-layout.entry.js +1 -1
  239. package/lib/esm/duet-list_2.entry.js +2 -2
  240. package/lib/esm/duet-modal.entry.js +8 -7
  241. package/lib/esm/duet-notification_2.entry.js +6 -5
  242. package/lib/esm/duet-number-input.entry.js +36 -15
  243. package/lib/esm/duet-progress.entry.js +71 -0
  244. package/lib/esm/duet-radio_2.entry.js +2 -2
  245. package/lib/esm/duet-range-slider.entry.js +2 -2
  246. package/lib/esm/duet-select.entry.js +6 -6
  247. package/lib/esm/duet-step_2.entry.js +1 -1
  248. package/lib/esm/duet-tab_2.entry.js +12 -6
  249. package/lib/esm/duet-textarea.entry.js +5 -5
  250. package/lib/esm/duet-toggle.entry.js +1 -1
  251. package/lib/esm/duet-tooltip.entry.js +21 -10
  252. package/lib/esm/duet-tray.entry.js +21 -10
  253. package/lib/esm/duet-upload-aria-status.entry.js +96 -0
  254. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  255. package/lib/esm/duet.js +4 -4
  256. package/lib/esm/{focus-utils-0b12f0df.js → focus-utils-aeb6ca93.js} +1 -1
  257. package/lib/esm/{index-f70ddc7f.js → index-e8c7d36f.js} +94 -78
  258. package/lib/esm/{language-utils-ab9c3afc.js → language-utils-344d894c.js} +28 -10
  259. package/lib/esm/loader.js +3 -3
  260. package/lib/esm/{shadow-css-31e2d504.js → shadow-css-7c726abb.js} +9 -10
  261. package/lib/esm/{string-utils-69cf0d09.js → string-utils-2f1793b8.js} +7 -1
  262. package/lib/esm/{token-utils-5a35377f.js → token-utils-590d9413.js} +1 -1
  263. package/lib/esm/{tokens.module-edb66c04.js → tokens.module-49cbf963.js} +3 -1
  264. package/lib/esm/watch-options-dd55bce8.js +57 -0
  265. package/lib/esm-es5/{dom-21034390.js → dom-58cd15f6.js} +0 -0
  266. package/lib/esm-es5/duet-alert.entry.js +1 -1
  267. package/lib/esm-es5/duet-badge.entry.js +1 -1
  268. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  269. package/lib/esm-es5/duet-caption_4.entry.js +2 -2
  270. package/lib/esm-es5/duet-card.entry.js +1 -1
  271. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  272. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  273. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  274. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  275. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  276. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  277. package/lib/esm-es5/duet-editable-table-button.entry.js +4 -0
  278. package/lib/esm-es5/duet-editable-table_4.entry.js +4 -0
  279. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  280. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  281. package/lib/esm-es5/duet-footer.entry.js +1 -1
  282. package/lib/esm-es5/duet-grid_2.entry.js +2 -2
  283. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  284. package/lib/esm-es5/duet-hero.entry.js +1 -1
  285. package/lib/esm-es5/duet-icon.entry.js +2 -2
  286. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  287. package/lib/esm-es5/duet-layout.entry.js +1 -1
  288. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  289. package/lib/esm-es5/duet-modal.entry.js +1 -1
  290. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  291. package/lib/esm-es5/duet-number-input.entry.js +2 -2
  292. package/lib/esm-es5/duet-progress.entry.js +4 -0
  293. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  294. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  295. package/lib/esm-es5/duet-select.entry.js +1 -1
  296. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  297. package/lib/esm-es5/duet-tab_2.entry.js +2 -2
  298. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  299. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  300. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  301. package/lib/esm-es5/duet-tray.entry.js +1 -1
  302. package/lib/esm-es5/duet-upload-aria-status.entry.js +4 -0
  303. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  304. package/lib/esm-es5/duet.js +1 -1
  305. package/lib/esm-es5/focus-utils-aeb6ca93.js +4 -0
  306. package/lib/esm-es5/index-e8c7d36f.js +4 -0
  307. package/lib/esm-es5/language-utils-344d894c.js +4 -0
  308. package/lib/esm-es5/loader.js +1 -1
  309. package/lib/esm-es5/shadow-css-7c726abb.js +15 -0
  310. package/lib/esm-es5/{string-utils-69cf0d09.js → string-utils-2f1793b8.js} +1 -1
  311. package/lib/esm-es5/{token-utils-5a35377f.js → token-utils-590d9413.js} +1 -1
  312. package/lib/esm-es5/tokens.module-49cbf963.js +4 -0
  313. package/lib/esm-es5/watch-options-dd55bce8.js +4 -0
  314. package/lib/html.html-data.json +4906 -0
  315. package/lib/types/components/duet-alert/duet-alert.d.ts +2 -1
  316. package/lib/types/components/duet-button/duet-button.d.ts +1 -1
  317. package/lib/types/components/duet-choice/duet-choice.d.ts +24 -5
  318. package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +15 -9
  319. package/lib/types/components/duet-editable-table/duet-editable-table-button.d.ts +72 -0
  320. package/lib/types/components/duet-editable-table/duet-editable-table-item.d.ts +72 -0
  321. package/lib/types/components/duet-editable-table/duet-editable-table-tabledata.d.ts +7 -0
  322. package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +84 -0
  323. package/lib/types/components/duet-footer/duet-footer.d.ts +1 -1
  324. package/lib/types/components/duet-grid/duet-grid.d.ts +16 -2
  325. package/lib/types/components/duet-header/duet-header.d.ts +21 -5
  326. package/lib/types/components/duet-heading/duet-heading.d.ts +2 -2
  327. package/lib/types/components/duet-hero/duet-hero.d.ts +3 -3
  328. package/lib/types/components/duet-icon/duet-icon.d.ts +1 -1
  329. package/lib/types/components/duet-icon/icon-utils.d.ts +1 -1
  330. package/lib/types/components/duet-link/duet-link.d.ts +2 -3
  331. package/lib/types/components/duet-modal/duet-modal.d.ts +3 -3
  332. package/lib/types/components/duet-notification-drawer/duet-notification-drawer.d.ts +3 -3
  333. package/lib/types/components/duet-number-input/duet-number-input.d.ts +21 -0
  334. package/lib/types/components/duet-paragraph/duet-paragraph.d.ts +9 -1
  335. package/lib/types/components/duet-progress/duet-progress.d.ts +64 -0
  336. package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +6 -0
  337. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +11 -0
  338. package/lib/types/components/duet-tray/duet-tray.d.ts +11 -0
  339. package/lib/types/components/duet-upload/duet-upload.d.ts +124 -31
  340. package/lib/types/components/duet-upload/errorcodes.utils.d.ts +1 -0
  341. package/lib/types/components/duet-upload/upload-editable-item-error.d.ts +7 -0
  342. package/lib/types/components/duet-upload/upload-editable-item-inprogres.d.ts +7 -0
  343. package/lib/types/components/duet-upload/upload-editable-item-success.d.ts +8 -0
  344. package/lib/types/components/duet-upload/{duet-upload-validators.d.ts → upload-validators.d.ts} +0 -0
  345. package/lib/types/components/duet-upload/xhr.helpers.d.ts +7 -1
  346. package/lib/types/components/duet-upload-aria-status/duet-upload-aria-status.d.ts +49 -0
  347. package/lib/types/components.d.ts +619 -87
  348. package/lib/types/utils/js-utils.d.ts +1 -0
  349. package/lib/types/utils/language-utils.d.ts +8 -3
  350. package/lib/types/utils/string-utils.d.ts +1 -0
  351. package/lib/types/utils/watch-options.d.ts +2 -0
  352. package/package.json +20 -15
  353. package/lib/cjs/duet-table.cjs.entry.js +0 -132
  354. package/lib/cjs/duet-upload.cjs.entry.js +0 -866
  355. package/lib/collection/components/duet-upload/duet-upload-file-list.js +0 -49
  356. package/lib/duet/p-0733c303.system.entry.js +0 -4
  357. package/lib/duet/p-095060cc.js +0 -4
  358. package/lib/duet/p-156864a1.system.entry.js +0 -4
  359. package/lib/duet/p-15c15c6a.js +0 -15
  360. package/lib/duet/p-1911dfe7.system.entry.js +0 -4
  361. package/lib/duet/p-2834a302.entry.js +0 -4
  362. package/lib/duet/p-28a3d38f.system.entry.js +0 -4
  363. package/lib/duet/p-2a1a9f9f.entry.js +0 -4
  364. package/lib/duet/p-2a4d7c5b.system.entry.js +0 -4
  365. package/lib/duet/p-4095dba5.entry.js +0 -4
  366. package/lib/duet/p-418b2ce7.system.js +0 -4
  367. package/lib/duet/p-4289b543.entry.js +0 -4
  368. package/lib/duet/p-43e39d98.system.js +0 -4
  369. package/lib/duet/p-46a3ae43.system.js +0 -4
  370. package/lib/duet/p-4a38cf9d.entry.js +0 -4
  371. package/lib/duet/p-4be8e814.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-8977b722.entry.js +0 -4
  385. package/lib/duet/p-89db3b94.entry.js +0 -4
  386. package/lib/duet/p-8cfce39e.system.entry.js +0 -4
  387. package/lib/duet/p-8ffe1461.system.entry.js +0 -4
  388. package/lib/duet/p-9381c2d4.entry.js +0 -4
  389. package/lib/duet/p-9a450c9a.entry.js +0 -4
  390. package/lib/duet/p-9a89ec39.js +0 -4
  391. package/lib/duet/p-9bbfe606.system.entry.js +0 -4
  392. package/lib/duet/p-a0a066cb.system.entry.js +0 -4
  393. package/lib/duet/p-a6096b05.system.entry.js +0 -4
  394. package/lib/duet/p-a89d5d7c.entry.js +0 -4
  395. package/lib/duet/p-b07055fd.system.entry.js +0 -4
  396. package/lib/duet/p-b4374f0e.entry.js +0 -4
  397. package/lib/duet/p-b456d684.system.entry.js +0 -4
  398. package/lib/duet/p-bd18c93f.js +0 -4
  399. package/lib/duet/p-bddb1c15.system.entry.js +0 -4
  400. package/lib/duet/p-c0b95b58.entry.js +0 -4
  401. package/lib/duet/p-c3688975.entry.js +0 -4
  402. package/lib/duet/p-c4d183e6.entry.js +0 -4
  403. package/lib/duet/p-c9303f9a.entry.js +0 -4
  404. package/lib/duet/p-cd4e8ccf.js +0 -4
  405. package/lib/duet/p-ceb75b35.system.entry.js +0 -4
  406. package/lib/duet/p-cf243bcb.system.entry.js +0 -4
  407. package/lib/duet/p-d37c8a05.system.js +0 -4
  408. package/lib/duet/p-d989af11.entry.js +0 -4
  409. package/lib/duet/p-e58ca7af.system.js +0 -16
  410. package/lib/duet/p-e6128d82.system.entry.js +0 -4
  411. package/lib/duet/p-e86cdc17.entry.js +0 -4
  412. package/lib/duet/p-eadb29c7.entry.js +0 -4
  413. package/lib/duet/p-f30b14d6.system.entry.js +0 -4
  414. package/lib/duet/p-f79f8da1.entry.js +0 -4
  415. package/lib/duet/p-fc397e03.system.entry.js +0 -4
  416. package/lib/esm/duet-table.entry.js +0 -128
  417. package/lib/esm/duet-upload.entry.js +0 -862
  418. package/lib/esm/watch-options-de55ea78.js +0 -35
  419. package/lib/esm-es5/duet-table.entry.js +0 -4
  420. package/lib/esm-es5/duet-upload.entry.js +0 -4
  421. package/lib/esm-es5/focus-utils-0b12f0df.js +0 -4
  422. package/lib/esm-es5/index-f70ddc7f.js +0 -4
  423. package/lib/esm-es5/language-utils-ab9c3afc.js +0 -4
  424. package/lib/esm-es5/shadow-css-31e2d504.js +0 -15
  425. package/lib/esm-es5/tokens.module-edb66c04.js +0 -4
  426. package/lib/esm-es5/watch-options-de55ea78.js +0 -4
  427. package/lib/types/components/duet-upload/duet-upload-file-list.d.ts +0 -9
@@ -23,8 +23,9 @@ export declare class DuetAlert implements ThemeableComponent {
23
23
  /**
24
24
  * Property to change languageDefaults on the component.
25
25
  * normally you would handle these strings on an application level and override @accessibleLabel when needed
26
+ * @default {fi: "Sulje viesti", sv: "Stäng meddelandet", en: "Close the message"}
26
27
  */
27
- accessibleLabelDefaults: DuetLangObject;
28
+ accessibleLabelDefaults: DuetLangObject | string;
28
29
  /**
29
30
  * Adds accessible label for the dismissible alert close button.
30
31
  * @default {fi: "Sulje viesti", sv: "Stäng meddelandet", en: "Close the message"}
@@ -127,7 +127,7 @@ export declare class DuetButton implements ThemeableComponent, FormComponent {
127
127
  * normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
128
128
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
129
129
  */
130
- accessibleLabelExternalDefaults: DuetLangObject;
130
+ accessibleLabelExternalDefaults: DuetLangObject | string;
131
131
  /**
132
132
  * Adds accessible label for tooltip that is shown in external link (url & external have both been set)
133
133
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
@@ -13,6 +13,7 @@ export declare type DuetChoiceType = "radio" | "checkbox";
13
13
  /**
14
14
  * @slot unnamed default slot - The component’s primary content. All child nodes that do not have a slot attribute defined are inserted into this primary slot.
15
15
  * @slot info - Info content. Anything inserted into this slot is displayed in a collapsible info box.
16
+ * @slot collapsible_header - header that is only added to collapsible element, this header should be used when the components collapsible area contains additional interactive elements (such as form items) and should be user for a short description of the content below it, it is mandatory for good accessibility to use this - and aria-decribe-by will point to it. If you use the collapsible area with simple text - describe-by will point to this area
16
17
  * @slot additional - Additional content. Anything inserted into this slot is displayed as additional content under the label and caption
17
18
  */
18
19
  export declare class DuetChoice implements ThemeableComponent, InputComponent {
@@ -20,13 +21,15 @@ export declare class DuetChoice implements ThemeableComponent, InputComponent {
20
21
  * Own Properties.
21
22
  */
22
23
  private hasInfo?;
24
+ private hasHeader;
23
25
  private isKeyDown?;
24
26
  private hasAdditional?;
25
27
  private nativeInput;
26
- private nativeInfoButton?;
28
+ private infoButtonEl?;
27
29
  private choiceId;
28
- private collapsibleId;
29
- private infoId;
30
+ private expandId;
31
+ private headerId;
32
+ private infoButtonId;
30
33
  /**
31
34
  * Reference to host HTML element.
32
35
  */
@@ -50,7 +53,7 @@ export declare class DuetChoice implements ThemeableComponent, InputComponent {
50
53
  * Property to change accessibleLabelInfoButton defaults on the component.
51
54
  * normally you would handle these strings on an application level and override @accessibleLabelInfoButton when needed
52
55
  */
53
- accessibleLabelInfoButtonDefaults: DuetLangObject;
56
+ accessibleLabelInfoButtonDefaults: DuetLangObject | string;
54
57
  /**
55
58
  * Accessible label that is read for screen reader users in the info toggle trigger button.
56
59
  * Not visible for normal users.
@@ -72,6 +75,8 @@ export declare class DuetChoice implements ThemeableComponent, InputComponent {
72
75
  accessibleOwns: string;
73
76
  /**
74
77
  * Indicates the id of a component that describes the choice.
78
+ * if this is set to an empty string it will prevent screenreaders from flowing to a collapsible content
79
+ * and can be used as an escape hatch if that behaviour is undesired.
75
80
  */
76
81
  accessibleDescribedBy: string;
77
82
  /**
@@ -153,6 +158,20 @@ export declare class DuetChoice implements ThemeableComponent, InputComponent {
153
158
  * browser from displaying its own validation errors.
154
159
  */
155
160
  required: boolean;
161
+ /**
162
+ * Placeholder defaults
163
+ * @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
164
+ */
165
+ infoLabelDefaults: DuetLangObject | string;
166
+ /**
167
+ * Hint text to display before the user types into the date picker input.
168
+ * @default {
169
+ * fi: "Lisätietoja",
170
+ * en: "More information about",
171
+ * sv: "Mera information om",
172
+ * }
173
+ */
174
+ infoLabel: string;
156
175
  /**
157
176
  * Emitted when the checked property has changed.
158
177
  */
@@ -174,7 +193,7 @@ export declare class DuetChoice implements ThemeableComponent, InputComponent {
174
193
  */
175
194
  handleHostBlur(ev: any): void;
176
195
  handleHostKeyDown(): void;
177
- handleHostKeyUp(): void;
196
+ handleHostKeyUp(ev: any): void;
178
197
  private onMouseEnter;
179
198
  private onMouseLeave;
180
199
  private onClick;
@@ -1,6 +1,7 @@
1
1
  import { EventEmitter } from "../../stencil-public-runtime";
2
2
  import { DuetLanguage, DuetMargin, DuetTheme, DuetTooltipDirection } from "../../common-types";
3
3
  import { InputComponent } from "../../utils/form-components";
4
+ import { DuetLangObject } from "../../utils/language-utils";
4
5
  import { ThemeableComponent } from "../../utils/themeable-component";
5
6
  export declare type DuetDatePickerChangeEvent = {
6
7
  component: "duet-date-picker";
@@ -52,13 +53,25 @@ export declare class DuetDatePicker implements ThemeableComponent, InputComponen
52
53
  */
53
54
  label: string;
54
55
  /**
55
- * Caption (underneath label) that can be set as a way of adding extra information
56
+ * Caption (underneath label) that can be set as a way of adding extra information.
56
57
  */
57
58
  caption: string;
58
59
  /**
59
60
  * Controls the margin of the component.
60
61
  */
61
62
  margin: DuetMargin;
63
+ /**
64
+ * The currently active language. This setting changes the month/year/day.
65
+ * names and button labels as well as all screen reader labels.
66
+ * @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing.
67
+ * @default "fi"
68
+ */
69
+ language: DuetLanguage;
70
+ /**
71
+ * Placeholder defaults.
72
+ * @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
73
+ */
74
+ placeholderDefaults: DuetLangObject | string;
62
75
  /**
63
76
  * Hint text to display before the user types into the date picker input.
64
77
  * @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
@@ -74,13 +87,6 @@ export declare class DuetDatePicker implements ThemeableComponent, InputComponen
74
87
  * interact with the input, and conveys its inactive state to assistive technologies.
75
88
  */
76
89
  disabled: boolean;
77
- /**
78
- * The currently active language. This setting changes the month/year/day
79
- * names and button labels as well as all screen reader labels.
80
- * @deprecated this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing
81
- * @default "fi"
82
- */
83
- language: DuetLanguage;
84
90
  /**
85
91
  * Display the date picker input in error state along with an error message.
86
92
  */
@@ -142,7 +148,7 @@ export declare class DuetDatePicker implements ThemeableComponent, InputComponen
142
148
  */
143
149
  min: string;
144
150
  /**
145
- * Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD
151
+ * Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.
146
152
  * This setting can be used alone or together with the min property.
147
153
  */
148
154
  max: string;
@@ -0,0 +1,72 @@
1
+ import { EventEmitter } from "../../stencil-public-runtime";
2
+ import { DuetTheme } from "../../common-types";
3
+ import { DuetLangObject } from "../../utils/language-utils";
4
+ import { ThemeableComponent } from "../../utils/themeable-component";
5
+ export interface StringMap {
6
+ [key: string]: any;
7
+ }
8
+ export declare type DuetEditableTableItemEvent = {
9
+ originalEvent?: Event;
10
+ uid: string | number | bigint;
11
+ keyName: string | number | bigint;
12
+ action: string;
13
+ group: string;
14
+ component: "duet-editable-table-item";
15
+ };
16
+ export declare type DuetEditableTableActionButtonItems = {
17
+ icon: string;
18
+ color: string;
19
+ color_hover: string;
20
+ id: string;
21
+ map?: string[];
22
+ label?: DuetLangObject;
23
+ };
24
+ export declare class DuetEditableTableButton implements ThemeableComponent {
25
+ el: HTMLElement;
26
+ isHovering: boolean;
27
+ /**
28
+ * Theme of the empty state component.
29
+ */
30
+ theme: DuetTheme;
31
+ /**
32
+ * action items passed from host component
33
+ * @internal
34
+ */
35
+ actions: DuetEditableTableActionButtonItems;
36
+ /**
37
+ * uid that gets passed along when the action is emitted
38
+ * @internal
39
+ */
40
+ uid: string;
41
+ /**
42
+ * group associated with action
43
+ * @internal
44
+ */
45
+ group: string;
46
+ /**
47
+ * key of the item in the map
48
+ * @internal
49
+ */
50
+ keyName: string;
51
+ /**
52
+ * Emitted when any action is clicked
53
+ */
54
+ duetEditableItemAction: EventEmitter<DuetEditableTableItemEvent>;
55
+ /**
56
+ /**
57
+ * Component lifecycle events.
58
+ */
59
+ componentWillLoad(): void;
60
+ /**
61
+ /**
62
+ * private functions
63
+ */
64
+ private emitActionEvent;
65
+ private onMouseEnter;
66
+ private onMouseLeave;
67
+ /**
68
+ * render() function
69
+ * Always the last one in the class.
70
+ */
71
+ render(): any;
72
+ }
@@ -0,0 +1,72 @@
1
+ import { EventEmitter } from "../../stencil-public-runtime";
2
+ import { DuetTheme } from "../../common-types";
3
+ import { DuetLangObject } from "../../utils/language-utils";
4
+ import { ThemeableComponent } from "../../utils/themeable-component";
5
+ export interface StringMap {
6
+ [key: string]: any;
7
+ }
8
+ export declare type DuetEditableTableItemEvent = {
9
+ originalEvent?: Event;
10
+ uid: string;
11
+ keyName: string;
12
+ action: string;
13
+ group: string;
14
+ component: "duet-editable-table-item";
15
+ };
16
+ export declare type DuetEditableTableActions = {
17
+ icon: string;
18
+ color: string;
19
+ color_hover: string;
20
+ id: string;
21
+ map?: string[];
22
+ label?: DuetLangObject;
23
+ }[];
24
+ export declare type DuetEditableTableItemData = {
25
+ uid: string;
26
+ item: string | HTMLElement;
27
+ group: string;
28
+ };
29
+ export declare class DuetEditableTableItem implements ThemeableComponent {
30
+ el: HTMLElement;
31
+ isHovering: boolean;
32
+ /**
33
+ * Theme of the empty state component.
34
+ */
35
+ theme: DuetTheme;
36
+ /**
37
+ * Actions that can be performed on the element
38
+ */
39
+ actions: DuetEditableTableActions;
40
+ /**
41
+ * GroupId used to pierce the shadowdom - gets concatenated with "content & actions" and used as part="groupIDcontent/actions" to pierce the content/Action item
42
+ * @internal
43
+ */
44
+ groupId: string;
45
+ /**
46
+ * Key used to identify item, when running actions
47
+ */
48
+ keyName: string;
49
+ /**
50
+ * Object of data itemsused to render the entire row
51
+ */
52
+ data: DuetEditableTableItemData;
53
+ watchPropHandler(_newValue: any, _oldValue: any): void;
54
+ /**
55
+ * Emitted when any action is clicked
56
+ */
57
+ duetEditableItemAction: EventEmitter<DuetEditableTableItemEvent>;
58
+ /**
59
+ /**
60
+ * Component lifecycle events.
61
+ */
62
+ componentWillLoad(): void;
63
+ /**
64
+ /**
65
+ * private functions
66
+ */
67
+ /**
68
+ * render() function
69
+ * Always the last one in the class.
70
+ */
71
+ render(): any;
72
+ }
@@ -0,0 +1,7 @@
1
+ import { FunctionalComponent } from "../../stencil-public-runtime";
2
+ interface TableDataProps {
3
+ data: any;
4
+ groupId: string;
5
+ }
6
+ export declare const TableData: FunctionalComponent<TableDataProps>;
7
+ export {};
@@ -0,0 +1,84 @@
1
+ import { DuetTheme } from "../../common-types";
2
+ import { DuetLangObject } from "../../utils/language-utils";
3
+ import { ThemeableComponent } from "../../utils/themeable-component";
4
+ import { DuetEditableTableActions, DuetEditableTableItemData } from "./duet-editable-table-item";
5
+ export declare type DuetEditableTableGroupNames = {
6
+ id: string;
7
+ label: DuetLangObject;
8
+ actionLabel?: DuetLangObject;
9
+ }[];
10
+ export declare type DuetEditableTableItems = Map<any, DuetEditableTableItemData>;
11
+ export declare class DuetEditableTable implements ThemeableComponent {
12
+ private internalGroupArray;
13
+ private internalActionsArray;
14
+ /**
15
+ * Reference to host HTML element.
16
+ */
17
+ element: HTMLElement;
18
+ /**
19
+ * State() variables
20
+ * @internal
21
+ */
22
+ tick: number;
23
+ /**
24
+ * Map of items that contain list of things.
25
+ */
26
+ items: DuetEditableTableItems;
27
+ /**
28
+ * Array of internationalized defaults for the default groups labels.
29
+ */
30
+ groupsLabelDefaults: DuetLangObject;
31
+ /**
32
+ * Array of internationalized defaults for the default action labels.
33
+ */
34
+ actionLabelDefaults: DuetLangObject;
35
+ /**
36
+ * Array of group names that you want the editable table to display (can be used to hide or show groups depending on conditions).
37
+ * @default { id: "all", label: this.groupsLabelDefaults, actionLabel: this.actionLabelDefaults }.
38
+ * @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}].
39
+ */
40
+ groups: DuetEditableTableGroupNames | string;
41
+ /**
42
+ * Array of actions that are mapped via the map variable to the various groups defined in group.
43
+ * @default undefined
44
+ * @example [{
45
+ variation: "default",
46
+ icon: "action-edit-2",
47
+ id: "edit",
48
+ map: ["success"],
49
+ label: {
50
+ fi: " Label",
51
+ en: " Label",
52
+ sv: " Label",
53
+ }
54
+ }]
55
+ */
56
+ actions: DuetEditableTableActions | string;
57
+ /**
58
+ * Shows or hides the table labels.
59
+ */
60
+ hideGroups: boolean;
61
+ /**
62
+ * Exposes the aria role for optimizing accessibility.
63
+ */
64
+ accessibleRole: string;
65
+ /**
66
+ * Theme of the table.
67
+ */
68
+ theme: DuetTheme;
69
+ /**
70
+ * Component lifecycle events.
71
+ */
72
+ componentWillLoad(): void;
73
+ /**
74
+ * Method to force an update of a tabular data array.
75
+ * when called the method will rerender the entire tabular structure.
76
+ */
77
+ updateTable(passedItems?: DuetEditableTableItems): Promise<void>;
78
+ /**
79
+ * Private methods.
80
+ */
81
+ private kick;
82
+ filterMap: (needle: any) => [any, DuetEditableTableItemData][];
83
+ render(): any;
84
+ }
@@ -64,7 +64,7 @@ export declare class DuetFooter implements ThemeableComponent {
64
64
  * normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
65
65
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
66
66
  */
67
- accessibleLabelExternalDefaults: DuetLangObject;
67
+ accessibleLabelExternalDefaults: DuetLangObject | string;
68
68
  /**
69
69
  * Adds accessible label for tooltip that is shown in external link (url & external have both been set)
70
70
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
@@ -1,6 +1,6 @@
1
1
  import { ComponentInterface } from "../../stencil-public-runtime";
2
2
  import { DuetDirection, DuetGridBreakpoint } from "../../common-types";
3
- export declare type DuetGridAlignment = "top" | "bottom" | "center" | "stretch" | "baseline";
3
+ export declare type DuetGridAlignment = "top" | "bottom" | "center" | "stretch" | "baseline" | "form_distribute";
4
4
  export declare type DuetGridDistribution = "default" | "left" | "right" | "center" | "space-between" | "space-around" | "space-evenly";
5
5
  export declare type DuetGridMobileAlignment = "" | "auto" | "left" | "right" | "center";
6
6
  export declare class DuetGrid implements ComponentInterface {
@@ -8,6 +8,8 @@ export declare class DuetGrid implements ComponentInterface {
8
8
  * Own Properties.
9
9
  */
10
10
  private mutationO?;
11
+ private mutation1?;
12
+ distributeFormElement: boolean;
11
13
  /**
12
14
  * Reference to host HTML element.
13
15
  */
@@ -28,7 +30,9 @@ export declare class DuetGrid implements ComponentInterface {
28
30
  */
29
31
  direction: DuetDirection;
30
32
  /**
31
- * Adjusts the vertical alignment of the grid items.
33
+ * Adjusts the vertical alignment of the grid items, if set to "form_distribute"
34
+ * the grid will try to calculate correct paddings for any duet-input fields inside duet-grid-items,
35
+ * so that they align even when displaying errors.
32
36
  */
33
37
  alignment: DuetGridAlignment;
34
38
  /**
@@ -39,6 +43,15 @@ export declare class DuetGrid implements ComponentInterface {
39
43
  * Adjusts the horizontal alignment of the grid items on mobile (575px and under).
40
44
  */
41
45
  mobile: DuetGridMobileAlignment;
46
+ /**
47
+ * Private functions
48
+ */
49
+ /**
50
+ * Returns the element height including margins
51
+ * @param element - element
52
+ * @returns {number}
53
+ */
54
+ private outerHeight;
42
55
  /**
43
56
  * Component lifecycle events.
44
57
  */
@@ -48,6 +61,7 @@ export declare class DuetGrid implements ComponentInterface {
48
61
  * Local methods
49
62
  */
50
63
  private updateGridItems;
64
+ private updateGridItemsWithInputFields;
51
65
  /**
52
66
  * render() function
53
67
  * Always the last one in the class.
@@ -75,10 +75,26 @@ export declare class DuetHeader implements ThemeableComponent {
75
75
  */
76
76
  language: DuetLanguage;
77
77
  /**
78
- * Property to change accessibleI18nLabels defaults on the component.
79
- * normally you would handle these strings on an application level and override @accessibleI18nLabels when needed
78
+ * Default strings for accessibleI18nLabels
79
+ * @default {
80
+ fi: {
81
+ skipLabel: "Siirry pääsisältöön",
82
+ changeLanguage: "Vaihda kieltä",
83
+ activeLanguage: "Suomi valittuna",
84
+ },
85
+ sv: {
86
+ skipLabel: "Hoppa till huvudinnehåll",
87
+ changeLanguage: "Ändra Språk",
88
+ activeLanguage: "Svenska valt",
89
+ },
90
+ en: {
91
+ skipLabel: "Skip to main content",
92
+ changeLanguage: "Change language",
93
+ activeLanguage: "English selected",
94
+ },
95
+ }
80
96
  */
81
- accessibleI18nLabelsDefault: Record<DuetLanguage, I18nText>;
97
+ accessibleI18nLabelsDefaults: string | Record<DuetLanguage, I18nText>;
82
98
  /**
83
99
  * Adds i18n translations of all internally used textStrings
84
100
  * @default {
@@ -105,7 +121,7 @@ export declare class DuetHeader implements ThemeableComponent {
105
121
  * normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
106
122
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
107
123
  */
108
- accessibleLabelExternalDefaults: DuetLangObject;
124
+ accessibleLabelExternalDefaults: DuetLangObject | string;
109
125
  /**
110
126
  * Adds accessible label for tooltip that is shown in external link (url & external have both been set)
111
127
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
@@ -115,7 +131,7 @@ export declare class DuetHeader implements ThemeableComponent {
115
131
  * Property to change accessibleLabel defaults on the component.
116
132
  * normally you would handle these strings on an application level and override @accessibleLabel when needed
117
133
  */
118
- accessibleLabelDefault: DuetLangObject;
134
+ accessibleLabelDefaults: DuetLangObject | string;
119
135
  /**
120
136
  * Accessible label that is shown for screen reader users in the mobile
121
137
  * navigation toggle. Not visible for normal users.
@@ -21,9 +21,9 @@ export declare class DuetHeading implements ThemeableComponent {
21
21
  */
22
22
  visualLevel: DuetVisualHeadingLevel;
23
23
  /**
24
- * Enable or disable the border underneath the heading.
24
+ * Enable or disable the border underneath the heading, solid will darken the border
25
25
  */
26
- border: boolean;
26
+ border: boolean | "solid";
27
27
  /**
28
28
  * This property allows you to set semibold font weight for all sizes
29
29
  * when needed.
@@ -103,10 +103,10 @@ export declare class DuetHero implements ThemeableComponent {
103
103
  */
104
104
  language: DuetLanguage;
105
105
  /**
106
- * Property to change accessibleLabelExternal defaults on the component.
107
- * normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
106
+ * Defaults for accessibleLabelExternal
107
+ * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
108
108
  */
109
- accessibleLabelExternalDefaults: DuetLangObject;
109
+ accessibleLabelExternalDefaults: DuetLangObject | string;
110
110
  /**
111
111
  * Adds accessible label for tooltip that is shown in external link (url & external have both been set)
112
112
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
@@ -60,7 +60,7 @@ export declare class DuetIcon implements ThemeableComponent {
60
60
  /**
61
61
  * Component lifecycle events.
62
62
  */
63
- componentWillLoad(): void;
63
+ componentWillLoad(): Promise<void>;
64
64
  loadIcon(): Promise<void>;
65
65
  /**
66
66
  * render() function.
@@ -1,2 +1,2 @@
1
1
  export declare const buildIconUrl: (iconName: string) => string;
2
- export declare function fetchIconByUrl(url: string): Promise<string>;
2
+ export declare function fetchIconByUrl(url: string, isServer?: boolean): Promise<string>;
@@ -17,11 +17,10 @@ export declare class DuetLink implements ThemeableComponent {
17
17
  */
18
18
  language: DuetLanguage;
19
19
  /**
20
- * Property to change accessibleLabelExternal defaults on the component.
21
- * normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
20
+ * Defaults for accessibleLabelExternal
22
21
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
23
22
  */
24
- accessibleLabelExternalDefaults: DuetLangObject;
23
+ accessibleLabelExternalDefaults: DuetLangObject | string;
25
24
  /**
26
25
  * Adds accessible label for tooltip that is shown in external link (url & external have both been set)
27
26
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
@@ -40,10 +40,10 @@ export declare class DuetModal implements ThemeableComponent {
40
40
  */
41
41
  language: DuetLanguage;
42
42
  /**
43
- * Property to change accessibleCloseLabel defaults on the component.
44
- * normally you would handle these strings on an application level and override @accessibleCloseLabel when needed
43
+ * Defaults for accessibleCloseLabel
44
+ * @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
45
45
  */
46
- accessibleCloseLabelDefault: DuetLangObject;
46
+ accessibleCloseLabelDefaults: DuetLangObject | string;
47
47
  /**
48
48
  * Adds accessible label for the close icon that is only shown for screen
49
49
  * readers. This property is always required to create an accessibly interface!
@@ -33,10 +33,10 @@ export declare class DuetNotificationDrawer implements ThemeableComponent {
33
33
  */
34
34
  language: DuetLanguage;
35
35
  /**
36
- * Property to change accessibleLabelNotifications defaults on the component.
37
- * normally you would handle these strings on an application level and override @accessibleLabelNotifications when needed
36
+ * Defaults for accessibleLabelNotifications
37
+ * @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
38
38
  */
39
- accessibleLabelNotificationsDefaults: DuetLangObject;
39
+ accessibleLabelNotificationsDefaults: DuetLangObject | string;
40
40
  /**
41
41
  * Adds accessible label for tooltip that is shown for notifications
42
42
  * @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
@@ -1,6 +1,7 @@
1
1
  import { EventEmitter } from "../../stencil-public-runtime";
2
2
  import { DuetLanguage, DuetLocale, DuetMargin, DuetTheme } from "../../common-types";
3
3
  import { DuetNumericInput } from "../../utils/form-components";
4
+ import { DuetLangObject } from "../../utils/language-utils";
4
5
  import { ThemeableComponent } from "../../utils/themeable-component";
5
6
  export declare type DuetNumberInputEvent = {
6
7
  originalEvent?: Event;
@@ -55,6 +56,11 @@ export declare class DuetNumberInput implements ThemeableComponent, DuetNumericI
55
56
  * Indicates the id of a component that describes the input.
56
57
  */
57
58
  accessibleDescribedBy: string;
59
+ /**
60
+ * Defaults for accessibleLive
61
+ * @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
62
+ */
63
+ accessibleLiveDefaults: DuetLangObject | string;
58
64
  /**
59
65
  * Format of message used to announce current amount when switching between amounts.
60
66
  * The string {current} is replaced with the current amount.
@@ -65,11 +71,21 @@ export declare class DuetNumberInput implements ThemeableComponent, DuetNumericI
65
71
  * Disables the aria-live messaging used internally in this component. This could be useful when you want to use custom aria-live messages instead.
66
72
  */
67
73
  accessibleLiveEnabled: boolean;
74
+ /**
75
+ * Defaults for accessibleAdd
76
+ * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
77
+ */
78
+ accessibleAddDefaults: DuetLangObject | string;
68
79
  /**
69
80
  * Accessible label for the add button that is read for screen reader users.
70
81
  * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
71
82
  */
72
83
  accessibleAdd: string;
84
+ /**
85
+ * Defaults for accessibleSubtract
86
+ * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
87
+ */
88
+ accessibleSubtractDefaults: DuetLangObject | string;
73
89
  /**
74
90
  * Accessible label for the subtract button that is read for screen reader users.
75
91
  * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
@@ -95,6 +111,11 @@ export declare class DuetNumberInput implements ThemeableComponent, DuetNumericI
95
111
  * Minimum value.
96
112
  */
97
113
  min: number;
114
+ /**
115
+ * Defaults for Label
116
+ * @default {fi: "Etiketti", en: "Label", sv: "Märka"}
117
+ */
118
+ labelDefaults: DuetLangObject | string;
98
119
  /**
99
120
  * Label for the number input.
100
121
  * @default {fi: "Etiketti", en: "Label", sv: "Märka"}