genesys-spark-components 3.5.0 → 3.6.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 (305) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  3. package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-action-button-legacy.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-action-list-legacy.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-action-toast.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-badge-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-slot-beta.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-card-beta.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-disclosure-button.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +297 -0
  31. package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +58 -0
  32. package/dist/cjs/gux-dropdown_3.cjs.entry.js +27 -175
  33. package/dist/cjs/gux-error-message-beta.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +6 -6
  36. package/dist/cjs/gux-form-field-color.cjs.entry.js +7 -7
  37. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +91 -0
  38. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-number.cjs.entry.js +9 -9
  41. package/dist/cjs/gux-form-field-radio.cjs.entry.js +6 -6
  42. package/dist/cjs/gux-form-field-range.cjs.entry.js +7 -7
  43. package/dist/cjs/gux-form-field-search.cjs.entry.js +9 -9
  44. package/dist/cjs/gux-form-field-select.cjs.entry.js +7 -7
  45. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +9 -9
  46. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +7 -7
  47. package/dist/cjs/{gux-form-field.servce-e9451c50.js → gux-form-field.service-e38b2c2f.js} +0 -0
  48. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-listbox-multi.cjs.entry.js +159 -0
  52. package/dist/cjs/gux-listbox.service-d394da79.js +161 -0
  53. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-notification-toast.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-option-multi.cjs.entry.js +47 -0
  56. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-pagination-beta.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-popover.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-switch.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-table-beta.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-tabs-legacy.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-tag-beta.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-time-picker-beta.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
  80. package/dist/cjs/index-33b1b88e.js +24 -4
  81. package/dist/cjs/loader.cjs.js +1 -1
  82. package/dist/cjs/{usage-tracking-1ddbe5f1.js → usage-tracking-f3cc3f84.js} +1 -1
  83. package/dist/collection/collection-manifest.json +5 -0
  84. package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.css +50 -0
  85. package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.js +116 -0
  86. package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi.css +151 -0
  87. package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi.js +458 -0
  88. package/dist/collection/components/beta/gux-tag/gux-tag.js +0 -17
  89. package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +19 -0
  90. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-checkbox/gux-form-field-checkbox.js +1 -1
  91. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +1 -1
  92. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.css +153 -0
  93. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +126 -0
  94. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +1 -1
  95. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-radio/gux-form-field-radio.js +1 -1
  96. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.js +1 -1
  97. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +1 -1
  98. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +1 -1
  99. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.js +1 -1
  100. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.js +1 -1
  101. package/dist/collection/components/stable/gux-form-field/{gux-form-field.servce.js → gux-form-field.service.js} +0 -0
  102. package/dist/collection/components/stable/gux-listbox/gux-listbox.js +7 -9
  103. package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.css +23 -0
  104. package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.js +269 -0
  105. package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.css +45 -0
  106. package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.js +167 -0
  107. package/dist/deploy-info.json +3 -3
  108. package/dist/esm/genesys-webcomponents.js +1 -1
  109. package/dist/esm/gux-accordion-legacy.entry.js +1 -1
  110. package/dist/esm/gux-accordion.entry.js +1 -1
  111. package/dist/esm/gux-action-button-legacy.entry.js +1 -1
  112. package/dist/esm/gux-action-button.entry.js +1 -1
  113. package/dist/esm/gux-action-list-legacy.entry.js +1 -1
  114. package/dist/esm/gux-action-toast.entry.js +1 -1
  115. package/dist/esm/gux-advanced-dropdown.entry.js +1 -1
  116. package/dist/esm/gux-badge-beta.entry.js +1 -1
  117. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  118. package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
  119. package/dist/esm/gux-button-multi.entry.js +1 -1
  120. package/dist/esm/gux-button-slot-beta.entry.js +1 -1
  121. package/dist/esm/gux-button.entry.js +1 -1
  122. package/dist/esm/gux-calendar.entry.js +1 -1
  123. package/dist/esm/gux-card-beta.entry.js +1 -1
  124. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  125. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  126. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  127. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  128. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
  129. package/dist/esm/gux-command-palette-legacy.entry.js +1 -1
  130. package/dist/esm/gux-content-search.entry.js +1 -1
  131. package/dist/esm/gux-copy-to-clipboard-beta.entry.js +1 -1
  132. package/dist/esm/gux-datepicker.entry.js +1 -1
  133. package/dist/esm/gux-disclosure-button.entry.js +1 -1
  134. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  135. package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
  136. package/dist/esm/gux-dropdown-multi-beta.entry.js +293 -0
  137. package/dist/esm/gux-dropdown-multi-tag.entry.js +54 -0
  138. package/dist/esm/gux-dropdown_3.entry.js +9 -157
  139. package/dist/esm/gux-error-message-beta.entry.js +1 -1
  140. package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
  141. package/dist/esm/gux-form-field-checkbox.entry.js +2 -2
  142. package/dist/esm/gux-form-field-color.entry.js +2 -2
  143. package/dist/esm/gux-form-field-dropdown.entry.js +87 -0
  144. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  145. package/dist/esm/gux-form-field-legacy.entry.js +1 -1
  146. package/dist/esm/gux-form-field-number.entry.js +2 -2
  147. package/dist/esm/gux-form-field-radio.entry.js +2 -2
  148. package/dist/esm/gux-form-field-range.entry.js +2 -2
  149. package/dist/esm/gux-form-field-search.entry.js +2 -2
  150. package/dist/esm/gux-form-field-select.entry.js +2 -2
  151. package/dist/esm/gux-form-field-text-like.entry.js +2 -2
  152. package/dist/esm/gux-form-field-textarea.entry.js +2 -2
  153. package/dist/esm/{gux-form-field.servce-971609e2.js → gux-form-field.service-4ad30790.js} +0 -0
  154. package/dist/esm/gux-icon.entry.js +1 -1
  155. package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
  156. package/dist/esm/gux-list.entry.js +1 -1
  157. package/dist/esm/gux-listbox-multi.entry.js +155 -0
  158. package/dist/esm/gux-listbox.service-3541a2f7.js +148 -0
  159. package/dist/esm/gux-modal.entry.js +1 -1
  160. package/dist/esm/gux-notification-toast.entry.js +1 -1
  161. package/dist/esm/gux-option-multi.entry.js +43 -0
  162. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  163. package/dist/esm/gux-pagination-beta.entry.js +1 -1
  164. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  165. package/dist/esm/gux-pagination.entry.js +1 -1
  166. package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
  167. package/dist/esm/gux-popover-list.entry.js +1 -1
  168. package/dist/esm/gux-popover.entry.js +1 -1
  169. package/dist/esm/gux-radial-loading.entry.js +1 -1
  170. package/dist/esm/gux-radial-progress.entry.js +1 -1
  171. package/dist/esm/gux-rating.entry.js +1 -1
  172. package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
  173. package/dist/esm/gux-simple-toast.entry.js +1 -1
  174. package/dist/esm/gux-switch.entry.js +1 -1
  175. package/dist/esm/gux-table-beta.entry.js +1 -1
  176. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  177. package/dist/esm/gux-tabs-legacy.entry.js +1 -1
  178. package/dist/esm/gux-tabs.entry.js +1 -1
  179. package/dist/esm/gux-tag-beta.entry.js +1 -1
  180. package/dist/esm/gux-text-highlight.entry.js +1 -1
  181. package/dist/esm/gux-text-label-legacy.entry.js +1 -1
  182. package/dist/esm/gux-time-picker-beta.entry.js +1 -1
  183. package/dist/esm/gux-toggle.entry.js +1 -1
  184. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  185. package/dist/esm/gux-visualization-beta.entry.js +1 -1
  186. package/dist/esm/index-76794476.js +24 -4
  187. package/dist/esm/loader.js +1 -1
  188. package/dist/esm/{usage-tracking-e9b9fc3f.js → usage-tracking-83359dbf.js} +1 -1
  189. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  190. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ar.json +1 -1
  191. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.cs.json +1 -1
  192. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.da.json +1 -1
  193. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.de.json +1 -1
  194. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
  195. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es-es.json +1 -1
  196. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.es.json +1 -1
  197. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fi.json +1 -1
  198. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr-ca.json +1 -1
  199. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.fr.json +1 -1
  200. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.it.json +1 -1
  201. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ja.json +1 -1
  202. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ko.json +1 -1
  203. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.nl.json +1 -1
  204. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.no.json +1 -1
  205. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pl.json +1 -1
  206. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pt-br.json +1 -1
  207. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.ru.json +1 -1
  208. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.sv.json +1 -1
  209. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.th.json +1 -1
  210. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.tr.json +1 -1
  211. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-cn.json +1 -1
  212. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.zh-tw.json +1 -1
  213. package/dist/genesys-webcomponents/p-020690ec.entry.js +1 -0
  214. package/dist/genesys-webcomponents/{p-29744d9a.entry.js → p-0319263d.entry.js} +1 -1
  215. package/dist/genesys-webcomponents/{p-b190a126.entry.js → p-0424f896.entry.js} +1 -1
  216. package/dist/genesys-webcomponents/{p-6be57719.entry.js → p-07f57fba.entry.js} +1 -1
  217. package/dist/genesys-webcomponents/{p-f0e923b9.entry.js → p-0c2f3d37.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-6ec0cec3.entry.js → p-0d51e659.entry.js} +1 -1
  219. package/dist/genesys-webcomponents/{p-ed56171c.entry.js → p-0eade7d8.entry.js} +1 -1
  220. package/dist/genesys-webcomponents/{p-eadf85b3.entry.js → p-11a585f0.entry.js} +1 -1
  221. package/dist/genesys-webcomponents/{p-30558b17.entry.js → p-1729a48c.entry.js} +1 -1
  222. package/dist/genesys-webcomponents/{p-e56e0d6a.entry.js → p-17980fa9.entry.js} +1 -1
  223. package/dist/genesys-webcomponents/{p-b98439e6.entry.js → p-1b839ce5.entry.js} +1 -1
  224. package/dist/genesys-webcomponents/{p-344828ad.entry.js → p-2428f6b2.entry.js} +1 -1
  225. package/dist/genesys-webcomponents/{p-45df9c11.entry.js → p-291608e9.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-5b4d8050.entry.js → p-29f0760a.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/{p-e7caa47a.entry.js → p-2a0fbc9f.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/{p-4a67745f.entry.js → p-2a2f15bb.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-c1f6910e.entry.js → p-32235f46.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-6b756f6d.entry.js → p-323c1430.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-76f7479d.entry.js → p-32585fea.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/p-3770c1e9.js +1 -0
  233. package/dist/genesys-webcomponents/{p-4cc40ffe.entry.js → p-39d898df.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-d75428f1.entry.js → p-3e94ba55.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-b3fcbbe4.entry.js → p-42f9c421.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-08b07a2b.js → p-479cf5a2.js} +0 -0
  237. package/dist/genesys-webcomponents/{p-1313a627.entry.js → p-4c5acf82.entry.js} +1 -1
  238. package/dist/genesys-webcomponents/{p-b664a390.entry.js → p-58b5efa2.entry.js} +1 -1
  239. package/dist/genesys-webcomponents/{p-5534193b.entry.js → p-5bbf331f.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/{p-c551dd14.entry.js → p-60f75d6e.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-2d9198b1.entry.js → p-62c2dcaf.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-548af6d1.entry.js → p-62d1cde8.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/p-66ca3da0.entry.js +1 -0
  244. package/dist/genesys-webcomponents/{p-84165fbe.entry.js → p-6809132b.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-f62d408a.entry.js → p-6e2e5f6f.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-1bef4ea7.entry.js → p-71a69169.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-7512b26a.entry.js → p-7213d71d.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-7c1b42ab.entry.js → p-772f31b1.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-d4730ee1.entry.js → p-77f93a2b.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-25b74c1b.entry.js → p-787ec751.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-5a4584b1.entry.js → p-7b4f9126.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-6f834153.entry.js → p-7cc82e6f.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-7bae2a7d.entry.js → p-88b2b100.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-be4455b9.entry.js → p-90ba25cf.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-dcdf8926.entry.js → p-95e43594.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-caff3783.entry.js → p-964097f0.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-4083afa6.entry.js → p-9a09169f.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-5190a2c0.entry.js → p-9d663bf4.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-d429ff71.entry.js → p-9f97f311.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-ca932cd2.js → p-a44f5924.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-24206bb9.entry.js → p-a5fa799d.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-1856e5cd.entry.js → p-a87d2b90.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-f329dbea.entry.js → p-a926e0c4.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/p-a9499ee1.entry.js +1 -0
  265. package/dist/genesys-webcomponents/{p-d63d33a7.entry.js → p-ab11ff84.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-a8b8ae7f.entry.js → p-af4be06f.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-f114dc1b.entry.js → p-b7c37cbc.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-b3e2578c.entry.js → p-bd2fd32a.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-882bb0d7.entry.js → p-bf6fd055.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-c89c74eb.entry.js → p-c3582f7c.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-c6d44d2f.entry.js → p-cc544e76.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-66e648d2.entry.js → p-ccfa2e58.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-cbd66a48.entry.js → p-cf581353.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-44ea15ed.entry.js → p-d989c6fa.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-e78c86e4.entry.js → p-dbc95134.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-5587d078.entry.js → p-dc53d8fb.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-f26b46dc.entry.js → p-dee741ef.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-193d169d.entry.js → p-e67b0d46.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/p-e78de8af.entry.js +1 -0
  280. package/dist/genesys-webcomponents/{p-c72a8228.entry.js → p-e813ac64.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/p-ea1706f3.entry.js +1 -0
  282. package/dist/genesys-webcomponents/{p-c3b9a57f.entry.js → p-eaff9d4f.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-b0259c1a.entry.js → p-ef9491b9.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-83818ffb.entry.js → p-f07ad3df.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/p-f4e91e7a.entry.js +1 -0
  286. package/dist/genesys-webcomponents/{p-72291037.entry.js → p-fa36c86b.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/p-fb49bd0d.entry.js +1 -0
  288. package/dist/genesys-webcomponents/{p-dc714f80.entry.js → p-fb6977e1.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-2dac107b.entry.js → p-fd4474d2.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-78fa1cfb.entry.js → p-ff2a29fb.entry.js} +1 -1
  291. package/dist/stencil-wrapper.js +1 -1
  292. package/dist/types/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.d.ts +20 -0
  293. package/dist/types/components/beta/gux-dropdown-multi/gux-dropdown-multi.d.ts +56 -0
  294. package/dist/types/components/beta/gux-tag/gux-tag.d.ts +0 -4
  295. package/dist/types/components/stable/gux-dropdown/gux-dropdown.d.ts +1 -0
  296. package/dist/types/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.d.ts +27 -0
  297. package/dist/types/components/stable/gux-form-field/{gux-form-field.servce.d.ts → gux-form-field.service.d.ts} +1 -1
  298. package/dist/types/components/stable/gux-listbox/gux-listbox.d.ts +1 -1
  299. package/dist/types/components/stable/gux-listbox-multi/gux-listbox-multi.d.ts +28 -0
  300. package/dist/types/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.d.ts +15 -0
  301. package/dist/types/components.d.ts +123 -8
  302. package/dist/types/utils/dom/on-attribute-change.d.ts +2 -2
  303. package/package.json +1 -1
  304. package/dist/genesys-webcomponents/p-3d2cb50a.entry.js +0 -1
  305. package/dist/genesys-webcomponents/p-ab1ad75b.entry.js +0 -1
@@ -0,0 +1,293 @@
1
+ import { r as registerInstance, f as forceUpdate, h, g as getElement } from './index-76794476.js';
2
+ import { O as OnClickOutside } from './on-click-outside-ce30de20.js';
3
+ import { b as buildI18nForComponent } from './index-5bfcdeb1.js';
4
+ import { s as simulateNativeEvent } from './simulate-native-event-ac69961f.js';
5
+ import { t as trackComponent } from './usage-tracking-83359dbf.js';
6
+ import { g as getSearchOption } from './gux-listbox.service-3541a2f7.js';
7
+ import './get-closest-element-1597503c.js';
8
+
9
+ const filterResults = "Type to filter dropdown results";
10
+ const noSelection = "Select...";
11
+ const dropdown = "Dropdown";
12
+ const numberSelected = "{numberSelected} selected";
13
+ const translationResources = {
14
+ filterResults: filterResults,
15
+ noSelection: noSelection,
16
+ dropdown: dropdown,
17
+ numberSelected: numberSelected
18
+ };
19
+
20
+ const guxDropdownMultiCss = ":host{color:#2e394c}.gux-dropdown-container{position:relative}gux-dropdown-multi-tag{position:absolute;right:32px;bottom:4px}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:6px 0 6px 6px;font-family:inherit;font-size:12px;line-height:1.6667;cursor:pointer;background-color:#f6f7f9}.gux-field.gux-input-field{height:30px;cursor:text}.gux-field .gux-field-content{position:relative;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;min-width:0;height:100%}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;padding-left:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-selected-option .gux-sr-only:not(:focus):not(:active),.gux-field .gux-field-content .gux-placeholder .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;height:100%;padding-left:0}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;width:100%;caret-color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:#596373}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:#596373}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;width:16px;height:16px;padding:0 8px;color:#596373}.gux-target-container-expanded{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-expanded:focus-within{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{border:none;outline:none}.gux-target-container-expanded .gux-field-button{width:auto;height:30px;padding:0 0 0 8px;margin:0;background:inherit;border:none;outline:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-collapsed .gux-field-button:focus{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-listbox-container{box-sizing:border-box;margin:0;color:#2e394c}.gux-error-message-container{display:none;margin:4px 0}.gux-error-message-container.gux-show{display:flex}";
21
+
22
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
23
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
25
+ r = Reflect.decorate(decorators, target, key, desc);
26
+ else
27
+ for (var i = decorators.length - 1; i >= 0; i--)
28
+ if (d = decorators[i])
29
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
30
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
31
+ };
32
+ const GuxDropdownMulti = class {
33
+ constructor(hostRef) {
34
+ registerInstance(this, hostRef);
35
+ this.disabled = false;
36
+ this.required = false;
37
+ this.filterable = false;
38
+ this.expanded = false;
39
+ this.filter = '';
40
+ }
41
+ focusSelectedItemAfterRender(expanded) {
42
+ if (expanded && this.listboxElement) {
43
+ requestAnimationFrame(() => {
44
+ requestAnimationFrame(() => {
45
+ this.listboxElement.focus();
46
+ if (this.filterable) {
47
+ this.filterElement.focus();
48
+ }
49
+ });
50
+ });
51
+ }
52
+ if (!expanded) {
53
+ this.filter = '';
54
+ }
55
+ }
56
+ validateValue(newValue) {
57
+ if (newValue === undefined) {
58
+ if (this.listboxElement) {
59
+ this.listboxElement.value = newValue;
60
+ }
61
+ return;
62
+ }
63
+ const selectedListboxOptionElement = this.getOptionElementByValue(newValue);
64
+ if (selectedListboxOptionElement) {
65
+ this.listboxElement.value = newValue;
66
+ return;
67
+ }
68
+ this.value = undefined;
69
+ }
70
+ /**
71
+ * Gets the currently selected values.
72
+ */
73
+ getSelectedValues() {
74
+ var _a;
75
+ return Promise.resolve(((_a = this.value) === null || _a === void 0 ? void 0 : _a.split(',')) || []);
76
+ }
77
+ onKeydown(event) {
78
+ switch (event.key) {
79
+ case 'Escape':
80
+ if (this.filterable) {
81
+ if (document.activeElement === this.listboxElement) {
82
+ return this.filterElement.focus();
83
+ }
84
+ }
85
+ this.collapseListbox('focusFieldButton');
86
+ return;
87
+ case 'Tab':
88
+ if (this.shiftTabFromFilterListbox(event)) {
89
+ event.preventDefault();
90
+ return this.filterElement.focus();
91
+ }
92
+ else if (this.shiftTabFromExpandedFilterInput(event)) {
93
+ event.preventDefault();
94
+ return this.collapseListbox('focusFieldButton');
95
+ }
96
+ else {
97
+ this.collapseListbox('noFocusChange');
98
+ }
99
+ return;
100
+ case 'ArrowDown':
101
+ if (this.activeElementNotListbox()) {
102
+ event.preventDefault();
103
+ this.expanded = true;
104
+ }
105
+ return;
106
+ }
107
+ }
108
+ onInternallistboxoptionsupdated(event) {
109
+ event.stopPropagation();
110
+ forceUpdate(this.root);
111
+ }
112
+ onGuxclearselected(event) {
113
+ event.stopPropagation();
114
+ this.value = '';
115
+ if (this.listboxElement) {
116
+ this.listboxElement.value = undefined;
117
+ }
118
+ this.validateValue(this.value);
119
+ this.fieldButtonElement.focus();
120
+ }
121
+ onBlur(event) {
122
+ this.stopPropagationOfInternalFocusEvents(event);
123
+ }
124
+ onFocus(event) {
125
+ this.stopPropagationOfInternalFocusEvents(event);
126
+ }
127
+ onFocusout(event) {
128
+ this.stopPropagationOfInternalFocusEvents(event);
129
+ }
130
+ onFocusin(event) {
131
+ this.stopPropagationOfInternalFocusEvents(event);
132
+ }
133
+ onClickOutside() {
134
+ this.collapseListbox('noFocusChange');
135
+ }
136
+ async componentWillLoad() {
137
+ trackComponent(this.root);
138
+ this.i18n = await buildI18nForComponent(this.root, translationResources);
139
+ this.listboxElement = this.root.querySelector('gux-listbox-multi');
140
+ this.validateValue(this.value);
141
+ }
142
+ componentDidLoad() {
143
+ this.listboxElement.addEventListener('input', (event) => {
144
+ event.stopPropagation();
145
+ this.updateValue(event.target.value);
146
+ });
147
+ this.listboxElement.addEventListener('change', (event) => {
148
+ event.stopPropagation();
149
+ });
150
+ }
151
+ componentWillRender() {
152
+ this.validateValue(this.value);
153
+ this.listboxElement.filter = this.filter;
154
+ }
155
+ stopPropagationOfInternalFocusEvents(event) {
156
+ if (this.root.contains(event.relatedTarget)) {
157
+ return event.stopImmediatePropagation();
158
+ }
159
+ }
160
+ getOptionElementByValue(value) {
161
+ const listboxOptionElements = Array.from(this.root.querySelectorAll('gux-option-multi'));
162
+ const values = value ? value.split(',') : undefined;
163
+ if (values) {
164
+ return listboxOptionElements.filter(element => values.includes(element.value));
165
+ }
166
+ return;
167
+ }
168
+ fieldButtonClick() {
169
+ this.expanded = !this.expanded;
170
+ }
171
+ fieldButtonInputClick() {
172
+ if (!this.expanded) {
173
+ this.expanded = !this.expanded;
174
+ }
175
+ }
176
+ filterInput(event) {
177
+ event.stopPropagation();
178
+ this.filter = this.filterElement.value;
179
+ }
180
+ shiftTabFromExpandedFilterInput(event) {
181
+ return (event.shiftKey &&
182
+ this.filterable &&
183
+ this.expanded &&
184
+ !(document.activeElement === this.listboxElement));
185
+ }
186
+ shiftTabFromFilterListbox(event) {
187
+ return (event.shiftKey &&
188
+ this.filterable &&
189
+ document.activeElement === this.listboxElement);
190
+ }
191
+ activeElementNotListbox() {
192
+ return document.activeElement !== this.listboxElement;
193
+ }
194
+ filterKeydown(event) {
195
+ switch (event.key) {
196
+ case 'ArrowDown':
197
+ event.stopImmediatePropagation();
198
+ this.listboxElement.focus();
199
+ return;
200
+ case 'Enter':
201
+ void this.listboxElement.guxSelectActive();
202
+ event.preventDefault();
203
+ return;
204
+ }
205
+ }
206
+ filterKeyup(event) {
207
+ switch (event.key) {
208
+ case ' ':
209
+ event.preventDefault();
210
+ return;
211
+ }
212
+ }
213
+ collapseListbox(focusChange) {
214
+ if (this.expanded) {
215
+ this.expanded = false;
216
+ }
217
+ if (focusChange === 'focusFieldButton') {
218
+ this.fieldButtonElement.focus();
219
+ }
220
+ }
221
+ updateValue(newValue) {
222
+ if (this.value !== newValue) {
223
+ this.value = newValue;
224
+ simulateNativeEvent(this.root, 'input');
225
+ simulateNativeEvent(this.root, 'change');
226
+ }
227
+ }
228
+ getSuggestionText(filter) {
229
+ const filterLength = filter.length;
230
+ if (filterLength > 0) {
231
+ const option = getSearchOption(this.listboxElement, filter);
232
+ if (option) {
233
+ return option.textContent.substring(filterLength);
234
+ }
235
+ }
236
+ return '';
237
+ }
238
+ renderTargetDisplay() {
239
+ return (h("div", { class: "gux-placeholder" }, this.placeholder || this.i18n('noSelection'), this.getSrSelectedText()));
240
+ }
241
+ getSrSelectedText() {
242
+ const selectedListboxOptionElement = this.getOptionElementByValue(this.value);
243
+ if (selectedListboxOptionElement === null || selectedListboxOptionElement === void 0 ? void 0 : selectedListboxOptionElement.length) {
244
+ return (h("span", { class: "gux-sr-only" }, this.i18n('numberSelected', {
245
+ numberSelected: selectedListboxOptionElement.length.toString()
246
+ })));
247
+ }
248
+ }
249
+ renderTag() {
250
+ const selectedListboxOptionElement = this.getOptionElementByValue(this.value);
251
+ if (selectedListboxOptionElement === null || selectedListboxOptionElement === void 0 ? void 0 : selectedListboxOptionElement.length) {
252
+ return (h("gux-dropdown-multi-tag", { disabled: this.disabled, "number-selected": selectedListboxOptionElement.length }));
253
+ }
254
+ }
255
+ renderFilterInputField() {
256
+ if (this.expanded && this.filterable) {
257
+ return (h("div", { class: "gux-field gux-input-field" }, h("div", { class: "gux-field-content" }, h("div", { class: "gux-filter" }, h("div", { class: "gux-filter-display" }, h("span", { class: "gux-filter-text" }, this.filter), h("span", { class: "gux-filter-suggestion" }, this.getSuggestionText(this.filter))), h("div", { class: "input-and-dropdown-button" }, h("input", { onClick: this.fieldButtonInputClick.bind(this), placeholder: this.placeholder || this.i18n('noSelection'), class: "gux-filter-input", type: "text", "aria-label": this.i18n('filterResults'), ref: el => (this.filterElement = el), onInput: this.filterInput.bind(this), onKeyDown: this.filterKeydown.bind(this), onKeyUp: this.filterKeyup.bind(this) }))))));
258
+ }
259
+ }
260
+ renderPopup() {
261
+ return (h("div", { slot: "popup", class: "gux-listbox-container" }, h("slot", null)));
262
+ }
263
+ renderTarget() {
264
+ return (h("div", { class: {
265
+ 'gux-target-container': true,
266
+ 'gux-target-container-expanded': this.expanded && this.filterable,
267
+ 'gux-target-container-collapsed': !(this.expanded && this.filterable)
268
+ }, slot: "target" }, this.renderFilterInputField(), h("button", { type: "button", class: "gux-field gux-field-button", disabled: this.disabled, onClick: this.fieldButtonClick.bind(this), ref: el => (this.fieldButtonElement = el), "aria-haspopup": "listbox", "aria-expanded": this.expanded.toString() }, this.renderTargetContent(), h("gux-icon", { class: {
269
+ 'gux-expand-icon': true
270
+ }, "screenreader-text": this.i18n('dropdown'), iconName: "chevron-small-down" }))));
271
+ }
272
+ renderTargetContent() {
273
+ if (!(this.expanded && this.filterable)) {
274
+ return (h("div", { class: "gux-field-content" }, this.renderTargetDisplay()));
275
+ }
276
+ }
277
+ render() {
278
+ return [
279
+ h("div", { class: "gux-dropdown-container" }, h("gux-popup", { expanded: this.expanded, disabled: this.disabled }, this.renderTarget(), this.renderPopup()), this.renderTag())
280
+ ];
281
+ }
282
+ get root() { return getElement(this); }
283
+ static get watchers() { return {
284
+ "expanded": ["focusSelectedItemAfterRender"],
285
+ "value": ["validateValue"]
286
+ }; }
287
+ };
288
+ __decorate([
289
+ OnClickOutside({ triggerEvents: 'mousedown' })
290
+ ], GuxDropdownMulti.prototype, "onClickOutside", null);
291
+ GuxDropdownMulti.style = guxDropdownMultiCss;
292
+
293
+ export { GuxDropdownMulti as gux_dropdown_multi_beta };
@@ -0,0 +1,54 @@
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-76794476.js';
2
+ import { b as buildI18nForComponent } from './index-5bfcdeb1.js';
3
+ import './get-closest-element-1597503c.js';
4
+
5
+ const clearSelection = "Clear {numberSelected} selected items";
6
+ const translationResources = {
7
+ clearSelection: clearSelection
8
+ };
9
+
10
+ const guxDropdownMultiTagCss = ":host{display:inline-block}.gux-tag{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:flex-start;padding:2px 4px 2px 8px;font-size:12px;font-weight:bold;color:#2e394c;background-color:#e2e6ee;border-radius:4px}.gux-tag .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-tag .gux-tag-remove-button{all:unset;display:flex;align-content:center;align-items:center;justify-content:center;margin-left:7px}.gux-tag .gux-tag-remove-button:not(:disabled):hover{cursor:pointer}.gux-tag .gux-tag-remove-button .gux-tag-remove-icon{width:16px;height:16px;border-radius:25%}.gux-tag .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline:none;box-shadow:0 0 0 1px transparent, 0 0 0 2px #aac9ff}.gux-tag.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(226, 230, 238, 0.5)}";
11
+
12
+ const GuxDropdownMultiTag = class {
13
+ constructor(hostRef) {
14
+ registerInstance(this, hostRef);
15
+ this.guxclearselected = createEvent(this, "guxclearselected", 7);
16
+ /**
17
+ * Tag is removable.
18
+ */
19
+ this.disabled = false;
20
+ this.numberSelected = 0;
21
+ this.label = '';
22
+ }
23
+ onKeyDown(event) {
24
+ switch (event.key) {
25
+ case 'Backspace':
26
+ case 'Delete':
27
+ this.removeTag();
28
+ }
29
+ }
30
+ removeTag() {
31
+ if (this.disabled) {
32
+ return;
33
+ }
34
+ this.guxclearselected.emit();
35
+ }
36
+ renderRemoveButton() {
37
+ return (h("button", { class: "gux-tag-remove-button", onClick: this.removeTag.bind(this), type: "button", disabled: this.disabled }, h("gux-icon", { class: "gux-tag-remove-icon", "icon-name": "close", "screenreader-text": this.i18n('clearSelection', {
38
+ numberSelected: this.numberSelected.toString()
39
+ }) })));
40
+ }
41
+ async componentWillRender() {
42
+ this.i18n = await buildI18nForComponent(this.root, translationResources);
43
+ }
44
+ render() {
45
+ return (h("div", { class: {
46
+ 'gux-tag': true,
47
+ 'gux-disabled': this.disabled
48
+ }, "aria-disabled": this.disabled.toString() }, this.numberSelected.toString(), this.renderRemoveButton()));
49
+ }
50
+ get root() { return getElement(this); }
51
+ };
52
+ GuxDropdownMultiTag.style = guxDropdownMultiTagCss;
53
+
54
+ export { GuxDropdownMultiTag as gux_dropdown_multi_tag };
@@ -2,9 +2,9 @@ import { r as registerInstance, f as forceUpdate, h, g as getElement, c as creat
2
2
  import { O as OnClickOutside } from './on-click-outside-ce30de20.js';
3
3
  import { b as buildI18nForComponent } from './index-5bfcdeb1.js';
4
4
  import { s as simulateNativeEvent } from './simulate-native-event-ac69961f.js';
5
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
5
+ import { t as trackComponent } from './usage-tracking-83359dbf.js';
6
+ import { g as getSearchOption, 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';
6
7
  import { w as whenEventIsFrom } from './when-event-is-from-18667084.js';
7
- import { l as logError } from './log-error-b1a1a086.js';
8
8
  import { r as randomHTMLId } from './random-html-id-8e3f658c.js';
9
9
  import './get-closest-element-1597503c.js';
10
10
 
@@ -17,153 +17,6 @@ const translationResources$1 = {
17
17
  dropdown: dropdown
18
18
  };
19
19
 
20
- function getListOptions(list) {
21
- return Array.from(list.children);
22
- }
23
- function getHoveredOption(list) {
24
- return getListOptions(list).find(option => option.hovered && !option.disabled && !option.filtered);
25
- }
26
- function getFirstSelectedOption(list) {
27
- return getListOptions(list).find(option => option.selected && !option.disabled && !option.filtered);
28
- }
29
- function getActiveOption(list) {
30
- return getListOptions(list).find(option => option.active);
31
- }
32
- function setActiveOption(list, element) {
33
- if (element) {
34
- getListOptions(list).forEach(option => {
35
- const active = (!option.disabled || !option.filtered) && option === element;
36
- option.active = active;
37
- if (active) {
38
- list.setAttribute('aria-activedescendant', option.id);
39
- }
40
- });
41
- element.scrollIntoView({ block: 'nearest' });
42
- }
43
- }
44
- function getFirstOption(list) {
45
- let firstOption = getListOptions(list)[0];
46
- while (firstOption && (firstOption.disabled || firstOption.filtered)) {
47
- firstOption = firstOption.nextElementSibling;
48
- }
49
- return firstOption;
50
- }
51
- function getNextOption(list) {
52
- if (hasActiveOption(list)) {
53
- let nextOption = getActiveOption(list)
54
- .nextElementSibling;
55
- while (nextOption && (nextOption.disabled || nextOption.filtered)) {
56
- nextOption = nextOption.nextElementSibling;
57
- }
58
- return nextOption;
59
- }
60
- return getFirstOption(list);
61
- }
62
- function getPreviousOption(list) {
63
- if (hasActiveOption(list)) {
64
- let previousOption = getActiveOption(list)
65
- .previousElementSibling;
66
- while (previousOption &&
67
- (previousOption.disabled || previousOption.filtered)) {
68
- previousOption =
69
- previousOption.previousElementSibling;
70
- }
71
- return previousOption;
72
- }
73
- return getFirstOption(list);
74
- }
75
- function getLastOption(list) {
76
- const options = getListOptions(list);
77
- let lastOption = options[options.length - 1];
78
- while (lastOption && (lastOption.disabled || lastOption.filtered)) {
79
- lastOption = lastOption.previousElementSibling;
80
- }
81
- return lastOption;
82
- }
83
- function hasActiveOption(list) {
84
- return Boolean(getActiveOption(list));
85
- }
86
- function getSearchOption(list, searchString) {
87
- return getListOptions(list).find(option => {
88
- return ((!option.disabled || !option.filtered) &&
89
- option.textContent.toLowerCase().startsWith(searchString.toLowerCase()));
90
- });
91
- }
92
- function setSearchOptionActive(list, searchString) {
93
- const option = getSearchOption(list, searchString);
94
- if (option) {
95
- setActiveOption(list, option);
96
- }
97
- else {
98
- clearActiveOptions(list);
99
- }
100
- }
101
- function clearActiveOptions(list) {
102
- getListOptions(list).forEach(option => {
103
- option.active = false;
104
- });
105
- }
106
- function setInitialActiveOption(list) {
107
- setActiveOption(list, getHoveredOption(list) ||
108
- getFirstSelectedOption(list) ||
109
- getFirstOption(list));
110
- }
111
- function hasPreviousOption(list) {
112
- if (hasActiveOption(list)) {
113
- let previousOption = getActiveOption(list)
114
- .previousElementSibling;
115
- while (previousOption &&
116
- (previousOption.disabled || previousOption.filtered)) {
117
- previousOption =
118
- previousOption.previousElementSibling;
119
- }
120
- return Boolean(previousOption);
121
- }
122
- return false;
123
- }
124
- function hasNextOption(list) {
125
- if (hasActiveOption(list)) {
126
- let nextOption = getActiveOption(list)
127
- .nextElementSibling;
128
- while (nextOption && (nextOption.disabled || nextOption.filtered)) {
129
- nextOption = nextOption.nextElementSibling;
130
- }
131
- return Boolean(nextOption);
132
- }
133
- return false;
134
- }
135
- function setFirstOptionActive(list) {
136
- setActiveOption(list, getFirstOption(list));
137
- }
138
- function setNextOptionActive(list) {
139
- setActiveOption(list, getNextOption(list));
140
- }
141
- function setPreviousOptionActive(list) {
142
- setActiveOption(list, getPreviousOption(list));
143
- }
144
- function setLastOptionActive(list) {
145
- setActiveOption(list, getLastOption(list));
146
- }
147
- function actOnActiveOption(list, handler) {
148
- if (hasActiveOption(list)) {
149
- handler(getActiveOption(list).value);
150
- }
151
- }
152
- function onClickedOption(option, handler) {
153
- handler(option.value);
154
- }
155
- let timer;
156
- let searchStringState = '';
157
- const searchDebounceInterval = 250;
158
- function goToOption(list, letter) {
159
- clearTimeout(timer);
160
- searchStringState += letter;
161
- timer = setTimeout(() => {
162
- setSearchOptionActive(list, searchStringState);
163
- searchStringState = '';
164
- }, searchDebounceInterval);
165
- }
166
-
167
20
  const guxDropdownCss = ":host{color:#2e394c}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:6px 8px 6px 6px;font-family:inherit;font-size:12px;line-height:1.6667;cursor:pointer;background-color:#f6f7f9}.gux-field.gux-input-field{height:30px}.gux-field .gux-field-content{display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;min-width:0;height:100%}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;padding-left:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;height:100%}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;width:100%;color:transparent;caret-color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:#596373}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:#596373}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;width:16px;height:16px;padding-left:8px;color:#596373}.gux-target-container-expanded{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-expanded:focus-within{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{border:none;outline:none}.gux-target-container-expanded .gux-field-button{width:auto;height:30px;padding:0 0 0 8px;margin:0;background:inherit;border:none;outline:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-collapsed .gux-field-button:focus{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-listbox-container{box-sizing:border-box;margin:0;color:#2e394c}";
168
21
 
169
22
  var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
@@ -180,6 +33,7 @@ const GuxDropdown = class {
180
33
  constructor(hostRef) {
181
34
  registerInstance(this, hostRef);
182
35
  this.disabled = false;
36
+ this.required = false;
183
37
  this.filterable = false;
184
38
  this.expanded = false;
185
39
  this.filter = '';
@@ -409,6 +263,7 @@ const GuxListbox = class {
409
263
  registerInstance(this, hostRef);
410
264
  this.internallistboxoptionsupdated = createEvent(this, "internallistboxoptionsupdated", 7);
411
265
  this.filter = '';
266
+ this.selectedValues = [];
412
267
  this.listboxOptions = [];
413
268
  }
414
269
  onFocus() {
@@ -484,27 +339,24 @@ const GuxListbox = class {
484
339
  actOnActiveOption(this.root, value => this.updateValue(value));
485
340
  }
486
341
  setListboxOptions() {
342
+ if (this.value) {
343
+ this.selectedValues = this.value.split(',');
344
+ }
487
345
  this.listboxOptions = Array.from(this.root.children);
488
346
  this.internallistboxoptionsupdated.emit();
489
347
  }
490
348
  updateValue(newValue) {
491
349
  if (this.value !== newValue) {
492
350
  this.value = newValue;
493
- simulateNativeEvent(this.root, 'input');
494
- simulateNativeEvent(this.root, 'change');
495
351
  }
352
+ simulateNativeEvent(this.root, 'input');
353
+ simulateNativeEvent(this.root, 'change');
496
354
  }
497
355
  async componentWillLoad() {
498
356
  trackComponent(this.root);
499
357
  this.i18n = await buildI18nForComponent(this.root, translationResources);
500
358
  this.setListboxOptions();
501
359
  }
502
- componentDidLoad() {
503
- if (!(this.root.getAttribute('aria-label') ||
504
- this.root.getAttribute('aria-labelledby'))) {
505
- logError('gux-listbox', '`gux-listbox` requires a label. Either provide a label and associate it with the listbox using `aria-labelledby` or add an `aria-label` attribute to the gux-listbox element.');
506
- }
507
- }
508
360
  componentWillRender() {
509
361
  this.listboxOptions.forEach(listboxOption => {
510
362
  listboxOption.selected = listboxOption.value === this.value;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, g as getElement } from './index-76794476.js';
2
- import { t as trackComponent } from './usage-tracking-e9b9fc3f.js';
2
+ import { t as trackComponent } from './usage-tracking-83359dbf.js';
3
3
 
4
4
  const guxErrorMessageBetaCss = ".gux-container{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;font-size:11px;color:#2e394c}.gux-container gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin:0 4px;color:#ea0b0b}.gux-container .gux-message{flex:0 1 auto;align-self:auto;order:0}";
5
5
 
@@ -1,5 +1,5 @@
1
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';
2
+ import { t as trackComponent } from './usage-tracking-83359dbf.js';
3
3
  import { m as moveFocusDelay, h as hideDelay } from './gux-menu.common-60ab04e4.js';
4
4
  import { c as createPopper } from './popper-93ecb064.js';
5
5
 
@@ -2,8 +2,8 @@ import { r as registerInstance, h, H as Host, g as getElement } from './index-76
2
2
  import { O as OnMutation } from './on-mutation-2e96b1b9.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-83359dbf.js';
6
+ import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds } from './gux-form-field.service-4ad30790.js';
7
7
  import './random-html-id-8e3f658c.js';
8
8
  import './log-error-b1a1a086.js';
9
9
  import './set-input-value-5adeaccc.js';
@@ -2,9 +2,9 @@ import { r as registerInstance, h, g as getElement } from './index-76794476.js';
2
2
  import { O as OnMutation } from './on-mutation-2e96b1b9.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';
5
+ import { t as trackComponent } from './usage-tracking-83359dbf.js';
6
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';
7
+ import { h as hasErrorSlot, G as GuxFormFieldError, v as validateFormIds, g as getComputedLabelPosition } from './gux-form-field.service-4ad30790.js';
8
8
  import './random-html-id-8e3f658c.js';
9
9
  import './log-error-b1a1a086.js';
10
10
  import './set-input-value-5adeaccc.js';