@duetds/components 6.0.6 → 6.1.0

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 (349) hide show
  1. package/hydrate/index.js +253 -9
  2. package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
  3. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-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 +2 -2
  8. package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
  9. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-checkbox.cjs.entry.js +6 -2
  11. package/lib/cjs/duet-choice_2.cjs.entry.js +8 -6
  12. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-editable-table_3.cjs.entry.js +4 -3
  18. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  21. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-multiselect.cjs.entry.js +224 -0
  30. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  39. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  45. package/lib/cjs/duet.cjs.js +2 -2
  46. package/lib/cjs/{focus-utils-dd4ce1de.js → focus-utils-5bf92cc0.js} +1 -1
  47. package/lib/cjs/{index-e4517eb5.js → index-d380d72b.js} +1 -1
  48. package/lib/cjs/loader.cjs.js +2 -2
  49. package/lib/collection/collection-manifest.json +1 -0
  50. package/lib/collection/components/duet-button/duet-button.css +4 -4
  51. package/lib/collection/components/duet-checkbox/duet-checkbox.js +23 -1
  52. package/lib/collection/components/duet-choice/duet-choice.js +1 -1
  53. package/lib/collection/components/duet-choice-group/duet-choice-group.js +5 -3
  54. package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -1
  55. package/lib/collection/components/duet-multiselect/duet-multiselect.css +261 -0
  56. package/lib/collection/components/duet-multiselect/duet-multiselect.js +597 -0
  57. package/lib/collection/components/duet-upload/duet-upload.js +1 -1
  58. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  59. package/lib/dist-custom-elements/duet-alert.js +1 -1
  60. package/lib/dist-custom-elements/duet-badge.js +1 -1
  61. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  62. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  63. package/lib/dist-custom-elements/duet-button.js +1 -1
  64. package/lib/dist-custom-elements/duet-caption.js +1 -1
  65. package/lib/dist-custom-elements/duet-card.js +3 -3
  66. package/lib/dist-custom-elements/duet-checkbox.js +1 -155
  67. package/lib/dist-custom-elements/duet-choice-group.js +11 -9
  68. package/lib/dist-custom-elements/duet-choice.js +6 -6
  69. package/lib/dist-custom-elements/duet-collapsible.js +2 -2
  70. package/lib/dist-custom-elements/duet-combobox.js +3 -3
  71. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  72. package/lib/dist-custom-elements/duet-date-picker.js +8 -8
  73. package/lib/dist-custom-elements/duet-divider.js +1 -1
  74. package/lib/dist-custom-elements/duet-editable-table.js +1 -1
  75. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  76. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  77. package/lib/dist-custom-elements/duet-footer.js +4 -4
  78. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  79. package/lib/dist-custom-elements/duet-grid.js +1 -1
  80. package/lib/dist-custom-elements/duet-header.js +8 -8
  81. package/lib/dist-custom-elements/duet-heading.js +1 -1
  82. package/lib/dist-custom-elements/duet-hero.js +9 -9
  83. package/lib/dist-custom-elements/duet-icon.js +1 -1
  84. package/lib/dist-custom-elements/duet-input.js +1 -1
  85. package/lib/dist-custom-elements/duet-label.js +1 -1
  86. package/lib/dist-custom-elements/duet-layout.js +1 -1
  87. package/lib/dist-custom-elements/duet-link.js +1 -1
  88. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  89. package/lib/dist-custom-elements/duet-list.js +1 -1
  90. package/lib/dist-custom-elements/duet-logo.js +1 -1
  91. package/lib/dist-custom-elements/duet-modal.js +7 -7
  92. package/lib/dist-custom-elements/duet-multiselect.d.ts +11 -0
  93. package/lib/dist-custom-elements/duet-multiselect.js +299 -0
  94. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  95. package/lib/dist-custom-elements/duet-notification.js +2 -2
  96. package/lib/dist-custom-elements/duet-number-input.js +7 -7
  97. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  98. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  99. package/lib/dist-custom-elements/duet-progress.js +1 -1
  100. package/lib/dist-custom-elements/duet-radio-group.js +6 -6
  101. package/lib/dist-custom-elements/duet-radio.js +1 -1
  102. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  103. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  104. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  105. package/lib/dist-custom-elements/duet-select.js +1 -1
  106. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  107. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  108. package/lib/dist-custom-elements/duet-step.js +4 -4
  109. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  110. package/lib/dist-custom-elements/duet-tab-group.js +8 -8
  111. package/lib/dist-custom-elements/duet-tab.js +1 -1
  112. package/lib/dist-custom-elements/duet-table.js +1 -1
  113. package/lib/dist-custom-elements/duet-textarea.js +8 -8
  114. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  115. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  116. package/lib/dist-custom-elements/duet-tray.js +3 -3
  117. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  118. package/lib/dist-custom-elements/duet-upload.js +19 -19
  119. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  120. package/lib/dist-custom-elements/index.js +1 -1
  121. package/lib/dist-custom-elements/{p-80931556.js → p-025242f2.js} +6 -6
  122. package/lib/dist-custom-elements/{p-aa0d2da3.js → p-14799264.js} +1 -1
  123. package/lib/dist-custom-elements/{p-64632357.js → p-15cca1fa.js} +2 -2
  124. package/lib/dist-custom-elements/{p-aa492620.js → p-260d7413.js} +1 -1
  125. package/lib/dist-custom-elements/{p-bf5314b7.js → p-2b6e0098.js} +1 -1
  126. package/lib/dist-custom-elements/{p-3a9cfcc9.js → p-35856a5f.js} +1 -1
  127. package/lib/dist-custom-elements/{p-c04225ed.js → p-3f5248cc.js} +6 -6
  128. package/lib/dist-custom-elements/p-3f9960ee.js +165 -0
  129. package/lib/dist-custom-elements/{p-a379b2d3.js → p-40964c90.js} +2 -2
  130. package/lib/dist-custom-elements/{p-29eb2df5.js → p-4dd0d2e0.js} +1 -1
  131. package/lib/dist-custom-elements/{p-8cd228d4.js → p-5368b90e.js} +1 -1
  132. package/lib/dist-custom-elements/{p-b39ebe64.js → p-5c30c1e6.js} +3 -3
  133. package/lib/dist-custom-elements/{p-87a6b2d6.js → p-6352244e.js} +1 -1
  134. package/lib/dist-custom-elements/{p-7c13db02.js → p-76a12869.js} +2 -2
  135. package/lib/dist-custom-elements/{p-4945e262.js → p-84036192.js} +3 -3
  136. package/lib/dist-custom-elements/{p-e0a69099.js → p-983633e4.js} +1 -1
  137. package/lib/dist-custom-elements/{p-199c2f56.js → p-a0188402.js} +5 -5
  138. package/lib/dist-custom-elements/{p-7f15884f.js → p-a10df7a8.js} +1 -1
  139. package/lib/dist-custom-elements/{p-9f0235d2.js → p-a19a3c64.js} +1 -1
  140. package/lib/dist-custom-elements/{p-b74969f0.js → p-a720eb56.js} +2 -2
  141. package/lib/dist-custom-elements/{p-592779ce.js → p-b125807e.js} +1 -1
  142. package/lib/dist-custom-elements/{p-4f279f53.js → p-b828da80.js} +9 -8
  143. package/lib/dist-custom-elements/{p-cb00b1f9.js → p-c2260d50.js} +2 -2
  144. package/lib/dist-custom-elements/{p-7576d4ff.js → p-c2c3e421.js} +1 -1
  145. package/lib/dist-custom-elements/{p-b32fb567.js → p-dde39f08.js} +1 -1
  146. package/lib/dist-custom-elements/{p-d7e59b1c.js → p-df05a117.js} +1 -1
  147. package/lib/dist-custom-elements/{p-28011c52.js → p-e06d804b.js} +1 -1
  148. package/lib/dist-custom-elements/{p-7289badb.js → p-e436e97c.js} +5 -5
  149. package/lib/dist-custom-elements/{p-a426557f.js → p-eef3373f.js} +1 -1
  150. package/lib/dist-custom-elements/{p-d00cffea.js → p-f06badc1.js} +3 -3
  151. package/lib/dist-custom-elements/{p-082654a0.js → p-f5d54803.js} +1 -1
  152. package/lib/duet/duet.esm.js +1 -1
  153. package/lib/duet/duet.js +1 -1
  154. package/lib/duet/{p-9b3a36e6.entry.js → p-07c53212.entry.js} +1 -1
  155. package/lib/duet/{p-8fbe317b.system.js → p-08c8edc7.system.js} +1 -1
  156. package/lib/duet/{p-2248cea0.system.entry.js → p-0bc10576.system.entry.js} +1 -1
  157. package/lib/duet/{p-fe658814.entry.js → p-0c1fdd7c.entry.js} +1 -1
  158. package/lib/duet/{p-6e39375e.system.entry.js → p-1034d5d8.system.entry.js} +1 -1
  159. package/lib/duet/{p-fc7bff4b.system.entry.js → p-10a9fe19.system.entry.js} +1 -1
  160. package/lib/duet/{p-42fd968a.entry.js → p-134bbc67.entry.js} +1 -1
  161. package/lib/duet/{p-2f94a10d.system.entry.js → p-17213a02.system.entry.js} +1 -1
  162. package/lib/duet/{p-46c15952.entry.js → p-18c2588a.entry.js} +1 -1
  163. package/lib/duet/{p-f640cfa4.entry.js → p-1e8365c3.entry.js} +1 -1
  164. package/lib/duet/{p-52c056db.entry.js → p-20df1f28.entry.js} +1 -1
  165. package/lib/duet/{p-440ab681.entry.js → p-24b890e9.entry.js} +1 -1
  166. package/lib/duet/{p-9b991fcc.system.entry.js → p-2957055a.system.entry.js} +1 -1
  167. package/lib/duet/{p-38ebcf7c.entry.js → p-2a2b5109.entry.js} +1 -1
  168. package/lib/duet/{p-f9bbab0b.system.entry.js → p-2b7f998c.system.entry.js} +1 -1
  169. package/lib/duet/{p-7c667e8f.entry.js → p-2b822122.entry.js} +1 -1
  170. package/lib/duet/{p-7b41013a.entry.js → p-2d906752.entry.js} +1 -1
  171. package/lib/duet/{p-76bd1cd1.js → p-2f183314.js} +1 -1
  172. package/lib/duet/{p-2aa13286.entry.js → p-3166de44.entry.js} +1 -1
  173. package/lib/duet/{p-48ebc2b0.entry.js → p-3287e496.entry.js} +1 -1
  174. package/lib/duet/{p-59b50ef3.entry.js → p-33814c22.entry.js} +1 -1
  175. package/lib/duet/p-33bbde60.entry.js +4 -0
  176. package/lib/duet/{p-45b515be.entry.js → p-351fbda4.entry.js} +1 -1
  177. package/lib/duet/{p-8f3a0c72.system.entry.js → p-35351cf2.system.entry.js} +1 -1
  178. package/lib/duet/{p-039fc9c3.entry.js → p-363c6807.entry.js} +1 -1
  179. package/lib/duet/{p-b38311d2.system.entry.js → p-3ab707be.system.entry.js} +1 -1
  180. package/lib/duet/{p-2070fce5.entry.js → p-3f6487d8.entry.js} +1 -1
  181. package/lib/duet/{p-35a057b3.entry.js → p-4056c348.entry.js} +1 -1
  182. package/lib/duet/{p-678e8cbb.entry.js → p-48f15ed7.entry.js} +1 -1
  183. package/lib/duet/{p-fe5c5165.system.entry.js → p-4a97bbae.system.entry.js} +1 -1
  184. package/lib/duet/{p-de540d60.entry.js → p-4c3bfd8a.entry.js} +1 -1
  185. package/lib/duet/{p-6c762845.system.entry.js → p-4d6b04f1.system.entry.js} +1 -1
  186. package/lib/duet/{p-c468a3a5.system.entry.js → p-4fee02ae.system.entry.js} +1 -1
  187. package/lib/duet/{p-19727bc9.system.entry.js → p-5174a8af.system.entry.js} +1 -1
  188. package/lib/duet/{p-71d5f97d.entry.js → p-545177af.entry.js} +1 -1
  189. package/lib/duet/{p-48d64315.system.entry.js → p-55f8c851.system.entry.js} +1 -1
  190. package/lib/duet/{p-20f35cdc.system.entry.js → p-5f4a200f.system.entry.js} +1 -1
  191. package/lib/duet/{p-d1433a6c.system.entry.js → p-69d0a2ce.system.entry.js} +1 -1
  192. package/lib/duet/{p-fafcae12.system.entry.js → p-6cc20670.system.entry.js} +1 -1
  193. package/lib/duet/{p-8177d52d.entry.js → p-6d2d9897.entry.js} +1 -1
  194. package/lib/duet/{p-6d95f910.system.entry.js → p-6def950d.system.entry.js} +1 -1
  195. package/lib/duet/{p-c530394c.entry.js → p-709654f2.entry.js} +1 -1
  196. package/lib/duet/{p-52c6ae14.system.entry.js → p-73c3092e.system.entry.js} +1 -1
  197. package/lib/duet/{p-37ed2dff.system.entry.js → p-79eada30.system.entry.js} +1 -1
  198. package/lib/duet/{p-0213ed5d.system.entry.js → p-7ed493e6.system.entry.js} +1 -1
  199. package/lib/duet/{p-a59437ad.entry.js → p-88e3d858.entry.js} +1 -1
  200. package/lib/duet/{p-b719d692.entry.js → p-88eabc52.entry.js} +1 -1
  201. package/lib/duet/p-89b3c614.entry.js +4 -0
  202. package/lib/duet/{p-5cdddc36.system.entry.js → p-8c17003f.system.entry.js} +2 -2
  203. package/lib/duet/p-8c2a2440.entry.js +4 -0
  204. package/lib/duet/p-8cea8546.system.js +4 -0
  205. package/lib/duet/{p-4b297926.system.entry.js → p-8db9e436.system.entry.js} +1 -1
  206. package/lib/duet/{p-27264236.system.entry.js → p-9343afe6.system.entry.js} +1 -1
  207. package/lib/duet/{p-9128d8c9.system.entry.js → p-95340ddf.system.entry.js} +1 -1
  208. package/lib/duet/p-97b281b2.system.entry.js +4 -0
  209. package/lib/duet/{p-2f82c49d.entry.js → p-9c2d276b.entry.js} +1 -1
  210. package/lib/duet/{p-605d7b1b.system.js → p-9e9b3182.system.js} +1 -1
  211. package/lib/duet/{p-7fa21213.entry.js → p-9ff90002.entry.js} +1 -1
  212. package/lib/duet/{p-bd5e1712.entry.js → p-a4acf397.entry.js} +1 -1
  213. package/lib/duet/{p-79f628fc.entry.js → p-a883b01d.entry.js} +1 -1
  214. package/lib/duet/{p-dbbbfb36.system.entry.js → p-a8e38895.system.entry.js} +1 -1
  215. package/lib/duet/{p-f75b852a.entry.js → p-aba4b236.entry.js} +1 -1
  216. package/lib/duet/{p-a090cc23.system.entry.js → p-b0b61064.system.entry.js} +1 -1
  217. package/lib/duet/p-b2a940b5.system.entry.js +4 -0
  218. package/lib/duet/{p-34c60dae.system.entry.js → p-b2da699d.system.entry.js} +1 -1
  219. package/lib/duet/{p-4f74dcb0.system.entry.js → p-bdbe682d.system.entry.js} +2 -2
  220. package/lib/duet/{p-0366aa94.entry.js → p-be9d7718.entry.js} +1 -1
  221. package/lib/duet/{p-251a5aac.system.entry.js → p-bedf7cb7.system.entry.js} +1 -1
  222. package/lib/duet/{p-939a6cc1.entry.js → p-c055fcd1.entry.js} +1 -1
  223. package/lib/duet/{p-e9ac6c20.system.entry.js → p-c8a46ebb.system.entry.js} +1 -1
  224. package/lib/duet/{p-42b60815.entry.js → p-c8e84baf.entry.js} +1 -1
  225. package/lib/duet/{p-24df277b.system.entry.js → p-cc7f44f9.system.entry.js} +1 -1
  226. package/lib/duet/{p-9af0bc52.system.entry.js → p-cf9027e3.system.entry.js} +1 -1
  227. package/lib/duet/{p-05737119.system.entry.js → p-d2a55128.system.entry.js} +1 -1
  228. package/lib/duet/{p-5a996bf9.entry.js → p-d4a24199.entry.js} +1 -1
  229. package/lib/duet/{p-a4bec573.entry.js → p-d50688a8.entry.js} +1 -1
  230. package/lib/duet/p-d8ae3650.system.entry.js +4 -0
  231. package/lib/duet/{p-65ee3b0a.system.entry.js → p-db2cfc87.system.entry.js} +1 -1
  232. package/lib/duet/{p-45695a2f.system.entry.js → p-db9db173.system.entry.js} +1 -1
  233. package/lib/duet/{p-cc2dcefa.js → p-dc6fd9c6.js} +1 -1
  234. package/lib/duet/{p-ae11885c.system.entry.js → p-e13a54c8.system.entry.js} +1 -1
  235. package/lib/duet/{p-53e9db65.entry.js → p-e19ba091.entry.js} +1 -1
  236. package/lib/duet/p-e2adbecc.entry.js +4 -0
  237. package/lib/duet/{p-adf1ecbf.system.entry.js → p-e4c320e2.system.entry.js} +1 -1
  238. package/lib/duet/{p-0285b819.system.entry.js → p-e86917b0.system.entry.js} +1 -1
  239. package/lib/duet/{p-995aaa93.system.entry.js → p-f01eb4ea.system.entry.js} +1 -1
  240. package/lib/duet/{p-da33b001.entry.js → p-f493ae81.entry.js} +1 -1
  241. package/lib/duet/{p-5c0b7a57.system.entry.js → p-f6240801.system.entry.js} +1 -1
  242. package/lib/duet/{p-d02af930.entry.js → p-f827b4b6.entry.js} +1 -1
  243. package/lib/duet/{p-16ce8d7a.entry.js → p-fb97dc52.entry.js} +1 -1
  244. package/lib/duet/{p-fe1b83c8.entry.js → p-fd1ed521.entry.js} +1 -1
  245. package/lib/esm/duet-action-button.entry.js +1 -1
  246. package/lib/esm/duet-alert.entry.js +1 -1
  247. package/lib/esm/duet-badge.entry.js +1 -1
  248. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  249. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  250. package/lib/esm/duet-button_2.entry.js +2 -2
  251. package/lib/esm/duet-caption_4.entry.js +1 -1
  252. package/lib/esm/duet-card.entry.js +1 -1
  253. package/lib/esm/duet-checkbox.entry.js +6 -2
  254. package/lib/esm/duet-choice_2.entry.js +8 -6
  255. package/lib/esm/duet-collapsible.entry.js +1 -1
  256. package/lib/esm/duet-combobox.entry.js +1 -1
  257. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  258. package/lib/esm/duet-date-picker.entry.js +2 -2
  259. package/lib/esm/duet-divider_2.entry.js +1 -1
  260. package/lib/esm/duet-editable-table_3.entry.js +4 -3
  261. package/lib/esm/duet-empty-state.entry.js +1 -1
  262. package/lib/esm/duet-fieldset.entry.js +1 -1
  263. package/lib/esm/duet-footer.entry.js +1 -1
  264. package/lib/esm/duet-grid_2.entry.js +1 -1
  265. package/lib/esm/duet-header_2.entry.js +1 -1
  266. package/lib/esm/duet-hero.entry.js +1 -1
  267. package/lib/esm/duet-icon.entry.js +1 -1
  268. package/lib/esm/duet-input_2.entry.js +1 -1
  269. package/lib/esm/duet-layout.entry.js +1 -1
  270. package/lib/esm/duet-list_2.entry.js +1 -1
  271. package/lib/esm/duet-modal.entry.js +2 -2
  272. package/lib/esm/duet-multiselect.entry.js +220 -0
  273. package/lib/esm/duet-notification_2.entry.js +1 -1
  274. package/lib/esm/duet-number-input.entry.js +1 -1
  275. package/lib/esm/duet-pagination_2.entry.js +1 -1
  276. package/lib/esm/duet-progress.entry.js +1 -1
  277. package/lib/esm/duet-radio_2.entry.js +1 -1
  278. package/lib/esm/duet-range-slider.entry.js +1 -1
  279. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  280. package/lib/esm/duet-select.entry.js +1 -1
  281. package/lib/esm/duet-step_2.entry.js +1 -1
  282. package/lib/esm/duet-textarea.entry.js +1 -1
  283. package/lib/esm/duet-toggle.entry.js +1 -1
  284. package/lib/esm/duet-tooltip.entry.js +1 -1
  285. package/lib/esm/duet-tray.entry.js +1 -1
  286. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  287. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  288. package/lib/esm/duet.js +2 -2
  289. package/lib/esm/{focus-utils-d7f2dd58.js → focus-utils-f6146965.js} +1 -1
  290. package/lib/esm/{index-5528c321.js → index-81967d12.js} +1 -1
  291. package/lib/esm/loader.js +2 -2
  292. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  293. package/lib/esm-es5/duet-alert.entry.js +1 -1
  294. package/lib/esm-es5/duet-badge.entry.js +1 -1
  295. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  296. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  297. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  298. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  299. package/lib/esm-es5/duet-card.entry.js +1 -1
  300. package/lib/esm-es5/duet-checkbox.entry.js +2 -2
  301. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  302. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  303. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  304. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  305. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  306. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  307. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  308. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  309. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  310. package/lib/esm-es5/duet-footer.entry.js +1 -1
  311. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  312. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  313. package/lib/esm-es5/duet-hero.entry.js +1 -1
  314. package/lib/esm-es5/duet-icon.entry.js +1 -1
  315. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  316. package/lib/esm-es5/duet-layout.entry.js +1 -1
  317. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  318. package/lib/esm-es5/duet-modal.entry.js +1 -1
  319. package/lib/esm-es5/duet-multiselect.entry.js +4 -0
  320. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  321. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  322. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  323. package/lib/esm-es5/duet-progress.entry.js +1 -1
  324. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  325. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  326. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  327. package/lib/esm-es5/duet-select.entry.js +1 -1
  328. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  329. package/lib/esm-es5/duet-textarea.entry.js +2 -2
  330. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  331. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  332. package/lib/esm-es5/duet-tray.entry.js +1 -1
  333. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  334. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  335. package/lib/esm-es5/duet.js +1 -1
  336. package/lib/esm-es5/{focus-utils-d7f2dd58.js → focus-utils-f6146965.js} +1 -1
  337. package/lib/esm-es5/{index-5528c321.js → index-81967d12.js} +1 -1
  338. package/lib/esm-es5/loader.js +1 -1
  339. package/lib/types/components/duet-checkbox/duet-checkbox.d.ts +4 -0
  340. package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +1 -0
  341. package/lib/types/components/duet-multiselect/duet-multiselect.d.ts +137 -0
  342. package/lib/types/components.d.ts +154 -0
  343. package/package.json +8 -7
  344. package/lib/duet/p-1bd40aae.entry.js +0 -4
  345. package/lib/duet/p-45d3e7f3.system.entry.js +0 -4
  346. package/lib/duet/p-bee31561.system.js +0 -4
  347. package/lib/duet/p-c6a32c19.entry.js +0 -4
  348. package/lib/duet/p-e79e0c89.entry.js +0 -4
  349. package/lib/duet/p-ef8288aa.system.entry.js +0 -4
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { h, r as registerInstance, c as createEvent$1, B as Build, H as Host, F as Fragment, g as getElement } from './index-5528c321.js';
4
+ import { h, r as registerInstance, c as createEvent$1, B as Build, H as Host, F as Fragment, g as getElement } from './index-81967d12.js';
5
5
  import { f as formSearch } from './form-search-ea8e19ae.js';
