@duetds/components 4.33.0 → 4.34.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 (326) hide show
  1. package/hydrate/index.js +487 -198
  2. package/lib/cjs/{dom-c850c8d7.js → dom-52a4f07a.js} +1 -1
  3. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-button_2.cjs.entry.js +2 -2
  6. package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
  7. package/lib/cjs/duet-card.cjs.entry.js +2 -2
  8. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  9. package/lib/cjs/duet-choice_2.cjs.entry.js +2 -3
  10. package/lib/cjs/duet-collapsible.cjs.entry.js +5 -453
  11. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  13. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-editable-table-button.cjs.entry.js +96 -0
  15. package/lib/cjs/{duet-upload.cjs.entry.js → duet-editable-table_4.cjs.entry.js} +463 -32
  16. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-fieldset.cjs.entry.js +62 -0
  18. package/lib/cjs/duet-footer.cjs.entry.js +2 -2
  19. package/lib/cjs/duet-grid_2.cjs.entry.js +26 -3
  20. package/lib/cjs/duet-header_2.cjs.entry.js +220 -47
  21. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-icon.cjs.entry.js +8 -6
  23. package/lib/cjs/duet-input_2.cjs.entry.js +3 -4
  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 +2 -2
  27. package/lib/cjs/duet-notification_2.cjs.entry.js +2 -2
  28. package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-tab_2.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  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-a7a1fb8b.js → focus-utils-30f5dc06.js} +1 -1
  43. package/lib/cjs/form-search-d61b2843.js +8 -0
  44. package/lib/cjs/{index-b724d698.js → index-1c10bbfb.js} +2 -2
  45. package/lib/cjs/loader.cjs.js +3 -3
  46. package/lib/cjs/{shadow-css-e3edeed1.js → shadow-css-e1b62a99.js} +1 -1
  47. package/lib/cjs/token-utils-05bd23b4.js +77 -0
  48. package/lib/cjs/tokens-8596cece.js +459 -0
  49. package/lib/collection/collection-manifest.json +11 -10
  50. package/lib/collection/components/duet-choice/duet-choice.js +0 -1
  51. package/lib/collection/components/duet-collapsible/duet-collapsible.js +4 -1
  52. package/lib/collection/components/duet-editable-table/duet-editable-table-button.js +13 -6
  53. package/lib/collection/components/duet-editable-table/duet-editable-table-item.js +25 -3
  54. package/lib/collection/components/duet-editable-table/duet-editable-table-tabledata.js +3 -3
  55. package/lib/collection/components/duet-editable-table/duet-editable-table.js +58 -2
  56. package/lib/collection/components/duet-footer/duet-footer.css +1 -0
  57. package/lib/collection/components/duet-grid/duet-grid.js +25 -2
  58. package/lib/collection/components/duet-header/duet-header-dropdown.js +27 -0
  59. package/lib/collection/components/duet-header/duet-header-hamburger.js +9 -0
  60. package/lib/collection/components/duet-header/duet-header-icon.js +9 -0
  61. package/lib/collection/components/duet-header/duet-header.css +272 -39
  62. package/lib/collection/components/duet-header/duet-header.js +316 -122
  63. package/lib/collection/components/duet-icon/duet-icon.js +11 -5
  64. package/lib/collection/components/duet-link/duet-link.js +4 -1
  65. package/lib/collection/components/duet-list-item/duet-list-item.css +1 -1
  66. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.css +4 -3
  67. package/lib/collection/components/duet-table/duet-table.css +42 -17
  68. package/lib/collection/components/duet-table/duet-table.js +2 -2
  69. package/lib/collection/components/duet-upload/duet-upload.js +98 -51
  70. package/lib/collection/components/duet-upload/{duet-upload-editable-item-error.js → upload-editable-item-error.js} +0 -0
  71. package/lib/collection/components/duet-upload/{duet-upload-editable-item-inprogres.js → upload-editable-item-inprogres.js} +0 -0
  72. package/lib/collection/components/duet-upload/{duet-upload-editable-item-success.js → upload-editable-item-success.js} +0 -0
  73. package/lib/collection/components/duet-upload/{duet-upload-validators.js → upload-validators.js} +0 -0
  74. package/lib/collection/components/{duet-upload → duet-upload-aria-status}/duet-upload-aria-status.js +3 -3
  75. package/lib/collection/utils/template-utils.js +33 -0
  76. package/lib/collection/utils/token-utils.js +67 -14
  77. package/lib/custom-elements-bundle/index.js +468 -121
  78. package/lib/duet/duet.esm.js +1 -1
  79. package/lib/duet/duet.js +1 -1
  80. package/lib/duet/{p-060d79be.entry.js → p-08498e46.entry.js} +1 -1
  81. package/lib/duet/p-0bb75f62.system.entry.js +4 -0
  82. package/lib/duet/p-0d546cd6.system.entry.js +4 -0
  83. package/lib/duet/{p-263bc9cd.system.entry.js → p-1164a119.system.entry.js} +1 -1
  84. package/lib/duet/{p-a890da72.entry.js → p-13f72df0.entry.js} +1 -1
  85. package/lib/duet/{p-387823af.system.entry.js → p-15945ba7.system.entry.js} +1 -1
  86. package/lib/duet/{p-35a3794e.js → p-183726f7.js} +0 -0
  87. package/lib/duet/{p-7fee0d23.system.entry.js → p-1842a4db.system.entry.js} +1 -1
  88. package/lib/duet/{p-4607af59.entry.js → p-1a4204b7.entry.js} +1 -1
  89. package/lib/duet/{p-b4e87f02.system.entry.js → p-1d8d319c.system.entry.js} +1 -1
  90. package/lib/duet/{p-9dca5c22.system.entry.js → p-2b1707bd.system.entry.js} +1 -1
  91. package/lib/duet/{p-8b5ca0e7.system.entry.js → p-2c89e016.system.entry.js} +1 -1
  92. package/lib/duet/p-309f9094.entry.js +4 -0
  93. package/lib/duet/{p-67d9a9a9.system.entry.js → p-30f15c84.system.entry.js} +1 -1
  94. package/lib/duet/p-39cd816e.entry.js +4 -0
  95. package/lib/duet/{p-86daec1c.entry.js → p-3d47d6d4.entry.js} +1 -1
  96. package/lib/duet/{p-d744d188.system.entry.js → p-3e9fe1c7.system.entry.js} +1 -1
  97. package/lib/duet/{p-a9859a82.entry.js → p-3ff50cee.entry.js} +1 -1
  98. package/lib/duet/{p-b42d81c3.system.js → p-41938e76.system.js} +1 -1
  99. package/lib/duet/p-420c000b.entry.js +4 -0
  100. package/lib/duet/{p-cdd70b93.entry.js → p-477c6c71.entry.js} +1 -1
  101. package/lib/duet/p-478d2995.entry.js +4 -0
  102. package/lib/duet/p-4b400f7d.system.entry.js +4 -0
  103. package/lib/duet/p-4b480fdc.entry.js +4 -0
  104. package/lib/duet/p-50b4fb2c.js +4 -0
  105. package/lib/duet/{p-987edcd0.js → p-52621211.js} +0 -0
  106. package/lib/duet/{p-94169303.entry.js → p-545dcb04.entry.js} +1 -1
  107. package/lib/duet/{p-8f826843.system.entry.js → p-571015b8.system.entry.js} +1 -1
  108. package/lib/duet/{p-9481e312.entry.js → p-580c57ea.entry.js} +1 -1
  109. package/lib/duet/{p-2bb1460c.entry.js → p-5cf1d847.entry.js} +1 -1
  110. package/lib/duet/{p-c2e77278.entry.js → p-5d2ddf99.entry.js} +1 -1
  111. package/lib/duet/{p-af41d894.system.entry.js → p-5db0676e.system.entry.js} +1 -1
  112. package/lib/duet/p-603a61dc.system.entry.js +4 -0
  113. package/lib/duet/{p-aba68b7b.entry.js → p-6b1b2655.entry.js} +1 -1
  114. package/lib/duet/{p-597d99c7.entry.js → p-6bb9a991.entry.js} +1 -1
  115. package/lib/duet/p-6dc026cf.system.entry.js +4 -0
  116. package/lib/duet/{p-c18a599e.system.js → p-6e4fd6ba.system.js} +0 -0
  117. package/lib/duet/p-71261eb7.entry.js +4 -0
  118. package/lib/duet/{p-751542a0.system.entry.js → p-71a94fb9.system.entry.js} +1 -1
  119. package/lib/duet/{p-e12f2b8b.system.js → p-76b98e4d.system.js} +1 -1
  120. package/lib/duet/{p-f8ce39fb.entry.js → p-80d40375.entry.js} +1 -1
  121. package/lib/duet/{p-548d484e.js → p-80f90fef.js} +1 -1
  122. package/lib/duet/p-8143f3de.js +4 -0
  123. package/lib/duet/{p-bf93a991.entry.js → p-87703af9.entry.js} +1 -1
  124. package/lib/duet/p-8ad673ef.entry.js +4 -0
  125. package/lib/duet/{p-d4118b6e.system.entry.js → p-8adcc2f9.system.entry.js} +1 -1
  126. package/lib/duet/{p-4a87e9ab.system.entry.js → p-8e478364.system.entry.js} +1 -1
  127. package/lib/duet/p-8f477bd6.system.js +4 -0
  128. package/lib/duet/{p-00735436.entry.js → p-8fcaeb1b.entry.js} +1 -1
  129. package/lib/duet/p-93a51797.entry.js +4 -0
  130. package/lib/duet/{p-a5b9c192.system.entry.js → p-95edfcb8.system.entry.js} +1 -1
  131. package/lib/duet/p-97dc72c2.system.entry.js +4 -0
  132. package/lib/duet/p-99cd16d8.system.entry.js +4 -0
  133. package/lib/duet/{p-e964d062.entry.js → p-9c3b48fc.entry.js} +1 -1
  134. package/lib/duet/{p-5826523b.entry.js → p-9dad09a8.entry.js} +1 -1
  135. package/lib/duet/{p-8cb7416d.entry.js → p-9db71699.entry.js} +1 -1
  136. package/lib/duet/{p-b32224fe.system.entry.js → p-a0129887.system.entry.js} +1 -1
  137. package/lib/duet/p-a16a58c1.system.js +4 -0
  138. package/lib/duet/{p-2443bdca.system.entry.js → p-a4c0ce83.system.entry.js} +1 -1
  139. package/lib/duet/{p-48d1eb1f.system.entry.js → p-a9dc4dd9.system.entry.js} +1 -1
  140. package/lib/duet/p-aa5ba0fd.entry.js +4 -0
  141. package/lib/duet/{p-d3a3c3c7.system.entry.js → p-af7685aa.system.entry.js} +1 -1
  142. package/lib/duet/{p-6e6e76db.system.entry.js → p-b061516e.system.entry.js} +1 -1
  143. package/lib/duet/{p-58750bae.system.entry.js → p-b1401fd8.system.entry.js} +1 -1
  144. package/lib/duet/{p-b3744481.entry.js → p-b71cbe4b.entry.js} +1 -1
  145. package/lib/duet/p-c0472744.system.entry.js +4 -0
  146. package/lib/duet/{p-27d80cef.system.entry.js → p-c04ca724.system.entry.js} +1 -1
  147. package/lib/duet/{p-e2a44156.js → p-c33d1202.js} +1 -1
  148. package/lib/duet/{p-374fb7e6.system.entry.js → p-c85583d4.system.entry.js} +1 -1
  149. package/lib/duet/{p-aef1b720.system.entry.js → p-ca2b3f6a.system.entry.js} +1 -1
  150. package/lib/duet/{p-3af5d66f.entry.js → p-ca68c8f0.entry.js} +1 -1
  151. package/lib/duet/{p-acc57c77.entry.js → p-cecdebf3.entry.js} +1 -1
  152. package/lib/duet/p-d004da5f.js +4 -0
  153. package/lib/duet/{p-984576c9.entry.js → p-d1d6dc7a.entry.js} +1 -1
  154. package/lib/duet/{p-794659ac.entry.js → p-d9a93e45.entry.js} +1 -1
  155. package/lib/duet/{p-d1c19f04.system.entry.js → p-dc27e127.system.entry.js} +1 -1
  156. package/lib/duet/p-df37c5cd.entry.js +4 -0
  157. package/lib/duet/{p-6a19b5ec.entry.js → p-e10f1828.entry.js} +1 -1
  158. package/lib/duet/{p-a207b008.entry.js → p-e5120c30.entry.js} +1 -1
  159. package/lib/duet/p-e54705b2.system.js +4 -0
  160. package/lib/duet/{p-0d22396e.system.js → p-e5c1751e.system.js} +0 -0
  161. package/lib/duet/{p-dfe79666.system.entry.js → p-f1c7f166.system.entry.js} +2 -2
  162. package/lib/duet/p-f1dbb4ec.entry.js +4 -0
  163. package/lib/duet/{p-aee24388.system.entry.js → p-f3cd9499.system.entry.js} +1 -1
  164. package/lib/duet/{p-4b6ebe40.system.entry.js → p-f55ea1cc.system.entry.js} +1 -1
  165. package/lib/duet/{p-e76b722f.entry.js → p-f7700f25.entry.js} +1 -1
  166. package/lib/duet/p-fa99eaa4.system.js +4 -0
  167. package/lib/duet/{p-c36b4da0.entry.js → p-fd009368.entry.js} +1 -1
  168. package/lib/duet/{p-237e47b4.system.entry.js → p-fe1a2f0d.system.entry.js} +1 -1
  169. package/lib/duet/p-fe3806e2.system.entry.js +4 -0
  170. package/lib/duet/{p-4e28da18.system.entry.js → p-ffcfbd7a.system.entry.js} +1 -1
  171. package/lib/esm/{dom-58cd15f6.js → dom-5d060ace.js} +1 -1
  172. package/lib/esm/duet-alert.entry.js +1 -1
  173. package/lib/esm/duet-badge.entry.js +1 -1
  174. package/lib/esm/duet-button_2.entry.js +2 -2
  175. package/lib/esm/duet-caption_4.entry.js +3 -3
  176. package/lib/esm/duet-card.entry.js +2 -2
  177. package/lib/esm/duet-checkbox.entry.js +1 -1
  178. package/lib/esm/duet-choice_2.entry.js +2 -3
  179. package/lib/esm/duet-collapsible.entry.js +4 -452
  180. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  181. package/lib/esm/duet-date-picker.entry.js +2 -2
  182. package/lib/esm/duet-divider_2.entry.js +1 -1
  183. package/lib/esm/duet-editable-table-button.entry.js +92 -0
  184. package/lib/esm/{duet-upload.entry.js → duet-editable-table_4.entry.js} +461 -33
  185. package/lib/esm/duet-empty-state.entry.js +1 -1
  186. package/lib/esm/duet-fieldset.entry.js +58 -0
  187. package/lib/esm/duet-footer.entry.js +2 -2
  188. package/lib/esm/duet-grid_2.entry.js +26 -3
  189. package/lib/esm/duet-header_2.entry.js +220 -47
  190. package/lib/esm/duet-hero.entry.js +1 -1
  191. package/lib/esm/duet-icon.entry.js +8 -6
  192. package/lib/esm/duet-input_2.entry.js +2 -3
  193. package/lib/esm/duet-layout.entry.js +1 -1
  194. package/lib/esm/duet-list_2.entry.js +2 -2
  195. package/lib/esm/duet-modal.entry.js +2 -2
  196. package/lib/esm/duet-notification_2.entry.js +2 -2
  197. package/lib/esm/duet-number-input.entry.js +1 -1
  198. package/lib/esm/duet-progress.entry.js +1 -1
  199. package/lib/esm/duet-radio_2.entry.js +1 -1
  200. package/lib/esm/duet-range-slider.entry.js +1 -1
  201. package/lib/esm/duet-select.entry.js +1 -1
  202. package/lib/esm/duet-step_2.entry.js +1 -1
  203. package/lib/esm/duet-tab_2.entry.js +1 -1
  204. package/lib/esm/duet-textarea.entry.js +1 -1
  205. package/lib/esm/duet-toggle.entry.js +1 -1
  206. package/lib/esm/duet-tooltip.entry.js +1 -1
  207. package/lib/esm/duet-tray.entry.js +1 -1
  208. package/lib/esm/duet-upload-aria-status.entry.js +96 -0
  209. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  210. package/lib/esm/duet.js +4 -4
  211. package/lib/esm/{focus-utils-1fe0dcd0.js → focus-utils-bf7d1e80.js} +1 -1
  212. package/lib/esm/form-search-ea8e19ae.js +6 -0
  213. package/lib/esm/{index-84d97bd1.js → index-f813a624.js} +2 -2
  214. package/lib/esm/loader.js +3 -3
  215. package/lib/esm/{shadow-css-7c726abb.js → shadow-css-13d024f4.js} +1 -1
  216. package/lib/esm/token-utils-75f78ca4.js +75 -0
  217. package/lib/esm/tokens-e110dc89.js +453 -0
  218. package/lib/esm-es5/{dom-58cd15f6.js → dom-5d060ace.js} +0 -0
  219. package/lib/esm-es5/duet-alert.entry.js +1 -1
  220. package/lib/esm-es5/duet-badge.entry.js +1 -1
  221. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  222. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  223. package/lib/esm-es5/duet-card.entry.js +1 -1
  224. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  225. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  226. package/lib/esm-es5/duet-collapsible.entry.js +2 -2
  227. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  228. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  229. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  230. package/lib/esm-es5/duet-editable-table-button.entry.js +4 -0
  231. package/lib/esm-es5/duet-editable-table_4.entry.js +4 -0
  232. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  233. package/lib/esm-es5/duet-fieldset.entry.js +4 -0
  234. package/lib/esm-es5/duet-footer.entry.js +1 -1
  235. package/lib/esm-es5/duet-grid_2.entry.js +2 -2
  236. package/lib/esm-es5/duet-header_2.entry.js +2 -2
  237. package/lib/esm-es5/duet-hero.entry.js +1 -1
  238. package/lib/esm-es5/duet-icon.entry.js +1 -1
  239. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  240. package/lib/esm-es5/duet-layout.entry.js +1 -1
  241. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  242. package/lib/esm-es5/duet-modal.entry.js +1 -1
  243. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  244. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  245. package/lib/esm-es5/duet-progress.entry.js +1 -1
  246. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  247. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  248. package/lib/esm-es5/duet-select.entry.js +1 -1
  249. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  250. package/lib/esm-es5/duet-tab_2.entry.js +1 -1
  251. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  252. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  253. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  254. package/lib/esm-es5/duet-tray.entry.js +1 -1
  255. package/lib/esm-es5/duet-upload-aria-status.entry.js +4 -0
  256. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  257. package/lib/esm-es5/duet.js +1 -1
  258. package/lib/esm-es5/{focus-utils-1fe0dcd0.js → focus-utils-bf7d1e80.js} +1 -1
  259. package/lib/esm-es5/form-search-ea8e19ae.js +4 -0
  260. package/lib/esm-es5/{index-84d97bd1.js → index-f813a624.js} +1 -1
  261. package/lib/esm-es5/loader.js +1 -1
  262. package/lib/esm-es5/{shadow-css-7c726abb.js → shadow-css-13d024f4.js} +0 -0
  263. package/lib/esm-es5/token-utils-75f78ca4.js +4 -0
  264. package/lib/esm-es5/tokens-e110dc89.js +4 -0
  265. package/lib/html.html-data.json +4925 -0
  266. package/lib/types/common-types.d.ts +0 -1
  267. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +3 -0
  268. package/lib/types/components/duet-editable-table/duet-editable-table-button.d.ts +1 -0
  269. package/lib/types/components/duet-editable-table/duet-editable-table-item.d.ts +5 -1
  270. package/lib/types/components/duet-editable-table/duet-editable-table-tabledata.d.ts +1 -0
  271. package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +10 -0
  272. package/lib/types/components/duet-grid/duet-grid.d.ts +1 -0
  273. package/lib/types/components/duet-header/duet-header-dropdown.d.ts +16 -0
  274. package/lib/types/components/duet-header/duet-header-hamburger.d.ts +2 -0
  275. package/lib/types/components/duet-header/duet-header-icon.d.ts +8 -0
  276. package/lib/types/components/duet-header/duet-header.d.ts +41 -4
  277. package/lib/types/components/duet-icon/duet-icon.d.ts +1 -1
  278. package/lib/types/components/duet-link/duet-link.d.ts +3 -0
  279. package/lib/types/components/duet-table/duet-table.d.ts +1 -1
  280. package/lib/types/components/duet-upload/duet-upload.d.ts +46 -18
  281. package/lib/types/components/duet-upload/{duet-upload-editable-item-error.d.ts → upload-editable-item-error.d.ts} +0 -0
  282. package/lib/types/components/duet-upload/{duet-upload-editable-item-inprogres.d.ts → upload-editable-item-inprogres.d.ts} +0 -0
  283. package/lib/types/components/duet-upload/{duet-upload-editable-item-success.d.ts → upload-editable-item-success.d.ts} +0 -0
  284. package/lib/types/components/duet-upload/{duet-upload-validators.d.ts → upload-validators.d.ts} +0 -0
  285. package/lib/types/components/{duet-upload → duet-upload-aria-status}/duet-upload-aria-status.d.ts +2 -2
  286. package/lib/types/components.d.ts +71 -35
  287. package/lib/types/stencil-public-runtime.d.ts +6 -4
  288. package/lib/types/utils/template-utils.d.ts +13 -0
  289. package/lib/types/utils/token-utils.d.ts +8 -2
  290. package/package.json +13 -13
  291. package/lib/cjs/duet-editable-table-button_3.cjs.entry.js +0 -232
  292. package/lib/cjs/duet-editable-table_3.cjs.entry.js +0 -336
  293. package/lib/cjs/js-utils-33a9dbe3.js +0 -16
  294. package/lib/cjs/token-utils-63a9c8dc.js +0 -30
  295. package/lib/duet/p-10deead0.system.js +0 -4
  296. package/lib/duet/p-1208c84f.entry.js +0 -4
  297. package/lib/duet/p-155ef581.system.entry.js +0 -4
  298. package/lib/duet/p-16c48c5d.entry.js +0 -4
  299. package/lib/duet/p-1797df7b.system.entry.js +0 -4
  300. package/lib/duet/p-1a08fc22.system.entry.js +0 -4
  301. package/lib/duet/p-28e02c08.entry.js +0 -4
  302. package/lib/duet/p-33c58756.entry.js +0 -4
  303. package/lib/duet/p-3c1971d8.js +0 -4
  304. package/lib/duet/p-5ea0cd19.entry.js +0 -4
  305. package/lib/duet/p-63d5bf73.system.entry.js +0 -4
  306. package/lib/duet/p-6cc3be76.system.entry.js +0 -4
  307. package/lib/duet/p-6e363557.system.js +0 -4
  308. package/lib/duet/p-7368b14e.system.entry.js +0 -4
  309. package/lib/duet/p-7e8d5bb9.system.entry.js +0 -4
  310. package/lib/duet/p-81867417.system.js +0 -4
  311. package/lib/duet/p-9d73343a.entry.js +0 -4
  312. package/lib/duet/p-a6a84ec6.entry.js +0 -4
  313. package/lib/duet/p-b25d3769.js +0 -4
  314. package/lib/duet/p-c34329f3.entry.js +0 -4
  315. package/lib/duet/p-de07c7d7.entry.js +0 -4
  316. package/lib/duet/p-f0a4b68d.system.entry.js +0 -4
  317. package/lib/duet/p-f364eb96.entry.js +0 -4
  318. package/lib/esm/duet-editable-table-button_3.entry.js +0 -226
  319. package/lib/esm/duet-editable-table_3.entry.js +0 -330
  320. package/lib/esm/js-utils-b69f17df.js +0 -14
  321. package/lib/esm/token-utils-590d9413.js +0 -28
  322. package/lib/esm-es5/duet-editable-table-button_3.entry.js +0 -4
  323. package/lib/esm-es5/duet-editable-table_3.entry.js +0 -4
  324. package/lib/esm-es5/duet-upload.entry.js +0 -4
  325. package/lib/esm-es5/js-utils-b69f17df.js +0 -4
  326. package/lib/esm-es5/token-utils-590d9413.js +0 -4
