@duetds/components 6.8.9 → 6.9.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 (596) hide show
  1. package/hydrate/index.js +337 -196
  2. package/lib/cjs/duet-action-button.cjs.entry.js +19 -4
  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 +3 -3
  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-checkmark.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
  13. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-combobox.cjs.entry.js +12 -2
  15. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  16. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  18. package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
  19. package/lib/cjs/duet-editable-table_3.cjs.entry.js +112 -127
  20. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  21. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-grid_2.cjs.entry.js +14 -4
  24. package/lib/cjs/duet-header_2.cjs.entry.js +20 -6
  25. package/lib/cjs/duet-hero.cjs.entry.js +15 -3
  26. package/lib/cjs/duet-icon.cjs.entry.js +3 -3
  27. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  36. package/lib/cjs/duet-multiselect.cjs.entry.js +9 -3
  37. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-notification_2.cjs.entry.js +15 -1
  39. package/lib/cjs/duet-number-input.cjs.entry.js +47 -27
  40. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-pagination_2.cjs.entry.js +21 -6
  42. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  45. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  46. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  47. package/lib/cjs/duet-select.cjs.entry.js +3 -3
  48. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  49. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  50. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  51. package/lib/cjs/duet-slideout-panel.cjs.entry.js +4 -4
  52. package/lib/cjs/duet-slideout.cjs.entry.js +5 -5
  53. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  54. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +22 -7
  56. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-submenu-bar.cjs.entry.js +2 -2
  58. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  60. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  61. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-tooltip.cjs.entry.js +16 -1
  65. package/lib/cjs/duet-tray.cjs.entry.js +2 -2
  66. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  68. package/lib/cjs/duet.cjs.js +2 -2
  69. package/lib/cjs/{focus-utils-f5b81c1f.js → focus-utils-46e27452.js} +1 -1
  70. package/lib/cjs/{index-8a8ba131.js → index-8512a70b.js} +1 -1
  71. package/lib/cjs/loader.cjs.js +2 -2
  72. package/lib/cjs/{token-utils-2e10264d.js → token-utils-4bfb15d4.js} +4 -1
  73. package/lib/cjs/{tokens.module-69170ddd.js → tokens.module-d402cfac.js} +0 -1
  74. package/lib/collection/components/duet-action-button/duet-action-button.js +27 -8
  75. package/lib/collection/components/duet-alert/duet-alert.js +1 -1
  76. package/lib/collection/components/duet-button/duet-button.js +5 -5
  77. package/lib/collection/components/duet-caption/duet-caption.js +1 -1
  78. package/lib/collection/components/duet-card/duet-card.js +3 -3
  79. package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
  80. package/lib/collection/components/duet-choice/duet-choice.js +3 -3
  81. package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
  82. package/lib/collection/components/duet-combobox/duet-combobox.js +19 -6
  83. package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
  84. package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
  85. package/lib/collection/components/duet-divider/duet-divider.js +1 -1
  86. package/lib/collection/components/duet-editable-table/duet-editable-table.js +21 -9
  87. package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
  88. package/lib/collection/components/duet-footer/duet-footer.js +7 -7
  89. package/lib/collection/components/duet-grid/duet-grid.css +18 -0
  90. package/lib/collection/components/duet-grid/duet-grid.js +27 -3
  91. package/lib/collection/components/duet-grid-item/duet-grid-item.css +3 -2
  92. package/lib/collection/components/duet-grid-item/duet-grid-item.js +32 -0
  93. package/lib/collection/components/duet-header/duet-header.js +35 -19
  94. package/lib/collection/components/duet-heading/duet-heading.js +1 -1
  95. package/lib/collection/components/duet-hero/duet-hero.css +10 -0
  96. package/lib/collection/components/duet-hero/duet-hero.js +22 -8
  97. package/lib/collection/components/duet-icon/duet-icon.js +1 -1
  98. package/lib/collection/components/duet-input/duet-input.js +8 -8
  99. package/lib/collection/components/duet-label/duet-label.js +2 -2
  100. package/lib/collection/components/duet-layout/duet-layout.js +1 -1
  101. package/lib/collection/components/duet-list/duet-list.js +4 -4
  102. package/lib/collection/components/duet-logo/duet-logo.js +7 -7
  103. package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
  104. package/lib/collection/components/duet-modal/duet-modal.js +3 -3
  105. package/lib/collection/components/duet-multiselect/duet-multiselect.js +16 -9
  106. package/lib/collection/components/duet-notification/duet-notification.js +22 -5
  107. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
  108. package/lib/collection/components/duet-number-input/duet-number-input.js +50 -30
  109. package/lib/collection/components/duet-pagination/duet-pagination.js +29 -11
  110. package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
  111. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  112. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  113. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
  114. package/lib/collection/components/duet-select/duet-select.css +0 -4
  115. package/lib/collection/components/duet-select/duet-select.js +6 -6
  116. package/lib/collection/components/duet-slideout/duet-slideout.css +2 -0
  117. package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
  118. package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
  119. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  120. package/lib/collection/components/duet-step/duet-step.js +2 -2
  121. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  122. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +5 -21
  123. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +1 -0
  124. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +21 -5
  125. package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
  126. package/lib/collection/components/duet-table/duet-table.js +20 -4
  127. package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
  128. package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
  129. package/lib/collection/components/duet-tooltip/duet-tooltip.js +22 -5
  130. package/lib/collection/components/duet-upload/duet-upload.css +89 -13
  131. package/lib/collection/components/duet-upload/duet-upload.js +113 -90
  132. package/lib/collection/components/duet-upload/upload-item-header.js +8 -0
  133. package/lib/collection/components/duet-upload/upload-item.js +22 -6
  134. package/lib/collection/utils/token-utils.js +2 -0
  135. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  136. package/lib/dist-custom-elements/duet-alert.js +1 -1
  137. package/lib/dist-custom-elements/duet-badge.js +1 -1
  138. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  139. package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
  140. package/lib/dist-custom-elements/duet-button.js +1 -1
  141. package/lib/dist-custom-elements/duet-caption.js +1 -1
  142. package/lib/dist-custom-elements/duet-card.js +4 -4
  143. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  144. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  145. package/lib/dist-custom-elements/duet-choice-group.js +6 -6
  146. package/lib/dist-custom-elements/duet-choice.js +6 -6
  147. package/lib/dist-custom-elements/duet-collapsible.js +2 -2
  148. package/lib/dist-custom-elements/duet-combobox.js +16 -5
  149. package/lib/dist-custom-elements/duet-contact-card.js +9 -9
  150. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  151. package/lib/dist-custom-elements/duet-date-picker.js +11 -11
  152. package/lib/dist-custom-elements/duet-divider.js +1 -1
  153. package/lib/dist-custom-elements/duet-editable-table.js +246 -1
  154. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  155. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  156. package/lib/dist-custom-elements/duet-footer.js +5 -5
  157. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  158. package/lib/dist-custom-elements/duet-grid.js +1 -1
  159. package/lib/dist-custom-elements/duet-header.js +26 -12
  160. package/lib/dist-custom-elements/duet-heading.js +1 -1
  161. package/lib/dist-custom-elements/duet-hero.js +25 -13
  162. package/lib/dist-custom-elements/duet-icon.js +1 -1
  163. package/lib/dist-custom-elements/duet-input.js +1 -1
  164. package/lib/dist-custom-elements/duet-label.js +1 -1
  165. package/lib/dist-custom-elements/duet-layout.js +1 -1
  166. package/lib/dist-custom-elements/duet-link.js +1 -1
  167. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  168. package/lib/dist-custom-elements/duet-list.js +1 -1
  169. package/lib/dist-custom-elements/duet-logo.js +1 -1
  170. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  171. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  172. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  173. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  174. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  175. package/lib/dist-custom-elements/duet-modal.js +8 -8
  176. package/lib/dist-custom-elements/duet-multiselect.js +18 -11
  177. package/lib/dist-custom-elements/duet-nav.js +1 -1
  178. package/lib/dist-custom-elements/duet-notification-drawer.js +5 -5
  179. package/lib/dist-custom-elements/duet-notification.js +19 -5
  180. package/lib/dist-custom-elements/duet-number-input.js +56 -36
  181. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  182. package/lib/dist-custom-elements/duet-pagination.js +31 -15
  183. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  184. package/lib/dist-custom-elements/duet-progress.js +1 -1
  185. package/lib/dist-custom-elements/duet-radio-group.js +6 -6
  186. package/lib/dist-custom-elements/duet-radio.js +1 -1
  187. package/lib/dist-custom-elements/duet-range-slider.js +3 -3
  188. package/lib/dist-custom-elements/duet-range-stepper.js +5 -5
  189. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  190. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  191. package/lib/dist-custom-elements/duet-select.js +1 -1
  192. package/lib/dist-custom-elements/duet-slideout-lang.js +3 -3
  193. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  194. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  195. package/lib/dist-custom-elements/duet-slideout-panel.js +4 -4
  196. package/lib/dist-custom-elements/duet-slideout.js +5 -5
  197. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  198. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  199. package/lib/dist-custom-elements/duet-step.js +4 -4
  200. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  201. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  202. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +24 -8
  203. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  204. package/lib/dist-custom-elements/duet-submenu-bar.js +3 -3
  205. package/lib/dist-custom-elements/duet-tab-group.js +10 -10
  206. package/lib/dist-custom-elements/duet-tab.js +2 -2
  207. package/lib/dist-custom-elements/duet-table.js +1 -1
  208. package/lib/dist-custom-elements/duet-textarea.js +8 -8
  209. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  210. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  211. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  212. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  213. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  214. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  215. package/lib/dist-custom-elements/duet-tray.js +5 -5
  216. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  217. package/lib/dist-custom-elements/duet-upload.js +123 -159
  218. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  219. package/lib/dist-custom-elements/index.js +1 -1
  220. package/lib/dist-custom-elements/{p-35d1520f.js → p-00afad07.js} +1 -1
  221. package/lib/dist-custom-elements/{p-6c05e879.js → p-076452be.js} +1 -1
  222. package/lib/dist-custom-elements/{p-aa453ca9.js → p-117109e4.js} +2 -2
  223. package/lib/dist-custom-elements/{p-0f07edcd.js → p-11fbe397.js} +1 -1
  224. package/lib/dist-custom-elements/{p-8563290f.js → p-2a919c81.js} +21 -6
  225. package/lib/dist-custom-elements/{p-db993558.js → p-414fdb0c.js} +2 -2
  226. package/lib/dist-custom-elements/{p-48ee4427.js → p-43bbb094.js} +2 -2
  227. package/lib/dist-custom-elements/{p-33e00967.js → p-505389ac.js} +1 -1
  228. package/lib/dist-custom-elements/{p-cefc1697.js → p-51307fda.js} +2 -2
  229. package/lib/dist-custom-elements/{p-23e46e22.js → p-528cdd3e.js} +6 -6
  230. package/lib/dist-custom-elements/{p-2bfc9c26.js → p-57d6495c.js} +1 -1
  231. package/lib/dist-custom-elements/{p-4af6c136.js → p-5e60f757.js} +9 -9
  232. package/lib/dist-custom-elements/{p-9ed347f9.js → p-68024252.js} +4 -2
  233. package/lib/dist-custom-elements/{p-ce3afba1.js → p-69fa1743.js} +8 -8
  234. package/lib/dist-custom-elements/{p-babace4d.js → p-6f661b09.js} +2 -2
  235. package/lib/dist-custom-elements/{p-88d347ec.js → p-72635656.js} +9 -2
  236. package/lib/dist-custom-elements/{p-3dca144f.js → p-7392a942.js} +2 -2
  237. package/lib/dist-custom-elements/{p-297a6774.js → p-7c4c8cf0.js} +1 -1
  238. package/lib/dist-custom-elements/{p-fa582233.js → p-84d75d9d.js} +4 -4
  239. package/lib/dist-custom-elements/{p-03367341.js → p-8d12a863.js} +1 -1
  240. package/lib/dist-custom-elements/{p-8348ca39.js → p-9175529e.js} +3 -3
  241. package/lib/dist-custom-elements/{p-799100e3.js → p-94df5d2c.js} +1 -1
  242. package/lib/dist-custom-elements/{p-697167af.js → p-98b0f345.js} +1 -1
  243. package/lib/dist-custom-elements/p-9f027a93.js +183 -0
  244. package/lib/dist-custom-elements/{p-2e320d47.js → p-afc65a24.js} +2 -2
  245. package/lib/dist-custom-elements/{p-fbfbd3c9.js → p-b51fbd15.js} +2 -2
  246. package/lib/dist-custom-elements/{p-2697a4f6.js → p-b7b7c63b.js} +2 -2
  247. package/lib/dist-custom-elements/{p-e95c3a28.js → p-bbf48894.js} +1 -1
  248. package/lib/dist-custom-elements/{p-7cc3a9b6.js → p-bdc087cb.js} +18 -5
  249. package/lib/dist-custom-elements/{p-35c660bf.js → p-c272c5d5.js} +6 -6
  250. package/lib/dist-custom-elements/{p-0853da89.js → p-c57eccd3.js} +23 -7
  251. package/lib/dist-custom-elements/{p-2f2a5be2.js → p-c8659d75.js} +7 -7
  252. package/lib/dist-custom-elements/{p-d409a0fc.js → p-cefb33f9.js} +1 -1
  253. package/lib/dist-custom-elements/{p-eabaa24d.js → p-f1b800f0.js} +1 -1
  254. package/lib/duet/duet.esm.js +1 -1
  255. package/lib/duet/duet.js +1 -1
  256. package/lib/duet/{p-062d4c6b.entry.js → p-00c11b87.entry.js} +1 -1
  257. package/lib/duet/{p-abde6822.entry.js → p-018b0ffe.entry.js} +1 -1
  258. package/lib/duet/p-01ca2f64.system.entry.js +4 -0
  259. package/lib/duet/{p-bf91e001.entry.js → p-02fb736a.entry.js} +1 -1
  260. package/lib/duet/{p-ad9b1943.entry.js → p-04ccc444.entry.js} +1 -1
  261. package/lib/duet/{p-398584d4.entry.js → p-05f30291.entry.js} +1 -1
  262. package/lib/duet/p-08b03779.system.entry.js +4 -0
  263. package/lib/duet/{p-55e5bf94.entry.js → p-097c4d0c.entry.js} +1 -1
  264. package/lib/duet/p-0ab4083f.entry.js +4 -0
  265. package/lib/duet/{p-808cc181.system.entry.js → p-0ca53854.system.entry.js} +1 -1
  266. package/lib/duet/{p-dc0d47f6.system.entry.js → p-0e8dab5b.system.entry.js} +1 -1
  267. package/lib/duet/{p-236447b8.entry.js → p-1254c99a.entry.js} +1 -1
  268. package/lib/duet/{p-3db073f3.system.entry.js → p-1263323e.system.entry.js} +1 -1
  269. package/lib/duet/{p-1dfc8eb0.system.entry.js → p-133d2ee1.system.entry.js} +1 -1
  270. package/lib/duet/{p-d35c775f.system.entry.js → p-14e3383d.system.entry.js} +1 -1
  271. package/lib/duet/{p-8da23c48.entry.js → p-154c0d34.entry.js} +1 -1
  272. package/lib/duet/{p-45b4586f.system.entry.js → p-1666fed9.system.entry.js} +1 -1
  273. package/lib/duet/{p-fdf5e1b6.entry.js → p-1739bdd1.entry.js} +1 -1
  274. package/lib/duet/p-187c9ec6.system.entry.js +4 -0
  275. package/lib/duet/{p-477efcbc.entry.js → p-2078d7cd.entry.js} +1 -1
  276. package/lib/duet/{p-3cdfb467.entry.js → p-22caa775.entry.js} +1 -1
  277. package/lib/duet/{p-060f8f64.entry.js → p-2695e6c6.entry.js} +1 -1
  278. package/lib/duet/{p-8c5399f3.entry.js → p-27cc2332.entry.js} +1 -1
  279. package/lib/duet/{p-96853ebb.entry.js → p-2c28eb80.entry.js} +1 -1
  280. package/lib/duet/{p-365bc70c.entry.js → p-2c6e4614.entry.js} +1 -1
  281. package/lib/duet/{p-3023d41a.system.entry.js → p-2d6e3927.system.entry.js} +1 -1
  282. package/lib/duet/{p-936a1b6b.entry.js → p-2e1e2d3d.entry.js} +1 -1
  283. package/lib/duet/{p-0226f751.system.entry.js → p-2f936baf.system.entry.js} +1 -1
  284. package/lib/duet/{p-36cb9f64.system.entry.js → p-33bf6eed.system.entry.js} +1 -1
  285. package/lib/duet/{p-7c9bdbe1.system.entry.js → p-340bef19.system.entry.js} +1 -1
  286. package/lib/duet/{p-c9ac338f.system.entry.js → p-35907d51.system.entry.js} +1 -1
  287. package/lib/duet/p-361ce072.system.entry.js +4 -0
  288. package/lib/duet/{p-61b2e583.entry.js → p-376ec229.entry.js} +1 -1
  289. package/lib/duet/{p-6aeb4931.entry.js → p-3856f3a8.entry.js} +1 -1
  290. package/lib/duet/{p-7e4af76c.system.entry.js → p-3a21d43b.system.entry.js} +1 -1
  291. package/lib/duet/{p-6a011296.entry.js → p-3a28cf58.entry.js} +1 -1
  292. package/lib/duet/p-3d3e5e9e.entry.js +4 -0
  293. package/lib/duet/{p-2e8ae6ef.system.entry.js → p-417c1eca.system.entry.js} +2 -2
  294. package/lib/duet/{p-837acc55.entry.js → p-45a939b3.entry.js} +1 -1
  295. package/lib/duet/{p-337b32f1.system.entry.js → p-46ca69cf.system.entry.js} +1 -1
  296. package/lib/duet/{p-cfc2b098.js → p-4879ffe9.js} +1 -1
  297. package/lib/duet/p-4b7f3ac1.system.js +4 -0
  298. package/lib/duet/{p-8e831193.system.entry.js → p-4bdd34bc.system.entry.js} +1 -1
  299. package/lib/duet/{p-d1ad24a0.system.entry.js → p-4c286dee.system.entry.js} +1 -1
  300. package/lib/duet/{p-c6083026.entry.js → p-50b51053.entry.js} +1 -1
  301. package/lib/duet/p-51160aa4.entry.js +4 -0
  302. package/lib/duet/{p-73627cbb.system.entry.js → p-539034b3.system.entry.js} +1 -1
  303. package/lib/duet/{p-77fbdca2.system.entry.js → p-54a44e1e.system.entry.js} +1 -1
  304. package/lib/duet/{p-d6cd2bb9.system.entry.js → p-56b4f6e5.system.entry.js} +1 -1
  305. package/lib/duet/{p-fd74020b.entry.js → p-57f981bd.entry.js} +1 -1
  306. package/lib/duet/{p-4d40f304.entry.js → p-58833aca.entry.js} +1 -1
  307. package/lib/duet/{p-0c89b6f9.system.entry.js → p-5abf961b.system.entry.js} +1 -1
  308. package/lib/duet/{p-e7ecad67.system.entry.js → p-5c2dd50b.system.entry.js} +2 -2
  309. package/lib/duet/p-5c83e833.entry.js +4 -0
  310. package/lib/duet/p-614194b1.entry.js +4 -0
  311. package/lib/duet/p-618615d1.system.entry.js +4 -0
  312. package/lib/duet/{p-ade32ce7.entry.js → p-61e84177.entry.js} +1 -1
  313. package/lib/duet/p-621e8af8.js +4 -0
  314. package/lib/duet/{p-0d95bf16.system.entry.js → p-64297b4d.system.entry.js} +1 -1
  315. package/lib/duet/{p-5822c65a.system.entry.js → p-64b14d85.system.entry.js} +1 -1
  316. package/lib/duet/p-6a1f0973.system.entry.js +4 -0
  317. package/lib/duet/{p-8169f888.entry.js → p-6a8341c1.entry.js} +1 -1
  318. package/lib/duet/p-71779b62.entry.js +4 -0
  319. package/lib/duet/{p-b97b1676.system.entry.js → p-71e63186.system.entry.js} +1 -1
  320. package/lib/duet/p-736eb6f6.system.entry.js +4 -0
  321. package/lib/duet/p-75a307e4.entry.js +4 -0
  322. package/lib/duet/{p-f98b9ae8.system.entry.js → p-76bac602.system.entry.js} +1 -1
  323. package/lib/duet/{p-313fe3f5.entry.js → p-7743d05c.entry.js} +1 -1
  324. package/lib/duet/{p-44d753ee.entry.js → p-78973e79.entry.js} +1 -1
  325. package/lib/duet/p-7c4baf1c.js +4 -0
  326. package/lib/duet/{p-00676a36.system.entry.js → p-7cbc8aa1.system.entry.js} +1 -1
  327. package/lib/duet/{p-2abe8f54.entry.js → p-7dd4e3f6.entry.js} +1 -1
  328. package/lib/duet/p-7e9e10ab.entry.js +4 -0
  329. package/lib/duet/{p-2c39a50d.system.entry.js → p-80973cda.system.entry.js} +1 -1
  330. package/lib/duet/{p-2ad517e0.system.entry.js → p-825c4e47.system.entry.js} +1 -1
  331. package/lib/duet/{p-6ed854c9.system.entry.js → p-84881c84.system.entry.js} +1 -1
  332. package/lib/duet/p-86201340.system.entry.js +4 -0
  333. package/lib/duet/{p-59673927.system.entry.js → p-8a517f70.system.entry.js} +1 -1
  334. package/lib/duet/{p-ebbbcd73.entry.js → p-8b7b4c46.entry.js} +1 -1
  335. package/lib/duet/{p-c54774ab.entry.js → p-90fece55.entry.js} +1 -1
  336. package/lib/duet/{p-f2893a52.entry.js → p-9389ce47.entry.js} +1 -1
  337. package/lib/duet/{p-200c17f6.system.entry.js → p-94f2509c.system.entry.js} +1 -1
  338. package/lib/duet/p-960503a3.entry.js +4 -0
  339. package/lib/duet/p-9616579e.entry.js +4 -0
  340. package/lib/duet/{p-8cf75c3e.entry.js → p-981b43c2.entry.js} +1 -1
  341. package/lib/duet/{p-0782a91f.system.entry.js → p-99ccb2c2.system.entry.js} +1 -1
  342. package/lib/duet/p-9cd3ea60.system.entry.js +4 -0
  343. package/lib/duet/p-9d36613e.system.entry.js +4 -0
  344. package/lib/duet/{p-b708a4c0.system.entry.js → p-9fc991c2.system.entry.js} +1 -1
  345. package/lib/duet/{p-cfbf4269.system.entry.js → p-a0bcc46c.system.entry.js} +1 -1
  346. package/lib/duet/p-a113525c.entry.js +4 -0
  347. package/lib/duet/{p-5782d12a.system.js → p-a190f8b9.system.js} +1 -1
  348. package/lib/duet/{p-c42fad8c.entry.js → p-a29118e6.entry.js} +1 -1
  349. package/lib/duet/{p-7a096435.entry.js → p-a3f23363.entry.js} +1 -1
  350. package/lib/duet/{p-43e589c8.entry.js → p-a4a9705f.entry.js} +1 -1
  351. package/lib/duet/{p-7e3541f6.system.entry.js → p-a4e42811.system.entry.js} +1 -1
  352. package/lib/duet/p-a6751ba6.entry.js +4 -0
  353. package/lib/duet/{p-ea109080.entry.js → p-a7d9728a.entry.js} +1 -1
  354. package/lib/duet/{p-749fc136.entry.js → p-abbcf5dc.entry.js} +1 -1
  355. package/lib/duet/{p-7675eb6f.system.entry.js → p-aee38b4a.system.entry.js} +1 -1
  356. package/lib/duet/{p-42ff082a.system.entry.js → p-b1abb582.system.entry.js} +1 -1
  357. package/lib/duet/{p-71917207.system.entry.js → p-b2be54b5.system.entry.js} +1 -1
  358. package/lib/duet/{p-63dc5d85.system.entry.js → p-b308ce5d.system.entry.js} +1 -1
  359. package/lib/duet/{p-881ed26f.entry.js → p-b3f12c59.entry.js} +1 -1
  360. package/lib/duet/{p-f40d72fb.entry.js → p-b656b461.entry.js} +1 -1
  361. package/lib/duet/{p-a335e0bc.entry.js → p-bb536ec4.entry.js} +1 -1
  362. package/lib/duet/{p-46fb20ed.entry.js → p-bc0ce7e7.entry.js} +1 -1
  363. package/lib/duet/{p-9bc8d785.system.entry.js → p-bf37cb60.system.entry.js} +1 -1
  364. package/lib/duet/{p-f59c99ac.system.entry.js → p-c141d219.system.entry.js} +1 -1
  365. package/lib/duet/p-c16de43f.system.entry.js +4 -0
  366. package/lib/duet/{p-2c44d7d1.system.entry.js → p-c19d32af.system.entry.js} +1 -1
  367. package/lib/duet/{p-ac5df61e.system.entry.js → p-c213c2f2.system.entry.js} +1 -1
  368. package/lib/duet/{p-df4c44a0.entry.js → p-c3c98ddf.entry.js} +1 -1
  369. package/lib/duet/{p-5c28fd80.system.entry.js → p-c70da05a.system.entry.js} +1 -1
  370. package/lib/duet/{p-c5191cdc.entry.js → p-cb5771c5.entry.js} +1 -1
  371. package/lib/duet/{p-63dfae1b.entry.js → p-cd410e2a.entry.js} +1 -1
  372. package/lib/duet/{p-2011c8e6.system.entry.js → p-cfebc130.system.entry.js} +1 -1
  373. package/lib/duet/{p-f591ed1f.entry.js → p-d22e694c.entry.js} +1 -1
  374. package/lib/duet/{p-a9448361.system.entry.js → p-d2d14d3b.system.entry.js} +1 -1
  375. package/lib/duet/p-d51ed3e2.system.entry.js +4 -0
  376. package/lib/duet/{p-ca597046.system.js → p-d8422099.system.js} +1 -1
  377. package/lib/duet/{p-53c13b55.entry.js → p-d924703a.entry.js} +1 -1
  378. package/lib/duet/{p-4ef2841d.entry.js → p-db9f9e24.entry.js} +1 -1
  379. package/lib/duet/{p-8941bf37.system.entry.js → p-dc1f60cd.system.entry.js} +1 -1
  380. package/lib/duet/p-dc566220.entry.js +4 -0
  381. package/lib/duet/{p-230830eb.system.entry.js → p-df1531b7.system.entry.js} +1 -1
  382. package/lib/duet/{p-cd98e431.system.entry.js → p-e13d0460.system.entry.js} +1 -1
  383. package/lib/duet/p-e1919861.js +4 -0
  384. package/lib/duet/{p-8bc10d1a.entry.js → p-e4626c0e.entry.js} +1 -1
  385. package/lib/duet/{p-f9141695.system.entry.js → p-e920e34f.system.entry.js} +1 -1
  386. package/lib/duet/{p-8b8eec00.system.entry.js → p-e9fb2c3b.system.entry.js} +1 -1
  387. package/lib/duet/{p-9e704252.entry.js → p-eb4393ed.entry.js} +1 -1
  388. package/lib/duet/p-eb6c4a2a.system.js +4 -0
  389. package/lib/duet/{p-556fa590.entry.js → p-ed222f86.entry.js} +1 -1
  390. package/lib/duet/p-f25db9b8.entry.js +4 -0
  391. package/lib/duet/{p-c520d4ea.system.entry.js → p-f28d27a4.system.entry.js} +1 -1
  392. package/lib/duet/p-f67ee736.system.js +4 -0
  393. package/lib/duet/{p-b32d877a.system.entry.js → p-fa0896f4.system.entry.js} +1 -1
  394. package/lib/duet/{p-62587a99.entry.js → p-faeed6cf.entry.js} +1 -1
  395. package/lib/duet/{p-406c6277.system.entry.js → p-fb352dcf.system.entry.js} +1 -1
  396. package/lib/duet/{p-a6df6c15.entry.js → p-fec9ec39.entry.js} +1 -1
  397. package/lib/esm/duet-action-button.entry.js +20 -5
  398. package/lib/esm/duet-alert.entry.js +1 -1
  399. package/lib/esm/duet-badge.entry.js +1 -1
  400. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  401. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  402. package/lib/esm/duet-button_2.entry.js +3 -3
  403. package/lib/esm/duet-caption_4.entry.js +3 -3
  404. package/lib/esm/duet-card.entry.js +3 -3
  405. package/lib/esm/duet-checkbox.entry.js +1 -1
  406. package/lib/esm/duet-checkmark.entry.js +1 -1
  407. package/lib/esm/duet-choice_2.entry.js +2 -2
  408. package/lib/esm/duet-collapsible.entry.js +1 -1
  409. package/lib/esm/duet-combobox.entry.js +13 -3
  410. package/lib/esm/duet-contact-card.entry.js +1 -1
  411. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  412. package/lib/esm/duet-date-picker.entry.js +2 -2
  413. package/lib/esm/duet-divider_2.entry.js +3 -3
  414. package/lib/esm/duet-editable-table_3.entry.js +113 -128
  415. package/lib/esm/duet-empty-state.entry.js +1 -1
  416. package/lib/esm/duet-fieldset.entry.js +1 -1
  417. package/lib/esm/duet-footer.entry.js +1 -1
  418. package/lib/esm/duet-grid_2.entry.js +14 -4
  419. package/lib/esm/duet-header_2.entry.js +20 -6
  420. package/lib/esm/duet-hero.entry.js +16 -4
  421. package/lib/esm/duet-icon.entry.js +3 -3
  422. package/lib/esm/duet-input_2.entry.js +1 -1
  423. package/lib/esm/duet-layout.entry.js +1 -1
  424. package/lib/esm/duet-list_2.entry.js +1 -1
  425. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  426. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  427. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  428. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  429. package/lib/esm/duet-menu-bar.entry.js +1 -1
  430. package/lib/esm/duet-modal.entry.js +2 -2
  431. package/lib/esm/duet-multiselect.entry.js +10 -4
  432. package/lib/esm/duet-nav.entry.js +1 -1
  433. package/lib/esm/duet-notification_2.entry.js +16 -2
  434. package/lib/esm/duet-number-input.entry.js +47 -27
  435. package/lib/esm/duet-page-heading.entry.js +1 -1
  436. package/lib/esm/duet-pagination_2.entry.js +22 -7
  437. package/lib/esm/duet-progress.entry.js +1 -1
  438. package/lib/esm/duet-radio_2.entry.js +1 -1
  439. package/lib/esm/duet-range-slider.entry.js +2 -2
  440. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  441. package/lib/esm/duet-section-layout.entry.js +1 -1
  442. package/lib/esm/duet-select.entry.js +3 -3
  443. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  444. package/lib/esm/duet-slideout-link.entry.js +1 -1
  445. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  446. package/lib/esm/duet-slideout-panel.entry.js +4 -4
  447. package/lib/esm/duet-slideout.entry.js +5 -5
  448. package/lib/esm/duet-step_2.entry.js +1 -1
  449. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  450. package/lib/esm/duet-submenu-bar-dropdown.entry.js +22 -7
  451. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  452. package/lib/esm/duet-submenu-bar.entry.js +2 -2
  453. package/lib/esm/duet-textarea.entry.js +1 -1
  454. package/lib/esm/duet-toggle.entry.js +1 -1
  455. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  456. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  457. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  458. package/lib/esm/duet-toolbar.entry.js +1 -1
  459. package/lib/esm/duet-tooltip.entry.js +17 -2
  460. package/lib/esm/duet-tray.entry.js +2 -2
  461. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  462. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  463. package/lib/esm/duet.js +3 -3
  464. package/lib/esm/{focus-utils-f1ddeb69.js → focus-utils-3483f616.js} +1 -1
  465. package/lib/esm/{index-57a87c63.js → index-fff18e02.js} +1 -1
  466. package/lib/esm/loader.js +3 -3
  467. package/lib/esm/{token-utils-b531747a.js → token-utils-6e0e2653.js} +4 -2
  468. package/lib/esm/{tokens.module-d3321092.js → tokens.module-5601adc9.js} +1 -1
  469. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  470. package/lib/esm-es5/duet-alert.entry.js +1 -1
  471. package/lib/esm-es5/duet-badge.entry.js +1 -1
  472. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  473. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  474. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  475. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  476. package/lib/esm-es5/duet-card.entry.js +1 -1
  477. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  478. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  479. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  480. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  481. package/lib/esm-es5/duet-combobox.entry.js +2 -2
  482. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  483. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  484. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  485. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  486. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  487. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  488. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  489. package/lib/esm-es5/duet-footer.entry.js +1 -1
  490. package/lib/esm-es5/duet-grid_2.entry.js +2 -2
  491. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  492. package/lib/esm-es5/duet-hero.entry.js +2 -2
  493. package/lib/esm-es5/duet-icon.entry.js +1 -1
  494. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  495. package/lib/esm-es5/duet-layout.entry.js +1 -1
  496. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  497. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  498. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  499. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  500. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  501. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  502. package/lib/esm-es5/duet-modal.entry.js +1 -1
  503. package/lib/esm-es5/duet-multiselect.entry.js +2 -2
  504. package/lib/esm-es5/duet-nav.entry.js +1 -1
  505. package/lib/esm-es5/duet-notification_2.entry.js +2 -2
  506. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  507. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  508. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  509. package/lib/esm-es5/duet-progress.entry.js +1 -1
  510. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  511. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  512. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  513. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  514. package/lib/esm-es5/duet-select.entry.js +1 -1
  515. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  516. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  517. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  518. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  519. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  520. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  521. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  522. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  523. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  524. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  525. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  526. package/lib/esm-es5/duet-toggle.entry.js +2 -2
  527. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  528. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  529. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  530. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  531. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  532. package/lib/esm-es5/duet-tray.entry.js +1 -1
  533. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  534. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  535. package/lib/esm-es5/duet.js +1 -1
  536. package/lib/esm-es5/focus-utils-3483f616.js +4 -0
  537. package/lib/esm-es5/{index-57a87c63.js → index-fff18e02.js} +1 -1
  538. package/lib/esm-es5/loader.js +1 -1
  539. package/lib/esm-es5/{token-utils-b531747a.js → token-utils-6e0e2653.js} +1 -1
  540. package/lib/esm-es5/{tokens.module-d3321092.js → tokens.module-5601adc9.js} +1 -1
  541. package/lib/types/common-types.d.ts +3 -0
  542. package/lib/types/components/duet-action-button/duet-action-button.d.ts +8 -1
  543. package/lib/types/components/duet-combobox/duet-combobox.d.ts +3 -1
  544. package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +4 -1
  545. package/lib/types/components/duet-grid/duet-grid.d.ts +5 -0
  546. package/lib/types/components/duet-grid-item/duet-grid-item.d.ts +7 -1
  547. package/lib/types/components/duet-header/duet-header.d.ts +1 -0
  548. package/lib/types/components/duet-hero/duet-hero.d.ts +3 -0
  549. package/lib/types/components/duet-multiselect/duet-multiselect.d.ts +4 -1
  550. package/lib/types/components/duet-notification/duet-notification.d.ts +3 -0
  551. package/lib/types/components/duet-number-input/duet-number-input.d.ts +1 -0
  552. package/lib/types/components/duet-pagination/duet-pagination.d.ts +5 -1
  553. package/lib/types/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.d.ts +2 -1
  554. package/lib/types/components/duet-table/duet-table.d.ts +6 -1
  555. package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +3 -0
  556. package/lib/types/components/duet-upload/duet-upload.d.ts +21 -4
  557. package/lib/types/components/duet-upload/upload-item-header.d.ts +8 -0
  558. package/lib/types/components/duet-upload/upload-item.d.ts +10 -1
  559. package/lib/types/components.d.ts +35 -0
  560. package/lib/types/utils/token-utils.d.ts +2 -0
  561. package/package.json +5 -5
  562. package/lib/dist-custom-elements/p-00635432.js +0 -243
  563. package/lib/dist-custom-elements/p-4b9ef5dc.js +0 -178
  564. package/lib/duet/p-01006278.js +0 -4
  565. package/lib/duet/p-17063917.system.js +0 -4
  566. package/lib/duet/p-255ede66.entry.js +0 -4
  567. package/lib/duet/p-29851757.system.entry.js +0 -4
  568. package/lib/duet/p-2fc1306e.entry.js +0 -4
  569. package/lib/duet/p-352ef7d4.entry.js +0 -4
  570. package/lib/duet/p-3693927d.system.entry.js +0 -4
  571. package/lib/duet/p-429ae180.system.entry.js +0 -4
  572. package/lib/duet/p-43c99bf1.entry.js +0 -4
  573. package/lib/duet/p-508d3dcb.system.entry.js +0 -4
  574. package/lib/duet/p-54dca5e8.system.entry.js +0 -4
  575. package/lib/duet/p-5d46f619.system.js +0 -4
  576. package/lib/duet/p-633dced0.entry.js +0 -4
  577. package/lib/duet/p-65b8dc2a.entry.js +0 -4
  578. package/lib/duet/p-69671377.system.js +0 -4
  579. package/lib/duet/p-728bfa77.entry.js +0 -4
  580. package/lib/duet/p-75effec6.system.entry.js +0 -4
  581. package/lib/duet/p-79a9746e.js +0 -4
  582. package/lib/duet/p-7cf7fde9.entry.js +0 -4
  583. package/lib/duet/p-86270afd.entry.js +0 -4
  584. package/lib/duet/p-9052b6f5.js +0 -4
  585. package/lib/duet/p-96ee76aa.entry.js +0 -4
  586. package/lib/duet/p-99967a86.entry.js +0 -4
  587. package/lib/duet/p-9d7a6b9d.system.entry.js +0 -4
  588. package/lib/duet/p-ac8174e5.system.entry.js +0 -4
  589. package/lib/duet/p-ac90e4ba.entry.js +0 -4
  590. package/lib/duet/p-db511eee.system.entry.js +0 -4
  591. package/lib/duet/p-e827c36c.system.entry.js +0 -4
  592. package/lib/duet/p-e9dae4ed.system.entry.js +0 -4
  593. package/lib/duet/p-ec6683f4.system.entry.js +0 -4
  594. package/lib/duet/p-f5103ded.entry.js +0 -4
  595. package/lib/duet/p-fe31c401.entry.js +0 -4
  596. package/lib/esm-es5/focus-utils-f1ddeb69.js +0 -4
