@duetds/components 4.36.1 → 5.0.2

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 (315) hide show
  1. package/hydrate/index.js +1135 -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 +2 -2
  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 +1 -1
  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-dfd718e8.js → focus-utils-2404e669.js} +1 -1
  45. package/lib/cjs/{index-4f342f1c.js → index-91b9281f.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-f402e205.js → token-utils-ac8432d1.js} +1 -1
  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-date-picker/duet-date-picker.css +2 -57
  58. package/lib/collection/components/duet-date-picker/duet-date-picker.js +2 -6
  59. package/lib/collection/components/duet-editable-table/duet-editable-table-tabledata.js +3 -2
  60. package/lib/collection/components/duet-editable-table/duet-editable-table.css +20 -1
  61. package/lib/collection/components/duet-editable-table/duet-editable-table.js +331 -205
  62. package/lib/collection/components/duet-header/duet-header.css +5 -1
  63. package/lib/collection/components/duet-header/duet-header.js +4 -3
  64. package/lib/collection/components/duet-pagination/duet-pagination.css +3 -62
  65. package/lib/collection/components/duet-pagination/duet-pagination.js +49 -19
  66. package/lib/collection/components/duet-range-stepper/duet-range-stepper.css +4 -55
  67. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -4
  68. package/lib/collection/components/duet-table/duet-table.css +42 -8
  69. package/lib/collection/components/duet-table/duet-table.js +11 -2
  70. package/lib/collection/components/duet-upload/duet-upload.css +25 -0
  71. package/lib/collection/components/duet-upload/duet-upload.js +270 -166
  72. package/lib/collection/components/duet-upload/upload-validators.js +1 -1
  73. package/lib/collection/utils/fixture-utils.js +3 -1
  74. package/lib/collection/utils/js-utils.js +36 -1
  75. package/lib/custom-elements-bundle/index.d.ts +6 -12
  76. package/lib/custom-elements-bundle/index.js +1148 -1007
  77. package/lib/duet/duet.esm.js +1 -1
  78. package/lib/duet/duet.js +1 -1
  79. package/lib/duet/{p-061835f3.system.entry.js → p-09bdb2b4.system.entry.js} +1 -1
  80. package/lib/duet/{p-1a95aeb6.entry.js → p-0e4b29a3.entry.js} +1 -1
  81. package/lib/duet/{p-65c418f7.system.entry.js → p-16477cd0.system.entry.js} +1 -1
  82. package/lib/duet/p-1c993c62.system.entry.js +4 -0
  83. package/lib/duet/{p-8c53bc24.system.entry.js → p-1f78f660.system.entry.js} +1 -1
  84. package/lib/duet/{p-ef275410.entry.js → p-24442312.entry.js} +1 -1
  85. package/lib/duet/{p-ddb6344c.system.js → p-268c0abb.system.js} +0 -0
  86. package/lib/duet/p-2d602c49.system.entry.js +4 -0
  87. package/lib/duet/{p-946f34b4.system.entry.js → p-305a8332.system.entry.js} +1 -1
  88. package/lib/duet/{p-4fdbc6ff.system.entry.js → p-3724e8bf.system.entry.js} +1 -1
  89. package/lib/duet/{p-5d9affcd.entry.js → p-40deceee.entry.js} +1 -1
  90. package/lib/duet/{p-211b4485.system.entry.js → p-4169371b.system.entry.js} +1 -1
  91. package/lib/duet/{p-9ce0e625.entry.js → p-4306e41d.entry.js} +1 -1
  92. package/lib/duet/{p-5376a9db.entry.js → p-43a310bd.entry.js} +1 -1
  93. package/lib/duet/{p-29255af8.entry.js → p-45c0bd39.entry.js} +1 -1
  94. package/lib/duet/{p-fd2211ab.entry.js → p-47885d97.entry.js} +1 -1
  95. package/lib/duet/{p-615bfc61.system.entry.js → p-4b9af907.system.entry.js} +1 -1
  96. package/lib/duet/{p-1c4721a1.entry.js → p-4f9d6d43.entry.js} +1 -1
  97. package/lib/duet/{p-85100e09.entry.js → p-52f07766.entry.js} +1 -1
  98. package/lib/duet/{p-e8e35258.entry.js → p-567321c9.entry.js} +1 -1
  99. package/lib/duet/p-572ee1f5.entry.js +4 -0
  100. package/lib/duet/{p-cb445018.js → p-5746d88c.js} +1 -1
  101. package/lib/duet/{p-286d2ad2.system.entry.js → p-57f6b52e.system.entry.js} +1 -1
  102. package/lib/duet/p-5a4e576c.entry.js +4 -0
  103. package/lib/duet/{p-fae71c1f.entry.js → p-5ad66dfd.entry.js} +1 -1
  104. package/lib/duet/{p-f6da56c8.entry.js → p-5cc97dae.entry.js} +1 -1
  105. package/lib/duet/{p-03cf3ebf.entry.js → p-5ce39b6b.entry.js} +1 -1
  106. package/lib/duet/{p-46ae601a.entry.js → p-615f0b6f.entry.js} +1 -1
  107. package/lib/duet/{p-83452e8f.entry.js → p-63f6099b.entry.js} +1 -1
  108. package/lib/duet/p-681e93cd.entry.js +4 -0
  109. package/lib/duet/p-6a455a78.system.entry.js +4 -0
  110. package/lib/duet/{p-c52f4de0.system.entry.js → p-6d142621.system.entry.js} +1 -1
  111. package/lib/duet/{p-ca0ee655.system.entry.js → p-6fc73186.system.entry.js} +1 -1
  112. package/lib/duet/{p-e5ce7aad.system.entry.js → p-72469869.system.entry.js} +1 -1
  113. package/lib/duet/{p-20cdb787.entry.js → p-73d3d1bf.entry.js} +1 -1
  114. package/lib/duet/{p-164a7037.system.entry.js → p-763d700b.system.entry.js} +1 -1
  115. package/lib/duet/{p-d9716aec.system.entry.js → p-770fdb8f.system.entry.js} +1 -1
  116. package/lib/duet/{p-4e2532c7.system.js → p-77acbfe4.system.js} +1 -1
  117. package/lib/duet/{p-d21f19cc.system.js → p-7d65b8fc.system.js} +1 -1
  118. package/lib/duet/{p-ffb5fb75.system.entry.js → p-7e1d6ac6.system.entry.js} +1 -1
  119. package/lib/duet/{p-c7fa7dcc.system.entry.js → p-7f58aced.system.entry.js} +1 -1
  120. package/lib/duet/{p-22baf1f8.system.entry.js → p-806dc8b7.system.entry.js} +1 -1
  121. package/lib/duet/{p-fa99eaa4.system.js → p-812b0905.system.js} +0 -0
  122. package/lib/duet/{p-e7b53f4f.system.entry.js → p-854558fd.system.entry.js} +1 -1
  123. package/lib/duet/{p-c514010b.system.entry.js → p-85507ac3.system.entry.js} +1 -1
  124. package/lib/duet/p-8a241b0d.system.js +4 -0
  125. package/lib/duet/p-8ab8531d.entry.js +4 -0
  126. package/lib/duet/{p-eb892975.system.entry.js → p-8ff7380a.system.entry.js} +1 -1
  127. package/lib/duet/p-92639d0b.system.js +4 -0
  128. package/lib/duet/{p-3d1b0105.entry.js → p-97b9a61f.entry.js} +1 -1
  129. package/lib/duet/{p-3bb702e3.system.entry.js → p-97f24160.system.entry.js} +2 -2
  130. package/lib/duet/{p-740b5609.entry.js → p-9816d0ab.entry.js} +1 -1
  131. package/lib/duet/{p-ae14591e.entry.js → p-9c37e704.entry.js} +1 -1
  132. package/lib/duet/p-9c57b94d.system.entry.js +4 -0
  133. package/lib/duet/{p-635dacce.system.entry.js → p-9fa719d0.system.entry.js} +1 -1
  134. package/lib/duet/p-a4c7bb27.system.entry.js +4 -0
  135. package/lib/duet/{p-3c3536be.entry.js → p-a9158499.entry.js} +1 -1
  136. package/lib/duet/{p-e7dd8a15.system.entry.js → p-a934db65.system.entry.js} +1 -1
  137. package/lib/duet/{p-e35d8543.entry.js → p-acb043aa.entry.js} +1 -1
  138. package/lib/duet/{p-7f0e360d.entry.js → p-b2811c51.entry.js} +1 -1
  139. package/lib/duet/{p-d24c6bc1.entry.js → p-b53afa7a.entry.js} +1 -1
  140. package/lib/duet/{p-0366552b.system.entry.js → p-b686f39d.system.entry.js} +1 -1
  141. package/lib/duet/{p-ebc56043.entry.js → p-b6d5be13.entry.js} +1 -1
  142. package/lib/duet/{p-e8303364.system.entry.js → p-bb61f7d8.system.entry.js} +1 -1
  143. package/lib/duet/{p-12941aef.system.entry.js → p-bc895d5f.system.entry.js} +1 -1
  144. package/lib/duet/{p-e47daca7.system.entry.js → p-beca945d.system.entry.js} +1 -1
  145. package/lib/duet/{p-dcaecb5e.js → p-c420e1ab.js} +1 -1
  146. package/lib/duet/{p-5b546064.entry.js → p-c801c899.entry.js} +1 -1
  147. package/lib/duet/{p-3547d108.entry.js → p-c8f1cc9c.entry.js} +1 -1
  148. package/lib/duet/{p-c8ec3b99.entry.js → p-cd8c4a50.entry.js} +1 -1
  149. package/lib/duet/{p-b6dd0933.entry.js → p-ce487a35.entry.js} +1 -1
  150. package/lib/duet/{p-c6df2ea8.system.entry.js → p-ce6e5918.system.entry.js} +1 -1
  151. package/lib/duet/{p-c2d32103.entry.js → p-d03cb5c3.entry.js} +1 -1
  152. package/lib/duet/p-d173c966.entry.js +4 -0
  153. package/lib/duet/{p-79b9e7ef.system.entry.js → p-d414e0f6.system.entry.js} +1 -1
  154. package/lib/duet/{p-8143f3de.js → p-d7bc0102.js} +0 -0
  155. package/lib/duet/{p-24b9e806.entry.js → p-d7d80b8e.entry.js} +1 -1
  156. package/lib/duet/p-d8ed6905.entry.js +4 -0
  157. package/lib/duet/{p-562ae946.entry.js → p-da61c503.entry.js} +1 -1
  158. package/lib/duet/p-dbb4a588.js +4 -0
  159. package/lib/duet/p-dd8fade8.entry.js +4 -0
  160. package/lib/duet/{p-1db7a35b.entry.js → p-de67de41.entry.js} +1 -1
  161. package/lib/duet/{p-9df321b3.system.entry.js → p-def972d1.system.entry.js} +1 -1
  162. package/lib/duet/p-df2d8ec4.entry.js +4 -0
  163. package/lib/duet/{p-05e2c680.system.entry.js → p-e35ea4b9.system.entry.js} +1 -1
  164. package/lib/duet/{p-ad3dad04.system.js → p-e9ab7f0a.system.js} +1 -1
  165. package/lib/duet/{p-7a32ceb3.system.entry.js → p-eb383537.system.entry.js} +1 -1
  166. package/lib/duet/{p-ad07f399.js → p-ed75c8b3.js} +0 -0
  167. package/lib/duet/{p-c18080ad.entry.js → p-ee8682fc.entry.js} +1 -1
  168. package/lib/duet/p-f155c84d.system.entry.js +4 -0
  169. package/lib/duet/{p-d945a4b0.system.entry.js → p-f1b895c8.system.entry.js} +1 -1
  170. package/lib/duet/{p-89e42127.system.entry.js → p-f5af2560.system.entry.js} +1 -1
  171. package/lib/duet/{p-3900577d.system.entry.js → p-f7475d5a.system.entry.js} +1 -1
  172. package/lib/duet/p-f7c7f37d.js +4 -0
  173. package/lib/duet/{p-210d739c.system.entry.js → p-feca1c50.system.entry.js} +1 -1
  174. package/lib/esm/duet-action-button.entry.js +159 -0
  175. package/lib/esm/duet-alert.entry.js +1 -1
  176. package/lib/esm/duet-badge.entry.js +1 -1
  177. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  178. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  179. package/lib/esm/duet-button_2.entry.js +8 -4
  180. package/lib/esm/duet-caption_4.entry.js +3 -3
  181. package/lib/esm/duet-card.entry.js +3 -3
  182. package/lib/esm/duet-checkbox.entry.js +1 -1
  183. package/lib/esm/duet-choice_2.entry.js +4 -4
  184. package/lib/esm/duet-collapsible.entry.js +2 -2
  185. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  186. package/lib/esm/duet-date-picker.entry.js +4 -4
  187. package/lib/esm/duet-divider_2.entry.js +1 -1
  188. package/lib/esm/{duet-editable-table_4.entry.js → duet-editable-table_3.entry.js} +384 -338
  189. package/lib/esm/duet-empty-state.entry.js +1 -1
  190. package/lib/esm/duet-fieldset.entry.js +1 -1
  191. package/lib/esm/duet-footer.entry.js +1 -1
  192. package/lib/esm/duet-grid_2.entry.js +2 -2
  193. package/lib/esm/duet-header_2.entry.js +7 -7
  194. package/lib/esm/duet-hero.entry.js +1 -1
  195. package/lib/esm/duet-icon.entry.js +3 -3
  196. package/lib/esm/duet-input_2.entry.js +1 -1
  197. package/lib/esm/duet-layout.entry.js +1 -1
  198. package/lib/esm/duet-list_2.entry.js +1 -1
  199. package/lib/esm/duet-modal.entry.js +2 -2
  200. package/lib/esm/duet-notification_2.entry.js +1 -1
  201. package/lib/esm/duet-number-input.entry.js +1 -1
  202. package/lib/esm/duet-pagination_2.entry.js +24 -14
  203. package/lib/esm/duet-progress.entry.js +1 -1
  204. package/lib/esm/duet-radio_2.entry.js +1 -1
  205. package/lib/esm/duet-range-slider.entry.js +2 -2
  206. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  207. package/lib/esm/duet-select.entry.js +1 -1
  208. package/lib/esm/duet-step_2.entry.js +1 -1
  209. package/lib/esm/duet-textarea.entry.js +1 -1
  210. package/lib/esm/duet-toggle.entry.js +1 -1
  211. package/lib/esm/duet-tooltip.entry.js +1 -1
  212. package/lib/esm/duet-tray.entry.js +2 -2
  213. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  214. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  215. package/lib/esm/duet.js +2 -2
  216. package/lib/esm/{focus-utils-d4e80e1e.js → focus-utils-46b28332.js} +1 -1
  217. package/lib/esm/{index-4a5e7664.js → index-8743db3b.js} +1 -1
  218. package/lib/esm/js-utils-52e0944c.js +36 -0
  219. package/lib/esm/loader.js +2 -2
  220. package/lib/esm/{token-utils-e9a69acf.js → token-utils-e9a0cb88.js} +1 -1
  221. package/lib/esm/{tokens-e110dc89.js → tokens-57d98824.js} +0 -0
  222. package/lib/esm/{tokens.module-49cbf963.js → tokens.module-a13e9683.js} +0 -0
  223. package/lib/esm-es5/duet-action-button.entry.js +4 -0
  224. package/lib/esm-es5/duet-alert.entry.js +1 -1
  225. package/lib/esm-es5/duet-badge.entry.js +1 -1
  226. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  227. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  228. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  229. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  230. package/lib/esm-es5/duet-card.entry.js +1 -1
  231. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  232. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  233. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  234. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  235. package/lib/esm-es5/duet-date-picker.entry.js +2 -2
  236. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  237. package/lib/esm-es5/duet-editable-table_3.entry.js +4 -0
  238. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  239. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  240. package/lib/esm-es5/duet-footer.entry.js +1 -1
  241. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  242. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  243. package/lib/esm-es5/duet-hero.entry.js +1 -1
  244. package/lib/esm-es5/duet-icon.entry.js +1 -1
  245. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  246. package/lib/esm-es5/duet-layout.entry.js +1 -1
  247. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  248. package/lib/esm-es5/duet-modal.entry.js +1 -1
  249. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  250. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  251. package/lib/esm-es5/duet-pagination_2.entry.js +2 -2
  252. package/lib/esm-es5/duet-progress.entry.js +1 -1
  253. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  254. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  255. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  256. package/lib/esm-es5/duet-select.entry.js +1 -1
  257. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  258. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  259. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  260. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  261. package/lib/esm-es5/duet-tray.entry.js +1 -1
  262. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  263. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  264. package/lib/esm-es5/duet.js +1 -1
  265. package/lib/esm-es5/focus-utils-46b28332.js +4 -0
  266. package/lib/esm-es5/{index-4a5e7664.js → index-8743db3b.js} +1 -1
  267. package/lib/esm-es5/js-utils-52e0944c.js +4 -0
  268. package/lib/esm-es5/loader.js +1 -1
  269. package/lib/esm-es5/{token-utils-e9a69acf.js → token-utils-e9a0cb88.js} +1 -1
  270. package/lib/esm-es5/{tokens-e110dc89.js → tokens-57d98824.js} +0 -0
  271. package/lib/esm-es5/{tokens.module-49cbf963.js → tokens.module-a13e9683.js} +0 -0
  272. package/lib/html.html-data.json +169 -69
  273. package/lib/types/components/duet-action-button/duet-action-button.d.ts +112 -0
  274. package/lib/types/components/duet-button/duet-button.d.ts +4 -0
  275. package/lib/types/components/duet-editable-table/duet-editable-table-tabledata.d.ts +2 -2
  276. package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +106 -48
  277. package/lib/types/components/duet-header/duet-header.d.ts +1 -0
  278. package/lib/types/components/duet-pagination/duet-pagination.d.ts +7 -2
  279. package/lib/types/components/duet-table/duet-table.d.ts +16 -0
  280. package/lib/types/components/duet-upload/duet-upload.d.ts +68 -58
  281. package/lib/types/components.d.ts +225 -149
  282. package/lib/types/utils/js-utils.d.ts +2 -0
  283. package/package.json +8 -16
  284. package/lib/cjs/duet-editable-table-button.cjs.entry.js +0 -96
  285. package/lib/cjs/js-utils-33a9dbe3.js +0 -16
  286. package/lib/collection/components/duet-editable-table/duet-editable-table-button.css +0 -32
  287. package/lib/collection/components/duet-editable-table/duet-editable-table-button.js +0 -225
  288. package/lib/collection/components/duet-editable-table/duet-editable-table-item.css +0 -36
  289. package/lib/collection/components/duet-editable-table/duet-editable-table-item.js +0 -225
  290. package/lib/duet/p-063fe96d.entry.js +0 -4
  291. package/lib/duet/p-2361986e.entry.js +0 -4
  292. package/lib/duet/p-2eeacf1a.entry.js +0 -4
  293. package/lib/duet/p-396f1bdc.entry.js +0 -4
  294. package/lib/duet/p-493c6d2f.system.entry.js +0 -4
  295. package/lib/duet/p-7b55f33e.entry.js +0 -4
  296. package/lib/duet/p-7e0e2209.system.entry.js +0 -4
  297. package/lib/duet/p-81867417.system.js +0 -4
  298. package/lib/duet/p-a3d7951c.system.entry.js +0 -4
  299. package/lib/duet/p-a619dff3.system.js +0 -4
  300. package/lib/duet/p-b25d3769.js +0 -4
  301. package/lib/duet/p-bf192d9f.entry.js +0 -4
  302. package/lib/duet/p-c76a68aa.system.entry.js +0 -4
  303. package/lib/duet/p-d12b3d21.system.entry.js +0 -4
  304. package/lib/duet/p-ded33218.system.entry.js +0 -4
  305. package/lib/duet/p-e6a69eb8.js +0 -4
  306. package/lib/duet/p-ef4962e8.entry.js +0 -4
  307. package/lib/duet/p-ff21f3c2.entry.js +0 -4
  308. package/lib/esm/duet-editable-table-button.entry.js +0 -92
  309. package/lib/esm/js-utils-b69f17df.js +0 -14
  310. package/lib/esm-es5/duet-editable-table-button.entry.js +0 -4
  311. package/lib/esm-es5/duet-editable-table_4.entry.js +0 -4
  312. package/lib/esm-es5/focus-utils-d4e80e1e.js +0 -4
  313. package/lib/esm-es5/js-utils-b69f17df.js +0 -4
  314. package/lib/types/components/duet-editable-table/duet-editable-table-button.d.ts +0 -73
  315. package/lib/types/components/duet-editable-table/duet-editable-table-item.d.ts +0 -76
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { DuetColor, DuetDirection, DuetGridBreakpoint, DuetHeadingLevel, DuetIconName, DuetLanguage, DuetLocale, DuetMargin, DuetPadding, DuetStatus, DuetTheme, DuetTooltipDirection, DuetVisualHeadingLevel } from "./common-types";
9
+ import { DuetActionButtonEvent, DuetActionButtonIconSize } from "./components/duet-action-button/duet-action-button";
9
10
  import { DuetLangObject } from "./utils/language-utils";
