@duetds/components 4.30.1 → 4.31.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 (312) hide show
  1. package/hydrate/index.js +230 -1038
  2. package/lib/cjs/duet-alert.cjs.entry.js +4 -2
  3. package/lib/cjs/duet-badge.cjs.entry.js +2 -2
  4. package/lib/cjs/duet-button_2.cjs.entry.js +4 -3
  5. package/lib/cjs/duet-caption_4.cjs.entry.js +7 -8
  6. package/lib/cjs/duet-card.cjs.entry.js +4 -4
  7. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-choice_2.cjs.entry.js +4 -3
  9. package/lib/cjs/duet-collapsible.cjs.entry.js +2 -2
  10. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-date-picker.cjs.entry.js +22 -12
  12. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-footer.cjs.entry.js +4 -4
  16. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-header_2.cjs.entry.js +25 -9
  18. package/lib/cjs/duet-hero.cjs.entry.js +6 -6
  19. package/lib/cjs/duet-icon.cjs.entry.js +3 -3
  20. package/lib/cjs/duet-input_2.cjs.entry.js +2 -2
  21. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-modal.cjs.entry.js +8 -7
  24. package/lib/cjs/duet-notification_2.cjs.entry.js +6 -5
  25. package/lib/cjs/duet-number-input.cjs.entry.js +36 -15
  26. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-select.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-tab_2.cjs.entry.js +11 -5
  31. package/lib/cjs/duet-table.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-tooltip.cjs.entry.js +21 -10
  35. package/lib/cjs/duet-tray.cjs.entry.js +20 -9
  36. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  37. package/lib/cjs/duet.cjs.js +2 -2
  38. package/lib/cjs/{focus-utils-7605778f.js → focus-utils-bd331feb.js} +1 -1
  39. package/lib/cjs/{index-0c949193.js → index-113c2add.js} +0 -3
  40. package/lib/cjs/{language-utils-70d6a9a4.js → language-utils-48b8860b.js} +23 -8
  41. package/lib/cjs/loader.cjs.js +2 -2
  42. package/lib/cjs/{string-utils-a6de43d8.js → string-utils-267e3dbb.js} +7 -0
  43. package/lib/collection/collection-manifest.json +0 -6
  44. package/lib/collection/components/duet-alert/duet-alert.js +10 -4
  45. package/lib/collection/components/duet-badge/duet-badge.css +1 -0
  46. package/lib/collection/components/duet-button/duet-button.js +7 -5
  47. package/lib/collection/components/duet-card/duet-card.css +10 -7
  48. package/lib/collection/components/duet-card/duet-card.js +3 -5
  49. package/lib/collection/components/duet-choice/duet-choice.js +5 -3
  50. package/lib/collection/components/duet-choice-group/duet-choice-group.css +1 -0
  51. package/lib/collection/components/duet-date-picker/duet-date-picker.css +1 -1
  52. package/lib/collection/components/duet-date-picker/duet-date-picker.js +73 -38
  53. package/lib/collection/components/duet-footer/duet-footer.js +7 -5
  54. package/lib/collection/components/duet-header/duet-header.js +46 -21
  55. package/lib/collection/components/duet-heading/duet-heading.css +1 -0
  56. package/lib/collection/components/duet-hero/duet-hero.js +14 -9
  57. package/lib/collection/components/duet-icon/icon-utils.js +1 -1
  58. package/lib/collection/components/duet-label/duet-label.css +2 -0
  59. package/lib/collection/components/duet-link/duet-link.js +10 -11
  60. package/lib/collection/components/duet-modal/duet-modal.js +16 -11
  61. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +14 -9
  62. package/lib/collection/components/duet-number-input/duet-number-input.js +141 -17
  63. package/lib/collection/components/duet-tab-group/duet-tab-group.js +35 -4
  64. package/lib/collection/components/duet-tooltip/duet-tooltip.js +72 -10
  65. package/lib/collection/components/duet-tray/duet-tray.js +71 -9
  66. package/lib/collection/utils/fixture-utils.js +7 -5
  67. package/lib/collection/utils/language-utils.js +22 -8
  68. package/lib/collection/utils/string-utils.js +6 -0
  69. package/lib/custom-elements-bundle/index.d.ts +0 -6
  70. package/lib/custom-elements-bundle/index.js +224 -995
  71. package/lib/duet/duet.esm.js +1 -1
  72. package/lib/duet/duet.js +1 -1
  73. package/lib/duet/p-0058512b.js +4 -0
  74. package/lib/duet/p-0224db45.entry.js +4 -0
  75. package/lib/duet/{p-345ea4f2.system.entry.js → p-02ad46a0.system.entry.js} +1 -1
  76. package/lib/duet/{p-62806bb6.system.entry.js → p-07263910.system.entry.js} +1 -1
  77. package/lib/duet/{p-f82709ba.entry.js → p-1bfbc988.entry.js} +1 -1
  78. package/lib/duet/p-1cd7177f.entry.js +4 -0
  79. package/lib/duet/p-1cec5a70.system.entry.js +4 -0
  80. package/lib/duet/p-1e7222c2.entry.js +4 -0
  81. package/lib/duet/{p-c0b95b58.entry.js → p-202bbd70.entry.js} +1 -1
  82. package/lib/duet/{p-d1817efe.system.entry.js → p-22f56356.system.entry.js} +1 -1
  83. package/lib/duet/{p-f81d8534.entry.js → p-28b67b94.entry.js} +1 -1
  84. package/lib/duet/{p-b4374f0e.entry.js → p-33426ddc.entry.js} +1 -1
  85. package/lib/duet/p-33cf6ed1.entry.js +4 -0
  86. package/lib/duet/p-3d3f773d.system.entry.js +4 -0
  87. package/lib/duet/p-3e1ef509.system.entry.js +4 -0
  88. package/lib/duet/p-3f78a826.system.js +4 -0
  89. package/lib/duet/{p-2a1a9f9f.entry.js → p-44ffb960.entry.js} +1 -1
  90. package/lib/duet/{p-dee41056.system.entry.js → p-453955cc.system.entry.js} +1 -1
  91. package/lib/duet/{p-66dde4d2.entry.js → p-4670a654.entry.js} +1 -1
  92. package/lib/duet/p-47645ea8.system.entry.js +4 -0
  93. package/lib/duet/p-504dbf8f.system.entry.js +4 -0
  94. package/lib/duet/{p-62c294d6.system.entry.js → p-5230ee3c.system.entry.js} +1 -1
  95. package/lib/duet/{p-bbc229d8.system.entry.js → p-56e172f5.system.entry.js} +1 -1
  96. package/lib/duet/{p-de2be65b.system.js → p-57ea2576.system.js} +1 -1
  97. package/lib/duet/p-5aa0d34d.entry.js +4 -0
  98. package/lib/duet/p-5fc7e1f7.system.entry.js +4 -0
  99. package/lib/duet/{p-3dc9d15d.system.entry.js → p-605bc214.system.entry.js} +1 -1
  100. package/lib/duet/{p-4a7911fd.entry.js → p-60ab57d4.entry.js} +1 -1
  101. package/lib/duet/p-64109493.entry.js +4 -0
  102. package/lib/duet/{p-7e108b7e.entry.js → p-69a5dc6b.entry.js} +1 -1
  103. package/lib/duet/{p-8cfce39e.system.entry.js → p-6a230911.system.entry.js} +1 -1
  104. package/lib/duet/p-6a760b8a.entry.js +4 -0
  105. package/lib/duet/{p-c9303f9a.entry.js → p-6d2da245.entry.js} +1 -1
  106. package/lib/duet/{p-ceb75b35.system.entry.js → p-712e7dde.system.entry.js} +1 -1
  107. package/lib/duet/{p-f71f12ed.entry.js → p-746655ba.entry.js} +1 -1
  108. package/lib/duet/p-7b6db837.system.entry.js +4 -0
  109. package/lib/duet/p-7d080785.system.entry.js +4 -0
  110. package/lib/duet/{p-4095dba5.entry.js → p-82dc2e0b.entry.js} +1 -1
  111. package/lib/duet/p-8c8e82aa.system.js +4 -0
  112. package/lib/duet/{p-fc397e03.system.entry.js → p-8c980350.system.entry.js} +1 -1
  113. package/lib/duet/{p-1cfe38b1.system.entry.js → p-8cb47a70.system.entry.js} +1 -1
  114. package/lib/duet/{p-7ee52f58.entry.js → p-8f03c3eb.entry.js} +1 -1
  115. package/lib/duet/p-91fa68a5.js +4 -0
  116. package/lib/duet/{p-e26116e0.system.entry.js → p-92d38668.system.entry.js} +1 -1
  117. package/lib/duet/p-95626e7e.system.entry.js +4 -0
  118. package/lib/duet/p-96808a2e.system.entry.js +4 -0
  119. package/lib/duet/{p-8ffe1461.system.entry.js → p-96c103b2.system.entry.js} +1 -1
  120. package/lib/duet/p-986779fb.js +4 -0
  121. package/lib/duet/{p-35e45c19.system.js → p-9a945278.system.js} +1 -1
  122. package/lib/duet/{p-2d2c45f9.entry.js → p-9c94be45.entry.js} +1 -1
  123. package/lib/duet/p-9ce1baab.system.entry.js +4 -0
  124. package/lib/duet/p-9ff25646.entry.js +4 -0
  125. package/lib/duet/p-a1d12e94.system.entry.js +4 -0
  126. package/lib/duet/p-b03a46b6.entry.js +4 -0
  127. package/lib/duet/{p-a88df408.entry.js → p-b1b8e510.entry.js} +1 -1
  128. package/lib/duet/p-b694cbf5.system.js +4 -0
  129. package/lib/duet/p-b7e50cfa.entry.js +4 -0
  130. package/lib/duet/p-b82927b0.system.entry.js +4 -0
  131. package/lib/duet/{p-c3688975.entry.js → p-ba205dca.entry.js} +1 -1
  132. package/lib/duet/{p-f71e337e.system.entry.js → p-bcae23fc.system.entry.js} +1 -1
  133. package/lib/duet/{p-5c5bdb06.system.entry.js → p-be19c57b.system.entry.js} +1 -1
  134. package/lib/duet/{p-a321a98c.entry.js → p-c4737f88.entry.js} +1 -1
  135. package/lib/duet/p-c5beceed.js +4 -0
  136. package/lib/duet/{p-27d538f7.system.entry.js → p-c5f10483.system.entry.js} +1 -1
  137. package/lib/duet/{p-a6096b05.system.entry.js → p-d35fd913.system.entry.js} +1 -1
  138. package/lib/duet/p-d4b4bfa6.entry.js +4 -0
  139. package/lib/duet/p-d7623eb8.system.entry.js +4 -0
  140. package/lib/duet/{p-36007600.entry.js → p-dc85d2a4.entry.js} +1 -1
  141. package/lib/duet/p-de093c16.entry.js +4 -0
  142. package/lib/duet/p-de842863.entry.js +4 -0
  143. package/lib/duet/{p-59a07cf9.entry.js → p-e08b8909.entry.js} +1 -1
  144. package/lib/duet/p-e39471b6.entry.js +4 -0
  145. package/lib/duet/p-e834c8d5.system.entry.js +4 -0
  146. package/lib/duet/{p-ce1374a4.system.entry.js → p-ef45cfe9.system.entry.js} +1 -1
  147. package/lib/duet/{p-031c2cd8.system.entry.js → p-f0b1850a.system.entry.js} +1 -1
  148. package/lib/duet/p-f53c8019.entry.js +4 -0
  149. package/lib/duet/{p-4265de16.system.entry.js → p-f96c4093.system.entry.js} +1 -1
  150. package/lib/duet/p-fbd83d67.entry.js +4 -0
  151. package/lib/duet/{p-1c41525a.entry.js → p-fdecaf46.entry.js} +1 -1
  152. package/lib/esm/duet-alert.entry.js +4 -2
  153. package/lib/esm/duet-badge.entry.js +2 -2
  154. package/lib/esm/duet-button_2.entry.js +4 -3
  155. package/lib/esm/duet-caption_4.entry.js +7 -8
  156. package/lib/esm/duet-card.entry.js +4 -4
  157. package/lib/esm/duet-checkbox.entry.js +1 -1
  158. package/lib/esm/duet-choice_2.entry.js +4 -3
  159. package/lib/esm/duet-collapsible.entry.js +2 -2
  160. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  161. package/lib/esm/duet-date-picker.entry.js +22 -12
  162. package/lib/esm/duet-divider_2.entry.js +1 -1
  163. package/lib/esm/duet-empty-state.entry.js +1 -1
  164. package/lib/esm/duet-fieldset.entry.js +1 -1
  165. package/lib/esm/duet-footer.entry.js +4 -4
  166. package/lib/esm/duet-grid_2.entry.js +1 -1
  167. package/lib/esm/duet-header_2.entry.js +25 -9
  168. package/lib/esm/duet-hero.entry.js +6 -6
  169. package/lib/esm/duet-icon.entry.js +3 -3
  170. package/lib/esm/duet-input_2.entry.js +2 -2
  171. package/lib/esm/duet-layout.entry.js +1 -1
  172. package/lib/esm/duet-list_2.entry.js +1 -1
  173. package/lib/esm/duet-modal.entry.js +8 -7
  174. package/lib/esm/duet-notification_2.entry.js +6 -5
  175. package/lib/esm/duet-number-input.entry.js +36 -15
  176. package/lib/esm/duet-radio_2.entry.js +1 -1
  177. package/lib/esm/duet-range-slider.entry.js +1 -1
  178. package/lib/esm/duet-select.entry.js +2 -2
  179. package/lib/esm/duet-step_2.entry.js +1 -1
  180. package/lib/esm/duet-tab_2.entry.js +11 -5
  181. package/lib/esm/duet-table.entry.js +1 -1
  182. package/lib/esm/duet-textarea.entry.js +1 -1
  183. package/lib/esm/duet-toggle.entry.js +1 -1
  184. package/lib/esm/duet-tooltip.entry.js +21 -10
  185. package/lib/esm/duet-tray.entry.js +20 -9
  186. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  187. package/lib/esm/duet.js +2 -2
  188. package/lib/esm/{focus-utils-0b12f0df.js → focus-utils-1995e5a9.js} +1 -1
  189. package/lib/esm/{index-f70ddc7f.js → index-6e246691.js} +0 -3
  190. package/lib/esm/{language-utils-ab9c3afc.js → language-utils-d5c38f65.js} +23 -8
  191. package/lib/esm/loader.js +2 -2
  192. package/lib/esm/{string-utils-69cf0d09.js → string-utils-2f1793b8.js} +7 -1
  193. package/lib/esm-es5/duet-alert.entry.js +1 -1
  194. package/lib/esm-es5/duet-badge.entry.js +1 -1
  195. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  196. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  197. package/lib/esm-es5/duet-card.entry.js +1 -1
  198. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  199. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  200. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  201. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  202. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  203. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  204. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  205. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  206. package/lib/esm-es5/duet-footer.entry.js +1 -1
  207. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  208. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  209. package/lib/esm-es5/duet-hero.entry.js +1 -1
  210. package/lib/esm-es5/duet-icon.entry.js +1 -1
  211. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  212. package/lib/esm-es5/duet-layout.entry.js +1 -1
  213. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  214. package/lib/esm-es5/duet-modal.entry.js +1 -1
  215. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  216. package/lib/esm-es5/duet-number-input.entry.js +2 -2
  217. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  218. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  219. package/lib/esm-es5/duet-select.entry.js +1 -1
  220. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  221. package/lib/esm-es5/duet-tab_2.entry.js +1 -1
  222. package/lib/esm-es5/duet-table.entry.js +1 -1
  223. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  224. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  225. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  226. package/lib/esm-es5/duet-tray.entry.js +1 -1
  227. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  228. package/lib/esm-es5/duet.js +1 -1
  229. package/lib/esm-es5/focus-utils-1995e5a9.js +4 -0
  230. package/lib/esm-es5/{index-f70ddc7f.js → index-6e246691.js} +1 -1
  231. package/lib/esm-es5/language-utils-d5c38f65.js +4 -0
  232. package/lib/esm-es5/loader.js +1 -1
  233. package/lib/esm-es5/{string-utils-69cf0d09.js → string-utils-2f1793b8.js} +1 -1
  234. package/lib/html.html-data.json +4489 -0
  235. package/lib/types/components/duet-alert/duet-alert.d.ts +2 -1
  236. package/lib/types/components/duet-button/duet-button.d.ts +1 -1
  237. package/lib/types/components/duet-choice/duet-choice.d.ts +1 -1
  238. package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +13 -7
  239. package/lib/types/components/duet-footer/duet-footer.d.ts +1 -1
  240. package/lib/types/components/duet-header/duet-header.d.ts +21 -5
  241. package/lib/types/components/duet-hero/duet-hero.d.ts +3 -3
  242. package/lib/types/components/duet-link/duet-link.d.ts +2 -3
  243. package/lib/types/components/duet-modal/duet-modal.d.ts +3 -3
  244. package/lib/types/components/duet-notification-drawer/duet-notification-drawer.d.ts +3 -3
  245. package/lib/types/components/duet-number-input/duet-number-input.d.ts +21 -0
  246. package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +6 -0
  247. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +11 -0
  248. package/lib/types/components/duet-tray/duet-tray.d.ts +11 -0
  249. package/lib/types/components.d.ts +146 -384
  250. package/lib/types/utils/language-utils.d.ts +3 -2
  251. package/lib/types/utils/string-utils.d.ts +1 -0
  252. package/package.json +18 -14
  253. package/lib/cjs/duet-upload.cjs.entry.js +0 -866
  254. package/lib/collection/components/duet-upload/duet-upload-file-list.js +0 -49
  255. package/lib/collection/components/duet-upload/duet-upload-validators.js +0 -93
  256. package/lib/collection/components/duet-upload/duet-upload.css +0 -133
  257. package/lib/collection/components/duet-upload/duet-upload.js +0 -1440
  258. package/lib/collection/components/duet-upload/errorcodes.utils.js +0 -20
  259. package/lib/collection/components/duet-upload/mock.helpers.js +0 -91
  260. package/lib/collection/components/duet-upload/upload.helpers.js +0 -13
  261. package/lib/collection/components/duet-upload/xhr.helpers.js +0 -34
  262. package/lib/duet/p-0733c303.system.entry.js +0 -4
  263. package/lib/duet/p-095060cc.js +0 -4
  264. package/lib/duet/p-156864a1.system.entry.js +0 -4
  265. package/lib/duet/p-1911dfe7.system.entry.js +0 -4
  266. package/lib/duet/p-2834a302.entry.js +0 -4
  267. package/lib/duet/p-28a3d38f.system.entry.js +0 -4
  268. package/lib/duet/p-2a4d7c5b.system.entry.js +0 -4
  269. package/lib/duet/p-4289b543.entry.js +0 -4
  270. package/lib/duet/p-46a3ae43.system.js +0 -4
  271. package/lib/duet/p-4a38cf9d.entry.js +0 -4
  272. package/lib/duet/p-4be8e814.entry.js +0 -4
  273. package/lib/duet/p-591b2137.entry.js +0 -4
  274. package/lib/duet/p-5f70e318.entry.js +0 -4
  275. package/lib/duet/p-6c2729da.js +0 -4
  276. package/lib/duet/p-6f107847.system.entry.js +0 -4
  277. package/lib/duet/p-77a5fe4c.system.js +0 -4
  278. package/lib/duet/p-7809e78b.system.entry.js +0 -4
  279. package/lib/duet/p-7a36d76f.system.entry.js +0 -4
  280. package/lib/duet/p-884693f1.entry.js +0 -4
  281. package/lib/duet/p-8977b722.entry.js +0 -4
  282. package/lib/duet/p-89db3b94.entry.js +0 -4
  283. package/lib/duet/p-9381c2d4.entry.js +0 -4
  284. package/lib/duet/p-9a450c9a.entry.js +0 -4
  285. package/lib/duet/p-9bbfe606.system.entry.js +0 -4
  286. package/lib/duet/p-a0a066cb.system.entry.js +0 -4
  287. package/lib/duet/p-a89d5d7c.entry.js +0 -4
  288. package/lib/duet/p-b07055fd.system.entry.js +0 -4
  289. package/lib/duet/p-b456d684.system.entry.js +0 -4
  290. package/lib/duet/p-bd18c93f.js +0 -4
  291. package/lib/duet/p-bddb1c15.system.entry.js +0 -4
  292. package/lib/duet/p-c4d183e6.entry.js +0 -4
  293. package/lib/duet/p-cd4e8ccf.js +0 -4
  294. package/lib/duet/p-cf243bcb.system.entry.js +0 -4
  295. package/lib/duet/p-d37c8a05.system.js +0 -4
  296. package/lib/duet/p-d989af11.entry.js +0 -4
  297. package/lib/duet/p-e6128d82.system.entry.js +0 -4
  298. package/lib/duet/p-e86cdc17.entry.js +0 -4
  299. package/lib/duet/p-eadb29c7.entry.js +0 -4
  300. package/lib/duet/p-f30b14d6.system.entry.js +0 -4
  301. package/lib/duet/p-f79f8da1.entry.js +0 -4
  302. package/lib/esm/duet-upload.entry.js +0 -862
  303. package/lib/esm-es5/duet-upload.entry.js +0 -4
  304. package/lib/esm-es5/focus-utils-0b12f0df.js +0 -4
  305. package/lib/esm-es5/language-utils-ab9c3afc.js +0 -4
  306. package/lib/types/components/duet-upload/duet-upload-file-list.d.ts +0 -9
  307. package/lib/types/components/duet-upload/duet-upload-validators.d.ts +0 -12
  308. package/lib/types/components/duet-upload/duet-upload.d.ts +0 -311
  309. package/lib/types/components/duet-upload/errorcodes.utils.d.ts +0 -7
  310. package/lib/types/components/duet-upload/mock.helpers.d.ts +0 -2
  311. package/lib/types/components/duet-upload/upload.helpers.d.ts +0 -1
  312. package/lib/types/components/duet-upload/xhr.helpers.d.ts +0 -12