6
6
  import { m as media_query_large } from './tokens-b9d87fda.js';
7
7
  import { d as disableBodyScroll, e as enableBodyScroll } from './bodyScrollLock.es6-61b5e9a4.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-81967d12.js';
5
5
  import { a as actionNewWindowSmall } from './action-new-window-small-1945be91.js';
6
6
  import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
7
7
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { E as Env, r as registerInstance, h, H as Host, g as getElement } from './index-5528c321.js';
4
+ import { E as Env, r as registerInstance, h, H as Host, g as getElement } from './index-81967d12.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { g as getColorByName } from './token-utils-ebf797ab.js';
7
7
  import './tokens.module-385c4cf8.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-81967d12.js';
5
5
  import { f as formSearch } from './form-search-ea8e19ae.js';
6
6
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
7
7
  import { c as createID } from './create-id-981107da.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-81967d12.js';
5
5
  import { i as isInternetExplorer } from './is-internet-explorer-62b3bdbd.js';
6
6
 
7
7
  const duetLayoutCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout{position:relative;padding:0 16px;margin:48px auto 36px}@media (min-width: 36em){.duet-layout{margin-top:72px}}.duet-layout.duet-layout-has-top{margin-top:0}.duet-layout.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout.duet-center{display:flex;align-items:center;justify-content:center;width:100%;max-width:888px}@media (min-width: 36em){.duet-layout.duet-center{padding:0 48px}}@media (min-width: 48em){.duet-layout.duet-center{padding:0 72px}}@media (min-width: 62em){.duet-layout.duet-center{width:100%}}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px;margin-bottom:48px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main,.duet-sidebar,.duet-layout-top,.duet-layout-bottom{display:block;width:100%}.duet-layout-top{position:relative;display:block;width:100%;margin:72px auto 0}.duet-layout-top.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}.duet-layout-top .duet-layout-top-wrapper{padding:0 20px;margin:0 auto}@media (min-width: 36em){.duet-layout-top .duet-layout-top-wrapper{padding:0 28px}}@media (min-width: 62em){.duet-layout-top .duet-layout-top-wrapper{padding:0 56px}}@media (min-width: 76.25em){.duet-layout-top .duet-layout-top-wrapper{max-width:1110px;padding:0}}.duet-center .duet-layout-top-wrapper{max-width:888px}@media (min-width: 36em){.duet-center .duet-layout-top-wrapper{padding:0 48px}}@media (min-width: 48em){.duet-center .duet-layout-top-wrapper{padding:0 72px}}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}.has-sidebar .duet-main{max-width:734px;margin-right:20px}}@media (min-width: 62em){.duet-sidebar{min-width:256px;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container{width:auto;max-width:356px}}@media (min-width: 62em){.duet-sidebar-container.has-tabs{margin-top:89px}}@media (min-width: 62em){.duet-sidebar-container.sticky{position:sticky}.duet-sidebar-container.sticky.with-links{top:calc(3rem + 20px)}.duet-sidebar-container.sticky.without-links{top:calc(4rem + 20px)}}";
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, g as getElement, H as Host } from './index-5528c321.js';
4
+ import { r as registerInstance, h, g as getElement, H as Host } from './index-81967d12.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { w as watchForOptions } from './watch-options-dd55bce8.js';
7
7
 
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-81967d12.js';
5
5
  import { d as disableBodyScroll, e as enableBodyScroll } from './bodyScrollLock.es6-61b5e9a4.js';
