@duetds/components 4.36.0 → 5.0.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 (324) hide show
  1. package/hydrate/index.js +1143 -983
  2. package/lib/cjs/duet-action-button.cjs.entry.js +163 -0
  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-breadcrumb.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-button_2.cjs.entry.js +8 -4
  8. package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
  9. package/lib/cjs/duet-card.cjs.entry.js +3 -3
  10. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-choice_2.cjs.entry.js +4 -4
  12. package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
  13. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-date-picker.cjs.entry.js +4 -4
  15. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  16. package/lib/cjs/{duet-editable-table_4.cjs.entry.js → duet-editable-table_3.cjs.entry.js} +382 -337
  17. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
  21. package/lib/cjs/duet-header_2.cjs.entry.js +7 -7
  22. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-icon.cjs.entry.js +3 -3
  24. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  28. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-pagination_2.cjs.entry.js +24 -14
  31. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  34. package/lib/cjs/duet-scrollable_3.cjs.entry.js +2 -2
  35. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  39. package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-tray.cjs.entry.js +2 -2
  41. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  43. package/lib/cjs/duet.cjs.js +2 -2
  44. package/lib/cjs/{focus-utils-675b1aa3.js → focus-utils-1051dbe3.js} +1 -1
  45. package/lib/cjs/{index-58eb8f67.js → index-db0781a3.js} +1 -1
  46. package/lib/cjs/js-utils-be1d29ae.js +39 -0
  47. package/lib/cjs/loader.cjs.js +2 -2
  48. package/lib/cjs/{token-utils-05bd23b4.js → token-utils-ac8432d1.js} +10 -7
  49. package/lib/cjs/{tokens-8596cece.js → tokens-72efc7fd.js} +0 -0
  50. package/lib/cjs/{tokens.module-6b2df1c2.js → tokens.module-6afcc9c1.js} +0 -0
  51. package/lib/collection/collection-manifest.json +14 -11
  52. package/lib/collection/components/duet-action-button/duet-action-button.css +87 -0
  53. package/lib/collection/components/duet-action-button/duet-action-button.js +489 -0
  54. package/lib/collection/components/duet-button/duet-button.js +23 -1
  55. package/lib/collection/components/duet-choice/duet-choice.css +20 -15
  56. package/lib/collection/components/duet-choice/duet-choice.js +10 -8
  57. package/lib/collection/components/duet-collapsible/duet-collapsible.js +2 -1
  58. package/lib/collection/components/duet-date-picker/duet-date-picker.css +2 -57
  59. package/lib/collection/components/duet-date-picker/duet-date-picker.js +2 -6
  60. package/lib/collection/components/duet-editable-table/duet-editable-table-tabledata.js +3 -2
  61. package/lib/collection/components/duet-editable-table/duet-editable-table.css +20 -1
  62. package/lib/collection/components/duet-editable-table/duet-editable-table.js +331 -205
  63. package/lib/collection/components/duet-header/duet-header.css +5 -1
  64. package/lib/collection/components/duet-header/duet-header.js +4 -3
  65. package/lib/collection/components/duet-pagination/duet-pagination.css +3 -62
  66. package/lib/collection/components/duet-pagination/duet-pagination.js +49 -19
  67. package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +4 -55
  68. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -4
  69. package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -1
  70. package/lib/collection/components/duet-table/duet-table.css +42 -8
  71. package/lib/collection/components/duet-table/duet-table.js +11 -2
  72. package/lib/collection/components/duet-upload/duet-upload.css +25 -0
  73. package/lib/collection/components/duet-upload/duet-upload.js +270 -166
  74. package/lib/collection/components/duet-upload/upload-validators.js +1 -1
  75. package/lib/collection/utils/fixture-utils.js +3 -1
  76. package/lib/collection/utils/js-utils.js +36 -1
  77. package/lib/collection/utils/token-utils.js +33 -6
  78. package/lib/custom-elements-bundle/index.d.ts +6 -12
  79. package/lib/custom-elements-bundle/index.js +1159 -1015
  80. package/lib/duet/duet.esm.js +1 -1
  81. package/lib/duet/duet.js +1 -1
  82. package/lib/duet/p-038f5a76.js +4 -0
  83. package/lib/duet/{p-aa5abb52.system.entry.js → p-077e9821.system.entry.js} +1 -1
  84. package/lib/duet/{p-9358e24b.entry.js → p-08f1713b.entry.js} +1 -1
  85. package/lib/duet/{p-6aa8d848.entry.js → p-0cf96c98.entry.js} +1 -1
  86. package/lib/duet/p-0ff56acb.system.entry.js +4 -0
  87. package/lib/duet/p-13302cc8.entry.js +4 -0
  88. package/lib/duet/{p-a0f979a4.entry.js → p-1630296b.entry.js} +1 -1
  89. package/lib/duet/{p-818cd527.entry.js → p-1acbc962.entry.js} +1 -1
  90. package/lib/duet/{p-1afe9641.system.entry.js → p-20dd2c3c.system.entry.js} +1 -1
  91. package/lib/duet/{p-85d9b1b0.system.js → p-21ab96c0.system.js} +1 -1
  92. package/lib/duet/{p-e67fc1ed.system.entry.js → p-222c74a9.system.entry.js} +1 -1
  93. package/lib/duet/{p-5e410fa9.system.entry.js → p-242ba82c.system.entry.js} +1 -1
  94. package/lib/duet/{p-40360b4a.system.entry.js → p-25fdd6d2.system.entry.js} +1 -1
  95. package/lib/duet/{p-ddb6344c.system.js → p-268c0abb.system.js} +0 -0
  96. package/lib/duet/{p-a2db8ff2.system.entry.js → p-26c5cc5a.system.entry.js} +1 -1
  97. package/lib/duet/{p-4b688aea.entry.js → p-2772bbb1.entry.js} +1 -1
  98. package/lib/duet/{p-bf25e52a.entry.js → p-28e4253c.entry.js} +1 -1
  99. package/lib/duet/{p-6df7b78c.entry.js → p-3018d431.entry.js} +1 -1
  100. package/lib/duet/{p-ad8a49a3.system.entry.js → p-347ffc22.system.entry.js} +1 -1
  101. package/lib/duet/{p-e9ca7e01.entry.js → p-3651b695.entry.js} +1 -1
  102. package/lib/duet/{p-4f32cc18.system.entry.js → p-3946058c.system.entry.js} +1 -1
  103. package/lib/duet/p-3d5a497d.system.entry.js +4 -0
  104. package/lib/duet/{p-8c0fd5de.js → p-3eed1432.js} +1 -1
  105. package/lib/duet/{p-44a3794d.system.entry.js → p-41246296.system.entry.js} +1 -1
  106. package/lib/duet/{p-314b64b4.system.entry.js → p-43204695.system.entry.js} +1 -1
  107. package/lib/duet/{p-daede773.entry.js → p-440a9c95.entry.js} +1 -1
  108. package/lib/duet/{p-8b8c2ef4.entry.js → p-44bb7ac8.entry.js} +1 -1
  109. package/lib/duet/{p-b42066e0.entry.js → p-489d1777.entry.js} +1 -1
  110. package/lib/duet/{p-2a9345a7.entry.js → p-48cdb48a.entry.js} +1 -1
  111. package/lib/duet/{p-e584ce1d.entry.js → p-4b72d87e.entry.js} +1 -1
  112. package/lib/duet/{p-99a112e4.entry.js → p-4be7b036.entry.js} +1 -1
  113. package/lib/duet/{p-ac44ab7a.entry.js → p-4d300ede.entry.js} +1 -1
  114. package/lib/duet/{p-8a768d0b.entry.js → p-569ee410.entry.js} +1 -1
  115. package/lib/duet/{p-84940fc4.system.entry.js → p-56f472b3.system.entry.js} +1 -1
  116. package/lib/duet/p-5746d88c.js +4 -0
  117. package/lib/duet/{p-90799d0a.entry.js → p-5a69aed5.entry.js} +1 -1
  118. package/lib/duet/{p-8db453bf.system.js → p-5cc4b13d.system.js} +1 -1
  119. package/lib/duet/{p-8706664b.system.entry.js → p-63b70e9d.system.entry.js} +1 -1
  120. package/lib/duet/p-63c8a2cd.system.entry.js +4 -0
  121. package/lib/duet/p-6abdc336.entry.js +4 -0
  122. package/lib/duet/p-6ba556ad.entry.js +4 -0
  123. package/lib/duet/{p-f993e4c3.system.entry.js → p-6c27e55c.system.entry.js} +1 -1
  124. package/lib/duet/{p-7730d2b8.entry.js → p-6d3485e0.entry.js} +1 -1
  125. package/lib/duet/{p-a75776f5.entry.js → p-6f2aec60.entry.js} +1 -1
  126. package/lib/duet/p-75640b15.entry.js +4 -0
  127. package/lib/duet/{p-21cd146b.system.entry.js → p-7769f3af.system.entry.js} +1 -1
  128. package/lib/duet/p-77acbfe4.system.js +4 -0
  129. package/lib/duet/{p-ad06c91d.system.entry.js → p-7a8cea36.system.entry.js} +1 -1
  130. package/lib/duet/{p-fa99eaa4.system.js → p-812b0905.system.js} +0 -0
  131. package/lib/duet/{p-ae82d8e7.entry.js → p-815e5588.entry.js} +1 -1
  132. package/lib/duet/p-823501e1.system.entry.js +4 -0
  133. package/lib/duet/p-8e83c0ea.system.entry.js +4 -0
  134. package/lib/duet/p-92639d0b.system.js +4 -0
  135. package/lib/duet/{p-22e6615d.system.entry.js → p-93302e3a.system.entry.js} +1 -1
  136. package/lib/duet/{p-6e6e1b77.system.entry.js → p-94bc746c.system.entry.js} +1 -1
  137. package/lib/duet/{p-09920da9.entry.js → p-9716f92a.entry.js} +1 -1
  138. package/lib/duet/{p-9ead1c59.entry.js → p-9a535dd9.entry.js} +1 -1
  139. package/lib/duet/{p-78779ba1.system.entry.js → p-9cf9c233.system.entry.js} +1 -1
  140. package/lib/duet/{p-c0a24b5e.system.entry.js → p-a853c03b.system.entry.js} +2 -2
  141. package/lib/duet/{p-ea124391.system.entry.js → p-ab651bab.system.entry.js} +1 -1
  142. package/lib/duet/{p-fb55e381.system.entry.js → p-b1d3ee06.system.entry.js} +1 -1
  143. package/lib/duet/p-b4a3ee75.entry.js +4 -0
  144. package/lib/duet/{p-b5aaf161.entry.js → p-b4eb216b.entry.js} +1 -1
  145. package/lib/duet/p-baf1b7ec.system.entry.js +4 -0
  146. package/lib/duet/{p-7f1cbb7d.entry.js → p-bfd81bd7.entry.js} +1 -1
  147. package/lib/duet/{p-80aa512a.system.entry.js → p-c0f57d75.system.entry.js} +1 -1
  148. package/lib/duet/{p-dda7f098.entry.js → p-c3342f8e.entry.js} +1 -1
  149. package/lib/duet/{p-aebf6700.entry.js → p-ca7fd033.entry.js} +1 -1
  150. package/lib/duet/{p-0769de2b.system.entry.js → p-cac113fe.system.entry.js} +1 -1
  151. package/lib/duet/p-cb701a9c.entry.js +4 -0
  152. package/lib/duet/{p-0349b691.system.entry.js → p-d214b9b2.system.entry.js} +1 -1
  153. package/lib/duet/{p-b11f2fcd.system.entry.js → p-d2b946cd.system.entry.js} +1 -1
  154. package/lib/duet/{p-5f4362b4.entry.js → p-d3169bff.entry.js} +1 -1
  155. package/lib/duet/{p-b6b58d31.entry.js → p-d57ac853.entry.js} +1 -1
  156. package/lib/duet/{p-59480299.system.entry.js → p-d7263055.system.entry.js} +1 -1
  157. package/lib/duet/{p-c167a5aa.system.entry.js → p-d7ad9b74.system.entry.js} +1 -1
  158. package/lib/duet/{p-8143f3de.js → p-d7bc0102.js} +0 -0
  159. package/lib/duet/{p-d444e178.system.entry.js → p-d81e9ca0.system.entry.js} +1 -1
  160. package/lib/duet/{p-878c1c83.system.entry.js → p-d8f83ac5.system.entry.js} +1 -1
  161. package/lib/duet/{p-84a9fbf4.system.entry.js → p-da76095f.system.entry.js} +1 -1
  162. package/lib/duet/p-dbb4a588.js +4 -0
  163. package/lib/duet/{p-a8f707d4.system.entry.js → p-e1920232.system.entry.js} +2 -2
  164. package/lib/duet/{p-1c1c9705.entry.js → p-e4c6b105.entry.js} +1 -1
  165. package/lib/duet/{p-663aec3a.entry.js → p-e5531f4f.entry.js} +1 -1
  166. package/lib/duet/p-ea293f60.entry.js +4 -0
  167. package/lib/duet/{p-95f71b43.system.entry.js → p-eb39b494.system.entry.js} +1 -1
  168. package/lib/duet/{p-ad07f399.js → p-ed75c8b3.js} +0 -0
  169. package/lib/duet/{p-fd561872.system.entry.js → p-f20b487a.system.entry.js} +1 -1
  170. package/lib/duet/{p-1aeb418c.entry.js → p-f7d7ec47.entry.js} +1 -1
  171. package/lib/duet/p-fa02e479.entry.js +4 -0
  172. package/lib/duet/p-faf60d2a.entry.js +4 -0
  173. package/lib/duet/{p-28a22555.system.entry.js → p-fb8ed18e.system.entry.js} +1 -1
  174. package/lib/duet/p-fea2cbc5.system.js +4 -0
  175. package/lib/duet/{p-c61ace58.system.entry.js → p-ff3d551a.system.entry.js} +1 -1
  176. package/lib/duet/{p-bd602c98.entry.js → p-ff7ab8cb.entry.js} +1 -1
  177. package/lib/esm/duet-action-button.entry.js +159 -0
  178. package/lib/esm/duet-alert.entry.js +1 -1
  179. package/lib/esm/duet-badge.entry.js +1 -1
  180. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  181. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  182. package/lib/esm/duet-button_2.entry.js +8 -4
  183. package/lib/esm/duet-caption_4.entry.js +3 -3
  184. package/lib/esm/duet-card.entry.js +3 -3
  185. package/lib/esm/duet-checkbox.entry.js +1 -1
  186. package/lib/esm/duet-choice_2.entry.js +4 -4
  187. package/lib/esm/duet-collapsible.entry.js +3 -3
  188. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  189. package/lib/esm/duet-date-picker.entry.js +4 -4
  190. package/lib/esm/duet-divider_2.entry.js +1 -1
  191. package/lib/esm/{duet-editable-table_4.entry.js → duet-editable-table_3.entry.js} +384 -338
  192. package/lib/esm/duet-empty-state.entry.js +1 -1
  193. package/lib/esm/duet-fieldset.entry.js +1 -1
  194. package/lib/esm/duet-footer.entry.js +1 -1
  195. package/lib/esm/duet-grid_2.entry.js +2 -2
  196. package/lib/esm/duet-header_2.entry.js +7 -7
  197. package/lib/esm/duet-hero.entry.js +1 -1
  198. package/lib/esm/duet-icon.entry.js +3 -3
  199. package/lib/esm/duet-input_2.entry.js +1 -1
  200. package/lib/esm/duet-layout.entry.js +1 -1
  201. package/lib/esm/duet-list_2.entry.js +1 -1
  202. package/lib/esm/duet-modal.entry.js +2 -2
  203. package/lib/esm/duet-notification_2.entry.js +1 -1
  204. package/lib/esm/duet-number-input.entry.js +1 -1
  205. package/lib/esm/duet-pagination_2.entry.js +24 -14
  206. package/lib/esm/duet-progress.entry.js +1 -1
  207. package/lib/esm/duet-radio_2.entry.js +1 -1
  208. package/lib/esm/duet-range-slider.entry.js +2 -2
  209. package/lib/esm/duet-scrollable_3.entry.js +2 -2
  210. package/lib/esm/duet-select.entry.js +1 -1
  211. package/lib/esm/duet-step_2.entry.js +1 -1
  212. package/lib/esm/duet-textarea.entry.js +1 -1
  213. package/lib/esm/duet-toggle.entry.js +1 -1
  214. package/lib/esm/duet-tooltip.entry.js +1 -1
  215. package/lib/esm/duet-tray.entry.js +2 -2
  216. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  217. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  218. package/lib/esm/duet.js +2 -2
  219. package/lib/esm/{focus-utils-bd3c1702.js → focus-utils-f49312fd.js} +1 -1
  220. package/lib/esm/{index-49b2d31a.js → index-9526901a.js} +1 -1
  221. package/lib/esm/js-utils-52e0944c.js +36 -0
  222. package/lib/esm/loader.js +2 -2
  223. package/lib/esm/{token-utils-75f78ca4.js → token-utils-e9a0cb88.js} +10 -7
  224. package/lib/esm/{tokens-e110dc89.js → tokens-57d98824.js} +0 -0
  225. package/lib/esm/{tokens.module-49cbf963.js → tokens.module-a13e9683.js} +0 -0
  226. package/lib/esm-es5/duet-action-button.entry.js +4 -0
  227. package/lib/esm-es5/duet-alert.entry.js +1 -1
  228. package/lib/esm-es5/duet-badge.entry.js +1 -1
  229. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  230. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  231. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  232. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  233. package/lib/esm-es5/duet-card.entry.js +1 -1
  234. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  235. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  236. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  237. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  238. package/lib/esm-es5/duet-date-picker.entry.js +2 -2
  239. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  240. package/lib/esm-es5/duet-editable-table_3.entry.js +4 -0
  241. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  242. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  243. package/lib/esm-es5/duet-footer.entry.js +1 -1
  244. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  245. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  246. package/lib/esm-es5/duet-hero.entry.js +1 -1
  247. package/lib/esm-es5/duet-icon.entry.js +1 -1
  248. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  249. package/lib/esm-es5/duet-layout.entry.js +1 -1
  250. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  251. package/lib/esm-es5/duet-modal.entry.js +1 -1
  252. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  253. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  254. package/lib/esm-es5/duet-pagination_2.entry.js +2 -2
  255. package/lib/esm-es5/duet-progress.entry.js +1 -1
  256. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  257. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  258. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  259. package/lib/esm-es5/duet-select.entry.js +1 -1
  260. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  261. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  262. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  263. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  264. package/lib/esm-es5/duet-tray.entry.js +1 -1
  265. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  266. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  267. package/lib/esm-es5/duet.js +1 -1
  268. package/lib/esm-es5/{focus-utils-bd3c1702.js → focus-utils-f49312fd.js} +1 -1
  269. package/lib/esm-es5/{index-49b2d31a.js → index-9526901a.js} +1 -1
  270. package/lib/esm-es5/js-utils-52e0944c.js +4 -0
  271. package/lib/esm-es5/loader.js +1 -1
  272. package/lib/esm-es5/token-utils-e9a0cb88.js +4 -0
  273. package/lib/esm-es5/{tokens-e110dc89.js → tokens-57d98824.js} +0 -0
  274. package/lib/esm-es5/{tokens.module-49cbf963.js → tokens.module-a13e9683.js} +0 -0
  275. package/lib/html.html-data.json +5266 -0
  276. package/lib/types/components/duet-action-button/duet-action-button.d.ts +112 -0
  277. package/lib/types/components/duet-button/duet-button.d.ts +4 -0
  278. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +1 -0
  279. package/lib/types/components/duet-editable-table/duet-editable-table-tabledata.d.ts +2 -2
  280. package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +106 -48
  281. package/lib/types/components/duet-header/duet-header.d.ts +1 -0
  282. package/lib/types/components/duet-pagination/duet-pagination.d.ts +7 -2
  283. package/lib/types/components/duet-tab-group/duet-tab-group.d.ts +4 -0
  284. package/lib/types/components/duet-table/duet-table.d.ts +16 -0
  285. package/lib/types/components/duet-upload/duet-upload.d.ts +68 -58
  286. package/lib/types/components.d.ts +225 -149
  287. package/lib/types/utils/js-utils.d.ts +2 -0
  288. package/lib/types/utils/token-utils.d.ts +2 -0
  289. package/package.json +4 -5
  290. package/lib/cjs/duet-editable-table-button.cjs.entry.js +0 -96
  291. package/lib/cjs/js-utils-33a9dbe3.js +0 -16
  292. package/lib/collection/components/duet-editable-table/duet-editable-table-button.css +0 -32
  293. package/lib/collection/components/duet-editable-table/duet-editable-table-button.js +0 -225
  294. package/lib/collection/components/duet-editable-table/duet-editable-table-item.css +0 -36
  295. package/lib/collection/components/duet-editable-table/duet-editable-table-item.js +0 -225
  296. package/lib/duet/p-1b56e483.system.entry.js +0 -4
  297. package/lib/duet/p-298a9ffc.system.js +0 -4
  298. package/lib/duet/p-363abf26.system.entry.js +0 -4
  299. package/lib/duet/p-3c13a041.entry.js +0 -4
  300. package/lib/duet/p-50b4fb2c.js +0 -4
  301. package/lib/duet/p-6da8743f.system.entry.js +0 -4
  302. package/lib/duet/p-72ce134a.entry.js +0 -4
  303. package/lib/duet/p-78aa974b.system.entry.js +0 -4
  304. package/lib/duet/p-7e2c06d0.js +0 -4
  305. package/lib/duet/p-81867417.system.js +0 -4
  306. package/lib/duet/p-8f56fd3f.entry.js +0 -4
  307. package/lib/duet/p-8fa952df.entry.js +0 -4
  308. package/lib/duet/p-9782946f.entry.js +0 -4
  309. package/lib/duet/p-995f20fc.entry.js +0 -4
  310. package/lib/duet/p-a154a0c0.entry.js +0 -4
  311. package/lib/duet/p-a16a58c1.system.js +0 -4
  312. package/lib/duet/p-abcbdef5.entry.js +0 -4
  313. package/lib/duet/p-b25d3769.js +0 -4
  314. package/lib/duet/p-c5db93a7.system.entry.js +0 -4
  315. package/lib/duet/p-d32b240d.system.entry.js +0 -4
  316. package/lib/duet/p-fc02d8e9.entry.js +0 -4
  317. package/lib/esm/duet-editable-table-button.entry.js +0 -92
  318. package/lib/esm/js-utils-b69f17df.js +0 -14
  319. package/lib/esm-es5/duet-editable-table-button.entry.js +0 -4
  320. package/lib/esm-es5/duet-editable-table_4.entry.js +0 -4
  321. package/lib/esm-es5/js-utils-b69f17df.js +0 -4
  322. package/lib/esm-es5/token-utils-75f78ca4.js +0 -4
  323. package/lib/types/components/duet-editable-table/duet-editable-table-button.d.ts +0 -73
  324. package/lib/types/components/duet-editable-table/duet-editable-table-item.d.ts +0 -76
