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