@@ -54,7 +54,7 @@ export type DuetUploadTableGroupName = {
54
54
  * @slot header - named slot - to place content after description / caption (if caption is on top)
55
55
  * @slot fileheader - named slot - to place content above "filelist" (only displayed when "filelist" contains items)
56
56
  * @slot filefooter - named slot - to place content below "filelist" (only displayed when "filelist" contains items)
57
- * @slot footer - named slot - to place content below filefooter
57
+ * @slot uploadfooter - named slot - to place content below filefooter
58
58
  * @slot afterfooter - named slot - to place content below "footer" / caption (if caption is on bottom)
59
59
  * @part ${this.identifier}-empty-state : duet-upload-empty-state - named part - can be used to style the empty notification area or hide it completely
60
60
  * @part ${this.identifier}-editable-table : duet-upload-editable-table - named part - can be used to style the editable-table
@@ -316,6 +316,23 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
316
316
  * If true the input caption will be placed below file list and footer
317
317
  */
318
318
  captionOnBottom: boolean;
319
+ /**
320
+ * Use show-uploaded-items-header to show single, generic, header for uploaded items
321
+ */
322
+ showUploadedItemsHeader: boolean;
323
+ /**
324
+ * Property to change single uploaded items header label
325
+ * @default {
326
+ * fi: "Ladattu tiedosto.",
327
+ * sv: "Nedladdad fil.",
328
+ * en: "Uploaded file.",
329
+ * }
330
+ */
331
+ uploadedItemsHeaderLabel: DuetLangObject;
332
+ /**
333
+ * Use hide-header to hide upload component header and caption (if caption is not on bottom)
334
+ */
335
+ hideHeader: boolean;
319
336
  /**
320
337
  * Emitted when the value has changed.
321
338
  */
@@ -380,6 +397,7 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
380
397
  */
381
398
  groups: DuetUploadTableGroupName[];
382
399
  private kick;
400
+ private categoryLabel;
383
401
  watchValidHandler(newValue: boolean, oldValue: boolean): void;
384
402
  /**
385
403
  * Component lifecycle events.
@@ -427,7 +445,7 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
427
445
  private listenForActionEvents;
428
446
  private verifyValidity;
429
447
  private getGroupFromItemData;
430
- private getItemHTMLFromItemData;
448
+ private mapFilesToUploadItems;
431
449
  private genHashName;
432
450
  private updateValueInMap;
433
451
  private updateProgress;
@@ -468,7 +486,6 @@ export declare class DuetUpload implements ThemeableComponent, FormComponent {
468
486
  * @description This functions return sorted map items byg condition which are:
469
487
  */
470
488
  private filterMap;
471
- private getColumns;
472
489
  private getActions;
473
- private renderEditableTableGroups;
490
+ private renderUploadedItems;
474
491
  }