@@ -45,7 +45,6 @@ import { DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant } from "
45
45
  import { DuetTextareaEvent } from "./components/duet-textarea/duet-textarea";
46
46
  import { DuetToggleChangeEvent } from "./components/duet-toggle/duet-toggle";
47
47
  import { DuetTooltipBreakpoint } from "./components/duet-tooltip/duet-tooltip";
48
- import { DuetUploadEvent, StringMap } from "./components/duet-upload/duet-upload";
49
48
  export namespace Components {
50
49
  interface DuetAlert {
51
50
  /**
@@ -55,8 +54,9 @@ export namespace Components {
55
54
  "accessibleLabel": string;
56
55
  /**
57
56
  * Property to change languageDefaults on the component. normally you would handle these strings on an application level and override @accessibleLabel when needed
57
+ * @default {fi: "Sulje viesti", sv: "Stäng meddelandet", en: "Close the message"}
58
58
  */
59
- "accessibleLabelDefaults": DuetLangObject;
59
+ "accessibleLabelDefaults": DuetLangObject | string;
60
60
  /**
61
61
  * Enable or disabled announcements by assistive technologies.
62
62
  */
@@ -134,7 +134,7 @@ export namespace Components {
134
134
  * Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
135
135
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
136
136
  */
137
- "accessibleLabelExternalDefaults": DuetLangObject;
137
+ "accessibleLabelExternalDefaults": DuetLangObject | string;
138
138
  /**
139
139
  * Indicates the id of a component owned by the button.
140
140
  */
@@ -413,7 +413,7 @@ export namespace Components {
413
413
  /**
414
414
  * Property to change accessibleLabelInfoButton defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelInfoButton when needed
415
415
  */
416
- "accessibleLabelInfoButtonDefaults": DuetLangObject;
416
+ "accessibleLabelInfoButtonDefaults": DuetLangObject | string;
417
417
  /**
418
418
  * Indicates the id of a component owned by the choice.
419
419
  */
@@ -668,6 +668,11 @@ export namespace Components {
668
668
  * @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
669
669
  */
670
670
  "placeholder": string;
671
+ /**
672
+ * Placeholder defaults
673
+ * @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
674
+ */
675
+ "placeholderDefaults": DuetLangObject | string;
671
676
  /**
672
677
  * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them. When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
673
678
  */
@@ -765,7 +770,7 @@ export namespace Components {
765
770
  * Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
766
771
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
767
772
  */
768
- "accessibleLabelExternalDefaults": DuetLangObject;
773
+ "accessibleLabelExternalDefaults": DuetLangObject | string;
769
774
  /**
770
775
  * An array of items for the main footer links. Items have to include mandatory "label", "href" and "icon" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
771
776
  */
@@ -854,9 +859,11 @@ export namespace Components {
854
859
  */
855
860
  "accessibleI18nLabels": I18nText;
856
861
  /**
857
- * Property to change accessibleI18nLabels defaults on the component. normally you would handle these strings on an application level and override @accessibleI18nLabels when needed
862
+ * Default strings for accessibleI18nLabels
863
+ * @default { fi: { skipLabel: "Siirry pääsisältöön", changeLanguage: "Vaihda kieltä", activeLanguage: "Suomi valittuna", }, sv: { skipLabel: "Hoppa till huvudinnehåll", changeLanguage: "Ändra Språk", activeLanguage: "Svenska valt", }, en: { skipLabel: "Skip to main content", changeLanguage: "Change language", activeLanguage: "English selected", }, }
858
864
  */
859
- "accessibleI18nLabelsDefault": Record<DuetLanguage, I18nText>;
865
+ "accessibleI18nLabelsDefaults": | string
866
+ | Record<DuetLanguage, I18nText>;
860
867
  /**
861
868
  * Accessible label that is shown for screen reader users in the mobile navigation toggle. Not visible for normal users.
862
869
  * @default { fi: "Valikko", sv: "Meny", en: "Menu", }
@@ -865,7 +872,7 @@ export namespace Components {
865
872
  /**
866
873
  * Property to change accessibleLabel defaults on the component. normally you would handle these strings on an application level and override @accessibleLabel when needed
867
874
  */
868
- "accessibleLabelDefault": DuetLangObject;
875
+ "accessibleLabelDefaults": DuetLangObject | string;
869
876
  /**
870
877
  * Adds accessible label for tooltip that is shown in external link (url & external have both been set)
871
878
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
@@ -875,7 +882,7 @@ export namespace Components {
875
882
  * Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
876
883
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
877
884
  */
878
- "accessibleLabelExternalDefaults": DuetLangObject;
885
+ "accessibleLabelExternalDefaults": DuetLangObject | string;
879
886
  /**
880
887
  * An object that includes mandatory "label" and "href" fields for the back link. Additionally, you can pass an "id" that is added as an HTML identifier for the element. If nothing is passed, back link won’t be shown. **NOTE: The back link should be ONLY used in combination with language and logoHref props.**
881
888
  */
@@ -980,9 +987,10 @@ export namespace Components {
980
987
  */
981
988
  "accessibleLabelExternal": string;
982
989
  /**
983
- * Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
990
+ * Defaults for accessibleLabelExternal
991
+ * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
984
992
  */
985
- "accessibleLabelExternalDefaults": DuetLangObject;
993
+ "accessibleLabelExternalDefaults": DuetLangObject | string;
986
994
  /**
987
995
  * An array of items for the main actions. Items have to include mandatory "label", "href" and "icon" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
988
996
  */
@@ -1305,10 +1313,10 @@ export namespace Components {
1305
1313
  */
1306
1314
  "accessibleLabelExternal": string;
1307
1315
  /**
1308
- * Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
1316
+ * Defaults for accessibleLabelExternal
1309
1317
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
1310
1318
  */
1311
- "accessibleLabelExternalDefaults": DuetLangObject;
1319
+ "accessibleLabelExternalDefaults": DuetLangObject | string;
1312
1320
  /**
1313
1321
  * Forces URL to open in a new browser tab. Used together with URL prop.
1314
1322
  */
@@ -1407,9 +1415,10 @@ export namespace Components {
1407
1415
  */
1408
1416
  "accessibleCloseLabel": string;
1409
1417
  /**
1410
- * Property to change accessibleCloseLabel defaults on the component. normally you would handle these strings on an application level and override @accessibleCloseLabel when needed
1418
+ * Defaults for accessibleCloseLabel
1419
+ * @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
1411
1420
  */
1412
- "accessibleCloseLabelDefault": DuetLangObject;
1421
+ "accessibleCloseLabelDefaults": DuetLangObject | string;
1413
1422
  /**
1414
1423
  * Use this property when you need to have the modal dialog initially active.
1415
1424
  */
@@ -1506,9 +1515,11 @@ export namespace Components {
1506
1515
  */
1507
1516
  "accessibleLabelNotifications": string;
1508
1517
  /**
1509
- * Property to change accessibleLabelNotifications defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelNotifications when needed
1518
+ * Defaults for accessibleLabelNotifications
1519
+ * @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
1510
1520
  */
1511
- "accessibleLabelNotificationsDefaults": DuetLangObject;
1521
+ "accessibleLabelNotificationsDefaults": | DuetLangObject
1522
+ | string;
1512
1523
  /**
1513
1524
  * Show a badge that indicates something has changed.
1514
1525
  */
@@ -1558,6 +1569,11 @@ export namespace Components {
1558
1569
  * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
1559
1570
  */
1560
1571
  "accessibleAdd": string;
1572
+ /**
1573
+ * Defaults for accessibleAdd
1574
+ * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
1575
+ */
1576
+ "accessibleAddDefaults": DuetLangObject | string;
1561
1577
  /**
1562
1578
  * Use this prop to add an aria-controls attribute. Use the attribute to indicate the id of a component controlled by this component.
1563
1579
  */
@@ -1571,6 +1587,11 @@ export namespace Components {
1571
1587
  * @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
1572
1588
  */
1573
1589
  "accessibleLive": string;
1590
+ /**
1591
+ * Defaults for accessibleLive
1592
+ * @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
1593
+ */
1594
+ "accessibleLiveDefaults": DuetLangObject | string;
1574
1595
  /**
1575
1596
  * Disables the aria-live messaging used internally in this component. This could be useful when you want to use custom aria-live messages instead.
1576
1597
  */
@@ -1584,6 +1605,11 @@ export namespace Components {
1584
1605
  * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
1585
1606
  */
1586
1607
  "accessibleSubtract": string;
1608
+ /**
1609
+ * Defaults for accessibleSubtract
1610
+ * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
1611
+ */
1612
+ "accessibleSubtractDefaults": DuetLangObject | string;
1587
1613
  /**
1588
1614
  * Makes the number input component disabled. This prevents users from being able to interact with the input, and conveys its inactive state to assistive technologies.
1589
1615
  */
@@ -1605,6 +1631,11 @@ export namespace Components {
1605
1631
  * @default {fi: "Etiketti", en: "Label", sv: "Märka"}
1606
1632
  */
1607
1633
  "label": string;
1634
+ /**
1635
+ * Defaults for Label
1636
+ * @default {fi: "Etiketti", en: "Label", sv: "Märka"}
1637
+ */
1638
+ "labelDefaults": DuetLangObject | string;
1608
1639
  /**
1609
1640
  * Visually hide the label, but still show it to screen readers.
1610
1641
  */
@@ -2093,6 +2124,11 @@ export namespace Components {
2093
2124
  * @default {fi: "Valitse", en: "Choose", sv: "Välja"}
2094
2125
  */
2095
2126
  "label": string;
2127
+ /**
2128
+ * Defaults for Label
2129
+ * @default {fi: "Valitse", en: "Choose", sv: "Välja"}
2130
+ */
2131
+ "labelDefaults": DuetLangObject | string;
2096
2132
  /**
2097
2133
  * Determines whether the label for the select element shown on mobile is visually hidden.
2098
2134
  */
@@ -2337,12 +2373,22 @@ export namespace Components {
2337
2373
  * @default {fi: "Sulje lisätiedot", en: "Close details", sv: "Stäng detaljer"}
2338
2374
  */
2339
2375
  "accessibleCloseLabel": string;
2376
+ /**
2377
+ * Default language strings for the accessibleCloseLabel
2378
+ * @default {fi: "Sulje lisätiedot", en: "Close details", sv: "Stäng detaljer"}
2379
+ */
2380
+ "accessibleCloseLabelDefault": DuetLangObject | string;
2340
2381
  "accessibleInputLabel": string;
2341
2382
  /**
2342
2383
  * Adds accessible label for the info icon that is only shown for screen readers. This property is always required to create an accessible interface!
2343
2384
  * @default {fi: "Näytä lisätietoja", en: "See more information", sv: "Se mer information"}
2344
2385
  */
2345
2386
  "accessibleLabel": string;
2387
+ /**
2388
+ * Default language strings for the accessibleLabel
2389
+ * @default {fi: "Näytä lisätietoja", en: "See more information", sv: "Se mer information"}
2390
+ */
2391
+ "accessibleLabelDefault": DuetLangObject | string;
2346
2392
  /**
2347
2393
  * Toggle whether the tooltip is initially visible or not. This property should not be used in production in most cases.
2348
2394
  */
@@ -2384,11 +2430,21 @@ export namespace Components {
2384
2430
  * @default {fi: "Sulje", en: "Close", sv: "Stänga"}
2385
2431
  */
2386
2432
  "accessibleCloseLabel": string;
2433
+ /**
2434
+ * Defaults for accessibleCloseLabel
2435
+ * @default {fi: "Sulje", en: "Close", sv: "Stänga"}
2436
+ */
2437
+ "accessibleCloseLabelDefaults": DuetLangObject | string;
2387
2438
  /**
2388
2439
  * Accessible label that is shown for screen reader users in the expandable open toggle. Not visible for normal users.
2389
2440
  * @default {fi: "Avaa", en: "Open", sv: "Öppen"}
2390
2441
  */
2391
2442
  "accessibleOpenLabel": string;
2443
+ /**
2444
+ * Defaults for accessibleOpenLabel
2445
+ * @default {fi: "Avaa", en: "Open", sv: "Öppen"}
2446
+ */
2447
+ "accessibleOpenLabelDefaults": DuetLangObject | string;
2392
2448
  /**
2393
2449
  * Toggle whether the info panel is visible or not. You can use this property e.g. when pricing information is revealed to the user.
2394
2450
  */
@@ -2412,163 +2468,6 @@ export namespace Components {
2412
2468
  */
2413
2469
  "theme": DuetTheme;
2414
2470
  }
2415
- interface DuetUpload {
2416
- /**
2417
- * Indicates the id of a related component’s visually focused element.
2418
- */
2419
- "accessibleActiveDescendant": string;
2420
- /**
2421
- * accessible Label of button
2422
- */
2423
- "accessibleButtonLabel": string;
2424
- /**
2425
- * Use this prop to add an aria-controls attribute. Use the attribute to indicate the id of a component controlled by this component.
2426
- */
2427
- "accessibleControls": string;
2428
- /**
2429
- * Indicates the id of a component that describes the upload component.
2430
- */
2431
- "accessibleDescribedBy": string;
2432
- /**
2433
- * Indicates the id of a component owned by the input.
2434
- */
2435
- "accessibleOwns": string;
2436
- /**
2437
- * A string of commaseperated file type values that are allowed
2438
- * @example : .pdf,.doc,.docx
2439
- */
2440
- "allowedExtensions": string;
2441
- /**
2442
- * A string of commaseperated mime type values that are allowed
2443
- * @example : image/*,application/msword,
2444
- */
2445
- "allowedMimetypes": string;
2446
- /**
2447
- * Label of button
2448
- * @default { fi: "Lisää liite", sv: "Lägg till en bilaga", en: "Add an attachment" }
2449
- */
2450
- "buttonLabel": string;
2451
- /**
2452
- * Property to change descriptionDefaults defaults on the component. normally you would handle these strings on an application level and override @label when needed
2453
- */
2454
- "buttonLabelDefaults": DuetLangObject;
2455
- /**
2456
- * Caption (underneath label) that can be set as a way of adding extra information
2457
- */
2458
- "caption": string;
2459
- /**
2460
- * if set, allows capture of media from user camera / microphone The capture attribute value is a string that specifies which camera to use for capture of image or video data, if the accept attribute indicates that the input should be of one of those types. A value of user indicates that the user-facing camera and/or microphone should be used. A value of environment specifies that the outward-facing camera and/or microphone should be used. If this attribute is missing, the user agent is free to decide on its own what to do. If the requested facing mode isn't available, the user agent may fall back to its preferred default mode.
2461
- */
2462
- "capture": string | boolean;
2463
- /**
2464
- * Description for the upload component.
2465
- * @default ...
2466
- */
2467
- "description": string;
2468
- /**
2469
- * Property to change descriptionDefaults defaults on the component. normally you would handle these strings on an application level and override @label when needed
2470
- */
2471
- "descriptionDefaults": DuetLangObject;
2472
- /**
2473
- * Makes the input component disabled. This prevents users from being able to interact with the upload component, and conveys its inactive state to assistive technologies.
2474
- */
2475
- "disabled": boolean;
2476
- /**
2477
- * Display the input in error state along with an error message.
2478
- */
2479
- "error": string;
2480
- /**
2481
- * If external is set to true, the upload component will not actually upload the files, but only keep states it will be up to you to handle the upload and return progress information to the upload-component
2482
- */
2483
- "external": boolean;
2484
- /**
2485
- * Label for the filelist's empty state.
2486
- * @default { fi: "Ei vielä lisättyjä tiedostoja.",sv: "Inga filer har lagts till ännu.",en: "No files added yet."}
2487
- */
2488
- "fileListEmpty": string;
2489
- /**
2490
- * Defaults for the filelist's empty state.
2491
- * @default { fi: "Lisää liite",sv: "Lägg till en bilaga",en: "Add attachments"}
2492
- */
2493
- "fileListEmptyDefaults": DuetLangObject;
2494
- /**
2495
- * Map of string that contain list of uploaded files.
2496
- */
2497
- "files": StringMap;
2498
- /**
2499
- * Get list of files, divided in errors and valid sections
2500
- */
2501
- "getFiles": () => Promise<false | { valid: any[]; invalid: any[]; }>;
2502
- /**
2503
- * Adds a unique identifier for the upload component.
2504
- */
2505
- "identifier": string;
2506
- /**
2507
- * Label for the input.
2508
- * @default { fi: "Lisää liite",sv: "Lägg till en bilaga",en: "Add attachments"}
2509
- */
2510
- "label": string;
2511
- /**
2512
- * Property to change labelDefaults defaults on the component. normally you would handle these strings on an application level and override @label when needed
2513
- */
2514
- "labelDefaults": DuetLangObject;
2515
- /**
2516
- * Visually hide the label, but still show it to screen readers.
2517
- */
2518
- "labelHidden": boolean;
2519
- /**
2520
- * Use limitSelection to enforce the value in allowedExtension & allowedMimetypes when selecting files, by default this is off, setting this to true will limit the users choices to what has been explicitly set
2521
- */
2522
- "limitSelection": boolean;
2523
- /**
2524
- * Controls the margin of the component.
2525
- */
2526
- "margin": DuetMargin;
2527
- /**
2528
- * Use maxBytes to specify the maximum size in Bytes of a file that can be uploaded.
2529
- */
2530
- "maxBytes": number;
2531
- /**
2532
- * Use maxBytesTotal to specify the maximum size in Bytes of All files combined that can be uploaded.
2533
- */
2534
- "maxBytesTotal": number;
2535
- /**
2536
- * Use maxFiles to specify the maximum amount of files that can be uploaded
2537
- */
2538
- "maxFiles": number;
2539
- /**
2540
- * Use multiple to allow the user to select multiple files when uploading
2541
- */
2542
- "multiple": boolean;
2543
- /**
2544
- * Name of the upload component.
2545
- */
2546
- "name": string;
2547
- /**
2548
- * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them. When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
2549
- */
2550
- "required": boolean;
2551
- /**
2552
- * Sets focus on the specified `duet-input`. Use this method instead of the global `input.focus()`.
2553
- */
2554
- "setFocus": (options?: FocusOptions) => Promise<void>;
2555
- /**
2556
- * Theme of the input.
2557
- */
2558
- "theme": DuetTheme;
2559
- /**
2560
- * Endpoint URI that is capable of receiving the files
2561
- */
2562
- "uri": string;
2563
- /**
2564
- * Property to read if filelist contains errors or not
2565
- */
2566
- "valid": boolean;
2567
- /**
2568
- * Value of the input.
2569
- */
2570
- "value": string;
2571
- }
2572
2471
  interface DuetVisuallyHidden {
2573
2472
  }
2574
2473
  }
@@ -2861,12 +2760,6 @@ declare global {
2861
2760
  prototype: HTMLDuetTrayElement;
2862
2761
  new (): HTMLDuetTrayElement;
2863
2762
  };
2864
- interface HTMLDuetUploadElement extends Components.DuetUpload, HTMLStencilElement {
2865
- }
2866
- var HTMLDuetUploadElement: {
2867
- prototype: HTMLDuetUploadElement;
2868
- new (): HTMLDuetUploadElement;
2869
- };
2870
2763
  interface HTMLDuetVisuallyHiddenElement extends Components.DuetVisuallyHidden, HTMLStencilElement {
2871
2764
  }
2872
2765
  var HTMLDuetVisuallyHiddenElement: {
@@ -2922,7 +2815,6 @@ declare global {
2922
2815
  "duet-toggle": HTMLDuetToggleElement;
2923
2816
  "duet-tooltip": HTMLDuetTooltipElement;
2924
2817
  "duet-tray": HTMLDuetTrayElement;
2925
- "duet-upload": HTMLDuetUploadElement;
2926
2818
  "duet-visually-hidden": HTMLDuetVisuallyHiddenElement;
2927
2819
  }
2928
2820
  }
@@ -2935,8 +2827,9 @@ declare namespace LocalJSX {
2935
2827
  "accessibleLabel"?: string;
2936
2828
  /**
2937
2829
  * Property to change languageDefaults on the component. normally you would handle these strings on an application level and override @accessibleLabel when needed
2830
+ * @default {fi: "Sulje viesti", sv: "Stäng meddelandet", en: "Close the message"}
2938
2831
  */
2939
- "accessibleLabelDefaults"?: DuetLangObject;
2832
+ "accessibleLabelDefaults"?: DuetLangObject | string;
2940
2833
  /**
2941
2834
  * Enable or disabled announcements by assistive technologies.
2942
2835
  */
@@ -3018,7 +2911,7 @@ declare namespace LocalJSX {
3018
2911
  * Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
3019
2912
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
3020
2913
  */
3021
- "accessibleLabelExternalDefaults"?: DuetLangObject;
2914
+ "accessibleLabelExternalDefaults"?: DuetLangObject | string;
3022
2915
  /**
3023
2916
  * Indicates the id of a component owned by the button.
3024
2917
  */
@@ -3309,7 +3202,7 @@ declare namespace LocalJSX {
3309
3202
  /**
3310
3203
  * Property to change accessibleLabelInfoButton defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelInfoButton when needed
3311
3204
  */
3312
- "accessibleLabelInfoButtonDefaults"?: DuetLangObject;
3205
+ "accessibleLabelInfoButtonDefaults"?: DuetLangObject | string;
3313
3206
  /**
3314
3207
  * Indicates the id of a component owned by the choice.
3315
3208
  */
@@ -3581,6 +3474,11 @@ declare namespace LocalJSX {
3581
3474
  * @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
3582
3475
  */
3583
3476
  "placeholder"?: string;
3477
+ /**
3478
+ * Placeholder defaults
3479
+ * @default { fi: "pp.kk.vvvv", en: "dd.mm.yyyy", sv: "dd.mm.åååå" }
3480
+ */
3481
+ "placeholderDefaults"?: DuetLangObject | string;
3584
3482
  /**
3585
3483
  * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them. When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
3586
3484
  */
@@ -3670,7 +3568,7 @@ declare namespace LocalJSX {
3670
3568
  * Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
3671
3569
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
3672
3570
  */
3673
- "accessibleLabelExternalDefaults"?: DuetLangObject;
3571
+ "accessibleLabelExternalDefaults"?: DuetLangObject | string;
3674
3572
  /**
3675
3573
  * An array of items for the main footer links. Items have to include mandatory "label", "href" and "icon" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
3676
3574
  */
@@ -3777,9 +3675,11 @@ declare namespace LocalJSX {
3777
3675
  */
3778
3676
  "accessibleI18nLabels"?: I18nText;
3779
3677
  /**
3780
- * Property to change accessibleI18nLabels defaults on the component. normally you would handle these strings on an application level and override @accessibleI18nLabels when needed
3678
+ * Default strings for accessibleI18nLabels
3679
+ * @default { fi: { skipLabel: "Siirry pääsisältöön", changeLanguage: "Vaihda kieltä", activeLanguage: "Suomi valittuna", }, sv: { skipLabel: "Hoppa till huvudinnehåll", changeLanguage: "Ändra Språk", activeLanguage: "Svenska valt", }, en: { skipLabel: "Skip to main content", changeLanguage: "Change language", activeLanguage: "English selected", }, }
3781
3680
  */
3782
- "accessibleI18nLabelsDefault"?: Record<DuetLanguage, I18nText>;
3681
+ "accessibleI18nLabelsDefaults"?: | string
3682
+ | Record<DuetLanguage, I18nText>;
3783
3683
  /**
3784
3684
  * Accessible label that is shown for screen reader users in the mobile navigation toggle. Not visible for normal users.
3785
3685
  * @default { fi: "Valikko", sv: "Meny", en: "Menu", }
@@ -3788,7 +3688,7 @@ declare namespace LocalJSX {
3788
3688
  /**
3789
3689
  * Property to change accessibleLabel defaults on the component. normally you would handle these strings on an application level and override @accessibleLabel when needed
3790
3690
  */
3791
- "accessibleLabelDefault"?: DuetLangObject;
3691
+ "accessibleLabelDefaults"?: DuetLangObject | string;
3792
3692
  /**
3793
3693
  * Adds accessible label for tooltip that is shown in external link (url & external have both been set)
3794
3694
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
@@ -3798,7 +3698,7 @@ declare namespace LocalJSX {
3798
3698
  * Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
3799
3699
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
3800
3700
  */
3801
- "accessibleLabelExternalDefaults"?: DuetLangObject;
3701
+ "accessibleLabelExternalDefaults"?: DuetLangObject | string;
3802
3702
  /**
3803
3703
  * An object that includes mandatory "label" and "href" fields for the back link. Additionally, you can pass an "id" that is added as an HTML identifier for the element. If nothing is passed, back link won’t be shown. **NOTE: The back link should be ONLY used in combination with language and logoHref props.**
3804
3704
  */
@@ -3935,9 +3835,10 @@ declare namespace LocalJSX {
3935
3835
  */
3936
3836
  "accessibleLabelExternal"?: string;
3937
3837
  /**
3938
- * Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
3838
+ * Defaults for accessibleLabelExternal
3839
+ * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
3939
3840
  */
3940
- "accessibleLabelExternalDefaults"?: DuetLangObject;
3841
+ "accessibleLabelExternalDefaults"?: DuetLangObject | string;
3941
3842
  /**
3942
3843
  * An array of items for the main actions. Items have to include mandatory "label", "href" and "icon" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag.
3943
3844
  */
@@ -4280,10 +4181,10 @@ declare namespace LocalJSX {
4280
4181
  */
4281
4182
  "accessibleLabelExternal"?: string;
4282
4183
  /**
4283
- * Property to change accessibleLabelExternal defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelExternal when needed
4184
+ * Defaults for accessibleLabelExternal
4284
4185
  * @default {fi: "Avautuu uuteen ikkunaan",sv: "Öppnas i nytt fönster",en: "Opens in a new window"}
4285
4186
  */
4286
- "accessibleLabelExternalDefaults"?: DuetLangObject;
4187
+ "accessibleLabelExternalDefaults"?: DuetLangObject | string;
4287
4188
  /**
4288
4189
  * Forces URL to open in a new browser tab. Used together with URL prop.
4289
4190
  */
@@ -4374,9 +4275,10 @@ declare namespace LocalJSX {
4374
4275
  */
4375
4276
  "accessibleCloseLabel"?: string;
4376
4277
  /**
4377
- * Property to change accessibleCloseLabel defaults on the component. normally you would handle these strings on an application level and override @accessibleCloseLabel when needed
4278
+ * Defaults for accessibleCloseLabel
4279
+ * @default {fi: "Sulje ikkuna", sv: "Stäng fönstret", en: "Close the dialog", }
4378
4280
  */
4379
- "accessibleCloseLabelDefault"?: DuetLangObject;
4281
+ "accessibleCloseLabelDefaults"?: DuetLangObject | string;
4380
4282
  /**
4381
4283
  * Use this property when you need to have the modal dialog initially active.
4382
4284
  */
@@ -4472,9 +4374,11 @@ declare namespace LocalJSX {
4472
4374
  */
4473
4375
  "accessibleLabelNotifications"?: string;
4474
4376
  /**
4475
- * Property to change accessibleLabelNotifications defaults on the component. normally you would handle these strings on an application level and override @accessibleLabelNotifications when needed
4377
+ * Defaults for accessibleLabelNotifications
4378
+ * @default {en: "No notifications", fi: "Ei ilmoituksia", sv: "Inga notifikationer"}
4476
4379
  */
4477
- "accessibleLabelNotificationsDefaults"?: DuetLangObject;
4380
+ "accessibleLabelNotificationsDefaults"?: | DuetLangObject
4381
+ | string;
4478
4382
  /**
4479
4383
  * Show a badge that indicates something has changed.
4480
4384
  */
@@ -4510,6 +4414,11 @@ declare namespace LocalJSX {
4510
4414
  * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
4511
4415
  */
4512
4416
  "accessibleAdd"?: string;
4417
+ /**
4418
+ * Defaults for accessibleAdd
4419
+ * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
4420
+ */
4421
+ "accessibleAddDefaults"?: DuetLangObject | string;
4513
4422
  /**
4514
4423
  * Use this prop to add an aria-controls attribute. Use the attribute to indicate the id of a component controlled by this component.
4515
4424
  */
@@ -4523,6 +4432,11 @@ declare namespace LocalJSX {
4523
4432
  * @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
4524
4433
  */
4525
4434
  "accessibleLive"?: string;
4435
+ /**
4436
+ * Defaults for accessibleLive
4437
+ * @default {fi: "{current} euroa valittuna", en: "{current} euros selected", sv: "{current} valda euro"}
4438
+ */
4439
+ "accessibleLiveDefaults"?: DuetLangObject | string;
4526
4440
  /**
4527
4441
  * Disables the aria-live messaging used internally in this component. This could be useful when you want to use custom aria-live messages instead.
4528
4442
  */
@@ -4536,6 +4450,11 @@ declare namespace LocalJSX {
4536
4450
  * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
4537
4451
  */
4538
4452
  "accessibleSubtract"?: string;
4453
+ /**
4454
+ * Defaults for accessibleSubtract
4455
+ * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
4456
+ */
4457
+ "accessibleSubtractDefaults"?: DuetLangObject | string;
4539
4458
  /**
4540
4459
  * Makes the number input component disabled. This prevents users from being able to interact with the input, and conveys its inactive state to assistive technologies.
4541
4460
  */
@@ -4557,6 +4476,11 @@ declare namespace LocalJSX {
4557
4476
  * @default {fi: "Etiketti", en: "Label", sv: "Märka"}
4558
4477
  */
4559
4478
  "label"?: string;
4479
+ /**
4480
+ * Defaults for Label
4481
+ * @default {fi: "Etiketti", en: "Label", sv: "Märka"}
4482
+ */
4483
+ "labelDefaults"?: DuetLangObject | string;
4560
4484
  /**
4561
4485
  * Visually hide the label, but still show it to screen readers.
4562
4486
  */
@@ -5074,6 +4998,11 @@ declare namespace LocalJSX {
5074
4998
  * @default {fi: "Valitse", en: "Choose", sv: "Välja"}
5075
4999
  */
5076
5000
  "label"?: string;
5001
+ /**
5002
+ * Defaults for Label
5003
+ * @default {fi: "Valitse", en: "Choose", sv: "Välja"}
5004
+ */
5005
+ "labelDefaults"?: DuetLangObject | string;
5077
5006
  /**
5078
5007
  * Determines whether the label for the select element shown on mobile is visually hidden.
5079
5008
  */
@@ -5329,11 +5258,21 @@ declare namespace LocalJSX {
5329
5258
  * @default {fi: "Sulje lisätiedot", en: "Close details", sv: "Stäng detaljer"}
5330
5259
  */
5331
5260
  "accessibleCloseLabel"?: string;
5261
+ /**
5262
+ * Default language strings for the accessibleCloseLabel
5263
+ * @default {fi: "Sulje lisätiedot", en: "Close details", sv: "Stäng detaljer"}
5264
+ */
5265
+ "accessibleCloseLabelDefault"?: DuetLangObject | string;
5332
5266
  /**
5333
5267
  * Adds accessible label for the info icon that is only shown for screen readers. This property is always required to create an accessible interface!
5334
5268
  * @default {fi: "Näytä lisätietoja", en: "See more information", sv: "Se mer information"}
5335
5269
  */
5336
5270
  "accessibleLabel"?: string;
5271
+ /**
5272
+ * Default language strings for the accessibleLabel
5273
+ * @default {fi: "Näytä lisätietoja", en: "See more information", sv: "Se mer information"}
5274
+ */
5275
+ "accessibleLabelDefault"?: DuetLangObject | string;
5337
5276
  /**
5338
5277
  * Toggle whether the tooltip is initially visible or not. This property should not be used in production in most cases.
5339
5278
  */
@@ -5375,11 +5314,21 @@ declare namespace LocalJSX {
5375
5314
  * @default {fi: "Sulje", en: "Close", sv: "Stänga"}
5376
5315
  */
5377
5316
  "accessibleCloseLabel"?: string;
5317
+ /**
5318
+ * Defaults for accessibleCloseLabel
5319
+ * @default {fi: "Sulje", en: "Close", sv: "Stänga"}
5320
+ */
5321
+ "accessibleCloseLabelDefaults"?: DuetLangObject | string;
5378
5322
  /**
5379
5323
  * Accessible label that is shown for screen reader users in the expandable open toggle. Not visible for normal users.
5380
5324
  * @default {fi: "Avaa", en: "Open", sv: "Öppen"}
5381
5325
  */
5382
5326
  "accessibleOpenLabel"?: string;
5327
+ /**
5328
+ * Defaults for accessibleOpenLabel
5329
+ * @default {fi: "Avaa", en: "Open", sv: "Öppen"}
5330
+ */
5331
+ "accessibleOpenLabelDefaults"?: DuetLangObject | string;
5383
5332
  /**
5384
5333
  * Toggle whether the info panel is visible or not. You can use this property e.g. when pricing information is revealed to the user.
5385
5334
  */
@@ -5403,191 +5352,6 @@ declare namespace LocalJSX {
5403
5352
  */
5404
5353
  "theme"?: DuetTheme;
5405
5354
  }
5406
- interface DuetUpload {
5407
- /**
5408
- * Indicates the id of a related component’s visually focused element.
5409
- */
5410
- "accessibleActiveDescendant"?: string;
5411
- /**
5412
- * accessible Label of button
5413
- */
5414
- "accessibleButtonLabel"?: string;
5415
- /**
5416
- * Use this prop to add an aria-controls attribute. Use the attribute to indicate the id of a component controlled by this component.
5417
- */
5418
- "accessibleControls"?: string;
5419
- /**
5420
- * Indicates the id of a component that describes the upload component.
5421
- */
5422
- "accessibleDescribedBy"?: string;
5423
- /**
5424
- * Indicates the id of a component owned by the input.
5425
- */
5426
- "accessibleOwns"?: string;
5427
- /**
5428
- * A string of commaseperated file type values that are allowed
5429
- * @example : .pdf,.doc,.docx
5430
- */
5431
- "allowedExtensions"?: string;
5432
- /**
5433
- * A string of commaseperated mime type values that are allowed
5434
- * @example : image/*,application/msword,
5435
- */
5436
- "allowedMimetypes"?: string;
5437
- /**
5438
- * Label of button
5439
- * @default { fi: "Lisää liite", sv: "Lägg till en bilaga", en: "Add an attachment" }
5440
- */
5441
- "buttonLabel"?: string;
5442
- /**
5443
- * Property to change descriptionDefaults defaults on the component. normally you would handle these strings on an application level and override @label when needed
5444
- */
5445
- "buttonLabelDefaults"?: DuetLangObject;
5446
- /**
5447
- * Caption (underneath label) that can be set as a way of adding extra information
5448
- */
5449
- "caption"?: string;
5450
- /**
5451
- * if set, allows capture of media from user camera / microphone The capture attribute value is a string that specifies which camera to use for capture of image or video data, if the accept attribute indicates that the input should be of one of those types. A value of user indicates that the user-facing camera and/or microphone should be used. A value of environment specifies that the outward-facing camera and/or microphone should be used. If this attribute is missing, the user agent is free to decide on its own what to do. If the requested facing mode isn't available, the user agent may fall back to its preferred default mode.
5452
- */
5453
- "capture"?: string | boolean;
5454
- /**
5455
- * Description for the upload component.
5456
- * @default ...
5457
- */
5458
- "description"?: string;
5459
- /**
5460
- * Property to change descriptionDefaults defaults on the component. normally you would handle these strings on an application level and override @label when needed
5461
- */
5462
- "descriptionDefaults"?: DuetLangObject;
5463
- /**
5464
- * Makes the input component disabled. This prevents users from being able to interact with the upload component, and conveys its inactive state to assistive technologies.
5465
- */
5466
- "disabled"?: boolean;
5467
- /**
5468
- * Display the input in error state along with an error message.
5469
- */
5470
- "error"?: string;
5471
- /**
5472
- * If external is set to true, the upload component will not actually upload the files, but only keep states it will be up to you to handle the upload and return progress information to the upload-component
5473
- */
5474
- "external"?: boolean;
5475
- /**
5476
- * Label for the filelist's empty state.
5477
- * @default { fi: "Ei vielä lisättyjä tiedostoja.",sv: "Inga filer har lagts till ännu.",en: "No files added yet."}
5478
- */
5479
- "fileListEmpty"?: string;
5480
- /**
5481
- * Defaults for the filelist's empty state.
5482
- * @default { fi: "Lisää liite",sv: "Lägg till en bilaga",en: "Add attachments"}
5483
- */
5484
- "fileListEmptyDefaults"?: DuetLangObject;
5485
- /**
5486
- * Map of string that contain list of uploaded files.
5487
- */
5488
- "files"?: StringMap;
5489
- /**
5490
- * Adds a unique identifier for the upload component.
5491
- */
5492
- "identifier"?: string;
5493
- /**
5494
- * Label for the input.
5495
- * @default { fi: "Lisää liite",sv: "Lägg till en bilaga",en: "Add attachments"}
5496
- */
5497
- "label"?: string;
5498
- /**
5499
- * Property to change labelDefaults defaults on the component. normally you would handle these strings on an application level and override @label when needed
5500
- */
5501
- "labelDefaults"?: DuetLangObject;
5502
- /**
5503
- * Visually hide the label, but still show it to screen readers.
5504
- */
5505
- "labelHidden"?: boolean;
5506
- /**
5507
- * Use limitSelection to enforce the value in allowedExtension & allowedMimetypes when selecting files, by default this is off, setting this to true will limit the users choices to what has been explicitly set
5508
- */
5509
- "limitSelection"?: boolean;
5510
- /**
5511
- * Controls the margin of the component.
5512
- */
5513
- "margin"?: DuetMargin;
5514
- /**
5515
- * Use maxBytes to specify the maximum size in Bytes of a file that can be uploaded.
5516
- */
5517
- "maxBytes"?: number;
5518
- /**
5519
- * Use maxBytesTotal to specify the maximum size in Bytes of All files combined that can be uploaded.
5520
- */
5521
- "maxBytesTotal"?: number;
5522
- /**
5523
- * Use maxFiles to specify the maximum amount of files that can be uploaded
5524
- */
5525
- "maxFiles"?: number;
5526
- /**
5527
- * Use multiple to allow the user to select multiple files when uploading
5528
- */
5529
- "multiple"?: boolean;
5530
- /**
5531
- * Name of the upload component.
5532
- */
5533
- "name"?: string;
5534
- /**
5535
- * Emitted when the input loses focus.
5536
- */
5537
- "onDuetBlur"?: (event: CustomEvent<DuetUploadEvent>) => void;
5538
- /**
5539
- * Emitted when a user clicks cancel on an upload in progress
5540
- */
5541
- "onDuetCancel"?: (event: CustomEvent<DuetUploadEvent>) => void;
5542
- /**
5543
- * Emitted when the value has changed.
5544
- */
5545
- "onDuetChange"?: (event: CustomEvent<DuetUploadEvent>) => void;
5546
- /**
5547
- * Emitted when a user clicks delete to delete an uploaded file, or a file entry with error
5548
- */
5549
- "onDuetDelete"?: (event: CustomEvent<DuetUploadEvent>) => void;
5550
- /**
5551
- * Emitted when the current upload batch finishes
5552
- */
5553
- "onDuetDone"?: (event: CustomEvent<DuetUploadEvent>) => void;
5554
- /**
5555
- * Emitted when the input has focus.
5556
- */
5557
- "onDuetFocus"?: (event: CustomEvent<DuetUploadEvent>) => void;
5558
- /**
5559
- * Emitted when the file progress is updated.
5560
- */
5561
- "onDuetProgress"?: (event: CustomEvent<DuetUploadEvent>) => void;
5562
- /**
5563
- * Emitted when the current validation state changes internally
5564
- */
5565
- "onDuetState"?: (event: CustomEvent<DuetUploadEvent>) => void;
5566
- /**
5567
- * Emitted when the user clicks the upload button
5568
- */
5569
- "onDuetUpload"?: (event: CustomEvent<DuetUploadEvent>) => void;
5570
- /**
5571
- * Set whether the input is required or not. Please note that this is necessary for accessible inputs when the user is required to fill them. When using this property you need to also set “novalidate” attribute to your form element to prevent browser from displaying its own validation errors.
5572
- */
5573
- "required"?: boolean;
5574
- /**
5575
- * Theme of the input.
5576
- */
5577
- "theme"?: DuetTheme;
5578
- /**
5579
- * Endpoint URI that is capable of receiving the files
5580
- */
5581
- "uri"?: string;
5582
- /**
5583
- * Property to read if filelist contains errors or not
5584
- */
5585
- "valid"?: boolean;
5586
- /**
5587
- * Value of the input.
5588
- */
5589
- "value"?: string;
5590
- }
5591
5355
  interface DuetVisuallyHidden {
5592
5356
  }
5593
5357
  interface IntrinsicElements {
@@ -5639,7 +5403,6 @@ declare namespace LocalJSX {
5639
5403
  "duet-toggle": DuetToggle;
5640
5404
  "duet-tooltip": DuetTooltip;
5641
5405
  "duet-tray": DuetTray;
5642
- "duet-upload": DuetUpload;
5643
5406
  "duet-visually-hidden": DuetVisuallyHidden;
5644
5407
  }
5645
5408
  }
@@ -5695,7 +5458,6 @@ declare module "@stencil/core" {
5695
5458
  "duet-toggle": LocalJSX.DuetToggle & JSXBase.HTMLAttributes<HTMLDuetToggleElement>;
5696
5459
  "duet-tooltip": LocalJSX.DuetTooltip & JSXBase.HTMLAttributes<HTMLDuetTooltipElement>;
5697
5460
  "duet-tray": LocalJSX.DuetTray & JSXBase.HTMLAttributes<HTMLDuetTrayElement>;
5698
- "duet-upload": LocalJSX.DuetUpload & JSXBase.HTMLAttributes<HTMLDuetUploadElement>;
5699
5461
  "duet-visually-hidden": LocalJSX.DuetVisuallyHidden & JSXBase.HTMLAttributes<HTMLDuetVisuallyHiddenElement>;
5700
5462
  }
5701
5463
  }