genesys-spark-components 4.0.0-beta.29 → 4.0.0-beta.30

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 (278) hide show
  1. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  2. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-button.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-context-menu.cjs.entry.js +4 -3
  18. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +1 -1
  25. package/dist/cjs/{gux-dropdown-multi-beta.cjs.entry.js → gux-dropdown-multi.cjs.entry.js} +6 -8
  26. package/dist/cjs/gux-dropdown_3.cjs.entry.js +6 -8
  27. package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-form-field-color.cjs.entry.js +2 -2
  30. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +3 -3
  31. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-form-field-number_3.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-form-field-phone.cjs.entry.js +2 -2
  34. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-region-icon.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-switch.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
  79. package/dist/cjs/index-0d0fdb85.js +2 -2
  80. package/dist/cjs/loader.cjs.js +1 -1
  81. package/dist/cjs/{usage-9037f66c.js → usage-89e1afa4.js} +1 -1
  82. package/dist/collection/collection-manifest.json +2 -2
  83. package/dist/collection/components/stable/gux-context-menu/gux-context-menu.css +35 -9
  84. package/dist/collection/components/stable/gux-context-menu/gux-context-menu.js +20 -1
  85. package/dist/collection/components/stable/gux-dropdown/gux-dropdown.css +57 -43
  86. package/dist/collection/components/stable/gux-dropdown/gux-dropdown.js +9 -29
  87. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.css +91 -0
  88. package/dist/collection/components/{beta → stable}/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.js +1 -1
  89. package/dist/collection/components/stable/gux-dropdown-multi/gux-dropdown-multi.css +209 -0
  90. package/dist/collection/components/{beta → stable}/gux-dropdown-multi/gux-dropdown-multi.js +11 -31
  91. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.css +143 -44
  92. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.js +1 -1
  93. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +2 -2
  94. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.css +77 -23
  95. package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.js +1 -1
  96. package/dist/component-specs.json +23 -24
  97. package/dist/deploy-info.json +3 -3
  98. package/dist/esm/genesys-webcomponents.js +1 -1
  99. package/dist/esm/gux-accordion.entry.js +1 -1
  100. package/dist/esm/gux-action-button.entry.js +1 -1
  101. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  102. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  103. package/dist/esm/gux-announce-beta.entry.js +1 -1
  104. package/dist/esm/gux-badge.entry.js +1 -1
  105. package/dist/esm/gux-blank-state.entry.js +1 -1
  106. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  107. package/dist/esm/gux-button-multi.entry.js +1 -1
  108. package/dist/esm/gux-button-slot.entry.js +1 -1
  109. package/dist/esm/gux-button.entry.js +1 -1
  110. package/dist/esm/gux-calendar.entry.js +1 -1
  111. package/dist/esm/gux-card.entry.js +1 -1
  112. package/dist/esm/gux-column-manager.entry.js +1 -1
  113. package/dist/esm/gux-content-search.entry.js +1 -1
  114. package/dist/esm/gux-context-menu.entry.js +4 -3
  115. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  116. package/dist/esm/gux-date-beta.entry.js +1 -1
  117. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  118. package/dist/esm/gux-datepicker.entry.js +1 -1
  119. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  120. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  121. package/dist/esm/gux-dropdown-multi-tag.entry.js +1 -1
  122. package/dist/esm/{gux-dropdown-multi-beta.entry.js → gux-dropdown-multi.entry.js} +6 -8
  123. package/dist/esm/gux-dropdown_3.entry.js +6 -8
  124. package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
  125. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  126. package/dist/esm/gux-form-field-color.entry.js +2 -2
  127. package/dist/esm/gux-form-field-dropdown.entry.js +3 -3
  128. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  129. package/dist/esm/gux-form-field-number_3.entry.js +1 -1
  130. package/dist/esm/gux-form-field-phone.entry.js +2 -2
  131. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  132. package/dist/esm/gux-form-field-range.entry.js +1 -1
  133. package/dist/esm/gux-form-field-search.entry.js +1 -1
  134. package/dist/esm/gux-form-field-select.entry.js +1 -1
  135. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  136. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  137. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  138. package/dist/esm/gux-icon.entry.js +1 -1
  139. package/dist/esm/gux-inline-alert.entry.js +1 -1
  140. package/dist/esm/gux-list.entry.js +1 -1
  141. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  142. package/dist/esm/gux-loading-message.entry.js +1 -1
  143. package/dist/esm/gux-modal.entry.js +1 -1
  144. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  145. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  146. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  147. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  148. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  149. package/dist/esm/gux-pagination.entry.js +1 -1
  150. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  151. package/dist/esm/gux-popover-list.entry.js +1 -1
  152. package/dist/esm/gux-radial-loading.entry.js +1 -1
  153. package/dist/esm/gux-radial-progress.entry.js +1 -1
  154. package/dist/esm/gux-rating.entry.js +1 -1
  155. package/dist/esm/gux-region-icon.entry.js +1 -1
  156. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  157. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  158. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  159. package/dist/esm/gux-sort-control.entry.js +1 -1
  160. package/dist/esm/gux-switch.entry.js +1 -1
  161. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  162. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  163. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  164. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  165. package/dist/esm/gux-table.entry.js +1 -1
  166. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  167. package/dist/esm/gux-tabs.entry.js +1 -1
  168. package/dist/esm/gux-tag.entry.js +1 -1
  169. package/dist/esm/gux-text-highlight.entry.js +1 -1
  170. package/dist/esm/gux-time-beta.entry.js +1 -1
  171. package/dist/esm/gux-time-picker.entry.js +1 -1
  172. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  173. package/dist/esm/gux-toast.entry.js +1 -1
  174. package/dist/esm/gux-toggle.entry.js +1 -1
  175. package/dist/esm/gux-tooltip.entry.js +1 -1
  176. package/dist/esm/index-0b66fe2c.js +2 -2
  177. package/dist/esm/loader.js +1 -1
  178. package/dist/esm/{usage-775c758f.js → usage-09e38ac3.js} +1 -1
  179. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  180. package/dist/genesys-webcomponents/{p-a7112589.entry.js → p-04151f21.entry.js} +1 -1
  181. package/dist/genesys-webcomponents/{p-84b02f9a.entry.js → p-07bf7a4c.entry.js} +1 -1
  182. package/dist/genesys-webcomponents/{p-7e8613ef.entry.js → p-0cac78cf.entry.js} +1 -1
  183. package/dist/genesys-webcomponents/{p-391d2c94.entry.js → p-1d314f8d.entry.js} +1 -1
  184. package/dist/genesys-webcomponents/{p-17fed5ad.entry.js → p-1f18c382.entry.js} +1 -1
  185. package/dist/genesys-webcomponents/{p-1accd06e.entry.js → p-1f225914.entry.js} +1 -1
  186. package/dist/genesys-webcomponents/{p-bd803de8.entry.js → p-213effa0.entry.js} +1 -1
  187. package/dist/genesys-webcomponents/{p-0a6e80c8.entry.js → p-26d85bc6.entry.js} +1 -1
  188. package/dist/genesys-webcomponents/{p-7a470ab8.entry.js → p-290e81a8.entry.js} +1 -1
  189. package/dist/genesys-webcomponents/{p-d8b0b0d9.entry.js → p-299063d7.entry.js} +1 -1
  190. package/dist/genesys-webcomponents/p-2c12eaa2.entry.js +1 -0
  191. package/dist/genesys-webcomponents/{p-5adbe8ab.entry.js → p-2dbabd46.entry.js} +1 -1
  192. package/dist/genesys-webcomponents/{p-8e23c28c.entry.js → p-2e8bfff9.entry.js} +1 -1
  193. package/dist/genesys-webcomponents/{p-68203e47.entry.js → p-314075a7.entry.js} +1 -1
  194. package/dist/genesys-webcomponents/{p-237aa911.entry.js → p-34f1acb2.entry.js} +1 -1
  195. package/dist/genesys-webcomponents/{p-d77d2752.entry.js → p-380f6c4a.entry.js} +1 -1
  196. package/dist/genesys-webcomponents/{p-4fc8b44e.entry.js → p-4d87e663.entry.js} +1 -1
  197. package/dist/genesys-webcomponents/{p-7048200c.entry.js → p-567e91a2.entry.js} +1 -1
  198. package/dist/genesys-webcomponents/{p-d2e07ae1.entry.js → p-57b7d2db.entry.js} +1 -1
  199. package/dist/genesys-webcomponents/{p-39aef491.entry.js → p-580e3d1c.entry.js} +1 -1
  200. package/dist/genesys-webcomponents/{p-741cf5fa.entry.js → p-5c2bdb13.entry.js} +1 -1
  201. package/dist/genesys-webcomponents/{p-84322c12.entry.js → p-5f833125.entry.js} +1 -1
  202. package/dist/genesys-webcomponents/{p-9b5ec2bd.entry.js → p-6161680e.entry.js} +1 -1
  203. package/dist/genesys-webcomponents/{p-bbe6fe3f.entry.js → p-6635a6ed.entry.js} +1 -1
  204. package/dist/genesys-webcomponents/{p-19a7df84.js → p-7037907d.js} +1 -1
  205. package/dist/genesys-webcomponents/{p-90485aff.entry.js → p-715ee2ff.entry.js} +1 -1
  206. package/dist/genesys-webcomponents/{p-a26af641.entry.js → p-716f776d.entry.js} +1 -1
  207. package/dist/genesys-webcomponents/{p-d4286397.entry.js → p-7229870f.entry.js} +1 -1
  208. package/dist/genesys-webcomponents/{p-f9dbe1b4.entry.js → p-7b44bdd0.entry.js} +1 -1
  209. package/dist/genesys-webcomponents/{p-41d752de.entry.js → p-803427c0.entry.js} +1 -1
  210. package/dist/genesys-webcomponents/{p-bcea8f49.entry.js → p-825ac3ee.entry.js} +1 -1
  211. package/dist/genesys-webcomponents/p-848ca0c0.entry.js +1 -0
  212. package/dist/genesys-webcomponents/{p-22dbcef7.entry.js → p-8c7108f3.entry.js} +1 -1
  213. package/dist/genesys-webcomponents/{p-3eae9bb3.entry.js → p-8d5a4d79.entry.js} +1 -1
  214. package/dist/genesys-webcomponents/{p-b365e09b.entry.js → p-90ff863b.entry.js} +1 -1
  215. package/dist/genesys-webcomponents/{p-25cbbd7d.entry.js → p-91184639.entry.js} +1 -1
  216. package/dist/genesys-webcomponents/{p-a70ecdb7.entry.js → p-9714c54b.entry.js} +1 -1
  217. package/dist/genesys-webcomponents/{p-57dce400.entry.js → p-97851d0d.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-bdd7db66.entry.js → p-99624b0e.entry.js} +1 -1
  219. package/dist/genesys-webcomponents/{p-96f0be69.entry.js → p-9bb6bb13.entry.js} +1 -1
  220. package/dist/genesys-webcomponents/{p-f2081d0c.entry.js → p-a00879eb.entry.js} +1 -1
  221. package/dist/genesys-webcomponents/p-a0a97154.entry.js +1 -0
  222. package/dist/genesys-webcomponents/{p-31c644b4.entry.js → p-a3f3562a.entry.js} +1 -1
  223. package/dist/genesys-webcomponents/{p-c909a96c.entry.js → p-aa0236c9.entry.js} +1 -1
  224. package/dist/genesys-webcomponents/{p-0eb24603.entry.js → p-b277b403.entry.js} +1 -1
  225. package/dist/genesys-webcomponents/{p-d9afb24f.entry.js → p-b2932c8d.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/p-baffeea7.entry.js +1 -0
  227. package/dist/genesys-webcomponents/{p-b28635c6.entry.js → p-bc18ea3b.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/{p-4f070177.entry.js → p-be6c1375.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-4a64f632.entry.js → p-c3a2ac37.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-fd1e28c6.entry.js → p-c6522787.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-7dd91f38.entry.js → p-c9f7655e.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-ff9e713f.entry.js → p-cdcadde4.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/p-ce376c15.entry.js +1 -0
  234. package/dist/genesys-webcomponents/{p-3231101a.entry.js → p-d38658e5.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-beefc3de.entry.js → p-d6e7c0e1.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-2f6a16bc.entry.js → p-dbe0631c.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/{p-096a8642.entry.js → p-dbf341b2.entry.js} +1 -1
  238. package/dist/genesys-webcomponents/{p-f758da43.entry.js → p-dd4dd851.entry.js} +1 -1
  239. package/dist/genesys-webcomponents/p-e0d0738a.entry.js +1 -0
  240. package/dist/genesys-webcomponents/{p-cd08cdda.entry.js → p-e2bb64f4.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-0731b5ab.entry.js → p-e34d132a.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-5285168c.entry.js → p-e48fe4a0.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-75c58b14.entry.js → p-e50f9a83.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-4d0dd9f8.entry.js → p-e81db5bb.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/p-ec3c2e09.entry.js +1 -0
  246. package/dist/genesys-webcomponents/{p-60208c67.entry.js → p-ec4835d4.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-00ee9185.entry.js → p-ed37740a.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-1890b2d6.entry.js → p-ef02d456.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-d48fa55a.entry.js → p-ef6a3e5c.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-973325c9.entry.js → p-f2401676.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-2ac5f1ed.entry.js → p-f29679b2.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-b36d383b.entry.js → p-f508b954.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-e74ce003.entry.js → p-f54b4919.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-fd11ab49.entry.js → p-f84402f5.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-90fce0e4.entry.js → p-f9d1baff.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/p-fbfb797b.entry.js +1 -0
  257. package/dist/genesys-webcomponents/{p-d326ca91.entry.js → p-fe5c99a1.entry.js} +1 -1
  258. package/dist/stencil-wrapper.js +1 -1
  259. package/dist/types/components/stable/gux-context-menu/gux-context-menu.d.ts +4 -0
  260. package/dist/types/components/stable/gux-dropdown/gux-dropdown.d.ts +0 -4
  261. package/dist/types/components/{beta → stable}/gux-dropdown-multi/gux-dropdown-multi.d.ts +1 -5
  262. package/dist/types/components.d.ts +23 -31
  263. package/dist/types/stencil-wrapper.d.ts +1 -1
  264. package/dist/types/utils/dom/calculate-input-disabled-state.d.ts +1 -1
  265. package/dist/types/utils/dom/on-attribute-change.d.ts +1 -1
  266. package/dist/types/utils/dom/on-input-disabled-state-change.d.ts +1 -1
  267. package/package.json +1 -1
  268. package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.css +0 -50
  269. package/dist/collection/components/beta/gux-dropdown-multi/gux-dropdown-multi.css +0 -161
  270. package/dist/genesys-webcomponents/p-09830c56.entry.js +0 -1
  271. package/dist/genesys-webcomponents/p-120ba166.entry.js +0 -1
  272. package/dist/genesys-webcomponents/p-3f96ede4.entry.js +0 -1
  273. package/dist/genesys-webcomponents/p-4b538970.entry.js +0 -1
  274. package/dist/genesys-webcomponents/p-631fca69.entry.js +0 -1
  275. package/dist/genesys-webcomponents/p-a865c24e.entry.js +0 -1
  276. package/dist/genesys-webcomponents/p-bd0759a5.entry.js +0 -1
  277. package/dist/genesys-webcomponents/p-e7fe9d85.entry.js +0 -1
  278. /package/dist/types/components/{beta → stable}/gux-dropdown-multi/gux-dropdown-multi-tag/gux-dropdown-multi-tag.d.ts +0 -0
@@ -1 +1 @@
1
- import{r as t,c as e,f as s,d as i,h as o,H as a,g as l}from"./p-7d26b2e1.js";import{b as n}from"./p-deee079e.js";import{w as r}from"./p-76ff3e75.js";import{r as h}from"./p-cbcbd1bb.js";import{t as c}from"./p-19a7df84.js";import{t as u}from"./p-1aa11396.js";import"./p-8a133b9b.js";const g=class{constructor(i){t(this,i),this.guxselectionchanged=e(this,"guxselectionchanged",7),this.guxsortchanged=e(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>s(this))),this.tableId=h("gux-table"),this.columnsWidths={},this.isVerticalScroll=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1,this.emptyMessage=void 0,this.resizableColumns=void 0}async componentWillLoad(){c(this.root),this.i18n=await n(this.root,u)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSelectableRows(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkVerticalScroll()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows(t.detail)}onInternalRowSelectChange(t){t.stopPropagation();const e=t.target;e.selected=t.detail,this.handleRowSelection(e)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const e=this.rowCheckboxes,s=e.filter((t=>!t.hasAttribute("disabled"))),i=s.filter((t=>t.selected)),o=Boolean(e.length),a=i.length===s.length,l=0===i.length;t.selected=o&&a,t.setIndeterminate(o&&!a&&!l)}}handleSelectAllRows(t){const e=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{e.selected=t,s.hasAttribute("disabled")||(s.selected=t,this.updateRowSelection(s))})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const e=t.closest("tr");t.selected?e.setAttribute("data-selected-row",""):e.removeAttribute("data-selected-row")}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t),this.calculateColumnWidths(this.tableColumns).slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.setResizableColumnsStyles()}updateResizeState(t){if(this.columnResizeState){const e=this.columnResizeState.resizableColumn.dataset.columnName,s=Math.max(this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX),1),i=this.calculateColumnWidths(this.tableColumns).map((t=>t.name===e?Object.assign(Object.assign({},t),{width:s}):t));this.columnsWidths[e]=i.find((t=>t.name===e)).width,this.setResizableColumnsStyles()}else this.columnResizeHover=!1,r("th",t,(e=>{this.tableColumns.length-1!==e.cellIndex&&this.isInResizeZone(t,e)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){r("th",t,(e=>{this.isInResizeZone(t,e)&&(this.columnResizeState={resizableColumn:e,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:e.clientWidth})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,e){return e.getBoundingClientRect().right-t.clientX<3}calculateColumnWidths(t){return t.map((t=>({name:t.dataset.columnName,width:t.clientWidth})))}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let e="";Object.keys(this.columnsWidths).forEach((t=>{e+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])}px;\n min-width:${String(this.columnsWidths[t])}px;\n }`})),t.innerHTML=e}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return o(a,{"gs-table-id":this.tableId,"gs-obj-table":this.objectTable,"gs-compact":this.compact},o("div",{class:"gux-table"},o("div",{tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},o("slot",{name:"data"})),this.isTableEmpty&&o("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return l(this)}};g.style=".gux-focus-ring-focused:focus{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-focused-within:focus-within{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-focused-visible:focus-visible{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-small-focused:focus{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-focus-ring-small-focused-within:focus-within{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-focus-ring-small-focused-visible:focus-visible{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-icon-anchor gux-icon{padding-right:var(--gse-ui-links-inLine-padding)}:host{display:block;isolation:isolate}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-container{max-height:100%;overflow:auto;scrollbar-color:var(--gse-ui-dataTableItems-scrollbar-foregroundColor);scrollbar-width:thin}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--gse-ui-dataTableItems-header-default-height));color:#596373;background:#fdfdfd;font-family:var(--gse-core-fontFamily-heading), var(--gse-core-fontFamily-body), sans-serif;font-weight:var(--gse-core-fontWeight-semiBold);font-size:var(--gse-core-fontSize-lg);line-height:var(--gse-lineHeight-md)}";export{g as gux_table}
1
+ import{r as t,c as e,f as s,d as i,h as o,H as a,g as l}from"./p-7d26b2e1.js";import{b as n}from"./p-deee079e.js";import{w as r}from"./p-76ff3e75.js";import{r as h}from"./p-cbcbd1bb.js";import{t as c}from"./p-7037907d.js";import{t as u}from"./p-1aa11396.js";import"./p-8a133b9b.js";const g=class{constructor(i){t(this,i),this.guxselectionchanged=e(this,"guxselectionchanged",7),this.guxsortchanged=e(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>s(this))),this.tableId=h("gux-table"),this.columnsWidths={},this.isVerticalScroll=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1,this.emptyMessage=void 0,this.resizableColumns=void 0}async componentWillLoad(){c(this.root),this.i18n=await n(this.root,u)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSelectableRows(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkVerticalScroll()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows(t.detail)}onInternalRowSelectChange(t){t.stopPropagation();const e=t.target;e.selected=t.detail,this.handleRowSelection(e)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const e=this.rowCheckboxes,s=e.filter((t=>!t.hasAttribute("disabled"))),i=s.filter((t=>t.selected)),o=Boolean(e.length),a=i.length===s.length,l=0===i.length;t.selected=o&&a,t.setIndeterminate(o&&!a&&!l)}}handleSelectAllRows(t){const e=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{e.selected=t,s.hasAttribute("disabled")||(s.selected=t,this.updateRowSelection(s))})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const e=t.closest("tr");t.selected?e.setAttribute("data-selected-row",""):e.removeAttribute("data-selected-row")}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t),this.calculateColumnWidths(this.tableColumns).slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.setResizableColumnsStyles()}updateResizeState(t){if(this.columnResizeState){const e=this.columnResizeState.resizableColumn.dataset.columnName,s=Math.max(this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX),1),i=this.calculateColumnWidths(this.tableColumns).map((t=>t.name===e?Object.assign(Object.assign({},t),{width:s}):t));this.columnsWidths[e]=i.find((t=>t.name===e)).width,this.setResizableColumnsStyles()}else this.columnResizeHover=!1,r("th",t,(e=>{this.tableColumns.length-1!==e.cellIndex&&this.isInResizeZone(t,e)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){r("th",t,(e=>{this.isInResizeZone(t,e)&&(this.columnResizeState={resizableColumn:e,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:e.clientWidth})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,e){return e.getBoundingClientRect().right-t.clientX<3}calculateColumnWidths(t){return t.map((t=>({name:t.dataset.columnName,width:t.clientWidth})))}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let e="";Object.keys(this.columnsWidths).forEach((t=>{e+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])}px;\n min-width:${String(this.columnsWidths[t])}px;\n }`})),t.innerHTML=e}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return o(a,{"gs-table-id":this.tableId,"gs-obj-table":this.objectTable,"gs-compact":this.compact},o("div",{class:"gux-table"},o("div",{tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},o("slot",{name:"data"})),this.isTableEmpty&&o("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return l(this)}};g.style=".gux-focus-ring-focused:focus{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-focused-within:focus-within{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-focused-visible:focus-visible{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-small-focused:focus{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-focus-ring-small-focused-within:focus-within{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-focus-ring-small-focused-visible:focus-visible{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-icon-anchor gux-icon{padding-right:var(--gse-ui-links-inLine-padding)}:host{display:block;isolation:isolate}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-container{max-height:100%;overflow:auto;scrollbar-color:var(--gse-ui-dataTableItems-scrollbar-foregroundColor);scrollbar-width:thin}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--gse-ui-dataTableItems-header-default-height));color:#596373;background:#fdfdfd;font-family:var(--gse-core-fontFamily-heading), var(--gse-core-fontFamily-body), sans-serif;font-weight:var(--gse-core-fontWeight-semiBold);font-size:var(--gse-core-fontSize-lg);line-height:var(--gse-lineHeight-md)}";export{g as gux_table}
@@ -1 +1 @@
1
- import{r as t,h as o,g as i}from"./p-7d26b2e1.js";import{t as s}from"./p-19a7df84.js";import{b as e}from"./p-deee079e.js";import"./p-8a133b9b.js";const n={dismiss:"Dismiss"},r=class{constructor(o){t(this,o),this.position="absolute"}async componentWillLoad(){s(this.root,{variant:this.position}),this.i18n=await e(this.root,n)}render(){return o("gux-button-slot",{accent:"ghost",class:"inherit"==this.position?"gux-inherit":void 0},o("button",{type:"button",title:this.i18n("dismiss")},o("div",{class:"gux-icon-container"},o("gux-icon",{"icon-name":"close",decorative:!0}))))}static get delegatesFocus(){return!0}get root(){return i(this)}};r.style="gux-button-slot{position:absolute;top:0;right:0}gux-button-slot.gux-inherit{position:inherit}gux-button-slot .gux-icon-container{width:8px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-content:stretch;align-items:center}gux-button-slot .gux-icon-container gux-icon{width:16px;height:16px;order:0;flex:0 0 auto;align-self:auto;color:var(--gse-ui-toast-closeButtonColor)}";export{r as gux_dismiss_button}
1
+ import{r as t,h as o,g as i}from"./p-7d26b2e1.js";import{t as s}from"./p-7037907d.js";import{b as e}from"./p-deee079e.js";import"./p-8a133b9b.js";const n={dismiss:"Dismiss"},r=class{constructor(o){t(this,o),this.position="absolute"}async componentWillLoad(){s(this.root,{variant:this.position}),this.i18n=await e(this.root,n)}render(){return o("gux-button-slot",{accent:"ghost",class:"inherit"==this.position?"gux-inherit":void 0},o("button",{type:"button",title:this.i18n("dismiss")},o("div",{class:"gux-icon-container"},o("gux-icon",{"icon-name":"close",decorative:!0}))))}static get delegatesFocus(){return!0}get root(){return i(this)}};r.style="gux-button-slot{position:absolute;top:0;right:0}gux-button-slot.gux-inherit{position:inherit}gux-button-slot .gux-icon-container{width:8px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-content:stretch;align-items:center}gux-button-slot .gux-icon-container gux-icon{width:16px;height:16px;order:0;flex:0 0 auto;align-self:auto;color:var(--gse-ui-toast-closeButtonColor)}";export{r as gux_dismiss_button}
@@ -1 +1 @@
1
- import{r as t,h as o,H as s,g as i}from"./p-7d26b2e1.js";import{t as r}from"./p-19a7df84.js";import{b as e}from"./p-091f51f6.js";const n=class{constructor(o){t(this,o),this.politeness="polite"}async guxAnnounce(t){this.containerElement.innerText="",e((()=>{this.containerElement.innerText=t}))}componentWillLoad(){r(this.root)}render(){return o(s,{"aria-live":this.politeness},o("slot",null),o("div",{ref:t=>this.containerElement=t}))}get root(){return i(this)}};n.style=":host{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{n as gux_announce_beta}
1
+ import{r as t,h as o,H as s,g as i}from"./p-7d26b2e1.js";import{t as r}from"./p-7037907d.js";import{b as e}from"./p-091f51f6.js";const n=class{constructor(o){t(this,o),this.politeness="polite"}async guxAnnounce(t){this.containerElement.innerText="",e((()=>{this.containerElement.innerText=t}))}componentWillLoad(){r(this.root)}render(){return o(s,{"aria-live":this.politeness},o("slot",null),o("div",{ref:t=>this.containerElement=t}))}get root(){return i(this)}};n.style=":host{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{n as gux_announce_beta}
@@ -1 +1 @@
1
- import{r as t,c as o,h as a,g as e}from"./p-7d26b2e1.js";import{b as g}from"./p-deee079e.js";import{t as r}from"./p-19a7df84.js";import"./p-8a133b9b.js";const i={tag:"tag with label: {label}","tag-disabled":"disabled tag with label: {label}","remove-tag":"Remove tag with label: {label}"},n=class{constructor(a){t(this,a),this.guxdelete=o(this,"guxdelete",7),this.value=void 0,this.accent="default",this.disabled=!1,this.removable=!1,this.label=void 0}onKeyDown(t){switch(t.key){case"Backspace":case"Delete":this.removeTag()}}removeTag(){!this.disabled&&this.removable&&this.guxdelete.emit(this.value)}onSlotChange(t){const o=t.composedPath()[0].assignedNodes();this.label=o.map((t=>t.textContent)).join("")}renderTagTitle(){return a("gux-tooltip-title",null,a("span",null,a("slot",{"aria-hidden":"true",onSlotchange:this.onSlotChange.bind(this)})))}renderSrText(){return a("div",{class:"gux-sr-only"},this.i18n(this.disabled?"tag-disabled":"tag",{label:this.label}))}renderRemoveButton(){if(this.removable)return a("button",{class:"gux-tag-remove-button",onClick:this.removeTag.bind(this),type:"button",disabled:this.disabled},a("gux-icon",{class:"gux-tag-remove-icon","icon-name":"close","screenreader-text":this.i18n("remove-tag",{label:this.label})}))}componentWillLoad(){r(this.root,{variant:this.removable?"removable":"permenant"})}async componentWillRender(){this.i18n=await g(this.root,i)}render(){return a("div",{class:{"gux-tag":!0,[`gux-accent-${this.accent}`]:!0,"gux-disabled":this.disabled},"aria-disabled":this.disabled.toString()},this.renderTagTitle(),this.renderSrText(),this.renderRemoveButton())}get root(){return e(this)}};n.style=':host{display:inline-block;border-radius:var(--gse-ui-tag-height)}.gux-tag{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:flex-start;font-family:var(--gse-ui-tag-text-fontFamily);font-weight:var(--gse-ui-tag-text-fontWeight, 600);line-height:var(--gse-ui-tag-text-lineHeight);font-size:var(--gse-ui-tag-text-fontSize);background-color:var(--gse-ui-tag-default-backgroundColor);color:var(--gse-ui-tag-default-foregroundColor);border-radius:var(--gse-ui-tag-height);gap:var(--gse-ui-tag-removable-gap);height:var(--gse-ui-tag-height);padding:var(--gse-ui-tag-padding)}.gux-tag.gux-disabled{position:relative}.gux-tag.gux-disabled::before{position:absolute;bottom:0;top:0;left:0;right:0;opacity:0.5;background-color:#ffffff;border-radius:var(--gse-ui-tag-height);content:""}.gux-tag gux-tooltip-title{white-space:nowrap;cursor:default}.gux-tag gux-tooltip-title ::slotted(gux-icon){font-size:var(--gse-ui-tag-button-size)}.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}.gux-tag .gux-tag-remove-button:not(:disabled):hover{cursor:pointer}.gux-tag .gux-tag-remove-button .gux-tag-remove-icon{width:var(--gse-ui-tag-button-size);height:var(--gse-ui-tag-button-size);margin-right:-4px}.gux-tag .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline:2px solid #7b88f7;outline-offset:0;border-radius:4px}.gux-tag.gux-accent-default{background-color:var(--gse-ui-tag-default-backgroundColor);color:var(--gse-ui-tag-default-foregroundColor)}.gux-tag.gux-accent-1{background-color:var(--gse-ui-tag-accent1-backgroundColor);color:var(--gse-ui-tag-accent1-foregroundColor)}.gux-tag.gux-accent-2{background-color:var(--gse-ui-tag-accent2-backgroundColor);color:var(--gse-ui-tag-accent2-foregroundColor)}.gux-tag.gux-accent-3{background-color:var(--gse-ui-tag-accent3-backgroundColor);color:var(--gse-ui-tag-accent3-foregroundColor)}.gux-tag.gux-accent-4{background-color:var(--gse-ui-tag-accent4-backgroundColor);color:var(--gse-ui-tag-accent4-foregroundColor)}.gux-tag.gux-accent-5{background-color:var(--gse-ui-tag-accent5-backgroundColor);color:var(--gse-ui-tag-accent5-foregroundColor)}.gux-tag.gux-accent-6{background-color:var(--gse-ui-tag-accent6-backgroundColor);color:var(--gse-ui-tag-accent6-foregroundColor)}.gux-tag.gux-accent-7{background-color:var(--gse-ui-tag-accent7-backgroundColor);color:var(--gse-ui-tag-accent7-foregroundColor)}.gux-tag.gux-accent-8{background-color:var(--gse-ui-tag-accent8-backgroundColor);color:var(--gse-ui-tag-accent8-foregroundColor)}.gux-tag.gux-accent-9{background-color:var(--gse-ui-tag-accent9-backgroundColor);color:var(--gse-ui-tag-accent9-foregroundColor)}.gux-tag.gux-accent-10{background-color:var(--gse-ui-tag-accent10-backgroundColor);color:var(--gse-ui-tag-accent10-foregroundColor)}.gux-tag.gux-accent-inherit{background-color:inherit;color:inherit}';export{n as gux_tag}
1
+ import{r as t,c as o,h as a,g as e}from"./p-7d26b2e1.js";import{b as g}from"./p-deee079e.js";import{t as r}from"./p-7037907d.js";import"./p-8a133b9b.js";const i={tag:"tag with label: {label}","tag-disabled":"disabled tag with label: {label}","remove-tag":"Remove tag with label: {label}"},n=class{constructor(a){t(this,a),this.guxdelete=o(this,"guxdelete",7),this.value=void 0,this.accent="default",this.disabled=!1,this.removable=!1,this.label=void 0}onKeyDown(t){switch(t.key){case"Backspace":case"Delete":this.removeTag()}}removeTag(){!this.disabled&&this.removable&&this.guxdelete.emit(this.value)}onSlotChange(t){const o=t.composedPath()[0].assignedNodes();this.label=o.map((t=>t.textContent)).join("")}renderTagTitle(){return a("gux-tooltip-title",null,a("span",null,a("slot",{"aria-hidden":"true",onSlotchange:this.onSlotChange.bind(this)})))}renderSrText(){return a("div",{class:"gux-sr-only"},this.i18n(this.disabled?"tag-disabled":"tag",{label:this.label}))}renderRemoveButton(){if(this.removable)return a("button",{class:"gux-tag-remove-button",onClick:this.removeTag.bind(this),type:"button",disabled:this.disabled},a("gux-icon",{class:"gux-tag-remove-icon","icon-name":"close","screenreader-text":this.i18n("remove-tag",{label:this.label})}))}componentWillLoad(){r(this.root,{variant:this.removable?"removable":"permenant"})}async componentWillRender(){this.i18n=await g(this.root,i)}render(){return a("div",{class:{"gux-tag":!0,[`gux-accent-${this.accent}`]:!0,"gux-disabled":this.disabled},"aria-disabled":this.disabled.toString()},this.renderTagTitle(),this.renderSrText(),this.renderRemoveButton())}get root(){return e(this)}};n.style=':host{display:inline-block;border-radius:var(--gse-ui-tag-height)}.gux-tag{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:flex-start;font-family:var(--gse-ui-tag-text-fontFamily);font-weight:var(--gse-ui-tag-text-fontWeight, 600);line-height:var(--gse-ui-tag-text-lineHeight);font-size:var(--gse-ui-tag-text-fontSize);background-color:var(--gse-ui-tag-default-backgroundColor);color:var(--gse-ui-tag-default-foregroundColor);border-radius:var(--gse-ui-tag-height);gap:var(--gse-ui-tag-removable-gap);height:var(--gse-ui-tag-height);padding:var(--gse-ui-tag-padding)}.gux-tag.gux-disabled{position:relative}.gux-tag.gux-disabled::before{position:absolute;bottom:0;top:0;left:0;right:0;opacity:0.5;background-color:#ffffff;border-radius:var(--gse-ui-tag-height);content:""}.gux-tag gux-tooltip-title{white-space:nowrap;cursor:default}.gux-tag gux-tooltip-title ::slotted(gux-icon){font-size:var(--gse-ui-tag-button-size)}.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}.gux-tag .gux-tag-remove-button:not(:disabled):hover{cursor:pointer}.gux-tag .gux-tag-remove-button .gux-tag-remove-icon{width:var(--gse-ui-tag-button-size);height:var(--gse-ui-tag-button-size);margin-right:-4px}.gux-tag .gux-tag-remove-button:focus-within .gux-tag-remove-icon{outline:2px solid #7b88f7;outline-offset:0;border-radius:4px}.gux-tag.gux-accent-default{background-color:var(--gse-ui-tag-default-backgroundColor);color:var(--gse-ui-tag-default-foregroundColor)}.gux-tag.gux-accent-1{background-color:var(--gse-ui-tag-accent1-backgroundColor);color:var(--gse-ui-tag-accent1-foregroundColor)}.gux-tag.gux-accent-2{background-color:var(--gse-ui-tag-accent2-backgroundColor);color:var(--gse-ui-tag-accent2-foregroundColor)}.gux-tag.gux-accent-3{background-color:var(--gse-ui-tag-accent3-backgroundColor);color:var(--gse-ui-tag-accent3-foregroundColor)}.gux-tag.gux-accent-4{background-color:var(--gse-ui-tag-accent4-backgroundColor);color:var(--gse-ui-tag-accent4-foregroundColor)}.gux-tag.gux-accent-5{background-color:var(--gse-ui-tag-accent5-backgroundColor);color:var(--gse-ui-tag-accent5-foregroundColor)}.gux-tag.gux-accent-6{background-color:var(--gse-ui-tag-accent6-backgroundColor);color:var(--gse-ui-tag-accent6-foregroundColor)}.gux-tag.gux-accent-7{background-color:var(--gse-ui-tag-accent7-backgroundColor);color:var(--gse-ui-tag-accent7-foregroundColor)}.gux-tag.gux-accent-8{background-color:var(--gse-ui-tag-accent8-backgroundColor);color:var(--gse-ui-tag-accent8-foregroundColor)}.gux-tag.gux-accent-9{background-color:var(--gse-ui-tag-accent9-backgroundColor);color:var(--gse-ui-tag-accent9-foregroundColor)}.gux-tag.gux-accent-10{background-color:var(--gse-ui-tag-accent10-backgroundColor);color:var(--gse-ui-tag-accent10-foregroundColor)}.gux-tag.gux-accent-inherit{background-color:inherit;color:inherit}';export{n as gux_tag}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,f as i,h as o,g as r}from"./p-7d26b2e1.js";import{O as n}from"./p-9d18d475.js";import{b as s}from"./p-deee079e.js";import{s as l}from"./p-d176c2ae.js";import{b as u}from"./p-091f51f6.js";import{o as a}from"./p-3f5341ea.js";import{t as d}from"./p-7037907d.js";import{g as c}from"./p-55cf6d81.js";import{O as g}from"./p-f34ce7dc.js";import"./p-8a133b9b.js";const h={textInputResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown",numberSelected:"{numberSelected} selected",pressEnterToCreate:"Press Enter to create new option, {textInputValue}"};var f=function(t,e,i,o){var r,n=arguments.length,s=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const p=class{constructor(i){t(this,i),this.guxcreateoption=e(this,"guxcreateoption",7),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.value=void 0,this.disabled=!1,this.required=!1,this.loading=!1,this.placeholder=void 0,this.filterType="none",this.hasError=!1,this.hasCreate=!1,this.expanded=!1,this.textInput=""}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit()}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}focusSelectedItemAfterRender(t){t&&this.listboxElement&&u((()=>{this.hasTextInput()?this.textInputElement.focus():this.listboxElement.focus()})),t||(this.textInput="")}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}getSelectedValues(){var t;return Promise.resolve((null===(t=this.value)||void 0===t?void 0:t.split(","))||[])}onKeydown(t){switch(t.key){case"Escape":return this.hasTextInput()&&document.activeElement===this.listboxElement?this.textInputElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.textInputElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0));case"Enter":this.canCreateNewOption()&&this.isActiveElement()&&this.emitCreateOption()}}onInternallistboxoptionsupdated(t){t.stopPropagation(),i(this.root)}onClearselected(t){t.stopPropagation(),this.updateValue(""),this.listboxElement&&(this.listboxElement.value=void 0),this.validateValue(this.value,this.listboxElement),this.fieldButtonElement.focus()}onCreatenewoption(t){t.stopPropagation(),this.emitCreateOption()}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox-multi"),this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.hasCreate=!!this.root.querySelector("gux-create-option"))}async componentWillLoad(){d(this.root),this.i18n=await s(this.root,h),a(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.textInput=this.textInput)}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)?e.value=t:this.value=void 0:e&&(e.value=t)}hasTextInput(){return this.isFilterable()||this.hasCreate}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}isFilterable(){return"custom"===this.filterType||"starts-with"===this.filterType}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}getOptionElementByValue(t){const e=Array.from(this.root.querySelectorAll("gux-option-multi")),i=t?t.split(","):void 0;if(i)return e.filter((t=>i.includes(t.value)))}fieldButtonClick(){this.expanded=!this.expanded}fieldButtonInputClick(){this.expanded||(this.expanded=!this.expanded)}filterInput(t){t.stopPropagation(),this.textInput=this.textInputElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.hasTextInput()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.hasTextInput()&&document.activeElement===this.listboxElement}emitCreateOption(){this.guxcreateoption.emit(this.textInput),this.textInput="",this.textInputElement.value=""}canCreateNewOption(){return this.hasCreate&&this.textInput&&!this.listboxElement.hasExactMatch}isActiveElement(){return document.activeElement===this.root}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){if("ArrowDown"===t.key)return t.stopImmediatePropagation(),void this.listboxElement.focus()}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,l(this.root,"input"),l(this.root,"change"))}getTypeaheadText(t){var e;const i=t.length;if(i>0&&!this.loading){const o=c(this.listboxElement,t);if(o&&"custom"!==this.filterType){const t=null===(e=o.querySelector("[gux-slot-container]"))||void 0===e?void 0:e.textContent;return null==t?void 0:t.substring(i)}return""}}renderTargetDisplay(){return o("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"),this.getSrSelectedText())}getSrSelectedText(){const t=this.getOptionElementByValue(this.value);if(null==t?void 0:t.length)return o("span",{class:"gux-sr-only"},this.i18n("numberSelected",{numberSelected:t.length.toString()}))}getInputAriaLabel(){return this.canCreateNewOption()&&this.isActiveElement()?this.i18n("pressEnterToCreate",{textInputValue:this.textInput}):this.i18n("textInputResults")}renderTag(){const t=this.getOptionElementByValue(this.value);if(null==t?void 0:t.length)return o("gux-dropdown-multi-tag",{disabled:this.disabled,"number-selected":t.length})}renderFilterInputField(){if(this.expanded&&this.hasTextInput())return o("div",{class:"gux-field gux-input-field"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.textInput),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.textInput))),o("div",{class:"input-and-dropdown-button"},o("input",{onClick:this.fieldButtonInputClick.bind(this),placeholder:this.placeholder||this.i18n("noSelection"),class:"gux-filter-input",type:"text","aria-label":this.getInputAriaLabel(),ref:t=>this.textInputElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this)})))))}renderPopup(){return o("div",{slot:"popup",class:"gux-listbox-container"},o("slot",null))}renderTarget(){return o("div",{class:{"gux-target-container":!0,"gux-target-container-expanded":this.expanded&&this.hasTextInput(),"gux-target-container-collapsed":!(this.expanded&&this.hasTextInput()),"gux-error":this.hasError,"gux-disabled":this.disabled},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:this.disabled,onClick:this.fieldButtonClick.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),this.renderTag(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),iconName:"chevron-small-down"})))}renderTargetContent(){if(!this.expanded||!this.hasTextInput())return o("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return o("gux-radial-loading",{context:"input"})}render(){return[o("div",{class:"gux-dropdown-container"},o("gux-popup",{expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled},this.renderTarget(),this.renderPopup()))]}static get delegatesFocus(){return!0}get root(){return r(this)}static get watchers(){return{expanded:["focusSelectedItemAfterRender"],value:["watchValue"],textInput:["handleFilter"]}}};f([g({childList:!0,subtree:!0})],p.prototype,"onMutation",null),f([n({triggerEvents:"mousedown"})],p.prototype,"onClickOutside",null),p.style=".gux-focus-ring-focused:focus{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-focused-within:focus-within{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-focused-visible:focus-visible{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-focus-ring-small-focused:focus{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-focus-ring-small-focused-within:focus-within{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}.gux-focus-ring-small-focused-visible:focus-visible{outline-width:var(--gse-semantic-focusRing-small-border-width);outline-style:var(--gse-semantic-focusRing-small-border-style);outline-color:var(--gse-semantic-focusRing-small-border-color)}:host{color:var(--gse-ui-formControl-input-populatedColor);box-sizing:border-box}.gux-dropdown-container{position:relative}.gux-error.gux-target-container-collapsed .gux-field-button,.gux-error.gux-target-container-expanded{border:var(--gse-ui-formControl-input-error-border-width) var(--gse-ui-formControl-input-error-border-style) var(--gse-ui-formControl-input-error-border-color)}.gux-disabled.gux-target-container-collapsed .gux-field-button,.gux-disabled.gux-target-container-expanded{border:var(--gse-ui-formControl-input-disabled-border-width) var(--gse-ui-formControl-input-disabled-border-style) var(--gse-ui-formControl-input-disabled-border-color)}.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:var(--gse-ui-formControl-input-textfield-height);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);cursor:pointer;background-color:var(--gse-ui-formControl-input-backgroundColor)}.gux-target-container-expanded,.gux-target-container-collapsed .gux-field{padding:var(--gse-ui-formControl-input-padding)}.gux-target-container-collapsed .gux-field-button:hover,.gux-target-container-expanded:hover{border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-field.gux-input-field{height:calc(var(--gse-ui-formControl-input-textfield-height) - var(--gse-ui-formControl-input-default-border-width) * 2)}.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:60%}.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;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%;color:transparent;caret-color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:var(--gse-ui-formControl-input-populatedColor)}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{opacity:50%}.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:var(--gse-ui-formControl-input-placeholderColor)}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;width:var(--gse-ui-formControl-input-inputIcon-size);height:var(--gse-ui-formControl-input-inputIcon-size);padding-left:var(--gse-ui-dropdown-gap);color:var(--gse-ui-formControl-input-inputIcon-iconEndColor)}.gux-target-container-expanded{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-expanded:focus-visible,.gux-target-container-expanded:focus-within{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.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:calc(var(--gse-ui-formControl-input-textfield-height) - var(--gse-ui-formControl-input-default-border-width) * 2);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:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target-container-collapsed .gux-field-button:focus-visible,.gux-target-container-collapsed .gux-field-button:focus-within{outline-width:var(--gse-semantic-focusRing-default-border-width);outline-style:var(--gse-semantic-focusRing-default-border-style);outline-color:var(--gse-semantic-focusRing-default-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-listbox-container{box-sizing:border-box;margin:0}gux-popup::part(gux-popup-container){width:inherit}";export{p as gux_dropdown_multi}
@@ -1 +1 @@
1
- import{r as s,c as i,h as t,H as o,g as e}from"./p-7d26b2e1.js";import{t as a}from"./p-19a7df84.js";const r=class{constructor(t){s(this,t),this.guxdismiss=i(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){a(this.root,{variant:this.accent})}render(){return t(o,null,t("div",{class:`gux-icon gux-${this.accent}`},t("slot",{name:"icon"})),t("gux-truncate",{class:"gux-message","max-lines":2},t("slot",{name:"message"})),t("gux-dismiss-button",{class:"gux-dismiss",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(s){s.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return e(this)}};r.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;width:286px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-icon{flex:0 1 auto;align-self:auto;order:0;padding:8px 12px 8px 16px;margin:2px 0}.gux-icon.gux-alert{color:#ea0b0b}.gux-icon.gux-warning{color:#ffae00}.gux-icon.gux-positive{color:#3c8527}.gux-icon.gux-neutral{color:#203b73}.gux-icon ::slotted(gux-icon){width:16px;height:16px}.gux-message{flex:1 1 auto;align-self:center;order:0;margin:8px 0}.gux-dismiss{margin:4px 0}";export{r as gux_simple_toast_legacy}
1
+ import{r as s,c as i,h as t,H as o,g as e}from"./p-7d26b2e1.js";import{t as r}from"./p-7037907d.js";const a=class{constructor(t){s(this,t),this.guxdismiss=i(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return t(o,null,t("div",{class:`gux-icon gux-${this.accent}`},t("slot",{name:"icon"})),t("gux-truncate",{class:"gux-message","max-lines":2},t("slot",{name:"message"})),t("gux-dismiss-button",{class:"gux-dismiss",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(s){s.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return e(this)}};a.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;width:286px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-icon{flex:0 1 auto;align-self:auto;order:0;padding:8px 12px 8px 16px;margin:2px 0}.gux-icon.gux-alert{color:#ea0b0b}.gux-icon.gux-warning{color:#ffae00}.gux-icon.gux-positive{color:#3c8527}.gux-icon.gux-neutral{color:#203b73}.gux-icon ::slotted(gux-icon){width:16px;height:16px}.gux-message{flex:1 1 auto;align-self:center;order:0;margin:8px 0}.gux-dismiss{margin:4px 0}";export{a as gux_simple_toast_legacy}
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { defineCustomElements } from '../dist/loader';
9
9
  // Value templated out during build process (see scripts/wrap-stencil.js)
10
- export const CDN_URL = '/spark-components/build-assets/4.0.0-beta.29-29/genesys-webcomponents/';
10
+ export const CDN_URL = '/spark-components/build-assets/4.0.0-beta.30-30/genesys-webcomponents/';
11
11
  // Default domain to load assets from
12
12
  const DEFAULT_DOMAIN = 'mypurecloud.com';
13
13
  // List of Genesys UI domains
@@ -10,6 +10,10 @@ export declare class GuxContextMenu {
10
10
  * defaults to "context menu"
11
11
  */
12
12
  screenreaderText: string;
13
+ /**
14
+ * Controls the disabled state of the internal button
15
+ */
16
+ disabled: boolean;
13
17
  /**
14
18
  * Controls the visibility of the popover list
15
19
  */
@@ -21,10 +21,6 @@ export declare class GuxDropdown {
21
21
  required: boolean;
22
22
  loading: boolean;
23
23
  placeholder: string;
24
- /**
25
- * deprecated will be removed in v4 (COMUI-1369). Use filterType instead
26
- */
27
- filterable: boolean;
28
24
  filterType: GuxFilterTypes;
29
25
  hasError: boolean;
30
26
  private expanded;
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, JSX } from '../../../stencil-public-runtime';
2
- import { GuxFilterTypes } from '../../stable/gux-dropdown/gux-dropdown.types';
2
+ import { GuxFilterTypes } from '../gux-dropdown/gux-dropdown.types';
3
3
  /**
4
4
  * @slot - for a gux-listbox-multi containing gux-option-multi children
5
5
  */
@@ -14,10 +14,6 @@ export declare class GuxDropdownMulti {
14
14
  required: boolean;
15
15
  loading: boolean;
16
16
  placeholder: string;
17
- /**
18
- * deprecated will be removed in v4 (COMUI-1369). Use filterType instead
19
- */
20
- filterable: boolean;
21
17
  /**
22
18
  * Override default filtering behavior
23
19
  */
@@ -270,6 +270,10 @@ export namespace Components {
270
270
  "matchCount": number;
271
271
  }
272
272
  interface GuxContextMenu {
273
+ /**
274
+ * Controls the disabled state of the internal button
275
+ */
276
+ "disabled": boolean;
273
277
  /**
274
278
  * Screenreader text for context menu button defaults to "context menu"
275
279
  */
@@ -377,26 +381,18 @@ export namespace Components {
377
381
  interface GuxDropdown {
378
382
  "disabled": boolean;
379
383
  "filterType": GuxFilterTypes;
380
- /**
381
- * deprecated will be removed in v4 (COMUI-1369). Use filterType instead
382
- */
383
- "filterable": boolean;
384
384
  "hasError": boolean;
385
385
  "loading": boolean;
386
386
  "placeholder": string;
387
387
  "required": boolean;
388
388
  "value": string;
389
389
  }
390
- interface GuxDropdownMultiBeta {
390
+ interface GuxDropdownMulti {
391
391
  "disabled": boolean;
392
392
  /**
393
393
  * Override default filtering behavior
394
394
  */
395
395
  "filterType": GuxFilterTypes;
396
- /**
397
- * deprecated will be removed in v4 (COMUI-1369). Use filterType instead
398
- */
399
- "filterable": boolean;
400
396
  /**
401
397
  * Returns an array of the selected values
402
398
  */
@@ -1123,9 +1119,9 @@ export interface GuxDropdownCustomEvent<T> extends CustomEvent<T> {
1123
1119
  detail: T;
1124
1120
  target: HTMLGuxDropdownElement;
1125
1121
  }
1126
- export interface GuxDropdownMultiBetaCustomEvent<T> extends CustomEvent<T> {
1122
+ export interface GuxDropdownMultiCustomEvent<T> extends CustomEvent<T> {
1127
1123
  detail: T;
1128
- target: HTMLGuxDropdownMultiBetaElement;
1124
+ target: HTMLGuxDropdownMultiElement;
1129
1125
  }
1130
1126
  export interface GuxDropdownMultiTagCustomEvent<T> extends CustomEvent<T> {
1131
1127
  detail: T;
@@ -1444,11 +1440,11 @@ declare global {
1444
1440
  prototype: HTMLGuxDropdownElement;
1445
1441
  new (): HTMLGuxDropdownElement;
1446
1442
  };
1447
- interface HTMLGuxDropdownMultiBetaElement extends Components.GuxDropdownMultiBeta, HTMLStencilElement {
1443
+ interface HTMLGuxDropdownMultiElement extends Components.GuxDropdownMulti, HTMLStencilElement {
1448
1444
  }
1449
- var HTMLGuxDropdownMultiBetaElement: {
1450
- prototype: HTMLGuxDropdownMultiBetaElement;
1451
- new (): HTMLGuxDropdownMultiBetaElement;
1445
+ var HTMLGuxDropdownMultiElement: {
1446
+ prototype: HTMLGuxDropdownMultiElement;
1447
+ new (): HTMLGuxDropdownMultiElement;
1452
1448
  };
1453
1449
  interface HTMLGuxDropdownMultiTagElement extends Components.GuxDropdownMultiTag, HTMLStencilElement {
1454
1450
  }
@@ -2018,7 +2014,7 @@ declare global {
2018
2014
  "gux-disclosure-button-legacy": HTMLGuxDisclosureButtonLegacyElement;
2019
2015
  "gux-dismiss-button": HTMLGuxDismissButtonElement;
2020
2016
  "gux-dropdown": HTMLGuxDropdownElement;
2021
- "gux-dropdown-multi-beta": HTMLGuxDropdownMultiBetaElement;
2017
+ "gux-dropdown-multi": HTMLGuxDropdownMultiElement;
2022
2018
  "gux-dropdown-multi-tag": HTMLGuxDropdownMultiTagElement;
2023
2019
  "gux-dropdown-option": HTMLGuxDropdownOptionElement;
2024
2020
  "gux-flyout-menu-beta": HTMLGuxFlyoutMenuBetaElement;
@@ -2312,6 +2308,10 @@ declare namespace LocalJSX {
2312
2308
  "onGuxcurrentmatchchanged"?: (event: GuxContentSearchCustomEvent<number>) => void;
2313
2309
  }
2314
2310
  interface GuxContextMenu {
2311
+ /**
2312
+ * Controls the disabled state of the internal button
2313
+ */
2314
+ "disabled"?: boolean;
2315
2315
  /**
2316
2316
  * Screenreader text for context menu button defaults to "context menu"
2317
2317
  */
@@ -2428,10 +2428,6 @@ declare namespace LocalJSX {
2428
2428
  interface GuxDropdown {
2429
2429
  "disabled"?: boolean;
2430
2430
  "filterType"?: GuxFilterTypes;
2431
- /**
2432
- * deprecated will be removed in v4 (COMUI-1369). Use filterType instead
2433
- */
2434
- "filterable"?: boolean;
2435
2431
  "hasError"?: boolean;
2436
2432
  "loading"?: boolean;
2437
2433
  "onGuxcollapsed"?: (event: GuxDropdownCustomEvent<void>) => void;
@@ -2441,31 +2437,27 @@ declare namespace LocalJSX {
2441
2437
  "required"?: boolean;
2442
2438
  "value"?: string;
2443
2439
  }
2444
- interface GuxDropdownMultiBeta {
2440
+ interface GuxDropdownMulti {
2445
2441
  "disabled"?: boolean;
2446
2442
  /**
2447
2443
  * Override default filtering behavior
2448
2444
  */
2449
2445
  "filterType"?: GuxFilterTypes;
2450
- /**
2451
- * deprecated will be removed in v4 (COMUI-1369). Use filterType instead
2452
- */
2453
- "filterable"?: boolean;
2454
2446
  "hasError"?: boolean;
2455
2447
  "loading"?: boolean;
2456
2448
  /**
2457
2449
  * This event will run when the dropdown-multi transitions to a collapsed state.
2458
2450
  */
2459
- "onGuxcollapsed"?: (event: GuxDropdownMultiBetaCustomEvent<void>) => void;
2451
+ "onGuxcollapsed"?: (event: GuxDropdownMultiCustomEvent<void>) => void;
2460
2452
  /**
2461
2453
  * This event is emitted to request creating a new option
2462
2454
  */
2463
- "onGuxcreateoption"?: (event: GuxDropdownMultiBetaCustomEvent<any>) => void;
2455
+ "onGuxcreateoption"?: (event: GuxDropdownMultiCustomEvent<any>) => void;
2464
2456
  /**
2465
2457
  * This event will run when the dropdown-multi transitions to an expanded state.
2466
2458
  */
2467
- "onGuxexpanded"?: (event: GuxDropdownMultiBetaCustomEvent<void>) => void;
2468
- "onGuxfilter"?: (event: GuxDropdownMultiBetaCustomEvent<string>) => void;
2459
+ "onGuxexpanded"?: (event: GuxDropdownMultiCustomEvent<void>) => void;
2460
+ "onGuxfilter"?: (event: GuxDropdownMultiCustomEvent<string>) => void;
2469
2461
  "placeholder"?: string;
2470
2462
  "required"?: boolean;
2471
2463
  "value"?: string;
@@ -3195,7 +3187,7 @@ declare namespace LocalJSX {
3195
3187
  "gux-disclosure-button-legacy": GuxDisclosureButtonLegacy;
3196
3188
  "gux-dismiss-button": GuxDismissButton;
3197
3189
  "gux-dropdown": GuxDropdown;
3198
- "gux-dropdown-multi-beta": GuxDropdownMultiBeta;
3190
+ "gux-dropdown-multi": GuxDropdownMulti;
3199
3191
  "gux-dropdown-multi-tag": GuxDropdownMultiTag;
3200
3192
  "gux-dropdown-option": GuxDropdownOption;
3201
3193
  "gux-flyout-menu-beta": GuxFlyoutMenuBeta;
@@ -3326,7 +3318,7 @@ declare module "@stencil/core" {
3326
3318
  * gux-dropdown-types.ts, then following the resulting compiler errors.
3327
3319
  */
3328
3320
  "gux-dropdown": LocalJSX.GuxDropdown & JSXBase.HTMLAttributes<HTMLGuxDropdownElement>;
3329
- "gux-dropdown-multi-beta": LocalJSX.GuxDropdownMultiBeta & JSXBase.HTMLAttributes<HTMLGuxDropdownMultiBetaElement>;
3321
+ "gux-dropdown-multi": LocalJSX.GuxDropdownMulti & JSXBase.HTMLAttributes<HTMLGuxDropdownMultiElement>;
3330
3322
  "gux-dropdown-multi-tag": LocalJSX.GuxDropdownMultiTag & JSXBase.HTMLAttributes<HTMLGuxDropdownMultiTagElement>;
3331
3323
  "gux-dropdown-option": LocalJSX.GuxDropdownOption & JSXBase.HTMLAttributes<HTMLGuxDropdownOptionElement>;
3332
3324
  "gux-flyout-menu-beta": LocalJSX.GuxFlyoutMenuBeta & JSXBase.HTMLAttributes<HTMLGuxFlyoutMenuBetaElement>;
@@ -1,2 +1,2 @@
1
- export declare const CDN_URL = "/spark-components/build-assets/4.0.0-beta.29-29/genesys-webcomponents/";
1
+ export declare const CDN_URL = "/spark-components/build-assets/4.0.0-beta.30-30/genesys-webcomponents/";
2
2
  export declare function registerElements(): Promise<void>;
@@ -1 +1 @@
1
- export declare function calculateInputDisabledState(element: HTMLButtonElement | HTMLFieldSetElement | HTMLInputElement | HTMLOptGroupElement | HTMLOptionElement | HTMLSelectElement | HTMLTextAreaElement | HTMLGuxDropdownElement): boolean;
1
+ export declare function calculateInputDisabledState(element: HTMLButtonElement | HTMLFieldSetElement | HTMLInputElement | HTMLOptGroupElement | HTMLOptionElement | HTMLSelectElement | HTMLTextAreaElement | HTMLGuxDropdownElement | HTMLGuxDropdownMultiElement): boolean;
@@ -1,3 +1,3 @@
1
1
  export declare function onHiddenChange(element: HTMLElement | HTMLSelectElement, callback: (hidden: boolean) => void): MutationObserver;
2
2
  export declare function onDisabledChange(element: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | HTMLGuxDropdownElement | HTMLGuxTimePickerElement | HTMLGuxPhoneInputBetaElement, callback: (disabled: boolean) => void): MutationObserver;
3
- export declare function onRequiredChange(element: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | HTMLGuxDropdownElement | HTMLGuxTimePickerElement | HTMLGuxPhoneInputBetaElement, callback: (disabled: boolean) => void): MutationObserver;
3
+ export declare function onRequiredChange(element: HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | HTMLGuxDropdownElement | HTMLGuxDropdownMultiElement | HTMLGuxTimePickerElement | HTMLGuxPhoneInputBetaElement, callback: (disabled: boolean) => void): MutationObserver;
@@ -1 +1 @@
1
- export declare function onInputDisabledStateChange(element: HTMLButtonElement | HTMLFieldSetElement | HTMLInputElement | HTMLOptGroupElement | HTMLOptionElement | HTMLSelectElement | HTMLTextAreaElement | HTMLGuxDropdownElement | HTMLGuxDropdownMultiBetaElement, callback: (disabled: boolean) => void): MutationObserver;
1
+ export declare function onInputDisabledStateChange(element: HTMLButtonElement | HTMLFieldSetElement | HTMLInputElement | HTMLOptGroupElement | HTMLOptionElement | HTMLSelectElement | HTMLTextAreaElement | HTMLGuxDropdownElement | HTMLGuxDropdownMultiElement, callback: (disabled: boolean) => void): MutationObserver;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genesys-spark-components",
3
- "version": "4.0.0-beta.29",
3
+ "version": "4.0.0-beta.30",
4
4
  "description": "Common webcomponents",
5
5
  "license": "MIT",
6
6
  "main": "dist/stencil-wrapper.js",
@@ -1,50 +0,0 @@
1
- :host {
2
- display: inline-block;
3
- }
4
- .gux-tag {
5
- display: flex;
6
- flex-direction: row;
7
- flex-wrap: nowrap;
8
- align-content: stretch;
9
- align-items: center;
10
- justify-content: flex-start;
11
- padding: 2px 4px 2px 8px;
12
- font-size: 12px;
13
- font-weight: bold;
14
- color: #2e394c;
15
- background-color: #e2e6ee;
16
- border-radius: 4px;
17
- }
18
- .gux-tag .gux-sr-only:not(:focus):not(:active) {
19
- position: absolute;
20
- width: 1px;
21
- height: 1px;
22
- overflow: hidden;
23
- clip: rect(0 0 0 0);
24
- clip-path: inset(50%);
25
- white-space: nowrap;
26
- }
27
- .gux-tag .gux-tag-remove-button {
28
- all: unset;
29
- display: flex;
30
- align-content: center;
31
- align-items: center;
32
- justify-content: center;
33
- margin-left: 7px;
34
- }
35
- .gux-tag .gux-tag-remove-button:not(:disabled):hover {
36
- cursor: pointer;
37
- }
38
- .gux-tag .gux-tag-remove-button .gux-tag-remove-icon {
39
- width: 16px;
40
- height: 16px;
41
- border-radius: 25%;
42
- }
43
- .gux-tag .gux-tag-remove-button:focus-within .gux-tag-remove-icon {
44
- outline: 2px solid #aac9ff;
45
- outline-offset: 0;
46
- }
47
- .gux-tag.gux-disabled {
48
- color: rgba(46, 57, 76, 0.5);
49
- background-color: rgba(226, 230, 238, 0.5);
50
- }
@@ -1,161 +0,0 @@
1
- :host {
2
- color: #2e394c;
3
- }
4
- .gux-dropdown-container {
5
- position: relative;
6
- }
7
- .gux-error.gux-target-container-collapsed .gux-field-button,
8
- .gux-error.gux-target-container-expanded {
9
- border-color: #ea0b0b;
10
- }
11
- .gux-field,
12
- .gux-target-container-expanded {
13
- all: unset;
14
- box-sizing: border-box;
15
- display: flex;
16
- flex-direction: row;
17
- flex-wrap: nowrap;
18
- align-content: stretch;
19
- align-items: center;
20
- justify-content: center;
21
- width: 100%;
22
- height: 32px;
23
- padding: 6px 0 6px 6px;
24
- font-family: inherit;
25
- font-size: 12px;
26
- line-height: 1.6667;
27
- cursor: pointer;
28
- background-color: #f6f7f9;
29
- }
30
- .gux-field.gux-input-field {
31
- height: 30px;
32
- cursor: text;
33
- }
34
- .gux-field .gux-field-content {
35
- position: relative;
36
- display: flex;
37
- flex: 1 1 0;
38
- flex-direction: row;
39
- flex-wrap: nowrap;
40
- align-content: stretch;
41
- align-items: flex-start;
42
- justify-content: flex-start;
43
- min-width: 0;
44
- height: 100%;
45
- }
46
- .gux-field .gux-field-content .gux-filter,
47
- .gux-field .gux-field-content .gux-selected-option,
48
- .gux-field .gux-field-content .gux-placeholder {
49
- flex: 1 1 auto;
50
- align-self: auto;
51
- order: 0;
52
- padding-left: 6px;
53
- overflow: hidden;
54
- text-overflow: ellipsis;
55
- white-space: nowrap;
56
- }
57
- .gux-field .gux-field-content .gux-filter .gux-sr-only:not(:focus):not(:active),
58
- .gux-field .gux-field-content .gux-selected-option .gux-sr-only:not(:focus):not(:active),
59
- .gux-field .gux-field-content .gux-placeholder .gux-sr-only:not(:focus):not(:active) {
60
- position: absolute;
61
- width: 1px;
62
- height: 1px;
63
- overflow: hidden;
64
- clip: rect(0 0 0 0);
65
- clip-path: inset(50%);
66
- white-space: nowrap;
67
- }
68
- .gux-field .gux-field-content .gux-filter {
69
- position: relative;
70
- height: 100%;
71
- padding-left: 0;
72
- }
73
- .gux-field .gux-field-content .gux-filter .gux-filter-input {
74
- all: unset;
75
- width: 100%;
76
- color: transparent;
77
- caret-color: #2e394c;
78
- }
79
- .gux-field .gux-field-content .gux-filter .gux-filter-display {
80
- white-space: pre;
81
- }
82
- .gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text {
83
- color: #2e394c;
84
- }
85
- .gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion {
86
- color: #596373;
87
- }
88
- .gux-field .gux-field-content .gux-filter .gux-filter-input,
89
- .gux-field .gux-field-content .gux-filter .gux-filter-display {
90
- position: absolute;
91
- }
92
- .gux-field .gux-field-content .gux-placeholder {
93
- color: #596373;
94
- }
95
- .gux-field .gux-expand-icon {
96
- flex: 0 0 auto;
97
- align-self: auto;
98
- order: 0;
99
- width: 16px;
100
- height: 16px;
101
- padding: 0 8px;
102
- color: #596373;
103
- }
104
- .gux-target-container-expanded {
105
- border: 1px solid #6b7585;
106
- border-radius: 4px;
107
- box-shadow: inset 0 0 4px rgba(32, 41, 55, 0.16);
108
- }
109
- .gux-target-container-expanded:focus-visible,
110
- .gux-target-container-expanded:focus-within {
111
- outline: 3px solid #aac9ff;
112
- outline-offset: 1px;
113
- box-shadow: 0 0 0 1px #fdfdfd;
114
- }
115
- .gux-target-container-expanded .gux-filter-input {
116
- background-color: inherit;
117
- border: none;
118
- }
119
- .gux-target-container-expanded .gux-filter-input:focus {
120
- border: none;
121
- outline: none;
122
- }
123
- .gux-target-container-expanded .gux-field-button {
124
- width: auto;
125
- height: 30px;
126
- padding: 0 0 0 8px;
127
- margin: 0;
128
- background: inherit;
129
- border: none;
130
- outline: none;
131
- box-shadow: none;
132
- }
133
- .gux-target-container-expanded .gux-field-button:focus {
134
- outline: none;
135
- }
136
- .gux-target-container-collapsed .gux-field-button {
137
- border: 1px solid #6b7585;
138
- border-radius: 4px;
139
- box-shadow: inset 0 0 4px rgba(32, 41, 55, 0.16);
140
- }
141
- .gux-target-container-collapsed .gux-field-button:focus-visible,
142
- .gux-target-container-collapsed .gux-field-button:focus-within {
143
- outline: 3px solid #aac9ff;
144
- outline-offset: 1px;
145
- box-shadow: 0 0 0 1px #fdfdfd;
146
- }
147
- .gux-listbox-container {
148
- box-sizing: border-box;
149
- margin: 0;
150
- color: #2e394c;
151
- }
152
- gux-popup::part(gux-popup-container) {
153
- width: inherit;
154
- }
155
- .gux-error-message-container {
156
- display: none;
157
- margin: 4px 0;
158
- }
159
- .gux-error-message-container.gux-show {
160
- display: flex;
161
- }
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i,g as e}from"./p-7d26b2e1.js";import{O as o}from"./p-9d18d475.js";import{w as n}from"./p-76ff3e75.js";import{a}from"./p-091f51f6.js";import{t as r}from"./p-19a7df84.js";const u=["primary","secondary","tertiary"];const c=class{constructor(i){t(this,i),this.open=s(this,"open",7),this.close=s(this,"close",7),this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const s=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,s.includes(this.listElement)&&(t.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":s.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstItemInPopupList())}}handleKeyup(t){if(" "===t.key)t.composedPath().includes(this.dropdownButton)&&(this.isOpen=!0,this.focusFirstItemInPopupList())}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():this.close.emit()}onClickOutside(){this.isOpen=!1}toggle(){this.disabled||(this.isOpen=!this.isOpen,this.isOpen&&this.focusPopupList())}focusPopupList(){a((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){a((()=>{this.listElement.guxFocusFirstItem()}))}onListClick(t){n("gux-list-item",t,(()=>{this.isOpen=!1,this.dropdownButton.focus()}))}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return i("gux-popup",{expanded:this.isOpen},i("div",{slot:"target",class:"gux-button-multi-container"},i("gux-button-slot",{class:"gux-dropdown-button",accent:(t=this.accent,u.find((s=>s===t))?t:"secondary")},i("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},i("slot",{name:"title"}),i("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),i("div",{class:"gux-list-container",slot:"popup"},i("gux-list",{onClick:t=>this.onListClick(t),ref:t=>this.listElement=t},i("slot",null))));var t}get root(){return e(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,s,i,e){var o,n=arguments.length,a=n<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(s,i,a):o(s,i))||a);n>3&&a&&Object.defineProperty(s,i,a)})([o({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:block;-webkit-user-select:none;user-select:none}.gux-button-multi-container .gux-dropdown-button button{display:inline-flex;align-items:center}.gux-button-multi-container .gux-dropdown-button button gux-icon{width:var(--gse-ui-button-icon-size);height:var(--gse-ui-button-icon-size);margin-left:var(--gux-spacing-xs)}.gux-list-container{max-width:220px;padding:var(--gux-spacing-xs) 0;margin:0;list-style:none;background-color:var(--gse-ui-menu-wrapper-backgroundColor);border:1px solid var(--gse-ui-menu-wrapper-border);border-radius:4px;box-shadow:0px 4px 6px 1px rgba(35, 57, 92, 0.12)}";export{c as gux_button_multi}
@@ -1 +0,0 @@
1
- import{r as t,h as e,g as i}from"./p-7d26b2e1.js";import{b as r}from"./p-deee079e.js";import{O as s}from"./p-f34ce7dc.js";import{a as o,o as n}from"./p-3701eff0.js";import{t as a}from"./p-19a7df84.js";import{G as l,a as h}from"./p-211cc1db.js";import{G as f,a as p,v as d,b as u}from"./p-b3c9fd06.js";import{h as g}from"./p-08bc2e6b.js";import{g as x}from"./p-aa2f9991.js";import"./p-8a133b9b.js";import"./p-cbcbd1bb.js";import"./p-d0805f56.js";import"./p-d176c2ae.js";const c={required:"Required"};const m=class{constructor(e){t(this,e),this.labelPosition=void 0,this.computedLabelPosition="above",this.disabled=void 0,this.required=!1,this.hasError=!1,this.hasHelp=!1}watchValue(t){const e=this.root.querySelector("gux-phone-input-beta");e&&(e.hasError=t)}onMutation(){this.hasError=g(this.root,"error"),this.hasHelp=g(this.root,"help")}async componentWillLoad(){this.getI18nValue=await r(this.root,c),this.setInput(),this.setLabel(),this.hasError=g(this.root,"error"),this.hasHelp=g(this.root,"help"),a(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){return e(h,{labelPosition:this.computedLabelPosition},e(l,{position:this.computedLabelPosition,required:this.required},e("slot",{name:"label",onSlotchange:()=>this.setLabel()}),this.renderScreenReaderText(this.getI18nValue("required"),this.required),this.renderScreenReaderText(x(this.root,"error"),this.hasError)),e("div",{class:"gux-input-and-error-container"},e("div",{class:{"gux-input":!0,"gux-input-error":this.hasError}},e("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled}},e("slot",null))),e(f,{show:this.hasError},e("slot",{name:"error"})),e(p,{show:!this.hasError&&this.hasHelp},e("slot",{name:"help"}))))}renderScreenReaderText(t,i=!0){if(i)return e("gux-screen-reader-beta",null,t)}get variant(){return`phoneInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.phoneInputElement=this.root.querySelector("gux-phone-input-beta"),this.disabled=this.phoneInputElement.disabled,this.required=this.phoneInputElement.required,this.disabledObserver=o(this.phoneInputElement,(t=>{this.disabled=t})),this.requiredObserver=n(this.phoneInputElement,(t=>{this.required=t})),d(this.root,this.phoneInputElement)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=u(this.label,this.labelPosition)}get root(){return i(this)}static get watchers(){return{hasError:["watchValue"]}}};(function(t,e,i,r){var s,o=arguments.length,n=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,i,n):s(e,i))||n);o>3&&n&&Object.defineProperty(e,i,n)})([s({childList:!0,subtree:!0})],m.prototype,"onMutation",null),m.style=".gux-form-field-fieldset-container{display:flex;min-width:0;padding:0;margin:var(--gux-form-field-fieldset-container-margin-top, 16px) 0 var(--gux-form-field-fieldset-container-margin-bottom, 16px) 0;border:none}.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:12px;line-height:20px;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;min-width:16px;min-height:16px;margin:2px 4px 0 0;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-legend-label{padding:0}.gux-form-field-legend-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-legend-label.gux-beside{position:relative;top:8px;float:left;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-legend-label.gux-above{margin-bottom:8px}.gux-form-field-legend-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}::slotted(label){font-family:sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}.gux-input-and-error-container{flex-grow:1}";export{m as gux_form_field_phone}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as o,g as i}from"./p-7d26b2e1.js";import{b as s}from"./p-deee079e.js";import"./p-8a133b9b.js";const a={clearSelection:"Clear {numberSelected} selected items"},n=class{constructor(o){e(this,o),this.internalclearselected=t(this,"internalclearselected",7),this.disabled=!1,this.numberSelected=0,this.label=""}onKeyDown(e){switch(e.key){case"Backspace":case"Delete":this.removeTag()}}removeTag(){this.disabled||this.internalclearselected.emit()}renderRemoveButton(){return o("button",{class:"gux-tag-remove-button",onClick:this.removeTag.bind(this),type:"button",disabled:this.disabled},o("gux-icon",{class:"gux-tag-remove-icon","icon-name":"close","screenreader-text":this.i18n("clearSelection",{numberSelected:this.numberSelected.toString()})}))}async componentWillRender(){this.i18n=await s(this.root,a)}render(){return o("div",{class:{"gux-tag":!0,"gux-disabled":this.disabled},"aria-disabled":this.disabled.toString()},this.numberSelected.toString(),this.renderRemoveButton())}get root(){return i(this)}};n.style=":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:2px solid #aac9ff;outline-offset:0}.gux-tag.gux-disabled{color:rgba(46, 57, 76, 0.5);background-color:rgba(226, 230, 238, 0.5)}";export{n as gux_dropdown_multi_tag}