@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
@@ -1,96 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- 'use strict';
5
-
6
- Object.defineProperty(exports, '__esModule', { value: true });
7
-
8
- const index = require('./index-58eb8f67.js');
9
- const languageUtils = require('./language-utils-aa282901.js');
10
- const themeableComponent = require('./themeable-component-0c1be552.js');
11
- const tokenUtils = require('./token-utils-05bd23b4.js');
12
- require('./string-utils-267e3dbb.js');
13
- require('./tokens.module-6b2df1c2.js');
14
-
15
- const duetEditableTableButtonCss = "*.sc-duet-editable-table-button,*.sc-duet-editable-table-button::after,*.sc-duet-editable-table-button::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-editable-table-button-h button.sc-duet-editable-table-button{display:flex;align-content:space-between;justify-content:center;min-width:32px;max-width:32px;height:100%;min-height:32px;max-height:32px;padding:0;margin:0;cursor:pointer !important;background-color:transparent;border:1px solid;border-radius:50%}.sc-duet-editable-table-button-h button.sc-duet-editable-table-button duet-icon.sc-duet-editable-table-button{align-self:center}";
16
-
17
- let DuetEditableTableButton = class {
18
- constructor(hostRef) {
19
- index.registerInstance(this, hostRef);
20
- this.duetEditableItemAction = index.createEvent(this, "duetEditableItemAction", 7);
21
- this.isHovering = false;
22
- /**
23
- * Theme of the empty state component.
24
- */
25
- this.theme = undefined;
26
- /**
27
- * action items passed from host component
28
- * @internal
29
- */
30
- this.actions = undefined;
31
- /**
32
- * uid that gets passed along when the action is emitted
33
- * @internal
34
- */
35
- this.uid = "";
36
- /**
37
- * group associated with action
38
- * @internal
39
- */
40
- this.group = "";
41
- /**
42
- * key of the item in the map
43
- * @internal
44
- */
45
- this.keyName = "";
46
- this.onMouseEnter = () => {
47
- this.isHovering = true;
48
- };
49
- this.onMouseLeave = () => {
50
- this.isHovering = false;
51
- };
52
- this.getColours = (byName = false) => {
53
- let colorHover = this.actions.color_hover;
54
- let colorBlur = this.actions.color;
55
- if (byName) {
56
- colorHover = tokenUtils.getColorByName(this.actions.color_hover, this.theme);
57
- colorBlur = tokenUtils.getColorByName(this.actions.color, this.theme);
58
- }
59
- return this.isHovering ? colorHover : colorBlur;
60
- };
61
- }
62
- /**
63
- /**
64
- * Component lifecycle events.
65
- */
66
- componentWillLoad() {
67
- themeableComponent.inheritGlobalTheme(this);
68
- }
69
- /**
70
- /**
71
- * private functions
72
- */
73
- emitActionEvent(ev) {
74
- this.duetEditableItemAction.emit({
75
- originalEvent: ev,
76
- uid: this.uid,
77
- group: this.group,
78
- action: this.actions.id,
79
- keyName: this.keyName,
80
- component: "duet-editable-table-item",
81
- });
82
- }
83
- /**
84
- * render() function
85
- * Always the last one in the class.
86
- */
87
- render() {
88
- return (index.h("button", { style: {
89
- "border-color": this.getColours(true),
90
- }, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, role: "menuitem", class: "duet-editable-table-actions-items-button", "aria-label": this.actions.label ? languageUtils.getLocaleString(this.actions.label) : undefined, onClick: ev => this.emitActionEvent(ev) }, index.h("duet-icon", { class: "duet-editable-table-actions-items-icon", size: "x-small", name: this.actions.icon, color: this.getColours(), margin: "none" })));
91
- }
92
- get el() { return index.getElement(this); }
93
- };
94
- DuetEditableTableButton.style = duetEditableTableButtonCss;
95
-
96
- exports.duet_editable_table_button = DuetEditableTableButton;
@@ -1,16 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- 'use strict';
5
-
6
- const debounce = (func, timeout = 50) => {
7
- let timer;
8
- return (...args) => {
9
- clearTimeout(timer);
10
- timer = setTimeout(() => {
11
- func.apply(undefined, args);
12
- }, timeout);
13
- };
14
- };
15
-
16
- exports.debounce = debounce;
@@ -1,32 +0,0 @@
1
- *,
2
- *::after,
3
- *::before {
4
- box-sizing: border-box;
5
- padding: 0;
6
- margin: 0;
7
- background: transparent;
8
- border: 0;
9
- -moz-appearance: none;
10
- -webkit-appearance: none;
11
- appearance: none;
12
- }
13
-
14
- :host button {
15
- display: flex;
16
- align-content: space-between;
17
- justify-content: center;
18
- min-width: 32px;
19
- max-width: 32px;
20
- height: 100%;
21
- min-height: 32px;
22
- max-height: 32px;
23
- padding: 0;
24
- margin: 0;
25
- cursor: pointer !important;
26
- background-color: transparent;
27
- border: 1px solid;
28
- border-radius: 50%;
29
- }
30
- :host button duet-icon {
31
- align-self: center;
32
- }
@@ -1,225 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import { Component, Element, Event, h, Prop, State } from "@stencil/core";
5
- import { getLocaleString } from "../../utils/language-utils";
6
- import { inheritGlobalTheme } from "../../utils/themeable-component";
7
- import { getColorByName } from "../../utils/token-utils";
8
- export class DuetEditableTableButton {
9
- constructor() {
10
- this.isHovering = false;
11
- /**
12
- * Theme of the empty state component.
13
- */
14
- this.theme = undefined;
15
- /**
16
- * action items passed from host component
17
- * @internal
18
- */
19
- this.actions = undefined;
20
- /**
21
- * uid that gets passed along when the action is emitted
22
- * @internal
23
- */
24
- this.uid = "";
25
- /**
26
- * group associated with action
27
- * @internal
28
- */
29
- this.group = "";
30
- /**
31
- * key of the item in the map
32
- * @internal
33
- */
34
- this.keyName = "";
35
- this.onMouseEnter = () => {
36
- this.isHovering = true;
37
- };
38
- this.onMouseLeave = () => {
39
- this.isHovering = false;
40
- };
41
- this.getColours = (byName = false) => {
42
- let colorHover = this.actions.color_hover;
43
- let colorBlur = this.actions.color;
44
- if (byName) {
45
- colorHover = getColorByName(this.actions.color_hover, this.theme);
46
- colorBlur = getColorByName(this.actions.color, this.theme);
47
- }
48
- return this.isHovering ? colorHover : colorBlur;
49
- };
50
- }
51
- /**
52
- /**
53
- * Component lifecycle events.
54
- */
55
- componentWillLoad() {
56
- inheritGlobalTheme(this);
57
- }
58
- /**
59
- /**
60
- * private functions
61
- */
62
- emitActionEvent(ev) {
63
- this.duetEditableItemAction.emit({
64
- originalEvent: ev,
65
- uid: this.uid,
66
- group: this.group,
67
- action: this.actions.id,
68
- keyName: this.keyName,
69
- component: "duet-editable-table-item",
70
- });
71
- }
72
- /**
73
- * render() function
74
- * Always the last one in the class.
75
- */
76
- render() {
77
- return (h("button", { style: {
78
- "border-color": this.getColours(true),
79
- }, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, role: "menuitem", class: "duet-editable-table-actions-items-button", "aria-label": this.actions.label ? getLocaleString(this.actions.label) : undefined, onClick: ev => this.emitActionEvent(ev) },
80
- h("duet-icon", { class: "duet-editable-table-actions-items-icon", size: "x-small", name: this.actions.icon, color: this.getColours(), margin: "none" })));
81
- }
82
- static get is() { return "duet-editable-table-button"; }
83
- static get encapsulation() { return "scoped"; }
84
- static get originalStyleUrls() { return {
85
- "$": ["duet-editable-table-button.scss"]
86
- }; }
87
- static get styleUrls() { return {
88
- "$": ["duet-editable-table-button.css"]
89
- }; }
90
- static get properties() { return {
91
- "theme": {
92
- "type": "string",
93
- "mutable": true,
94
- "complexType": {
95
- "original": "DuetTheme",
96
- "resolved": "\"\" | \"default\" | \"turva\"",
97
- "references": {
98
- "DuetTheme": {
99
- "location": "import",
100
- "path": "../../common-types"
101
- }
102
- }
103
- },
104
- "required": false,
105
- "optional": false,
106
- "docs": {
107
- "tags": [],
108
- "text": "Theme of the empty state component."
109
- },
110
- "attribute": "theme",
111
- "reflect": false,
112
- "defaultValue": "undefined"
113
- },
114
- "actions": {
115
- "type": "unknown",
116
- "mutable": false,
117
- "complexType": {
118
- "original": "DuetEditableTableActionButtonItems",
119
- "resolved": "{ icon: string; color: string; color_hover: string; id: string; map?: string[]; label?: DuetLangObject; }",
120
- "references": {
121
- "DuetEditableTableActionButtonItems": {
122
- "location": "local"
123
- }
124
- }
125
- },
126
- "required": false,
127
- "optional": false,
128
- "docs": {
129
- "tags": [{
130
- "name": "internal",
131
- "text": undefined
132
- }],
133
- "text": "action items passed from host component"
134
- },
135
- "defaultValue": "undefined"
136
- },
137
- "uid": {
138
- "type": "string",
139
- "mutable": false,
140
- "complexType": {
141
- "original": "string",
142
- "resolved": "string",
143
- "references": {}
144
- },
145
- "required": false,
146
- "optional": false,
147
- "docs": {
148
- "tags": [{
149
- "name": "internal",
150
- "text": undefined
151
- }],
152
- "text": "uid that gets passed along when the action is emitted"
153
- },
154
- "attribute": "uid",
155
- "reflect": false,
156
- "defaultValue": "\"\""
157
- },
158
- "group": {
159
- "type": "string",
160
- "mutable": false,
161
- "complexType": {
162
- "original": "string",
163
- "resolved": "string",
164
- "references": {}
165
- },
166
- "required": false,
167
- "optional": false,
168
- "docs": {
169
- "tags": [{
170
- "name": "internal",
171
- "text": undefined
172
- }],
173
- "text": "group associated with action"
174
- },
175
- "attribute": "group",
176
- "reflect": false,
177
- "defaultValue": "\"\""
178
- },
179
- "keyName": {
180
- "type": "string",
181
- "mutable": false,
182
- "complexType": {
183
- "original": "string",
184
- "resolved": "string",
185
- "references": {}
186
- },
187
- "required": false,
188
- "optional": false,
189
- "docs": {
190
- "tags": [{
191
- "name": "internal",
192
- "text": undefined
193
- }],
194
- "text": "key of the item in the map"
195
- },
196
- "attribute": "key-name",
197
- "reflect": false,
198
- "defaultValue": "\"\""
199
- }
200
- }; }
201
- static get states() { return {
202
- "isHovering": {}
203
- }; }
204
- static get events() { return [{
205
- "method": "duetEditableItemAction",
206
- "name": "duetEditableItemAction",
207
- "bubbles": true,
208
- "cancelable": true,
209
- "composed": true,
210
- "docs": {
211
- "tags": [],
212
- "text": "Emitted when any action is clicked"
213
- },
214
- "complexType": {
215
- "original": "DuetEditableTableItemEvent",
216
- "resolved": "{ originalEvent?: Event; uid: string | number | bigint; keyName: string | number | bigint; action: string; group: string; component: \"duet-editable-table-item\"; }",
217
- "references": {
218
- "DuetEditableTableItemEvent": {
219
- "location": "local"
220
- }
221
- }
222
- }
223
- }]; }
224
- static get elementRef() { return "el"; }
225
- }
@@ -1,36 +0,0 @@
1
- *,
2
- *::after,
3
- *::before {
4
- box-sizing: border-box;
5
- padding: 0;
6
- margin: 0;
7
- background: transparent;
8
- border: 0;
9
- -moz-appearance: none;
10
- -webkit-appearance: none;
11
- appearance: none;
12
- }
13
-
14
- :host {
15
- display: table-row;
16
- height: 32px;
17
- }
18
-
19
- .duet-editable-table-content, .duet-editable-table-actions {
20
- height: 32px;
21
- padding: 12px 0;
22
- vertical-align: middle;
23
- break-word: break-all;
24
- border-bottom: 1px solid #e1e3e6;
25
- }
26
- .duet-editable-table-actions-items {
27
- display: flex;
28
- justify-content: flex-end;
29
- }
30
- .duet-editable-table-actions-items duet-editable-table-button {
31
- padding-left: 8px;
32
- }
33
- .duet-editable-table .editable-item-small {
34
- font-size: 0.75rem;
35
- font-weight: 400;
36
- }
@@ -1,225 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import { Component, Element, Event, h, Host, Prop, State, Watch } from "@stencil/core";
5
- import { inheritGlobalTheme } from "../../utils/themeable-component";
6
- import { TableData } from "./duet-editable-table-tabledata";
7
- export class DuetEditableTableItem {
8
- constructor() {
9
- this.isHovering = false;
10
- /**
11
- * Theme of the empty state component.
12
- */
13
- this.theme = "";
14
- /**
15
- * Actions that can be performed on the element
16
- */
17
- this.actions = undefined;
18
- /**
19
- * GroupId used to pierce the shadowdom - gets concatenated with "content & actions" and used as part="groupIDcontent/actions" to pierce the content/Action item
20
- * @internal
21
- */
22
- this.groupId = "";
23
- /**
24
- * Key used to set vertical alignment of action buttons
25
- */
26
- this.alignment = "middle";
27
- /**
28
- * Key used to identify item, when running actions
29
- */
30
- this.keyName = "";
31
- /**
32
- * Object of data itemsused to render the entire row
33
- */
34
- this.data = undefined;
35
- }
36
- watchPropHandler(_newValue, _oldValue) {
37
- // console.log("The new value of activated is: ", _newValue)
38
- }
39
- /**
40
- /**
41
- * Component lifecycle events.
42
- */
43
- componentWillLoad() {
44
- inheritGlobalTheme(this);
45
- }
46
- /**
47
- /**
48
- * private functions
49
- */
50
- /**
51
- * render() function
52
- * Always the last one in the class.
53
- */
54
- render() {
55
- return (h(Host, { role: "row" },
56
- h(TableData, { data: this.data.item, alignment: this.alignment, groupId: this.groupId }),
57
- h("td", { class: "duet-editable-table-actions", style: { verticalAlign: this.alignment } },
58
- h("div", { class: "duet-editable-table-actions-items", part: `${this.groupId}actions` }, this.actions.map(result => {
59
- const { map = undefined } = result;
60
- // if map has been specified, only show the current action if groupID matches the map array
61
- if (map && !map.includes(this.groupId)) {
62
- return;
63
- }
64
- return (h("duet-editable-table-button", { keyName: this.keyName, group: this.data.group, uid: this.data.uid, actions: result, theme: this.theme }));
65
- })))));
66
- }
67
- static get is() { return "duet-editable-table-item"; }
68
- static get encapsulation() { return "shadow"; }
69
- static get originalStyleUrls() { return {
70
- "$": ["duet-editable-table-item.scss"]
71
- }; }
72
- static get styleUrls() { return {
73
- "$": ["duet-editable-table-item.css"]
74
- }; }
75
- static get properties() { return {
76
- "theme": {
77
- "type": "string",
78
- "mutable": true,
79
- "complexType": {
80
- "original": "DuetTheme",
81
- "resolved": "\"\" | \"default\" | \"turva\"",
82
- "references": {
83
- "DuetTheme": {
84
- "location": "import",
85
- "path": "../../common-types"
86
- }
87
- }
88
- },
89
- "required": false,
90
- "optional": false,
91
- "docs": {
92
- "tags": [],
93
- "text": "Theme of the empty state component."
94
- },
95
- "attribute": "theme",
96
- "reflect": false,
97
- "defaultValue": "\"\""
98
- },
99
- "actions": {
100
- "type": "unknown",
101
- "mutable": false,
102
- "complexType": {
103
- "original": "DuetEditableTableActions",
104
- "resolved": "{ icon: string; color: string; color_hover: string; id: string; map?: string[]; label?: DuetLangObject; }[]",
105
- "references": {
106
- "DuetEditableTableActions": {
107
- "location": "local"
108
- }
109
- }
110
- },
111
- "required": false,
112
- "optional": false,
113
- "docs": {
114
- "tags": [],
115
- "text": "Actions that can be performed on the element"
116
- },
117
- "defaultValue": "undefined"
118
- },
119
- "groupId": {
120
- "type": "string",
121
- "mutable": false,
122
- "complexType": {
123
- "original": "string",
124
- "resolved": "string",
125
- "references": {}
126
- },
127
- "required": false,
128
- "optional": false,
129
- "docs": {
130
- "tags": [{
131
- "name": "internal",
132
- "text": undefined
133
- }],
134
- "text": "GroupId used to pierce the shadowdom - gets concatenated with \"content & actions\" and used as part=\"groupIDcontent/actions\" to pierce the content/Action item"
135
- },
136
- "attribute": "group-id",
137
- "reflect": false,
138
- "defaultValue": "\"\""
139
- },
140
- "alignment": {
141
- "type": "string",
142
- "mutable": false,
143
- "complexType": {
144
- "original": "string",
145
- "resolved": "string",
146
- "references": {}
147
- },
148
- "required": false,
149
- "optional": false,
150
- "docs": {
151
- "tags": [],
152
- "text": "Key used to set vertical alignment of action buttons"
153
- },
154
- "attribute": "alignment",
155
- "reflect": false,
156
- "defaultValue": "\"middle\""
157
- },
158
- "keyName": {
159
- "type": "string",
160
- "mutable": false,
161
- "complexType": {
162
- "original": "string",
163
- "resolved": "string",
164
- "references": {}
165
- },
166
- "required": false,
167
- "optional": false,
168
- "docs": {
169
- "tags": [],
170
- "text": "Key used to identify item, when running actions"
171
- },
172
- "attribute": "key-name",
173
- "reflect": false,
174
- "defaultValue": "\"\""
175
- },
176
- "data": {
177
- "type": "unknown",
178
- "mutable": true,
179
- "complexType": {
180
- "original": "DuetEditableTableItemData",
181
- "resolved": "{ uid: string; item: string | HTMLElement | Record<string, string>; group: string; }",
182
- "references": {
183
- "DuetEditableTableItemData": {
184
- "location": "local"
185
- }
186
- }
187
- },
188
- "required": false,
189
- "optional": false,
190
- "docs": {
191
- "tags": [],
192
- "text": "Object of data itemsused to render the entire row"
193
- },
194
- "defaultValue": "undefined"
195
- }
196
- }; }
197
- static get states() { return {
198
- "isHovering": {}
199
- }; }
200
- static get events() { return [{
201
- "method": "duetEditableItemAction",
202
- "name": "duetEditableItemAction",
203
- "bubbles": true,
204
- "cancelable": true,
205
- "composed": true,
206
- "docs": {
207
- "tags": [],
208
- "text": "Emitted when any action is clicked"
209
- },
210
- "complexType": {
211
- "original": "DuetEditableTableItemEvent",
212
- "resolved": "{ originalEvent?: Event; uid: string; keyName: string; action: string; group: string; component: \"duet-editable-table-item\"; }",
213
- "references": {
214
- "DuetEditableTableItemEvent": {
215
- "location": "local"
216
- }
217
- }
218
- }
219
- }]; }
220
- static get elementRef() { return "el"; }
221
- static get watchers() { return [{
222
- "propName": "data",
223
- "methodName": "watchPropHandler"
224
- }]; }
225
- }