@ngstarter-ui/components 22.3.6 → 22.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -0
- package/ai/component-registry.json +186 -101
- package/fesm2022/attachment-block-BK9QxVjq.mjs +163 -0
- package/fesm2022/attachment-block-BK9QxVjq.mjs.map +1 -0
- package/fesm2022/callout-block-Bl4GZYz8.mjs +196 -0
- package/fesm2022/callout-block-Bl4GZYz8.mjs.map +1 -0
- package/fesm2022/code-block.component-DCRD-9iP.mjs +393 -0
- package/fesm2022/code-block.component-DCRD-9iP.mjs.map +1 -0
- package/fesm2022/content-builder.store-D622mHxt.mjs +328 -0
- package/fesm2022/content-builder.store-D622mHxt.mjs.map +1 -0
- package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs +1110 -0
- package/fesm2022/content-editor-content-editable.directive-WzD9_71s.mjs.map +1 -0
- package/fesm2022/cursor-controller-DKfBII1n.mjs +55 -0
- package/fesm2022/cursor-controller-DKfBII1n.mjs.map +1 -0
- package/fesm2022/default-converters-9oSKDsXP.mjs +140 -0
- package/fesm2022/default-converters-9oSKDsXP.mjs.map +1 -0
- package/fesm2022/divider-block.component-Dvgeq_D0.mjs +148 -0
- package/fesm2022/divider-block.component-Dvgeq_D0.mjs.map +1 -0
- package/fesm2022/embed-block-CYkOv4Wt.mjs +565 -0
- package/fesm2022/embed-block-CYkOv4Wt.mjs.map +1 -0
- package/fesm2022/extra-block-defs-Cn_hfM3c.mjs +122 -0
- package/fesm2022/extra-block-defs-Cn_hfM3c.mjs.map +1 -0
- package/fesm2022/gallery-block-DT3uIURY.mjs +365 -0
- package/fesm2022/gallery-block-DT3uIURY.mjs.map +1 -0
- package/fesm2022/grid-block-ZVDT3m8-.mjs +504 -0
- package/fesm2022/grid-block-ZVDT3m8-.mjs.map +1 -0
- package/fesm2022/heading-block.component-iCpJGTMh.mjs +274 -0
- package/fesm2022/heading-block.component-iCpJGTMh.mjs.map +1 -0
- package/fesm2022/html-utils-DywL8gGa.mjs +24 -0
- package/fesm2022/html-utils-DywL8gGa.mjs.map +1 -0
- package/fesm2022/image-block.component-DJ7-HCR8.mjs +285 -0
- package/fesm2022/image-block.component-DJ7-HCR8.mjs.map +1 -0
- package/fesm2022/list-block.component-qFIebEBO.mjs +312 -0
- package/fesm2022/list-block.component-qFIebEBO.mjs.map +1 -0
- package/fesm2022/nested-blocks-CXhgXJ1H.mjs +345 -0
- package/fesm2022/nested-blocks-CXhgXJ1H.mjs.map +1 -0
- package/fesm2022/ngstarter-ui-components-action-required.mjs +150 -45
- package/fesm2022/ngstarter-ui-components-action-required.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-alert.mjs +318 -133
- package/fesm2022/ngstarter-ui-components-alert.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-announcement.mjs +280 -88
- package/fesm2022/ngstarter-ui-components-announcement.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-autocomplete.mjs +647 -386
- package/fesm2022/ngstarter-ui-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-avatar.mjs +715 -482
- package/fesm2022/ngstarter-ui-components-avatar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-badge.mjs +308 -97
- package/fesm2022/ngstarter-ui-components-badge.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-block-loader.mjs +164 -47
- package/fesm2022/ngstarter-ui-components-block-loader.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs +278 -315
- package/fesm2022/ngstarter-ui-components-bottom-sheet.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs +707 -205
- package/fesm2022/ngstarter-ui-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-button-toggle.mjs +518 -175
- package/fesm2022/ngstarter-ui-components-button-toggle.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-button.mjs +294 -68
- package/fesm2022/ngstarter-ui-components-button.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-calendar.mjs +442 -250
- package/fesm2022/ngstarter-ui-components-calendar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-card-overlay.mjs +159 -47
- package/fesm2022/ngstarter-ui-components-card-overlay.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-card.mjs +619 -194
- package/fesm2022/ngstarter-ui-components-card.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-carousel.mjs +1012 -634
- package/fesm2022/ngstarter-ui-components-carousel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-checkbox.mjs +715 -308
- package/fesm2022/ngstarter-ui-components-checkbox.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-chips.mjs +1397 -667
- package/fesm2022/ngstarter-ui-components-chips.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-code-highlighter.mjs +519 -357
- package/fesm2022/ngstarter-ui-components-code-highlighter.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-picker.mjs +1218 -604
- package/fesm2022/ngstarter-ui-components-color-picker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-scheme.mjs +265 -134
- package/fesm2022/ngstarter-ui-components-color-scheme.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-color-switcher.mjs +190 -71
- package/fesm2022/ngstarter-ui-components-color-switcher.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-command-bar.mjs +197 -58
- package/fesm2022/ngstarter-ui-components-command-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-comment-editor.mjs +2212 -1128
- package/fesm2022/ngstarter-ui-components-comment-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-comparison-slider.mjs +269 -183
- package/fesm2022/ngstarter-ui-components-comparison-slider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-confirm.mjs +164 -86
- package/fesm2022/ngstarter-ui-components-confirm.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-content-editor.mjs +6240 -2
- package/fesm2022/ngstarter-ui-components-content-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-cookie-popup.mjs +244 -108
- package/fesm2022/ngstarter-ui-components-cookie-popup.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-core.mjs +2110 -1592
- package/fesm2022/ngstarter-ui-components-core.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-country-select.mjs +1970 -588
- package/fesm2022/ngstarter-ui-components-country-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-crop.mjs +249 -191
- package/fesm2022/ngstarter-ui-components-crop.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-currency-select.mjs +1658 -452
- package/fesm2022/ngstarter-ui-components-currency-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-data-view.mjs +4538 -2497
- package/fesm2022/ngstarter-ui-components-data-view.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-date-format-select.mjs +357 -157
- package/fesm2022/ngstarter-ui-components-date-format-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-datepicker.mjs +2587 -1264
- package/fesm2022/ngstarter-ui-components-datepicker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-dialog.mjs +681 -385
- package/fesm2022/ngstarter-ui-components-dialog.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-digit-roller.mjs +1000 -750
- package/fesm2022/ngstarter-ui-components-digit-roller.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-divider.mjs +164 -41
- package/fesm2022/ngstarter-ui-components-divider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-drawer.mjs +218 -143
- package/fesm2022/ngstarter-ui-components-drawer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-emoji-picker.mjs +345 -247
- package/fesm2022/ngstarter-ui-components-emoji-picker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-empty-state.mjs +244 -74
- package/fesm2022/ngstarter-ui-components-empty-state.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-events.mjs +467 -126
- package/fesm2022/ngstarter-ui-components-events.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-expand.mjs +191 -59
- package/fesm2022/ngstarter-ui-components-expand.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-expansion.mjs +529 -193
- package/fesm2022/ngstarter-ui-components-expansion.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-file-type.mjs +270 -171
- package/fesm2022/ngstarter-ui-components-file-type.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-filter-builder.mjs +741 -352
- package/fesm2022/ngstarter-ui-components-filter-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-form-builder.mjs +9032 -6964
- package/fesm2022/ngstarter-ui-components-form-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-form-field.mjs +741 -276
- package/fesm2022/ngstarter-ui-components-form-field.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-gauge.mjs +155 -43
- package/fesm2022/ngstarter-ui-components-gauge.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-grid.mjs +197 -81
- package/fesm2022/ngstarter-ui-components-grid.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-guided-tour.mjs +881 -740
- package/fesm2022/ngstarter-ui-components-guided-tour.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-headless-editor.mjs +3573 -3656
- package/fesm2022/ngstarter-ui-components-headless-editor.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-headless-stepper.mjs +277 -204
- package/fesm2022/ngstarter-ui-components-headless-stepper.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-icon.mjs +209 -182
- package/fesm2022/ngstarter-ui-components-icon.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-designer.mjs +5096 -4066
- package/fesm2022/ngstarter-ui-components-image-designer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-placeholder.mjs +45 -19
- package/fesm2022/ngstarter-ui-components-image-placeholder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-resizer.mjs +333 -154
- package/fesm2022/ngstarter-ui-components-image-resizer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-viewer.mjs +564 -358
- package/fesm2022/ngstarter-ui-components-image-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs +246 -167
- package/fesm2022/ngstarter-ui-components-image-zoom-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-incidents.mjs +732 -258
- package/fesm2022/ngstarter-ui-components-incidents.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs +244 -182
- package/fesm2022/ngstarter-ui-components-inline-text-edit.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input-mask.mjs +314 -174
- package/fesm2022/ngstarter-ui-components-input-mask.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input-validator.mjs +45 -69
- package/fesm2022/ngstarter-ui-components-input-validator.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-input.mjs +303 -161
- package/fesm2022/ngstarter-ui-components-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-kanban-board.mjs +504 -159
- package/fesm2022/ngstarter-ui-components-kanban-board.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-kbd.mjs +86 -30
- package/fesm2022/ngstarter-ui-components-kbd.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-layout.mjs +681 -220
- package/fesm2022/ngstarter-ui-components-layout.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-list.mjs +968 -281
- package/fesm2022/ngstarter-ui-components-list.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-logo.mjs +181 -51
- package/fesm2022/ngstarter-ui-components-logo.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-marquee.mjs +226 -147
- package/fesm2022/ngstarter-ui-components-marquee.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-menu.mjs +1686 -1091
- package/fesm2022/ngstarter-ui-components-menu.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-micro-chart.mjs +1541 -943
- package/fesm2022/ngstarter-ui-components-micro-chart.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-navigation.mjs +1035 -455
- package/fesm2022/ngstarter-ui-components-navigation.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-notifications.mjs +678 -230
- package/fesm2022/ngstarter-ui-components-notifications.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-number-input.mjs +616 -316
- package/fesm2022/ngstarter-ui-components-number-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-option.mjs +405 -163
- package/fesm2022/ngstarter-ui-components-option.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-overlay.mjs +107 -111
- package/fesm2022/ngstarter-ui-components-overlay.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs +131 -76
- package/fesm2022/ngstarter-ui-components-page-loading-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-paginator.mjs +543 -295
- package/fesm2022/ngstarter-ui-components-paginator.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-password-strength.mjs +785 -340
- package/fesm2022/ngstarter-ui-components-password-strength.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs +3705 -2695
- package/fesm2022/ngstarter-ui-components-pdf-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-signer.mjs +1179 -851
- package/fesm2022/ngstarter-ui-components-pdf-signer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs +2973 -2070
- package/fesm2022/ngstarter-ui-components-pdf-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-phone-input.mjs +2081 -770
- package/fesm2022/ngstarter-ui-components-phone-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-pin-input.mjs +366 -198
- package/fesm2022/ngstarter-ui-components-pin-input.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-popover.mjs +558 -308
- package/fesm2022/ngstarter-ui-components-popover.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-progress-bar.mjs +178 -73
- package/fesm2022/ngstarter-ui-components-progress-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-radio-card.mjs +301 -105
- package/fesm2022/ngstarter-ui-components-radio-card.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-radio.mjs +417 -157
- package/fesm2022/ngstarter-ui-components-radio.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-rail-nav.mjs +208 -88
- package/fesm2022/ngstarter-ui-components-rail-nav.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-resizable-container.mjs +123 -74
- package/fesm2022/ngstarter-ui-components-resizable-container.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-screen-loader.mjs +197 -95
- package/fesm2022/ngstarter-ui-components-screen-loader.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-scroll-spy.mjs +383 -245
- package/fesm2022/ngstarter-ui-components-scroll-spy.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs +705 -581
- package/fesm2022/ngstarter-ui-components-scrollbar-area.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-segmented.mjs +422 -220
- package/fesm2022/ngstarter-ui-components-segmented.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-select.mjs +1862 -1159
- package/fesm2022/ngstarter-ui-components-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-side-panel.mjs +313 -118
- package/fesm2022/ngstarter-ui-components-side-panel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sidebar.mjs +1239 -470
- package/fesm2022/ngstarter-ui-components-sidebar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sidenav.mjs +664 -354
- package/fesm2022/ngstarter-ui-components-sidenav.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs +1092 -643
- package/fesm2022/ngstarter-ui-components-signature-pad.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-skeleton.mjs +153 -43
- package/fesm2022/ngstarter-ui-components-skeleton.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-slide-toggle.mjs +425 -108
- package/fesm2022/ngstarter-ui-components-slide-toggle.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-slider.mjs +645 -487
- package/fesm2022/ngstarter-ui-components-slider.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-snack-bar.mjs +372 -354
- package/fesm2022/ngstarter-ui-components-snack-bar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-sort.mjs +378 -147
- package/fesm2022/ngstarter-ui-components-sort.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-spinner.mjs +242 -76
- package/fesm2022/ngstarter-ui-components-spinner.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-splash-screen.mjs +142 -91
- package/fesm2022/ngstarter-ui-components-splash-screen.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-split.mjs +1067 -929
- package/fesm2022/ngstarter-ui-components-split.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-step-tracker.mjs +617 -331
- package/fesm2022/ngstarter-ui-components-step-tracker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-stepper.mjs +357 -126
- package/fesm2022/ngstarter-ui-components-stepper.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-suggestions.mjs +259 -72
- package/fesm2022/ngstarter-ui-components-suggestions.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tab-panel.mjs +674 -267
- package/fesm2022/ngstarter-ui-components-tab-panel.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-table.mjs +1144 -662
- package/fesm2022/ngstarter-ui-components-table.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tabs.mjs +1236 -615
- package/fesm2022/ngstarter-ui-components-tabs.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs +414 -216
- package/fesm2022/ngstarter-ui-components-thumbnail-maker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tiles.mjs +939 -647
- package/fesm2022/ngstarter-ui-components-tiles.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timeline.mjs +418 -122
- package/fesm2022/ngstarter-ui-components-timeline.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timepicker.mjs +870 -508
- package/fesm2022/ngstarter-ui-components-timepicker.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-timezone-select.mjs +651 -371
- package/fesm2022/ngstarter-ui-components-timezone-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-toolbar.mjs +727 -320
- package/fesm2022/ngstarter-ui-components-toolbar.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tooltip.mjs +601 -521
- package/fesm2022/ngstarter-ui-components-tooltip.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tree-select.mjs +1197 -434
- package/fesm2022/ngstarter-ui-components-tree-select.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-tree.mjs +1821 -1262
- package/fesm2022/ngstarter-ui-components-tree.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-upload.mjs +1059 -345
- package/fesm2022/ngstarter-ui-components-upload.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-video-player.mjs +763 -533
- package/fesm2022/ngstarter-ui-components-video-player.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-video-viewer.mjs +630 -229
- package/fesm2022/ngstarter-ui-components-video-viewer.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-visual-builder.mjs +40 -17
- package/fesm2022/ngstarter-ui-components-visual-builder.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components-whiteboard.mjs +3039 -1803
- package/fesm2022/ngstarter-ui-components-whiteboard.mjs.map +1 -1
- package/fesm2022/ngstarter-ui-components.mjs +3 -5
- package/fesm2022/ngstarter-ui-components.mjs.map +1 -1
- package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs +264 -0
- package/fesm2022/paragraph-block.component-Csk8Gu3x.mjs.map +1 -0
- package/fesm2022/plain-text-settings-BnxCxLhA.mjs +354 -0
- package/fesm2022/plain-text-settings-BnxCxLhA.mjs.map +1 -0
- package/fesm2022/quote-block.component-tRmrU97F.mjs +309 -0
- package/fesm2022/quote-block.component-tRmrU97F.mjs.map +1 -0
- package/fesm2022/table-block.component-BuzRRggv.mjs +1859 -0
- package/fesm2022/table-block.component-BuzRRggv.mjs.map +1 -0
- package/fesm2022/toggle-block-C5Jo2YDf.mjs +150 -0
- package/fesm2022/toggle-block-C5Jo2YDf.mjs.map +1 -0
- package/fesm2022/upload-status-tZ0x0BUB.mjs +107 -0
- package/fesm2022/upload-status-tZ0x0BUB.mjs.map +1 -0
- package/fesm2022/video-block.component-CpAXibm6.mjs +312 -0
- package/fesm2022/video-block.component-CpAXibm6.mjs.map +1 -0
- package/package.json +11 -10
- package/styles/_tokens.scss +1 -0
- package/types/ngstarter-ui-components-action-required.d.ts +34 -14
- package/types/ngstarter-ui-components-alert.d.ts +53 -44
- package/types/ngstarter-ui-components-announcement.d.ts +74 -53
- package/types/ngstarter-ui-components-autocomplete.d.ts +141 -84
- package/types/ngstarter-ui-components-avatar.d.ts +113 -66
- package/types/ngstarter-ui-components-badge.d.ts +73 -37
- package/types/ngstarter-ui-components-block-loader.d.ts +32 -20
- package/types/ngstarter-ui-components-bottom-sheet.d.ts +125 -132
- package/types/ngstarter-ui-components-breadcrumbs.d.ts +93 -88
- package/types/ngstarter-ui-components-button-toggle.d.ts +124 -54
- package/types/ngstarter-ui-components-button.d.ts +69 -27
- package/types/ngstarter-ui-components-calendar.d.ts +123 -71
- package/types/ngstarter-ui-components-card-overlay.d.ts +31 -19
- package/types/ngstarter-ui-components-card.d.ts +75 -71
- package/types/ngstarter-ui-components-carousel.d.ts +115 -69
- package/types/ngstarter-ui-components-checkbox.d.ts +183 -86
- package/types/ngstarter-ui-components-chips.d.ts +288 -195
- package/types/ngstarter-ui-components-code-highlighter.d.ts +71 -28
- package/types/ngstarter-ui-components-color-picker.d.ts +140 -89
- package/types/ngstarter-ui-components-color-scheme.d.ts +43 -52
- package/types/ngstarter-ui-components-color-switcher.d.ts +46 -26
- package/types/ngstarter-ui-components-command-bar.d.ts +40 -26
- package/types/ngstarter-ui-components-comment-editor.d.ts +311 -235
- package/types/ngstarter-ui-components-comparison-slider.d.ts +41 -40
- package/types/ngstarter-ui-components-confirm.d.ts +24 -29
- package/types/ngstarter-ui-components-content-editor.d.ts +1482 -998
- package/types/ngstarter-ui-components-cookie-popup.d.ts +43 -38
- package/types/ngstarter-ui-components-core.d.ts +513 -467
- package/types/ngstarter-ui-components-country-select.d.ts +170 -97
- package/types/ngstarter-ui-components-crop.d.ts +67 -52
- package/types/ngstarter-ui-components-currency-select.d.ts +127 -90
- package/types/ngstarter-ui-components-data-view.d.ts +811 -567
- package/types/ngstarter-ui-components-date-format-select.d.ts +90 -58
- package/types/ngstarter-ui-components-datepicker.d.ts +589 -373
- package/types/ngstarter-ui-components-dialog.d.ts +138 -116
- package/types/ngstarter-ui-components-digit-roller.d.ts +228 -131
- package/types/ngstarter-ui-components-divider.d.ts +29 -17
- package/types/ngstarter-ui-components-drawer.d.ts +39 -30
- package/types/ngstarter-ui-components-emoji-picker.d.ts +69 -47
- package/types/ngstarter-ui-components-empty-state.d.ts +20 -28
- package/types/ngstarter-ui-components-events.d.ts +73 -57
- package/types/ngstarter-ui-components-expand.d.ts +55 -25
- package/types/ngstarter-ui-components-expansion.d.ts +93 -64
- package/types/ngstarter-ui-components-file-type.d.ts +53 -27
- package/types/ngstarter-ui-components-filter-builder.d.ts +131 -100
- package/types/ngstarter-ui-components-form-builder.d.ts +1094 -881
- package/types/ngstarter-ui-components-form-field.d.ts +116 -105
- package/types/ngstarter-ui-components-gauge.d.ts +32 -20
- package/types/ngstarter-ui-components-grid.d.ts +66 -50
- package/types/ngstarter-ui-components-guided-tour.d.ts +250 -222
- package/types/ngstarter-ui-components-headless-editor.d.ts +708 -658
- package/types/ngstarter-ui-components-headless-stepper.d.ts +84 -64
- package/types/ngstarter-ui-components-icon.d.ts +39 -38
- package/types/ngstarter-ui-components-image-designer.d.ts +422 -341
- package/types/ngstarter-ui-components-image-placeholder.d.ts +5 -8
- package/types/ngstarter-ui-components-image-resizer.d.ts +40 -33
- package/types/ngstarter-ui-components-image-viewer.d.ts +67 -54
- package/types/ngstarter-ui-components-image-zoom-viewer.d.ts +29 -33
- package/types/ngstarter-ui-components-incidents.d.ts +97 -104
- package/types/ngstarter-ui-components-inline-text-edit.d.ts +54 -39
- package/types/ngstarter-ui-components-input-mask.d.ts +54 -34
- package/types/ngstarter-ui-components-input-validator.d.ts +7 -11
- package/types/ngstarter-ui-components-input.d.ts +82 -54
- package/types/ngstarter-ui-components-kanban-board.d.ts +76 -63
- package/types/ngstarter-ui-components-kbd.d.ts +8 -12
- package/types/ngstarter-ui-components-layout.d.ts +131 -87
- package/types/ngstarter-ui-components-list.d.ts +123 -88
- package/types/ngstarter-ui-components-logo.d.ts +21 -21
- package/types/ngstarter-ui-components-marquee.d.ts +41 -34
- package/types/ngstarter-ui-components-menu.d.ts +329 -221
- package/types/ngstarter-ui-components-micro-chart.d.ts +385 -186
- package/types/ngstarter-ui-components-navigation.d.ts +186 -125
- package/types/ngstarter-ui-components-notifications.d.ts +104 -89
- package/types/ngstarter-ui-components-number-input.d.ts +138 -96
- package/types/ngstarter-ui-components-option.d.ts +102 -68
- package/types/ngstarter-ui-components-overlay.d.ts +7 -12
- package/types/ngstarter-ui-components-page-loading-bar.d.ts +23 -20
- package/types/ngstarter-ui-components-paginator.d.ts +171 -129
- package/types/ngstarter-ui-components-password-strength.d.ts +217 -102
- package/types/ngstarter-ui-components-pdf-builder.d.ts +717 -649
- package/types/ngstarter-ui-components-pdf-signer.d.ts +202 -142
- package/types/ngstarter-ui-components-pdf-viewer.d.ts +544 -385
- package/types/ngstarter-ui-components-phone-input.d.ts +175 -115
- package/types/ngstarter-ui-components-pin-input.d.ts +83 -45
- package/types/ngstarter-ui-components-popover.d.ts +128 -89
- package/types/ngstarter-ui-components-progress-bar.d.ts +49 -30
- package/types/ngstarter-ui-components-radio-card.d.ts +50 -34
- package/types/ngstarter-ui-components-radio.d.ts +100 -47
- package/types/ngstarter-ui-components-rail-nav.d.ts +36 -29
- package/types/ngstarter-ui-components-resizable-container.d.ts +30 -25
- package/types/ngstarter-ui-components-screen-loader.d.ts +38 -32
- package/types/ngstarter-ui-components-scroll-spy.d.ts +56 -60
- package/types/ngstarter-ui-components-scrollbar-area.d.ts +116 -86
- package/types/ngstarter-ui-components-segmented.d.ts +93 -61
- package/types/ngstarter-ui-components-select.d.ts +366 -266
- package/types/ngstarter-ui-components-side-panel.d.ts +59 -40
- package/types/ngstarter-ui-components-sidebar.d.ts +208 -154
- package/types/ngstarter-ui-components-sidenav.d.ts +136 -78
- package/types/ngstarter-ui-components-signature-pad.d.ts +165 -92
- package/types/ngstarter-ui-components-skeleton.d.ts +18 -17
- package/types/ngstarter-ui-components-slide-toggle.d.ts +113 -44
- package/types/ngstarter-ui-components-slider.d.ts +123 -82
- package/types/ngstarter-ui-components-snack-bar.d.ts +126 -134
- package/types/ngstarter-ui-components-sort.d.ts +99 -63
- package/types/ngstarter-ui-components-spinner.d.ts +49 -27
- package/types/ngstarter-ui-components-splash-screen.d.ts +34 -29
- package/types/ngstarter-ui-components-split.d.ts +276 -195
- package/types/ngstarter-ui-components-step-tracker.d.ts +102 -83
- package/types/ngstarter-ui-components-stepper.d.ts +57 -43
- package/types/ngstarter-ui-components-suggestions.d.ts +41 -28
- package/types/ngstarter-ui-components-tab-panel.d.ts +110 -83
- package/types/ngstarter-ui-components-table.d.ts +256 -228
- package/types/ngstarter-ui-components-tabs.d.ts +231 -138
- package/types/ngstarter-ui-components-thumbnail-maker.d.ts +40 -34
- package/types/ngstarter-ui-components-tiles.d.ts +166 -104
- package/types/ngstarter-ui-components-timeline.d.ts +45 -57
- package/types/ngstarter-ui-components-timepicker.d.ts +166 -111
- package/types/ngstarter-ui-components-timezone-select.d.ts +110 -70
- package/types/ngstarter-ui-components-toolbar.d.ts +89 -72
- package/types/ngstarter-ui-components-tooltip.d.ts +89 -52
- package/types/ngstarter-ui-components-tree-select.d.ts +182 -105
- package/types/ngstarter-ui-components-tree.d.ts +355 -229
- package/types/ngstarter-ui-components-upload.d.ts +216 -131
- package/types/ngstarter-ui-components-video-player.d.ts +130 -67
- package/types/ngstarter-ui-components-video-viewer.d.ts +140 -91
- package/types/ngstarter-ui-components-visual-builder.d.ts +5 -8
- package/types/ngstarter-ui-components-whiteboard.d.ts +412 -339
- package/types/ngstarter-ui-components.d.ts +2 -2
- package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs +0 -35
- package/fesm2022/ngstarter-ui-components-content-editor-attachment-block-BgKuFsDy.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs +0 -26
- package/fesm2022/ngstarter-ui-components-content-editor-callout-block-CGTJefVK.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs +0 -220
- package/fesm2022/ngstarter-ui-components-content-editor-code-block.component-B441NasU.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs +0 -99
- package/fesm2022/ngstarter-ui-components-content-editor-cursor-controller-4Ak8VqGX.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs +0 -40
- package/fesm2022/ngstarter-ui-components-content-editor-divider-block.component-D1nXMRXD.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs +0 -375
- package/fesm2022/ngstarter-ui-components-content-editor-embed-block-Bo3irEeG.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs +0 -80
- package/fesm2022/ngstarter-ui-components-content-editor-gallery-block-Cbh0nblW.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs +0 -65
- package/fesm2022/ngstarter-ui-components-content-editor-grid-block-BVQTRzaX.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs +0 -137
- package/fesm2022/ngstarter-ui-components-content-editor-heading-block.component-CnbRqEWF.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs +0 -113
- package/fesm2022/ngstarter-ui-components-content-editor-image-block.component-Cv9-02mR.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs +0 -188
- package/fesm2022/ngstarter-ui-components-content-editor-list-block.component-yvSNKY0B.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs +0 -117
- package/fesm2022/ngstarter-ui-components-content-editor-nested-blocks-Clz9SzCR.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs +0 -4464
- package/fesm2022/ngstarter-ui-components-content-editor-ngstarter-ui-components-content-editor-CZn1p9ek.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs +0 -132
- package/fesm2022/ngstarter-ui-components-content-editor-paragraph-block.component-CxDRklAS.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs +0 -171
- package/fesm2022/ngstarter-ui-components-content-editor-quote-block.component-BNgtiV7U.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs +0 -1653
- package/fesm2022/ngstarter-ui-components-content-editor-table-block.component-D05mE7nQ.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs +0 -20
- package/fesm2022/ngstarter-ui-components-content-editor-toggle-block-Ch1kWIaX.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs +0 -19
- package/fesm2022/ngstarter-ui-components-content-editor-upload-status-QnKI_Rfz.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.mjs +0 -134
- package/fesm2022/ngstarter-ui-components-content-editor-video-block.component-laP7DTyq.mjs.map +0 -1
- package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs +0 -159
- package/fesm2022/ngstarter-ui-components-form-builder-plain-text-settings-GNXKGonc.mjs.map +0 -1
|
@@ -1,773 +1,2084 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, DestroyRef, ElementRef, Injectable, Pipe, booleanAttribute, computed, effect, inject, input, model, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
|
+
import { Icon } from "@ngstarter-ui/components/icon";
|
|
4
|
+
import { Button } from "@ngstarter-ui/components/button";
|
|
5
|
+
import { ErrorStateMatcher, Ripple } from "@ngstarter-ui/components/core";
|
|
6
|
+
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
|
|
7
|
+
import { Subject } from "rxjs";
|
|
8
|
+
import { FormFieldControl } from "@ngstarter-ui/components/form-field";
|
|
9
|
+
import * as i1 from "@angular/forms";
|
|
10
|
+
import { FormsModule, NG_VALIDATORS, NgControl, NgForm } from "@angular/forms";
|
|
11
|
+
import { FocusMonitor } from "@angular/cdk/a11y";
|
|
12
|
+
import { Input as Input$1 } from "@ngstarter-ui/components/input";
|
|
13
|
+
import { Menu, MenuDivider, MenuHeader, MenuItem, MenuTrigger } from "@ngstarter-ui/components/menu";
|
|
14
|
+
import { AsYouType, parsePhoneNumber, parsePhoneNumberFromString } from "libphonenumber-js";
|
|
15
|
+
var CountryCode = class CountryCode {
|
|
16
|
+
allCountries = [
|
|
17
|
+
{
|
|
18
|
+
name: "Afghanistan",
|
|
19
|
+
shortCode: "af",
|
|
20
|
+
phoneCode: "+93"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: "Albania",
|
|
24
|
+
shortCode: "al",
|
|
25
|
+
phoneCode: "+355"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "Algeria",
|
|
29
|
+
shortCode: "dz",
|
|
30
|
+
phoneCode: "+213"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: "American Samoa",
|
|
34
|
+
shortCode: "as",
|
|
35
|
+
phoneCode: "+1-684"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "Andorra",
|
|
39
|
+
shortCode: "ad",
|
|
40
|
+
phoneCode: "+376"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "Angola",
|
|
44
|
+
shortCode: "ao",
|
|
45
|
+
phoneCode: "+244"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "Anguilla",
|
|
49
|
+
shortCode: "ai",
|
|
50
|
+
phoneCode: "+1-264"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "Antigua and Barbuda",
|
|
54
|
+
shortCode: "ag",
|
|
55
|
+
phoneCode: "+1-268"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "Argentina",
|
|
59
|
+
shortCode: "ar",
|
|
60
|
+
phoneCode: "+54"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: "Armenia",
|
|
64
|
+
shortCode: "am",
|
|
65
|
+
phoneCode: "+374"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "Aruba",
|
|
69
|
+
shortCode: "aw",
|
|
70
|
+
phoneCode: "+297"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "Australia",
|
|
74
|
+
shortCode: "au",
|
|
75
|
+
phoneCode: "+61"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "Austria",
|
|
79
|
+
shortCode: "at",
|
|
80
|
+
phoneCode: "+43"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "Azerbaijan",
|
|
84
|
+
shortCode: "az",
|
|
85
|
+
phoneCode: "+994"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: "Bahamas",
|
|
89
|
+
shortCode: "bs",
|
|
90
|
+
phoneCode: "+1-242"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "Bahrain",
|
|
94
|
+
shortCode: "bh",
|
|
95
|
+
phoneCode: "+973"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "Bangladesh",
|
|
99
|
+
shortCode: "bd",
|
|
100
|
+
phoneCode: "+880"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: "Barbados",
|
|
104
|
+
shortCode: "bb",
|
|
105
|
+
phoneCode: "+1-246"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: "Belarus",
|
|
109
|
+
shortCode: "by",
|
|
110
|
+
phoneCode: "+375"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
name: "Belgium",
|
|
114
|
+
shortCode: "be",
|
|
115
|
+
phoneCode: "+32"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: "Belize",
|
|
119
|
+
shortCode: "bz",
|
|
120
|
+
phoneCode: "+501"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "Benin",
|
|
124
|
+
shortCode: "bj",
|
|
125
|
+
phoneCode: "+229"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: "Bermuda",
|
|
129
|
+
shortCode: "bm",
|
|
130
|
+
phoneCode: "+1-441"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: "Bhutan",
|
|
134
|
+
shortCode: "bt",
|
|
135
|
+
phoneCode: "+975"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
name: "Bolivia",
|
|
139
|
+
shortCode: "bo",
|
|
140
|
+
phoneCode: "+591"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
name: "Bonaire, Sint Eustatius and Saba",
|
|
144
|
+
shortCode: "bq",
|
|
145
|
+
phoneCode: "+599"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "Bosnia and Herzegovina",
|
|
149
|
+
shortCode: "ba",
|
|
150
|
+
phoneCode: "+387"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
name: "Botswana",
|
|
154
|
+
shortCode: "bw",
|
|
155
|
+
phoneCode: "+267"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: "Bouvet Island",
|
|
159
|
+
shortCode: "bv",
|
|
160
|
+
phoneCode: ""
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: "Brazil",
|
|
164
|
+
shortCode: "br",
|
|
165
|
+
phoneCode: "+55"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: "British Indian Ocean Territory",
|
|
169
|
+
shortCode: "io",
|
|
170
|
+
phoneCode: "+246"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: "Brunei Darussalam",
|
|
174
|
+
shortCode: "bn",
|
|
175
|
+
phoneCode: "+673"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: "Bulgaria",
|
|
179
|
+
shortCode: "bg",
|
|
180
|
+
phoneCode: "+359"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: "Burkina Faso",
|
|
184
|
+
shortCode: "bf",
|
|
185
|
+
phoneCode: "+226"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: "Burundi",
|
|
189
|
+
shortCode: "bi",
|
|
190
|
+
phoneCode: "+257"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: "Cabo Verde",
|
|
194
|
+
shortCode: "cv",
|
|
195
|
+
phoneCode: "+238"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: "Cambodia",
|
|
199
|
+
shortCode: "kh",
|
|
200
|
+
phoneCode: "+855"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: "Cameroon",
|
|
204
|
+
shortCode: "cm",
|
|
205
|
+
phoneCode: "+237"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: "Canada",
|
|
209
|
+
shortCode: "ca",
|
|
210
|
+
phoneCode: "+1"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: "Cayman Islands",
|
|
214
|
+
shortCode: "ky",
|
|
215
|
+
phoneCode: "+1-345"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: "Central African Republic",
|
|
219
|
+
shortCode: "cf",
|
|
220
|
+
phoneCode: "+236"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: "Chad",
|
|
224
|
+
shortCode: "td",
|
|
225
|
+
phoneCode: "+235"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: "Chile",
|
|
229
|
+
shortCode: "cl",
|
|
230
|
+
phoneCode: "+56"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
name: "China",
|
|
234
|
+
shortCode: "cn",
|
|
235
|
+
phoneCode: "+86"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
name: "Christmas Island",
|
|
239
|
+
shortCode: "cx",
|
|
240
|
+
phoneCode: "+61"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: "Cocos (Keeling) Islands",
|
|
244
|
+
shortCode: "cc",
|
|
245
|
+
phoneCode: "+61"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
name: "Colombia",
|
|
249
|
+
shortCode: "co",
|
|
250
|
+
phoneCode: "+57"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: "Comoros",
|
|
254
|
+
shortCode: "km",
|
|
255
|
+
phoneCode: "+269"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
name: "Congo (DRC)",
|
|
259
|
+
shortCode: "cd",
|
|
260
|
+
phoneCode: "+243"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
name: "Congo (Republic)",
|
|
264
|
+
shortCode: "cg",
|
|
265
|
+
phoneCode: "+242"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
name: "Cook Islands",
|
|
269
|
+
shortCode: "ck",
|
|
270
|
+
phoneCode: "+682"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
name: "Costa Rica",
|
|
274
|
+
shortCode: "cr",
|
|
275
|
+
phoneCode: "+506"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: "Côte d'Ivoire",
|
|
279
|
+
shortCode: "ci",
|
|
280
|
+
phoneCode: "+225"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: "Croatia",
|
|
284
|
+
shortCode: "hr",
|
|
285
|
+
phoneCode: "+385"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
name: "Cuba",
|
|
289
|
+
shortCode: "cu",
|
|
290
|
+
phoneCode: "+53"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: "Curaçao",
|
|
294
|
+
shortCode: "cw",
|
|
295
|
+
phoneCode: "+599"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
name: "Cyprus",
|
|
299
|
+
shortCode: "cy",
|
|
300
|
+
phoneCode: "+357"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
name: "Czechia",
|
|
304
|
+
shortCode: "cz",
|
|
305
|
+
phoneCode: "+420"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: "Denmark",
|
|
309
|
+
shortCode: "dk",
|
|
310
|
+
phoneCode: "+45"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: "Djibouti",
|
|
314
|
+
shortCode: "dj",
|
|
315
|
+
phoneCode: "+253"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
name: "Dominica",
|
|
319
|
+
shortCode: "dm",
|
|
320
|
+
phoneCode: "+1-767"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
name: "Dominican Republic",
|
|
324
|
+
shortCode: "do",
|
|
325
|
+
phoneCode: "+1-809"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
name: "Ecuador",
|
|
329
|
+
shortCode: "ec",
|
|
330
|
+
phoneCode: "+593"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
name: "Egypt",
|
|
334
|
+
shortCode: "eg",
|
|
335
|
+
phoneCode: "+20"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
name: "El Salvador",
|
|
339
|
+
shortCode: "sv",
|
|
340
|
+
phoneCode: "+503"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
name: "Equatorial Guinea",
|
|
344
|
+
shortCode: "gq",
|
|
345
|
+
phoneCode: "+240"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
name: "Eritrea",
|
|
349
|
+
shortCode: "er",
|
|
350
|
+
phoneCode: "+291"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
name: "Estonia",
|
|
354
|
+
shortCode: "ee",
|
|
355
|
+
phoneCode: "+372"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
name: "Eswatini",
|
|
359
|
+
shortCode: "sz",
|
|
360
|
+
phoneCode: "+268"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
name: "Ethiopia",
|
|
364
|
+
shortCode: "et",
|
|
365
|
+
phoneCode: "+251"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
name: "Falkland Islands (Malvinas)",
|
|
369
|
+
shortCode: "fk",
|
|
370
|
+
phoneCode: "+500"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
name: "Faroe Islands",
|
|
374
|
+
shortCode: "fo",
|
|
375
|
+
phoneCode: "+298"
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
name: "Fiji",
|
|
379
|
+
shortCode: "fj",
|
|
380
|
+
phoneCode: "+679"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
name: "Finland",
|
|
384
|
+
shortCode: "fi",
|
|
385
|
+
phoneCode: "+358"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
name: "France",
|
|
389
|
+
shortCode: "fr",
|
|
390
|
+
phoneCode: "+33"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
name: "French Guiana",
|
|
394
|
+
shortCode: "gf",
|
|
395
|
+
phoneCode: "+594"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
name: "French Polynesia",
|
|
399
|
+
shortCode: "pf",
|
|
400
|
+
phoneCode: "+689"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
name: "Gabon",
|
|
404
|
+
shortCode: "ga",
|
|
405
|
+
phoneCode: "+241"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
name: "Gambia",
|
|
409
|
+
shortCode: "gm",
|
|
410
|
+
phoneCode: "+220"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
name: "Georgia",
|
|
414
|
+
shortCode: "ge",
|
|
415
|
+
phoneCode: "+995"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
name: "Germany",
|
|
419
|
+
shortCode: "de",
|
|
420
|
+
phoneCode: "+49"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
name: "Ghana",
|
|
424
|
+
shortCode: "gh",
|
|
425
|
+
phoneCode: "+233"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
name: "Gibraltar",
|
|
429
|
+
shortCode: "gi",
|
|
430
|
+
phoneCode: "+350"
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
name: "Greece",
|
|
434
|
+
shortCode: "gr",
|
|
435
|
+
phoneCode: "+30"
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
name: "Greenland",
|
|
439
|
+
shortCode: "gl",
|
|
440
|
+
phoneCode: "+299"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
name: "Grenada",
|
|
444
|
+
shortCode: "gd",
|
|
445
|
+
phoneCode: "+1-473"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
name: "Guadeloupe",
|
|
449
|
+
shortCode: "gp",
|
|
450
|
+
phoneCode: "+590"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
name: "Guam",
|
|
454
|
+
shortCode: "gu",
|
|
455
|
+
phoneCode: "+1-671"
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
name: "Guatemala",
|
|
459
|
+
shortCode: "gt",
|
|
460
|
+
phoneCode: "+502"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
name: "Guernsey",
|
|
464
|
+
shortCode: "gg",
|
|
465
|
+
phoneCode: "+44-1481"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
name: "Guinea",
|
|
469
|
+
shortCode: "gn",
|
|
470
|
+
phoneCode: "+224"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
name: "Guinea-Bissau",
|
|
474
|
+
shortCode: "gw",
|
|
475
|
+
phoneCode: "+245"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
name: "Guyana",
|
|
479
|
+
shortCode: "gy",
|
|
480
|
+
phoneCode: "+592"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
name: "Haiti",
|
|
484
|
+
shortCode: "ht",
|
|
485
|
+
phoneCode: "+509"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
name: "Honduras",
|
|
489
|
+
shortCode: "hn",
|
|
490
|
+
phoneCode: "+504"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
name: "Hong Kong",
|
|
494
|
+
shortCode: "hk",
|
|
495
|
+
phoneCode: "+852"
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
name: "Hungary",
|
|
499
|
+
shortCode: "hu",
|
|
500
|
+
phoneCode: "+36"
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
name: "Iceland",
|
|
504
|
+
shortCode: "is",
|
|
505
|
+
phoneCode: "+354"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
name: "India",
|
|
509
|
+
shortCode: "in",
|
|
510
|
+
phoneCode: "+91"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
name: "Indonesia",
|
|
514
|
+
shortCode: "id",
|
|
515
|
+
phoneCode: "+62"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
name: "Iran",
|
|
519
|
+
shortCode: "ir",
|
|
520
|
+
phoneCode: "+98"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
name: "Iraq",
|
|
524
|
+
shortCode: "iq",
|
|
525
|
+
phoneCode: "+964"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
name: "Ireland",
|
|
529
|
+
shortCode: "ie",
|
|
530
|
+
phoneCode: "+353"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
name: "Isle of Man",
|
|
534
|
+
shortCode: "im",
|
|
535
|
+
phoneCode: "+44-1624"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
name: "Israel",
|
|
539
|
+
shortCode: "il",
|
|
540
|
+
phoneCode: "+972"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
name: "Italy",
|
|
544
|
+
shortCode: "it",
|
|
545
|
+
phoneCode: "+39"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
name: "Jamaica",
|
|
549
|
+
shortCode: "jm",
|
|
550
|
+
phoneCode: "+1-876"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
name: "Japan",
|
|
554
|
+
shortCode: "jp",
|
|
555
|
+
phoneCode: "+81"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
name: "Jersey",
|
|
559
|
+
shortCode: "je",
|
|
560
|
+
phoneCode: "+44-1534"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
name: "Jordan",
|
|
564
|
+
shortCode: "jo",
|
|
565
|
+
phoneCode: "+962"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
name: "Kazakhstan",
|
|
569
|
+
shortCode: "kz",
|
|
570
|
+
phoneCode: "+7"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
name: "Kenya",
|
|
574
|
+
shortCode: "ke",
|
|
575
|
+
phoneCode: "+254"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
name: "Kiribati",
|
|
579
|
+
shortCode: "ki",
|
|
580
|
+
phoneCode: "+686"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
name: "Kuwait",
|
|
584
|
+
shortCode: "kw",
|
|
585
|
+
phoneCode: "+965"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
name: "Kyrgyzstan",
|
|
589
|
+
shortCode: "kg",
|
|
590
|
+
phoneCode: "+996"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
name: "Laos",
|
|
594
|
+
shortCode: "la",
|
|
595
|
+
phoneCode: "+856"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
name: "Latvia",
|
|
599
|
+
shortCode: "lv",
|
|
600
|
+
phoneCode: "+371"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
name: "Lebanon",
|
|
604
|
+
shortCode: "lb",
|
|
605
|
+
phoneCode: "+961"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
name: "Lesotho",
|
|
609
|
+
shortCode: "ls",
|
|
610
|
+
phoneCode: "+266"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
name: "Liberia",
|
|
614
|
+
shortCode: "lr",
|
|
615
|
+
phoneCode: "+231"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
name: "Libya",
|
|
619
|
+
shortCode: "ly",
|
|
620
|
+
phoneCode: "+218"
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
name: "Liechtenstein",
|
|
624
|
+
shortCode: "li",
|
|
625
|
+
phoneCode: "+423"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
name: "Lithuania",
|
|
629
|
+
shortCode: "lt",
|
|
630
|
+
phoneCode: "+370"
|
|
631
|
+
},
|
|
632
|
+
{
|
|
633
|
+
name: "Luxembourg",
|
|
634
|
+
shortCode: "lu",
|
|
635
|
+
phoneCode: "+352"
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
name: "Macao",
|
|
639
|
+
shortCode: "mo",
|
|
640
|
+
phoneCode: "+853"
|
|
641
|
+
},
|
|
642
|
+
{
|
|
643
|
+
name: "Madagascar",
|
|
644
|
+
shortCode: "mg",
|
|
645
|
+
phoneCode: "+261"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
name: "Malawi",
|
|
649
|
+
shortCode: "mw",
|
|
650
|
+
phoneCode: "+265"
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
name: "Malaysia",
|
|
654
|
+
shortCode: "my",
|
|
655
|
+
phoneCode: "+60"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
name: "Maldives",
|
|
659
|
+
shortCode: "mv",
|
|
660
|
+
phoneCode: "+960"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
name: "Mali",
|
|
664
|
+
shortCode: "ml",
|
|
665
|
+
phoneCode: "+223"
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
name: "Malta",
|
|
669
|
+
shortCode: "mt",
|
|
670
|
+
phoneCode: "+356"
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
name: "Marshall Islands",
|
|
674
|
+
shortCode: "mh",
|
|
675
|
+
phoneCode: "+692"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
name: "Martinique",
|
|
679
|
+
shortCode: "mq",
|
|
680
|
+
phoneCode: "+596"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
name: "Mauritania",
|
|
684
|
+
shortCode: "mr",
|
|
685
|
+
phoneCode: "+222"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
name: "Mauritius",
|
|
689
|
+
shortCode: "mu",
|
|
690
|
+
phoneCode: "+230"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
name: "Mayotte",
|
|
694
|
+
shortCode: "yt",
|
|
695
|
+
phoneCode: "+262"
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
name: "Mexico",
|
|
699
|
+
shortCode: "mx",
|
|
700
|
+
phoneCode: "+52"
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
name: "Micronesia",
|
|
704
|
+
shortCode: "fm",
|
|
705
|
+
phoneCode: "+691"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
name: "Moldova",
|
|
709
|
+
shortCode: "md",
|
|
710
|
+
phoneCode: "+373"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
name: "Monaco",
|
|
714
|
+
shortCode: "mc",
|
|
715
|
+
phoneCode: "+377"
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
name: "Mongolia",
|
|
719
|
+
shortCode: "mn",
|
|
720
|
+
phoneCode: "+976"
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
name: "Montenegro",
|
|
724
|
+
shortCode: "me",
|
|
725
|
+
phoneCode: "+382"
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
name: "Montserrat",
|
|
729
|
+
shortCode: "ms",
|
|
730
|
+
phoneCode: "+1-664"
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
name: "Morocco",
|
|
734
|
+
shortCode: "ma",
|
|
735
|
+
phoneCode: "+212"
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
name: "Mozambique",
|
|
739
|
+
shortCode: "mz",
|
|
740
|
+
phoneCode: "+258"
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
name: "Myanmar",
|
|
744
|
+
shortCode: "mm",
|
|
745
|
+
phoneCode: "+95"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
name: "Namibia",
|
|
749
|
+
shortCode: "na",
|
|
750
|
+
phoneCode: "+264"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
name: "Nauru",
|
|
754
|
+
shortCode: "nr",
|
|
755
|
+
phoneCode: "+674"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
name: "Nepal",
|
|
759
|
+
shortCode: "np",
|
|
760
|
+
phoneCode: "+977"
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
name: "Netherlands",
|
|
764
|
+
shortCode: "nl",
|
|
765
|
+
phoneCode: "+31"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
name: "New Caledonia",
|
|
769
|
+
shortCode: "nc",
|
|
770
|
+
phoneCode: "+687"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
name: "New Zealand",
|
|
774
|
+
shortCode: "nz",
|
|
775
|
+
phoneCode: "+64"
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
name: "Nicaragua",
|
|
779
|
+
shortCode: "ni",
|
|
780
|
+
phoneCode: "+505"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
name: "Niger",
|
|
784
|
+
shortCode: "ne",
|
|
785
|
+
phoneCode: "+227"
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
name: "Nigeria",
|
|
789
|
+
shortCode: "ng",
|
|
790
|
+
phoneCode: "+234"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
name: "Niue",
|
|
794
|
+
shortCode: "nu",
|
|
795
|
+
phoneCode: "+683"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
name: "Norfolk Island",
|
|
799
|
+
shortCode: "nf",
|
|
800
|
+
phoneCode: "+672"
|
|
801
|
+
},
|
|
802
|
+
{
|
|
803
|
+
name: "North Korea",
|
|
804
|
+
shortCode: "kp",
|
|
805
|
+
phoneCode: "+850"
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
name: "North Macedonia",
|
|
809
|
+
shortCode: "mk",
|
|
810
|
+
phoneCode: "+389"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
name: "Northern Mariana Islands",
|
|
814
|
+
shortCode: "mp",
|
|
815
|
+
phoneCode: "+1-670"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
name: "Norway",
|
|
819
|
+
shortCode: "no",
|
|
820
|
+
phoneCode: "+47"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
name: "Oman",
|
|
824
|
+
shortCode: "om",
|
|
825
|
+
phoneCode: "+968"
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
name: "Pakistan",
|
|
829
|
+
shortCode: "pk",
|
|
830
|
+
phoneCode: "+92"
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
name: "Palau",
|
|
834
|
+
shortCode: "pw",
|
|
835
|
+
phoneCode: "+680"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
name: "Palestine, State of",
|
|
839
|
+
shortCode: "ps",
|
|
840
|
+
phoneCode: "+970"
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
name: "Panama",
|
|
844
|
+
shortCode: "pa",
|
|
845
|
+
phoneCode: "+507"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
name: "Papua New Guinea",
|
|
849
|
+
shortCode: "pg",
|
|
850
|
+
phoneCode: "+675"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
name: "Paraguay",
|
|
854
|
+
shortCode: "py",
|
|
855
|
+
phoneCode: "+595"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
name: "Peru",
|
|
859
|
+
shortCode: "pe",
|
|
860
|
+
phoneCode: "+51"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
name: "Philippines",
|
|
864
|
+
shortCode: "ph",
|
|
865
|
+
phoneCode: "+63"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
name: "Pitcairn Islands",
|
|
869
|
+
shortCode: "pn",
|
|
870
|
+
phoneCode: "+64"
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
name: "Poland",
|
|
874
|
+
shortCode: "pl",
|
|
875
|
+
phoneCode: "+48"
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
name: "Portugal",
|
|
879
|
+
shortCode: "pt",
|
|
880
|
+
phoneCode: "+351"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
name: "Puerto Rico",
|
|
884
|
+
shortCode: "pr",
|
|
885
|
+
phoneCode: "+1-787"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
name: "Qatar",
|
|
889
|
+
shortCode: "qa",
|
|
890
|
+
phoneCode: "+974"
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
name: "Réunion",
|
|
894
|
+
shortCode: "re",
|
|
895
|
+
phoneCode: "+262"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
name: "Romania",
|
|
899
|
+
shortCode: "ro",
|
|
900
|
+
phoneCode: "+40"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
name: "Russia",
|
|
904
|
+
shortCode: "ru",
|
|
905
|
+
phoneCode: "+7"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
name: "Rwanda",
|
|
909
|
+
shortCode: "rw",
|
|
910
|
+
phoneCode: "+250"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
name: "Saint Barthélemy",
|
|
914
|
+
shortCode: "bl",
|
|
915
|
+
phoneCode: "+590"
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
name: "Saint Helena, Ascension and Tristan da Cunha",
|
|
919
|
+
shortCode: "sh",
|
|
920
|
+
phoneCode: "+290"
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
name: "Saint Kitts and Nevis",
|
|
924
|
+
shortCode: "kn",
|
|
925
|
+
phoneCode: "+1-869"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
name: "Saint Lucia",
|
|
929
|
+
shortCode: "lc",
|
|
930
|
+
phoneCode: "+1-758"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
name: "Saint Martin (French part)",
|
|
934
|
+
shortCode: "mf",
|
|
935
|
+
phoneCode: "+590"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
name: "Saint Pierre and Miquelon",
|
|
939
|
+
shortCode: "pm",
|
|
940
|
+
phoneCode: "+508"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
name: "Saint Vincent and the Grenadines",
|
|
944
|
+
shortCode: "vc",
|
|
945
|
+
phoneCode: "+1-784"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
name: "Samoa",
|
|
949
|
+
shortCode: "ws",
|
|
950
|
+
phoneCode: "+685"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
name: "San Marino",
|
|
954
|
+
shortCode: "sm",
|
|
955
|
+
phoneCode: "+378"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
name: "Sao Tome and Principe",
|
|
959
|
+
shortCode: "st",
|
|
960
|
+
phoneCode: "+239"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
name: "Saudi Arabia",
|
|
964
|
+
shortCode: "sa",
|
|
965
|
+
phoneCode: "+966"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
name: "Senegal",
|
|
969
|
+
shortCode: "sn",
|
|
970
|
+
phoneCode: "+221"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
name: "Serbia",
|
|
974
|
+
shortCode: "rs",
|
|
975
|
+
phoneCode: "+381"
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
name: "Seychelles",
|
|
979
|
+
shortCode: "sc",
|
|
980
|
+
phoneCode: "+248"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
name: "Sierra Leone",
|
|
984
|
+
shortCode: "sl",
|
|
985
|
+
phoneCode: "+232"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
name: "Singapore",
|
|
989
|
+
shortCode: "sg",
|
|
990
|
+
phoneCode: "+65"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
name: "Sint Maarten (Dutch part)",
|
|
994
|
+
shortCode: "sx",
|
|
995
|
+
phoneCode: "+1-721"
|
|
996
|
+
},
|
|
997
|
+
{
|
|
998
|
+
name: "Slovakia",
|
|
999
|
+
shortCode: "sk",
|
|
1000
|
+
phoneCode: "+421"
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
name: "Slovenia",
|
|
1004
|
+
shortCode: "si",
|
|
1005
|
+
phoneCode: "+386"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
name: "Solomon Islands",
|
|
1009
|
+
shortCode: "sb",
|
|
1010
|
+
phoneCode: "+677"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
name: "Somalia",
|
|
1014
|
+
shortCode: "so",
|
|
1015
|
+
phoneCode: "+252"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
name: "South Africa",
|
|
1019
|
+
shortCode: "za",
|
|
1020
|
+
phoneCode: "+27"
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
name: "South Georgia and the South Sandwich Islands",
|
|
1024
|
+
shortCode: "gs",
|
|
1025
|
+
phoneCode: "+500"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
name: "South Korea",
|
|
1029
|
+
shortCode: "kr",
|
|
1030
|
+
phoneCode: "+82"
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
name: "South Sudan",
|
|
1034
|
+
shortCode: "ss",
|
|
1035
|
+
phoneCode: "+211"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
name: "Spain",
|
|
1039
|
+
shortCode: "es",
|
|
1040
|
+
phoneCode: "+34"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
name: "Sri Lanka",
|
|
1044
|
+
shortCode: "lk",
|
|
1045
|
+
phoneCode: "+94"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
name: "Sudan",
|
|
1049
|
+
shortCode: "sd",
|
|
1050
|
+
phoneCode: "+249"
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
name: "Suriname",
|
|
1054
|
+
shortCode: "sr",
|
|
1055
|
+
phoneCode: "+597"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
name: "Svalbard and Jan Mayen",
|
|
1059
|
+
shortCode: "sj",
|
|
1060
|
+
phoneCode: "+47"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
name: "Sweden",
|
|
1064
|
+
shortCode: "se",
|
|
1065
|
+
phoneCode: "+46"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
name: "Switzerland",
|
|
1069
|
+
shortCode: "ch",
|
|
1070
|
+
phoneCode: "+41"
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
name: "Syria",
|
|
1074
|
+
shortCode: "sy",
|
|
1075
|
+
phoneCode: "+963"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
name: "Taiwan",
|
|
1079
|
+
shortCode: "tw",
|
|
1080
|
+
phoneCode: "+886"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
name: "Tajikistan",
|
|
1084
|
+
shortCode: "tj",
|
|
1085
|
+
phoneCode: "+992"
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
name: "Tanzania",
|
|
1089
|
+
shortCode: "tz",
|
|
1090
|
+
phoneCode: "+255"
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
name: "Thailand",
|
|
1094
|
+
shortCode: "th",
|
|
1095
|
+
phoneCode: "+66"
|
|
1096
|
+
},
|
|
1097
|
+
{
|
|
1098
|
+
name: "Timor-Leste",
|
|
1099
|
+
shortCode: "tl",
|
|
1100
|
+
phoneCode: "+670"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
name: "Togo",
|
|
1104
|
+
shortCode: "tg",
|
|
1105
|
+
phoneCode: "+228"
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
name: "Tokelau",
|
|
1109
|
+
shortCode: "tk",
|
|
1110
|
+
phoneCode: "+690"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
name: "Tonga",
|
|
1114
|
+
shortCode: "to",
|
|
1115
|
+
phoneCode: "+676"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
name: "Trinidad and Tobago",
|
|
1119
|
+
shortCode: "tt",
|
|
1120
|
+
phoneCode: "+1-868"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
name: "Tunisia",
|
|
1124
|
+
shortCode: "tn",
|
|
1125
|
+
phoneCode: "+216"
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
name: "Türkiye",
|
|
1129
|
+
shortCode: "tr",
|
|
1130
|
+
phoneCode: "+90"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
name: "Turkmenistan",
|
|
1134
|
+
shortCode: "tm",
|
|
1135
|
+
phoneCode: "+993"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
name: "Turks and Caicos Islands",
|
|
1139
|
+
shortCode: "tc",
|
|
1140
|
+
phoneCode: "+1-649"
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
name: "Tuvalu",
|
|
1144
|
+
shortCode: "tv",
|
|
1145
|
+
phoneCode: "+688"
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
name: "Uganda",
|
|
1149
|
+
shortCode: "ug",
|
|
1150
|
+
phoneCode: "+256"
|
|
1151
|
+
},
|
|
1152
|
+
{
|
|
1153
|
+
name: "Ukraine",
|
|
1154
|
+
shortCode: "ua",
|
|
1155
|
+
phoneCode: "+380"
|
|
1156
|
+
},
|
|
1157
|
+
{
|
|
1158
|
+
name: "United Arab Emirates",
|
|
1159
|
+
shortCode: "ae",
|
|
1160
|
+
phoneCode: "+971"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
name: "United Kingdom",
|
|
1164
|
+
shortCode: "gb",
|
|
1165
|
+
phoneCode: "+44"
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
name: "United States",
|
|
1169
|
+
shortCode: "us",
|
|
1170
|
+
phoneCode: "+1"
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
name: "Uruguay",
|
|
1174
|
+
shortCode: "uy",
|
|
1175
|
+
phoneCode: "+598"
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
name: "Uzbekistan",
|
|
1179
|
+
shortCode: "uz",
|
|
1180
|
+
phoneCode: "+998"
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
name: "Vanuatu",
|
|
1184
|
+
shortCode: "vu",
|
|
1185
|
+
phoneCode: "+678"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
name: "Vatican City",
|
|
1189
|
+
shortCode: "va",
|
|
1190
|
+
phoneCode: "+379"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
name: "Venezuela",
|
|
1194
|
+
shortCode: "ve",
|
|
1195
|
+
phoneCode: "+58"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
name: "Vietnam",
|
|
1199
|
+
shortCode: "vn",
|
|
1200
|
+
phoneCode: "+84"
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
name: "Virgin Islands (British)",
|
|
1204
|
+
shortCode: "vg",
|
|
1205
|
+
phoneCode: "+1-284"
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
name: "Virgin Islands (U.S.)",
|
|
1209
|
+
shortCode: "vi",
|
|
1210
|
+
phoneCode: "+1-340"
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
name: "Wallis and Futuna",
|
|
1214
|
+
shortCode: "wf",
|
|
1215
|
+
phoneCode: "+681"
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
name: "Western Sahara",
|
|
1219
|
+
shortCode: "eh",
|
|
1220
|
+
phoneCode: "+212"
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
name: "Yemen",
|
|
1224
|
+
shortCode: "ye",
|
|
1225
|
+
phoneCode: "+967"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
name: "Zambia",
|
|
1229
|
+
shortCode: "zm",
|
|
1230
|
+
phoneCode: "+260"
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
name: "Zimbabwe",
|
|
1234
|
+
shortCode: "zw",
|
|
1235
|
+
phoneCode: "+263"
|
|
1236
|
+
}
|
|
1237
|
+
];
|
|
1238
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1239
|
+
minVersion: "12.0.0",
|
|
1240
|
+
version: "22.3.0",
|
|
1241
|
+
ngImport: i0,
|
|
1242
|
+
type: CountryCode,
|
|
1243
|
+
deps: [],
|
|
1244
|
+
target: i0.ɵɵFactoryTarget.Injectable
|
|
1245
|
+
});
|
|
1246
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1247
|
+
minVersion: "12.0.0",
|
|
1248
|
+
version: "22.3.0",
|
|
1249
|
+
ngImport: i0,
|
|
1250
|
+
type: CountryCode
|
|
1251
|
+
});
|
|
1252
|
+
};
|
|
1253
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1254
|
+
minVersion: "12.0.0",
|
|
1255
|
+
version: "22.3.0",
|
|
1256
|
+
ngImport: i0,
|
|
1257
|
+
type: CountryCode,
|
|
1258
|
+
decorators: [{ type: Injectable }]
|
|
1259
|
+
});
|
|
272
1260
|
const phoneValidator = (control) => {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
return null;
|
|
1261
|
+
const error = { invalidPhone: true };
|
|
1262
|
+
let numberInstance;
|
|
1263
|
+
if (control.value) {
|
|
1264
|
+
try {
|
|
1265
|
+
numberInstance = parsePhoneNumber(control.value);
|
|
1266
|
+
} catch (e) {
|
|
1267
|
+
return error;
|
|
1268
|
+
}
|
|
1269
|
+
if (numberInstance && !numberInstance.isValid()) return error;
|
|
1270
|
+
}
|
|
1271
|
+
return null;
|
|
287
1272
|
};
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
1273
|
+
var PhoneInput = class PhoneInput {
|
|
1274
|
+
static COUNTRY_RENDER_CHUNK_SIZE = 32;
|
|
1275
|
+
static COUNTRY_RENDER_CHUNK_DELAY = 50;
|
|
1276
|
+
_destroyRef = inject(DestroyRef);
|
|
1277
|
+
_changeDetectorRef = inject(ChangeDetectorRef);
|
|
1278
|
+
countryCodeData = inject(CountryCode);
|
|
1279
|
+
_focusMonitor = inject(FocusMonitor);
|
|
1280
|
+
_elementRef = inject(ElementRef);
|
|
1281
|
+
_errorStateMatcher = inject(ErrorStateMatcher);
|
|
1282
|
+
_parentForm = inject(NgForm, { optional: true });
|
|
1283
|
+
static nextId = 0;
|
|
1284
|
+
searchInput = viewChild("searchInput", ...ngDevMode ? [{ debugName: "searchInput" }] : /* istanbul ignore next */ []);
|
|
1285
|
+
focusable = viewChild.required("focusable", ...ngDevMode ? [{ debugName: "focusable" }] : /* istanbul ignore next */ []);
|
|
1286
|
+
_focused = signal(false, ...ngDevMode ? [{ debugName: "_focused" }] : /* istanbul ignore next */ []);
|
|
1287
|
+
_errorState = signal(false, ...ngDevMode ? [{ debugName: "_errorState" }] : /* istanbul ignore next */ []);
|
|
1288
|
+
id = "";
|
|
1289
|
+
_id = signal(`ngs-phone-input-${PhoneInput.nextId++}`, ...ngDevMode ? [{ debugName: "_id" }] : /* istanbul ignore next */ []);
|
|
1290
|
+
placeholder = "";
|
|
1291
|
+
countryChanged = output();
|
|
1292
|
+
stateChanges = new Subject();
|
|
1293
|
+
describedBy = "";
|
|
1294
|
+
phoneNumber = "";
|
|
1295
|
+
allCountries = [];
|
|
1296
|
+
preferredCountriesInDropDown = [];
|
|
1297
|
+
selectedCountry = signal(null, ...ngDevMode ? [{ debugName: "selectedCountry" }] : /* istanbul ignore next */ []);
|
|
1298
|
+
numberInstance;
|
|
1299
|
+
value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
1300
|
+
displayedValue = null;
|
|
1301
|
+
invalid = input(false, ...ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []);
|
|
1302
|
+
touched = input(false, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
1303
|
+
touch = output();
|
|
1304
|
+
readonly = input(false, {
|
|
1305
|
+
...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
|
|
1306
|
+
transform: booleanAttribute
|
|
1307
|
+
});
|
|
1308
|
+
searchTerm = signal("", ...ngDevMode ? [{ debugName: "searchTerm" }] : /* istanbul ignore next */ []);
|
|
1309
|
+
visibleCountryCount = signal(PhoneInput.COUNTRY_RENDER_CHUNK_SIZE, ...ngDevMode ? [{ debugName: "visibleCountryCount" }] : /* istanbul ignore next */ []);
|
|
1310
|
+
filteredCountries = computed(() => {
|
|
1311
|
+
const searchTerm = this.searchTerm().trim().toLowerCase();
|
|
1312
|
+
if (!searchTerm) return this.allCountries;
|
|
1313
|
+
return this.allCountries.filter((country) => {
|
|
1314
|
+
return `${country.name}${country.phoneCode}`.toLowerCase().includes(searchTerm);
|
|
1315
|
+
});
|
|
1316
|
+
}, ...ngDevMode ? [{ debugName: "filteredCountries" }] : /* istanbul ignore next */ []);
|
|
1317
|
+
visibleCountries = computed(() => {
|
|
1318
|
+
return this.filteredCountries().slice(0, this.visibleCountryCount());
|
|
1319
|
+
}, ...ngDevMode ? [{ debugName: "visibleCountries" }] : /* istanbul ignore next */ []);
|
|
1320
|
+
_previousFormattedNumber;
|
|
1321
|
+
_countryRenderTimeout;
|
|
1322
|
+
_countrySearchFocusTimeout;
|
|
1323
|
+
get focused() {
|
|
1324
|
+
return this._focused();
|
|
1325
|
+
}
|
|
1326
|
+
get errorState() {
|
|
1327
|
+
return this._errorState();
|
|
1328
|
+
}
|
|
1329
|
+
get empty() {
|
|
1330
|
+
return !this.phoneNumber;
|
|
1331
|
+
}
|
|
1332
|
+
get shouldLabelFloat() {
|
|
1333
|
+
return this._focused() || !this.empty;
|
|
1334
|
+
}
|
|
1335
|
+
autocomplete = input("on", ...ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []);
|
|
1336
|
+
errorStateMatcher = input(this._errorStateMatcher, ...ngDevMode ? [{ debugName: "errorStateMatcher" }] : /* istanbul ignore next */ []);
|
|
1337
|
+
onlyCountries = input([], ...ngDevMode ? [{ debugName: "onlyCountries" }] : /* istanbul ignore next */ []);
|
|
1338
|
+
preferredCountries = input([], ...ngDevMode ? [{ debugName: "preferredCountries" }] : /* istanbul ignore next */ []);
|
|
1339
|
+
format = input("default", ...ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []);
|
|
1340
|
+
defaultSelectedCountryCode = input("us", ...ngDevMode ? [{ debugName: "defaultSelectedCountryCode" }] : /* istanbul ignore next */ []);
|
|
1341
|
+
_placeholder = input("", {
|
|
1342
|
+
...ngDevMode ? { debugName: "_placeholder" } : /* istanbul ignore next */ {},
|
|
1343
|
+
alias: "placeholder"
|
|
1344
|
+
});
|
|
1345
|
+
required = input(false, {
|
|
1346
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
1347
|
+
transform: booleanAttribute
|
|
1348
|
+
});
|
|
1349
|
+
disabled = input(false, {
|
|
1350
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
1351
|
+
transform: booleanAttribute
|
|
1352
|
+
});
|
|
1353
|
+
ngControl = inject(NgControl, {
|
|
1354
|
+
self: true,
|
|
1355
|
+
optional: true
|
|
1356
|
+
});
|
|
1357
|
+
constructor() {
|
|
1358
|
+
effect(() => {
|
|
1359
|
+
const value = this.value();
|
|
1360
|
+
untracked(() => {
|
|
1361
|
+
if (value !== this.displayedValue) {
|
|
1362
|
+
this.displayedValue = value;
|
|
1363
|
+
this.formatExternalValue(value);
|
|
1364
|
+
}
|
|
1365
|
+
});
|
|
1366
|
+
});
|
|
1367
|
+
this._focusMonitor.monitor(this._elementRef, true).pipe(takeUntilDestroyed(this._destroyRef)).subscribe((origin) => {
|
|
1368
|
+
if (this._focused() && !origin) this.touch.emit();
|
|
1369
|
+
this._focused.set(!!origin);
|
|
1370
|
+
this.stateChanges.next();
|
|
1371
|
+
});
|
|
1372
|
+
this.fetchCountryData();
|
|
1373
|
+
effect(() => {
|
|
1374
|
+
this.format();
|
|
1375
|
+
if (this.numberInstance) this.phoneNumber = this.formattedPhoneNumber;
|
|
1376
|
+
this.stateChanges.next();
|
|
1377
|
+
});
|
|
1378
|
+
effect(() => {
|
|
1379
|
+
this.id = this._id();
|
|
1380
|
+
this.placeholder = this._placeholder();
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
ngOnInit() {
|
|
1384
|
+
if (this.onlyCountries().length) this.allCountries = this.allCountries.filter((c) => this.onlyCountries().includes(c.shortCode));
|
|
1385
|
+
if (this.preferredCountries().length) this.preferredCountries().forEach((shortCode) => {
|
|
1386
|
+
const preferredCountry = this.allCountries.filter((c) => {
|
|
1387
|
+
return c.shortCode === shortCode;
|
|
1388
|
+
}).shift();
|
|
1389
|
+
if (preferredCountry) this.preferredCountriesInDropDown.push(preferredCountry);
|
|
1390
|
+
});
|
|
1391
|
+
if (this.numberInstance && this.numberInstance.country) this.selectedCountry.set(this.getCountry(this.numberInstance.country));
|
|
1392
|
+
if (!this.selectedCountry()) this.selectedCountry.set(this.allCountries.find((country) => country.shortCode === this.defaultSelectedCountryCode()));
|
|
1393
|
+
this.countryChanged.emit(this.selectedCountry());
|
|
1394
|
+
this._changeDetectorRef.detectChanges();
|
|
1395
|
+
this.stateChanges.next();
|
|
1396
|
+
}
|
|
1397
|
+
ngDoCheck() {
|
|
1398
|
+
if (this.ngControl) {
|
|
1399
|
+
const isInvalid = this.invalid() && this.touched() || this.errorStateMatcher().isErrorState(this.ngControl.control, this._parentForm);
|
|
1400
|
+
this._errorState.set(isInvalid && !this.ngControl.control?.value || (!this._focused() ? isInvalid : false));
|
|
1401
|
+
}
|
|
1402
|
+
}
|
|
1403
|
+
updateErrorState() {}
|
|
1404
|
+
ngAfterViewInit() {
|
|
1405
|
+
this._changeDetectorRef.detectChanges();
|
|
1406
|
+
}
|
|
1407
|
+
ngOnDestroy() {
|
|
1408
|
+
this.clearCountryMenuTimeouts();
|
|
1409
|
+
this.stateChanges.complete();
|
|
1410
|
+
this._focusMonitor.stopMonitoring(this._elementRef);
|
|
1411
|
+
}
|
|
1412
|
+
onPhoneNumberChange() {
|
|
1413
|
+
if (this.disabled() || this.readonly()) return;
|
|
1414
|
+
if (!this.phoneNumber) {
|
|
1415
|
+
this.clearDisplay();
|
|
1416
|
+
this.commit("");
|
|
1417
|
+
this._changeDetectorRef.markForCheck();
|
|
1418
|
+
this.stateChanges.next();
|
|
1419
|
+
return;
|
|
1420
|
+
}
|
|
1421
|
+
let value;
|
|
1422
|
+
try {
|
|
1423
|
+
this.numberInstance = parsePhoneNumberFromString(this.phoneNumber.toString(), this.selectedCountry()?.shortCode.toUpperCase());
|
|
1424
|
+
this.formatAsYouTypeIfEnabled();
|
|
1425
|
+
value = this.numberInstance?.number ?? this.phoneNumber.toString();
|
|
1426
|
+
if (this.numberInstance && this.numberInstance.isValid()) {
|
|
1427
|
+
if (this.phoneNumber !== this.formattedPhoneNumber) this.phoneNumber = this.formattedPhoneNumber;
|
|
1428
|
+
if (this.selectedCountry()?.shortCode !== this.numberInstance.country && this.numberInstance.country) {
|
|
1429
|
+
this.selectedCountry.set(this.getCountry(this.numberInstance.country));
|
|
1430
|
+
this.countryChanged.emit(this.selectedCountry());
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
} catch (e) {
|
|
1434
|
+
value = this.phoneNumber.toString();
|
|
1435
|
+
}
|
|
1436
|
+
this.commit(value);
|
|
1437
|
+
this._changeDetectorRef.markForCheck();
|
|
1438
|
+
this.stateChanges.next();
|
|
1439
|
+
}
|
|
1440
|
+
onCountrySelect(country, el) {
|
|
1441
|
+
if (this.disabled() || this.readonly()) return;
|
|
1442
|
+
if (this.selectedCountry() !== country) this.clearDisplay();
|
|
1443
|
+
this.selectedCountry.set(country);
|
|
1444
|
+
this.countryChanged.emit(this.selectedCountry());
|
|
1445
|
+
this.onPhoneNumberChange();
|
|
1446
|
+
el.focus();
|
|
1447
|
+
}
|
|
1448
|
+
focusSearchInput() {
|
|
1449
|
+
this.searchInput()?.nativeElement.focus();
|
|
1450
|
+
}
|
|
1451
|
+
openCountryMenu() {
|
|
1452
|
+
this.visibleCountryCount.set(PhoneInput.COUNTRY_RENDER_CHUNK_SIZE);
|
|
1453
|
+
this.scheduleCountryRendering();
|
|
1454
|
+
this._countrySearchFocusTimeout = setTimeout(() => this.focusSearchInput());
|
|
1455
|
+
}
|
|
1456
|
+
closeCountryMenu() {
|
|
1457
|
+
this.clearCountryMenuTimeouts();
|
|
1458
|
+
this.searchTerm.set("");
|
|
1459
|
+
this.visibleCountryCount.set(PhoneInput.COUNTRY_RENDER_CHUNK_SIZE);
|
|
1460
|
+
}
|
|
1461
|
+
onCountrySearch(searchTerm) {
|
|
1462
|
+
this.searchTerm.set(searchTerm);
|
|
1463
|
+
this.visibleCountryCount.set(PhoneInput.COUNTRY_RENDER_CHUNK_SIZE);
|
|
1464
|
+
this.scheduleCountryRendering();
|
|
1465
|
+
}
|
|
1466
|
+
clearSearch(event) {
|
|
1467
|
+
event.stopPropagation();
|
|
1468
|
+
this.onCountrySearch("");
|
|
1469
|
+
this.focusSearchInput();
|
|
1470
|
+
}
|
|
1471
|
+
countryFlagEmoji(shortCode) {
|
|
1472
|
+
if (!shortCode || shortCode.length !== 2) return "";
|
|
1473
|
+
const upperShortCode = shortCode.toUpperCase();
|
|
1474
|
+
return Array.from(upperShortCode).map((letter) => String.fromCodePoint(127462 + letter.charCodeAt(0) - 65)).join("");
|
|
1475
|
+
}
|
|
1476
|
+
scheduleCountryRendering() {
|
|
1477
|
+
this.clearCountryRenderTimeout();
|
|
1478
|
+
if (this.visibleCountryCount() >= this.filteredCountries().length) return;
|
|
1479
|
+
this._countryRenderTimeout = setTimeout(() => {
|
|
1480
|
+
this.visibleCountryCount.update((count) => {
|
|
1481
|
+
return Math.min(count + PhoneInput.COUNTRY_RENDER_CHUNK_SIZE, this.filteredCountries().length);
|
|
1482
|
+
});
|
|
1483
|
+
this.scheduleCountryRendering();
|
|
1484
|
+
this._changeDetectorRef.markForCheck();
|
|
1485
|
+
}, PhoneInput.COUNTRY_RENDER_CHUNK_DELAY);
|
|
1486
|
+
}
|
|
1487
|
+
clearCountryMenuTimeouts() {
|
|
1488
|
+
this.clearCountryRenderTimeout();
|
|
1489
|
+
this.clearCountrySearchFocusTimeout();
|
|
1490
|
+
}
|
|
1491
|
+
clearCountryRenderTimeout() {
|
|
1492
|
+
if (!this._countryRenderTimeout) return;
|
|
1493
|
+
clearTimeout(this._countryRenderTimeout);
|
|
1494
|
+
this._countryRenderTimeout = void 0;
|
|
1495
|
+
}
|
|
1496
|
+
clearCountrySearchFocusTimeout() {
|
|
1497
|
+
if (!this._countrySearchFocusTimeout) return;
|
|
1498
|
+
clearTimeout(this._countrySearchFocusTimeout);
|
|
1499
|
+
this._countrySearchFocusTimeout = void 0;
|
|
1500
|
+
}
|
|
1501
|
+
getCountry(shortCode) {
|
|
1502
|
+
return this.allCountries.find((c) => c.shortCode === shortCode.toLowerCase()) || {
|
|
1503
|
+
name: "UN",
|
|
1504
|
+
shortCode: "UN",
|
|
1505
|
+
dialCode: void 0,
|
|
1506
|
+
priority: 0,
|
|
1507
|
+
areaCodes: void 0,
|
|
1508
|
+
flagClass: "UN",
|
|
1509
|
+
placeHolder: ""
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
onInputKeyPress(event) {
|
|
1513
|
+
if (!/[0-9+\- ]/.test(event.key)) event.preventDefault();
|
|
1514
|
+
}
|
|
1515
|
+
fetchCountryData() {
|
|
1516
|
+
this.allCountries = this.countryCodeData.allCountries;
|
|
1517
|
+
}
|
|
1518
|
+
commit(value) {
|
|
1519
|
+
this.displayedValue = value;
|
|
1520
|
+
this.value.set(value);
|
|
1521
|
+
}
|
|
1522
|
+
formatExternalValue(value) {
|
|
1523
|
+
if (!value) {
|
|
1524
|
+
this.clearDisplay();
|
|
1525
|
+
this.stateChanges.next();
|
|
1526
|
+
this._changeDetectorRef.markForCheck();
|
|
1527
|
+
return;
|
|
1528
|
+
}
|
|
1529
|
+
this.numberInstance = parsePhoneNumberFromString(value);
|
|
1530
|
+
if (this.numberInstance) {
|
|
1531
|
+
const countryCode = this.numberInstance.country;
|
|
1532
|
+
this.phoneNumber = this.formattedPhoneNumber;
|
|
1533
|
+
if (!countryCode) {
|
|
1534
|
+
this.stateChanges.next(void 0);
|
|
1535
|
+
this._changeDetectorRef.markForCheck();
|
|
1536
|
+
return;
|
|
1537
|
+
}
|
|
1538
|
+
const country = this.getCountry(countryCode);
|
|
1539
|
+
this.selectedCountry.set(country);
|
|
1540
|
+
this.countryChanged.emit(country);
|
|
1541
|
+
this._changeDetectorRef.markForCheck();
|
|
1542
|
+
this.stateChanges.next();
|
|
1543
|
+
} else this.phoneNumber = value;
|
|
1544
|
+
this.stateChanges.next(void 0);
|
|
1545
|
+
this._changeDetectorRef.markForCheck();
|
|
1546
|
+
}
|
|
1547
|
+
setDescribedByIds(ids) {
|
|
1548
|
+
this.describedBy = ids.join(" ");
|
|
1549
|
+
}
|
|
1550
|
+
focus() {
|
|
1551
|
+
this.focusable().nativeElement.focus();
|
|
1552
|
+
}
|
|
1553
|
+
onContainerClick(event) {
|
|
1554
|
+
if (event.target.tagName.toLowerCase() !== "input") this.focus();
|
|
1555
|
+
}
|
|
1556
|
+
reset() {
|
|
1557
|
+
this.clearDisplay();
|
|
1558
|
+
this.commit(null);
|
|
1559
|
+
this._changeDetectorRef.markForCheck();
|
|
1560
|
+
this.stateChanges.next(void 0);
|
|
1561
|
+
}
|
|
1562
|
+
clearDisplay() {
|
|
1563
|
+
this.phoneNumber = "";
|
|
1564
|
+
this.numberInstance = void 0;
|
|
1565
|
+
this._previousFormattedNumber = void 0;
|
|
1566
|
+
}
|
|
1567
|
+
get formattedPhoneNumber() {
|
|
1568
|
+
if (!this.numberInstance) return this.phoneNumber?.toString() || "";
|
|
1569
|
+
switch (this.format()) {
|
|
1570
|
+
case "national": return this.numberInstance.formatNational();
|
|
1571
|
+
case "international": return this.numberInstance.formatInternational();
|
|
1572
|
+
default: return this.numberInstance.nationalNumber.toString();
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
formatAsYouTypeIfEnabled() {
|
|
1576
|
+
if (this.format() === "default") return;
|
|
1577
|
+
const selectedCountry = this.selectedCountry();
|
|
1578
|
+
if (!selectedCountry) return;
|
|
1579
|
+
const asYouType = new AsYouType(selectedCountry.shortCode.toUpperCase());
|
|
1580
|
+
if (!this.phoneNumber) return;
|
|
1581
|
+
if (this.phoneNumber?.toString().startsWith(this._previousFormattedNumber || "")) this.phoneNumber = asYouType.input(this.phoneNumber.toString());
|
|
1582
|
+
this._previousFormattedNumber = this.phoneNumber.toString();
|
|
1583
|
+
}
|
|
1584
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1585
|
+
minVersion: "12.0.0",
|
|
1586
|
+
version: "22.3.0",
|
|
1587
|
+
ngImport: i0,
|
|
1588
|
+
type: PhoneInput,
|
|
1589
|
+
deps: [],
|
|
1590
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
1591
|
+
});
|
|
1592
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
1593
|
+
minVersion: "17.0.0",
|
|
1594
|
+
version: "22.3.0",
|
|
1595
|
+
type: PhoneInput,
|
|
1596
|
+
isStandalone: true,
|
|
1597
|
+
selector: "ngs-phone-input",
|
|
1598
|
+
inputs: {
|
|
1599
|
+
value: {
|
|
1600
|
+
classPropertyName: "value",
|
|
1601
|
+
publicName: "value",
|
|
1602
|
+
isSignal: true,
|
|
1603
|
+
isRequired: false,
|
|
1604
|
+
transformFunction: null
|
|
1605
|
+
},
|
|
1606
|
+
invalid: {
|
|
1607
|
+
classPropertyName: "invalid",
|
|
1608
|
+
publicName: "invalid",
|
|
1609
|
+
isSignal: true,
|
|
1610
|
+
isRequired: false,
|
|
1611
|
+
transformFunction: null
|
|
1612
|
+
},
|
|
1613
|
+
touched: {
|
|
1614
|
+
classPropertyName: "touched",
|
|
1615
|
+
publicName: "touched",
|
|
1616
|
+
isSignal: true,
|
|
1617
|
+
isRequired: false,
|
|
1618
|
+
transformFunction: null
|
|
1619
|
+
},
|
|
1620
|
+
readonly: {
|
|
1621
|
+
classPropertyName: "readonly",
|
|
1622
|
+
publicName: "readonly",
|
|
1623
|
+
isSignal: true,
|
|
1624
|
+
isRequired: false,
|
|
1625
|
+
transformFunction: null
|
|
1626
|
+
},
|
|
1627
|
+
autocomplete: {
|
|
1628
|
+
classPropertyName: "autocomplete",
|
|
1629
|
+
publicName: "autocomplete",
|
|
1630
|
+
isSignal: true,
|
|
1631
|
+
isRequired: false,
|
|
1632
|
+
transformFunction: null
|
|
1633
|
+
},
|
|
1634
|
+
errorStateMatcher: {
|
|
1635
|
+
classPropertyName: "errorStateMatcher",
|
|
1636
|
+
publicName: "errorStateMatcher",
|
|
1637
|
+
isSignal: true,
|
|
1638
|
+
isRequired: false,
|
|
1639
|
+
transformFunction: null
|
|
1640
|
+
},
|
|
1641
|
+
onlyCountries: {
|
|
1642
|
+
classPropertyName: "onlyCountries",
|
|
1643
|
+
publicName: "onlyCountries",
|
|
1644
|
+
isSignal: true,
|
|
1645
|
+
isRequired: false,
|
|
1646
|
+
transformFunction: null
|
|
1647
|
+
},
|
|
1648
|
+
preferredCountries: {
|
|
1649
|
+
classPropertyName: "preferredCountries",
|
|
1650
|
+
publicName: "preferredCountries",
|
|
1651
|
+
isSignal: true,
|
|
1652
|
+
isRequired: false,
|
|
1653
|
+
transformFunction: null
|
|
1654
|
+
},
|
|
1655
|
+
format: {
|
|
1656
|
+
classPropertyName: "format",
|
|
1657
|
+
publicName: "format",
|
|
1658
|
+
isSignal: true,
|
|
1659
|
+
isRequired: false,
|
|
1660
|
+
transformFunction: null
|
|
1661
|
+
},
|
|
1662
|
+
defaultSelectedCountryCode: {
|
|
1663
|
+
classPropertyName: "defaultSelectedCountryCode",
|
|
1664
|
+
publicName: "defaultSelectedCountryCode",
|
|
1665
|
+
isSignal: true,
|
|
1666
|
+
isRequired: false,
|
|
1667
|
+
transformFunction: null
|
|
1668
|
+
},
|
|
1669
|
+
_placeholder: {
|
|
1670
|
+
classPropertyName: "_placeholder",
|
|
1671
|
+
publicName: "placeholder",
|
|
1672
|
+
isSignal: true,
|
|
1673
|
+
isRequired: false,
|
|
1674
|
+
transformFunction: null
|
|
1675
|
+
},
|
|
1676
|
+
required: {
|
|
1677
|
+
classPropertyName: "required",
|
|
1678
|
+
publicName: "required",
|
|
1679
|
+
isSignal: true,
|
|
1680
|
+
isRequired: false,
|
|
1681
|
+
transformFunction: null
|
|
1682
|
+
},
|
|
1683
|
+
disabled: {
|
|
1684
|
+
classPropertyName: "disabled",
|
|
1685
|
+
publicName: "disabled",
|
|
1686
|
+
isSignal: true,
|
|
1687
|
+
isRequired: false,
|
|
1688
|
+
transformFunction: null
|
|
1689
|
+
}
|
|
1690
|
+
},
|
|
1691
|
+
outputs: {
|
|
1692
|
+
countryChanged: "countryChanged",
|
|
1693
|
+
value: "valueChange",
|
|
1694
|
+
touch: "touch"
|
|
1695
|
+
},
|
|
1696
|
+
host: {
|
|
1697
|
+
properties: { "class.is-floating": "shouldLabelFloat" },
|
|
1698
|
+
classAttribute: "ngs-phone-input"
|
|
1699
|
+
},
|
|
1700
|
+
providers: [
|
|
1701
|
+
CountryCode,
|
|
1702
|
+
{
|
|
1703
|
+
provide: FormFieldControl,
|
|
1704
|
+
useExisting: PhoneInput
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
provide: NG_VALIDATORS,
|
|
1708
|
+
useValue: phoneValidator,
|
|
1709
|
+
multi: true
|
|
1710
|
+
}
|
|
1711
|
+
],
|
|
1712
|
+
viewQueries: [{
|
|
1713
|
+
propertyName: "searchInput",
|
|
1714
|
+
first: true,
|
|
1715
|
+
predicate: ["searchInput"],
|
|
1716
|
+
descendants: true,
|
|
1717
|
+
isSignal: true
|
|
1718
|
+
}, {
|
|
1719
|
+
propertyName: "focusable",
|
|
1720
|
+
first: true,
|
|
1721
|
+
predicate: ["focusable"],
|
|
1722
|
+
descendants: true,
|
|
1723
|
+
isSignal: true
|
|
1724
|
+
}],
|
|
1725
|
+
exportAs: ["ngsPhoneInput"],
|
|
1726
|
+
ngImport: i0,
|
|
1727
|
+
template: "<div class=\"phone-input-container\">\n <button\n type=\"button\"\n ngsRipple\n [ngsMenuTriggerFor]=\"menu\"\n class=\"country-selector pe-1.5\"\n [disabled]=\"disabled() || readonly()\"\n (menuOpened)=\"openCountryMenu()\"\n (menuClosed)=\"closeCountryMenu()\">\n @if (selectedCountry()) {\n <span class=\"flag-icon\" aria-hidden=\"true\">{{ countryFlagEmoji($safeNavigationMigration(selectedCountry()?.shortCode)) }}</span>\n\n @if (selectedCountry()?.phoneCode) {\n <span class=\"country-selector-code\">{{ selectedCountry()?.phoneCode }}</span>\n }\n }\n <ngs-icon name=\"fluent:chevron-down-24-regular\" class=\"text-neutral-500 size-4 relative ms-0.5\"/>\n </button>\n\n <input\n ngsInput\n type=\"tel\"\n inputmode=\"tel\"\n [autocomplete]=\"autocomplete()\"\n (keypress)=\"onInputKeyPress($event)\"\n [(ngModel)]=\"phoneNumber\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onPhoneNumberChange()\"\n [errorStateMatcher]=\"errorStateMatcher()\"\n [placeholder]=\"_placeholder()\"\n [disabled]=\"disabled()\"\n class=\"grow\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n #focusable>\n</div>\n\n<ngs-menu #menu=\"ngsMenu\">\n <ngs-menu-header>\n <div class=\"relative bg-surface-container-lowest\">\n <input #searchInput\n type=\"text\"\n placeholder=\"Search...\"\n aria-label=\"Search country\"\n autocomplete=\"off\"\n [ngModel]=\"searchTerm()\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onCountrySearch($event)\"\n class=\"h-10 w-full border-0 border-b border-border bg-transparent px-3 text-sm text-on-surface outline-none focus:border-b-primary\">\n @if (searchTerm().trim()) {\n <div class=\"absolute end-1 top-1/2 -translate-y-1/2\">\n <button\n ngsIconButton\n (click)=\"clearSearch($event)\"\n class=\"clear-button\"\n type=\"button\"\n aria-label=\"Clear search\">\n <ngs-icon name=\"fluent:dismiss-24-regular\"/>\n </button>\n </div>\n }\n </div>\n </ngs-menu-header>\n\n @for (country of preferredCountriesInDropDown; track country.shortCode) {\n <button\n type=\"button\"\n ngs-menu-item\n [selected]=\"selectedCountry()?.shortCode === country.shortCode\"\n (click)=\"onCountrySelect(country, focusable)\">\n <span class=\"inline-flex size-6 shrink-0 items-center justify-center text-2xl leading-none\" aria-hidden=\"true\">\n {{ countryFlagEmoji(country.shortCode) }}\n </span>\n <span class=\"min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap\">{{ country.name }}</span>\n <span class=\"ms-auto shrink-0 text-neutral-500\">{{ country.phoneCode }}</span>\n </button>\n }\n\n @if (preferredCountriesInDropDown.length) {\n <ngs-menu-divider/>\n }\n\n @for (country of visibleCountries(); track country.shortCode) {\n <button\n type=\"button\"\n ngs-menu-item\n [selected]=\"selectedCountry()?.shortCode === country.shortCode\"\n (click)=\"onCountrySelect(country, focusable)\">\n <span class=\"inline-flex size-6 shrink-0 items-center justify-center text-2xl leading-none\" aria-hidden=\"true\">\n {{ countryFlagEmoji(country.shortCode) }}\n </span>\n <span class=\"min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap\">{{ country.name }}</span>\n <span class=\"ms-auto shrink-0 text-neutral-500\">{{ country.phoneCode }}</span>\n </button>\n } @empty {\n @if (searchTerm()) {\n <div class=\"text-sm px-4 py-3\">\n <span i18n>No countries found</span>.\n </div>\n }\n }\n\n @if (visibleCountryCount() < filteredCountries().length) {\n <div class=\"country-loading\">\n Loading more countries...\n </div>\n }\n</ngs-menu>\n",
|
|
1728
|
+
styles: [":host{--ngs-phone-input-color: var(--ngs-color-neutral-600);--ngs-phone-input-opacity: 0}@media print{:host{--ngs-phone-input-flag-display: none}}:host .flag-icon{display:var(--ngs-phone-input-flag-display, inline-flex);align-items:center;justify-content:center;width:22px;margin-inline-end:var(--spacing, .25rem);font-size:22px;line-height:1}:host.is-floating .country-selector{opacity:1}:host .phone-input-container{display:flex;align-items:center}:host .country-empty,:host .country-loading{padding:calc(var(--spacing, .25rem) * 3);color:var(--ngs-color-on-surface-variant);font-size:var(--ngs-font-size-sm)}:host .country-loading{padding-block:calc(var(--spacing, .25rem) * 2)}:host .phone-input-container input{border:none;background:none;outline:none;font:inherit;width:max-content;box-sizing:border-box;padding-right:6px;padding-left:4px;position:relative;z-index:0}:host .icon-wrapper{padding-right:24px}:host .mdc-button__label{margin-right:auto}:host .country-selector{display:flex;align-items:center;line-height:0;border-radius:0;color:var(--ngs-phone-input-color);flex-shrink:0;height:initial;opacity:var(--ngs-phone-input-opacity, 0);transition:opacity .2s;border:unset}:host .country-selector:disabled{opacity:.8}:host .country-selector-code{color:var(--ngs-phone-input-color);padding-right:0}:host-context(html.dark){--ngs-phone-input-color: var(--ngs-color-neutral-500)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"],
|
|
1729
|
+
dependencies: [
|
|
1730
|
+
{
|
|
1731
|
+
kind: "directive",
|
|
1732
|
+
type: Ripple,
|
|
1733
|
+
selector: "[ngsRipple]",
|
|
1734
|
+
inputs: [
|
|
1735
|
+
"ngsRippleColor",
|
|
1736
|
+
"ngsRippleUnbounded",
|
|
1737
|
+
"ngsRippleCentered",
|
|
1738
|
+
"ngsRippleRadius",
|
|
1739
|
+
"ngsRippleAnimation",
|
|
1740
|
+
"ngsRippleDisabled",
|
|
1741
|
+
"ngsRippleTrigger"
|
|
1742
|
+
],
|
|
1743
|
+
outputs: [
|
|
1744
|
+
"ngsRippleCenteredChange",
|
|
1745
|
+
"ngsRippleDisabledChange",
|
|
1746
|
+
"ngsRippleTriggerChange"
|
|
1747
|
+
],
|
|
1748
|
+
exportAs: ["ngsRipple"]
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
kind: "directive",
|
|
1752
|
+
type: MenuTrigger,
|
|
1753
|
+
selector: "[ngsMenuTriggerFor]",
|
|
1754
|
+
inputs: [
|
|
1755
|
+
"ngsMenuTriggerFor",
|
|
1756
|
+
"ngsMenuTriggerData",
|
|
1757
|
+
"ngsMenuDisabled",
|
|
1758
|
+
"xPosition",
|
|
1759
|
+
"yPosition",
|
|
1760
|
+
"ngsMenuTriggerRestoreFocus"
|
|
1761
|
+
],
|
|
1762
|
+
outputs: ["menuOpened", "menuClosed"],
|
|
1763
|
+
exportAs: ["ngsMenuTrigger"]
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
kind: "component",
|
|
1767
|
+
type: Icon,
|
|
1768
|
+
selector: "ngs-icon",
|
|
1769
|
+
inputs: ["name"],
|
|
1770
|
+
exportAs: ["ngsIcon"]
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
kind: "component",
|
|
1774
|
+
type: Menu,
|
|
1775
|
+
selector: "ngs-menu",
|
|
1776
|
+
inputs: [
|
|
1777
|
+
"themeSource",
|
|
1778
|
+
"role",
|
|
1779
|
+
"classList",
|
|
1780
|
+
"xPosition",
|
|
1781
|
+
"yPosition",
|
|
1782
|
+
"pushIntoViewport"
|
|
1783
|
+
],
|
|
1784
|
+
outputs: ["closed"],
|
|
1785
|
+
exportAs: ["ngsMenu"]
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
kind: "ngmodule",
|
|
1789
|
+
type: FormsModule
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
kind: "directive",
|
|
1793
|
+
type: i1.DefaultValueAccessor,
|
|
1794
|
+
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
1795
|
+
},
|
|
1796
|
+
{
|
|
1797
|
+
kind: "directive",
|
|
1798
|
+
type: i1.NgControlStatus,
|
|
1799
|
+
selector: "[formControlName],[ngModel],[formControl]"
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
kind: "directive",
|
|
1803
|
+
type: i1.RequiredValidator,
|
|
1804
|
+
selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",
|
|
1805
|
+
inputs: ["required"]
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
kind: "directive",
|
|
1809
|
+
type: i1.NgModel,
|
|
1810
|
+
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
1811
|
+
inputs: [
|
|
1812
|
+
"name",
|
|
1813
|
+
"disabled",
|
|
1814
|
+
"ngModel",
|
|
1815
|
+
"ngModelOptions"
|
|
1816
|
+
],
|
|
1817
|
+
outputs: ["ngModelChange"],
|
|
1818
|
+
exportAs: ["ngModel"]
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
kind: "component",
|
|
1822
|
+
type: MenuHeader,
|
|
1823
|
+
selector: "ngs-menu-header",
|
|
1824
|
+
exportAs: ["ngsMenuHeader"]
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
kind: "component",
|
|
1828
|
+
type: MenuItem,
|
|
1829
|
+
selector: "ngs-menu-item, [ngs-menu-item]",
|
|
1830
|
+
inputs: [
|
|
1831
|
+
"disabled",
|
|
1832
|
+
"role",
|
|
1833
|
+
"selected"
|
|
1834
|
+
],
|
|
1835
|
+
outputs: ["_triggered"],
|
|
1836
|
+
exportAs: ["ngsMenuItem"]
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
kind: "component",
|
|
1840
|
+
type: MenuDivider,
|
|
1841
|
+
selector: "ngs-menu-divider"
|
|
1842
|
+
},
|
|
1843
|
+
{
|
|
1844
|
+
kind: "directive",
|
|
1845
|
+
type: Input$1,
|
|
1846
|
+
selector: "input[ngsInput], textarea[ngsInput]",
|
|
1847
|
+
inputs: [
|
|
1848
|
+
"id",
|
|
1849
|
+
"placeholder",
|
|
1850
|
+
"required",
|
|
1851
|
+
"disabled",
|
|
1852
|
+
"readonly",
|
|
1853
|
+
"errorStateMatcher"
|
|
1854
|
+
],
|
|
1855
|
+
exportAs: ["ngsInput"]
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
kind: "component",
|
|
1859
|
+
type: Button,
|
|
1860
|
+
selector: "\n button[ngsButton], button[ngsIconButton],\n a[ngsButton], a[ngsIconButton]\n ",
|
|
1861
|
+
inputs: [
|
|
1862
|
+
"ngsButton",
|
|
1863
|
+
"ngsIconButton",
|
|
1864
|
+
"loading",
|
|
1865
|
+
"disabled",
|
|
1866
|
+
"disabledInteractive",
|
|
1867
|
+
"disableRipple",
|
|
1868
|
+
"reverse",
|
|
1869
|
+
"fullWidth",
|
|
1870
|
+
"hideTextOnMobile"
|
|
1871
|
+
],
|
|
1872
|
+
exportAs: ["ngsButton"]
|
|
1873
|
+
}
|
|
1874
|
+
],
|
|
1875
|
+
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
1876
|
+
});
|
|
1877
|
+
};
|
|
1878
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1879
|
+
minVersion: "12.0.0",
|
|
1880
|
+
version: "22.3.0",
|
|
1881
|
+
ngImport: i0,
|
|
1882
|
+
type: PhoneInput,
|
|
1883
|
+
decorators: [{
|
|
1884
|
+
type: Component,
|
|
1885
|
+
args: [{
|
|
1886
|
+
selector: "ngs-phone-input",
|
|
1887
|
+
exportAs: "ngsPhoneInput",
|
|
1888
|
+
imports: [
|
|
1889
|
+
Ripple,
|
|
1890
|
+
MenuTrigger,
|
|
1891
|
+
Icon,
|
|
1892
|
+
Menu,
|
|
1893
|
+
FormsModule,
|
|
1894
|
+
MenuHeader,
|
|
1895
|
+
MenuItem,
|
|
1896
|
+
MenuDivider,
|
|
1897
|
+
Input$1,
|
|
1898
|
+
Button
|
|
1899
|
+
],
|
|
1900
|
+
providers: [
|
|
1901
|
+
CountryCode,
|
|
1902
|
+
{
|
|
1903
|
+
provide: FormFieldControl,
|
|
1904
|
+
useExisting: PhoneInput
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
provide: NG_VALIDATORS,
|
|
1908
|
+
useValue: phoneValidator,
|
|
1909
|
+
multi: true
|
|
1910
|
+
}
|
|
1911
|
+
],
|
|
1912
|
+
changeDetection: ChangeDetectionStrategy.Eager,
|
|
1913
|
+
host: {
|
|
1914
|
+
"class": "ngs-phone-input",
|
|
1915
|
+
"[class.is-floating]": "shouldLabelFloat"
|
|
1916
|
+
},
|
|
1917
|
+
template: "<div class=\"phone-input-container\">\n <button\n type=\"button\"\n ngsRipple\n [ngsMenuTriggerFor]=\"menu\"\n class=\"country-selector pe-1.5\"\n [disabled]=\"disabled() || readonly()\"\n (menuOpened)=\"openCountryMenu()\"\n (menuClosed)=\"closeCountryMenu()\">\n @if (selectedCountry()) {\n <span class=\"flag-icon\" aria-hidden=\"true\">{{ countryFlagEmoji($safeNavigationMigration(selectedCountry()?.shortCode)) }}</span>\n\n @if (selectedCountry()?.phoneCode) {\n <span class=\"country-selector-code\">{{ selectedCountry()?.phoneCode }}</span>\n }\n }\n <ngs-icon name=\"fluent:chevron-down-24-regular\" class=\"text-neutral-500 size-4 relative ms-0.5\"/>\n </button>\n\n <input\n ngsInput\n type=\"tel\"\n inputmode=\"tel\"\n [autocomplete]=\"autocomplete()\"\n (keypress)=\"onInputKeyPress($event)\"\n [(ngModel)]=\"phoneNumber\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onPhoneNumberChange()\"\n [errorStateMatcher]=\"errorStateMatcher()\"\n [placeholder]=\"_placeholder()\"\n [disabled]=\"disabled()\"\n class=\"grow\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n #focusable>\n</div>\n\n<ngs-menu #menu=\"ngsMenu\">\n <ngs-menu-header>\n <div class=\"relative bg-surface-container-lowest\">\n <input #searchInput\n type=\"text\"\n placeholder=\"Search...\"\n aria-label=\"Search country\"\n autocomplete=\"off\"\n [ngModel]=\"searchTerm()\"\n [ngModelOptions]=\"{standalone: true}\"\n (ngModelChange)=\"onCountrySearch($event)\"\n class=\"h-10 w-full border-0 border-b border-border bg-transparent px-3 text-sm text-on-surface outline-none focus:border-b-primary\">\n @if (searchTerm().trim()) {\n <div class=\"absolute end-1 top-1/2 -translate-y-1/2\">\n <button\n ngsIconButton\n (click)=\"clearSearch($event)\"\n class=\"clear-button\"\n type=\"button\"\n aria-label=\"Clear search\">\n <ngs-icon name=\"fluent:dismiss-24-regular\"/>\n </button>\n </div>\n }\n </div>\n </ngs-menu-header>\n\n @for (country of preferredCountriesInDropDown; track country.shortCode) {\n <button\n type=\"button\"\n ngs-menu-item\n [selected]=\"selectedCountry()?.shortCode === country.shortCode\"\n (click)=\"onCountrySelect(country, focusable)\">\n <span class=\"inline-flex size-6 shrink-0 items-center justify-center text-2xl leading-none\" aria-hidden=\"true\">\n {{ countryFlagEmoji(country.shortCode) }}\n </span>\n <span class=\"min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap\">{{ country.name }}</span>\n <span class=\"ms-auto shrink-0 text-neutral-500\">{{ country.phoneCode }}</span>\n </button>\n }\n\n @if (preferredCountriesInDropDown.length) {\n <ngs-menu-divider/>\n }\n\n @for (country of visibleCountries(); track country.shortCode) {\n <button\n type=\"button\"\n ngs-menu-item\n [selected]=\"selectedCountry()?.shortCode === country.shortCode\"\n (click)=\"onCountrySelect(country, focusable)\">\n <span class=\"inline-flex size-6 shrink-0 items-center justify-center text-2xl leading-none\" aria-hidden=\"true\">\n {{ countryFlagEmoji(country.shortCode) }}\n </span>\n <span class=\"min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap\">{{ country.name }}</span>\n <span class=\"ms-auto shrink-0 text-neutral-500\">{{ country.phoneCode }}</span>\n </button>\n } @empty {\n @if (searchTerm()) {\n <div class=\"text-sm px-4 py-3\">\n <span i18n>No countries found</span>.\n </div>\n }\n }\n\n @if (visibleCountryCount() < filteredCountries().length) {\n <div class=\"country-loading\">\n Loading more countries...\n </div>\n }\n</ngs-menu>\n",
|
|
1918
|
+
styles: [":host{--ngs-phone-input-color: var(--ngs-color-neutral-600);--ngs-phone-input-opacity: 0}@media print{:host{--ngs-phone-input-flag-display: none}}:host .flag-icon{display:var(--ngs-phone-input-flag-display, inline-flex);align-items:center;justify-content:center;width:22px;margin-inline-end:var(--spacing, .25rem);font-size:22px;line-height:1}:host.is-floating .country-selector{opacity:1}:host .phone-input-container{display:flex;align-items:center}:host .country-empty,:host .country-loading{padding:calc(var(--spacing, .25rem) * 3);color:var(--ngs-color-on-surface-variant);font-size:var(--ngs-font-size-sm)}:host .country-loading{padding-block:calc(var(--spacing, .25rem) * 2)}:host .phone-input-container input{border:none;background:none;outline:none;font:inherit;width:max-content;box-sizing:border-box;padding-right:6px;padding-left:4px;position:relative;z-index:0}:host .icon-wrapper{padding-right:24px}:host .mdc-button__label{margin-right:auto}:host .country-selector{display:flex;align-items:center;line-height:0;border-radius:0;color:var(--ngs-phone-input-color);flex-shrink:0;height:initial;opacity:var(--ngs-phone-input-opacity, 0);transition:opacity .2s;border:unset}:host .country-selector:disabled{opacity:.8}:host .country-selector-code{color:var(--ngs-phone-input-color);padding-right:0}:host-context(html.dark){--ngs-phone-input-color: var(--ngs-color-neutral-500)}\n/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n"]
|
|
1919
|
+
}]
|
|
1920
|
+
}],
|
|
1921
|
+
ctorParameters: () => [],
|
|
1922
|
+
propDecorators: {
|
|
1923
|
+
searchInput: [{
|
|
1924
|
+
type: i0.ViewChild,
|
|
1925
|
+
args: ["searchInput", { isSignal: true }]
|
|
1926
|
+
}],
|
|
1927
|
+
focusable: [{
|
|
1928
|
+
type: i0.ViewChild,
|
|
1929
|
+
args: ["focusable", { isSignal: true }]
|
|
1930
|
+
}],
|
|
1931
|
+
countryChanged: [{
|
|
1932
|
+
type: i0.Output,
|
|
1933
|
+
args: ["countryChanged"]
|
|
1934
|
+
}],
|
|
1935
|
+
value: [{
|
|
1936
|
+
type: i0.Input,
|
|
1937
|
+
args: [{
|
|
1938
|
+
isSignal: true,
|
|
1939
|
+
alias: "value",
|
|
1940
|
+
required: false
|
|
1941
|
+
}]
|
|
1942
|
+
}, {
|
|
1943
|
+
type: i0.Output,
|
|
1944
|
+
args: ["valueChange"]
|
|
1945
|
+
}],
|
|
1946
|
+
invalid: [{
|
|
1947
|
+
type: i0.Input,
|
|
1948
|
+
args: [{
|
|
1949
|
+
isSignal: true,
|
|
1950
|
+
alias: "invalid",
|
|
1951
|
+
required: false
|
|
1952
|
+
}]
|
|
1953
|
+
}],
|
|
1954
|
+
touched: [{
|
|
1955
|
+
type: i0.Input,
|
|
1956
|
+
args: [{
|
|
1957
|
+
isSignal: true,
|
|
1958
|
+
alias: "touched",
|
|
1959
|
+
required: false
|
|
1960
|
+
}]
|
|
1961
|
+
}],
|
|
1962
|
+
touch: [{
|
|
1963
|
+
type: i0.Output,
|
|
1964
|
+
args: ["touch"]
|
|
1965
|
+
}],
|
|
1966
|
+
readonly: [{
|
|
1967
|
+
type: i0.Input,
|
|
1968
|
+
args: [{
|
|
1969
|
+
isSignal: true,
|
|
1970
|
+
alias: "readonly",
|
|
1971
|
+
required: false
|
|
1972
|
+
}]
|
|
1973
|
+
}],
|
|
1974
|
+
autocomplete: [{
|
|
1975
|
+
type: i0.Input,
|
|
1976
|
+
args: [{
|
|
1977
|
+
isSignal: true,
|
|
1978
|
+
alias: "autocomplete",
|
|
1979
|
+
required: false
|
|
1980
|
+
}]
|
|
1981
|
+
}],
|
|
1982
|
+
errorStateMatcher: [{
|
|
1983
|
+
type: i0.Input,
|
|
1984
|
+
args: [{
|
|
1985
|
+
isSignal: true,
|
|
1986
|
+
alias: "errorStateMatcher",
|
|
1987
|
+
required: false
|
|
1988
|
+
}]
|
|
1989
|
+
}],
|
|
1990
|
+
onlyCountries: [{
|
|
1991
|
+
type: i0.Input,
|
|
1992
|
+
args: [{
|
|
1993
|
+
isSignal: true,
|
|
1994
|
+
alias: "onlyCountries",
|
|
1995
|
+
required: false
|
|
1996
|
+
}]
|
|
1997
|
+
}],
|
|
1998
|
+
preferredCountries: [{
|
|
1999
|
+
type: i0.Input,
|
|
2000
|
+
args: [{
|
|
2001
|
+
isSignal: true,
|
|
2002
|
+
alias: "preferredCountries",
|
|
2003
|
+
required: false
|
|
2004
|
+
}]
|
|
2005
|
+
}],
|
|
2006
|
+
format: [{
|
|
2007
|
+
type: i0.Input,
|
|
2008
|
+
args: [{
|
|
2009
|
+
isSignal: true,
|
|
2010
|
+
alias: "format",
|
|
2011
|
+
required: false
|
|
2012
|
+
}]
|
|
2013
|
+
}],
|
|
2014
|
+
defaultSelectedCountryCode: [{
|
|
2015
|
+
type: i0.Input,
|
|
2016
|
+
args: [{
|
|
2017
|
+
isSignal: true,
|
|
2018
|
+
alias: "defaultSelectedCountryCode",
|
|
2019
|
+
required: false
|
|
2020
|
+
}]
|
|
2021
|
+
}],
|
|
2022
|
+
_placeholder: [{
|
|
2023
|
+
type: i0.Input,
|
|
2024
|
+
args: [{
|
|
2025
|
+
isSignal: true,
|
|
2026
|
+
alias: "placeholder",
|
|
2027
|
+
required: false
|
|
2028
|
+
}]
|
|
2029
|
+
}],
|
|
2030
|
+
required: [{
|
|
2031
|
+
type: i0.Input,
|
|
2032
|
+
args: [{
|
|
2033
|
+
isSignal: true,
|
|
2034
|
+
alias: "required",
|
|
2035
|
+
required: false
|
|
2036
|
+
}]
|
|
2037
|
+
}],
|
|
2038
|
+
disabled: [{
|
|
2039
|
+
type: i0.Input,
|
|
2040
|
+
args: [{
|
|
2041
|
+
isSignal: true,
|
|
2042
|
+
alias: "disabled",
|
|
2043
|
+
required: false
|
|
2044
|
+
}]
|
|
2045
|
+
}]
|
|
2046
|
+
}
|
|
2047
|
+
});
|
|
2048
|
+
var SearchPipe = class SearchPipe {
|
|
2049
|
+
transform(countries, searchCriteria) {
|
|
2050
|
+
if (!searchCriteria || searchCriteria === "") return countries;
|
|
2051
|
+
return countries.filter((country) => {
|
|
2052
|
+
return `${country.name}${country.phoneCode}`.toLowerCase().includes(searchCriteria.toLowerCase());
|
|
2053
|
+
});
|
|
2054
|
+
}
|
|
2055
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2056
|
+
minVersion: "12.0.0",
|
|
2057
|
+
version: "22.3.0",
|
|
2058
|
+
ngImport: i0,
|
|
2059
|
+
type: SearchPipe,
|
|
2060
|
+
deps: [],
|
|
2061
|
+
target: i0.ɵɵFactoryTarget.Pipe
|
|
2062
|
+
});
|
|
2063
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({
|
|
2064
|
+
minVersion: "14.0.0",
|
|
2065
|
+
version: "22.3.0",
|
|
2066
|
+
ngImport: i0,
|
|
2067
|
+
type: SearchPipe,
|
|
2068
|
+
isStandalone: true,
|
|
2069
|
+
name: "search"
|
|
2070
|
+
});
|
|
2071
|
+
};
|
|
2072
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2073
|
+
minVersion: "12.0.0",
|
|
2074
|
+
version: "22.3.0",
|
|
2075
|
+
ngImport: i0,
|
|
2076
|
+
type: SearchPipe,
|
|
2077
|
+
decorators: [{
|
|
2078
|
+
type: Pipe,
|
|
2079
|
+
args: [{ name: "search" }]
|
|
2080
|
+
}]
|
|
2081
|
+
});
|
|
772
2082
|
export { PhoneInput, SearchPipe, phoneValidator };
|
|
773
|
-
|
|
2083
|
+
|
|
2084
|
+
//# sourceMappingURL=ngstarter-ui-components-phone-input.mjs.map
|