@@ -0,0 +1,8 @@
1
+ import { FunctionalComponent } from "../../stencil-public-runtime";
2
+ import { DuetLangObject } from "../../utils/language-utils";
3
+ interface UploadItemHeaderProps {
4
+ label: DuetLangObject;
5
+ categoryLabel?: DuetLangObject;
6
+ }
7
+ export declare const UploadItemHeader: FunctionalComponent<UploadItemHeaderProps>;
8
+ export {};
@@ -1,10 +1,19 @@
1
1
  import { FunctionalComponent } from "../../stencil-public-runtime";
2
+ import { DuetTheme } from "../../common-types";
3
+ import { DuetLangObject } from "../../utils/language-utils";
2
4
  import { DuetFileListItem } from "./duet-upload";
3
- type ItemType = "pending" | "inprogress" | "error" | "success";
5
+ import { DuetUploadErrorCode } from "./errorcodes.utils";
6
+ type ItemType = "pending" | "inprogress" | "failure" | "success";
4
7
  interface UploadItemProps {
5
8
  data: DuetFileListItem;
6
9
  type: ItemType;
7
10
  showLinks: boolean;
11
+ actions: any;
12
+ theme: DuetTheme;
13
+ label?: DuetLangObject;
14
+ categoryLabel?: DuetLangObject;
15
+ errorCodes?: DuetUploadErrorCode[];
16
+ showCategory?: boolean;
8
17
  }