6
6
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
7
7
  import { c as createID } from './create-id-981107da.js';
8
- import { f as focusElement, F as FocusGuard } from './focus-utils-d7f2dd58.js';
8
+ import { f as focusElement, F as FocusGuard } from './focus-utils-f6146965.js';
9
9
  import { f as isEscapeKey } from './keyboard-utils-88ea1007.js';
10
10
  import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
11
11
  import './string-utils-5954f458.js';
@@ -0,0 +1,220 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-81967d12.js';
5
+ import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
+ import { c as createID } from './create-id-981107da.js';
7
+ import { f as isEscapeKey, o as isTabKey, n as isEnterKey, d as isArrowLeftKey, b as isArrowUpKey, a as isArrowRightKey, c as isArrowDownKey } from './keyboard-utils-88ea1007.js';
8
+ import { g as getLocaleString } from './language-utils-bf701d37.js';
9
+ import { p as parsePossibleJSON } from './string-utils-5954f458.js';
10
+
11
+ const duetMultiselectCss = "@charset \"UTF-8\";*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;vertical-align:bottom}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (min-width: 36em){:host{width:calc(50% - 16px - 3px)}:host.duet-expand{width:100% !important}}:host(.duet-m-0){margin:0 !important}.duet-multiselect-tooltip{position:absolute;top:12px;right:0}@media (min-width: 48em){.duet-multiselect-tooltip{position:relative;top:4px;right:auto}}.duet-multiselect-placeholder{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:white}.duet-multiselect-container{position:relative;width:100%}.duet-multiselect-wrapper{position:relative;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.25}.duet-theme-turva .duet-multiselect-wrapper{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-multiselect-wrapper::after{content:\"  \"}.duet-multiselect{display:flex;gap:12px;align-items:center;justify-content:flex-start;width:100%;min-width:8rem;padding:12px 14px !important;overflow:hidden;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.5;color:#00294d;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;background:white;border:1px solid #909599;border-radius:4px;transition:150ms ease}.duet-multiselect:hover{border-color:#909599;box-shadow:0 0 0 1px #909599}.duet-theme-turva .duet-multiselect:hover{border-color:#747475;box-shadow:0 0 0 1px #747475}.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:hover{box-shadow:0 0 0 1px #e02a0d}.duet-multiselect:focus,.duet-multiselect.duet-multiselect-active{border-color:#0077b3;outline:0;box-shadow:0 0 0 1px #0077b3;transition:none}.duet-theme-turva .duet-multiselect:focus,.duet-theme-turva .duet-multiselect.duet-multiselect-active{border-color:#171c3a;box-shadow:0 0 0 1px #171c3a}.has-error .duet-multiselect:focus,.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #de2362}.duet-theme-turva.has-error .duet-multiselect:focus,.duet-theme-turva.has-error .duet-multiselect.duet-multiselect-active{box-shadow:0 0 0 1px #e02a0d}.duet-multiselect[disabled]{color:#00294d !important;cursor:default !important;background:#f5f8fa !important;border-color:#f5f8fa !important;box-shadow:none !important;opacity:1 !important;-webkit-text-fill-color:#00294d !important}.duet-theme-turva .duet-multiselect[disabled]{color:#171c3a !important;background:#f5f5f7 !important;border-color:#f5f5f7 !important;-webkit-text-fill-color:#171c3a !important}.duet-multiselect>:first-child{flex:1}.duet-multiselect .duet-multiselect-badge{position:absolute;right:3rem}.has-error .duet-multiselect{border-color:#de2362 !important}.has-error .duet-multiselect .duet-multiselect-icon{color:#de2362 !important}.duet-theme-turva.has-error .duet-multiselect{border-color:#e02a0d !important}.duet-theme-turva.has-error .duet-multiselect .duet-multiselect-icon{color:#e02a0d !important}.duet-theme-turva .duet-multiselect{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:#171c3a;border-color:#747475}.duet-multiselect svg{width:20px;height:20px;color:#00294d;pointer-events:none}.duet-theme-turva .duet-multiselect svg{color:#171c3a}.duet-multiselect svg.duet-multiselect-icon--rotate{transform:rotate(180deg)}.duet-multiselect-checkboxes{position:absolute;z-index:700;width:100%;padding:16px;margin:8px 0 0;visibility:hidden;background:white;border:1px solid #e1e3e6;border-radius:4px;box-shadow:0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transition:transform 300ms ease, opacity 300ms ease, visibility 300ms ease;transform:scale(0.96) translateZ(0) translateY(-20px);transform-origin:top right}.duet-theme-turva .duet-multiselect-checkboxes{background:white;border-color:#e4e4e6;box-shadow:0 4px 10px 0 rgba(23, 28, 58, 0.15)}.duet-multiselect-checkboxes.duet-multiselect-checkboxes-active{visibility:visible;opacity:1;transition-property:transform, opacity;transform:scale(1.0001) translateZ(0) translateY(0)}.duet-multiselect-help{display:block;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:400;line-height:1.25;color:#657787;border-radius:4px}.duet-multiselect-help span{display:block;margin-top:8px}.duet-theme-turva .duet-multiselect-help{color:#747475}.has-error .duet-multiselect-help{color:#de2362}.duet-theme-turva.has-error .duet-multiselect-help{color:#e02a0d}.duet-label-hidden duet-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}";
12
+
13
+ function toggleInArray(arr, item) {
14
+ return arr.includes(item) ? arr.filter(i => i !== item) : [...arr, item];
15
+ }
16
+ const DuetMultiselect = class {
17
+ constructor(hostRef) {
18
+ registerInstance(this, hostRef);
19
+ this.duetChange = createEvent(this, "duetChange", 3);
20
+ this.duetFocus = createEvent(this, "duetFocus", 7);
21
+ this.duetBlur = createEvent(this, "duetBlur", 7);
22
+ /**
23
+ * Own Properties
24
+ */
25
+ this.errorId = createID("DuetError");
26
+ this.labelId = createID("DuetLabel");
27
+ this.topCaptionId = createID("DuetCaptionTop");
28
+ this.selectedLangObject = {
29
+ en: "selected",
30
+ fi: "valittu",
31
+ sv: "vald",
32
+ };
33
+ /**
34
+ * State() variables
35
+ * Inlined decorator, alphabetical order.
36
+ */
37
+ this.processedItems = [];
38
+ this.checkboxesVisible = false;
39
+ this.activeDescendant = "";
40
+ /**
41
+ * Controls the margin of the component.
42
+ */
43
+ this.margin = "auto";
44
+ /**
45
+ * Display the select in error state along with an error message.
46
+ */
47
+ this.error = "";
48
+ /**
49
+ * Expands the input to fill 100% of the container width.
50
+ */
51
+ this.expand = false;
52
+ /**
53
+ * Value of multiselect
54
+ */
55
+ this.value = [];
56
+ /**
57
+ * Theme of the select.
58
+ */
59
+ this.theme = "";
60
+ /**
61
+ * Visually hide the label, but still show it to screen readers.
62
+ */
63
+ this.labelHidden = false;
64
+ /**
65
+ * Adds a unique identifier for the select.
66
+ */
67
+ this.identifier = createID("DuetMultiselect");
68
+ /**
69
+ * Hint text to display.
70
+ */
71
+ this.placeholder = "";
72
+ /**
73
+ * Makes the select component disabled. This prevents users from being able
74
+ * to interact with the select, and conveys its inactive state to assistive
75
+ * technologies.
76
+ */
77
+ this.disabled = false;
78
+ /**
79
+ * Label for the select.
80
+ */
81
+ this.label = "label";
82
+ /**
83
+ * Tooltip to display next to the label of the input.
84
+ */
85
+ this.tooltip = "";
86
+ /**
87
+ * With direction setting you can force the tooltip to always open towards left
88
+ * or right instead of automatically determining the direction.
89
+ */
90
+ this.tooltipDirection = "auto";
91
+ /**
92
+ * Component event handling.
93
+ */
94
+ this.onClick = (ev) => {
95
+ ev.stopPropagation();
96
+ };
97
+ this.onChange = (ev) => {
98
+ this.duetChange.emit({
99
+ originalEvent: ev,
100
+ value: this.value,
101
+ component: "duet-multiselect",
102
+ });
103
+ };
104
+ this.onBlur = (ev) => {
105
+ this.duetBlur.emit({
106
+ originalEvent: ev,
107
+ value: this.value,
108
+ component: "duet-multiselect",
109
+ });
110
+ };
111
+ this.onFocus = (ev) => {
112
+ this.duetFocus.emit({
113
+ originalEvent: ev,
114
+ value: this.value,
115
+ component: "duet-multiselect",
116
+ });
117
+ };
118
+ this.onMultiselectKeyDown = (e) => {
119
+ if (isEscapeKey(e) || isTabKey(e)) {
120
+ if (this.checkboxesVisible) {
121
+ this.checkboxesVisible = false;
122
+ this.multiselectElement.focus();
123
+ e.preventDefault();
124
+ }
125
+ }
126
+ };
127
+ this.onMultiselectInputKeyDown = (e) => {
128
+ if (isEnterKey(e)) {
129
+ e.preventDefault();
130
+ this.toggleCheckboxes();
131
+ setTimeout(() => {
132
+ if (this.checkboxesVisible) {
133
+ const firstOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(0)}`);
134
+ if (firstOption) {
135
+ firstOption.focus();
136
+ }
137
+ }
138
+ }, 200);
139
+ }
140
+ };
141
+ this.onCheckboxKeyDown = (e, key) => {
142
+ let nextOption;
143
+ if (isArrowLeftKey(e) || isArrowUpKey(e)) {
144
+ nextOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(key - 1)}`);
145
+ }
146
+ else if (isArrowRightKey(e) || isArrowDownKey(e)) {
147
+ nextOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(key + 1)}`);
148
+ }
149
+ if (nextOption) {
150
+ nextOption.focus();
151
+ e.preventDefault();
152
+ this.activeDescendant = nextOption.id;
153
+ }
154
+ };
155
+ this.toggleCheckboxes = () => {
156
+ this.checkboxesVisible = !this.checkboxesVisible;
157
+ };
158
+ this.toggleCheckbox = (e, item) => {
159
+ this.value = toggleInArray(this.value, item);
160
+ this.onChange(e);
161
+ };
162
+ this.getOptionIdentifier = (key) => {
163
+ return `${this.identifier}-option-${key}`;
164
+ };
165
+ }
166
+ /**
167
+ * Component lifecycle events.
168
+ */
169
+ componentWillLoad() {
170
+ inheritGlobalTheme(this);
171
+ this.isCaptionVisible = !!this.caption;
172
+ this.refresh();
173
+ }
174
+ /**
175
+ * Sets focus on the specified `duet-multiselect`. Use this method instead of the global
176
+ * `multiselect.focus()`.
177
+ */
178
+ async setFocus(options) {
179
+ if (this.multiselectElement) {
180
+ this.multiselectElement.focus(options);
181
+ }
182
+ }
183
+ /**
184
+ * Local methods.
185
+ */
186
+ async refresh() {
187
+ this.processedItems = parsePossibleJSON(this.items);
188
+ }
189
+ /**
190
+ * render() function
191
+ * Always the last one in the class.
192
+ */
193
+ render() {
194
+ const selectedTranslation = getLocaleString(this.selectedLangObject);
195
+ return (h(Host, { onClick: this.onClick, class: {
196
+ "duet-m-0": this.margin === "none",
197
+ "duet-expand": this.expand,
198
+ } }, h("div", { class: {
199
+ "duet-multiselect-container": true,
200
+ "duet-label-hidden": this.labelHidden,
201
+ "duet-theme-turva": this.theme === "turva",
202
+ "duet-input-top-caption-shown": this.isCaptionVisible,
203
+ "has-error": !!this.error,
204
+ }, onKeyDown: (e) => this.onMultiselectKeyDown(e) }, h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, id: this.labelId, for: this.identifier }, this.label), this.tooltip && (h("duet-tooltip", { class: "duet-multiselect-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)), h("div", { class: "duet-multiselect-wrapper" }, h("button", { id: this.identifier, ref: el => (this.multiselectElement = el), class: { "duet-multiselect": true, "duet-multiselect-active": this.checkboxesVisible }, tabindex: "0", onClick: () => this.toggleCheckboxes(), onFocus: e => this.onFocus(e), onBlur: e => this.onBlur(e), role: "combobox", "aria-expanded": this.checkboxesVisible ? "true" : "false", "aria-haspopup": "listbox", "aria-labelledby": `${this.labelId} ${this.errorId}`, "aria-owns": `${this.identifier}-checkboxes`, onKeyDown: (e) => this.onMultiselectInputKeyDown(e), disabled: this.disabled }, h("span", { role: "textbox", "aria-readonly": "true", "aria-multiline": "false", "aria-autocomplete": "none", "aria-controls": `${this.identifier}-checkboxes` }, this.placeholder), this.value && this.value.length > 0 && (h("duet-badge", { class: "duet-multiselect-badge", margin: "none", theme: this.theme }, this.value.length, " ", selectedTranslation, h("duet-visually-hidden", null, ", ", this.value.map(item => item.label).join(", ")))), h("svg", { role: "img", class: { "duet-multiselect-icon": true, "duet-multiselect-icon--rotate": this.checkboxesVisible }, fill: "currentColor", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "m12 18.999c-.4 0-.776-.156-1.059-.438l-10.721-10.72c-.142-.142-.22-.33-.22-.531 0-.2.078-.389.22-.53.142-.142.33-.22.53-.22s.389.078.53.22l10.72 10.719 10.72-10.719c.142-.142.33-.22.53-.22s.389.078.53.22c.142.142.22.33.22.53s-.078.389-.22.53l-10.72 10.72c-.282.283-.659.439-1.06.439z" }))), h("div", { id: `${this.identifier}-checkboxes`, role: "listbox", class: {
205
+ "duet-multiselect-checkboxes": true,
206
+ "duet-multiselect-checkboxes-active": this.checkboxesVisible,
207
+ }, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, this.processedItems &&
208
+ this.processedItems.map((item, key) => {
209
+ var _a, _b;
210
+ return (h("duet-checkbox", { identifier: this.getOptionIdentifier(key), role: "option", label: item.label, value: item.value, key: item.value, checked: (_a = this.value) === null || _a === void 0 ? void 0 : _a.includes(item), "accessible-selected": ((_b = this.value) === null || _b === void 0 ? void 0 : _b.includes(item)) ? "true" : undefined, disabled: !this.checkboxesVisible || item.disabled, onDuetChange: e => this.toggleCheckbox(e, item), onKeyDown: (e) => this.onCheckboxKeyDown(e, key), theme: this.theme }));
211
+ }))), h("span", { class: "duet-multiselect-help", id: this.errorId, "aria-live": "assertive", "aria-relevant": "additions removals" }, this.error && h("span", null, this.error)))));
212
+ }
213
+ get element() { return getElement(this); }
214
+ static get watchers() { return {
215
+ "items": ["refresh"]
216
+ }; }
217
+ };
218
+ DuetMultiselect.style = duetMultiselectCss;
219
+
220
+ export { DuetMultiselect as duet_multiselect };
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, h, g as getElement } from './index-81967d12.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
7
7
  import { a as actionArrowDownSmall } from './action-arrow-down-small-82273dc8.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-81967d12.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { a as isArrowRightKey, b as isArrowUpKey, c as isArrowDownKey, d as isArrowLeftKey, e as isBackspaceKey } from './keyboard-utils-88ea1007.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-81967d12.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { d as debounce } from './js-utils-fa98b8cd.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-81967d12.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { g as getLocaleString } from './language-utils-bf701d37.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-81967d12.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { f as findCheckedOption, w as watchForOptions } from './watch-options-dd55bce8.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-81967d12.js';
5
5
  import { c as colorPrimaryTurva, a as colorGrayTurva, b as colorPrimary, d as colorGray } from './tokens.module-385c4cf8.js';
6
6
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
7
7
  import { c as createID } from './create-id-981107da.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-5528c321.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } from './index-81967d12.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { g as getLocaleString, a as getLanguage } from './language-utils-bf701d37.js';
7
7
  import { c as createID } from './create-id-981107da.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-81967d12.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { p as parsePossibleJSON } from './string-utils-5954f458.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-5528c321.js';
4
+ import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-81967d12.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { i as isKeyboardClick } from './keyboard-utils-88ea1007.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-81967d12.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { c as cleanValue } from './input-utils-de45e099.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-81967d12.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-81967d12.js';
5
5
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
6
6
  import { c as createID } from './create-id-981107da.js';
7
7
  import { a as getLanguage, g as getLocaleString } from './language-utils-bf701d37.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, F as Fragment, g as getElement } from './index-5528c321.js';
4
+ import { r as registerInstance, h, F as Fragment, g as getElement } from './index-81967d12.js';
5
5
  import { s as sizeHeader } from './tokens.module-385c4cf8.js';
6
6
  import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
7
7
  import { c as createID } from './create-id-981107da.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-5528c321.js';
4
+ import { r as registerInstance, h, H as Host } from './index-81967d12.js';
5
5
 
6
6
  const DuetUploadAriaStatus = class {
7
7
  constructor(hostRef) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { r as registerInstance, h, H as Host } from './index-5528c321.js';
4
+ import { r as registerInstance, h, H as Host } from './index-81967d12.js';
5
5
 
6
6
  const duetVisuallyHiddenCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}";
7
7