10
11
  import { DuetAlertEvent } from "./components/duet-alert/duet-alert";
11
12
  import { DuetButtonIconSize, DuetButtonSize, DuetButtonTextCentering, DuetButtonVariation, DuetButtonWrapping } from "./components/duet-button/duet-button";
@@ -17,10 +18,8 @@ import { DuetCollapsibleHeadingFontSize, DuetCollapsibleToggleEvent, DuetCollaps
17
18
  import { DuetCookieConsentEvent } from "./components/duet-cookie-consent/duet-cookie-consent";
18
19
  import { DuetDatePickerChangeEvent, DuetDatePickerDirection, DuetDatePickerFocusEvent } from "./components/duet-date-picker/duet-date-picker";
19
20
  import { DuetDividerMargin } from "./components/duet-divider/duet-divider";
20
- import { DuetEditableTableGroupNames, DuetEditableTableItems } from "./components/duet-editable-table/duet-editable-table";
21
- import { DuetEditableTableActions } from "./components/duet-editable-table/duet-editable-table-item";
22
- import { DuetEditableTableActionButtonItems, DuetEditableTableItemEvent } from "./components/duet-editable-table/duet-editable-table-button";
23
- import { DuetEditableTableActions as DuetEditableTableActions1, DuetEditableTableItemData, DuetEditableTableItemEvent as DuetEditableTableItemEvent1 } from "./components/duet-editable-table/duet-editable-table-item";
21
+ import { DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant } from "./components/duet-table/duet-table";
22
+ import { DuetEditableTableActions, DuetEditableTableColumns, DuetEditableTableRows, DuetTableMenuEvent, DuetTableToggleEvent } from "./components/duet-editable-table/duet-editable-table";
24
23
  import { DuetEmptyStateSize } from "./components/duet-empty-state/duet-empty-state";
25
24
  import { DuetFooterAnalyticsEvent, DuetFooterChangeEvent, DuetFooterVariation } from "./components/duet-footer/duet-footer";
26
25
  import { DuetGridAlignment, DuetGridDistribution, DuetGridMobileAlignment } from "./components/duet-grid/duet-grid";
@@ -36,7 +35,7 @@ import { DuetLogoSize } from "./components/duet-logo/duet-logo";
36
35
  import { DuetModalCloseEvent, DuetModalSize } from "./components/duet-modal/duet-modal";
37
36
  import { DuetNotificationDrawerDirection } from "./components/duet-notification-drawer/duet-notification-drawer";
38
37
  import { DuetNumberInputEvent } from "./components/duet-number-input/duet-number-input";
39
- import { DuetPaginationPageEvent } from "./components/duet-pagination/duet-pagination";
38
+ import { DuetPaginationPageEvent, DuetPaginationVariation } from "./components/duet-pagination/duet-pagination";
40
39
  import { DuetParagraphSize, DuetParagraphVariation, DuetParagraphWeight } from "./components/duet-paragraph/duet-paragraph";
41
40
  import { DuetRadioEvent } from "./components/duet-radio/duet-radio";
42
41
  import { DuetRangeChangeEvent } from "./components/duet-range-slider/duet-range-slider";
@@ -47,15 +46,77 @@ import { DuetSpinnerSize } from "./components/duet-spinner/duet-spinner";
47
46
  import { DuetStepClickEvent, DuetStepState } from "./components/duet-step/duet-step";
48
47
  import { DuetStepChangeEvent } from "./components/duet-stepper/duet-stepper";
49
48
  import { DuetTabGroupEvent, DuetTabVariation } from "./components/duet-tab-group/duet-tab-group";
50
- import { DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant } from "./components/duet-table/duet-table";
49
+ import { DuetTableBreakpoint as DuetTableBreakpoint1, DuetTableStickyDistance as DuetTableStickyDistance1, DuetTableVariant as DuetTableVariant1 } from "./components/duet-table/duet-table";
51
50
  import { DuetTextareaEvent } from "./components/duet-textarea/duet-textarea";
52
51
  import { DuetToggleChangeEvent } from "./components/duet-toggle/duet-toggle";
53
52
  import { DuetTooltipBreakpoint } from "./components/duet-tooltip/duet-tooltip";
53
+ import { DuetEditableTableActions as DuetEditableTableActions1 } from "./components/duet-editable-table/duet-editable-table";
54
54
  import { StatusMessage } from "./components/duet-upload-aria-status/duet-upload-aria-status";
55
- import { DuetEditableTableGroupNames as DuetEditableTableGroupNames1 } from "./components/duet-editable-table/duet-editable-table";
56
- import { DuetUploadEvent, StringMap } from "./components/duet-upload/duet-upload";
55
+ import { DuetUploadEvent, DuetUploadTableGroupName, StringMap } from "./components/duet-upload/duet-upload";
57
56
  import { StatusMessage as StatusMessage1 } from "./components/duet-upload-aria-status/duet-upload-aria-status";
58
57
  export namespace Components {
58
+ interface DuetActionButton {
59
+ /**
60
+ * Name of id of action that was called being called
61
+ */
62
+ "actionId": string;
63
+ /**
64
+ * Name of id of action that was called being called
65
+ */
66
+ "actionMeta": Record<any, any> | string;
67
+ /**
68
+ * Name of action being called
69
+ */
70
+ "actionName": string;
71
+ /**
72
+ * Used to indicate which dom element with ID this element controls
73
+ */
74
+ "ariaControls": string;
75
+ /**
76
+ * Described By id
77
+ */
78
+ "ariaDescribedBy": string;
79
+ /**
80
+ * Aria description the button
81
+ */
82
+ "ariaDescription": string;
83
+ /**
84
+ * Default pagination labels
85
+ */
86
+ "ariaLabels": Record<string, string>;
87
+ /**
88
+ * Default pagination labels
89
+ */
90
+ "ariaLabelsDefaults": DuetLangObject;
91
+ /**
92
+ * Custom color to be used for a background, as a design token entered in camelCase or kebab-case. Using this option the icon will always be resized to $size-icon-medium on mobile viewports. Example: "color-primary".
93
+ */
94
+ "background": DuetColor;
95
+ /**
96
+ * Custom color to be used for the icon, as a design token entered in camelCase or kebab-case. Example: "color-primary". This property can also be set to "currentColor" which forces the icon to use the CSS text color of parent element instead. Useful when you want to control the color in stylesheet instead.
97
+ */
98
+ "color": DuetColor;
99
+ /**
100
+ * Disables the button
101
+ */
102
+ "disabled": boolean;
103
+ /**
104
+ * Color of the icon to display
105
+ */
106
+ "iconColor": string;
107
+ /**
108
+ * Name of the icon to display
109
+ */
110
+ "iconName": string;
111
+ /**
112
+ * Size of the icon
113
+ */
114
+ "iconSize": DuetActionButtonIconSize;
115
+ /**
116
+ * Theme of the pagination.
117
+ */
118
+ "theme": DuetTheme;
119
+ }
59
120
  interface DuetAlert {
60
121
  /**
61
122
  * Adds accessible label for the dismissible alert close button.
@@ -173,6 +234,10 @@ export namespace Components {
173
234
  * Indicates the id of a component owned by the button.
174
235
  */
175
236
  "accessibleOwns": string;
237
+ /**
238
+ * Use this property to add an aria-haspopup attribute to a button, if you are using it as a menu button.
239
+ */
240
+ "accessiblePopup": string;
176
241
  /**
177
242
  * Tells screen reader the element is pressed.
178
243
  */
@@ -775,93 +840,52 @@ export namespace Components {
775
840
  */
776
841
  "accessibleRole": string;
777
842
  /**
778
- * Array of internationalized defaults for the default action labels.
779
- */
780
- "actionLabelDefaults": DuetLangObject;
781
- /**
782
- * Array of actions that are mapped via the map variable to the various groups defined in group.
843
+ * Define actions for all items in a table An alternative to inline HTML table. required for Sortable tables
783
844
  * @default undefined
784
- * @example [{ variation: "default", icon: "action-edit-2", id: "edit", map: ["success"], label: { fi: " Label", en: " Label", sv: " Label", } }]
785
845
  */
786
- "actions": DuetEditableTableActions | string;
787
- /**
788
- * Key used to set vertical alignment of action buttons
789
- */
790
- "alignment": string;
791
- /**
792
- * Array of group names that you want the editable table to display (can be used to hide or show groups depending on conditions).
793
- * @default { id: "all", label: this.groupsLabelDefaults, actionLabel: this.actionLabelDefaults }.
794
- * @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}].
795
- */
796
- "groups": DuetEditableTableGroupNames | string;
846
+ "actions": DuetEditableTableActions;
797
847
  /**
798
- * Array of internationalized defaults for the default groups labels.
848
+ * Duet-table: By default the table is responsive - it will be flattened at narrow viewport widths. This prop controls the breakpoint at which the table should be rendered as a _regular_ table. Set to "none" to disable the responsive functionality. Set to "none-scrollable" to disable responsive functionality _and_ allow horizontal scrolling - this is useful for comparison tables where it's important to maintain column and row layout.
799
849
  */
800
- "groupsLabelDefaults": DuetLangObject;
850
+ "breakpoint": DuetTableBreakpoint;
801
851
  /**
802
- * Shows or hides the table labels.
852
+ * Define columns for a table An alternative to inline HTML table. required for Sortable tables
853
+ * @default undefined
803
854
  */
804
- "hideGroups": boolean;
855
+ "columns": DuetEditableTableColumns;
805
856
  /**
806
- * Map of items that contain list of things.
857
+ * Optional id that get passed to the table and used to setup ::parts
807
858
  */
808
- "items": DuetEditableTableItems;
859
+ "groupId": string;
809
860
  /**
810
- * Theme of the table.
861
+ * Duet-table: margin of the component.
811
862
  */
812
- "theme": DuetTheme;
863
+ "margin": DuetMargin;
813
864
  /**
814
- * Method to force an update of a tabular data array. when called the method will rerender the entire tabular structure.
865
+ * Define rows for a table An alternative to inline HTML table. required for Sortable tables
866
+ * @default undefined
815
867
  */
816
- "updateTable": (passedItems?: DuetEditableTableItems) => Promise<void>;
817
- }
818
- interface DuetEditableTableButton {
868
+ "rows": DuetEditableTableRows;
819
869
  /**
820
- * action items passed from host component
870
+ * Controls whether the table is sortable by headers
821
871
  */
822
- "actions": DuetEditableTableActionButtonItems;
872
+ "sortable": boolean;
823
873
  /**
824
- * group associated with action
874
+ * Duet-table: Controls whether the table has a sticky header. Sticky headers are not compatible with breakpoint="none-scrollable".
825
875
  */
826
- "group": string;
876
+ "sticky": boolean;
827
877
  /**
828
- * key of the item in the map
878
+ * Duet-table: Adjust the distance from top of the viewport (in pixels) when the table header becomes sticky.
829
879
  */
830
- "keyName": string;
880
+ "stickyDistance": DuetTableStickyDistance;
831
881
  /**
832
- * Theme of the empty state component.
882
+ * Theme of the table.
833
883
  */
834
884
  "theme": DuetTheme;
835
885
  /**
836
- * uid that gets passed along when the action is emitted
837
- */
838
- "uid": string;
839
- }
840
- interface DuetEditableTableItem {
841
- /**
842
- * Actions that can be performed on the element
886
+ * Duet-table: Style variation of the table.
843
887
  */
844
- "actions": DuetEditableTableActions;
845
- /**
846
- * Key used to set vertical alignment of action buttons
847
- */
848
- "alignment": string;
849
- /**
850
- * Object of data itemsused to render the entire row
851
- */
852
- "data": DuetEditableTableItemData;
853
- /**
854
- * GroupId used to pierce the shadowdom - gets concatenated with "content & actions" and used as part="groupIDcontent/actions" to pierce the content/Action item
855
- */
856
- "groupId": string;
857
- /**
858
- * Key used to identify item, when running actions
859
- */
860
- "keyName": string;
861
- /**
862
- * Theme of the empty state component.
863
- */
864
- "theme": DuetTheme;
888
+ "variation": DuetTableVariant;
865
889
  }
866
890
  interface DuetEmptyState {
867
891
  /**
@@ -1856,17 +1880,17 @@ export namespace Components {
1856
1880
  }
1857
1881
  interface DuetPagination {
1858
1882
  /**
1859
- * Used to indicate which dom element with ID this element controls
1883
+ * Default pagination labels
1860
1884
  */
1861
- "ariaControls": string;
1885
+ "accessibleLabels": Record<string, string>;
1862
1886
  /**
1863
1887
  * Default pagination labels
1864
1888
  */
1865
- "ariaLabels": Record<string, string>;
1889
+ "accessibleLabelsDefaults": DuetLangObject;
1866
1890
  /**
1867
- * Default pagination labels
1891
+ * Used to indicate which dom element with ID this element controls
1868
1892
  */
1869
- "ariaLabelsDefaults": DuetLangObject;
1893
+ "ariaControls": string;
1870
1894
  /**
1871
1895
  * The current page
1872
1896
  */
@@ -1887,6 +1911,10 @@ export namespace Components {
1887
1911
  * The total size of the paginating data
1888
1912
  */
1889
1913
  "total": number;
1914
+ /**
1915
+ * Variation of the paginator (compact and default supported)
1916
+ */
1917
+ "variation": DuetPaginationVariation;
1890
1918
  /**
1891
1919
  * Amount of visible page numbers to show
1892
1920
  */
@@ -2793,7 +2821,7 @@ export namespace Components {
2793
2821
  /**
2794
2822
  * Default actions added to the internally used duet-editable-table
2795
2823
  */
2796
- "actions": DuetEditableTableActions | string;
2824
+ "actions": DuetEditableTableActions;
2797
2825
  /**
2798
2826
  * Key used to set vertical alignment of action buttons
2799
2827
  */
@@ -2867,7 +2895,7 @@ export namespace Components {
2867
2895
  * @required
2868
2896
  * @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}]
2869
2897
  */
2870
- "groups": DuetEditableTableGroupNames | string;
2898
+ "groups": DuetUploadTableGroupName[];
2871
2899
  /**
2872
2900
  * If set the upload component will not display an upload button, you will have to create one yourself and call the exposed method startUpload
2873
2901
  */
@@ -2998,6 +3026,12 @@ export namespace Components {
2998
3026
  }
2999
3027
  }
3000
3028
  declare global {
3029
+ interface HTMLDuetActionButtonElement extends Components.DuetActionButton, HTMLStencilElement {
3030
+ }
3031
+ var HTMLDuetActionButtonElement: {
3032
+ prototype: HTMLDuetActionButtonElement;
3033
+ new (): HTMLDuetActionButtonElement;
3034
+ };
3001
3035
  interface HTMLDuetAlertElement extends Components.DuetAlert, HTMLStencilElement {
3002
3036
  }
3003
3037
  var HTMLDuetAlertElement: {
@@ -3088,18 +3122,6 @@ declare global {
3088
3122
  prototype: HTMLDuetEditableTableElement;
3089
3123
  new (): HTMLDuetEditableTableElement;
3090
3124
  };
3091
- interface HTMLDuetEditableTableButtonElement extends Components.DuetEditableTableButton, HTMLStencilElement {
3092
- }
3093
- var HTMLDuetEditableTableButtonElement: {
3094
- prototype: HTMLDuetEditableTableButtonElement;
3095
- new (): HTMLDuetEditableTableButtonElement;
3096
- };
3097
- interface HTMLDuetEditableTableItemElement extends Components.DuetEditableTableItem, HTMLStencilElement {
3098
- }
3099
- var HTMLDuetEditableTableItemElement: {
3100
- prototype: HTMLDuetEditableTableItemElement;
3101
- new (): HTMLDuetEditableTableItemElement;
3102
- };
3103
3125
  interface HTMLDuetEmptyStateElement extends Components.DuetEmptyState, HTMLStencilElement {
3104
3126
  }
3105
3127
  var HTMLDuetEmptyStateElement: {
@@ -3359,6 +3381,7 @@ declare global {
3359
3381
  new (): HTMLDuetVisuallyHiddenElement;
3360
3382
  };
3361
3383
  interface HTMLElementTagNameMap {
3384
+ "duet-action-button": HTMLDuetActionButtonElement;
3362
3385
  "duet-alert": HTMLDuetAlertElement;
3363
3386
  "duet-badge": HTMLDuetBadgeElement;
3364
3387
  "duet-breadcrumb": HTMLDuetBreadcrumbElement;
@@ -3374,8 +3397,6 @@ declare global {
3374
3397
  "duet-date-picker": HTMLDuetDatePickerElement;
3375
3398
  "duet-divider": HTMLDuetDividerElement;
3376
3399
  "duet-editable-table": HTMLDuetEditableTableElement;
3377
- "duet-editable-table-button": HTMLDuetEditableTableButtonElement;
3378
- "duet-editable-table-item": HTMLDuetEditableTableItemElement;
3379
3400
  "duet-empty-state": HTMLDuetEmptyStateElement;
3380
3401
  "duet-fieldset": HTMLDuetFieldsetElement;
3381
3402
  "duet-footer": HTMLDuetFooterElement;
@@ -3422,6 +3443,72 @@ declare global {
3422
3443
  }
3423
3444
  }
3424
3445
  declare namespace LocalJSX {
3446
+ interface DuetActionButton {
3447
+ /**
3448
+ * Name of id of action that was called being called
3449
+ */
3450
+ "actionId"?: string;
3451
+ /**
3452
+ * Name of id of action that was called being called
3453
+ */
3454
+ "actionMeta"?: Record<any, any> | string;
3455
+ /**
3456
+ * Name of action being called
3457
+ */
3458
+ "actionName"?: string;
3459
+ /**
3460
+ * Used to indicate which dom element with ID this element controls
3461
+ */
3462
+ "ariaControls"?: string;
3463
+ /**
3464
+ * Described By id
3465
+ */
3466
+ "ariaDescribedBy"?: string;
3467
+ /**
3468
+ * Aria description the button
3469
+ */
3470
+ "ariaDescription"?: string;
3471
+ /**
3472
+ * Default pagination labels
3473
+ */
3474
+ "ariaLabels"?: Record<string, string>;
3475
+ /**
3476
+ * Default pagination labels
3477
+ */
3478
+ "ariaLabelsDefaults"?: DuetLangObject;
3479
+ /**
3480
+ * Custom color to be used for a background, as a design token entered in camelCase or kebab-case. Using this option the icon will always be resized to $size-icon-medium on mobile viewports. Example: "color-primary".
3481
+ */
3482
+ "background"?: DuetColor;
3483
+ /**
3484
+ * Custom color to be used for the icon, as a design token entered in camelCase or kebab-case. Example: "color-primary". This property can also be set to "currentColor" which forces the icon to use the CSS text color of parent element instead. Useful when you want to control the color in stylesheet instead.
3485
+ */
3486
+ "color"?: DuetColor;
3487
+ /**
3488
+ * Disables the button
3489
+ */
3490
+ "disabled"?: boolean;
3491
+ /**
3492
+ * Color of the icon to display
3493
+ */
3494
+ "iconColor"?: string;
3495
+ /**
3496
+ * Name of the icon to display
3497
+ */
3498
+ "iconName"?: string;
3499
+ /**
3500
+ * Size of the icon
3501
+ */
3502
+ "iconSize"?: DuetActionButtonIconSize;
3503
+ /**
3504
+ * Emitted a page selection has been made
3505
+ */
3506
+ "onDuetActionEvent"?: (event: CustomEvent<DuetActionButtonEvent>) => void;
3507
+ /**
3508
+ * Theme of the pagination.
3509
+ */
3510
+ "theme"?: DuetTheme;
3511
+ }
3425
3512
  interface DuetAlert {
3426
3513
  /**
3427
3514
  * Adds accessible label for the dismissible alert close button.
@@ -3543,6 +3630,10 @@ declare namespace LocalJSX {
3543
3630
  * Indicates the id of a component owned by the button.
3544
3631
  */
3545
3632
  "accessibleOwns"?: string;
3633
+ /**
3634
+ * Use this property to add an aria-haspopup attribute to a button, if you are using it as a menu button.
3635
+ */
3636
+ "accessiblePopup"?: string;
3546
3637
  /**
3547
3638
  * Tells screen reader the element is pressed.
3548
3639
  */
@@ -4166,77 +4257,60 @@ declare namespace LocalJSX {
4166
4257
  */
4167
4258
  "accessibleRole"?: string;
4168
4259
  /**
4169
- * Array of internationalized defaults for the default action labels.
4170
- */
4171
- "actionLabelDefaults"?: DuetLangObject;
4172
- /**
4173
- * Array of actions that are mapped via the map variable to the various groups defined in group.
4260
+ * Define actions for all items in a table An alternative to inline HTML table. required for Sortable tables
4174
4261
  * @default undefined
4175
- * @example [{ variation: "default", icon: "action-edit-2", id: "edit", map: ["success"], label: { fi: " Label", en: " Label", sv: " Label", } }]
4176
- */
4177
- "actions"?: DuetEditableTableActions | string;
4178
- /**
4179
- * Key used to set vertical alignment of action buttons
4180
4262
  */
4181
- "alignment"?: string;
4182
- /**
4183
- * Array of group names that you want the editable table to display (can be used to hide or show groups depending on conditions).
4184
- * @default { id: "all", label: this.groupsLabelDefaults, actionLabel: this.actionLabelDefaults }.
4185
- * @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}].
4186
- */
4187
- "groups"?: DuetEditableTableGroupNames | string;
4263
+ "actions"?: DuetEditableTableActions;
4188
4264
  /**
4189
- * Array of internationalized defaults for the default groups labels.
4265
+ * Duet-table: By default the table is responsive - it will be flattened at narrow viewport widths. This prop controls the breakpoint at which the table should be rendered as a _regular_ table. Set to "none" to disable the responsive functionality. Set to "none-scrollable" to disable responsive functionality _and_ allow horizontal scrolling - this is useful for comparison tables where it's important to maintain column and row layout.
4190
4266
  */
4191
- "groupsLabelDefaults"?: DuetLangObject;
4267
+ "breakpoint"?: DuetTableBreakpoint;
4192
4268
  /**
4193
- * Shows or hides the table labels.
4269
+ * Define columns for a table An alternative to inline HTML table. required for Sortable tables
4270
+ * @default undefined
4194
4271
  */
4195
- "hideGroups"?: boolean;
4272
+ "columns"?: DuetEditableTableColumns;
4196
4273
  /**
4197
- * Map of items that contain list of things.
4274
+ * Optional id that get passed to the table and used to setup ::parts
4198
4275
  */
4199
- "items"?: DuetEditableTableItems;
4276
+ "groupId"?: string;
4200
4277
  /**
4201
- * Theme of the table.
4278
+ * Duet-table: margin of the component.
4202
4279
  */
4203
- "theme"?: DuetTheme;
4204
- }
4205
- interface DuetEditableTableButton {
4280
+ "margin"?: DuetMargin;
4206
4281
  /**
4207
- * Emitted when any action is clicked
4282
+ * Event emitted when table is sortable and a header item is clicked/enter is pressed
4208
4283
  */
4209
- "onDuetEditableItemAction"?: (event: CustomEvent<DuetEditableTableItemEvent>) => void;
4284
+ "onDuetMenuClick"?: (event: CustomEvent<DuetTableMenuEvent>) => void;
4210
4285
  /**
4211
- * Theme of the empty state component.
4286
+ * Event emitted when table is sortable and a header item is clicked/enter is pressed
4212
4287
  */
4213
- "theme"?: DuetTheme;
4214
- }
4215
- interface DuetEditableTableItem {
4288
+ "onDuetTableToggle"?: (event: CustomEvent<DuetTableToggleEvent>) => void;
4216
4289
  /**
4217
- * Actions that can be performed on the element
4290
+ * Define rows for a table An alternative to inline HTML table. required for Sortable tables
4291
+ * @default undefined
4218
4292
  */
4219
- "actions"?: DuetEditableTableActions;
4293
+ "rows"?: DuetEditableTableRows;
4220
4294
  /**
4221
- * Key used to set vertical alignment of action buttons
4295
+ * Controls whether the table is sortable by headers
4222
4296
  */
4223
- "alignment"?: string;
4297
+ "sortable"?: boolean;
4224
4298
  /**
4225
- * Object of data itemsused to render the entire row
4299
+ * Duet-table: Controls whether the table has a sticky header. Sticky headers are not compatible with breakpoint="none-scrollable".
4226
4300
  */
4227
- "data"?: DuetEditableTableItemData;
4301
+ "sticky"?: boolean;
4228
4302
  /**
4229
- * Key used to identify item, when running actions
4303
+ * Duet-table: Adjust the distance from top of the viewport (in pixels) when the table header becomes sticky.
4230
4304
  */
4231
- "keyName"?: string;
4305
+ "stickyDistance"?: DuetTableStickyDistance;
4232
4306
  /**
4233
- * Emitted when any action is clicked
4307
+ * Theme of the table.
4234
4308
  */
4235
- "onDuetEditableItemAction"?: (event: CustomEvent<DuetEditableTableItemEvent>) => void;
4309
+ "theme"?: DuetTheme;
4236
4310
  /**
4237
- * Theme of the empty state component.
4311
+ * Duet-table: Style variation of the table.
4238
4312
  */
4239
- "theme"?: DuetTheme;
4313
+ "variation"?: DuetTableVariant;
4240
4314
  }
4241
4315
  interface DuetEmptyState {
4242
4316
  /**
@@ -5294,17 +5368,17 @@ declare namespace LocalJSX {
5294
5368
  }
5295
5369
  interface DuetPagination {
5296
5370
  /**
5297
- * Used to indicate which dom element with ID this element controls
5371
+ * Default pagination labels
5298
5372
  */
5299
- "ariaControls"?: string;
5373
+ "accessibleLabels"?: Record<string, string>;
5300
5374
  /**
5301
5375
  * Default pagination labels
5302
5376
  */
5303
- "ariaLabels"?: Record<string, string>;
5377
+ "accessibleLabelsDefaults"?: DuetLangObject;
5304
5378
  /**
5305
- * Default pagination labels
5379
+ * Used to indicate which dom element with ID this element controls
5306
5380
  */
5307
- "ariaLabelsDefaults"?: DuetLangObject;
5381
+ "ariaControls"?: string;
5308
5382
  /**
5309
5383
  * The current page
5310
5384
  */
@@ -5329,6 +5403,10 @@ declare namespace LocalJSX {
5329
5403
  * The total size of the paginating data
5330
5404
  */
5331
5405
  "total"?: number;
5406
+ /**
5407
+ * Variation of the paginator (compact and default supported)
5408
+ */
5409
+ "variation"?: DuetPaginationVariation;
5332
5410
  /**
5333
5411
  * Amount of visible page numbers to show
5334
5412
  */
@@ -6266,7 +6344,7 @@ declare namespace LocalJSX {
6266
6344
  /**
6267
6345
  * Default actions added to the internally used duet-editable-table
6268
6346
  */
6269
- "actions"?: DuetEditableTableActions | string;
6347
+ "actions"?: DuetEditableTableActions;
6270
6348
  /**
6271
6349
  * Key used to set vertical alignment of action buttons
6272
6350
  */
@@ -6336,7 +6414,7 @@ declare namespace LocalJSX {
6336
6414
  * @required
6337
6415
  * @example [{ id: "success", label: {fi: "Onnistunut", en: "Success", sv: "Alt klart", }}]
6338
6416
  */
6339
- "groups"?: DuetEditableTableGroupNames | string;
6417
+ "groups"?: DuetUploadTableGroupName[];
6340
6418
  /**
6341
6419
  * If set the upload component will not display an upload button, you will have to create one yourself and call the exposed method startUpload
6342
6420
  */
@@ -6486,6 +6564,7 @@ declare namespace LocalJSX {
6486
6564
  interface DuetVisuallyHidden {
6487
6565
  }
6488
6566
  interface IntrinsicElements {
6567
+ "duet-action-button": DuetActionButton;
6489
6568
  "duet-alert": DuetAlert;
6490
6569
  "duet-badge": DuetBadge;
6491
6570
  "duet-breadcrumb": DuetBreadcrumb;
@@ -6501,8 +6580,6 @@ declare namespace LocalJSX {
6501
6580
  "duet-date-picker": DuetDatePicker;
6502
6581
  "duet-divider": DuetDivider;
6503
6582
  "duet-editable-table": DuetEditableTable;
6504
- "duet-editable-table-button": DuetEditableTableButton;
6505
- "duet-editable-table-item": DuetEditableTableItem;
6506
6583
  "duet-empty-state": DuetEmptyState;
6507
6584
  "duet-fieldset": DuetFieldset;
6508
6585
  "duet-footer": DuetFooter;
@@ -6552,6 +6629,7 @@ export { LocalJSX as JSX };
6552
6629
  declare module "@stencil/core" {
6553
6630
  export namespace JSX {
6554
6631
  interface IntrinsicElements {
6632
+ "duet-action-button": LocalJSX.DuetActionButton & JSXBase.HTMLAttributes<HTMLDuetActionButtonElement>;
6555
6633
  "duet-alert": LocalJSX.DuetAlert & JSXBase.HTMLAttributes<HTMLDuetAlertElement>;
6556
6634
  "duet-badge": LocalJSX.DuetBadge & JSXBase.HTMLAttributes<HTMLDuetBadgeElement>;
6557
6635
  "duet-breadcrumb": LocalJSX.DuetBreadcrumb & JSXBase.HTMLAttributes<HTMLDuetBreadcrumbElement>;
@@ -6567,8 +6645,6 @@ declare module "@stencil/core" {
6567
6645
  "duet-date-picker": LocalJSX.DuetDatePicker & JSXBase.HTMLAttributes<HTMLDuetDatePickerElement>;
6568
6646
  "duet-divider": LocalJSX.DuetDivider & JSXBase.HTMLAttributes<HTMLDuetDividerElement>;
6569
6647
  "duet-editable-table": LocalJSX.DuetEditableTable & JSXBase.HTMLAttributes<HTMLDuetEditableTableElement>;
6570
- "duet-editable-table-button": LocalJSX.DuetEditableTableButton & JSXBase.HTMLAttributes<HTMLDuetEditableTableButtonElement>;
6571
- "duet-editable-table-item": LocalJSX.DuetEditableTableItem & JSXBase.HTMLAttributes<HTMLDuetEditableTableItemElement>;
6572
6648
  "duet-empty-state": LocalJSX.DuetEmptyState & JSXBase.HTMLAttributes<HTMLDuetEmptyStateElement>;
6573
6649
  "duet-fieldset": LocalJSX.DuetFieldset & JSXBase.HTMLAttributes<HTMLDuetFieldsetElement>;
6574
6650
  "duet-footer": LocalJSX.DuetFooter & JSXBase.HTMLAttributes<HTMLDuetFooterElement>;
@@ -1 +1,3 @@
1
1
  export declare const debounce: (func: any, timeout?: number) => (...args: any[]) => void;
2
+ export declare function fieldSorter(fields: any): (a: any, b: any) => any;
3
+ export declare const memoize: (fn: any) => (value: any) => any;