@@ -0,0 +1,112 @@
1
+ import { EventEmitter } from "../../stencil-public-runtime";
2
+ import { DuetColor, DuetTheme } from "../../common-types";
3
+ import { DuetLangObject } from "../../utils/language-utils";
4
+ import { ThemeableComponent } from "../../utils/themeable-component";
5
+ export declare type DuetActionButtonEvent = {
6
+ originalEvent?: Event;
7
+ component: "duet-action-button";
8
+ action: string;
9
+ name?: string;
10
+ id?: string | undefined;
11
+ index?: string | undefined;
12
+ meta?: Record<any, any> | string | undefined;
13
+ };
14
+ export declare type DuetActionButtonIconSize = "xx-small" | "x-small" | "small";
15
+ /**
16
+ * Slot: default slot inside an invisible element, this can be used to enhance accessibility
17
+ * Part: button this part enables style overrides for the button
18
+ * Part: icon this part enables style overrides for the icon
19
+ */
20
+ export declare class DuetActionButton implements ThemeableComponent {
21
+ numbersStore: string;
22
+ /**
23
+ * Reference to host HTML element.
24
+ */
25
+ element: HTMLElement;
26
+ /**
27
+ * Theme of the pagination.
28
+ */
29
+ theme: DuetTheme;
30
+ /**
31
+ * Name of the icon to display
32
+ */
33
+ iconName: string;
34
+ /**
35
+ * Color of the icon to display
36
+ */
37
+ iconColor: string;
38
+ /**
39
+ * Size of the icon
40
+ */
41
+ iconSize: DuetActionButtonIconSize;
42
+ /**
43
+ * Name of action being called
44
+ */
45
+ actionName: string;
46
+ /**
47
+ * Name of id of action that was called being called
48
+ */
49
+ actionId: string;
50
+ /**
51
+ * Name of id of action that was called being called
52
+ */
53
+ actionMeta: Record<any, any> | string;
54
+ /**
55
+ * Disables the button
56
+ */
57
+ disabled: boolean;
58
+ /**
59
+ * Custom color to be used for the icon, as a design token entered in camelCase
60
+ * or kebab-case. Example: "color-primary". This property can also be set to
61
+ * "currentColor" which forces the icon to use the CSS text color of parent
62
+ * element instead. Useful when you want to control the color in stylesheet
63
+ * instead.
64
+ */
65
+ color: DuetColor;
66
+ /**
67
+ * Custom color to be used for a background, as a design token entered
68
+ * in camelCase or kebab-case. Using this option the icon will always be resized
69
+ * to $size-icon-medium on mobile viewports. Example: "color-primary".
70
+ */
71
+ background: DuetColor;
72
+ /**
73
+ * Described By id
74
+ */
75
+ ariaDescribedBy: string;
76
+ /**
77
+ * Aria description the button
78
+ */
79
+ ariaDescription: string;
80
+ /**
81
+ * Default pagination labels
82
+ */
83
+ ariaLabelsDefaults: DuetLangObject;
84
+ /**
85
+ * Default pagination labels
86
+ */
87
+ ariaLabels: Record<string, string>;
88
+ /**
89
+ * Used to indicate which dom element with ID this element controls
90
+ */
91
+ ariaControls: string;
92
+ /**
93
+ * Emitted a page selection has been made
94
+ */
95
+ duetActionEvent: EventEmitter<DuetActionButtonEvent>;
96
+ private listId;
97
+ /**
98
+ * Private methods.
99
+ */
100
+ private emitPageEvent;
101
+ private onKeyboardDown;
102
+ private onMouseHandler;
103
+ /**
104
+ * Component lifecycle events.
105
+ */
106
+ componentWillLoad(): void;
107
+ /**
108
+ * render() function
109
+ * Always the last one in the class.
110
+ */
111
+ render(): any;
112
+ }
@@ -30,6 +30,10 @@ export declare class DuetButton implements ThemeableComponent, FormComponent {
30
30
  * the attribute to point to the unique id of the content that the button manages.
31
31
  */
32
32
  accessibleControls: string;
33
+ /**
34
+ * Use this property to add an aria-haspopup attribute to a button, if you are using it as a menu button.
35
+ */
36
+ accessiblePopup: string;
33
37
  /**
34
38
  * Indicates the id of a related component’s visually focused element.
35
39
  */
@@ -9,6 +9,7 @@ export declare type DuetCollapsibleToggleEvent = {
9
9
  };
10
10
  /**
11
11
  * @part duet-collapsible-heading-content - piercing selector for styling the heading content
12
+ * @part duet-collapsible-content - piercing selector for styling the content
12
13
  */
13
14
  export declare class DuetCollapsible implements ThemeableComponent {
14
15
  /**
@@ -1,8 +1,8 @@
1
1
  import { FunctionalComponent } from "../../stencil-public-runtime";
2
2
  interface TableDataProps {
3
3
  data: any;
4
- groupId: string;
5
- alignment: string;
4
+ groupId?: string;
5
+ alignment?: string;
6
6
  }
7
7
  export declare const TableData: FunctionalComponent<TableDataProps>;
8
8
  export {};
@@ -1,94 +1,152 @@
1
- import { DuetTheme } from "../../common-types";
1
+ import { EventEmitter } from "../../stencil-public-runtime";
2
+ import { DuetMargin, DuetTheme } from "../../common-types";
2
3
  import { DuetLangObject } from "../../utils/language-utils";
3
4
  import { ThemeableComponent } from "../../utils/themeable-component";
4
- import { DuetEditableTableActions, DuetEditableTableItemData } from "./duet-editable-table-item";
5
+ import { DuetActionButtonIconSize } from "../duet-action-button/duet-action-button";
6
+ import { DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant } from "../duet-table/duet-table";
5
7
  export declare type DuetEditableTableGroupNames = {
6
8
  id: string;
7
9
  label: DuetLangObject;
8
10
  actionLabel?: DuetLangObject;
9
11
  }[];
10
- export declare type DuetEditableTableItems = Map<any, DuetEditableTableItemData>;
12
+ export declare type DuetTableToggleEvent = {
13
+ component: "duet-editable-table";
14
+ sort_order?: number;
15
+ direction: 1 | -1;
16
+ index: number;
17
+ key: string;
18
+ originalEvent: KeyboardEvent | MouseEvent;
19
+ };
20
+ export declare type DuetTableMenuEvent = {
21
+ component: "duet-editable-table";
22
+ originalEvent: KeyboardEvent | MouseEvent;
23
+ };
24
+ export declare type DuetEditableTableActions = {
25
+ icon: string;
26
+ color: string;
27
+ background: string;
28
+ size: DuetActionButtonIconSize;
29
+ name: string;
30
+ map?: string[];
31
+ label?: DuetLangObject;
32
+ }[];
33
+ export declare type DuetEditableTableItemData = {
34
+ uid: string;
35
+ item: any;
36
+ group: string;
37
+ };
38
+ export declare type DuetEditableTableColumn = {
39
+ direction: 1 | -1;
40
+ key: string;
41
+ index: number;
42
+ display?: boolean;
43
+ sort_order?: number;
44
+ label: DuetLangObject;
45
+ };
46
+ export declare type DuetEditableTableColumns = DuetEditableTableColumn[];
47
+ /**
48
+
49
+ * @slot caption: Inject things into the caption area of the table using this slot
50
+ * @slot thead_first: Inject things into the thead area of the table before column names using this slot
51
+ * @slot thead_last: Inject things into the thead area of the table after column names using this slot
52
+ * @slot tfoot: Inject things into the tfoot area of the table using this slot
53
+ */
54
+ export declare type DuetEditableTableRows = Record<string, any>[];
11
55
  export declare class DuetEditableTable implements ThemeableComponent {
12
- private internalGroupArray;
13
- private internalActionsArray;
14
- private template;
15
56
  /**
16
57
  * Reference to host HTML element.
17
58
  */
18
59
  element: HTMLElement;
19
60
  /**
20
- * State() variables
21
- * @internal
61
+ * Duet-table: margin of the component.
22
62
  */
23
- tick: number;
63
+ margin: DuetMargin;
24
64
  /**
25
- * Map of items that contain list of things.
65
+ * Duet-table: Style variation of the table.
26
66
  */
27
- items: DuetEditableTableItems;
67
+ variation: DuetTableVariant;
28
68
  /**
29
- * Key used to set vertical alignment of action buttons
69
+ * Duet-table: Controls whether the table has a sticky header.
70
+ * Sticky headers are not compatible with breakpoint="none-scrollable".
30
71
  */
31
- alignment: string;
72
+ sticky: boolean;
32
73
  /**
33
- * Array of internationalized defaults for the default groups labels.
74
+ * Duet-table: Adjust the distance from top of the viewport (in pixels) when the
75
+ * table header becomes sticky.
34
76
  */
35
- groupsLabelDefaults: DuetLangObject;
77
+ stickyDistance: DuetTableStickyDistance;
36
78
  /**
37
- * Array of internationalized defaults for the default action labels.
79
+ * Duet-table: By default the table is responsive - it will be flattened at narrow viewport widths.
80
+ * This prop controls the breakpoint at which the table should be rendered as a _regular_ table.
81
+ * Set to "none" to disable the responsive functionality.
82
+ * Set to "none-scrollable" to disable responsive functionality _and_ allow horizontal scrolling -
83
+ * this is useful for comparison tables where it's important to maintain column and row layout.
38
84
  */
39
- actionLabelDefaults: DuetLangObject;
85
+ breakpoint: DuetTableBreakpoint;
40
86
  /**
41
- * Array of group names that you want the editable table to display (can be used to hide or show groups depending on conditions).
42
- * @default { id: "all", label: this.groupsLabelDefaults, actionLabel: this.actionLabelDefaults }.
43
- * @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}].
87
+ * Define actions for all items in a table
88
+ * An alternative to inline HTML table.
89
+ * required for Sortable tables
90
+ * @default undefined
44
91
  */
45
- groups: DuetEditableTableGroupNames | string;
92
+ actions: DuetEditableTableActions;
46
93
  /**
47
- * Array of actions that are mapped via the map variable to the various groups defined in group.
94
+ * Define columns for a table
95
+ * An alternative to inline HTML table.
96
+ * required for Sortable tables
48
97
  * @default undefined
49
- * @example [{
50
- variation: "default",
51
- icon: "action-edit-2",
52
- id: "edit",
53
- map: ["success"],
54
- label: {
55
- fi: " Label",
56
- en: " Label",
57
- sv: " Label",
58
- }
59
- }]
60
98
  */
61
- actions: DuetEditableTableActions | string;
99
+ columns: DuetEditableTableColumns;
62
100
  /**
63
- * Shows or hides the table labels.
101
+ * Define rows for a table
102
+ * An alternative to inline HTML table.
103
+ * required for Sortable tables
104
+ * @default undefined
64
105
  */
65
- hideGroups: boolean;
106
+ rows: DuetEditableTableRows;
66
107
  /**
67
- * Exposes the aria role for optimizing accessibility.
108
+ * Controls whether the table is sortable by headers
68
109
  */
69
- accessibleRole: string;
110
+ sortable: boolean;
111
+ /**
112
+ * Optional id that get passed to the table and used to setup ::parts
113
+ */
114
+ groupId: string;
70
115
  /**
71
116
  * Theme of the table.
72
117
  */
73
118
  theme: DuetTheme;
74
119
  /**
75
- * Component lifecycle events.
120
+ * Exposes the aria role for optimizing accessibility.
76
121
  */
77
- componentWillLoad(): void;
122
+ accessibleRole: string;
123
+ /**
124
+ * Event emitted when table is sortable and a header item is clicked/enter is pressed
125
+ */
126
+ duetTableToggle: EventEmitter<DuetTableToggleEvent>;
78
127
  /**
79
- * Method to force an update of a tabular data array.
80
- * when called the method will rerender the entire tabular structure.
128
+ * Event emitted when table is sortable and a header item is clicked/enter is pressed
81
129
  */
82
- updateTable(passedItems?: DuetEditableTableItems): Promise<void>;
130
+ duetMenuClick: EventEmitter<DuetTableMenuEvent>;
131
+ private sortableDefaultLabel;
132
+ private actionColumnLabel;
133
+ /**
134
+ * Component lifecycle events.
135
+ */
136
+ componentWillLoad(): void;
83
137
  /**
84
138
  * Private methods.
85
139
  */
86
- private kick;
140
+ private toggleColumn;
141
+ private handleKeyDown;
142
+ private createLabel;
143
+ private getSortedColumns;
144
+ private getRowSortOrder;
145
+ private renderTableHeader;
146
+ private renderActions;
147
+ private renderTableBody;
87
148
  /**
88
- * If a user defines a template section within editable table, try to read an use it.
149
+ * Render Methods
89
150
  */
90
- private getTemplate;
91
- private getItemData;
92
- filterMap: (needle: any) => [any, DuetEditableTableItemData][];
93
151
  render(): any;
94
152
  }
@@ -39,6 +39,7 @@ export interface I18nText {
39
39
  /**
40
40
  * @slot utility - A slot for utilities, such as a notification drawer or shopping basket.
41
41
  * @slot logo-utility - A slot to place elements alongside the logo. This takes precedence over the **region** prop. Note: not available in desktop multilevel header.
42
+ * @part header - piercing selector for styling the header element.
42
43
  */
43
44
  export declare class DuetHeader implements ThemeableComponent {
44
45
  /**
@@ -11,6 +11,7 @@ export declare type DuetPaginationPageEvent = {
11
11
  to: number;
12
12
  type: "page" | "jump";
13
13
  };
14
+ export declare type DuetPaginationVariation = "default" | "compact";
14
15
  export declare class DuetPagination implements ThemeableComponent {
15
16
  private listId;
16
17
  private nativeNav;
@@ -37,14 +38,18 @@ export declare class DuetPagination implements ThemeableComponent {
37
38
  * Characters to use for the jump buttons.
38
39
  */
39
40
  jumpString: string;
41
+ /**
42
+ * Variation of the paginator (compact and default supported)
43
+ */
44
+ variation: DuetPaginationVariation;
40
45
  /**
41
46
  * Default pagination labels
42
47
  */
43
- ariaLabelsDefaults: DuetLangObject;
48
+ accessibleLabelsDefaults: DuetLangObject;
44
49
  /**
45
50
  * Default pagination labels
46
51
  */
47
- ariaLabels: Record<string, string>;
52
+ accessibleLabels: Record<string, string>;
48
53
  /**
49
54
  * The size of the take, when paginating.
50
55
  */
@@ -7,6 +7,10 @@ export declare type DuetTabGroupEvent = {
7
7
  value: number;
8
8
  };
9
9
  export declare type DuetTabVariation = "default" | "plain";
10
+ /**
11
+ * @part ${identifier}-button - piercing selector for styling tab buttons
12
+ * @part ${identifier}-button--selected - piercing selector for styling selected tab button
13
+ */
10
14
  export declare class DuetTabGroup implements ThemeableComponent {
11
15
  /**
12
16
  * Own Properties.
@@ -3,6 +3,14 @@ import { ThemeableComponent } from "../../utils/themeable-component";
3
3
  export declare type DuetTableBreakpoint = keyof typeof breakpointToToken;
4
4
  export declare type DuetTableVariant = "striped" | "plain" | "fixed";
5
5
  export declare type DuetTableStickyDistance = "with-links" | "without-links" | "none";
6
+ export declare type DuetTableToggleEvent = {
7
+ component: "duet-table";
8
+ sort_order?: number;
9
+ direction: 1 | -1;
10
+ index: number;
11
+ key: string;
12
+ originalEvent: KeyboardEvent | MouseEvent;
13
+ };
6
14
  declare const breakpointToToken: {
7
15
  none: string;
8
16
  "none-scrollable": string;
@@ -13,6 +21,11 @@ declare const breakpointToToken: {
13
21
  "xx-large": string;
14
22
  "xxx-large": string;
15
23
  };
24
+ /**
25
+ * @slot dot-menu- If this slot is populated - the content will be displayed together with a ... type menu to the far right in the tsble header
26
+ * @slot header - Header slot for the table
27
+ * @slot footer - Footer slot for the table
28
+ */
16
29
  export declare class DuetTable implements ThemeableComponent {
17
30
  private mq;
18
31
  private observer;
@@ -59,6 +72,9 @@ export declare class DuetTable implements ThemeableComponent {
59
72
  componentWillLoad(): void;
60
73
  componentDidLoad(): void;
61
74
  disconnectedCallback(): void;
75
+ /**
76
+ * Local methods.
77
+ */
62
78
  private copyHeadingsToCells;
63
79
  render(): any;
64
80
  }
@@ -3,8 +3,7 @@ import { DuetMargin, DuetTheme } from "../../common-types";
3
3
  import { FormComponent } from "../../utils/form-components";
4
4
  import { DuetLangObject } from "../../utils/language-utils";
5
5
  import { ThemeableComponent } from "../../utils/themeable-component";
6
- import { DuetEditableTableGroupNames } from "../duet-editable-table/duet-editable-table";
7
- import { DuetEditableTableActions } from "../duet-editable-table/duet-editable-table-item";
6
+ import { DuetEditableTableActions } from "../duet-editable-table/duet-editable-table";
8
7
  import { StatusMessage } from "../duet-upload-aria-status/duet-upload-aria-status";
9
8
  import { DuetUploadErrorCode } from "./errorcodes.utils";
10
9
  import { DuetXhrRequest } from "./xhr.helpers";
@@ -33,6 +32,11 @@ export declare type DuetFileListItem = {
33
32
  export interface StringMap {
34
33
  [key: string]: any;
35
34
  }
35
+ export declare type DuetUploadTableGroupName = {
36
+ id: string;
37
+ label: DuetLangObject;
38
+ actionLabel?: DuetLangObject;
39
+ };
36
40
  /**
37
41
  * @slot header - named slot - to place content after description / caption
38
42
  * @slot fileheader - named slot - to place content above "filelist" (only displayed when "filelist" contains items)
@@ -42,23 +46,6 @@ export interface StringMap {
42
46
  * @part ${this.identifier}-error-notification : duet-upload-error-notification - named part - can be used to style any error notifications occurring internally
43
47
  */
44
48
  export declare class DuetUpload implements ThemeableComponent, FormComponent {
45
- /**
46
- * Own Properties
47
- */
48
- private buttonId;
49
- private labelId;
50
- private uploadId;
51
- private editableTableId;
52
- private filesInProgress;
53
- private fileMaxReached;
54
- private bytesMaxReached;
55
- private internalStatusMessageLabel;
56
- private metaData;
57
- private nativeInput?;
58
- /**
59
- * Properties
60
- */
61
- private DefaultGroups;
62
49
  /**
63
50
  * Reference to host HTML element.
64
51
  */
@@ -97,7 +84,7 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
97
84
  /**
98
85
  * Default actions added to the internally used duet-editable-table
99
86
  */
100
- actions: DuetEditableTableActions | string;
87
+ actions: DuetEditableTableActions;
101
88
  /**
102
89
  * Endpoint URI that is capable of receiving the files
103
90
  */
@@ -192,12 +179,6 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
192
179
  * browser from displaying its own validation errors.
193
180
  */
194
181
  required: boolean;
195
- /**
196
- * Array of group names that you want the editable table to use to display files
197
- * @required
198
- * @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}]
199
- */
200
- groups: DuetEditableTableGroupNames | string;
201
182
  /**
202
183
  * Key used to set vertical alignment of action buttons
203
184
  */
@@ -214,7 +195,6 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
214
195
  * Property to read if the internally used editable-table contains errors or not
215
196
  */
216
197
  valid: boolean;
217
- watchValidHandler(newValue: boolean, oldValue: boolean): void;
218
198
  /**
219
199
  * Property to change labelDefaults defaults on the component.
220
200
  * normally you would handle these strings on an application level and override @label when needed
@@ -337,11 +317,66 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
337
317
  * Emitted when the user clicks the upload button
338
318
  */
339
319
  duetUpload: EventEmitter<DuetUploadEvent>;
320
+ /**
321
+ * Own Properties
322
+ */
323
+ private buttonId;
324
+ private labelId;
325
+ private uploadId;
326
+ private filesInProgress;
327
+ private fileMaxReached;
328
+ private bytesMaxReached;
329
+ private internalStatusMessageLabel;
330
+ private metaData;
331
+ private nativeInput?;
332
+ /**
333
+ * Properties
334
+ */
335
+ private DefaultGroups;
336
+ /**
337
+ * Array of group names that you want the editable table to use to display files
338
+ * @required
339
+ * @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}]
340
+ */
341
+ groups: DuetUploadTableGroupName[];
342
+ private kick;
343
+ watchValidHandler(newValue: boolean, oldValue: boolean): void;
340
344
  /**
341
345
  * Component lifecycle events.
342
346
  */
343
347
  componentWillLoad(): void;
344
348
  componentWillRender(): void;
349
+ /**
350
+ * Sets focus on the specified `duet-input`. Use this method instead of the global
351
+ * `input.focus()`.
352
+ */
353
+ setFocus(options?: FocusOptions): Promise<void>;
354
+ /**
355
+ * Method for invoking the upload sequence
356
+ */
357
+ upload(metaData?: any | undefined): Promise<void>;
358
+ /**
359
+ * Method for forcing a render of the upload list, element.files can be changed externally
360
+ * But it will only rerender on a new Map or a top Level change - this can be used to update
361
+ * the tabular data if the automatic re-render is no sufficient
362
+ */
363
+ refresh(): Promise<void>;
364
+ /**
365
+ * Get list of files, divided in errors and valid sections
366
+ */
367
+ getFiles(): Promise<false | {
368
+ valid: any[];
369
+ invalid: any[];
370
+ }>;
371
+ /**
372
+ * Convenience method for updating the value of a key:value inside an item in the files attribute
373
+ */
374
+ updateValue(item: string, key: string, value: any): Promise<void>;
375
+ /**
376
+ * render() function
377
+ * Always the last one in the class.
378
+ */
379
+ render(): any;
345
380
  /**
346
381
  * Private functions
347
382
  */
@@ -349,8 +384,6 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
349
384
  private verifyValidity;
350
385
  private getGroupFromItemData;
351
386
  private getItemHTMLFromItemData;
352
- private convertToDuetEditableTableItems;
353
- private kick;
354
387
  private genHashName;
355
388
  private updateValueInMap;
356
389
  private updateProgress;
@@ -376,6 +409,7 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
376
409
  * Component event handling.
377
410
  */
378
411
  private onChange;
412
+ private getItemFromUID;
379
413
  private onDelete;
380
414
  private onCancel;
381
415
  private onUpload;
@@ -384,34 +418,10 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
384
418
  private onFocus;
385
419
  private onDone;
386
420
  /**
387
- * Sets focus on the specified `duet-input`. Use this method instead of the global
388
- * `input.focus()`.
421
+ * @description This functions return sorted map items byg condition which are:
389
422
  */
390
- setFocus(options?: FocusOptions): Promise<void>;
391
- /**
392
- * Method for invoking the upload sequence
393
- */
394
- upload(metaData?: any | undefined): Promise<void>;
395
- /**
396
- * Method for forcing a render of the upload list, element.files can be changed externally
397
- * But it will only rerender on a new Map or a top Level change - this can be used to update
398
- * the tabular data if the automatic re-render is no sufficient
399
- */
400
- refresh(): Promise<void>;
401
- /**
402
- * Get list of files, divided in errors and valid sections
403
- */
404
- getFiles(): Promise<false | {
405
- valid: any[];
406
- invalid: any[];
407
- }>;
408
- /**
409
- * Convenience method for updating the value of a key:value inside an item in the files attribute
410
- */
411
- updateValue(item: string, key: string, value: any): Promise<void>;
412
- /**
413
- * render() function
414
- * Always the last one in the class.
415
- */
416
- render(): any;
423
+ private filterMap;
424
+ private getColumns;
425
+ private getActions;
426
+ private renderEditableTableGroups;
417
427
  }