genesys-spark-components 4.0.0-beta.40 → 4.0.0-beta.41

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 (345) 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 +4 -3
  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 +4 -3
  12. package/dist/cjs/gux-button.cjs.entry.js +33 -18
  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-item.cjs.entry.js +1 -2
  16. package/dist/cjs/gux-column-manager.cjs.entry.js +4 -4
  17. package/dist/cjs/gux-content-search.cjs.entry.js +2 -2
  18. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-dismiss-button.cjs.entry.js +2 -2
  25. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-flyout-menu.cjs.entry.js +4 -4
  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 +2 -2
  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 +2 -2
  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 +2 -2
  36. package/dist/cjs/gux-form-field-search.cjs.entry.js +2 -2
  37. package/dist/cjs/gux-form-field-select.cjs.entry.js +2 -2
  38. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +2 -2
  39. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +2 -2
  40. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +2 -2
  41. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-inline-alert.cjs.entry.js +2 -2
  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-menu-option.cjs.entry.js +8 -1
  47. package/dist/cjs/gux-menu.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +436 -378
  56. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-region-icon.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-submenu.cjs.entry.js +8 -13
  67. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-tab-list.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-tab-panel.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-tab.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-table-select-menu.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-text-highlight.cjs.entry.js +2 -2
  81. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +145 -47
  84. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-toggle-slider.cjs.entry.js +5 -3
  86. package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
  87. package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
  88. package/dist/cjs/index-39160f18.js +4 -8
  89. package/dist/cjs/loader.cjs.js +1 -1
  90. package/dist/cjs/{on-attribute-change-4db59350.js → on-attribute-change-9b2d8c85.js} +0 -13
  91. package/dist/cjs/{usage-9feecec4.js → usage-7bd0f4a2.js} +1 -2
  92. package/dist/collection/collection-manifest.json +0 -1
  93. package/dist/collection/components/beta/gux-phone-input/gux-phone-input.js +334 -143
  94. package/dist/collection/components/beta/gux-phone-input/gux-phone.types.js +1 -0
  95. package/dist/collection/components/beta/gux-phone-input/services/RegionCountryCodeMap.js +0 -249
  96. package/dist/collection/components/beta/gux-phone-input/services/region-map.service.js +3 -3
  97. package/dist/collection/components/beta/gux-phone-input/tests/gux-phone-input.e2e.js +50 -38
  98. package/dist/collection/components/beta/gux-time-zone-picker/tests/gux-time-zone-picker.e2e.js +3 -3
  99. package/dist/collection/components/stable/gux-alert/gux-inline-alert.css +1 -1
  100. package/dist/collection/components/stable/gux-badge/gux-badge.css +2 -2
  101. package/dist/collection/components/stable/gux-button/gux-button.css +4 -1
  102. package/dist/collection/components/stable/gux-button/gux-button.js +36 -16
  103. package/dist/collection/components/stable/gux-button-slot/gux-button-slot.css +6 -0
  104. package/dist/collection/components/stable/gux-button-slot/gux-button-slot.js +19 -1
  105. package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.css +11 -3
  106. package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.js +0 -1
  107. package/dist/collection/components/stable/gux-column-manager/gux-column-manager.css +7 -5
  108. package/dist/collection/components/stable/gux-dismiss-button/gux-dismiss-button.css +2 -2
  109. package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.js +3 -3
  110. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu-option/gux-menu-option.css +5 -5
  111. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu-option/gux-menu-option.js +14 -0
  112. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.css +1 -1
  113. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-menu.js +1 -0
  114. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.css +8 -8
  115. package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +8 -12
  116. package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.css +5 -14
  117. package/dist/collection/components/stable/gux-radial-progress/gux-radial-progress.css +1 -4
  118. package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.js +1 -1
  119. package/dist/collection/components/stable/gux-table/tests/gux-table.e2e.js +7 -4
  120. package/dist/collection/components/stable/gux-tabs/gux-tab/gux-tab.css +21 -20
  121. package/dist/collection/components/stable/gux-tabs/gux-tab-list/gux-tab-list.css +4 -4
  122. package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.css +1 -1
  123. package/dist/collection/components/stable/gux-tabs/tests/gux-tabs.e2e.js +1 -2
  124. package/dist/collection/components/stable/gux-text-highlight/gux-text-highlight.css +4 -1
  125. package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.css +81 -19
  126. package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.js +4 -2
  127. package/dist/collection/components/stable/gux-toggle/gux-toggle.css +18 -6
  128. package/dist/component-specs.json +5 -4
  129. package/dist/deploy-info.json +3 -3
  130. package/dist/esm/genesys-webcomponents.js +1 -1
  131. package/dist/esm/gux-accordion.entry.js +1 -1
  132. package/dist/esm/gux-action-button.entry.js +1 -1
  133. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  134. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  135. package/dist/esm/gux-announce-beta.entry.js +1 -1
  136. package/dist/esm/gux-badge.entry.js +4 -3
  137. package/dist/esm/gux-blank-state.entry.js +1 -1
  138. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  139. package/dist/esm/gux-button-multi.entry.js +1 -1
  140. package/dist/esm/gux-button-slot.entry.js +4 -3
  141. package/dist/esm/gux-button.entry.js +33 -18
  142. package/dist/esm/gux-calendar.entry.js +1 -1
  143. package/dist/esm/gux-card.entry.js +1 -1
  144. package/dist/esm/gux-column-manager-item.entry.js +1 -2
  145. package/dist/esm/gux-column-manager.entry.js +4 -4
  146. package/dist/esm/gux-content-search.entry.js +2 -2
  147. package/dist/esm/gux-context-menu.entry.js +1 -1
  148. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  149. package/dist/esm/gux-date-beta.entry.js +1 -1
  150. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  151. package/dist/esm/gux-datepicker.entry.js +1 -1
  152. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  153. package/dist/esm/gux-dismiss-button.entry.js +2 -2
  154. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  155. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  156. package/dist/esm/gux-flyout-menu.entry.js +4 -4
  157. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  158. package/dist/esm/gux-form-field-color.entry.js +2 -2
  159. package/dist/esm/gux-form-field-dropdown.entry.js +2 -2
  160. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  161. package/dist/esm/gux-form-field-number_3.entry.js +2 -2
  162. package/dist/esm/gux-form-field-phone.entry.js +2 -2
  163. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  164. package/dist/esm/gux-form-field-range.entry.js +2 -2
  165. package/dist/esm/gux-form-field-search.entry.js +2 -2
  166. package/dist/esm/gux-form-field-select.entry.js +2 -2
  167. package/dist/esm/gux-form-field-text-like.entry.js +2 -2
  168. package/dist/esm/gux-form-field-textarea.entry.js +2 -2
  169. package/dist/esm/gux-form-field-time-picker.entry.js +2 -2
  170. package/dist/esm/gux-icon.entry.js +1 -1
  171. package/dist/esm/gux-inline-alert.entry.js +2 -2
  172. package/dist/esm/gux-list.entry.js +1 -1
  173. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  174. package/dist/esm/gux-loading-message.entry.js +1 -1
  175. package/dist/esm/gux-menu-option.entry.js +8 -1
  176. package/dist/esm/gux-menu.entry.js +1 -1
  177. package/dist/esm/gux-modal.entry.js +1 -1
  178. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  179. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  180. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  181. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  182. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  183. package/dist/esm/gux-pagination.entry.js +1 -1
  184. package/dist/esm/gux-phone-input-beta.entry.js +436 -378
  185. package/dist/esm/gux-popover-list.entry.js +1 -1
  186. package/dist/esm/gux-radial-loading.entry.js +1 -1
  187. package/dist/esm/gux-radial-progress.entry.js +1 -1
  188. package/dist/esm/gux-rating.entry.js +1 -1
  189. package/dist/esm/gux-region-icon.entry.js +1 -1
  190. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  191. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  192. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  193. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  194. package/dist/esm/gux-sort-control.entry.js +1 -1
  195. package/dist/esm/gux-submenu.entry.js +8 -13
  196. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  197. package/dist/esm/gux-tab-list.entry.js +1 -1
  198. package/dist/esm/gux-tab-panel.entry.js +1 -1
  199. package/dist/esm/gux-tab.entry.js +1 -1
  200. package/dist/esm/gux-table-select-menu.entry.js +1 -1
  201. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  202. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  203. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  204. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  205. package/dist/esm/gux-table.entry.js +1 -1
  206. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  207. package/dist/esm/gux-tabs.entry.js +1 -1
  208. package/dist/esm/gux-tag.entry.js +1 -1
  209. package/dist/esm/gux-text-highlight.entry.js +2 -2
  210. package/dist/esm/gux-time-beta.entry.js +1 -1
  211. package/dist/esm/gux-time-picker.entry.js +1 -1
  212. package/dist/esm/gux-time-zone-picker-beta.entry.js +145 -47
  213. package/dist/esm/gux-toast.entry.js +1 -1
  214. package/dist/esm/gux-toggle-slider.entry.js +5 -3
  215. package/dist/esm/gux-toggle.entry.js +2 -2
  216. package/dist/esm/gux-tooltip.entry.js +1 -1
  217. package/dist/esm/index-a0eec33a.js +4 -8
  218. package/dist/esm/loader.js +1 -1
  219. package/dist/esm/{on-attribute-change-b91132e6.js → on-attribute-change-42a46627.js} +1 -13
  220. package/dist/esm/{usage-fb76486b.js → usage-d6681f18.js} +1 -2
  221. package/dist/genesys-webcomponents/genesys-webcomponents.css +3 -3
  222. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  223. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
  224. package/dist/genesys-webcomponents/{p-ad5a9495.entry.js → p-07976cff.entry.js} +1 -1
  225. package/dist/genesys-webcomponents/{p-7deeb046.entry.js → p-09453413.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-85a97fdd.entry.js → p-0bb16852.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/p-17b43bc4.entry.js +1 -0
  228. package/dist/genesys-webcomponents/{p-a811a043.entry.js → p-18e3fe76.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-7463fc52.entry.js → p-1d721625.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-7e6b5a72.entry.js → p-1dece006.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-b716c999.entry.js → p-22f7b058.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-e97e4344.entry.js → p-28c70a30.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-e491bcac.entry.js → p-32454e23.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-f254a399.entry.js → p-3336925d.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-04b1029f.entry.js → p-3465ba68.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-d5f9129a.entry.js → p-35174acd.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/p-37a6cf93.entry.js +1 -0
  238. package/dist/genesys-webcomponents/p-37bfd195.js +1 -0
  239. package/dist/genesys-webcomponents/p-38bad8d2.entry.js +1 -0
  240. package/dist/genesys-webcomponents/{p-d89f8435.entry.js → p-38c781a4.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-298d37f4.entry.js → p-3af115ad.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-b1239813.entry.js → p-3c4047d1.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-283d98ec.entry.js → p-3cc59add.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-888e521b.js → p-3cf08509.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-d7625bff.entry.js → p-3ea3a764.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-0714156f.entry.js → p-402b6233.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-0681e196.entry.js → p-432bb1ce.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-62bec424.entry.js → p-4b7e6ef2.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-22041782.entry.js → p-4dee44f2.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/p-4e890707.entry.js +1 -0
  251. package/dist/genesys-webcomponents/{p-94c44b6b.entry.js → p-52054142.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-946d3b24.entry.js → p-530c362b.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-1d35e592.entry.js → p-5b36dd80.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-4c8af50f.entry.js → p-5dad03e8.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-882b432e.entry.js → p-5f316b49.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-ee292004.entry.js → p-6236f519.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-53e99e1c.entry.js → p-681b7fcf.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-0f20be96.entry.js → p-6b815f9c.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/p-6d04e8cd.entry.js +1 -0
  260. package/dist/genesys-webcomponents/{p-59674f9b.entry.js → p-6dc75dce.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-2767eedd.entry.js → p-6debb4e2.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-3bca88f0.entry.js → p-700878bf.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-723cdd66.entry.js → p-707129d2.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-66642f70.entry.js → p-7a40b615.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-79f33755.entry.js → p-7af593fb.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-ff028bc8.entry.js → p-7b98f591.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/p-7e9074e8.entry.js +1 -0
  268. package/dist/genesys-webcomponents/{p-959d205b.entry.js → p-81a7dfc0.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-092af550.entry.js → p-834ede94.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-49abdc36.entry.js → p-83b2133c.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/p-87c75c0c.entry.js +1 -0
  272. package/dist/genesys-webcomponents/{p-c74273f5.entry.js → p-8df4a700.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/p-8ff2c1fe.entry.js +1 -0
  274. package/dist/genesys-webcomponents/p-93608d93.entry.js +1 -0
  275. package/dist/genesys-webcomponents/{p-e6ba3486.entry.js → p-967772db.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-da1c6815.entry.js → p-970339d2.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-5edbbaa2.entry.js → p-9e79e6a9.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-079a3314.entry.js → p-9f83906b.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-e05782d1.entry.js → p-a712590a.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/{p-a1151219.entry.js → p-a7341016.entry.js} +1 -1
  281. package/dist/genesys-webcomponents/p-ac85575f.entry.js +1 -0
  282. package/dist/genesys-webcomponents/{p-0023db21.entry.js → p-aeb23536.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-93296fc2.entry.js → p-b1aff517.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/{p-b09ed8fd.entry.js → p-b48cf7fd.entry.js} +1 -1
  285. package/dist/genesys-webcomponents/{p-cda8804c.entry.js → p-b6271f28.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-34f39f9d.entry.js → p-b67960df.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-7ae89101.entry.js → p-b6d1e2e1.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/p-b6fb5b65.entry.js +1 -0
  289. package/dist/genesys-webcomponents/{p-8cde9be1.entry.js → p-b8755c5a.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/p-bb1ee297.entry.js +1 -0
  291. package/dist/genesys-webcomponents/{p-2e0206ad.entry.js → p-cc724d95.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/p-d264a043.entry.js +1 -0
  293. package/dist/genesys-webcomponents/{p-c1d6b950.entry.js → p-d2a6a92d.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/p-d967c7e7.entry.js +1 -0
  295. package/dist/genesys-webcomponents/{p-5f2d702e.entry.js → p-da6e6f64.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-a5f41d6c.entry.js → p-dadc097d.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-f6cdabee.entry.js → p-dc897b48.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-b83c0fce.entry.js → p-df01c156.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-06a051e2.entry.js → p-e3fc7d7d.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-4fc6e77b.entry.js → p-e604265e.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-bc151fdb.entry.js → p-e71c94cc.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-895e3e22.entry.js → p-e8261f28.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-9dfd5bd0.entry.js → p-e99f4472.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-fb229e19.entry.js → p-eb8434c9.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-703abdff.entry.js → p-ee473cc9.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-89ef8747.entry.js → p-ee643cb5.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-759d93b2.entry.js → p-f2c2a915.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-c8193aef.entry.js → p-f327dc53.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-c8d42dd7.entry.js → p-f5540a5d.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-88b39a07.entry.js → p-fb683f3e.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-8a67c5ac.entry.js → p-fbb62dfa.entry.js} +1 -1
  312. package/dist/stencil-wrapper.js +1 -1
  313. package/dist/types/components/beta/gux-phone-input/gux-phone-input.d.ts +31 -16
  314. package/dist/types/components/beta/gux-phone-input/gux-phone.types.d.ts +11 -0
  315. package/dist/types/components/beta/gux-phone-input/services/RegionCountryCodeMap.d.ts +0 -3
  316. package/dist/types/components/beta/gux-phone-input/services/region-map.service.d.ts +1 -5
  317. package/dist/types/components/stable/gux-button/gux-button.d.ts +5 -0
  318. package/dist/types/components/stable/gux-button-slot/gux-button-slot.d.ts +1 -0
  319. package/dist/types/components/stable/gux-flyout-menu/gux-menu/gux-menu-option/gux-menu-option.d.ts +1 -0
  320. package/dist/types/components.d.ts +22 -45
  321. package/dist/types/stencil-wrapper.d.ts +1 -1
  322. package/package.json +1 -2
  323. package/dist/cjs/gux-table-select-popover.cjs.entry.js +0 -1893
  324. package/dist/collection/components/beta/gux-phone-input/components/gux-region-icon/gux-region-select.service.js +0 -25
  325. package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-popover/gux-table-header-popover.js +0 -171
  326. package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-popover/gux-table-select-popover.css +0 -12
  327. package/dist/esm/gux-table-select-popover.entry.js +0 -1889
  328. package/dist/genesys-webcomponents/p-041433c6.entry.js +0 -1
  329. package/dist/genesys-webcomponents/p-0439dede.entry.js +0 -1
  330. package/dist/genesys-webcomponents/p-3b9f7f34.entry.js +0 -1
  331. package/dist/genesys-webcomponents/p-457dce75.entry.js +0 -1
  332. package/dist/genesys-webcomponents/p-4e030b49.js +0 -1
  333. package/dist/genesys-webcomponents/p-644b750b.entry.js +0 -1
  334. package/dist/genesys-webcomponents/p-655abec1.entry.js +0 -1
  335. package/dist/genesys-webcomponents/p-69153f39.entry.js +0 -1
  336. package/dist/genesys-webcomponents/p-6c72ef03.entry.js +0 -1
  337. package/dist/genesys-webcomponents/p-992542c8.entry.js +0 -1
  338. package/dist/genesys-webcomponents/p-9d684bc6.entry.js +0 -1
  339. package/dist/genesys-webcomponents/p-a1c693e2.entry.js +0 -1
  340. package/dist/genesys-webcomponents/p-e3342cc2.entry.js +0 -1
  341. package/dist/genesys-webcomponents/p-e7d70a06.entry.js +0 -1
  342. package/dist/genesys-webcomponents/p-e841c083.entry.js +0 -1
  343. package/dist/genesys-webcomponents/p-ea41620e.entry.js +0 -1
  344. package/dist/types/components/beta/gux-phone-input/components/gux-region-icon/gux-region-select.service.d.ts +0 -1
  345. package/dist/types/components/stable/gux-table/gux-table-select-menu/gux-table-select-popover/gux-table-header-popover.d.ts +0 -32
@@ -1,9 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-a0eec33a.js';
2
- import { t as trackComponent } from './usage-fb76486b.js';
2
+ import { t as trackComponent } from './usage-d6681f18.js';
3
3
  import { b as buildI18nForComponent, g as getDesiredLocale } from './index-e5ccc024.js';
4
4
  import { O as OnClickOutside } from './on-click-outside-e696f632.js';
5
5
  import { p as preventBrowserValidationStyling } from './prevent-browser-validation-styling-8c459589.js';
6
6
  import { a as logWarn } from './log-error-0b15023e.js';
7
+ import { s as simulateNativeEvent } from './simulate-native-event-bca7a1c9.js';
7
8
  import './get-closest-element-66f63212.js';
8
9
 
9
10
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -1215,255 +1216,6 @@ i18n.phonenumbers.AsYouTypeFormatter.prototype.inputDigitHelper_=function(a){var
1215
1216
 
1216
1217
  const libphonenumber$1 = /*@__PURE__*/getDefaultExportFromCjs(libphonenumber);
1217
1218
 
1218
- const regionCountryCodeMap = {
1219
- AD: '+376',
1220
- AE: '+971',
1221
- AF: '+93',
1222
- AG: '+1',
1223
- AI: '+1',
1224
- AL: '+355',
1225
- AM: '+374',
1226
- AO: '+244',
1227
- AR: '+54',
1228
- AS: '+1',
1229
- AT: '+43',
1230
- AU: '+61',
1231
- AW: '+297',
1232
- AX: '+358',
1233
- AZ: '+994',
1234
- BA: '+387',
1235
- BB: '+1',
1236
- BD: '+880',
1237
- BE: '+32',
1238
- BF: '+226',
1239
- BG: '+359',
1240
- BH: '+973',
1241
- BI: '+257',
1242
- BJ: '+229',
1243
- BL: '+590',
1244
- BM: '+1',
1245
- BN: '+673',
1246
- BO: '+591',
1247
- BQ: '+599',
1248
- BR: '+55',
1249
- BS: '+1',
1250
- BT: '+975',
1251
- BV: '+47',
1252
- BW: '+267',
1253
- BY: '+375',
1254
- BZ: '+501',
1255
- CA: '+1',
1256
- CC: '+61',
1257
- CD: '+243',
1258
- CF: '+236',
1259
- CG: '+242',
1260
- CH: '+41',
1261
- CI: '+225',
1262
- CK: '+682',
1263
- CL: '+56',
1264
- CM: '+237',
1265
- CN: '+86',
1266
- CO: '+57',
1267
- CR: '+506',
1268
- CU: '+53',
1269
- CV: '+238',
1270
- CW: '+599',
1271
- CX: '+61',
1272
- CY: '+357',
1273
- CZ: '+420',
1274
- DE: '+49',
1275
- DJ: '+253',
1276
- DK: '+45',
1277
- DM: '+1',
1278
- DO: '+1',
1279
- DZ: '+213',
1280
- EC: '+593',
1281
- EE: '+372',
1282
- EG: '+20',
1283
- EH: '+212',
1284
- ER: '+291',
1285
- ES: '+34',
1286
- ET: '+251',
1287
- FI: '+358',
1288
- FJ: '+679',
1289
- FK: '+500',
1290
- FM: '+691',
1291
- FO: '+298',
1292
- FR: '+33',
1293
- GA: '+241',
1294
- GB: '+44',
1295
- GD: '+1',
1296
- GE: '+995',
1297
- GF: '+594',
1298
- GG: '+44',
1299
- GH: '+233',
1300
- GI: '+350',
1301
- GL: '+299',
1302
- GM: '+220',
1303
- GN: '+224',
1304
- GP: '+590',
1305
- GQ: '+240',
1306
- GR: '+30',
1307
- GS: '+500',
1308
- GT: '+502',
1309
- GU: '+1',
1310
- GW: '+245',
1311
- GY: '+592',
1312
- HK: '+852',
1313
- HN: '+504',
1314
- HR: '+385',
1315
- HT: '+509',
1316
- HU: '+36',
1317
- ID: '+62',
1318
- IE: '+353',
1319
- IL: '+972',
1320
- IM: '+44',
1321
- IN: '+91',
1322
- IO: '+246',
1323
- IQ: '+964',
1324
- IR: '+98',
1325
- IS: '+354',
1326
- IT: '+39',
1327
- JE: '+44',
1328
- JM: '+1',
1329
- JO: '+962',
1330
- JP: '+81',
1331
- KE: '+254',
1332
- KG: '+996',
1333
- KH: '+855',
1334
- KI: '+686',
1335
- KM: '+269',
1336
- KN: '+1',
1337
- KP: '+850',
1338
- KR: '+82',
1339
- KW: '+965',
1340
- KY: '+1',
1341
- KZ: '+7',
1342
- LA: '+856',
1343
- LB: '+961',
1344
- LC: '+1',
1345
- LI: '+423',
1346
- LK: '+94',
1347
- LR: '+231',
1348
- LS: '+266',
1349
- LT: '+370',
1350
- LU: '+352',
1351
- LV: '+371',
1352
- LY: '+218',
1353
- MA: '+212',
1354
- MC: '+377',
1355
- MD: '+373',
1356
- ME: '+382',
1357
- MF: '+590',
1358
- MG: '+261',
1359
- MH: '+692',
1360
- MK: '+389',
1361
- ML: '+223',
1362
- MM: '+95',
1363
- MN: '+976',
1364
- MO: '+853',
1365
- MP: '+1',
1366
- MQ: '+596',
1367
- MR: '+222',
1368
- MS: '+1',
1369
- MT: '+356',
1370
- MU: '+230',
1371
- MV: '+960',
1372
- MW: '+265',
1373
- MX: '+52',
1374
- MY: '+60',
1375
- MZ: '+258',
1376
- NA: '+264',
1377
- NC: '+687',
1378
- NE: '+227',
1379
- NF: '+672',
1380
- NG: '+234',
1381
- NI: '+505',
1382
- NL: '+31',
1383
- NO: '+47',
1384
- NP: '+977',
1385
- NR: '+674',
1386
- NU: '+683',
1387
- NZ: '+64',
1388
- OM: '+968',
1389
- PA: '+507',
1390
- PE: '+51',
1391
- PF: '+689',
1392
- PG: '+675',
1393
- PH: '+63',
1394
- PK: '+92',
1395
- PL: '+48',
1396
- PM: '+508',
1397
- PN: '+64',
1398
- PR: '+1',
1399
- PS: '+970',
1400
- PT: '+351',
1401
- PW: '+680',
1402
- PY: '+595',
1403
- QA: '+974',
1404
- RE: '+262',
1405
- RO: '+40',
1406
- RS: '+381',
1407
- RU: '+7',
1408
- RW: '+250',
1409
- SA: '+966',
1410
- SB: '+677',
1411
- SC: '+248',
1412
- SD: '+249',
1413
- SE: '+46',
1414
- SG: '+65',
1415
- SH: '+290',
1416
- SI: '+386',
1417
- SJ: '+47',
1418
- SK: '+421',
1419
- SL: '+232',
1420
- SM: '+378',
1421
- SN: '+221',
1422
- SO: '+252',
1423
- SR: '+597',
1424
- SS: '+211',
1425
- ST: '+239',
1426
- SV: '+503',
1427
- SX: '+1',
1428
- SY: '+963',
1429
- SZ: '+268',
1430
- TC: '+1',
1431
- TD: '+235',
1432
- TG: '+228',
1433
- TH: '+66',
1434
- TJ: '+992',
1435
- TK: '+690',
1436
- TL: '+670',
1437
- TM: '+993',
1438
- TN: '+216',
1439
- TO: '+676',
1440
- TR: '+90',
1441
- TT: '+1',
1442
- TV: '+688',
1443
- TW: '+886',
1444
- TZ: '+255',
1445
- UA: '+380',
1446
- UG: '+256',
1447
- US: '+1',
1448
- UY: '+598',
1449
- UZ: '+998',
1450
- VA: '+379',
1451
- VC: '+1',
1452
- VE: '+58',
1453
- VG: '+1',
1454
- VI: '+1',
1455
- VN: '+84',
1456
- VU: '+678',
1457
- WF: '+681',
1458
- WS: '+685',
1459
- XK: '+383',
1460
- YE: '+967',
1461
- YT: '+262',
1462
- ZA: '+27',
1463
- ZM: '+260',
1464
- ZW: '+263'
1465
- };
1466
-
1467
1219
  const AD = "Andorra";
1468
1220
  const AE = "United Arab Emirates";
1469
1221
  const AF = "Afghanistan";
@@ -1965,16 +1717,265 @@ const countryResources = {
1965
1717
  regionDropdownButton: regionDropdownButton
1966
1718
  };
1967
1719
 
1968
- function getRegionObjects(locale, i18n, phoneUtil) {
1969
- let regionObjects = [];
1970
- for (const [key, val] of Object.entries(regionCountryCodeMap)) {
1971
- regionObjects.push({
1972
- code: key,
1973
- name: i18n(key),
1974
- countryCode: val
1975
- });
1976
- }
1977
- regionObjects = regionObjects.filter(r => phoneUtil.getSupportedRegions().includes(r.code));
1720
+ const regionCountryCodeMap = {
1721
+ AD: '+376',
1722
+ AE: '+971',
1723
+ AF: '+93',
1724
+ AG: '+1',
1725
+ AI: '+1',
1726
+ AL: '+355',
1727
+ AM: '+374',
1728
+ AO: '+244',
1729
+ AR: '+54',
1730
+ AS: '+1',
1731
+ AT: '+43',
1732
+ AU: '+61',
1733
+ AW: '+297',
1734
+ AX: '+358',
1735
+ AZ: '+994',
1736
+ BA: '+387',
1737
+ BB: '+1',
1738
+ BD: '+880',
1739
+ BE: '+32',
1740
+ BF: '+226',
1741
+ BG: '+359',
1742
+ BH: '+973',
1743
+ BI: '+257',
1744
+ BJ: '+229',
1745
+ BL: '+590',
1746
+ BM: '+1',
1747
+ BN: '+673',
1748
+ BO: '+591',
1749
+ BQ: '+599',
1750
+ BR: '+55',
1751
+ BS: '+1',
1752
+ BT: '+975',
1753
+ BV: '+47',
1754
+ BW: '+267',
1755
+ BY: '+375',
1756
+ BZ: '+501',
1757
+ CA: '+1',
1758
+ CC: '+61',
1759
+ CD: '+243',
1760
+ CF: '+236',
1761
+ CG: '+242',
1762
+ CH: '+41',
1763
+ CI: '+225',
1764
+ CK: '+682',
1765
+ CL: '+56',
1766
+ CM: '+237',
1767
+ CN: '+86',
1768
+ CO: '+57',
1769
+ CR: '+506',
1770
+ CU: '+53',
1771
+ CV: '+238',
1772
+ CW: '+599',
1773
+ CX: '+61',
1774
+ CY: '+357',
1775
+ CZ: '+420',
1776
+ DE: '+49',
1777
+ DJ: '+253',
1778
+ DK: '+45',
1779
+ DM: '+1',
1780
+ DO: '+1',
1781
+ DZ: '+213',
1782
+ EC: '+593',
1783
+ EE: '+372',
1784
+ EG: '+20',
1785
+ EH: '+212',
1786
+ ER: '+291',
1787
+ ES: '+34',
1788
+ ET: '+251',
1789
+ FI: '+358',
1790
+ FJ: '+679',
1791
+ FK: '+500',
1792
+ FM: '+691',
1793
+ FO: '+298',
1794
+ FR: '+33',
1795
+ GA: '+241',
1796
+ GB: '+44',
1797
+ GD: '+1',
1798
+ GE: '+995',
1799
+ GF: '+594',
1800
+ GG: '+44',
1801
+ GH: '+233',
1802
+ GI: '+350',
1803
+ GL: '+299',
1804
+ GM: '+220',
1805
+ GN: '+224',
1806
+ GP: '+590',
1807
+ GQ: '+240',
1808
+ GR: '+30',
1809
+ GS: '+500',
1810
+ GT: '+502',
1811
+ GU: '+1',
1812
+ GW: '+245',
1813
+ GY: '+592',
1814
+ HK: '+852',
1815
+ HN: '+504',
1816
+ HR: '+385',
1817
+ HT: '+509',
1818
+ HU: '+36',
1819
+ ID: '+62',
1820
+ IE: '+353',
1821
+ IL: '+972',
1822
+ IM: '+44',
1823
+ IN: '+91',
1824
+ IO: '+246',
1825
+ IQ: '+964',
1826
+ IR: '+98',
1827
+ IS: '+354',
1828
+ IT: '+39',
1829
+ JE: '+44',
1830
+ JM: '+1',
1831
+ JO: '+962',
1832
+ JP: '+81',
1833
+ KE: '+254',
1834
+ KG: '+996',
1835
+ KH: '+855',
1836
+ KI: '+686',
1837
+ KM: '+269',
1838
+ KN: '+1',
1839
+ KP: '+850',
1840
+ KR: '+82',
1841
+ KW: '+965',
1842
+ KY: '+1',
1843
+ KZ: '+7',
1844
+ LA: '+856',
1845
+ LB: '+961',
1846
+ LC: '+1',
1847
+ LI: '+423',
1848
+ LK: '+94',
1849
+ LR: '+231',
1850
+ LS: '+266',
1851
+ LT: '+370',
1852
+ LU: '+352',
1853
+ LV: '+371',
1854
+ LY: '+218',
1855
+ MA: '+212',
1856
+ MC: '+377',
1857
+ MD: '+373',
1858
+ ME: '+382',
1859
+ MF: '+590',
1860
+ MG: '+261',
1861
+ MH: '+692',
1862
+ MK: '+389',
1863
+ ML: '+223',
1864
+ MM: '+95',
1865
+ MN: '+976',
1866
+ MO: '+853',
1867
+ MP: '+1',
1868
+ MQ: '+596',
1869
+ MR: '+222',
1870
+ MS: '+1',
1871
+ MT: '+356',
1872
+ MU: '+230',
1873
+ MV: '+960',
1874
+ MW: '+265',
1875
+ MX: '+52',
1876
+ MY: '+60',
1877
+ MZ: '+258',
1878
+ NA: '+264',
1879
+ NC: '+687',
1880
+ NE: '+227',
1881
+ NF: '+672',
1882
+ NG: '+234',
1883
+ NI: '+505',
1884
+ NL: '+31',
1885
+ NO: '+47',
1886
+ NP: '+977',
1887
+ NR: '+674',
1888
+ NU: '+683',
1889
+ NZ: '+64',
1890
+ OM: '+968',
1891
+ PA: '+507',
1892
+ PE: '+51',
1893
+ PF: '+689',
1894
+ PG: '+675',
1895
+ PH: '+63',
1896
+ PK: '+92',
1897
+ PL: '+48',
1898
+ PM: '+508',
1899
+ PN: '+64',
1900
+ PR: '+1',
1901
+ PS: '+970',
1902
+ PT: '+351',
1903
+ PW: '+680',
1904
+ PY: '+595',
1905
+ QA: '+974',
1906
+ RE: '+262',
1907
+ RO: '+40',
1908
+ RS: '+381',
1909
+ RU: '+7',
1910
+ RW: '+250',
1911
+ SA: '+966',
1912
+ SB: '+677',
1913
+ SC: '+248',
1914
+ SD: '+249',
1915
+ SE: '+46',
1916
+ SG: '+65',
1917
+ SH: '+290',
1918
+ SI: '+386',
1919
+ SJ: '+47',
1920
+ SK: '+421',
1921
+ SL: '+232',
1922
+ SM: '+378',
1923
+ SN: '+221',
1924
+ SO: '+252',
1925
+ SR: '+597',
1926
+ SS: '+211',
1927
+ ST: '+239',
1928
+ SV: '+503',
1929
+ SX: '+1',
1930
+ SY: '+963',
1931
+ SZ: '+268',
1932
+ TC: '+1',
1933
+ TD: '+235',
1934
+ TG: '+228',
1935
+ TH: '+66',
1936
+ TJ: '+992',
1937
+ TK: '+690',
1938
+ TL: '+670',
1939
+ TM: '+993',
1940
+ TN: '+216',
1941
+ TO: '+676',
1942
+ TR: '+90',
1943
+ TT: '+1',
1944
+ TV: '+688',
1945
+ TW: '+886',
1946
+ TZ: '+255',
1947
+ UA: '+380',
1948
+ UG: '+256',
1949
+ US: '+1',
1950
+ UY: '+598',
1951
+ UZ: '+998',
1952
+ VA: '+379',
1953
+ VC: '+1',
1954
+ VE: '+58',
1955
+ VG: '+1',
1956
+ VI: '+1',
1957
+ VN: '+84',
1958
+ VU: '+678',
1959
+ WF: '+681',
1960
+ WS: '+685',
1961
+ XK: '+383',
1962
+ YE: '+967',
1963
+ YT: '+262',
1964
+ ZA: '+27',
1965
+ ZM: '+260',
1966
+ ZW: '+263'
1967
+ };
1968
+
1969
+ function getRegionObjects(locale, i18n, phoneUtil) {
1970
+ let regionObjects = [];
1971
+ for (const [key, val] of Object.entries(regionCountryCodeMap)) {
1972
+ regionObjects.push({
1973
+ alpha2Code: key,
1974
+ name: i18n(key),
1975
+ dialCode: val
1976
+ });
1977
+ }
1978
+ regionObjects = regionObjects.filter(r => phoneUtil.getSupportedRegions().includes(r.alpha2Code));
1978
1979
  regionObjects.sort((a, b) => a.name.localeCompare(b.name, locale));
1979
1980
  return regionObjects;
1980
1981
  }
@@ -1994,19 +1995,61 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
1994
1995
  const GuxPhoneInput = class {
1995
1996
  constructor(hostRef) {
1996
1997
  registerInstance(this, hostRef);
1997
- this.input = createEvent(this, "input", 7);
1998
- this.phoneValidationError = createEvent(this, "phoneValidationError", 7);
1998
+ this.guxregionselect = createEvent(this, "guxregionselect", 7);
1999
1999
  this.phoneUtil = libphonenumber$1.PhoneNumberUtil.getInstance();
2000
2000
  this.regionObjects = [];
2001
- this.value = undefined;
2001
+ this.value = '';
2002
2002
  this.defaultRegion = undefined;
2003
2003
  this.labelId = undefined;
2004
2004
  this.hasError = false;
2005
2005
  this.disabled = false;
2006
2006
  this.required = false;
2007
- this.phoneNumberFormat = 'INTERNATIONAL';
2008
- this.region = undefined;
2007
+ this.phoneNumberFormat = 'NATIONAL';
2008
+ this.regionOptions = [];
2009
2009
  this.expanded = false;
2010
+ this.region = null;
2011
+ }
2012
+ // eslint-disable-next-line @typescript-eslint/require-await
2013
+ async setRegionAlpha2Code(alpha2Code) {
2014
+ this._setRegionAlpha2Code(alpha2Code);
2015
+ }
2016
+ // eslint-disable-next-line @typescript-eslint/require-await
2017
+ async setRegionDialCode(dialCode) {
2018
+ const newRegion = this.getRegionFromDialCode(dialCode);
2019
+ this.updateInputWithNewRegion(newRegion, this.region);
2020
+ }
2021
+ // eslint-disable-next-line @typescript-eslint/require-await
2022
+ async getRegion() {
2023
+ return this.region;
2024
+ }
2025
+ // eslint-disable-next-line @typescript-eslint/require-await
2026
+ async getFormattedNumber(format = 'E164') {
2027
+ var _a;
2028
+ const phone = this.parsePhoneNumber(this.value, (_a = this.region) === null || _a === void 0 ? void 0 : _a.alpha2Code);
2029
+ const libFormat = this.parseDisplayFormat(format);
2030
+ return phone ? this.phoneUtil.format(phone, libFormat) : null;
2031
+ }
2032
+ // eslint-disable-next-line @typescript-eslint/require-await
2033
+ async getExtension() {
2034
+ var _a;
2035
+ const phone = this.parsePhoneNumber(this.value, (_a = this.region) === null || _a === void 0 ? void 0 : _a.alpha2Code);
2036
+ return phone ? phone.getExtension() : null;
2037
+ }
2038
+ // eslint-disable-next-line @typescript-eslint/require-await
2039
+ async isPossibleNumber() {
2040
+ var _a;
2041
+ const phone = this.parsePhoneNumber(this.value, (_a = this.region) === null || _a === void 0 ? void 0 : _a.alpha2Code);
2042
+ return phone ? this.phoneUtil.isPossibleNumber(phone) : false;
2043
+ }
2044
+ // eslint-disable-next-line @typescript-eslint/require-await
2045
+ async isValidNumber() {
2046
+ var _a;
2047
+ const phone = this.parsePhoneNumber(this.value, (_a = this.region) === null || _a === void 0 ? void 0 : _a.alpha2Code);
2048
+ return phone ? this.phoneUtil.isValidNumber(phone) : false;
2049
+ }
2050
+ updateValue(number) {
2051
+ var _a;
2052
+ this._setRegionAlpha2Code((_a = this.getRegionFromValue(number)) === null || _a === void 0 ? void 0 : _a.alpha2Code);
2010
2053
  }
2011
2054
  focusSelectedItemAfterRender(expanded) {
2012
2055
  if (expanded && this.listboxElement) {
@@ -2017,22 +2060,30 @@ const GuxPhoneInput = class {
2017
2060
  });
2018
2061
  }
2019
2062
  }
2020
- validateValue(newValue) {
2021
- const selectedListboxOptionElement = this.getOptionElementByValue(newValue);
2022
- if (selectedListboxOptionElement) {
2023
- this.listboxElement.value = newValue;
2024
- return;
2025
- }
2063
+ setDisplayFormat(format) {
2064
+ this.displayFormat = this.parseDisplayFormat(format);
2026
2065
  }
2027
2066
  onInternallistboxoptionsupdated(event) {
2028
2067
  event.stopPropagation();
2029
2068
  forceUpdate(this.root);
2030
2069
  }
2031
2070
  onBlur(event) {
2071
+ var _a;
2032
2072
  this.stopPropagationOfInternalFocusEvents(event);
2073
+ // Native change events are not composed so they will not propagate out of the outermost of the shadow DOM.
2074
+ if (this.value !== this.valueWhenFocused ||
2075
+ ((_a = this.region) === null || _a === void 0 ? void 0 : _a.alpha2Code) !== this.regionAlphaCodeWhenFocused) {
2076
+ simulateNativeEvent(this.root, 'change');
2077
+ }
2033
2078
  }
2034
2079
  onFocus(event) {
2080
+ var _a;
2035
2081
  this.stopPropagationOfInternalFocusEvents(event);
2082
+ this.valueWhenFocused = this.value;
2083
+ this.regionAlphaCodeWhenFocused = (_a = this.region) === null || _a === void 0 ? void 0 : _a.alpha2Code;
2084
+ if (this.regionOptions.length === 0) {
2085
+ this.regionOptions = this.getRegionOptions();
2086
+ }
2036
2087
  }
2037
2088
  onFocusout() {
2038
2089
  this.collapseListbox('noFocusChange');
@@ -2054,98 +2105,132 @@ const GuxPhoneInput = class {
2054
2105
  }
2055
2106
  }
2056
2107
  componentDidLoad() {
2057
- this.setValidation();
2058
2108
  this.setInput();
2059
2109
  this.setListBox();
2060
2110
  }
2061
2111
  componentWillRender() {
2062
2112
  trackComponent(this.root);
2063
- this.validateValue(this.region);
2064
2113
  }
2065
2114
  initialValueParse() {
2066
2115
  var _a;
2067
- this.setDisplayFormat();
2116
+ this.setDisplayFormat(this.phoneNumberFormat);
2068
2117
  if (this.value) {
2069
2118
  try {
2070
2119
  const phone = this.phoneUtil.parse(this.value);
2071
- this.numberText = this.phoneUtil.format(phone, this.displayFormat);
2072
- this.region = this.getRegionCode(phone);
2120
+ this._setRegionAlpha2Code((_a = this.getRegionFromValue(this.value)) === null || _a === void 0 ? void 0 : _a.alpha2Code);
2121
+ this.value = this.phoneUtil.format(phone, this.displayFormat);
2073
2122
  }
2074
2123
  catch (e) {
2075
- if (this.numberText === undefined) {
2076
- // only show warning on initial render
2077
- logWarn(this.root, 'Number cannot be parsed');
2078
- this.numberText = this.value;
2079
- this.region = '';
2080
- }
2124
+ logWarn(this.root, 'Number cannot be parsed');
2081
2125
  }
2082
2126
  }
2083
2127
  else {
2084
- this.region = ((_a = this.defaultRegion) === null || _a === void 0 ? void 0 : _a.toUpperCase()) || '';
2085
- this.numberText = '';
2128
+ this._setRegionAlpha2Code(this.defaultRegionCode);
2129
+ this.value = '';
2086
2130
  }
2087
- if (this.listboxElement) {
2088
- this.listboxElement.value = this.region;
2131
+ }
2132
+ parseDisplayFormat(format) {
2133
+ let output;
2134
+ switch (format.toUpperCase()) {
2135
+ case 'INTERNATIONAL':
2136
+ output = libphonenumber.PhoneNumberFormat.INTERNATIONAL;
2137
+ break;
2138
+ case 'E164':
2139
+ output = libphonenumber.PhoneNumberFormat.E164;
2140
+ break;
2141
+ case 'NATIONAL':
2142
+ default:
2143
+ output = libphonenumber.PhoneNumberFormat.NATIONAL;
2144
+ break;
2089
2145
  }
2146
+ return output;
2090
2147
  }
2091
- onInputChange(number) {
2092
- if (number.startsWith('+')) {
2093
- try {
2094
- this.region = this.getRegionCode(this.phoneUtil.parse(number));
2095
- }
2096
- catch (e) {
2097
- // parse failed, so check if there is a matching region in the string
2098
- this.region = this.getRegionCodeFromRegionObjects(number);
2099
- }
2148
+ /** Returns parsed phone number object or null if utility threw an error (unknown region or impossible to parse number) */
2149
+ parsePhoneNumber(value, region = 'ZZ') {
2150
+ try {
2151
+ return this.phoneUtil.parse(value, region);
2152
+ }
2153
+ catch (e) {
2154
+ return null;
2100
2155
  }
2101
- this.numberText = number;
2102
- this.phoneNumberUpdated();
2103
2156
  }
2104
- getRegionCode(number) {
2105
- let region = this.phoneUtil.getRegionCodeForNumber(number);
2106
- // setting region to empty when either 001 (global satellite) or ZZ (unknown) are returned
2107
- // phoneUtil doesn't always handle these cases in its other functions, so setting to an empty region (which is unknown with a globe as an icon) works best
2108
- if (region === '001' || region === 'ZZ') {
2109
- region = '';
2157
+ onInputChange(number) {
2158
+ this.value = number;
2159
+ }
2160
+ regionObjectToRegion(regionObject) {
2161
+ let output = null;
2162
+ if (regionObject) {
2163
+ const regionCopy = Object.assign({}, regionObject);
2164
+ delete regionCopy.name;
2165
+ output = regionCopy;
2110
2166
  }
2111
- return region;
2167
+ return output;
2112
2168
  }
2113
- getRegionCodeFromRegionObjects(number) {
2114
- var _a;
2115
- return (((_a = this.regionObjects
2116
- .filter(region => number.startsWith(region.countryCode))
2117
- .sort((a, b) => b.countryCode.length - a.countryCode.length)[0]) === null || _a === void 0 ? void 0 : _a.code) ||
2118
- '');
2169
+ _setRegionAlpha2Code(regionCode) {
2170
+ const newAlpha2Code = regionCode === null || regionCode === void 0 ? void 0 : regionCode.toUpperCase();
2171
+ const regionMatch = this.regionObjects.find(r => r.alpha2Code === newAlpha2Code);
2172
+ const newRegion = this.regionObjectToRegion(regionMatch);
2173
+ this.updateInputWithNewRegion(newRegion, this.region);
2119
2174
  }
2120
- validatePhoneNumber() {
2121
- if (this.value) {
2122
- try {
2123
- const phone = this.phoneUtil.parse(this.value);
2124
- const isValid = phone &&
2125
- this.phoneUtil.isValidNumberForRegion(phone, this.phoneUtil.getRegionCodeForNumber(phone));
2126
- this.phoneValidationError.emit(!isValid);
2127
- }
2128
- catch (e) {
2129
- if (this.numberText) {
2130
- logWarn(this.root, 'Number cannot be parsed');
2131
- this.phoneValidationError.emit(true);
2132
- }
2175
+ updateInputWithNewRegion(region, lastRegion) {
2176
+ this.region = region;
2177
+ if (this.value.startsWith('+') &&
2178
+ (lastRegion === null || lastRegion === void 0 ? void 0 : lastRegion.dialCode) !== (region === null || region === void 0 ? void 0 : region.dialCode) &&
2179
+ lastRegion !== null) {
2180
+ const newValue = this.value.replace((lastRegion === null || lastRegion === void 0 ? void 0 : lastRegion.dialCode) || '+', (region === null || region === void 0 ? void 0 : region.dialCode) || '');
2181
+ if (this.value !== newValue) {
2182
+ this.value = newValue;
2133
2183
  }
2134
2184
  }
2135
2185
  }
2136
- phoneNumberUpdated() {
2137
- this.value = `+${this.numberText.replace(/\D/, '')}`;
2138
- this.input.emit(this.value);
2186
+ get defaultRegionCode() {
2187
+ var _a, _b;
2188
+ const defaultRegion = (_a = this.defaultRegion) === null || _a === void 0 ? void 0 : _a.toUpperCase();
2189
+ const regionMatch = defaultRegion
2190
+ ? this.regionObjects.find(r => r.alpha2Code === defaultRegion)
2191
+ : undefined;
2192
+ return (_b = regionMatch === null || regionMatch === void 0 ? void 0 : regionMatch.alpha2Code) !== null && _b !== void 0 ? _b : null;
2193
+ }
2194
+ getRegionFromValue(number) {
2195
+ return this.isNationalNumber(number)
2196
+ ? this.region || null
2197
+ : this.getRegionFromDialCode(number);
2198
+ }
2199
+ isNationalNumber(number) {
2200
+ return !number.startsWith('+');
2201
+ }
2202
+ getRegionFromDialCode(number) {
2203
+ const matches = this.regionObjects
2204
+ .filter(region => number.startsWith(region.dialCode))
2205
+ .sort((a, b) => a.name.localeCompare(b.name))
2206
+ .map(regionObj => this.regionObjectToRegion(regionObj));
2207
+ if (number === '+') {
2208
+ return this.region || null;
2209
+ }
2210
+ if (matches.length < 2) {
2211
+ return matches[0] || null;
2212
+ }
2213
+ try {
2214
+ // Use googlelib-phonenumber to parse and get the region code (primarily works for complete, valid numbers)
2215
+ const parsedNumber = this.phoneUtil.parse(number);
2216
+ const parsedRegionCode = this.phoneUtil.getRegionCodeForNumber(parsedNumber);
2217
+ const match = matches.find(r => r.alpha2Code === parsedRegionCode);
2218
+ if (match) {
2219
+ return match;
2220
+ }
2221
+ }
2222
+ catch (e) {
2223
+ // Error thrown while parsing, continue processing without googlelib-phonenumber
2224
+ }
2225
+ const currentRegionMatch = matches.find(r => { var _a; return r.alpha2Code === ((_a = this.region) === null || _a === void 0 ? void 0 : _a.alpha2Code); });
2226
+ const defaultRegionMatch = matches.find(r => r.alpha2Code === this.defaultRegionCode);
2227
+ return currentRegionMatch || defaultRegionMatch || matches[0];
2139
2228
  }
2140
2229
  stopPropagationOfInternalFocusEvents(event) {
2141
2230
  if (this.root.contains(event.relatedTarget)) {
2142
- return event.stopImmediatePropagation();
2231
+ event.stopImmediatePropagation();
2143
2232
  }
2144
2233
  }
2145
- getOptionElementByValue(value) {
2146
- const listboxOptionElements = this.root.shadowRoot.querySelectorAll('gux-option');
2147
- return Array.from(listboxOptionElements).find(listboxOptionElement => listboxOptionElement.value === value);
2148
- }
2149
2234
  fieldButtonClick() {
2150
2235
  this.expanded = !this.expanded;
2151
2236
  }
@@ -2157,42 +2242,10 @@ const GuxPhoneInput = class {
2157
2242
  this.fieldButtonElement.focus();
2158
2243
  }
2159
2244
  }
2160
- updateRegion(newValue) {
2161
- if (this.region !== newValue) {
2162
- this.collapseListbox('focusFieldButton');
2163
- this.region = newValue;
2164
- if (this.numberText.startsWith('+')) {
2165
- this.numberText = regionCountryCodeMap[this.region] || '';
2166
- }
2167
- else {
2168
- this.numberText = regionCountryCodeMap[this.region]
2169
- ? regionCountryCodeMap[this.region] + this.numberText
2170
- : '';
2171
- }
2172
- this.phoneNumberUpdated();
2173
- }
2174
- }
2175
- setDisplayFormat() {
2176
- switch (this.phoneNumberFormat) {
2177
- case 'INTERNATIONAL':
2178
- this.displayFormat = libphonenumber.PhoneNumberFormat.INTERNATIONAL;
2179
- break;
2180
- case 'E164':
2181
- this.displayFormat = libphonenumber.PhoneNumberFormat.E164;
2182
- break;
2183
- }
2184
- }
2185
- setValidation() {
2186
- this.root.addEventListener('focusout', (event) => {
2187
- event.stopPropagation();
2188
- this.validatePhoneNumber();
2189
- });
2190
- }
2191
2245
  setInput() {
2192
2246
  this.inputElement = this.root.shadowRoot.querySelector('input[type="tel"]');
2193
2247
  preventBrowserValidationStyling(this.inputElement);
2194
- this.inputElement.addEventListener('input', (event) => {
2195
- event.stopPropagation();
2248
+ this.inputElement.addEventListener('input', () => {
2196
2249
  this.onInputChange(this.inputElement.value);
2197
2250
  });
2198
2251
  this.inputElement.addEventListener('focusin', (event) => {
@@ -2202,11 +2255,11 @@ const GuxPhoneInput = class {
2202
2255
  }
2203
2256
  setListBox() {
2204
2257
  this.listboxElement.addEventListener('input', (event) => {
2205
- event.stopPropagation();
2206
- this.updateRegion(event.target.value);
2207
- });
2208
- this.listboxElement.addEventListener('change', (event) => {
2209
- event.stopPropagation();
2258
+ const regionCode = event.target
2259
+ .value;
2260
+ this.guxregionselect.emit(regionCode);
2261
+ this._setRegionAlpha2Code(regionCode);
2262
+ this.collapseListbox('focusFieldButton');
2210
2263
  });
2211
2264
  this.listboxElement.addEventListener('focusout', (event) => {
2212
2265
  event.stopPropagation();
@@ -2231,11 +2284,12 @@ const GuxPhoneInput = class {
2231
2284
  return (h("div", { class: "gux-region-select" }, h("button", { type: "button", class: "gux-field gux-field-button", disabled: this.disabled, onClick: this.fieldButtonClick.bind(this), ref: el => (this.fieldButtonElement = el), "aria-haspopup": "listbox", "aria-expanded": this.expanded.toString(), "aria-label": this.i18n('regionDropdownButton') }, h("div", { class: "gux-field-content" }, this.renderButtonDisplay()), h("gux-icon", { class: "gux-expand-icon", iconName: "chevron-small-down", decorative: true }))));
2232
2285
  }
2233
2286
  renderButtonDisplay() {
2234
- const selectedListboxOptionElement = this.getOptionElementByValue(this.region);
2235
- return (h("div", { class: "gux-selected-option" }, (selectedListboxOptionElement === null || selectedListboxOptionElement === void 0 ? void 0 : selectedListboxOptionElement.value) ? (h("gux-region-icon", { region: this.region, "screenreader-text": this.i18n(this.region) })) : (h("gux-icon", { "icon-name": "globe", "screenreader-text": this.i18n('unknownRegion') }))));
2287
+ var _a, _b;
2288
+ return (h("div", { class: "gux-selected-option" }, this.region ? (h("gux-region-icon", { region: (_a = this.region) === null || _a === void 0 ? void 0 : _a.alpha2Code, "screenreader-text": this.i18n((_b = this.region) === null || _b === void 0 ? void 0 : _b.alpha2Code) })) : (h("gux-icon", { "icon-name": "globe", "screenreader-text": this.i18n('unknownRegion') }))));
2236
2289
  }
2237
2290
  renderInput() {
2238
- return (h("input", { id: 'tel-input', class: "gux-phone-text-input", type: "tel", placeholder: this.phoneUtil.format(this.phoneUtil.getExampleNumber(this.region || 'US'), this.displayFormat), value: this.numberText, disabled: this.disabled }));
2291
+ var _a;
2292
+ return (h("input", { id: 'tel-input', class: "gux-phone-text-input", type: "tel", placeholder: this.phoneUtil.format(this.phoneUtil.getExampleNumber(((_a = this.region) === null || _a === void 0 ? void 0 : _a.alpha2Code) || this.defaultRegionCode || 'US'), this.displayFormat), value: this.value, disabled: this.disabled }));
2239
2293
  }
2240
2294
  renderTarget() {
2241
2295
  return (h("div", { class: {
@@ -2243,18 +2297,22 @@ const GuxPhoneInput = class {
2243
2297
  'gux-error': this.hasError
2244
2298
  }, slot: "target" }, this.renderCountryButton(), this.renderInput()));
2245
2299
  }
2246
- renderPopup() {
2247
- const options = [
2300
+ getRegionOptions() {
2301
+ return [
2248
2302
  (h("gux-option", { value: "" }, h("span", { class: "gux-option-content" }, h("gux-icon", { "icon-name": "globe", decorative: true }), h("span", null, this.i18n('unknownRegion')), h("span", { class: "gux-country-code" }, "+"))))
2249
- ].concat(this.regionObjects.map(region => (h("gux-option", { value: region.code }, h("span", { class: "gux-option-content" }, h("gux-region-icon", { region: region.code }), h("span", null, region.name), h("span", { class: "gux-country-code" }, region.countryCode))))));
2250
- return (h("div", { slot: "popup", class: "gux-listbox-container" }, h("gux-listbox", { "aria-label": this.i18n('regionDropdown') }, options)));
2303
+ ].concat(this.regionObjects.map(region => (h("gux-option", { value: region.alpha2Code }, h("span", { class: "gux-option-content" }, h("gux-region-icon", { region: region.alpha2Code }), h("span", null, region.name), h("span", { class: "gux-country-code" }, region.dialCode))))));
2304
+ }
2305
+ renderPopup() {
2306
+ return (h("div", { slot: "popup", class: "gux-listbox-container" }, h("gux-listbox", { "aria-label": this.i18n('regionDropdown'), value: this.region ? this.region.alpha2Code : '' }, this.regionOptions)));
2251
2307
  }
2252
2308
  render() {
2253
- return (h("gux-popup", { expanded: this.expanded, disabled: this.disabled }, this.renderTarget(), this.renderPopup()));
2309
+ return (h("gux-popup", { expanded: this.expanded, disabled: this.disabled, "exceed-target-width": true }, this.renderTarget(), this.renderPopup()));
2254
2310
  }
2255
2311
  get root() { return getElement(this); }
2256
2312
  static get watchers() { return {
2257
- "expanded": ["focusSelectedItemAfterRender"]
2313
+ "value": ["updateValue"],
2314
+ "expanded": ["focusSelectedItemAfterRender"],
2315
+ "phoneNumberFormat": ["setDisplayFormat"]
2258
2316
  }; }
2259
2317
  };
2260
2318
  __decorate([