@duetds/components 6.0.7 → 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 (346) hide show
  1. package/hydrate/index.js +246 -5
  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 +1 -1
  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 +2 -2
  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 +3 -2
  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-46880ee6.js → focus-utils-5bf92cc0.js} +1 -1
  47. package/lib/cjs/{index-54afad07.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-checkbox/duet-checkbox.js +23 -1
  51. package/lib/collection/components/duet-editable-table/duet-editable-table.js +2 -1
  52. package/lib/collection/components/duet-multiselect/duet-multiselect.css +261 -0
  53. package/lib/collection/components/duet-multiselect/duet-multiselect.js +597 -0
  54. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  55. package/lib/dist-custom-elements/duet-alert.js +1 -1
  56. package/lib/dist-custom-elements/duet-badge.js +1 -1
  57. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  58. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  59. package/lib/dist-custom-elements/duet-button.js +1 -1
  60. package/lib/dist-custom-elements/duet-caption.js +1 -1
  61. package/lib/dist-custom-elements/duet-card.js +3 -3
  62. package/lib/dist-custom-elements/duet-checkbox.js +1 -155
  63. package/lib/dist-custom-elements/duet-choice-group.js +6 -6
  64. package/lib/dist-custom-elements/duet-choice.js +5 -5
  65. package/lib/dist-custom-elements/duet-collapsible.js +2 -2
  66. package/lib/dist-custom-elements/duet-combobox.js +3 -3
  67. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  68. package/lib/dist-custom-elements/duet-date-picker.js +8 -8
  69. package/lib/dist-custom-elements/duet-divider.js +1 -1
  70. package/lib/dist-custom-elements/duet-editable-table.js +1 -1
  71. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  72. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  73. package/lib/dist-custom-elements/duet-footer.js +4 -4
  74. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  75. package/lib/dist-custom-elements/duet-grid.js +1 -1
  76. package/lib/dist-custom-elements/duet-header.js +8 -8
  77. package/lib/dist-custom-elements/duet-heading.js +1 -1
  78. package/lib/dist-custom-elements/duet-hero.js +9 -9
  79. package/lib/dist-custom-elements/duet-icon.js +1 -1
  80. package/lib/dist-custom-elements/duet-input.js +1 -1
  81. package/lib/dist-custom-elements/duet-label.js +1 -1
  82. package/lib/dist-custom-elements/duet-layout.js +1 -1
  83. package/lib/dist-custom-elements/duet-link.js +1 -1
  84. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  85. package/lib/dist-custom-elements/duet-list.js +1 -1
  86. package/lib/dist-custom-elements/duet-logo.js +1 -1
  87. package/lib/dist-custom-elements/duet-modal.js +7 -7
  88. package/lib/dist-custom-elements/duet-multiselect.d.ts +11 -0
  89. package/lib/dist-custom-elements/duet-multiselect.js +299 -0
  90. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  91. package/lib/dist-custom-elements/duet-notification.js +2 -2
  92. package/lib/dist-custom-elements/duet-number-input.js +7 -7
  93. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  94. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  95. package/lib/dist-custom-elements/duet-progress.js +1 -1
  96. package/lib/dist-custom-elements/duet-radio-group.js +6 -6
  97. package/lib/dist-custom-elements/duet-radio.js +1 -1
  98. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  99. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  100. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  101. package/lib/dist-custom-elements/duet-select.js +1 -1
  102. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  103. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  104. package/lib/dist-custom-elements/duet-step.js +4 -4
  105. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  106. package/lib/dist-custom-elements/duet-tab-group.js +8 -8
  107. package/lib/dist-custom-elements/duet-tab.js +1 -1
  108. package/lib/dist-custom-elements/duet-table.js +1 -1
  109. package/lib/dist-custom-elements/duet-textarea.js +8 -8
  110. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  111. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  112. package/lib/dist-custom-elements/duet-tray.js +3 -3
  113. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  114. package/lib/dist-custom-elements/duet-upload.js +18 -18
  115. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  116. package/lib/dist-custom-elements/index.js +1 -1
  117. package/lib/dist-custom-elements/{p-a56649ff.js → p-025242f2.js} +6 -6
  118. package/lib/dist-custom-elements/{p-b7f5c755.js → p-14799264.js} +1 -1
  119. package/lib/dist-custom-elements/{p-bf876e72.js → p-15cca1fa.js} +2 -2
  120. package/lib/dist-custom-elements/{p-c36d9eb5.js → p-260d7413.js} +1 -1
  121. package/lib/dist-custom-elements/{p-f07d95b9.js → p-2b6e0098.js} +1 -1
  122. package/lib/dist-custom-elements/{p-fbb39f58.js → p-35856a5f.js} +1 -1
  123. package/lib/dist-custom-elements/{p-2215e15e.js → p-3f5248cc.js} +6 -6
  124. package/lib/dist-custom-elements/p-3f9960ee.js +165 -0
  125. package/lib/dist-custom-elements/{p-836021e7.js → p-40964c90.js} +2 -2
  126. package/lib/dist-custom-elements/{p-068d8815.js → p-4dd0d2e0.js} +1 -1
  127. package/lib/dist-custom-elements/{p-dfb36895.js → p-5368b90e.js} +1 -1
  128. package/lib/dist-custom-elements/{p-a081f721.js → p-5c30c1e6.js} +3 -3
  129. package/lib/dist-custom-elements/{p-59480ad8.js → p-6352244e.js} +1 -1
  130. package/lib/dist-custom-elements/{p-2f73ed5f.js → p-76a12869.js} +2 -2
  131. package/lib/dist-custom-elements/{p-f23c23e9.js → p-84036192.js} +3 -3
  132. package/lib/dist-custom-elements/{p-565c7b5e.js → p-983633e4.js} +1 -1
  133. package/lib/dist-custom-elements/{p-0a3b3fbb.js → p-a0188402.js} +4 -4
  134. package/lib/dist-custom-elements/{p-f20bce7d.js → p-a10df7a8.js} +1 -1
  135. package/lib/dist-custom-elements/{p-01a47ed0.js → p-a19a3c64.js} +1 -1
  136. package/lib/dist-custom-elements/{p-85e4dd88.js → p-a720eb56.js} +2 -2
  137. package/lib/dist-custom-elements/{p-3185bbc5.js → p-b125807e.js} +1 -1
  138. package/lib/dist-custom-elements/{p-fe39bfb6.js → p-b828da80.js} +9 -8
  139. package/lib/dist-custom-elements/{p-3426a84c.js → p-c2260d50.js} +2 -2
  140. package/lib/dist-custom-elements/{p-12a61b16.js → p-c2c3e421.js} +1 -1
  141. package/lib/dist-custom-elements/{p-d05492d6.js → p-dde39f08.js} +1 -1
  142. package/lib/dist-custom-elements/{p-1940df2f.js → p-df05a117.js} +1 -1
  143. package/lib/dist-custom-elements/{p-10a1a3da.js → p-e06d804b.js} +1 -1
  144. package/lib/dist-custom-elements/{p-4e94138b.js → p-e436e97c.js} +5 -5
  145. package/lib/dist-custom-elements/{p-c8517782.js → p-eef3373f.js} +1 -1
  146. package/lib/dist-custom-elements/{p-f42b7c16.js → p-f06badc1.js} +3 -3
  147. package/lib/dist-custom-elements/{p-76a78894.js → p-f5d54803.js} +1 -1
  148. package/lib/duet/duet.esm.js +1 -1
  149. package/lib/duet/duet.js +1 -1
  150. package/lib/duet/{p-f020f7b9.entry.js → p-07c53212.entry.js} +1 -1
  151. package/lib/duet/{p-1219c251.system.js → p-08c8edc7.system.js} +1 -1
  152. package/lib/duet/{p-b4ffca84.system.entry.js → p-0bc10576.system.entry.js} +1 -1
  153. package/lib/duet/{p-d4bb0408.entry.js → p-0c1fdd7c.entry.js} +1 -1
  154. package/lib/duet/{p-c16f5680.system.entry.js → p-1034d5d8.system.entry.js} +1 -1
  155. package/lib/duet/{p-794e74ca.system.entry.js → p-10a9fe19.system.entry.js} +1 -1
  156. package/lib/duet/{p-6372465a.entry.js → p-134bbc67.entry.js} +1 -1
  157. package/lib/duet/{p-0ef9099d.system.entry.js → p-17213a02.system.entry.js} +1 -1
  158. package/lib/duet/{p-187a788e.entry.js → p-18c2588a.entry.js} +1 -1
  159. package/lib/duet/{p-6e648879.entry.js → p-1e8365c3.entry.js} +1 -1
  160. package/lib/duet/{p-00030749.entry.js → p-20df1f28.entry.js} +1 -1
  161. package/lib/duet/{p-46f86392.entry.js → p-24b890e9.entry.js} +1 -1
  162. package/lib/duet/{p-d74d81a1.system.entry.js → p-2957055a.system.entry.js} +1 -1
  163. package/lib/duet/{p-9587a804.entry.js → p-2a2b5109.entry.js} +1 -1
  164. package/lib/duet/{p-c1c11d71.system.entry.js → p-2b7f998c.system.entry.js} +1 -1
  165. package/lib/duet/{p-14e9ccd4.entry.js → p-2b822122.entry.js} +1 -1
  166. package/lib/duet/{p-90e58b7f.entry.js → p-2d906752.entry.js} +1 -1
  167. package/lib/duet/p-2f183314.js +4 -0
  168. package/lib/duet/p-3166de44.entry.js +4 -0
  169. package/lib/duet/{p-8ff5cb03.entry.js → p-3287e496.entry.js} +1 -1
  170. package/lib/duet/{p-f92491e1.entry.js → p-33814c22.entry.js} +1 -1
  171. package/lib/duet/p-33bbde60.entry.js +4 -0
  172. package/lib/duet/{p-9f51f625.entry.js → p-351fbda4.entry.js} +1 -1
  173. package/lib/duet/{p-7ba68318.system.entry.js → p-35351cf2.system.entry.js} +1 -1
  174. package/lib/duet/{p-e7f779ed.entry.js → p-363c6807.entry.js} +1 -1
  175. package/lib/duet/{p-f40277da.system.entry.js → p-3ab707be.system.entry.js} +1 -1
  176. package/lib/duet/{p-faf74d63.entry.js → p-3f6487d8.entry.js} +1 -1
  177. package/lib/duet/{p-d674ef21.entry.js → p-4056c348.entry.js} +1 -1
  178. package/lib/duet/{p-3fd6ad80.entry.js → p-48f15ed7.entry.js} +1 -1
  179. package/lib/duet/{p-f8ae4f24.system.entry.js → p-4a97bbae.system.entry.js} +1 -1
  180. package/lib/duet/{p-92c491d9.entry.js → p-4c3bfd8a.entry.js} +1 -1
  181. package/lib/duet/{p-9cb0def1.system.entry.js → p-4d6b04f1.system.entry.js} +1 -1
  182. package/lib/duet/{p-1fd65b6a.system.entry.js → p-4fee02ae.system.entry.js} +1 -1
  183. package/lib/duet/{p-a3ca26e9.system.entry.js → p-5174a8af.system.entry.js} +1 -1
  184. package/lib/duet/{p-9f37c7e3.entry.js → p-545177af.entry.js} +1 -1
  185. package/lib/duet/{p-cacad773.system.entry.js → p-55f8c851.system.entry.js} +1 -1
  186. package/lib/duet/{p-39c02539.system.entry.js → p-5f4a200f.system.entry.js} +1 -1
  187. package/lib/duet/{p-5116e9b7.system.entry.js → p-69d0a2ce.system.entry.js} +1 -1
  188. package/lib/duet/{p-177abbdc.system.entry.js → p-6cc20670.system.entry.js} +1 -1
  189. package/lib/duet/{p-ff4995cc.entry.js → p-6d2d9897.entry.js} +1 -1
  190. package/lib/duet/{p-3dadf26a.system.entry.js → p-6def950d.system.entry.js} +1 -1
  191. package/lib/duet/{p-50081b36.entry.js → p-709654f2.entry.js} +1 -1
  192. package/lib/duet/{p-59edf7bc.system.entry.js → p-73c3092e.system.entry.js} +1 -1
  193. package/lib/duet/{p-c4a44c55.system.entry.js → p-79eada30.system.entry.js} +1 -1
  194. package/lib/duet/{p-108f093f.system.entry.js → p-7ed493e6.system.entry.js} +1 -1
  195. package/lib/duet/{p-d98eedc7.entry.js → p-88e3d858.entry.js} +1 -1
  196. package/lib/duet/{p-607eb013.entry.js → p-88eabc52.entry.js} +1 -1
  197. package/lib/duet/{p-be4c1b3f.entry.js → p-89b3c614.entry.js} +1 -1
  198. package/lib/duet/{p-8b0fef4c.system.entry.js → p-8c17003f.system.entry.js} +1 -1
  199. package/lib/duet/p-8c2a2440.entry.js +4 -0
  200. package/lib/duet/p-8cea8546.system.js +4 -0
  201. package/lib/duet/{p-24210b97.system.entry.js → p-8db9e436.system.entry.js} +1 -1
  202. package/lib/duet/{p-8baa5bd1.system.entry.js → p-9343afe6.system.entry.js} +1 -1
  203. package/lib/duet/{p-5d160b76.system.entry.js → p-95340ddf.system.entry.js} +1 -1
  204. package/lib/duet/p-97b281b2.system.entry.js +4 -0
  205. package/lib/duet/{p-bd85d575.entry.js → p-9c2d276b.entry.js} +1 -1
  206. package/lib/duet/{p-70a1a9bf.system.js → p-9e9b3182.system.js} +1 -1
  207. package/lib/duet/{p-13cdbe65.entry.js → p-9ff90002.entry.js} +1 -1
  208. package/lib/duet/{p-50551874.entry.js → p-a4acf397.entry.js} +1 -1
  209. package/lib/duet/{p-a44366ba.entry.js → p-a883b01d.entry.js} +1 -1
  210. package/lib/duet/{p-dcb5d509.system.entry.js → p-a8e38895.system.entry.js} +1 -1
  211. package/lib/duet/{p-d267c3a2.entry.js → p-aba4b236.entry.js} +1 -1
  212. package/lib/duet/{p-c76ec371.system.entry.js → p-b0b61064.system.entry.js} +1 -1
  213. package/lib/duet/p-b2a940b5.system.entry.js +4 -0
  214. package/lib/duet/{p-b44ae985.system.entry.js → p-b2da699d.system.entry.js} +1 -1
  215. package/lib/duet/{p-63b7a28e.system.entry.js → p-bdbe682d.system.entry.js} +2 -2
  216. package/lib/duet/{p-7088d347.entry.js → p-be9d7718.entry.js} +1 -1
  217. package/lib/duet/{p-0082ff0a.system.entry.js → p-bedf7cb7.system.entry.js} +1 -1
  218. package/lib/duet/{p-3054a69d.entry.js → p-c055fcd1.entry.js} +1 -1
  219. package/lib/duet/{p-f3e7fc61.system.entry.js → p-c8a46ebb.system.entry.js} +1 -1
  220. package/lib/duet/{p-dbdaec86.entry.js → p-c8e84baf.entry.js} +1 -1
  221. package/lib/duet/{p-444b7187.system.entry.js → p-cc7f44f9.system.entry.js} +1 -1
  222. package/lib/duet/{p-58eeed4f.system.entry.js → p-cf9027e3.system.entry.js} +1 -1
  223. package/lib/duet/{p-889cf32a.system.entry.js → p-d2a55128.system.entry.js} +1 -1
  224. package/lib/duet/{p-0433b19b.entry.js → p-d4a24199.entry.js} +1 -1
  225. package/lib/duet/{p-dc163c6e.entry.js → p-d50688a8.entry.js} +1 -1
  226. package/lib/duet/p-d8ae3650.system.entry.js +4 -0
  227. package/lib/duet/{p-16f67902.system.entry.js → p-db2cfc87.system.entry.js} +1 -1
  228. package/lib/duet/{p-ed8d9d14.system.entry.js → p-db9db173.system.entry.js} +1 -1
  229. package/lib/duet/{p-6a49efbc.js → p-dc6fd9c6.js} +1 -1
  230. package/lib/duet/{p-69b0c916.system.entry.js → p-e13a54c8.system.entry.js} +1 -1
  231. package/lib/duet/{p-6be76f1d.entry.js → p-e19ba091.entry.js} +1 -1
  232. package/lib/duet/p-e2adbecc.entry.js +4 -0
  233. package/lib/duet/{p-afdf9c1c.system.entry.js → p-e4c320e2.system.entry.js} +1 -1
  234. package/lib/duet/{p-e873306b.system.entry.js → p-e86917b0.system.entry.js} +1 -1
  235. package/lib/duet/{p-933a2bd0.system.entry.js → p-f01eb4ea.system.entry.js} +1 -1
  236. package/lib/duet/p-f493ae81.entry.js +4 -0
  237. package/lib/duet/{p-7e3d7a7e.system.entry.js → p-f6240801.system.entry.js} +1 -1
  238. package/lib/duet/{p-00228a70.entry.js → p-f827b4b6.entry.js} +1 -1
  239. package/lib/duet/{p-b0bf6662.entry.js → p-fb97dc52.entry.js} +1 -1
  240. package/lib/duet/{p-b77057b8.entry.js → p-fd1ed521.entry.js} +1 -1
  241. package/lib/esm/duet-action-button.entry.js +1 -1
  242. package/lib/esm/duet-alert.entry.js +1 -1
  243. package/lib/esm/duet-badge.entry.js +1 -1
  244. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  245. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  246. package/lib/esm/duet-button_2.entry.js +1 -1
  247. package/lib/esm/duet-caption_4.entry.js +1 -1
  248. package/lib/esm/duet-card.entry.js +1 -1
  249. package/lib/esm/duet-checkbox.entry.js +6 -2
  250. package/lib/esm/duet-choice_2.entry.js +2 -2
  251. package/lib/esm/duet-collapsible.entry.js +1 -1
  252. package/lib/esm/duet-combobox.entry.js +1 -1
  253. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  254. package/lib/esm/duet-date-picker.entry.js +2 -2
  255. package/lib/esm/duet-divider_2.entry.js +1 -1
  256. package/lib/esm/duet-editable-table_3.entry.js +3 -2
  257. package/lib/esm/duet-empty-state.entry.js +1 -1
  258. package/lib/esm/duet-fieldset.entry.js +1 -1
  259. package/lib/esm/duet-footer.entry.js +1 -1
  260. package/lib/esm/duet-grid_2.entry.js +1 -1
  261. package/lib/esm/duet-header_2.entry.js +1 -1
  262. package/lib/esm/duet-hero.entry.js +1 -1
  263. package/lib/esm/duet-icon.entry.js +1 -1
  264. package/lib/esm/duet-input_2.entry.js +1 -1
  265. package/lib/esm/duet-layout.entry.js +1 -1
  266. package/lib/esm/duet-list_2.entry.js +1 -1
  267. package/lib/esm/duet-modal.entry.js +2 -2
  268. package/lib/esm/duet-multiselect.entry.js +220 -0
  269. package/lib/esm/duet-notification_2.entry.js +1 -1
  270. package/lib/esm/duet-number-input.entry.js +1 -1
  271. package/lib/esm/duet-pagination_2.entry.js +1 -1
  272. package/lib/esm/duet-progress.entry.js +1 -1
  273. package/lib/esm/duet-radio_2.entry.js +1 -1
  274. package/lib/esm/duet-range-slider.entry.js +1 -1
  275. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  276. package/lib/esm/duet-select.entry.js +1 -1
  277. package/lib/esm/duet-step_2.entry.js +1 -1
  278. package/lib/esm/duet-textarea.entry.js +1 -1
  279. package/lib/esm/duet-toggle.entry.js +1 -1
  280. package/lib/esm/duet-tooltip.entry.js +1 -1
  281. package/lib/esm/duet-tray.entry.js +1 -1
  282. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  283. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  284. package/lib/esm/duet.js +2 -2
  285. package/lib/esm/{focus-utils-d5499410.js → focus-utils-f6146965.js} +1 -1
  286. package/lib/esm/{index-26388161.js → index-81967d12.js} +1 -1
  287. package/lib/esm/loader.js +2 -2
  288. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  289. package/lib/esm-es5/duet-alert.entry.js +1 -1
  290. package/lib/esm-es5/duet-badge.entry.js +1 -1
  291. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  292. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  293. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  294. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  295. package/lib/esm-es5/duet-card.entry.js +1 -1
  296. package/lib/esm-es5/duet-checkbox.entry.js +2 -2
  297. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  298. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  299. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  300. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  301. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  302. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  303. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  304. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  305. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  306. package/lib/esm-es5/duet-footer.entry.js +1 -1
  307. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  308. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  309. package/lib/esm-es5/duet-hero.entry.js +1 -1
  310. package/lib/esm-es5/duet-icon.entry.js +1 -1
  311. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  312. package/lib/esm-es5/duet-layout.entry.js +1 -1
  313. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  314. package/lib/esm-es5/duet-modal.entry.js +1 -1
  315. package/lib/esm-es5/duet-multiselect.entry.js +4 -0
  316. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  317. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  318. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  319. package/lib/esm-es5/duet-progress.entry.js +1 -1
  320. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  321. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  322. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  323. package/lib/esm-es5/duet-select.entry.js +1 -1
  324. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  325. package/lib/esm-es5/duet-textarea.entry.js +2 -2
  326. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  327. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  328. package/lib/esm-es5/duet-tray.entry.js +1 -1
  329. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  330. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  331. package/lib/esm-es5/duet.js +1 -1
  332. package/lib/esm-es5/{focus-utils-d5499410.js → focus-utils-f6146965.js} +1 -1
  333. package/lib/esm-es5/{index-26388161.js → index-81967d12.js} +1 -1
  334. package/lib/esm-es5/loader.js +1 -1
  335. package/lib/types/components/duet-checkbox/duet-checkbox.d.ts +4 -0
  336. package/lib/types/components/duet-multiselect/duet-multiselect.d.ts +137 -0
  337. package/lib/types/components.d.ts +154 -0
  338. package/package.json +8 -7
  339. package/lib/duet/p-159ce776.js +0 -4
  340. package/lib/duet/p-1d7bd203.system.entry.js +0 -4
  341. package/lib/duet/p-661839a3.entry.js +0 -4
  342. package/lib/duet/p-6caf3423.entry.js +0 -4
  343. package/lib/duet/p-c1d755c9.system.entry.js +0 -4
  344. package/lib/duet/p-e30dc26c.entry.js +0 -4
  345. package/lib/duet/p-e52ea726.entry.js +0 -4
  346. package/lib/duet/p-e841deb6.system.js +0 -4
@@ -0,0 +1,597 @@
1
+ /*!
2
+ * Built with Duet Design System
3
+ */
4
+ import { Component, Element, Event, h, Host, Method, Prop, State, Watch } from "@stencil/core";
5
+ import { inheritGlobalTheme } from "../../common/themeable-component";
6
+ import { createID } from "../../utils/create-id";
7
+ import { isArrowDownKey, isArrowLeftKey, isArrowRightKey, isArrowUpKey, isEnterKey, isEscapeKey, isTabKey, } from "../../utils/keyboard-utils";
8
+ import { getLocaleString } from "../../utils/language-utils";
9
+ import { parsePossibleJSON } from "../../utils/string-utils";
10
+ function toggleInArray(arr, item) {
11
+ return arr.includes(item) ? arr.filter(i => i !== item) : [...arr, item];
12
+ }
13
+ export class DuetMultiselect {
14
+ constructor() {
15
+ /**
16
+ * Own Properties
17
+ */
18
+ this.errorId = createID("DuetError");
19
+ this.labelId = createID("DuetLabel");
20
+ this.topCaptionId = createID("DuetCaptionTop");
21
+ this.selectedLangObject = {
22
+ en: "selected",
23
+ fi: "valittu",
24
+ sv: "vald",
25
+ };
26
+ /**
27
+ * State() variables
28
+ * Inlined decorator, alphabetical order.
29
+ */
30
+ this.processedItems = [];
31
+ this.checkboxesVisible = false;
32
+ this.activeDescendant = "";
33
+ /**
34
+ * Controls the margin of the component.
35
+ */
36
+ this.margin = "auto";
37
+ /**
38
+ * Display the select in error state along with an error message.
39
+ */
40
+ this.error = "";
41
+ /**
42
+ * Expands the input to fill 100% of the container width.
43
+ */
44
+ this.expand = false;
45
+ /**
46
+ * Value of multiselect
47
+ */
48
+ this.value = [];
49
+ /**
50
+ * Theme of the select.
51
+ */
52
+ this.theme = "";
53
+ /**
54
+ * Visually hide the label, but still show it to screen readers.
55
+ */
56
+ this.labelHidden = false;
57
+ /**
58
+ * Adds a unique identifier for the select.
59
+ */
60
+ this.identifier = createID("DuetMultiselect");
61
+ /**
62
+ * Hint text to display.
63
+ */
64
+ this.placeholder = "";
65
+ /**
66
+ * Makes the select component disabled. This prevents users from being able
67
+ * to interact with the select, and conveys its inactive state to assistive
68
+ * technologies.
69
+ */
70
+ this.disabled = false;
71
+ /**
72
+ * Label for the select.
73
+ */
74
+ this.label = "label";
75
+ /**
76
+ * Tooltip to display next to the label of the input.
77
+ */
78
+ this.tooltip = "";
79
+ /**
80
+ * With direction setting you can force the tooltip to always open towards left
81
+ * or right instead of automatically determining the direction.
82
+ */
83
+ this.tooltipDirection = "auto";
84
+ /**
85
+ * Component event handling.
86
+ */
87
+ this.onClick = (ev) => {
88
+ ev.stopPropagation();
89
+ };
90
+ this.onChange = (ev) => {
91
+ this.duetChange.emit({
92
+ originalEvent: ev,
93
+ value: this.value,
94
+ component: "duet-multiselect",
95
+ });
96
+ };
97
+ this.onBlur = (ev) => {
98
+ this.duetBlur.emit({
99
+ originalEvent: ev,
100
+ value: this.value,
101
+ component: "duet-multiselect",
102
+ });
103
+ };
104
+ this.onFocus = (ev) => {
105
+ this.duetFocus.emit({
106
+ originalEvent: ev,
107
+ value: this.value,
108
+ component: "duet-multiselect",
109
+ });
110
+ };
111
+ this.onMultiselectKeyDown = (e) => {
112
+ if (isEscapeKey(e) || isTabKey(e)) {
113
+ if (this.checkboxesVisible) {
114
+ this.checkboxesVisible = false;
115
+ this.multiselectElement.focus();
116
+ e.preventDefault();
117
+ }
118
+ }
119
+ };
120
+ this.onMultiselectInputKeyDown = (e) => {
121
+ if (isEnterKey(e)) {
122
+ e.preventDefault();
123
+ this.toggleCheckboxes();
124
+ setTimeout(() => {
125
+ if (this.checkboxesVisible) {
126
+ const firstOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(0)}`);
127
+ if (firstOption) {
128
+ firstOption.focus();
129
+ }
130
+ }
131
+ }, 200);
132
+ }
133
+ };
134
+ this.onCheckboxKeyDown = (e, key) => {
135
+ let nextOption;
136
+ if (isArrowLeftKey(e) || isArrowUpKey(e)) {
137
+ nextOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(key - 1)}`);
138
+ }
139
+ else if (isArrowRightKey(e) || isArrowDownKey(e)) {
140
+ nextOption = this.element.shadowRoot.querySelector(`#${this.getOptionIdentifier(key + 1)}`);
141
+ }
142
+ if (nextOption) {
143
+ nextOption.focus();
144
+ e.preventDefault();
145
+ this.activeDescendant = nextOption.id;
146
+ }
147
+ };
148
+ this.toggleCheckboxes = () => {
149
+ this.checkboxesVisible = !this.checkboxesVisible;
150
+ };
151
+ this.toggleCheckbox = (e, item) => {
152
+ this.value = toggleInArray(this.value, item);
153
+ this.onChange(e);
154
+ };
155
+ this.getOptionIdentifier = (key) => {
156
+ return `${this.identifier}-option-${key}`;
157
+ };
158
+ }
159
+ /**
160
+ * Component lifecycle events.
161
+ */
162
+ componentWillLoad() {
163
+ inheritGlobalTheme(this);
164
+ this.isCaptionVisible = !!this.caption;
165
+ this.refresh();
166
+ }
167
+ /**
168
+ * Sets focus on the specified `duet-multiselect`. Use this method instead of the global
169
+ * `multiselect.focus()`.
170
+ */
171
+ async setFocus(options) {
172
+ if (this.multiselectElement) {
173
+ this.multiselectElement.focus(options);
174
+ }
175
+ }
176
+ /**
177
+ * Local methods.
178
+ */
179
+ async refresh() {
180
+ this.processedItems = parsePossibleJSON(this.items);
181
+ }
182
+ /**
183
+ * render() function
184
+ * Always the last one in the class.
185
+ */
186
+ render() {
187
+ const selectedTranslation = getLocaleString(this.selectedLangObject);
188
+ return (h(Host, { onClick: this.onClick, class: {
189
+ "duet-m-0": this.margin === "none",
190
+ "duet-expand": this.expand,
191
+ } },
192
+ h("div", { class: {
193
+ "duet-multiselect-container": true,
194
+ "duet-label-hidden": this.labelHidden,
195
+ "duet-theme-turva": this.theme === "turva",
196
+ "duet-input-top-caption-shown": this.isCaptionVisible,
197
+ "has-error": !!this.error,
198
+ }, onKeyDown: (e) => this.onMultiselectKeyDown(e) },
199
+ h("duet-label", { theme: this.theme === "turva" ? "turva" : "default", class: { "duet-has-tooltip": !!this.tooltip }, id: this.labelId, for: this.identifier }, this.label),
200
+ this.tooltip && (h("duet-tooltip", { class: "duet-multiselect-tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)),
201
+ this.caption && (h("duet-caption", { id: this.topCaptionId, size: "medium" }, this.caption)),
202
+ h("div", { class: "duet-multiselect-wrapper" },
203
+ 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 },
204
+ h("span", { role: "textbox", "aria-readonly": "true", "aria-multiline": "false", "aria-autocomplete": "none", "aria-controls": `${this.identifier}-checkboxes` }, this.placeholder),
205
+ this.value && this.value.length > 0 && (h("duet-badge", { class: "duet-multiselect-badge", margin: "none", theme: this.theme },
206
+ this.value.length,
207
+ " ",
208
+ selectedTranslation,
209
+ h("duet-visually-hidden", null,
210
+ ", ",
211
+ this.value.map(item => item.label).join(", ")))),
212
+ 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" },
213
+ 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" }))),
214
+ h("div", { id: `${this.identifier}-checkboxes`, role: "listbox", class: {
215
+ "duet-multiselect-checkboxes": true,
216
+ "duet-multiselect-checkboxes-active": this.checkboxesVisible,
217
+ }, "aria-activedescendant": this.activeDescendant, "aria-multiselectable": "true" }, this.processedItems &&
218
+ this.processedItems.map((item, key) => {
219
+ var _a, _b;
220
+ 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 }));
221
+ }))),
222
+ h("span", { class: "duet-multiselect-help", id: this.errorId, "aria-live": "assertive", "aria-relevant": "additions removals" }, this.error && h("span", null, this.error)))));
223
+ }
224
+ static get is() { return "duet-multiselect"; }
225
+ static get encapsulation() { return "shadow"; }
226
+ static get originalStyleUrls() { return {
227
+ "$": ["duet-multiselect.scss"]
228
+ }; }
229
+ static get styleUrls() { return {
230
+ "$": ["duet-multiselect.css"]
231
+ }; }
232
+ static get properties() { return {
233
+ "margin": {
234
+ "type": "string",
235
+ "mutable": false,
236
+ "complexType": {
237
+ "original": "DuetMargin",
238
+ "resolved": "\"auto\" | \"none\"",
239
+ "references": {
240
+ "DuetMargin": {
241
+ "location": "import",
242
+ "path": "../../common-types"
243
+ }
244
+ }
245
+ },
246
+ "required": false,
247
+ "optional": false,
248
+ "docs": {
249
+ "tags": [],
250
+ "text": "Controls the margin of the component."
251
+ },
252
+ "attribute": "margin",
253
+ "reflect": false,
254
+ "defaultValue": "\"auto\""
255
+ },
256
+ "error": {
257
+ "type": "string",
258
+ "mutable": false,
259
+ "complexType": {
260
+ "original": "string",
261
+ "resolved": "string",
262
+ "references": {}
263
+ },
264
+ "required": false,
265
+ "optional": false,
266
+ "docs": {
267
+ "tags": [],
268
+ "text": "Display the select in error state along with an error message."
269
+ },
270
+ "attribute": "error",
271
+ "reflect": false,
272
+ "defaultValue": "\"\""
273
+ },
274
+ "expand": {
275
+ "type": "boolean",
276
+ "mutable": false,
277
+ "complexType": {
278
+ "original": "boolean",
279
+ "resolved": "boolean",
280
+ "references": {}
281
+ },
282
+ "required": false,
283
+ "optional": false,
284
+ "docs": {
285
+ "tags": [],
286
+ "text": "Expands the input to fill 100% of the container width."
287
+ },
288
+ "attribute": "expand",
289
+ "reflect": false,
290
+ "defaultValue": "false"
291
+ },
292
+ "value": {
293
+ "type": "unknown",
294
+ "mutable": true,
295
+ "complexType": {
296
+ "original": "DuetMultiselectItem[]",
297
+ "resolved": "DuetMultiselectItem[]",
298
+ "references": {
299
+ "DuetMultiselectItem": {
300
+ "location": "local"
301
+ }
302
+ }
303
+ },
304
+ "required": false,
305
+ "optional": false,
306
+ "docs": {
307
+ "tags": [],
308
+ "text": "Value of multiselect"
309
+ },
310
+ "defaultValue": "[]"
311
+ },
312
+ "theme": {
313
+ "type": "string",
314
+ "mutable": true,
315
+ "complexType": {
316
+ "original": "DuetTheme",
317
+ "resolved": "\"\" | \"default\" | \"turva\"",
318
+ "references": {
319
+ "DuetTheme": {
320
+ "location": "import",
321
+ "path": "../../common-types"
322
+ }
323
+ }
324
+ },
325
+ "required": false,
326
+ "optional": false,
327
+ "docs": {
328
+ "tags": [],
329
+ "text": "Theme of the select."
330
+ },
331
+ "attribute": "theme",
332
+ "reflect": false,
333
+ "defaultValue": "\"\""
334
+ },
335
+ "labelHidden": {
336
+ "type": "boolean",
337
+ "mutable": false,
338
+ "complexType": {
339
+ "original": "boolean",
340
+ "resolved": "boolean",
341
+ "references": {}
342
+ },
343
+ "required": false,
344
+ "optional": false,
345
+ "docs": {
346
+ "tags": [],
347
+ "text": "Visually hide the label, but still show it to screen readers."
348
+ },
349
+ "attribute": "label-hidden",
350
+ "reflect": false,
351
+ "defaultValue": "false"
352
+ },
353
+ "identifier": {
354
+ "type": "string",
355
+ "mutable": false,
356
+ "complexType": {
357
+ "original": "string",
358
+ "resolved": "string",
359
+ "references": {}
360
+ },
361
+ "required": false,
362
+ "optional": false,
363
+ "docs": {
364
+ "tags": [],
365
+ "text": "Adds a unique identifier for the select."
366
+ },
367
+ "attribute": "identifier",
368
+ "reflect": false,
369
+ "defaultValue": "createID(\"DuetMultiselect\")"
370
+ },
371
+ "placeholder": {
372
+ "type": "string",
373
+ "mutable": false,
374
+ "complexType": {
375
+ "original": "string",
376
+ "resolved": "string",
377
+ "references": {}
378
+ },
379
+ "required": false,
380
+ "optional": false,
381
+ "docs": {
382
+ "tags": [],
383
+ "text": "Hint text to display."
384
+ },
385
+ "attribute": "placeholder",
386
+ "reflect": false,
387
+ "defaultValue": "\"\""
388
+ },
389
+ "caption": {
390
+ "type": "string",
391
+ "mutable": false,
392
+ "complexType": {
393
+ "original": "string",
394
+ "resolved": "string",
395
+ "references": {}
396
+ },
397
+ "required": false,
398
+ "optional": false,
399
+ "docs": {
400
+ "tags": [],
401
+ "text": "Caption (underneath label) that can be set as a way of adding extra information"
402
+ },
403
+ "attribute": "caption",
404
+ "reflect": false
405
+ },
406
+ "items": {
407
+ "type": "string",
408
+ "mutable": false,
409
+ "complexType": {
410
+ "original": "string | DuetMultiselectItem[]",
411
+ "resolved": "DuetMultiselectItem[] | string",
412
+ "references": {
413
+ "DuetMultiselectItem": {
414
+ "location": "local"
415
+ }
416
+ }
417
+ },
418
+ "required": false,
419
+ "optional": false,
420
+ "docs": {
421
+ "tags": [],
422
+ "text": "An array of items to choose from"
423
+ },
424
+ "attribute": "items",
425
+ "reflect": false
426
+ },
427
+ "disabled": {
428
+ "type": "boolean",
429
+ "mutable": false,
430
+ "complexType": {
431
+ "original": "boolean",
432
+ "resolved": "boolean",
433
+ "references": {}
434
+ },
435
+ "required": false,
436
+ "optional": false,
437
+ "docs": {
438
+ "tags": [],
439
+ "text": "Makes the select component disabled. This prevents users from being able\nto interact with the select, and conveys its inactive state to assistive\ntechnologies."
440
+ },
441
+ "attribute": "disabled",
442
+ "reflect": true,
443
+ "defaultValue": "false"
444
+ },
445
+ "label": {
446
+ "type": "string",
447
+ "mutable": false,
448
+ "complexType": {
449
+ "original": "string",
450
+ "resolved": "string",
451
+ "references": {}
452
+ },
453
+ "required": false,
454
+ "optional": false,
455
+ "docs": {
456
+ "tags": [],
457
+ "text": "Label for the select."
458
+ },
459
+ "attribute": "label",
460
+ "reflect": false,
461
+ "defaultValue": "\"label\""
462
+ },
463
+ "tooltip": {
464
+ "type": "string",
465
+ "mutable": false,
466
+ "complexType": {
467
+ "original": "string",
468
+ "resolved": "string",
469
+ "references": {}
470
+ },
471
+ "required": false,
472
+ "optional": false,
473
+ "docs": {
474
+ "tags": [],
475
+ "text": "Tooltip to display next to the label of the input."
476
+ },
477
+ "attribute": "tooltip",
478
+ "reflect": false,
479
+ "defaultValue": "\"\""
480
+ },
481
+ "tooltipDirection": {
482
+ "type": "string",
483
+ "mutable": false,
484
+ "complexType": {
485
+ "original": "DuetTooltipDirection",
486
+ "resolved": "\"auto\" | \"left\" | \"right\"",
487
+ "references": {
488
+ "DuetTooltipDirection": {
489
+ "location": "import",
490
+ "path": "../../common-types"
491
+ }
492
+ }
493
+ },
494
+ "required": false,
495
+ "optional": false,
496
+ "docs": {
497
+ "tags": [],
498
+ "text": "With direction setting you can force the tooltip to always open towards left\nor right instead of automatically determining the direction."
499
+ },
500
+ "attribute": "tooltip-direction",
501
+ "reflect": false,
502
+ "defaultValue": "\"auto\""
503
+ }
504
+ }; }
505
+ static get states() { return {
506
+ "processedItems": {},
507
+ "checkboxesVisible": {},
508
+ "activeDescendant": {}
509
+ }; }
510
+ static get events() { return [{
511
+ "method": "duetChange",
512
+ "name": "duetChange",
513
+ "bubbles": false,
514
+ "cancelable": true,
515
+ "composed": true,
516
+ "docs": {
517
+ "tags": [],
518
+ "text": "Callback for when the value changed."
519
+ },
520
+ "complexType": {
521
+ "original": "DuetMultiselectEvent",
522
+ "resolved": "{ originalEvent?: Event; component: \"duet-multiselect\"; value: DuetMultiselectItem[]; }",
523
+ "references": {
524
+ "DuetMultiselectEvent": {
525
+ "location": "local"
526
+ }
527
+ }
528
+ }
529
+ }, {
530
+ "method": "duetFocus",
531
+ "name": "duetFocus",
532
+ "bubbles": true,
533
+ "cancelable": true,
534
+ "composed": true,
535
+ "docs": {
536
+ "tags": [],
537
+ "text": "Emitted when the select has focus."
538
+ },
539
+ "complexType": {
540
+ "original": "DuetMultiselectEvent",
541
+ "resolved": "{ originalEvent?: Event; component: \"duet-multiselect\"; value: DuetMultiselectItem[]; }",
542
+ "references": {
543
+ "DuetMultiselectEvent": {
544
+ "location": "local"
545
+ }
546
+ }
547
+ }
548
+ }, {
549
+ "method": "duetBlur",
550
+ "name": "duetBlur",
551
+ "bubbles": true,
552
+ "cancelable": true,
553
+ "composed": true,
554
+ "docs": {
555
+ "tags": [],
556
+ "text": "Emitted when the select loses focus."
557
+ },
558
+ "complexType": {
559
+ "original": "DuetMultiselectEvent",
560
+ "resolved": "{ originalEvent?: Event; component: \"duet-multiselect\"; value: DuetMultiselectItem[]; }",
561
+ "references": {
562
+ "DuetMultiselectEvent": {
563
+ "location": "local"
564
+ }
565
+ }
566
+ }
567
+ }]; }
568
+ static get methods() { return {
569
+ "setFocus": {
570
+ "complexType": {
571
+ "signature": "(options?: FocusOptions) => Promise<void>",
572
+ "parameters": [{
573
+ "tags": [],
574
+ "text": ""
575
+ }],
576
+ "references": {
577
+ "Promise": {
578
+ "location": "global"
579
+ },
580
+ "FocusOptions": {
581
+ "location": "global"
582
+ }
583
+ },
584
+ "return": "Promise<void>"
585
+ },
586
+ "docs": {
587
+ "text": "Sets focus on the specified `duet-multiselect`. Use this method instead of the global\n`multiselect.focus()`.",
588
+ "tags": []
589
+ }
590
+ }
591
+ }; }
592
+ static get elementRef() { return "element"; }
593
+ static get watchers() { return [{
594
+ "propName": "items",
595
+ "methodName": "refresh"
596
+ }]; }
597
+ }
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-f42b7c16.js';
4
+ import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-f06badc1.js';
5
5
 
6
6
  const DuetActionButton = DuetActionButton$1;
7
7
  const defineCustomElement = defineCustomElement$1;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-4e94138b.js';
4
+ import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-e436e97c.js';
5
5
 
6
6
  const DuetAlert = DuetAlert$1;
7
7
  const defineCustomElement = defineCustomElement$1;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-fbb39f58.js';
4
+ import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-35856a5f.js';
5
5
 
6
6
  const DuetBadge = DuetBadge$1;
7
7
  const defineCustomElement = defineCustomElement$1;
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { p as proxyCustomElement, H, h, b as Host } from './p-1940df2f.js';
4
+ import { p as proxyCustomElement, H, h, b as Host } from './p-df05a117.js';
5
5
  import { i as inheritGlobalTheme } from './p-4ebf1618.js';
6
- import { d as defineCustomElement$2 } from './p-565c7b5e.js';
6
+ import { d as defineCustomElement$2 } from './p-983633e4.js';
7
7
 
8
8
  const duetBreadcrumbCss = "*,*::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;width:100%}.duet-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;height:100%;font-size:0.875rem;color:#00294d;text-decoration:none}.duet-breadcrumb:hover{color:#004d80}.duet-breadcrumb.duet-theme-turva{color:#171c3a}.duet-breadcrumb.duet-theme-turva:hover{color:#940925}.duet-breadcrumb:focus{outline:0}.duet-breadcrumb:active{opacity:0.75}:host(.user-is-tabbing) .duet-breadcrumb:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px #0077b3}:host(.user-is-tabbing) .duet-breadcrumb.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px #171c3a}";
9
9
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { p as proxyCustomElement, H, h, F as Fragment, b as Host } from './p-1940df2f.js';
4
+ import { p as proxyCustomElement, H, h, F as Fragment, b as Host } from './p-df05a117.js';
5
5
  import { i as inheritGlobalTheme } from './p-4ebf1618.js';
6
6
  import { g as getLocaleString } from './p-ede854e1.js';
7
- import { d as defineCustomElement$2 } from './p-565c7b5e.js';
7
+ import { d as defineCustomElement$2 } from './p-983633e4.js';
8
8
 
9
9
  var actionArrowRightSmall={"title":"action-arrow-right-small","tags":"action arrow right small caret","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M19.5 12a2.3 2.3 0 0 1-.78 1.729L7.568 23.54a1.847 1.847 0 0 1-2.439-2.773l9.752-8.579a.25.25 0 0 0 0-.376L5.129 3.233A1.847 1.847 0 0 1 7.568.46l11.148 9.808A2.31 2.31 0 0 1 19.5 12z\"/></svg>"};
10
10
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { D as DuetButton$1, d as defineCustomElement$1 } from './p-0a3b3fbb.js';
4
+ import { D as DuetButton$1, d as defineCustomElement$1 } from './p-a0188402.js';
5
5
 
6
6
  const DuetButton = DuetButton$1;
7
7
  const defineCustomElement = defineCustomElement$1;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import { D as DuetCaption$1, d as defineCustomElement$1 } from './p-f20bce7d.js';
4
+ import { D as DuetCaption$1, d as defineCustomElement$1 } from './p-a10df7a8.js';
5
5
 
6
6
  const DuetCaption = DuetCaption$1;
7
7
  const defineCustomElement = defineCustomElement$1;