genesys-spark-components 3.5.0 → 3.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (437) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/{en-3662eafc.js → en-3d7b896f.js} +3 -1
  3. package/dist/cjs/genesys-webcomponents.cjs.js +2 -2
  4. package/dist/cjs/gux-accordion-legacy.cjs.entry.js +2 -2
  5. package/dist/cjs/gux-accordion-section.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-accordion.cjs.entry.js +2 -2
  7. package/dist/cjs/gux-action-button-legacy.cjs.entry.js +4 -4
  8. package/dist/cjs/gux-action-button.cjs.entry.js +4 -4
  9. package/dist/cjs/gux-action-item.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-action-list-divider.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-action-list-legacy.cjs.entry.js +2 -2
  12. package/dist/cjs/gux-action-toast.cjs.entry.js +2 -2
  13. package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +3 -3
  14. package/dist/cjs/gux-all-row-select.cjs.entry.js +3 -3
  15. package/dist/cjs/gux-badge-beta.cjs.entry.js +3 -3
  16. package/dist/cjs/gux-breadcrumb-item.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +3 -3
  18. package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +3 -3
  19. package/dist/cjs/gux-button-multi.cjs.entry.js +3 -3
  20. package/dist/cjs/gux-button-slot-beta.cjs.entry.js +2 -2
  21. package/dist/cjs/gux-button.cjs.entry.js +2 -2
  22. package/dist/cjs/gux-calendar.cjs.entry.js +3 -3
  23. package/dist/cjs/gux-card-beta.cjs.entry.js +2 -2
  24. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +2 -2
  25. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +2 -2
  26. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +2 -2
  27. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +2 -2
  28. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +2 -2
  29. package/dist/cjs/gux-color-select_2.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-command-action.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +3 -3
  32. package/dist/cjs/gux-content-search.cjs.entry.js +3 -3
  33. package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +3 -3
  34. package/dist/cjs/gux-datepicker.cjs.entry.js +4 -4
  35. package/dist/cjs/gux-disclosure-button.cjs.entry.js +3 -3
  36. package/dist/cjs/gux-dismiss-button.cjs.entry.js +3 -3
  37. package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +4 -4
  38. package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +297 -0
  39. package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +58 -0
  40. package/dist/cjs/gux-dropdown-option.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-dropdown_3.cjs.entry.js +30 -178
  42. package/dist/cjs/gux-error-message-beta.cjs.entry.js +2 -2
  43. package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +2 -2
  44. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +8 -8
  45. package/dist/cjs/gux-form-field-color.cjs.entry.js +10 -10
  46. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +91 -0
  47. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +3 -3
  48. package/dist/cjs/{gux-form-field-label-d5088b51.js → gux-form-field-label-abbb7396.js} +1 -1
  49. package/dist/cjs/gux-form-field-legacy.cjs.entry.js +3 -3
  50. package/dist/cjs/gux-form-field-number.cjs.entry.js +13 -13
  51. package/dist/cjs/gux-form-field-radio.cjs.entry.js +8 -8
  52. package/dist/cjs/gux-form-field-range.cjs.entry.js +10 -10
  53. package/dist/cjs/gux-form-field-search.cjs.entry.js +12 -12
  54. package/dist/cjs/gux-form-field-select.cjs.entry.js +10 -10
  55. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +12 -12
  56. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +10 -10
  57. package/dist/cjs/{gux-form-field.servce-e9451c50.js → gux-form-field.service-21126f1d.js} +1 -1
  58. package/dist/cjs/gux-icon.cjs.entry.js +2 -2
  59. package/dist/cjs/gux-input-checkbox_7.cjs.entry.js +2 -2
  60. package/dist/cjs/gux-input-search.cjs.entry.js +2 -2
  61. package/dist/cjs/gux-input-text-like.cjs.entry.js +2 -2
  62. package/dist/cjs/gux-list-divider-legacy.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-list-divider.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +2 -2
  65. package/dist/cjs/gux-list-item.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-list.cjs.entry.js +2 -2
  67. package/dist/cjs/gux-listbox-multi.cjs.entry.js +159 -0
  68. package/dist/cjs/gux-listbox.service-d394da79.js +161 -0
  69. package/dist/cjs/gux-menu-option.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-menu.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-modal.cjs.entry.js +2 -2
  72. package/dist/cjs/gux-notification-toast.cjs.entry.js +2 -2
  73. package/dist/cjs/gux-option-legacy.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-option-multi.cjs.entry.js +47 -0
  75. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +2 -2
  76. package/dist/cjs/gux-pagination-beta.cjs.entry.js +2 -2
  77. package/dist/cjs/gux-pagination-buttons-beta_3.cjs.entry.js +2 -2
  78. package/dist/cjs/gux-pagination-buttons_3.cjs.entry.js +2 -2
  79. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +3 -3
  80. package/dist/cjs/gux-pagination.cjs.entry.js +2 -2
  81. package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +2 -2
  82. package/dist/cjs/gux-popover-list.cjs.entry.js +3 -3
  83. package/dist/cjs/gux-popover.cjs.entry.js +3 -3
  84. package/dist/cjs/gux-popup.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-radial-loading.cjs.entry.js +3 -3
  86. package/dist/cjs/gux-radial-progress.cjs.entry.js +2 -2
  87. package/dist/cjs/gux-rating.cjs.entry.js +2 -2
  88. package/dist/cjs/gux-row-select.cjs.entry.js +3 -3
  89. package/dist/cjs/gux-side-panel-button.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +2 -2
  91. package/dist/cjs/gux-simple-toast.cjs.entry.js +2 -2
  92. package/dist/cjs/gux-sort-control.cjs.entry.js +42 -0
  93. package/dist/cjs/gux-submenu.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-switch-item.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-switch.cjs.entry.js +2 -2
  96. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +3 -3
  97. package/dist/cjs/gux-tab-advanced-panel.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-tab-advanced.cjs.entry.js +2 -2
  99. package/dist/cjs/gux-tab-dropdown-option-legacy.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-tab-legacy.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-tab-list.cjs.entry.js +19 -2
  102. package/dist/cjs/gux-tab-panel.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-tab.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-table-beta.cjs.entry.js +47 -31
  105. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +2 -2
  106. package/dist/cjs/gux-tabs-legacy.cjs.entry.js +3 -3
  107. package/dist/cjs/gux-tabs.cjs.entry.js +2 -2
  108. package/dist/cjs/gux-tag-beta.cjs.entry.js +3 -3
  109. package/dist/cjs/gux-text-highlight.cjs.entry.js +2 -2
  110. package/dist/cjs/gux-text-label-legacy.cjs.entry.js +2 -2
  111. package/dist/cjs/gux-time-picker-beta.cjs.entry.js +4 -4
  112. package/dist/cjs/gux-toggle-slider.cjs.entry.js +1 -1
  113. package/dist/cjs/gux-toggle.cjs.entry.js +3 -3
  114. package/dist/cjs/gux-tooltip_2.cjs.entry.js +3 -3
  115. package/dist/cjs/gux-visualization-beta.cjs.entry.js +3 -3
  116. package/dist/cjs/{index-33b1b88e.js → index-525cfec0.js} +30 -4
  117. package/dist/cjs/{index-2202ad01.js → index-57ec1998.js} +1 -1
  118. package/dist/cjs/loader.cjs.js +2 -2
  119. package/dist/cjs/{on-click-outside-246a1eb3.js → on-click-outside-e0d28eff.js} +1 -1
  120. package/dist/cjs/{on-mutation-2e4dd956.js → on-mutation-347de78d.js} +1 -1
  121. package/dist/cjs/{usage-tracking-1ddbe5f1.js → usage-tracking-39a72be3.js} +1 -1
  122. package/dist/collection/collection-manifest.json +6 -0
  123. package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.css +50 -0
  124. package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.js +116 -0
  125. package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi.css +151 -0
  126. package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi.js +458 -0
  127. package/dist/collection/components/beta/gux-table/gux-sort-control/gux-sort-control.css +39 -0
  128. package/dist/collection/components/beta/gux-table/gux-sort-control/gux-sort-control.js +50 -0
  129. package/dist/collection/components/beta/gux-table/gux-table.js +43 -27
  130. package/dist/collection/components/beta/gux-tag/gux-tag.js +0 -17
  131. package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +19 -0
  132. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +1 -1
  133. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +1 -1
  134. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.css +153 -0
  135. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +126 -0
  136. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +1 -1
  137. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +1 -1
  138. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +1 -1
  139. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +1 -1
  140. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +1 -1
  141. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.js +1 -1
  142. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +1 -1
  143. package/dist/collection/components/stable/gux-form-field/{gux-form-field.servce.js → gux-form-field.service.js} +0 -0
  144. package/dist/collection/components/stable/gux-listbox/gux-listbox.js +7 -9
  145. package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.css +23 -0
  146. package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.js +269 -0
  147. package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.css +45 -0
  148. package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.js +167 -0
  149. package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.js +13 -0
  150. package/dist/deploy-info.json +3 -3
  151. package/dist/esm/{en-07edddda.js → en-d22521fc.js} +3 -1
  152. package/dist/esm/genesys-webcomponents.js +2 -2
  153. package/dist/esm/gux-accordion-legacy.entry.js +2 -2
  154. package/dist/esm/gux-accordion-section.entry.js +1 -1
  155. package/dist/esm/gux-accordion.entry.js +2 -2
  156. package/dist/esm/gux-action-button-legacy.entry.js +4 -4
  157. package/dist/esm/gux-action-button.entry.js +4 -4
  158. package/dist/esm/gux-action-item.entry.js +1 -1
  159. package/dist/esm/gux-action-list-divider.entry.js +1 -1
  160. package/dist/esm/gux-action-list-legacy.entry.js +2 -2
  161. package/dist/esm/gux-action-toast.entry.js +2 -2
  162. package/dist/esm/gux-advanced-dropdown.entry.js +3 -3
  163. package/dist/esm/gux-all-row-select.entry.js +3 -3
  164. package/dist/esm/gux-badge-beta.entry.js +3 -3
  165. package/dist/esm/gux-breadcrumb-item.entry.js +1 -1
  166. package/dist/esm/gux-breadcrumbs.entry.js +3 -3
  167. package/dist/esm/gux-button-multi-legacy.entry.js +3 -3
  168. package/dist/esm/gux-button-multi.entry.js +3 -3
  169. package/dist/esm/gux-button-slot-beta.entry.js +2 -2
  170. package/dist/esm/gux-button.entry.js +2 -2
  171. package/dist/esm/gux-calendar.entry.js +3 -3
  172. package/dist/esm/gux-card-beta.entry.js +2 -2
  173. package/dist/esm/gux-chart-column-beta.entry.js +2 -2
  174. package/dist/esm/gux-chart-donut-beta.entry.js +2 -2
  175. package/dist/esm/gux-chart-line-beta.entry.js +2 -2
  176. package/dist/esm/gux-chart-pie-beta.entry.js +2 -2
  177. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +2 -2
  178. package/dist/esm/gux-color-select_2.entry.js +1 -1
  179. package/dist/esm/gux-command-action.entry.js +1 -1
  180. package/dist/esm/gux-command-palette-legacy.entry.js +3 -3
  181. package/dist/esm/gux-content-search.entry.js +3 -3
  182. package/dist/esm/gux-copy-to-clipboard-beta.entry.js +3 -3
  183. package/dist/esm/gux-datepicker.entry.js +4 -4
  184. package/dist/esm/gux-disclosure-button.entry.js +3 -3
  185. package/dist/esm/gux-dismiss-button.entry.js +3 -3
  186. package/dist/esm/gux-dropdown-legacy.entry.js +4 -4
  187. package/dist/esm/gux-dropdown-multi-beta.entry.js +293 -0
  188. package/dist/esm/gux-dropdown-multi-tag.entry.js +54 -0
  189. package/dist/esm/gux-dropdown-option.entry.js +1 -1
  190. package/dist/esm/gux-dropdown_3.entry.js +12 -160
  191. package/dist/esm/gux-error-message-beta.entry.js +2 -2
  192. package/dist/esm/gux-flyout-menu-beta.entry.js +2 -2
  193. package/dist/esm/gux-form-field-checkbox.entry.js +4 -4
  194. package/dist/esm/gux-form-field-color.entry.js +5 -5
  195. package/dist/esm/gux-form-field-dropdown.entry.js +87 -0
  196. package/dist/esm/gux-form-field-input-clear-button.entry.js +3 -3
  197. package/dist/esm/{gux-form-field-label-ac49a8be.js → gux-form-field-label-1d0c1a02.js} +1 -1
  198. package/dist/esm/gux-form-field-legacy.entry.js +3 -3
  199. package/dist/esm/gux-form-field-number.entry.js +6 -6
  200. package/dist/esm/gux-form-field-radio.entry.js +4 -4
  201. package/dist/esm/gux-form-field-range.entry.js +5 -5
  202. package/dist/esm/gux-form-field-search.entry.js +5 -5
  203. package/dist/esm/gux-form-field-select.entry.js +5 -5
  204. package/dist/esm/gux-form-field-text-like.entry.js +5 -5
  205. package/dist/esm/gux-form-field-textarea.entry.js +5 -5
  206. package/dist/esm/{gux-form-field.servce-971609e2.js → gux-form-field.service-4bfd6534.js} +1 -1
  207. package/dist/esm/gux-icon.entry.js +2 -2
  208. package/dist/esm/gux-input-checkbox_7.entry.js +2 -2
  209. package/dist/esm/gux-input-search.entry.js +2 -2
  210. package/dist/esm/gux-input-text-like.entry.js +2 -2
  211. package/dist/esm/gux-list-divider-legacy.entry.js +1 -1
  212. package/dist/esm/gux-list-divider.entry.js +1 -1
  213. package/dist/esm/gux-list-item-legacy_2.entry.js +2 -2
  214. package/dist/esm/gux-list-item.entry.js +1 -1
  215. package/dist/esm/gux-list.entry.js +2 -2
  216. package/dist/esm/gux-listbox-multi.entry.js +155 -0
  217. package/dist/esm/gux-listbox.service-3541a2f7.js +148 -0
  218. package/dist/esm/gux-menu-option.entry.js +1 -1
  219. package/dist/esm/gux-menu.entry.js +1 -1
  220. package/dist/esm/gux-modal.entry.js +2 -2
  221. package/dist/esm/gux-notification-toast.entry.js +2 -2
  222. package/dist/esm/gux-option-legacy.entry.js +1 -1
  223. package/dist/esm/gux-option-multi.entry.js +43 -0
  224. package/dist/esm/gux-page-loading-spinner.entry.js +2 -2
  225. package/dist/esm/gux-pagination-beta.entry.js +2 -2
  226. package/dist/esm/gux-pagination-buttons-beta_3.entry.js +2 -2
  227. package/dist/esm/gux-pagination-buttons_3.entry.js +2 -2
  228. package/dist/esm/gux-pagination-cursor.entry.js +3 -3
  229. package/dist/esm/gux-pagination.entry.js +2 -2
  230. package/dist/esm/gux-panel-frame-legacy.entry.js +2 -2
  231. package/dist/esm/gux-popover-list.entry.js +3 -3
  232. package/dist/esm/gux-popover.entry.js +3 -3
  233. package/dist/esm/gux-popup.entry.js +1 -1
  234. package/dist/esm/gux-radial-loading.entry.js +3 -3
  235. package/dist/esm/gux-radial-progress.entry.js +2 -2
  236. package/dist/esm/gux-rating.entry.js +2 -2
  237. package/dist/esm/gux-row-select.entry.js +3 -3
  238. package/dist/esm/gux-side-panel-button.entry.js +1 -1
  239. package/dist/esm/gux-side-panel-legacy.entry.js +2 -2
  240. package/dist/esm/gux-simple-toast.entry.js +2 -2
  241. package/dist/esm/gux-sort-control.entry.js +38 -0
  242. package/dist/esm/gux-submenu.entry.js +1 -1
  243. package/dist/esm/gux-switch-item.entry.js +1 -1
  244. package/dist/esm/gux-switch.entry.js +2 -2
  245. package/dist/esm/gux-tab-advanced-list.entry.js +3 -3
  246. package/dist/esm/gux-tab-advanced-panel.entry.js +1 -1
  247. package/dist/esm/gux-tab-advanced.entry.js +2 -2
  248. package/dist/esm/gux-tab-dropdown-option-legacy.entry.js +1 -1
  249. package/dist/esm/gux-tab-legacy.entry.js +1 -1
  250. package/dist/esm/gux-tab-list.entry.js +19 -2
  251. package/dist/esm/gux-tab-panel.entry.js +1 -1
  252. package/dist/esm/gux-tab.entry.js +1 -1
  253. package/dist/esm/gux-table-beta.entry.js +47 -31
  254. package/dist/esm/gux-tabs-advanced.entry.js +2 -2
  255. package/dist/esm/gux-tabs-legacy.entry.js +3 -3
  256. package/dist/esm/gux-tabs.entry.js +2 -2
  257. package/dist/esm/gux-tag-beta.entry.js +3 -3
  258. package/dist/esm/gux-text-highlight.entry.js +2 -2
  259. package/dist/esm/gux-text-label-legacy.entry.js +2 -2
  260. package/dist/esm/gux-time-picker-beta.entry.js +4 -4
  261. package/dist/esm/gux-toggle-slider.entry.js +1 -1
  262. package/dist/esm/gux-toggle.entry.js +3 -3
  263. package/dist/esm/gux-tooltip_2.entry.js +3 -3
  264. package/dist/esm/gux-visualization-beta.entry.js +3 -3
  265. package/dist/esm/{index-5bfcdeb1.js → index-16dc4871.js} +1 -1
  266. package/dist/esm/{index-76794476.js → index-d8b1bc53.js} +30 -4
  267. package/dist/esm/loader.js +2 -2
  268. package/dist/esm/{on-click-outside-ce30de20.js → on-click-outside-9635bd3e.js} +1 -1
  269. package/dist/esm/{on-mutation-2e96b1b9.js → on-mutation-1c2ba0a6.js} +1 -1
  270. package/dist/esm/{usage-tracking-e9b9fc3f.js → usage-tracking-9ae70c67.js} +1 -1
  271. package/dist/genesys-webcomponents/genesys-webcomponents.css +1 -1
  272. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  273. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ar.json +1 -1
  274. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.cs.json +1 -1
  275. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.da.json +1 -1
  276. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.de.json +1 -1
  277. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
  278. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es-es.json +1 -1
  279. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es.json +1 -1
  280. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fi.json +1 -1
  281. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr-ca.json +1 -1
  282. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr.json +1 -1
  283. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.it.json +1 -1
  284. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ja.json +1 -1
  285. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ko.json +1 -1
  286. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.nl.json +1 -1
  287. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.no.json +1 -1
  288. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pl.json +1 -1
  289. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pt-br.json +1 -1
  290. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ru.json +1 -1
  291. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.sv.json +1 -1
  292. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.th.json +1 -1
  293. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.tr.json +1 -1
  294. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-cn.json +1 -1
  295. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-tw.json +1 -1
  296. package/dist/genesys-webcomponents/{p-c3b9a57f.entry.js → p-00519483.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/p-013eb64c.entry.js +1 -0
  298. package/dist/genesys-webcomponents/{p-76f7479d.entry.js → p-050ab2cb.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-8288a4c9.entry.js → p-0b1bf180.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-7c1b42ab.entry.js → p-0c38f51c.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-6f834153.entry.js → p-0dfa8f9f.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-5674b67a.entry.js → p-1173c715.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-c6eab0f6.entry.js → p-1255480b.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-08b07a2b.js → p-14551b38.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-5a3afda9.entry.js → p-1483501f.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-7bae2a7d.entry.js → p-166e7535.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-f26b46dc.entry.js → p-16e8f471.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-7c57956f.entry.js → p-17e7772d.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-e4e5aa67.entry.js → p-1ad06cfc.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-cbd66a48.entry.js → p-1d09f345.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-7512b26a.entry.js → p-1d83549a.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/{p-5f8b46b5.entry.js → p-1f1554e3.entry.js} +1 -1
  313. package/dist/genesys-webcomponents/p-2092557f.entry.js +1 -0
  314. package/dist/genesys-webcomponents/{p-dc714f80.entry.js → p-2aac6bab.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/p-2b24dcb6.entry.js +1 -0
  316. package/dist/genesys-webcomponents/{p-c150db37.entry.js → p-2b7d8c71.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/{p-66e648d2.entry.js → p-3308c20e.entry.js} +1 -1
  318. package/dist/genesys-webcomponents/{p-4402a21b.entry.js → p-33c27a48.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-4b7056b2.js → p-35578249.js} +1 -1
  320. package/dist/genesys-webcomponents/{p-9b476241.entry.js → p-356c4b29.entry.js} +1 -1
  321. package/dist/genesys-webcomponents/{p-e61558ed.entry.js → p-35c9b84c.entry.js} +1 -1
  322. package/dist/genesys-webcomponents/{p-5534193b.entry.js → p-371cffc7.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/p-3770c1e9.js +1 -0
  324. package/dist/genesys-webcomponents/{p-6b756f6d.entry.js → p-398cbe65.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-f329dbea.entry.js → p-3a830867.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-b3e2578c.entry.js → p-3d888c4f.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-f0e923b9.entry.js → p-3e72de53.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-ca932cd2.js → p-440657a8.js} +1 -1
  329. package/dist/genesys-webcomponents/p-448d6c60.entry.js +1 -0
  330. package/dist/genesys-webcomponents/{p-f114dc1b.entry.js → p-44ac7dd3.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-a6257c98.js → p-451a9239.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-8df52df5.entry.js → p-45517975.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-6ec0cec3.entry.js → p-469eea38.entry.js} +1 -1
  334. package/dist/genesys-webcomponents/p-480ffa9e.entry.js +1 -0
  335. package/dist/genesys-webcomponents/{p-5ca81424.js → p-49b1912a.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-44ea15ed.entry.js → p-4b58fc7e.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-2548bdad.js → p-523a0237.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-45df9c11.entry.js → p-5453b69f.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-c551dd14.entry.js → p-54866ea0.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-f2a5fea9.entry.js → p-5647d38b.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/{p-f62d408a.entry.js → p-573f5ff0.entry.js} +1 -1
  342. package/dist/genesys-webcomponents/{p-53df4573.entry.js → p-5b9ed635.entry.js} +1 -1
  343. package/dist/genesys-webcomponents/{p-78fa1cfb.entry.js → p-5baa156e.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/{p-ed56171c.entry.js → p-5ebb0e5e.entry.js} +1 -1
  345. package/dist/genesys-webcomponents/{p-c89c74eb.entry.js → p-603a557b.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/{p-1313a627.entry.js → p-646c8c96.entry.js} +1 -1
  347. package/dist/genesys-webcomponents/{p-029337ed.entry.js → p-647dd4a5.entry.js} +1 -1
  348. package/dist/genesys-webcomponents/{p-421513fb.entry.js → p-659e0050.entry.js} +1 -1
  349. package/dist/genesys-webcomponents/{p-d7a2f8dc.entry.js → p-66117fa0.entry.js} +1 -1
  350. package/dist/genesys-webcomponents/{p-6be57719.entry.js → p-6c8e24ef.entry.js} +1 -1
  351. package/dist/genesys-webcomponents/{p-4ddf13c8.entry.js → p-6fe4eeb9.entry.js} +1 -1
  352. package/dist/genesys-webcomponents/{p-5587d078.entry.js → p-717c426f.entry.js} +1 -1
  353. package/dist/genesys-webcomponents/{p-74ab4e9c.entry.js → p-7341343a.entry.js} +1 -1
  354. package/dist/genesys-webcomponents/{p-72291037.entry.js → p-7454d082.entry.js} +1 -1
  355. package/dist/genesys-webcomponents/{p-45d49edc.entry.js → p-7623d68f.entry.js} +1 -1
  356. package/dist/genesys-webcomponents/{p-b190a126.entry.js → p-78035895.entry.js} +1 -1
  357. package/dist/genesys-webcomponents/{p-5a4584b1.entry.js → p-7e8a517b.entry.js} +1 -1
  358. package/dist/genesys-webcomponents/{p-c6d44d2f.entry.js → p-84bc8565.entry.js} +1 -1
  359. package/dist/genesys-webcomponents/p-8a1b9201.entry.js +1 -0
  360. package/dist/genesys-webcomponents/{p-e7caa47a.entry.js → p-8bc4b382.entry.js} +1 -1
  361. package/dist/genesys-webcomponents/{p-b0259c1a.entry.js → p-90d3e8af.entry.js} +1 -1
  362. package/dist/genesys-webcomponents/{p-34e05274.entry.js → p-9154b32a.entry.js} +1 -1
  363. package/dist/genesys-webcomponents/{p-193d169d.entry.js → p-92e0518f.entry.js} +1 -1
  364. package/dist/genesys-webcomponents/{p-548af6d1.entry.js → p-98229921.entry.js} +1 -1
  365. package/dist/genesys-webcomponents/{p-a8b8ae7f.entry.js → p-9869e6f4.entry.js} +1 -1
  366. package/dist/genesys-webcomponents/{p-be4455b9.entry.js → p-98dd850d.entry.js} +1 -1
  367. package/dist/genesys-webcomponents/{p-c1f6910e.entry.js → p-99b858d1.entry.js} +1 -1
  368. package/dist/genesys-webcomponents/{p-2d9198b1.entry.js → p-9b6e59f2.entry.js} +1 -1
  369. package/dist/genesys-webcomponents/{p-d75428f1.entry.js → p-9d36ee95.entry.js} +1 -1
  370. package/dist/genesys-webcomponents/{p-c72a8228.entry.js → p-9df54194.entry.js} +1 -1
  371. package/dist/genesys-webcomponents/{p-b3fcbbe4.entry.js → p-9fe46900.entry.js} +1 -1
  372. package/dist/genesys-webcomponents/{p-5b4d8050.entry.js → p-a09cb82d.entry.js} +1 -1
  373. package/dist/genesys-webcomponents/{p-0ba16a48.entry.js → p-a0a0d12d.entry.js} +1 -1
  374. package/dist/genesys-webcomponents/{p-25b74c1b.entry.js → p-a13ff6ec.entry.js} +1 -1
  375. package/dist/genesys-webcomponents/p-a2f34941.entry.js +1 -0
  376. package/dist/genesys-webcomponents/{p-cfd5c06d.entry.js → p-a41b086e.entry.js} +1 -1
  377. package/dist/genesys-webcomponents/{p-2acf2470.entry.js → p-a6509d00.entry.js} +1 -1
  378. package/dist/genesys-webcomponents/{p-30558b17.entry.js → p-b0205823.entry.js} +1 -1
  379. package/dist/genesys-webcomponents/p-b0c0bff1.entry.js +1 -0
  380. package/dist/genesys-webcomponents/p-b1bffdc0.entry.js +1 -0
  381. package/dist/genesys-webcomponents/{p-29744d9a.entry.js → p-b1cb1a31.entry.js} +1 -1
  382. package/dist/genesys-webcomponents/{p-a5c9fbed.entry.js → p-b225ce42.entry.js} +1 -1
  383. package/dist/genesys-webcomponents/p-b27f0bef.entry.js +1 -0
  384. package/dist/genesys-webcomponents/{p-68ee84bf.entry.js → p-b41cc336.entry.js} +1 -1
  385. package/dist/genesys-webcomponents/{p-4083afa6.entry.js → p-b5867962.entry.js} +1 -1
  386. package/dist/genesys-webcomponents/{p-3d2cb50a.entry.js → p-b695ac46.entry.js} +1 -1
  387. package/dist/genesys-webcomponents/{p-e78c86e4.entry.js → p-b98f76af.entry.js} +1 -1
  388. package/dist/genesys-webcomponents/{p-d4730ee1.entry.js → p-bb1431b6.entry.js} +1 -1
  389. package/dist/genesys-webcomponents/{p-b3bdfcc9.entry.js → p-bf05f0be.entry.js} +1 -1
  390. package/dist/genesys-webcomponents/{p-b664a390.entry.js → p-c13e9b91.entry.js} +1 -1
  391. package/dist/genesys-webcomponents/{p-344828ad.entry.js → p-c251e266.entry.js} +1 -1
  392. package/dist/genesys-webcomponents/p-c66803cf.entry.js +1 -0
  393. package/dist/genesys-webcomponents/{p-d429ff71.entry.js → p-c6715c5a.entry.js} +1 -1
  394. package/dist/genesys-webcomponents/p-cb3d0262.entry.js +1 -0
  395. package/dist/genesys-webcomponents/{p-882bb0d7.entry.js → p-ccaedc78.entry.js} +1 -1
  396. package/dist/genesys-webcomponents/{p-5190a2c0.entry.js → p-cd9decab.entry.js} +1 -1
  397. package/dist/genesys-webcomponents/p-cdf5cb56.js +1 -0
  398. package/dist/genesys-webcomponents/{p-d63d33a7.entry.js → p-d30142cc.entry.js} +1 -1
  399. package/dist/genesys-webcomponents/{p-bea0187a.entry.js → p-d33adb9d.entry.js} +1 -1
  400. package/dist/genesys-webcomponents/{p-1856e5cd.entry.js → p-d5939eb4.entry.js} +1 -1
  401. package/dist/genesys-webcomponents/{p-b98439e6.entry.js → p-d820f160.entry.js} +1 -1
  402. package/dist/genesys-webcomponents/{p-1bef4ea7.entry.js → p-d8fb93d1.entry.js} +1 -1
  403. package/dist/genesys-webcomponents/{p-24206bb9.entry.js → p-dbad07cb.entry.js} +1 -1
  404. package/dist/genesys-webcomponents/{p-4cc40ffe.entry.js → p-ddbe5e3d.entry.js} +1 -1
  405. package/dist/genesys-webcomponents/{p-2212a472.entry.js → p-e0660777.entry.js} +1 -1
  406. package/dist/genesys-webcomponents/{p-dcdf8926.entry.js → p-e122b070.entry.js} +1 -1
  407. package/dist/genesys-webcomponents/{p-e56e0d6a.entry.js → p-e3aa0165.entry.js} +1 -1
  408. package/dist/genesys-webcomponents/p-e571f861.js +2 -0
  409. package/dist/genesys-webcomponents/{p-caff3783.entry.js → p-e996ed62.entry.js} +1 -1
  410. package/dist/genesys-webcomponents/{p-eadf85b3.entry.js → p-eafca6fd.entry.js} +1 -1
  411. package/dist/genesys-webcomponents/{p-c87736cc.entry.js → p-f3f4c59f.entry.js} +1 -1
  412. package/dist/genesys-webcomponents/{p-84165fbe.entry.js → p-fca55791.entry.js} +1 -1
  413. package/dist/genesys-webcomponents/{p-7abebb37.entry.js → p-fee0493f.entry.js} +1 -1
  414. package/dist/stencil-wrapper.js +1 -1
  415. package/dist/types/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.d.ts +20 -0
  416. package/dist/types/components/beta/gux-dropdown-multi/gux-dropdown-multi.d.ts +56 -0
  417. package/dist/types/components/beta/gux-table/gux-sort-control/gux-sort-control.d.ts +13 -0
  418. package/dist/types/components/beta/gux-table/gux-table.d.ts +2 -0
  419. package/dist/types/components/beta/gux-tag/gux-tag.d.ts +0 -4
  420. package/dist/types/components/stable/gux-dropdown/gux-dropdown.d.ts +1 -0
  421. package/dist/types/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.d.ts +27 -0
  422. package/dist/types/components/stable/gux-form-field/{gux-form-field.servce.d.ts → gux-form-field.service.d.ts} +1 -1
  423. package/dist/types/components/stable/gux-listbox/gux-listbox.d.ts +1 -1
  424. package/dist/types/components/stable/gux-listbox-multi/gux-listbox-multi.d.ts +28 -0
  425. package/dist/types/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.d.ts +15 -0
  426. package/dist/types/components/stable/gux-tabs/gux-tab-list/gux-tab-list.d.ts +1 -0
  427. package/dist/types/components.d.ts +136 -8
  428. package/dist/types/utils/dom/on-attribute-change.d.ts +2 -2
  429. package/package.json +1 -1
  430. package/dist/genesys-webcomponents/p-2dac107b.entry.js +0 -1
  431. package/dist/genesys-webcomponents/p-4a67745f.entry.js +0 -1
  432. package/dist/genesys-webcomponents/p-61fd6f64.entry.js +0 -1
  433. package/dist/genesys-webcomponents/p-83818ffb.entry.js +0 -1
  434. package/dist/genesys-webcomponents/p-947b7fe3.entry.js +0 -1
  435. package/dist/genesys-webcomponents/p-a085b143.js +0 -2
  436. package/dist/genesys-webcomponents/p-ab1ad75b.entry.js +0 -1
  437. package/dist/genesys-webcomponents/p-afb54d23.js +0 -1
@@ -0,0 +1,87 @@
1
+ import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
2
+ import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
3
+ import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
4
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
5
+ import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-1d0c1a02.js';
6
+ import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
7
+ import './random-html-id-8e3f658c.js';
8
+ import './log-error-b1a1a086.js';
9
+ import './set-input-value-5adeaccc.js';
10
+ import './simulate-native-event-ac69961f.js';
11
+
12
+ const guxFormFieldDropdownCss = ".gux-form-field-container{margin:16px 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin:0 4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(select){flex:1 1 auto;align-self:auto;order:0;height:32px;padding:0 32px 0 12px;margin:0;color:#2e394c;background-color:#f6f7f9;border:none;border-radius:4px;outline:none;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16);-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted(select)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input .gux-input-container{position:relative;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;width:100%;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{pointer-events:none;opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container:hover gux-icon{color:#2a60c8}.gux-input-and-error-container .gux-input .gux-input-container select{flex:1 1 auto;align-self:auto;order:0;height:32px;padding:0 32px 0 12px;margin:0;color:#2e394c;background-color:#f6f7f9;border:none;border-radius:4px;outline:none;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16);-moz-appearance:none;-webkit-appearance:none;appearance:none}.gux-input-and-error-container .gux-input .gux-input-container gux-icon{position:absolute;top:0;right:0;width:16px;height:16px;margin:8px;pointer-events:none}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:#ea0b0b}";
13
+
14
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
17
+ r = Reflect.decorate(decorators, target, key, desc);
18
+ else
19
+ for (var i = decorators.length - 1; i >= 0; i--)
20
+ if (d = decorators[i])
21
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
23
+ };
24
+ const GuxFormFieldDropdown = class {
25
+ constructor(hostRef) {
26
+ registerInstance(this, hostRef);
27
+ this.computedLabelPosition = 'above';
28
+ this.hasError = false;
29
+ }
30
+ onMutation() {
31
+ this.hasError = hasErrorSlot(this.root);
32
+ }
33
+ componentWillLoad() {
34
+ this.setInput();
35
+ this.setLabel();
36
+ this.hasError = hasErrorSlot(this.root);
37
+ trackComponent(this.root, { variant: this.variant });
38
+ }
39
+ disconnectedCallback() {
40
+ this.disabledObserver.disconnect();
41
+ this.requiredObserver.disconnect();
42
+ }
43
+ render() {
44
+ return (h(GuxFormFieldContainer, { labelPosition: this.computedLabelPosition }, h(GuxFormFieldLabel, { position: this.computedLabelPosition, required: this.required }, h("slot", { name: "label", onSlotchange: () => this.setLabel() })), h("div", { class: "gux-input-and-error-container" }, h("div", { class: {
45
+ 'gux-input': true,
46
+ 'gux-input-error': this.hasError
47
+ } }, h("div", { class: {
48
+ 'gux-dropdown-container': true,
49
+ 'gux-disabled': this.disabled
50
+ } }, h("slot", null))), h(GuxFormFieldError, { hasError: this.hasError }, h("slot", { name: "error" })))));
51
+ }
52
+ get variant() {
53
+ const labelPositionVariant = this.labelPosition
54
+ ? this.labelPosition.toLowerCase()
55
+ : 'none';
56
+ const type = 'dropdown';
57
+ return `${type}-${labelPositionVariant}`;
58
+ }
59
+ setInput() {
60
+ this.dropdownElement =
61
+ this.root.querySelector('gux-dropdown') ||
62
+ this.root.querySelector('gux-dropdown-multi-beta');
63
+ this.listboxElement =
64
+ this.root.querySelector('gux-listbox') ||
65
+ this.root.querySelector('gux-listbox-multi');
66
+ this.disabled = this.dropdownElement.disabled;
67
+ this.required = this.dropdownElement.required;
68
+ this.disabledObserver = onDisabledChange(this.dropdownElement, (disabled) => {
69
+ this.disabled = disabled;
70
+ });
71
+ this.requiredObserver = onRequiredChange(this.dropdownElement, (required) => {
72
+ this.required = required;
73
+ });
74
+ validateFormIds(this.root, this.listboxElement);
75
+ }
76
+ setLabel() {
77
+ this.label = this.root.querySelector('label[slot="label"]');
78
+ this.computedLabelPosition = getComputedLabelPosition(this.label, this.labelPosition);
79
+ }
80
+ get root() { return getElement(this); }
81
+ };
82
+ __decorate([
83
+ OnMutation({ childList: true, subtree: true })
84
+ ], GuxFormFieldDropdown.prototype, "onMutation", null);
85
+ GuxFormFieldDropdown.style = guxFormFieldDropdownCss;
86
+
87
+ export { GuxFormFieldDropdown as gux_form_field_dropdown };
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h, g as getElement } from './index-76794476.js';
2
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
3
- import { b as buildI18nForComponent } from './index-5bfcdeb1.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
2
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
3
+ import { b as buildI18nForComponent } from './index-16dc4871.js';
4
4
  import './get-closest-element-1597503c.js';
5
5
 
6
6
  const clear = "Clear";
@@ -1,4 +1,4 @@
1
- import { h } from './index-76794476.js';
1
+ import { h } from './index-d8b1bc53.js';
2
2
 
3
3
  const GuxFormFieldContainer = ({ labelPosition }, children) => {
4
4
  return (h("div", { class: {
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, h, g as getElement } from './index-76794476.js';
2
- import { O as OnMutation } from './on-mutation-2e96b1b9.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
2
+ import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
3
3
  import { r as randomHTMLId } from './random-html-id-8e3f658c.js';
4
4
  import { l as logError } from './log-error-b1a1a086.js';
5
5
  import { a as onRequiredChange } from './on-attribute-change-2b01c315.js';
6
6
  import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
7
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
7
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
8
8
 
9
9
  const guxFormFieldCss = "gux-form-field-legacy{display:block;color:#2e394c}gux-form-field-legacy .gux-label-and-input-and-error-container{margin:16px 0}gux-form-field-legacy .gux-label-and-input-and-error-container label{font-size:12px;font-weight:bold;line-height:20px}gux-form-field-legacy .gux-label-and-input-and-error-container input,gux-form-field-legacy .gux-label-and-input-and-error-container select{width:100%;font-size:12px}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-container input{overflow:hidden;text-overflow:ellipsis}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-container{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error textarea{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-color-main-element{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-and-error-container{flex-grow:1}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside{display:flex;flex-direction:row}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside .gux-label-container{position:relative;top:7px;width:fit-content;min-width:45px;margin-right:8px}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-range,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-select,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-text-like,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-search{flex:1 1 auto}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-screenreader label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}gux-form-field-legacy .gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}gux-form-field-legacy .gux-error{display:none;margin:4px 0}gux-form-field-legacy .gux-error.gux-show{display:block}";
10
10
 
@@ -1,13 +1,13 @@
1
- import { r as registerInstance, h, g as getElement } from './index-76794476.js';
2
- import { b as buildI18nForComponent } from './index-5bfcdeb1.js';
3
- import { O as OnMutation } from './on-mutation-2e96b1b9.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
2
+ import { b as buildI18nForComponent } from './index-16dc4871.js';
3
+ import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
4
4
  import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
5
5
  import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
6
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
6
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
7
7
  import { s as setInputValue } from './set-input-value-5adeaccc.js';
8
8
  import { s as simulateNativeEvent } from './simulate-native-event-ac69961f.js';
9
- import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-ac49a8be.js';
10
- import { h as hasErrorSlot, c as clearInput, G as GuxFormFieldError, a as hasContent, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.servce-971609e2.js';
9
+ import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-1d0c1a02.js';
10
+ import { h as hasErrorSlot, c as clearInput, G as GuxFormFieldError, a as hasContent, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
11
11
  import './get-closest-element-1597503c.js';
12
12
  import './random-html-id-8e3f658c.js';
13
13
  import './log-error-b1a1a086.js';
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-76794476.js';
2
- import { O as OnMutation } from './on-mutation-2e96b1b9.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-d8b1bc53.js';
2
+ import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
3
3
  import { o as onDisabledChange } from './on-attribute-change-2b01c315.js';
4
4
  import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
5
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
6
- import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds } from './gux-form-field.servce-971609e2.js';
5
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
6
+ import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds } from './gux-form-field.service-4bfd6534.js';
7
7
  import './random-html-id-8e3f658c.js';
8
8
  import './log-error-b1a1a086.js';
9
9
  import './set-input-value-5adeaccc.js';
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-76794476.js';
2
- import { O as OnMutation } from './on-mutation-2e96b1b9.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-d8b1bc53.js';
2
+ import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
3
3
  import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
4
4
  import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
5
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
6
- import { a as GuxFormFieldContainer, G as GuxFormFieldLabel } from './gux-form-field-label-ac49a8be.js';
7
- import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.servce-971609e2.js';
5
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
6
+ import { a as GuxFormFieldContainer, G as GuxFormFieldLabel } from './gux-form-field-label-1d0c1a02.js';
7
+ import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
8
8
  import './random-html-id-8e3f658c.js';
9
9
  import './log-error-b1a1a086.js';
10
10
  import './set-input-value-5adeaccc.js';
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, h, g as getElement } from './index-76794476.js';
2
- import { O as OnMutation } from './on-mutation-2e96b1b9.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
2
+ import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
3
3
  import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
4
4
  import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
5
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
6
- import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-ac49a8be.js';
7
- import { h as hasErrorSlot, c as clearInput, G as GuxFormFieldError, a as hasContent, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.servce-971609e2.js';
5
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
6
+ import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-1d0c1a02.js';
7
+ import { h as hasErrorSlot, c as clearInput, G as GuxFormFieldError, a as hasContent, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
8
8
  import './random-html-id-8e3f658c.js';
9
9
  import './log-error-b1a1a086.js';
10
10
  import './set-input-value-5adeaccc.js';
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, h, g as getElement } from './index-76794476.js';
2
- import { O as OnMutation } from './on-mutation-2e96b1b9.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
2
+ import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
3
3
  import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
4
4
  import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
5
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
6
- import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-ac49a8be.js';
7
- import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.servce-971609e2.js';
5
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
6
+ import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-1d0c1a02.js';
7
+ import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
8
8
  import './random-html-id-8e3f658c.js';
9
9
  import './log-error-b1a1a086.js';
10
10
  import './set-input-value-5adeaccc.js';
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, h, g as getElement } from './index-76794476.js';
2
- import { O as OnMutation } from './on-mutation-2e96b1b9.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
2
+ import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
3
3
  import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
4
4
  import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
5
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
6
- import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-ac49a8be.js';
7
- import { h as hasErrorSlot, c as clearInput, G as GuxFormFieldError, a as hasContent, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.servce-971609e2.js';
5
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
6
+ import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-1d0c1a02.js';
7
+ import { h as hasErrorSlot, c as clearInput, G as GuxFormFieldError, a as hasContent, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
8
8
  import './random-html-id-8e3f658c.js';
9
9
  import './log-error-b1a1a086.js';
10
10
  import './set-input-value-5adeaccc.js';
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, h, g as getElement } from './index-76794476.js';
2
- import { O as OnMutation } from './on-mutation-2e96b1b9.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
2
+ import { O as OnMutation } from './on-mutation-1c2ba0a6.js';
3
3
  import { o as onDisabledChange, a as onRequiredChange } from './on-attribute-change-2b01c315.js';
4
4
  import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-d16c3f4c.js';
5
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
6
- import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-ac49a8be.js';
7
- import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.servce-971609e2.js';
5
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
6
+ import { G as GuxFormFieldLabel, a as GuxFormFieldContainer } from './gux-form-field-label-1d0c1a02.js';
7
+ import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4bfd6534.js';
8
8
  import './random-html-id-8e3f658c.js';
9
9
  import './log-error-b1a1a086.js';
10
10
  import './set-input-value-5adeaccc.js';
@@ -1,4 +1,4 @@
1
- import { h } from './index-76794476.js';
1
+ import { h } from './index-d8b1bc53.js';
2
2
  import { r as randomHTMLId } from './random-html-id-8e3f658c.js';
3
3
  import { l as logError } from './log-error-b1a1a086.js';
4
4
  import { s as setInputValue } from './set-input-value-5adeaccc.js';
@@ -1,5 +1,5 @@
1
- import { a as getAssetPath, r as registerInstance, h, g as getElement } from './index-76794476.js';
2
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
1
+ import { a as getAssetPath, r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
2
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
3
3
  import { l as logError } from './log-error-b1a1a086.js';
4
4
 
5
5
  const iconNameMap = {
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, g as getElement } from './index-76794476.js';
2
- import { b as buildI18nForComponent } from './index-5bfcdeb1.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
2
+ import { b as buildI18nForComponent } from './index-16dc4871.js';
3
3
  import { r as randomHTMLId } from './random-html-id-8e3f658c.js';
4
4
  import { o as onDisabledChange } from './on-attribute-change-2b01c315.js';
5
5
  import { s as setInputValue } from './set-input-value-5adeaccc.js';
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, g as getElement } from './index-76794476.js';
2
- import { b as buildI18nForComponent } from './index-5bfcdeb1.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
2
+ import { b as buildI18nForComponent } from './index-16dc4871.js';
3
3
  import { s as setInputValue } from './set-input-value-5adeaccc.js';
4
4
  import { o as onDisabledChange } from './on-attribute-change-2b01c315.js';
5
5
  import './get-closest-element-1597503c.js';
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, g as getElement } from './index-76794476.js';
2
- import { b as buildI18nForComponent } from './index-5bfcdeb1.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-d8b1bc53.js';
2
+ import { b as buildI18nForComponent } from './index-16dc4871.js';
3
3
  import { s as setInputValue } from './set-input-value-5adeaccc.js';
4
4
  import { o as onDisabledChange } from './on-attribute-change-2b01c315.js';
5
5
  import './get-closest-element-1597503c.js';
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h } from './index-76794476.js';
1
+ import { r as registerInstance, h } from './index-d8b1bc53.js';
2
2
 
3
3
  const guxListDividerCss = ":host{position:relative;display:flex;height:32px;height:1px;padding:0;margin:16px 0;line-height:32px;pointer-events:none;cursor:pointer;background-color:#c8cfda}";
4
4
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host } from './index-76794476.js';
1
+ import { r as registerInstance, h, H as Host } from './index-d8b1bc53.js';
2
2
 
3
3
  const guxListDividerCss = ":host{position:relative;display:flex;width:100%;height:1px;padding:0;margin:16px 0;line-height:32px;pointer-events:none;cursor:pointer;cursor:default;background-color:#c8cfda}";
4
4
 
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-76794476.js';
2
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8b1bc53.js';
2
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
3
3
 
4
4
  const guxListItemCss = ":host:focus .gux-list-item,:host:active .gux-list-item,:host:hover:not([disabled]) .gux-list-item{color:#fdfdfd;background:#2a60c8}:host(:focus) .gux-list-item,:host(:active) .gux-list-item,:host(:hover:not([disabled])) .gux-list-item{color:#fdfdfd;background:#2a60c8}:host([disabled]) .gux-list-item{pointer-events:none;cursor:default;opacity:0.5}.gux-list-item{display:flex;height:max-content;padding:0 16px;line-height:32px;word-wrap:break-word;cursor:pointer}.gux-list-item .gux-text{width:100%}";
5
5
 
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-76794476.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-d8b1bc53.js';
2
2
  import { g as getClosestElement } from './get-closest-element-1597503c.js';
3
3
 
4
4
  const guxListItemCss = ":host{width:100%;outline:none}:host([disabled]){pointer-events:none}::slotted(gux-icon){width:16px;height:16px;margin-right:8px;vertical-align:middle}button{all:unset;box-sizing:border-box;width:100%;min-height:32px;padding:8px 16px;color:#2e394c;word-wrap:break-word;cursor:pointer;border:none;outline:none}button:focus:not(:disabled){color:#fdfdfd;background:#2a60c8}button:hover:not(:disabled){color:#fdfdfd;background:#2754ac}button:active:not(:disabled){color:#fdfdfd;background:#23478f}button:disabled{color:rgba(46, 57, 76, 0.5);cursor:default}";
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-76794476.js';
2
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
1
+ import { r as registerInstance, h, H as Host, g as getElement } from './index-d8b1bc53.js';
2
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
3
3
 
4
4
  const validFocusableItems = ['gux-list-item'];
5
5
  function getRootChildren(root) {
@@ -0,0 +1,155 @@
1
+ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-d8b1bc53.js';
2
+ import { s as setInitialActiveOption, c as clearActiveOptions, a as setLastOptionActive, b as setFirstOptionActive, h as hasPreviousOption, d as setPreviousOptionActive, e as hasNextOption, f as setNextOptionActive, i as actOnActiveOption, j as goToOption, o as onClickedOption } from './gux-listbox.service-3541a2f7.js';
3
+ import { b as buildI18nForComponent } from './index-16dc4871.js';
4
+ import { w as whenEventIsFrom } from './when-event-is-from-18667084.js';
5
+ import { s as simulateNativeEvent } from './simulate-native-event-ac69961f.js';
6
+ import { t as trackComponent } from './usage-tracking-9ae70c67.js';
7
+ import './get-closest-element-1597503c.js';
8
+
9
+ const noMatches = "No matches";
10
+ const translationResources = {
11
+ noMatches: noMatches
12
+ };
13
+
14
+ const guxListboxMultiCss = ":host{box-sizing:border-box;display:block;max-height:20rem;padding:8px 0;margin:0;overflow-y:auto;color:#2e394c;background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;outline:none}:host(:focus){outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-no-matches{box-sizing:border-box;height:32px;padding:8px 16px;color:#2e394c}";
15
+
16
+ const GuxListboxMulti = class {
17
+ constructor(hostRef) {
18
+ registerInstance(this, hostRef);
19
+ this.internallistboxoptionsupdated = createEvent(this, "internallistboxoptionsupdated", 7);
20
+ this.filter = '';
21
+ this.selectedValues = [];
22
+ this.listboxOptions = [];
23
+ }
24
+ onFocus() {
25
+ setInitialActiveOption(this.root);
26
+ }
27
+ onBlur() {
28
+ clearActiveOptions(this.root);
29
+ }
30
+ onKeydown(event) {
31
+ switch (event.key) {
32
+ case 'Enter':
33
+ event.preventDefault();
34
+ actOnActiveOption(this.root, value => this.updateValue(value));
35
+ return;
36
+ case 'ArrowDown':
37
+ event.preventDefault();
38
+ if (hasNextOption(this.root)) {
39
+ event.stopPropagation();
40
+ setNextOptionActive(this.root);
41
+ }
42
+ else {
43
+ setFirstOptionActive(this.root);
44
+ }
45
+ return;
46
+ case 'ArrowUp': {
47
+ event.preventDefault();
48
+ if (hasPreviousOption(this.root)) {
49
+ event.stopPropagation();
50
+ setPreviousOptionActive(this.root);
51
+ }
52
+ else {
53
+ setLastOptionActive(this.root);
54
+ }
55
+ return;
56
+ }
57
+ case 'Home': {
58
+ event.preventDefault();
59
+ setFirstOptionActive(this.root);
60
+ return;
61
+ }
62
+ case 'End': {
63
+ event.preventDefault();
64
+ setLastOptionActive(this.root);
65
+ return;
66
+ }
67
+ case ' ': {
68
+ event.preventDefault();
69
+ return;
70
+ }
71
+ }
72
+ if (event.key.length === 1) {
73
+ goToOption(this.root, event.key);
74
+ return;
75
+ }
76
+ }
77
+ onKeyup(event) {
78
+ switch (event.key) {
79
+ case ' ':
80
+ actOnActiveOption(this.root, value => this.updateValue(value));
81
+ return;
82
+ }
83
+ }
84
+ onMousemove() {
85
+ clearActiveOptions(this.root);
86
+ }
87
+ onClick(event) {
88
+ whenEventIsFrom('gux-option-multi', event, (option) => {
89
+ onClickedOption(option, value => this.updateValue(value));
90
+ });
91
+ }
92
+ validateValue() {
93
+ if (this.value) {
94
+ this.selectedValues = this.value.split(',');
95
+ }
96
+ else {
97
+ this.selectedValues = [];
98
+ }
99
+ }
100
+ // eslint-disable-next-line @typescript-eslint/require-await
101
+ async guxSelectActive() {
102
+ actOnActiveOption(this.root, value => this.updateValue(value));
103
+ }
104
+ setListboxOptions() {
105
+ if (this.value) {
106
+ this.selectedValues = this.value.split(',');
107
+ }
108
+ this.listboxOptions = Array.from(this.root.children);
109
+ this.internallistboxoptionsupdated.emit();
110
+ }
111
+ updateValue(newValue) {
112
+ if (!this.selectedValues.includes(newValue)) {
113
+ const newArray = [...this.selectedValues, newValue];
114
+ this.selectedValues = newArray;
115
+ this.value = this.selectedValues.join(',');
116
+ }
117
+ else {
118
+ this.selectedValues = this.selectedValues.filter(e => e !== newValue);
119
+ this.value = this.selectedValues.join(',');
120
+ }
121
+ simulateNativeEvent(this.root, 'input');
122
+ simulateNativeEvent(this.root, 'change');
123
+ }
124
+ async componentWillLoad() {
125
+ trackComponent(this.root);
126
+ this.i18n = await buildI18nForComponent(this.root, translationResources);
127
+ this.setListboxOptions();
128
+ }
129
+ componentWillRender() {
130
+ this.listboxOptions.forEach(listboxOption => {
131
+ listboxOption.selected = this.selectedValues.includes(listboxOption.value);
132
+ listboxOption.filtered = !listboxOption.textContent
133
+ .toLowerCase()
134
+ .startsWith(this.filter.toLowerCase());
135
+ });
136
+ this.allListboxOptionsFiltered =
137
+ this.listboxOptions.filter(listboxOption => !listboxOption.filtered)
138
+ .length === 0;
139
+ }
140
+ renderAllListboxOptionsFiltered() {
141
+ if (this.allListboxOptionsFiltered) {
142
+ return (h("div", { class: "gux-no-matches" }, this.i18n('noMatches')));
143
+ }
144
+ }
145
+ render() {
146
+ return (h(Host, { role: "listbox", "aria-multiselectable": "true", tabindex: 0 }, h("slot", { onSlotchange: () => this.setListboxOptions() }), this.renderAllListboxOptionsFiltered()));
147
+ }
148
+ get root() { return getElement(this); }
149
+ static get watchers() { return {
150
+ "value": ["validateValue"]
151
+ }; }
152
+ };
153
+ GuxListboxMulti.style = guxListboxMultiCss;
154
+
155
+ export { GuxListboxMulti as gux_listbox_multi };
@@ -0,0 +1,148 @@
1
+ function getListOptions(list) {
2
+ return Array.from(list.children);
3
+ }
4
+ function getHoveredOption(list) {
5
+ return getListOptions(list).find(option => option.hovered && !option.disabled && !option.filtered);
6
+ }
7
+ function getFirstSelectedOption(list) {
8
+ return getListOptions(list).find(option => option.selected && !option.disabled && !option.filtered);
9
+ }
10
+ function getActiveOption(list) {
11
+ return getListOptions(list).find(option => option.active);
12
+ }
13
+ function setActiveOption(list, element) {
14
+ if (element) {
15
+ getListOptions(list).forEach(option => {
16
+ const active = (!option.disabled || !option.filtered) && option === element;
17
+ option.active = active;
18
+ if (active) {
19
+ list.setAttribute('aria-activedescendant', option.id);
20
+ }
21
+ });
22
+ element.scrollIntoView({ block: 'nearest' });
23
+ }
24
+ }
25
+ function getFirstOption(list) {
26
+ let firstOption = getListOptions(list)[0];
27
+ while (firstOption && (firstOption.disabled || firstOption.filtered)) {
28
+ firstOption = firstOption.nextElementSibling;
29
+ }
30
+ return firstOption;
31
+ }
32
+ function getNextOption(list) {
33
+ if (hasActiveOption(list)) {
34
+ let nextOption = getActiveOption(list)
35
+ .nextElementSibling;
36
+ while (nextOption && (nextOption.disabled || nextOption.filtered)) {
37
+ nextOption = nextOption.nextElementSibling;
38
+ }
39
+ return nextOption;
40
+ }
41
+ return getFirstOption(list);
42
+ }
43
+ function getPreviousOption(list) {
44
+ if (hasActiveOption(list)) {
45
+ let previousOption = getActiveOption(list)
46
+ .previousElementSibling;
47
+ while (previousOption &&
48
+ (previousOption.disabled || previousOption.filtered)) {
49
+ previousOption =
50
+ previousOption.previousElementSibling;
51
+ }
52
+ return previousOption;
53
+ }
54
+ return getFirstOption(list);
55
+ }
56
+ function getLastOption(list) {
57
+ const options = getListOptions(list);
58
+ let lastOption = options[options.length - 1];
59
+ while (lastOption && (lastOption.disabled || lastOption.filtered)) {
60
+ lastOption = lastOption.previousElementSibling;
61
+ }
62
+ return lastOption;
63
+ }
64
+ function hasActiveOption(list) {
65
+ return Boolean(getActiveOption(list));
66
+ }
67
+ function getSearchOption(list, searchString) {
68
+ return getListOptions(list).find(option => {
69
+ return ((!option.disabled || !option.filtered) &&
70
+ option.textContent.toLowerCase().startsWith(searchString.toLowerCase()));
71
+ });
72
+ }
73
+ function setSearchOptionActive(list, searchString) {
74
+ const option = getSearchOption(list, searchString);
75
+ if (option) {
76
+ setActiveOption(list, option);
77
+ }
78
+ else {
79
+ clearActiveOptions(list);
80
+ }
81
+ }
82
+ function clearActiveOptions(list) {
83
+ getListOptions(list).forEach(option => {
84
+ option.active = false;
85
+ });
86
+ }
87
+ function setInitialActiveOption(list) {
88
+ setActiveOption(list, getHoveredOption(list) ||
89
+ getFirstSelectedOption(list) ||
90
+ getFirstOption(list));
91
+ }
92
+ function hasPreviousOption(list) {
93
+ if (hasActiveOption(list)) {
94
+ let previousOption = getActiveOption(list)
95
+ .previousElementSibling;
96
+ while (previousOption &&
97
+ (previousOption.disabled || previousOption.filtered)) {
98
+ previousOption =
99
+ previousOption.previousElementSibling;
100
+ }
101
+ return Boolean(previousOption);
102
+ }
103
+ return false;
104
+ }
105
+ function hasNextOption(list) {
106
+ if (hasActiveOption(list)) {
107
+ let nextOption = getActiveOption(list)
108
+ .nextElementSibling;
109
+ while (nextOption && (nextOption.disabled || nextOption.filtered)) {
110
+ nextOption = nextOption.nextElementSibling;
111
+ }
112
+ return Boolean(nextOption);
113
+ }
114
+ return false;
115
+ }
116
+ function setFirstOptionActive(list) {
117
+ setActiveOption(list, getFirstOption(list));
118
+ }
119
+ function setNextOptionActive(list) {
120
+ setActiveOption(list, getNextOption(list));
121
+ }
122
+ function setPreviousOptionActive(list) {
123
+ setActiveOption(list, getPreviousOption(list));
124
+ }
125
+ function setLastOptionActive(list) {
126
+ setActiveOption(list, getLastOption(list));
127
+ }
128
+ function actOnActiveOption(list, handler) {
129
+ if (hasActiveOption(list)) {
130
+ handler(getActiveOption(list).value);
131
+ }
132
+ }
133
+ function onClickedOption(option, handler) {
134
+ handler(option.value);
135
+ }
136
+ let timer;
137
+ let searchStringState = '';
138
+ const searchDebounceInterval = 250;
139
+ function goToOption(list, letter) {
140
+ clearTimeout(timer);
141
+ searchStringState += letter;
142
+ timer = setTimeout(() => {
143
+ setSearchOptionActive(list, searchStringState);
144
+ searchStringState = '';
145
+ }, searchDebounceInterval);
146
+ }
147
+
148
+ export { setLastOptionActive as a, setFirstOptionActive as b, clearActiveOptions as c, setPreviousOptionActive as d, hasNextOption as e, setNextOptionActive as f, getSearchOption as g, hasPreviousOption as h, actOnActiveOption as i, goToOption as j, onClickedOption as o, setInitialActiveOption as s };