9
18
  export declare const UploadItem: FunctionalComponent<UploadItemProps>;
10
19
  export {};
@@ -1262,9 +1262,14 @@ export namespace Components {
1262
1262
  * Enable or disable the automatic responsive behaviour of the grid component. Setting this option to "true" makes sure that contents are stacked vertically on mobile (575px and under).
1263
1263
  */
1264
1264
  "responsive": boolean;
1265
+ /**
1266
+ * Reverse the order of the grid items when horizontal. Usefull when we want the primary item to be on bottom right on desktop, but on top on mobile and the first for screen readers.
1267
+ */
1268
+ "rowReverse": boolean;
1265
1269
  }
1266
1270
  interface DuetGridItem {
1267
1271
  "breakpoint": DuetGridBreakpoint;
1272
+ "direction": DuetDirection;
1268
1273
  /**
1269
1274
  * Make the grid item fill the remaining available grid space.
1270
1275
  */
@@ -3883,6 +3888,10 @@ export namespace Components {
3883
3888
  * Visually hides the groups labels in the editable table list used to display the list of files
3884
3889
  */
3885
3890
  "hideGroups": boolean;
3891
+ /**
3892
+ * Use hide-header to hide upload component header and caption (if caption is not on bottom)
3893
+ */
3894
+ "hideHeader": boolean;
3886
3895
  /**
3887
3896
  * Adds a unique identifier for the upload component.
3888
3897
  */
@@ -3945,6 +3954,10 @@ export namespace Components {
3945
3954
  * If enabled the editable-table will display links on successfully uploaded items, this requires the server can respond with link URIs in the correct format and that the files are accessible to the user
3946
3955
  */
3947
3956
  "showLinks": boolean;
3957
+ /**
3958
+ * Use show-uploaded-items-header to show single, generic, header for uploaded items
3959
+ */
3960
+ "showUploadedItemsHeader": boolean;
3948
3961
  /**
3949
3962
  * Property to change the aria upload progress text read aloud by screenreaders
3950
3963
  * @default { fi: { inProgress: "Lähetetään {filesUploaded} lähetettävästä {filesTotal} tiedostosta", inProgressWithErrors: "Lähetetään {filesInProgress} tiedostoa, lähetetty {filesUploaded} lähetettävästä {filesTotal} tiedostosta, {filesWithErrors} tiedostossa on virheitä", done: "Kaikki {filesTotal} tiedostoa lähetetty onnistuneesti", doneWithErrors: "Lähetys valmis, {filesUploaded} tiedostoa on lähetetty onnistuneesti, {filesWithErrors} tiedostossa oli virheitä", files: "tiedostot", file: "tiedosto", }, sv: { inProgress: "Adding {filesUploaded} of {filesTotal}", inProgressWithErrors: "Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades", done: "Alla {filesTotal} har lagts till", doneWithErrors: "Handling slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades", files: "filer", file: "fil", }, en: { inProgress: "Adding {filesUploaded} of {filesTotal}", inProgressWithErrors: "Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed", done: "All {filesTotal} added successfully", doneWithErrors: "Action completed, {filesUploaded} has been added successfully, {filesWithErrors} had errors", files: "tiedostoa", file: "tiedosto", }, }
@@ -3970,6 +3983,11 @@ export namespace Components {
3970
3983
  * Method for uploading pending files
3971
3984
  */
3972
3985
  "uploadPending": () => Promise<void>;
3986
+ /**
3987
+ * Property to change single uploaded items header label
3988
+ * @default { fi: "Ladattu tiedosto.", sv: "Nedladdad fil.", en: "Uploaded file.", }
3989
+ */
3990
+ "uploadedItemsHeaderLabel": DuetLangObject;
3973
3991
  /**
3974
3992
  * Endpoint URI that is capable of receiving the files
3975
3993
  */
@@ -5927,6 +5945,10 @@ declare namespace LocalJSX {
5927
5945
  * Enable or disable the automatic responsive behaviour of the grid component. Setting this option to "true" makes sure that contents are stacked vertically on mobile (575px and under).
5928
5946
  */
5929
5947
  "responsive"?: boolean;
5948
+ /**
5949
+ * Reverse the order of the grid items when horizontal. Usefull when we want the primary item to be on bottom right on desktop, but on top on mobile and the first for screen readers.
5950
+ */
5951
+ "rowReverse"?: boolean;
5930
5952
  }
5931
5953
  interface DuetGridItem {
5932
5954
  /**
@@ -8605,6 +8627,10 @@ declare namespace LocalJSX {
8605
8627
  * Visually hides the groups labels in the editable table list used to display the list of files
8606
8628
  */
8607
8629
  "hideGroups"?: boolean;
8630
+ /**
8631
+ * Use hide-header to hide upload component header and caption (if caption is not on bottom)
8632
+ */
8633
+ "hideHeader"?: boolean;
8608
8634
  /**
8609
8635
  * Adds a unique identifier for the upload component.
8610
8636
  */
@@ -8699,6 +8725,10 @@ declare namespace LocalJSX {
8699
8725
  * If enabled the editable-table will display links on successfully uploaded items, this requires the server can respond with link URIs in the correct format and that the files are accessible to the user
8700
8726
  */
8701
8727
  "showLinks"?: boolean;
8728
+ /**
8729
+ * Use show-uploaded-items-header to show single, generic, header for uploaded items
8730
+ */
8731
+ "showUploadedItemsHeader"?: boolean;
8702
8732
  /**
8703
8733
  * Property to change the aria upload progress text read aloud by screenreaders
8704
8734
  * @default { fi: { inProgress: "Lähetetään {filesUploaded} lähetettävästä {filesTotal} tiedostosta", inProgressWithErrors: "Lähetetään {filesInProgress} tiedostoa, lähetetty {filesUploaded} lähetettävästä {filesTotal} tiedostosta, {filesWithErrors} tiedostossa on virheitä", done: "Kaikki {filesTotal} tiedostoa lähetetty onnistuneesti", doneWithErrors: "Lähetys valmis, {filesUploaded} tiedostoa on lähetetty onnistuneesti, {filesWithErrors} tiedostossa oli virheitä", files: "tiedostot", file: "tiedosto", }, sv: { inProgress: "Adding {filesUploaded} of {filesTotal}", inProgressWithErrors: "Laddar upp {filesInProgress}, {filesUploaded} uppladdad av {filesTotal}, {filesWithErrors} misslyckades", done: "Alla {filesTotal} har lagts till", doneWithErrors: "Handling slutförd, {filesUploaded} har lagts till, {filesWithErrors} misslyckades", files: "filer", file: "fil", }, en: { inProgress: "Adding {filesUploaded} of {filesTotal}", inProgressWithErrors: "Uploading {filesInProgress}, {filesUploaded} uploaded of {filesTotal}, {filesWithErrors} failed", done: "All {filesTotal} added successfully", doneWithErrors: "Action completed, {filesUploaded} has been added successfully, {filesWithErrors} had errors", files: "tiedostoa", file: "tiedosto", }, }
@@ -8712,6 +8742,11 @@ declare namespace LocalJSX {
8712
8742
  * Theme of the input.
8713
8743
  */
8714
8744
  "theme"?: DuetTheme;
8745
+ /**
8746
+ * Property to change single uploaded items header label
8747
+ * @default { fi: "Ladattu tiedosto.", sv: "Nedladdad fil.", en: "Uploaded file.", }
8748
+ */
8749
+ "uploadedItemsHeaderLabel"?: DuetLangObject;
8715
8750
  /**
8716
8751
  * Endpoint URI that is capable of receiving the files
8717
8752
  */
@@ -21,4 +21,6 @@ export declare const breakpointToToken: {
21
21
  "xx-large": string;
22
22
  "xxx-large": string;
23
23
  };
24
+ export declare const breakpointTokensUpTo: string[];
25
+ export declare const breakpointTokensFrom: string[];
24
26
  export type DuetBreakpoints = keyof typeof breakpointToToken;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duetds/components",
3
- "version": "6.8.9",
3
+ "version": "6.9.1",
4
4
  "description": "This package includes Duet Design System Web Components and related utilities.",
5
5
  "bugs": {
6
6
  "email": "duetdesignsystem@lahitapiola.fi"
@@ -50,9 +50,9 @@
50
50
  "body-scroll-lock": "3.1.5"
51
51
  },
52
52
  "devDependencies": {
53
- "@duetds/fonts": "2.0.46",
54
- "@duetds/icons": "3.0.46",
55
- "@duetds/tokens": "3.0.46",
53
+ "@duetds/fonts": "2.0.48",
54
+ "@duetds/icons": "3.0.48",
55
+ "@duetds/tokens": "3.0.48",
56
56
  "@rollup/plugin-replace": "5.0.2",
57
57
  "@stencil/core": "3.1.0",
58
58
  "@stencil/sass": "3.0.0",
@@ -78,5 +78,5 @@
78
78
  "collection": "lib/collection/collection-manifest.json",
79
79
  "es2015": "lib/esm/index.js",
80
80
  "es2017": "lib/esm/index.js",
81
- "gitHead": "16394b3a5fb75bba193bf690d013b63e77a019ab"
81
+ "gitHead": "a85e3302211f2c61cc90459b91bd18ccd3ae03ae"
82
82
  }
@@ -1,243 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import { p as proxyCustomElement, H, c as createEvent, h as h$1, d as Host } from './p-0f07edcd.js';
5
- import { i as inheritGlobalTheme } from './p-4ebf1618.js';
6
- import { f as fieldSorter } from './p-0b3f675e.js';
7
- import { i as isKeyboardClick } from './p-d8549efe.js';
8
- import { g as getLocaleString } from './p-6c05e879.js';
9
- import { h } from './p-152ee893.js';
10
- import { d as defineCustomElement$6 } from './p-0853da89.js';
11
- import { d as defineCustomElement$5 } from './p-23e46e22.js';
12
- import { d as defineCustomElement$4 } from './p-cefc1697.js';
13
- import { d as defineCustomElement$3 } from './p-2697a4f6.js';
14
- import { d as defineCustomElement$2 } from './p-7cc3a9b6.js';
15
- import { d as defineCustomElement$1 } from './p-eabaa24d.js';
16
-
17
- //simple functional component that renders the data in the table
18
- const TableData = ({ data, groupId, alignment }, _children) => {
19
- const classNames = `duet-editable-table duet-editable-table-content-${groupId}`;
20
- if (typeof data === "string") {
21
- return h("td", { innerHTML: data, class: classNames, part: `${groupId}content`, style: { verticalAlign: alignment } });
22
- }
23
- else {
24
- return (h("td", { class: classNames, part: `${groupId}content`, style: { verticalAlign: alignment } }, data));
25
- }
26
- };
27
-
28
- const duetEditableTableCss = ".sc-duet-editable-table-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-editable-table-actions-menu.sc-duet-editable-table{position:relative;padding:0 !important;margin:0}.duet-editable-table-actions-menu-button.sc-duet-editable-table{position:relative;right:-16px;float:right;padding:0}.duet-editable-table-actions-menu-icon.sc-duet-editable-table .duet-icon.sc-duet-editable-table{max-width:16px;max-height:16px}.duet-editable-table-row.duet-table-action-row.sc-duet-editable-table .duet-text-right.sc-duet-editable-table{text-align:right}.duet-editable-table-header.sc-duet-editable-table tr.sc-duet-editable-table .duet-editable-table-header-hidden.sc-duet-editable-table{padding:0 !important;font-size:0;border-bottom:0}";
29
-
30
- const DuetEditableTable = /*@__PURE__*/ proxyCustomElement(class extends H {
31
- constructor() {
32
- super();
33
- this.__registerHost();
34
- this.duetTableToggle = createEvent(this, "duetTableToggle", 7);
35
- this.duetMenuClick = createEvent(this, "duetMenuClick", 7);
36
- this.hasHeadSlotFirst = false;
37
- this.hasHeadSlotLast = false;
38
- this.sortableDefaultLabel = {
39
- fi: "Järjestä",
40
- en: "Click to sort",
41
- sv: "Klicka för att sortera",
42
- };
43
- this.actionColumnLabel = {
44
- en: "Actions for rows",
45
- fi: "Toiminnot rivillä",
46
- sv: "Åtgärder för rader",
47
- };
48
- /**
49
- * Private methods.
50
- */
51
- this.toggleColumn = (column, e) => {
52
- e.preventDefault();
53
- const { sort_order, direction, index, key } = column;
54
- this.duetTableToggle.emit({
55
- sort_order,
56
- index,
57
- direction,
58
- key,
59
- component: "duet-editable-table",
60
- originalEvent: e,
61
- });
62
- };
63
- this.handleKeyDown = (column, e) => {
64
- if (isKeyboardClick(e)) {
65
- this.toggleColumn(column, e);
66
- }
67
- };
68
- this.margin = "auto";
69
- this.variation = "striped";
70
- this.sticky = false;
71
- this.stickyDistance = "with-links";
72
- this.breakpoint = "small";
73
- this.actions = undefined;
74
- this.columns = undefined;
75
- this.rows = undefined;
76
- this.sortable = false;
77
- this.groupId = "";
78
- this.theme = "";
79
- this.accessibleRole = undefined;
80
- this.hideHeadVisually = false;
81
- }
82
- /**
83
- * Component lifecycle events.
84
- */
85
- componentWillLoad() {
86
- inheritGlobalTheme(this);
87
- this.hasHeadSlotFirst = !!this.element.querySelector("[slot='thead-first']");
88
- this.hasHeadSlotLast = !!this.element.querySelector("[slot='thead-last']");
89
- }
90
- createLabel(column) {
91
- const { sort_order, direction, index, label } = column;
92
- const i18nLabel = getLocaleString(label);
93
- if (!this.sortable) {
94
- return i18nLabel;
95
- }
96
- const getButtonIcon = () => {
97
- // "action-subtract-small" https://cdn.duetds.com/api/icons/2.2.12/lib/assets/action-subtract-small.svg
98
- // "action-arrow-down-small" https://cdn.duetds.com/api/icons/2.2.12/lib/assets/action-arrow-down-small.svg
99
- // "action-arrow-up-small" https://cdn.duetds.com/api/icons/2.2.12/lib/assets/action-arrow-up-small.svg
100
- if (!!sort_order && direction === 1) {
101
- return "action-arrow-down-small";
102
- }
103
- else if (!!sort_order && direction === -1) {
104
- return "action-arrow-up-small";
105
- }
106
- return "action-subtract-small";
107
- };
108
- return (h$1("span", { class: "duet-table-label", "data-index": index }, h$1("duet-button", { size: "small", icon: getButtonIcon(), "icon-size": "medium-small", "accessible-label": getLocaleString(this.sortableDefaultLabel), variation: "plain", margin: "none", "icon-right": true, onClick: event => this.toggleColumn(column, event), onKeyDown: event => this.handleKeyDown(column, event) }, i18nLabel)));
109
- }
110
- getSortedColumns() {
111
- //create a new array from sort instead of mutating original
112
- return [...this.columns].sort(fieldSorter(["index"]));
113
- }
114
- getRowSortOrder() {
115
- //create a new array from sort instead of mutating original
116
- const fields = [...this.columns].sort(fieldSorter(["sort_order"]));
117
- //return only key from objects that have sort_order
118
- return fields
119
- .filter(column => column.sort_order)
120
- .map(column => {
121
- // add - in-front of descending direction (required by field-sorter)
122
- return column.direction === -1 ? `-${column.key}` : column.key;
123
- });
124
- }
125
- renderTableHeader() {
126
- if (!this.columns) {
127
- return;
128
- }
129
- const sortedColumns = this.getSortedColumns();
130
- return (h$1("tr", { class: {
131
- "duet-table-action-header": !!this.actions,
132
- } }, sortedColumns.map(column => {
133
- if (column.display !== false) {
134
- const label = this.createLabel(column);
135
- return label !== "" ? h$1("th", { scope: "col" }, label) : h$1("td", null);
136
- }
137
- }), this.actions && (h$1("th", { scope: "col", class: "duet-table-action-header-heading" }, this.actions && h$1("duet-visually-hidden", null, getLocaleString(this.actionColumnLabel))))));
138
- }
139
- renderActions(rowItem, index) {
140
- // escape early
141
- if (!this.actions) {
142
- return;
143
- }
144
- // iterate through actions and add them in the sidebar
145
- return (h$1("td", { class: "duet-text-right" }, this.actions.map(actionItem => {
146
- return (h$1("duet-action-button", { actionMeta: Object.assign({}, (rowItem === null || rowItem === void 0 ? void 0 : rowItem.meta) || {}, { index }), actionId: (rowItem === null || rowItem === void 0 ? void 0 : rowItem.uid) || (rowItem === null || rowItem === void 0 ? void 0 : rowItem.id) || null, actionName: actionItem.name, theme: this.theme, iconName: actionItem.icon, iconColor: actionItem.color, iconSize: actionItem.size, background: actionItem.background, "accessible-label": `${rowItem.actionDescription || ""} ${getLocaleString(actionItem.label)} ` }));
147
- })));
148
- }
149
- renderTableBody() {
150
- const columns = this.getSortedColumns();
151
- const rowSortOrder = this.getRowSortOrder();
152
- const sortedRows = [...this.rows].sort(fieldSorter(rowSortOrder));
153
- // return a tbody with rows for each item in sortedRows
154
- return sortedRows.map((row, index) => (h$1("tr", { class: {
155
- "duet-table-action-row": !!this.actions,
156
- "duet-editable-table-row": true,
157
- [`duet-editable-table-row-${this.groupId}`]: true,
158
- }, "data-meta": JSON.stringify(row.meta) }, columns.map(column => {
159
- //if we don't have any data for this column, try getting an item instead (for backwards compatibility
160
- const value = row[column.key] ? row[column.key] : row.item;
161
- if (column.display !== false) {
162
- return h$1(TableData, { data: value, groupId: this.groupId });
163
- }
164
- }), this.actions && this.renderActions(row, index))));
165
- }
166
- /**
167
- * Render Methods
168
- */
169
- render() {
170
- return (h$1(Host, { class: {
171
- [`duet-editable-table-${this.variation}`]: true,
172
- "duet-editable-table": true,
173
- [`duet-editable-table-${this.theme}`]: true,
174
- // sticky only valid when in regular table layout
175
- "duet-editable-table-scrollable": this.breakpoint === "none-scrollable",
176
- "duet-editable-table-sortable": this.sortable,
177
- "duet-editable-table-actions": !!this.actions,
178
- "duet-m-0": this.margin === "none",
179
- "duet-theme-turva": this.theme === "turva",
180
- } }, h$1("duet-table", { class: "duet-editable-table-table", sticky: this.sticky, stickyDistance: this.stickyDistance, margin: this.margin, theme: this.theme, variation: this.variation, breakpoint: this.breakpoint, "hide-head-visually": this.hideHeadVisually }, h$1("table", { role: this.accessibleRole }, h$1("caption", null, h$1("slot", { name: "tcaption" })), h$1("thead", null, this.hasHeadSlotFirst && (h$1("tr", null, h$1("td", { class: "duet-editable-table-actions-menu", colSpan: 99 }, h$1("slot", { name: "thead-first" })))), this.renderTableHeader(), this.hasHeadSlotLast && (h$1("tr", null, h$1("td", { class: "duet-editable-table-actions-menu", colSpan: 99 }, h$1("slot", { name: "thead-last" }))))), h$1("tbody", null, this.renderTableBody()), h$1("tfoot", null, h$1("tr", null, h$1("th", { class: "duet-editable-table-footer-menu", colSpan: 99 }, h$1("slot", { name: "tfoot" }))))))));
181
- }
182
- get element() { return this; }
183
- static get style() { return duetEditableTableCss; }
184
- }, [6, "duet-editable-table", {
185
- "margin": [1],
186
- "variation": [1],
187
- "sticky": [4],
188
- "stickyDistance": [1, "sticky-distance"],
189
- "breakpoint": [1],
190
- "actions": [1040],
191
- "columns": [1040],
192
- "rows": [1040],
193
- "sortable": [4],
194
- "groupId": [1, "group-id"],
195
- "theme": [1025],
196
- "accessibleRole": [1, "accessible-role"],
197
- "hideHeadVisually": [4, "hide-head-visually"]
198
- }]);
199
- function defineCustomElement() {
200
- if (typeof customElements === "undefined") {
201
- return;
202
- }
203
- const components = ["duet-editable-table", "duet-action-button", "duet-button", "duet-icon", "duet-spinner", "duet-table", "duet-visually-hidden"];
204
- components.forEach(tagName => { switch (tagName) {
205
- case "duet-editable-table":
206
- if (!customElements.get(tagName)) {
207
- customElements.define(tagName, DuetEditableTable);
208
- }
209
- break;
210
- case "duet-action-button":
211
- if (!customElements.get(tagName)) {
212
- defineCustomElement$6();
213
- }
214
- break;
215
- case "duet-button":
216
- if (!customElements.get(tagName)) {
217
- defineCustomElement$5();
218
- }
219
- break;
220
- case "duet-icon":
221
- if (!customElements.get(tagName)) {
222
- defineCustomElement$4();
223
- }
224
- break;
225
- case "duet-spinner":
226
- if (!customElements.get(tagName)) {
227
- defineCustomElement$3();
228
- }
229
- break;
230
- case "duet-table":
231
- if (!customElements.get(tagName)) {
232
- defineCustomElement$2();
233
- }
234
- break;
235
- case "duet-visually-hidden":
236
- if (!customElements.get(tagName)) {
237
- defineCustomElement$1();
238
- }
239
- break;
240
- } });
241
- }
242
-
243
- export { DuetEditableTable as D, defineCustomElement as d };
@@ -1,178 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import { p as proxyCustomElement, H, h, d as Host } from './p-0f07edcd.js';
5
- import { m as media_query_large, a as media_query_medium, b as media_query_small } from './p-c4d8cad0.js';
6
- import { w as watchForOptions, a as watchForElement } from './p-12721178.js';
7
-
8
- const duetGridCss = ".sc-duet-grid-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex !important;flex-direction:column !important;align-items:flex-start !important;justify-content:flex-start !important;width:100%;max-width:100%;height:auto}.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:row !important}@media (max-width: 22.5em){.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}@media (min-width: 36em){.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:row !important}}@media (min-width: 48em){.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:row !important}}@media (min-width: 62em){.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:row !important}}@media (min-width: 64.0625em){.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:row !important}}.duet-grid-wrap.sc-duet-grid-h{flex-wrap:wrap !important}.duet-no-stacking.sc-duet-grid-h{flex-direction:row !important}.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}@media (max-width: 35.9375em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 36em){.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 48em){.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 62em){.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 64.0625em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-align-top.duet-no-stacking.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-no-stacking.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-no-stacking.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-no-stacking.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-no-stacking.sc-duet-grid-h{align-items:baseline !important}.duet-grid-align-top.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:baseline !important}@media (min-width: 36em){.duet-grid-align-top.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 36em){.duet-grid-align-bottom.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 36em){.duet-grid-align-center.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:center !important}}@media (min-width: 36em){.duet-grid-align-stretch.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 36em){.duet-grid-align-baseline.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 48em){.duet-grid-align-top.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 48em){.duet-grid-align-bottom.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 48em){.duet-grid-align-center.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:center !important}}@media (min-width: 48em){.duet-grid-align-stretch.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 48em){.duet-grid-align-baseline.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 62em){.duet-grid-align-top.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 62em){.duet-grid-align-bottom.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 62em){.duet-grid-align-center.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 62em){.duet-grid-align-stretch.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 62em){.duet-grid-align-baseline.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 64.0625em){.duet-grid-align-top.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 64.0625em){.duet-grid-align-bottom.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 64.0625em){.duet-grid-align-center.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 64.0625em){.duet-grid-align-stretch.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 64.0625em){.duet-grid-align-baseline.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:baseline !important}}.duet-grid-distribution-left.sc-duet-grid-h{justify-content:flex-start !important}.duet-grid-distribution-right.sc-duet-grid-h{justify-content:flex-end !important}.duet-grid-distribution-center.sc-duet-grid-h{justify-content:center !important}.duet-grid-distribution-between.sc-duet-grid-h{justify-content:space-between !important}.duet-grid-distribution-around.sc-duet-grid-h{justify-content:space-around !important}.duet-grid-distribution-evenly.sc-duet-grid-h{justify-content:space-evenly !important}@media (max-width: 35.9375em){.duet-grid-mobile-left.sc-duet-grid-h{align-items:flex-start !important;justify-content:flex-start !important;text-align:left !important}}@media (max-width: 35.9375em){.duet-grid-mobile-center.sc-duet-grid-h{align-items:center !important;justify-content:center !important;text-align:center !important}.duet-grid-mobile-center.sc-duet-grid-h *.sc-duet-grid{text-align:center !important}}@media (max-width: 35.9375em){.duet-grid-mobile-right.sc-duet-grid-h{align-items:flex-end !important;justify-content:flex-end !important;text-align:right !important}.duet-grid-mobile-right.sc-duet-grid-h *.sc-duet-grid{text-align:right !important}}";
9
-
10
- function isGridItem(element) {
11
- return element.tagName.toLowerCase() === "duet-grid-item";
12
- }
13
- const DuetGrid = /*@__PURE__*/ proxyCustomElement(class extends H {
14
- constructor() {
15
- super();
16
- this.__registerHost();
17
- this.mql = [
18
- window.matchMedia(media_query_large.replace(/'/g, "")),
19
- window.matchMedia(media_query_medium.replace(/'/g, "")),
20
- window.matchMedia(media_query_small.replace(/'/g, "")),
21
- ];
22
- this.distributeFormElement = false;
23
- this.responsive = false;
24
- this.breakpoint = "small";
25
- this.direction = "horizontal";
26
- this.alignment = "top";
27
- this.distribution = "default";
28
- this.mobile = "";
29
- }
30
- /**
31
- * Private functions
32
- */
33
- /**
34
- * Returns the element height including margins
35
- * @param element - element
36
- * @returns {number}
37
- */
38
- outerHeight(element) {
39
- const height = element.offsetHeight, style = window.getComputedStyle(element);
40
- return ["top", "bottom"]
41
- .map(side => parseInt(style[`margin-${side}`]))
42
- .reduce((total, side) => total + side, height);
43
- }
44
- /**
45
- * Component lifecycle events.
46
- */
47
- async connectedCallback() {
48
- const el = this.element;
49
- this.distributeFormElement = this.alignment === "form_distribute";
50
- this.mutationO = watchForOptions(el, "duet-grid-item", () => {
51
- this.updateGridItems();
52
- });
53
- // the next two functions are used to watch for changes in the grid items, and are process intensive - so only run when needed
54
- if (this.distributeFormElement) {
55
- this.mutation1 = watchForElement(el, "duet-input", () => {
56
- this.updateGridItemsWithInputFields();
57
- });
58
- // listen for potential mediaquery changes and reset layout
59
- for (let i = 0; i < this.mql.length; i++) {
60
- // addEventListener is not available in Stencil hydrate
61
- if (this.mql[i].addEventListener) {
62
- this.mql[i].addEventListener("change", this.updateGridItemsWithInputFields.bind(this));
63
- }
64
- }
65
- }
66
- this.updateGridItems();
67
- }
68
- disconnectedCallback() {
69
- if (this.mutationO) {
70
- this.mutationO.disconnect();
71
- this.mutationO = undefined;
72
- }
73
- if (this.mutation1) {
74
- this.mutation1.disconnect();
75
- this.mutation1 = undefined;
76
- }
77
- // listen for potential mediaquery changes and reset layout
78
- for (let i = 0; i < this.mql.length; i++) {
79
- // addEventListener is not available in Stencil hydrate
80
- if (this.mql[i].removeEventListener) {
81
- this.mql[i].removeEventListener("change", this.updateGridItemsWithInputFields.bind(this));
82
- }
83
- }
84
- }
85
- /**
86
- * Local methods
87
- */
88
- async updateGridItems() {
89
- const items = Array.from(this.element.children).filter(isGridItem);
90
- items.forEach(item => {
91
- item.responsive = this.responsive;
92
- item.breakpoint = this.breakpoint;
93
- });
94
- }
95
- async updateGridItemsWithInputFields() {
96
- const items = Array.from(this.element.children).filter(isGridItem);
97
- // if layout changes to columns instead of row, remove all padding
98
- const hasColumnLayout = window ? window.getComputedStyle(this.element).flexDirection === "column" : false;
99
- let maxHeight = 0;
100
- const sizes = [];
101
- items.forEach(item => {
102
- const inputErrorDom = item.querySelector("span.duet-input-error");
103
- const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
104
- sizes.push(height);
105
- });
106
- maxHeight = Math.max(...sizes);
107
- items.forEach(item => {
108
- const inputErrorDom = item.querySelector("span.duet-input-error");
109
- const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
110
- if (height < maxHeight && !hasColumnLayout) {
111
- item.setAttribute("style", `padding-bottom: ${maxHeight - height}px;`);
112
- }
113
- else if (height === maxHeight || hasColumnLayout) {
114
- item.setAttribute("style", `padding-bottom: 0px;`);
115
- }
116
- });
117
- }
118
- /**
119
- * render() function
120
- * Always the last one in the class.
121
- */
122
- render() {
123
- return (h(Host, { class: {
124
- "duet-grid": true,
125
- "duet-no-stacking": !this.responsive,
126
- "duet-grid-align-top": this.alignment === "top",
127
- "duet-grid-align-bottom": this.alignment === "bottom" || this.alignment === "form_distribute",
128
- "duet-grid-align-center": this.alignment === "center",
129
- "duet-grid-align-stretch": this.alignment === "stretch",
130
- "duet-grid-align-baseline": this.alignment === "baseline",
131
- "duet-grid-distribution-left": this.distribution === "left",
132
- "duet-grid-distribution-right": this.distribution === "right",
133
- "duet-grid-distribution-center": this.distribution === "center",
134
- "duet-grid-distribution-between": this.distribution === "space-between",
135
- "duet-grid-distribution-around": this.distribution === "space-around",
136
- "duet-grid-distribution-evenly": this.distribution === "space-evenly",
137
- "duet-grid-mobile-left": this.mobile === "left",
138
- "duet-grid-mobile-center": this.mobile === "center",
139
- "duet-grid-mobile-right": this.mobile === "right",
140
- "duet-grid-direction-horizontal": this.direction === "horizontal",
141
- "duet-grid-direction-vertical": this.direction === "vertical",
142
- "duet-grid-breakpoint-x-small": this.breakpoint === "x-small",
143
- "duet-grid-breakpoint-small": this.breakpoint === "small",
144
- "duet-grid-breakpoint-medium": this.breakpoint === "medium",
145
- "duet-grid-breakpoint-large": this.breakpoint === "large",
146
- "duet-grid-breakpoint-x-large": this.breakpoint === "x-large",
147
- } }));
148
- }
149
- get element() { return this; }
150
- static get watchers() { return {
151
- "responsive": ["updateGridItems"],
152
- "breakpoint": ["updateGridItems"]
153
- }; }
154
- static get style() { return duetGridCss; }
155
- }, [2, "duet-grid", {
156
- "responsive": [4],
157
- "breakpoint": [1],
158
- "direction": [1],
159
- "alignment": [1],
160
- "distribution": [1],
161
- "mobile": [1],
162
- "distributeFormElement": [32]
163
- }]);
164
- function defineCustomElement() {
165
- if (typeof customElements === "undefined") {
166
- return;
167
- }
168
- const components = ["duet-grid"];
169
- components.forEach(tagName => { switch (tagName) {
170
- case "duet-grid":
171
- if (!customElements.get(tagName)) {
172
- customElements.define(tagName, DuetGrid);
173
- }
174
- break;
175
- } });
176
- }
177
-
178
- export { DuetGrid as D, defineCustomElement as d };
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{h as o}from"./p-cfc2b098.js";const s=o=>{"setFocus"in o?o.setFocus():o.focus()},c=({moveFocusTo:c})=>o("div",{class:"duet-focus-guard","aria-hidden":"true",tabIndex:0,onFocus:()=>s(c)});export{c as F,s as f}