@@ -49,10 +49,10 @@ import { DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant } from "
49
49
  import { DuetTextareaEvent } from "./components/duet-textarea/duet-textarea";
50
50
  import { DuetToggleChangeEvent } from "./components/duet-toggle/duet-toggle";
51
51
  import { DuetTooltipBreakpoint } from "./components/duet-tooltip/duet-tooltip";
52
- import { StatusMessage } from "./components/duet-upload/duet-upload-aria-status";
52
+ import { StatusMessage } from "./components/duet-upload-aria-status/duet-upload-aria-status";
53
53
  import { DuetEditableTableGroupNames as DuetEditableTableGroupNames1 } from "./components/duet-editable-table/duet-editable-table";
54
54
  import { DuetUploadEvent, StringMap } from "./components/duet-upload/duet-upload";
55
- import { StatusMessage as StatusMessage1 } from "./components/duet-upload/duet-upload-aria-status";
55
+ import { StatusMessage as StatusMessage1 } from "./components/duet-upload-aria-status/duet-upload-aria-status";
56
56
  export namespace Components {
57
57
  interface DuetAlert {
58
58
  /**
@@ -753,6 +753,10 @@ export namespace Components {
753
753
  * @example [{ variation: "default", icon: "action-edit-2", id: "edit", map: ["success"], label: { fi: " Label", en: " Label", sv: " Label", } }]
754
754
  */
755
755
  "actions": DuetEditableTableActions | string;
756
+ /**
757
+ * Key used to set vertical alignment of action buttons
758
+ */
759
+ "alignment": string;
756
760
  /**
757
761
  * Array of group names that you want the editable table to display (can be used to hide or show groups depending on conditions).
758
762
  * @default { id: "all", label: this.groupsLabelDefaults, actionLabel: this.actionLabelDefaults }.
@@ -807,6 +811,10 @@ export namespace Components {
807
811
  * Actions that can be performed on the element
808
812
  */
809
813
  "actions": DuetEditableTableActions;
814
+ /**
815
+ * Key used to set vertical alignment of action buttons
816
+ */
817
+ "alignment": string;
810
818
  /**
811
819
  * Object of data itemsused to render the entire row
812
820
  */
@@ -996,7 +1004,7 @@ export namespace Components {
996
1004
  */
997
1005
  "closeMenus": (moveFocusToButton?: boolean) => Promise<void>;
998
1006
  /**
999
- * Label of the contact menu. If empty, contact menu will be hidden.
1007
+ * Label of the contact menu. If empty, contact menu will be hidden. Note: not available in multilevel headers.
1000
1008
  */
1001
1009
  "contact": string;
1002
1010
  /**
@@ -1004,11 +1012,11 @@ export namespace Components {
1004
1012
  */
1005
1013
  "contactItems": any;
1006
1014
  /**
1007
- * The href of the current page item that is shown as “active”.
1015
+ * The href of the current page item that is shown as “active”. Note: not available in multilevel headers.
1008
1016
  */
1009
1017
  "currentHref": string;
1010
1018
  /**
1011
- * An array of items for the main navigation. Items have to include mandatory "label" and "href" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the element.
1019
+ * An array of items for the main navigation. Items have to include mandatory "label" and "href" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the element, "active" boolean that makes item active, "badge" boolean to add notification badge next to the item and "items" array consisting of sub items that are allowed up to three levels.
1012
1020
  */
1013
1021
  "items": any;
1014
1022
  /**
@@ -1026,9 +1034,13 @@ export namespace Components {
1026
1034
  */
1027
1035
  "logoHref": string;
1028
1036
  /**
1029
- * Region that is shown next to the logo. If empty, region will be hidden.
1037
+ * Region that is shown next to the logo. If empty, region will be hidden. Note: not available in desktop multilevel header.
1030
1038
  */
1031
1039
  "region": string;
1040
+ /**
1041
+ * An object that includes mandatory "label" and "href" fields for the search link. Additionally, you can pass an "id" that is added as an HTML identifier for the element. If nothing is passed, this link won’t be shown.
1042
+ */
1043
+ "search": any;
1032
1044
  /**
1033
1045
  * An object that includes mandatory "label", "href" and "type" fields for the session login/logout link. Additionally, you can pass an "id" that is added as an HTML identifier for the element. If nothing is passed, this link won’t be shown.
1034
1046
  */
@@ -1046,7 +1058,7 @@ export namespace Components {
1046
1058
  */
1047
1059
  "theme": DuetTheme;
1048
1060
  /**
1049
- * An object that includes mandatory "label" and "href" fields for the user profile link. Additionally, you can pass an "id" that is added as an HTML identifier for the element. If nothing is passed, user won’t be shown.
1061
+ * An object that includes mandatory "label" and "href" fields for the user profile link. Additionally, you can pass an "id" that is added as an HTML identifier for the element. If nothing is passed, user won’t be shown. Note: not available in multilevel headers.
1050
1062
  */
1051
1063
  "user": any;
1052
1064
  }
@@ -2617,7 +2629,7 @@ export namespace Components {
2617
2629
  */
2618
2630
  "accessibleActiveDescendant": string;
2619
2631
  /**
2620
- * accessible Label of button
2632
+ * accessible aria-Label of button
2621
2633
  */
2622
2634
  "accessibleButtonLabel": string;
2623
2635
  /**
@@ -2633,9 +2645,13 @@ export namespace Components {
2633
2645
  */
2634
2646
  "accessibleOwns": string;
2635
2647
  /**
2636
- * Default actions added to all files
2648
+ * Default actions added to the internally used duet-editable-table
2637
2649
  */
2638
2650
  "actions": DuetEditableTableActions | string;
2651
+ /**
2652
+ * Key used to set vertical alignment of action buttons
2653
+ */
2654
+ "alignment": string;
2639
2655
  /**
2640
2656
  * A string of commaseperated file type values that are allowed
2641
2657
  * @example : .pdf,.doc,.docx
@@ -2652,7 +2668,7 @@ export namespace Components {
2652
2668
  */
2653
2669
  "buttonLabel": string;
2654
2670
  /**
2655
- * Property to change descriptionDefaults defaults on the component. normally you would handle these strings on an application level and override @label when needed
2671
+ * Property to change button label defaults on the component.
2656
2672
  * @default { fi: "Lisää liite", sv: "Lägg till en bilaga", en: "Add an attachment", }
2657
2673
  */
2658
2674
  "buttonLabelDefaults": DuetLangObject | string;
@@ -2666,7 +2682,7 @@ export namespace Components {
2666
2682
  */
2667
2683
  "description": string;
2668
2684
  /**
2669
- * Property to change descriptionDefaults defaults on the component. normally you would handle these strings on an application level and override @label when needed
2685
+ * Property to change descriptionDefaults defaults on the component.
2670
2686
  * @default { fi: "Voit liittää {filetypes}-muotoisia tiedostoja sekä yleisimpiä videotiedostoja. Voit lähettää {maxbytes} verran tiedostoja yhdellä kertaa, ja lisätä enintään {maxfiles} liitettä kerrallaan.", sv: "Du kan bifoga filer i flg. formater {filetypes} samt de vanligaste videofilerna. Du kan ladda upp {maxbytes} filer åt gången och lägga till upp till {maxfiles} bilagor åt gången.", en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytes} of files at a time, and add up to {maxfiles} attachments at a time.", }
2671
2687
  */
2672
2688
  "descriptionDefaults": DuetLangObject | string;
@@ -2701,13 +2717,13 @@ export namespace Components {
2701
2717
  */
2702
2718
  "getFiles": () => Promise<false | { valid: any[]; invalid: any[]; }>;
2703
2719
  /**
2704
- * Array of group names that you want the editable table used to display files to display
2720
+ * Array of group names that you want the editable table to use to display files
2705
2721
  * @required
2706
2722
  * @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}]
2707
2723
  */
2708
2724
  "groups": DuetEditableTableGroupNames | string;
2709
2725
  /**
2710
- * If set the upload component will not display an upload button, you will have to create on yourself and call the exposed methods startUpload
2726
+ * If set the upload component will not display an upload button, you will have to create one yourself and call the exposed method startUpload
2711
2727
  */
2712
2728
  "hideButton": boolean;
2713
2729
  /**
@@ -2765,24 +2781,24 @@ export namespace Components {
2765
2781
  */
2766
2782
  "setFocus": (options?: FocusOptions) => Promise<void>;
2767
2783
  /**
2768
- * If enabled the filelist will create links on successfully uploaded items, this requires the server can respond with link URIs in the correct format
2784
+ * If enabled the editable-table will display links on successfully uploaded items, this requires the server can respond with link URIs in the correct format and that the files are accessible to the user
2769
2785
  */
2770
2786
  "showLinks": boolean;
2771
2787
  /**
2772
2788
  * Property to change the aria upload progress text read aloud by screenreaders
2773
- * @default { fi: "Lisää liite", sv: "Lägg till en bilaga", en: "Choose files", }
2789
+ * @default { fi: { inProgress: "Lähetetään {filesUploaded} lähetettävästä {filesTotal} tiedostosta", inProgressWithErrors: "Lähetetään {filesInProgress} tiedostoa, lähetetty {filesUploaded} lähetettävästä {filesTotal} tiedostosta, {filesWithErrors} tiedostossa on virheitä", done: "Kaikki {filesTotal} tiedostoa lähetetty onnistuneesti", doneWithErrors: "Lähetys valmis, {filesUploaded} tiedostoa on lähetetty onnistuneesti, {filesWithErrors} tiedostossa oli virheitä", files: "tiedostot", file: "tiedosto", }, sv: { inProgress: "Adding {filesUploaded} of {filesTotal}", inProgressWithErrors: "Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades", done: "Alla {filesTotal} har lagts till", doneWithErrors: "Handling slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades", files: "filer", file: "fil", }, en: { inProgress: "Adding {filesUploaded} of {filesTotal}", inProgressWithErrors: "Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed", done: "All {filesTotal} added successfully", doneWithErrors: "Action completed, {filesUploaded} has been added successfully, {filesWithErrors} had errors", files: "tiedostoa", file: "tiedosto", }, }
2774
2790
  */
2775
2791
  "statusLabelDefaults": DuetLangObject | string;
2776
2792
  /**
2777
2793
  * Strings used for the status aria-label
2778
2794
  */
2779
- "statusMessageLabel": StatusMessage;
2795
+ "statusMessageLabel": StatusMessage | string;
2780
2796
  /**
2781
2797
  * Theme of the input.
2782
2798
  */
2783
2799
  "theme": DuetTheme;
2784
2800
  /**
2785
- * Convenience method for updating a of an item in the files attribute
2801
+ * Convenience method for updating the value of a key:value inside an item in the files attribute
2786
2802
  */
2787
2803
  "updateValue": (item: string, key: string, value: any) => Promise<void>;
2788
2804
  /**
@@ -2794,7 +2810,7 @@ export namespace Components {
2794
2810
  */
2795
2811
  "uri": string;
2796
2812
  /**
2797
- * Property to read if filelist contains errors or not
2813
+ * Property to read if the internally used editable-table contains errors or not
2798
2814
  */
2799
2815
  "valid": boolean;
2800
2816
  /**
@@ -2816,7 +2832,7 @@ export namespace Components {
2816
2832
  */
2817
2833
  "invalid": number;
2818
2834
  /**
2819
- * State() variables
2835
+ * Status labels used in the component
2820
2836
  */
2821
2837
  "statusMessageLabel": StatusMessage;
2822
2838
  /**
@@ -3945,6 +3961,10 @@ declare namespace LocalJSX {
3945
3961
  * @example [{ variation: "default", icon: "action-edit-2", id: "edit", map: ["success"], label: { fi: " Label", en: " Label", sv: " Label", } }]
3946
3962
  */
3947
3963
  "actions"?: DuetEditableTableActions | string;
3964
+ /**
3965
+ * Key used to set vertical alignment of action buttons
3966
+ */
3967
+ "alignment"?: string;
3948
3968
  /**
3949
3969
  * Array of group names that you want the editable table to display (can be used to hide or show groups depending on conditions).
3950
3970
  * @default { id: "all", label: this.groupsLabelDefaults, actionLabel: this.actionLabelDefaults }.
@@ -3983,6 +4003,10 @@ declare namespace LocalJSX {
3983
4003
  * Actions that can be performed on the element
3984
4004
  */
3985
4005
  "actions"?: DuetEditableTableActions;
4006
+ /**
4007
+ * Key used to set vertical alignment of action buttons
4008
+ */
4009
+ "alignment"?: string;
3986
4010
  /**
3987
4011
  * Object of data itemsused to render the entire row
3988
4012
  */
@@ -4186,7 +4210,7 @@ declare namespace LocalJSX {
4186
4210
  */
4187
4211
  "back"?: any;
4188
4212
  /**
4189
- * Label of the contact menu. If empty, contact menu will be hidden.
4213
+ * Label of the contact menu. If empty, contact menu will be hidden. Note: not available in multilevel headers.
4190
4214
  */
4191
4215
  "contact"?: string;
4192
4216
  /**
@@ -4194,11 +4218,11 @@ declare namespace LocalJSX {
4194
4218
  */
4195
4219
  "contactItems"?: any;
4196
4220
  /**
4197
- * The href of the current page item that is shown as “active”.
4221
+ * The href of the current page item that is shown as “active”. Note: not available in multilevel headers.
4198
4222
  */
4199
4223
  "currentHref"?: string;
4200
4224
  /**
4201
- * An array of items for the main navigation. Items have to include mandatory "label" and "href" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the element.
4225
+ * An array of items for the main navigation. Items have to include mandatory "label" and "href" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the element, "active" boolean that makes item active, "badge" boolean to add notification badge next to the item and "items" array consisting of sub items that are allowed up to three levels.
4202
4226
  */
4203
4227
  "items"?: any;
4204
4228
  /**
@@ -4243,6 +4267,10 @@ declare namespace LocalJSX {
4243
4267
  * Event raised when a user has clicked the logo. You can prevent the default browser functionality by calling **event.detail.originalEvent.preventDefault()** inside your listener. Additionally, the passed data is available via **event.detail.data**.
4244
4268
  */
4245
4269
  "onDuetLogoClick"?: (event: CustomEvent<DuetHeaderChangeEvent>) => void;
4270
+ /**
4271
+ * Event for when a user has clicked the search link. You can prevent the default browser functionality by calling **event.detail.originalEvent.preventDefault()** inside your listener. Additionally, the passed data is available via **event.detail.data**.
4272
+ */
4273
+ "onDuetSearchClick"?: (event: CustomEvent<DuetHeaderChangeEvent>) => void;
4246
4274
  /**
4247
4275
  * Event for when a user has clicked the session link. You can prevent the default browser functionality by calling **event.detail.originalEvent.preventDefault()** inside your listener. Additionally, the passed data is available via **event.detail.data**.
4248
4276
  */
@@ -4256,9 +4284,13 @@ declare namespace LocalJSX {
4256
4284
  */
4257
4285
  "onDuetUserClick"?: (event: CustomEvent<DuetHeaderChangeEvent>) => void;
4258
4286
  /**
4259
- * Region that is shown next to the logo. If empty, region will be hidden.
4287
+ * Region that is shown next to the logo. If empty, region will be hidden. Note: not available in desktop multilevel header.
4260
4288
  */
4261
4289
  "region"?: string;
4290
+ /**
4291
+ * An object that includes mandatory "label" and "href" fields for the search link. Additionally, you can pass an "id" that is added as an HTML identifier for the element. If nothing is passed, this link won’t be shown.
4292
+ */
4293
+ "search"?: any;
4262
4294
  /**
4263
4295
  * An object that includes mandatory "label", "href" and "type" fields for the session login/logout link. Additionally, you can pass an "id" that is added as an HTML identifier for the element. If nothing is passed, this link won’t be shown.
4264
4296
  */
@@ -4272,7 +4304,7 @@ declare namespace LocalJSX {
4272
4304
  */
4273
4305
  "theme"?: DuetTheme;
4274
4306
  /**
4275
- * An object that includes mandatory "label" and "href" fields for the user profile link. Additionally, you can pass an "id" that is added as an HTML identifier for the element. If nothing is passed, user won’t be shown.
4307
+ * An object that includes mandatory "label" and "href" fields for the user profile link. Additionally, you can pass an "id" that is added as an HTML identifier for the element. If nothing is passed, user won’t be shown. Note: not available in multilevel headers.
4276
4308
  */
4277
4309
  "user"?: any;
4278
4310
  }
@@ -5879,7 +5911,7 @@ declare namespace LocalJSX {
5879
5911
  */
5880
5912
  "accessibleActiveDescendant"?: string;
5881
5913
  /**
5882
- * accessible Label of button
5914
+ * accessible aria-Label of button
5883
5915
  */
5884
5916
  "accessibleButtonLabel"?: string;
5885
5917
  /**
@@ -5895,9 +5927,13 @@ declare namespace LocalJSX {
5895
5927
  */
5896
5928
  "accessibleOwns"?: string;
5897
5929
  /**
5898
- * Default actions added to all files
5930
+ * Default actions added to the internally used duet-editable-table
5899
5931
  */
5900
5932
  "actions"?: DuetEditableTableActions | string;
5933
+ /**
5934
+ * Key used to set vertical alignment of action buttons
5935
+ */
5936
+ "alignment"?: string;
5901
5937
  /**
5902
5938
  * A string of commaseperated file type values that are allowed
5903
5939
  * @example : .pdf,.doc,.docx
@@ -5914,7 +5950,7 @@ declare namespace LocalJSX {
5914
5950
  */
5915
5951
  "buttonLabel"?: string;
5916
5952
  /**
5917
- * Property to change descriptionDefaults defaults on the component. normally you would handle these strings on an application level and override @label when needed
5953
+ * Property to change button label defaults on the component.
5918
5954
  * @default { fi: "Lisää liite", sv: "Lägg till en bilaga", en: "Add an attachment", }
5919
5955
  */
5920
5956
  "buttonLabelDefaults"?: DuetLangObject | string;
@@ -5928,7 +5964,7 @@ declare namespace LocalJSX {
5928
5964
  */
5929
5965
  "description"?: string;
5930
5966
  /**
5931
- * Property to change descriptionDefaults defaults on the component. normally you would handle these strings on an application level and override @label when needed
5967
+ * Property to change descriptionDefaults defaults on the component.
5932
5968
  * @default { fi: "Voit liittää {filetypes}-muotoisia tiedostoja sekä yleisimpiä videotiedostoja. Voit lähettää {maxbytes} verran tiedostoja yhdellä kertaa, ja lisätä enintään {maxfiles} liitettä kerrallaan.", sv: "Du kan bifoga filer i flg. formater {filetypes} samt de vanligaste videofilerna. Du kan ladda upp {maxbytes} filer åt gången och lägga till upp till {maxfiles} bilagor åt gången.", en: "You may attach the following filetypes: {filetypes} - as well as the most common video files. You can upload {maxbytes} of files at a time, and add up to {maxfiles} attachments at a time.", }
5933
5969
  */
5934
5970
  "descriptionDefaults"?: DuetLangObject | string;
@@ -5959,13 +5995,13 @@ declare namespace LocalJSX {
5959
5995
  */
5960
5996
  "files"?: StringMap;
5961
5997
  /**
5962
- * Array of group names that you want the editable table used to display files to display
5998
+ * Array of group names that you want the editable table to use to display files
5963
5999
  * @required
5964
6000
  * @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}]
5965
6001
  */
5966
6002
  "groups"?: DuetEditableTableGroupNames | string;
5967
6003
  /**
5968
- * If set the upload component will not display an upload button, you will have to create on yourself and call the exposed methods startUpload
6004
+ * If set the upload component will not display an upload button, you will have to create one yourself and call the exposed method startUpload
5969
6005
  */
5970
6006
  "hideButton"?: boolean;
5971
6007
  /**
@@ -6055,18 +6091,18 @@ declare namespace LocalJSX {
6055
6091
  */
6056
6092
  "required"?: boolean;
6057
6093
  /**
6058
- * If enabled the filelist will create links on successfully uploaded items, this requires the server can respond with link URIs in the correct format
6094
+ * If enabled the editable-table will display links on successfully uploaded items, this requires the server can respond with link URIs in the correct format and that the files are accessible to the user
6059
6095
  */
6060
6096
  "showLinks"?: boolean;
6061
6097
  /**
6062
6098
  * Property to change the aria upload progress text read aloud by screenreaders
6063
- * @default { fi: "Lisää liite", sv: "Lägg till en bilaga", en: "Choose files", }
6099
+ * @default { fi: { inProgress: "Lähetetään {filesUploaded} lähetettävästä {filesTotal} tiedostosta", inProgressWithErrors: "Lähetetään {filesInProgress} tiedostoa, lähetetty {filesUploaded} lähetettävästä {filesTotal} tiedostosta, {filesWithErrors} tiedostossa on virheitä", done: "Kaikki {filesTotal} tiedostoa lähetetty onnistuneesti", doneWithErrors: "Lähetys valmis, {filesUploaded} tiedostoa on lähetetty onnistuneesti, {filesWithErrors} tiedostossa oli virheitä", files: "tiedostot", file: "tiedosto", }, sv: { inProgress: "Adding {filesUploaded} of {filesTotal}", inProgressWithErrors: "Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades", done: "Alla {filesTotal} har lagts till", doneWithErrors: "Handling slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades", files: "filer", file: "fil", }, en: { inProgress: "Adding {filesUploaded} of {filesTotal}", inProgressWithErrors: "Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed", done: "All {filesTotal} added successfully", doneWithErrors: "Action completed, {filesUploaded} has been added successfully, {filesWithErrors} had errors", files: "tiedostoa", file: "tiedosto", }, }
6064
6100
  */
6065
6101
  "statusLabelDefaults"?: DuetLangObject | string;
6066
6102
  /**
6067
6103
  * Strings used for the status aria-label
6068
6104
  */
6069
- "statusMessageLabel"?: StatusMessage;
6105
+ "statusMessageLabel"?: StatusMessage | string;
6070
6106
  /**
6071
6107
  * Theme of the input.
6072
6108
  */
@@ -6076,7 +6112,7 @@ declare namespace LocalJSX {
6076
6112
  */
6077
6113
  "uri"?: string;
6078
6114
  /**
6079
- * Property to read if filelist contains errors or not
6115
+ * Property to read if the internally used editable-table contains errors or not
6080
6116
  */
6081
6117
  "valid"?: boolean;
6082
6118
  /**
@@ -6098,7 +6134,7 @@ declare namespace LocalJSX {
6098
6134
  */
6099
6135
  "invalid"?: number;
6100
6136
  /**
6101
- * State() variables
6137
+ * Status labels used in the component
6102
6138
  */
6103
6139
  "statusMessageLabel"?: StatusMessage;
6104
6140
  /**
@@ -666,7 +666,7 @@ export declare namespace JSXBase {
666
666
  use: JSXBase.SVGAttributes;
667
667
  view: JSXBase.SVGAttributes;
668
668
  }
669
- interface SlotAttributes {
669
+ interface SlotAttributes extends JSXAttributes {
670
670
  name?: string;
671
671
  slot?: string;
672
672
  onSlotchange?: (event: Event) => void;
@@ -1427,9 +1427,7 @@ export declare namespace JSXBase {
1427
1427
  z?: number | string;
1428
1428
  zoomAndPan?: string;
1429
1429
  }
1430
- interface DOMAttributes<T = Element> {
1431
- key?: string | number;
1432
- ref?: (elm?: T) => void;
1430
+ interface DOMAttributes<T> extends JSXAttributes<T> {
1433
1431
  slot?: string;
1434
1432
  part?: string;
1435
1433
  exportparts?: string;
@@ -1550,6 +1548,10 @@ export declare namespace JSXBase {
1550
1548
  onTransitionEndCapture?: (event: TransitionEvent) => void;
1551
1549
  }
1552
1550
  }
1551
+ export interface JSXAttributes<T = Element> {
1552
+ key?: string | number;
1553
+ ref?: (elm?: T) => void;
1554
+ }
1553
1555
  export interface CustomElementsDefineOptions {
1554
1556
  exclude?: string[];
1555
1557
  resourcesUrl?: string;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Produces a function which uses template strings to do simple interpolation from objects.
3
+ *
4
+ * Usage:
5
+ * var makeMeKing = generateTemplateFn('${name} is now the king of ${country}!');
6
+ *
7
+ * console.log(makeMeKing({ name: 'Bryan', country: 'Scotland'}));
8
+ * // Logs 'Bryan is now the king of Scotland!'
9
+ */
10
+ export interface templateFn {
11
+ (template: string | Node, data?: Record<string, any>): any;
12
+ }
13
+ export declare const generateTemplateFn: templateFn;
@@ -1,2 +1,8 @@
1
- export declare function convertToColorName(name: string): string;
2
- export declare function getColorByName(name: string): any;
1
+ import { DuetTheme } from "../common-types";
2
+ export declare function isCamelCase(str: any): boolean;
3
+ export declare function isDashCase(str: any): boolean;
4
+ export declare function capitalize(str?: string): string;
5
+ export declare function camelize(str?: string): string;
6
+ export declare function getTheme(theme?: DuetTheme): DuetTheme;
7
+ export declare function getColorByName(name: string, theme?: DuetTheme): string | undefined;
8
+ export declare function convertToColorName(name?: string, theme?: DuetTheme): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duetds/components",
3
- "version": "4.33.0",
3
+ "version": "4.34.1",
4
4
  "description": "This package includes Duet Design System Web Components and related utilities.",
5
5
  "bugs": {
6
6
  "email": "duetdesignsystem@lahitapiola.fi"
@@ -52,14 +52,14 @@
52
52
  "koa-colorful-logger": "0.0.3"
53
53
  },
54
54
  "devDependencies": {
55
- "@duetds/fonts": "1.4.3",
56
- "@duetds/icons": "2.2.3",
55
+ "@duetds/fonts": "1.4.7",
56
+ "@duetds/icons": "2.2.7",
57
57
  "@duetds/stencil-angular-output-target": "0.0.2",
58
58
  "@duetds/stencil-react-output-target": "0.0.10",
59
- "@duetds/tokens": "2.4.3",
59
+ "@duetds/tokens": "2.4.7",
60
60
  "@koa/cors": "3.1.0",
61
- "@rollup/plugin-replace": "3.0.0",
62
- "@stencil/core": "2.11.0",
61
+ "@rollup/plugin-replace": "3.0.1",
62
+ "@stencil/core": "2.12.1",
63
63
  "@stencil/sass": "1.5.2",
64
64
  "@stencil/utils": "0.0.5",
65
65
  "@types/jest": "26.0.24",
@@ -75,19 +75,19 @@
75
75
  "jest-image-snapshot": "4.5.1",
76
76
  "jest-junit": "12.2.0",
77
77
  "kill-process-by-name": "1.0.5",
78
- "koa": "2.13.3",
78
+ "koa": "2.13.4",
79
79
  "koa-body": "4.2.0",
80
80
  "koa-mount": "4.0.0",
81
81
  "koa-router": "10.1.1",
82
82
  "koa-static": "5.0.0",
83
83
  "npm-run-all": "4.1.5",
84
84
  "onchange": "7.1.0",
85
- "prettier": "2.4.1",
85
+ "prettier": "2.5.1",
86
86
  "puppeteer": "9.1.1",
87
- "sass": "1.42.1",
88
- "stylelint": "13.13.1",
89
- "stylelint-config-recess-order": "2.5.0",
90
- "stylelint-config-sass-guidelines": "8.0.0"
87
+ "sass": "1.49.0",
88
+ "stylelint": "14.2.0",
89
+ "stylelint-config-recess-order": "3.0.0",
90
+ "stylelint-config-sass-guidelines": "9.0.1"
91
91
  },
92
92
  "publishConfig": {
93
93
  "access": "public"
@@ -95,5 +95,5 @@
95
95
  "collection": "lib/collection/collection-manifest.json",
96
96
  "es2015": "lib/esm/index.js",
97
97
  "es2017": "lib/esm/index.js",
98
- "gitHead": "ccdc77cb7f1ab6c33ecda78ae82ae84cf8f9d07b"
98
+ "gitHead": "ee288fef3139a19ec36024d7994b3bbefa9483f3"
99
99
  }