@seniorsistemas/angular-components 16.6.4 → 16.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/bundles/seniorsistemas-angular-components.umd.js +822 -55
  2. package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
  3. package/bundles/seniorsistemas-angular-components.umd.min.js +2 -2
  4. package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
  5. package/components/country-phone-picker/country-phone-picker.component.d.ts +47 -0
  6. package/components/country-phone-picker/country-phone-picker.module.d.ts +2 -0
  7. package/components/country-phone-picker/country-phone-picker.service.d.ts +10 -0
  8. package/components/country-phone-picker/index.d.ts +3 -0
  9. package/components/country-phone-picker/models/country-phone-data.d.ts +5 -0
  10. package/components/country-phone-picker/models/index.d.ts +3 -0
  11. package/components/country-phone-picker/models/ordination.d.ts +5 -0
  12. package/components/country-phone-picker/models/phone-selection-data.d.ts +6 -0
  13. package/components/country-phone-picker/resources/countries.d.ts +2 -0
  14. package/esm2015/components/country-phone-picker/country-phone-picker.component.js +231 -0
  15. package/esm2015/components/country-phone-picker/country-phone-picker.module.js +25 -0
  16. package/esm2015/components/country-phone-picker/country-phone-picker.service.js +43 -0
  17. package/esm2015/components/country-phone-picker/index.js +4 -0
  18. package/esm2015/components/country-phone-picker/models/country-phone-data.js +1 -0
  19. package/esm2015/components/country-phone-picker/models/index.js +2 -0
  20. package/esm2015/components/country-phone-picker/models/ordination.js +7 -0
  21. package/esm2015/components/country-phone-picker/models/phone-selection-data.js +1 -0
  22. package/esm2015/components/country-phone-picker/resources/countries.js +227 -0
  23. package/esm2015/components/file-upload/file-upload.module.js +2 -2
  24. package/esm2015/locale/fallback.js +227 -0
  25. package/esm2015/public-api.js +3 -1
  26. package/esm2015/seniorsistemas-angular-components.js +53 -52
  27. package/esm5/components/country-phone-picker/country-phone-picker.component.js +250 -0
  28. package/esm5/components/country-phone-picker/country-phone-picker.module.js +28 -0
  29. package/esm5/components/country-phone-picker/country-phone-picker.service.js +46 -0
  30. package/esm5/components/country-phone-picker/index.js +4 -0
  31. package/esm5/components/country-phone-picker/models/country-phone-data.js +1 -0
  32. package/esm5/components/country-phone-picker/models/index.js +2 -0
  33. package/esm5/components/country-phone-picker/models/ordination.js +7 -0
  34. package/esm5/components/country-phone-picker/models/phone-selection-data.js +1 -0
  35. package/esm5/components/country-phone-picker/resources/countries.js +227 -0
  36. package/esm5/components/file-upload/file-upload.module.js +2 -2
  37. package/esm5/locale/fallback.js +227 -0
  38. package/esm5/public-api.js +3 -1
  39. package/esm5/seniorsistemas-angular-components.js +53 -52
  40. package/fesm2015/seniorsistemas-angular-components.js +743 -4
  41. package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
  42. package/fesm5/seniorsistemas-angular-components.js +769 -5
  43. package/fesm5/seniorsistemas-angular-components.js.map +1 -1
  44. package/locale/fallback.d.ts +1 -0
  45. package/package.json +5 -1
  46. package/public-api.d.ts +2 -0
  47. package/seniorsistemas-angular-components.d.ts +52 -51
  48. package/seniorsistemas-angular-components.metadata.json +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('primeng/breadcrumb'), require('rxjs'), require('rxjs/operators'), require('primeng/tieredmenu'), require('primeng/tooltip'), require('primeng/dom'), require('primeng/calendar'), require('@angular/animations'), require('@angular/forms'), require('@angular/common/http'), require('angular2-hotkeys'), require('bignumber.js'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('@seniorsistemas/ng2-currency-mask'), require('@seniorsistemas/senior-platform-data'), require('moment'), require('ngx-cookie-service'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/inputswitch'), require('primeng/panel'), require('primeng/radiobutton'), require('primeng/progressbar'), require('@angular/platform-browser'), require('@ngx-translate/core'), require('cropperjs'), require('element-resize-detector'), require('@angular/cdk/a11y'), require('primeng/scrollpanel'), require('primeng/sidebar'), require('primeng/api'), require('primeng/confirmdialog'), require('@codemirror/view'), require('@codemirror/state'), require('@codemirror/lint'), require('@codemirror/language'), require('@lezer/generator'), require('@codemirror/highlight'), require('@codemirror/autocomplete'), require('@codemirror/tooltip'), require('@codemirror/gutter')) :
3
- typeof define === 'function' && define.amd ? define('@seniorsistemas/angular-components', ['exports', '@angular/core', '@angular/common', '@angular/router', 'primeng/breadcrumb', 'rxjs', 'rxjs/operators', 'primeng/tieredmenu', 'primeng/tooltip', 'primeng/dom', 'primeng/calendar', '@angular/animations', '@angular/forms', '@angular/common/http', 'angular2-hotkeys', 'bignumber.js', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', '@seniorsistemas/ng2-currency-mask', '@seniorsistemas/senior-platform-data', 'moment', 'ngx-cookie-service', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/inputswitch', 'primeng/panel', 'primeng/radiobutton', 'primeng/progressbar', '@angular/platform-browser', '@ngx-translate/core', 'cropperjs', 'element-resize-detector', '@angular/cdk/a11y', 'primeng/scrollpanel', 'primeng/sidebar', 'primeng/api', 'primeng/confirmdialog', '@codemirror/view', '@codemirror/state', '@codemirror/lint', '@codemirror/language', '@lezer/generator', '@codemirror/highlight', '@codemirror/autocomplete', '@codemirror/tooltip', '@codemirror/gutter'], factory) :
4
- (global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['angular-components'] = {}), global.ng.core, global.ng.common, global.ng.router, global.breadcrumb, global.rxjs, global.rxjs.operators, global.tieredmenu, global.tooltip, global.dom, global.calendar, global.ng.animations, global.ng.forms, global.ng.common.http, global.angular2Hotkeys, global.BigNumber, global.autocomplete$1, global.dialog, global.table, global.ng2CurrencyMask, global.seniorPlatformData, global.moment_, global.ngxCookieService, global.ng2CurrencyMask$1, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.inputswitch, global.panel, global.radiobutton, global.progressbar, global.ng.platformBrowser, global.core$1, global.Cropper, global.elementResizeDetectorMaker_, global.ng.cdk.a11y, global.scrollpanel, global.sidebar, global.api, global.confirmdialog, global.view, global.state, global.lint, global.language, global.generator, global.highlight, global.autocomplete$2, global.tooltip$1, global.gutter));
5
- }(this, (function (exports, core, common, router, breadcrumb, rxjs, operators, tieredmenu, tooltip, dom, calendar, animations, forms, http, angular2Hotkeys, BigNumber, autocomplete$1, dialog, table, ng2CurrencyMask, seniorPlatformData, moment_, ngxCookieService, ng2CurrencyMask$1, button, checkbox, chips, dropdown, fieldset, inputmask, inputtext, inputtextarea, keyfilter, multiselect, inputswitch, panel, radiobutton, progressbar, platformBrowser, core$1, Cropper, elementResizeDetectorMaker_, a11y, scrollpanel, sidebar, api, confirmdialog, view, state, lint, language, generator, highlight, autocomplete$2, tooltip$1, gutter) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/router'), require('primeng/breadcrumb'), require('rxjs'), require('rxjs/operators'), require('primeng/tieredmenu'), require('primeng/tooltip'), require('primeng/dom'), require('primeng/calendar'), require('@angular/animations'), require('@angular/forms'), require('@ngx-translate/core'), require('ngx-mask'), require('@angular/common/http'), require('angular2-hotkeys'), require('bignumber.js'), require('primeng/autocomplete'), require('primeng/dialog'), require('primeng/table'), require('@seniorsistemas/ng2-currency-mask'), require('@seniorsistemas/senior-platform-data'), require('moment'), require('ngx-cookie-service'), require('ng2-currency-mask'), require('primeng/button'), require('primeng/checkbox'), require('primeng/chips'), require('primeng/dropdown'), require('primeng/fieldset'), require('primeng/inputmask'), require('primeng/inputtext'), require('primeng/inputtextarea'), require('primeng/keyfilter'), require('primeng/multiselect'), require('primeng/inputswitch'), require('primeng/panel'), require('primeng/radiobutton'), require('primeng/progressbar'), require('@angular/platform-browser'), require('cropperjs'), require('element-resize-detector'), require('@angular/cdk/a11y'), require('primeng/scrollpanel'), require('primeng/sidebar'), require('primeng/api'), require('primeng/confirmdialog'), require('@codemirror/view'), require('@codemirror/state'), require('@codemirror/lint'), require('@codemirror/language'), require('@lezer/generator'), require('@codemirror/highlight'), require('@codemirror/autocomplete'), require('@codemirror/tooltip'), require('@codemirror/gutter')) :
3
+ typeof define === 'function' && define.amd ? define('@seniorsistemas/angular-components', ['exports', '@angular/core', '@angular/common', '@angular/router', 'primeng/breadcrumb', 'rxjs', 'rxjs/operators', 'primeng/tieredmenu', 'primeng/tooltip', 'primeng/dom', 'primeng/calendar', '@angular/animations', '@angular/forms', '@ngx-translate/core', 'ngx-mask', '@angular/common/http', 'angular2-hotkeys', 'bignumber.js', 'primeng/autocomplete', 'primeng/dialog', 'primeng/table', '@seniorsistemas/ng2-currency-mask', '@seniorsistemas/senior-platform-data', 'moment', 'ngx-cookie-service', 'ng2-currency-mask', 'primeng/button', 'primeng/checkbox', 'primeng/chips', 'primeng/dropdown', 'primeng/fieldset', 'primeng/inputmask', 'primeng/inputtext', 'primeng/inputtextarea', 'primeng/keyfilter', 'primeng/multiselect', 'primeng/inputswitch', 'primeng/panel', 'primeng/radiobutton', 'primeng/progressbar', '@angular/platform-browser', 'cropperjs', 'element-resize-detector', '@angular/cdk/a11y', 'primeng/scrollpanel', 'primeng/sidebar', 'primeng/api', 'primeng/confirmdialog', '@codemirror/view', '@codemirror/state', '@codemirror/lint', '@codemirror/language', '@lezer/generator', '@codemirror/highlight', '@codemirror/autocomplete', '@codemirror/tooltip', '@codemirror/gutter'], factory) :
4
+ (global = global || self, factory((global.seniorsistemas = global.seniorsistemas || {}, global.seniorsistemas['angular-components'] = {}), global.ng.core, global.ng.common, global.ng.router, global.breadcrumb, global.rxjs, global.rxjs.operators, global.tieredmenu, global.tooltip, global.dom, global.calendar, global.ng.animations, global.ng.forms, global.core$1, global.ngxMask, global.ng.common.http, global.angular2Hotkeys, global.BigNumber, global.autocomplete$1, global.dialog, global.table, global.ng2CurrencyMask, global.seniorPlatformData, global.moment_, global.ngxCookieService, global.ng2CurrencyMask$1, global.button, global.checkbox, global.chips, global.dropdown, global.fieldset, global.inputmask, global.inputtext, global.inputtextarea, global.keyfilter, global.multiselect, global.inputswitch, global.panel, global.radiobutton, global.progressbar, global.ng.platformBrowser, global.Cropper, global.elementResizeDetectorMaker_, global.ng.cdk.a11y, global.scrollpanel, global.sidebar, global.api, global.confirmdialog, global.view, global.state, global.lint, global.language, global.generator, global.highlight, global.autocomplete$2, global.tooltip$1, global.gutter));
5
+ }(this, (function (exports, core, common, router, breadcrumb, rxjs, operators, tieredmenu, tooltip, dom, calendar, animations, forms, core$1, ngxMask, http, angular2Hotkeys, BigNumber, autocomplete$1, dialog, table, ng2CurrencyMask, seniorPlatformData, moment_, ngxCookieService, ng2CurrencyMask$1, button, checkbox, chips, dropdown, fieldset, inputmask, inputtext, inputtextarea, keyfilter, multiselect, inputswitch, panel, radiobutton, progressbar, platformBrowser, Cropper, elementResizeDetectorMaker_, a11y, scrollpanel, sidebar, api, confirmdialog, view, state, lint, language, generator, highlight, autocomplete$2, tooltip$1, gutter) { 'use strict';
6
6
 
7
7
  var BigNumber__default = 'default' in BigNumber ? BigNumber['default'] : BigNumber;
8
8
  Cropper = Cropper && Object.prototype.hasOwnProperty.call(Cropper, 'default') ? Cropper['default'] : Cropper;
@@ -1258,6 +1258,542 @@
1258
1258
  return ControlErrorsModule;
1259
1259
  }());
1260
1260
 
1261
+ var countries = [
1262
+ { id: "br", ddi: "+55", mask: ["(00) 0000-00009", "(00) 00000-0000"] },
1263
+ { id: "us", ddi: "+1", mask: "000-0000" },
1264
+ { id: "co", ddi: "+57", mask: "000 0000000" },
1265
+ { id: "ar", ddi: "+54", mask: "000 00-0000-0000" },
1266
+ { id: "cl", ddi: "+56", mask: "(0) 0000-0000" },
1267
+ { id: "py", ddi: "+595", mask: "0000 000000" },
1268
+ { id: "uy", ddi: "+598", mask: "000 000 000" },
1269
+ { id: "cn", ddi: "+86", mask: "000 0000 0000" },
1270
+ { id: "ca", ddi: "+1", mask: "000-0000" },
1271
+ { id: "as", ddi: "+1684", mask: "000-0000" },
1272
+ { id: "ai", ddi: "+1264", mask: "000-0000" },
1273
+ { id: "ag", ddi: "+1268", mask: "000-0000" },
1274
+ { id: "bs", ddi: "+1242", mask: "000-0000" },
1275
+ { id: "bb", ddi: "+1246", mask: "000-0000" },
1276
+ { id: "bm", ddi: "+1441", mask: "000-0000" },
1277
+ { id: "vg", ddi: "+1284", mask: "000-0000" },
1278
+ { id: "ky", ddi: "+1345", mask: "000-0000" },
1279
+ { id: "dm", ddi: "+1767", mask: "000-0000" },
1280
+ { id: "do", ddi: "+1809", mask: "000-0000" },
1281
+ { id: "gd", ddi: "+1473", mask: "000-0000" },
1282
+ { id: "gu", ddi: "+1671", mask: "000-0000" },
1283
+ { id: "jm", ddi: "+1876", mask: "000-0000" },
1284
+ { id: "ms", ddi: "+1664", mask: "000-0000" },
1285
+ { id: "mp", ddi: "+1670", mask: "000-0000" },
1286
+ { id: "pr", ddi: "+1", mask: "000-0000" },
1287
+ { id: "kn", ddi: "+1869", mask: "000-0000" },
1288
+ { id: "lc", ddi: "+1758", mask: "000-0000" },
1289
+ { id: "vc", ddi: "+1784", mask: "000-0000" },
1290
+ { id: "tt", ddi: "+1868", mask: "000-0000" },
1291
+ { id: "tc", ddi: "+1649", mask: "000-0000" },
1292
+ { id: "fi", ddi: "+358", mask: "000 0000000" },
1293
+ { id: "rs", ddi: "+381", mask: "000 0000000" },
1294
+ { id: "zm", ddi: "+260", mask: "000 0000000" },
1295
+ { id: "af", ddi: "+93", mask: "000 000 0000" },
1296
+ { id: "al", ddi: "+355", mask: "000 000 0000" },
1297
+ { id: "hr", ddi: "+385", mask: "000 000 0000" },
1298
+ { id: "ec", ddi: "+593", mask: "000 000 0000" },
1299
+ { id: "et", ddi: "+251", mask: "000 000 0000" },
1300
+ { id: "gh", ddi: "+233", mask: "000 000 0000" },
1301
+ { id: "gr", ddi: "+30", mask: "000 000 0000" },
1302
+ { id: "ie", ddi: "+353", mask: "000 000 0000" },
1303
+ { id: "it", ddi: "+39", mask: "000 000 0000" },
1304
+ { id: "lr", ddi: "+231", mask: "000 000 0000" },
1305
+ { id: "na", ddi: "+264", mask: "000 000 0000" },
1306
+ { id: "nz", ddi: "+64", mask: "000 000 0000" },
1307
+ { id: "sa", ddi: "+966", mask: "000 000 0000" },
1308
+ { id: "za", ddi: "+27", mask: "000 000 0000" },
1309
+ { id: "lk", ddi: "+94", mask: "000 000 0000" },
1310
+ { id: "sd", ddi: "+249", mask: "000 000 0000" },
1311
+ { id: "th", ddi: "+66", mask: "000 000 0000" },
1312
+ { id: "ua", ddi: "+380", mask: "000 000 0000" },
1313
+ { id: "ae", ddi: "+971", mask: "000 000 0000" },
1314
+ { id: "va", ddi: "+39", mask: "000 000 0000" },
1315
+ { id: "zw", ddi: "+263", mask: "000 000 0000" },
1316
+ { id: "dz", ddi: "+213", mask: "0000 00 00 00" },
1317
+ { id: "be", ddi: "+32", mask: "0000 00 00 00" },
1318
+ { id: "yt", ddi: "+262", mask: "0000 00 00 00" },
1319
+ { id: "bl", ddi: "+590", mask: "0000 00 00 00" },
1320
+ { id: "mf", ddi: "+1599", mask: "0000 00 00 00" },
1321
+ { id: "ad", ddi: "+376", mask: "000-000" },
1322
+ { id: "ao", ddi: "+244", mask: "000 000 000" },
1323
+ { id: "ba", ddi: "+387", mask: "000 000 000" },
1324
+ { id: "bg", ddi: "+359", mask: "000 000 000" },
1325
+ { id: "kh", ddi: "+855", mask: "000 000 000" },
1326
+ { id: "cz", ddi: "+420", mask: "000 000 000" },
1327
+ { id: "gq", ddi: "+240", mask: "000 000 000" },
1328
+ { id: "gw", ddi: "+245", mask: "000 000 000" },
1329
+ { id: "li", ddi: "+423", mask: "000 000 000" },
1330
+ { id: "lu", ddi: "+352", mask: "000 000 000" },
1331
+ { id: "mk", ddi: "+389", mask: "000 000 000" },
1332
+ { id: "me", ddi: "+382", mask: "000 000 000" },
1333
+ { id: "pe", ddi: "+51", mask: "000 000 000" },
1334
+ { id: "pl", ddi: "+48", mask: "000 000 000" },
1335
+ { id: "pt", ddi: "+351", mask: "000 000 000" },
1336
+ { id: "si", ddi: "+386", mask: "000 000 000" },
1337
+ { id: "am", ddi: "+374", mask: "000 000000" },
1338
+ { id: "aw", ddi: "+297", mask: "000 0000" },
1339
+ { id: "bn", ddi: "+673", mask: "000 0000" },
1340
+ { id: "fj", ddi: "+679", mask: "000 0000" },
1341
+ { id: "gm", ddi: "+220", mask: "000 0000" },
1342
+ { id: "gy", ddi: "+592", mask: "000 0000" },
1343
+ { id: "is", ddi: "+354", mask: "000 0000" },
1344
+ { id: "fm", ddi: "+691", mask: "000 0000" },
1345
+ { id: "nr", ddi: "+674", mask: "000 0000" },
1346
+ { id: "nu", ddi: "+683", mask: "000 0000" },
1347
+ { id: "pw", ddi: "+680", mask: "000 0000" },
1348
+ { id: "st", ddi: "+239", mask: "000 0000" },
1349
+ { id: "to", ddi: "+676", mask: "000 0000" },
1350
+ { id: "vu", ddi: "+678", mask: "000 0000" },
1351
+ { id: "fk", ddi: "+500", mask: "00000" },
1352
+ { id: "fo", ddi: "+298", mask: "00000" },
1353
+ { id: "sh", ddi: "+290", mask: "00000" },
1354
+ { id: "au", ddi: "+61", mask: "0000 000 000" },
1355
+ { id: "cx", ddi: "+61", mask: "0000 000 000" },
1356
+ { id: "cc", ddi: "+61", mask: "0000 000 000" },
1357
+ { id: "cd", ddi: "+243", mask: "0000 000 000" },
1358
+ { id: "kg", ddi: "+996", mask: "0000 000 000" },
1359
+ { id: "ro", ddi: "+40", mask: "0000 000 000" },
1360
+ { id: "rw", ddi: "+250", mask: "0000 000 000" },
1361
+ { id: "sk", ddi: "+421", mask: "0000 000 000" },
1362
+ { id: "sy", ddi: "+963", mask: "0000 000 000" },
1363
+ { id: "tw", ddi: "+886", mask: "0000 000 000" },
1364
+ { id: "tz", ddi: "+255", mask: "0000 000 000" },
1365
+ { id: "ye", ddi: "+967", mask: "0000 000 000" },
1366
+ { id: "at", ddi: "+43", mask: "0000 000000" },
1367
+ { id: "ke", ddi: "+254", mask: "0000 000000" },
1368
+ { id: "ug", ddi: "+256", mask: "0000 000000" },
1369
+ { id: "az", ddi: "+994", mask: "000 000 00 00" },
1370
+ { id: "ch", ddi: "+41", mask: "000 000 00 00" },
1371
+ { id: "vn", ddi: "+84", mask: "000 000 00 00" },
1372
+ { id: "bh", ddi: "+973", mask: "0000 0000" },
1373
+ { id: "cr", ddi: "+506", mask: "0000 0000" },
1374
+ { id: "sv", ddi: "+503", mask: "0000 0000" },
1375
+ { id: "ee", ddi: "+372", mask: "0000 0000" },
1376
+ { id: "sz", ddi: "+268", mask: "0000 0000" },
1377
+ { id: "gt", ddi: "+502", mask: "0000 0000" },
1378
+ { id: "hk", ddi: "+852", mask: "0000 0000" },
1379
+ { id: "ls", ddi: "+266", mask: "0000 0000" },
1380
+ { id: "mo", ddi: "+853", mask: "0000 0000" },
1381
+ { id: "mt", ddi: "+356", mask: "0000 0000" },
1382
+ { id: "mu", ddi: "+230", mask: "0000 0000" },
1383
+ { id: "mn", ddi: "+976", mask: "0000 0000" },
1384
+ { id: "ni", ddi: "+505", mask: "0000 0000" },
1385
+ { id: "om", ddi: "+968", mask: "0000 0000" },
1386
+ { id: "pg", ddi: "+675", mask: "0000 0000" },
1387
+ { id: "qa", ddi: "+974", mask: "0000 0000" },
1388
+ { id: "sg", ddi: "+65", mask: "0000 0000" },
1389
+ { id: "tl", ddi: "+670", mask: "0000 0000" },
1390
+ { id: "bd", ddi: "+880", mask: "00000 000000" },
1391
+ { id: "im", ddi: "+44", mask: "00000 000000" },
1392
+ { id: "by", ddi: "+375", mask: "0 000 000-00-00" },
1393
+ { id: "bz", ddi: "+501", mask: "000-0000" },
1394
+ { id: "mv", ddi: "+960", mask: "000-0000" },
1395
+ { id: "mh", ddi: "+692", mask: "000-0000" },
1396
+ { id: "sr", ddi: "+597", mask: "000-0000" },
1397
+ { id: "bj", ddi: "+229", mask: "00 00 00 00" },
1398
+ { id: "bt", ddi: "+975", mask: "00 00 00 00" },
1399
+ { id: "bf", ddi: "+226", mask: "00 00 00 00" },
1400
+ { id: "bi", ddi: "+257", mask: "00 00 00 00" },
1401
+ { id: "cf", ddi: "+236", mask: "00 00 00 00" },
1402
+ { id: "td", ddi: "+235", mask: "00 00 00 00" },
1403
+ { id: "ci", ddi: "+225", mask: "00 00 00 00" },
1404
+ { id: "dk", ddi: "+45", mask: "00 00 00 00" },
1405
+ { id: "dj", ddi: "+253", mask: "00 00 00 00" },
1406
+ { id: "fr", ddi: "+33", mask: "00 00 00 00" },
1407
+ { id: "pf", ddi: "+689", mask: "00 00 00 00" },
1408
+ { id: "ga", ddi: "+241", mask: "00 00 00 00" },
1409
+ { id: "ml", ddi: "+223", mask: "00 00 00 00" },
1410
+ { id: "mr", ddi: "+222", mask: "00 00 00 00" },
1411
+ { id: "ne", ddi: "+227", mask: "00 00 00 00" },
1412
+ { id: "sm", ddi: "+378", mask: "00 00 00 00" },
1413
+ { id: "tg", ddi: "+228", mask: "00 00 00 00" },
1414
+ { id: "bo", ddi: "+591", mask: "00000000" },
1415
+ { id: "gi", ddi: "+350", mask: "00000000" },
1416
+ { id: "ki", ddi: "+686", mask: "00000000" },
1417
+ { id: "tv", ddi: "+688", mask: "00000000" },
1418
+ { id: "bw", ddi: "+267", mask: "00 000 000" },
1419
+ { id: "er", ddi: "+291", mask: "00 000 000" },
1420
+ { id: "lv", ddi: "+371", mask: "00 000 000" },
1421
+ { id: "lb", ddi: "+961", mask: "00 000 000" },
1422
+ { id: "tn", ddi: "+216", mask: "00 000 000" },
1423
+ { id: "cm", ddi: "+237", mask: "0 00 00 00 00" },
1424
+ { id: "cv", ddi: "+238", mask: "000 00 00" },
1425
+ { id: "km", ddi: "+269", mask: "000 00 00" },
1426
+ { id: "pm", ddi: "+508", mask: "000 00 00" },
1427
+ { id: "cg", ddi: "+242", mask: "00 000 0000" },
1428
+ { id: "mz", ddi: "+258", mask: "00 000 0000" },
1429
+ { id: "mm", ddi: "+95", mask: "00 000 0000" },
1430
+ { id: "ck", ddi: "+682", mask: "00 000" },
1431
+ { id: "cu", ddi: "+53", mask: "00 000000" },
1432
+ { id: "cy", ddi: "+357", mask: "00 000000" },
1433
+ { id: "eg", ddi: "+20", mask: "0000 000 0000" },
1434
+ { id: "ir", ddi: "+98", mask: "0000 000 0000" },
1435
+ { id: "iq", ddi: "+964", mask: "0000 000 0000" },
1436
+ { id: "ng", ddi: "+234", mask: "0000 000 0000" },
1437
+ { id: "kp", ddi: "+850", mask: "0000 000 0000" },
1438
+ { id: "ph", ddi: "+63", mask: "0000 000 0000" },
1439
+ { id: "ge", ddi: "+995", mask: "000 00 00 00" },
1440
+ { id: "gn", ddi: "+224", mask: "000 00 00 00" },
1441
+ { id: "es", ddi: "+34", mask: "000 00 00 00" },
1442
+ { id: "de", ddi: "+49", mask: "00000 0000000" },
1443
+ { id: "gl", ddi: "+299", mask: "00 00 00" },
1444
+ { id: "wf", ddi: "+681", mask: "00 00 00" },
1445
+ { id: "ht", ddi: "+509", mask: "00 00 0000" },
1446
+ { id: "hn", ddi: "+504", mask: "0000-0000" },
1447
+ { id: "pa", ddi: "+507", mask: "0000-0000" },
1448
+ { id: "hu", ddi: "+36", mask: "(00) 000 0000" },
1449
+ { id: "in", ddi: "+91", mask: "000000 00000" },
1450
+ { id: "id", ddi: "+62", mask: "0000-000-000" },
1451
+ { id: "il", ddi: "+972", mask: "000-000-0000" },
1452
+ { id: "jp", ddi: "+81", mask: "000-000-0000" },
1453
+ { id: "jo", ddi: "+962", mask: "00 0000 0000" },
1454
+ { id: "kz", ddi: "+7", mask: "0 (000) 000-0000" },
1455
+ { id: "kw", ddi: "+965", mask: "000 00000" },
1456
+ { id: "la", ddi: "+856", mask: "000 00 000 000" },
1457
+ { id: "ly", ddi: "+218", mask: "000-0000000" },
1458
+ { id: "lt", ddi: "+370", mask: "(0-000) 00000" },
1459
+ { id: "np", ddi: "+977", mask: "(0-000) 00000" },
1460
+ { id: "mg", ddi: "+261", mask: "000 00 000 00" },
1461
+ { id: "mw", ddi: "+265", mask: "000 00 000 00" },
1462
+ { id: "my", ddi: "+60", mask: "000-000 0000" },
1463
+ { id: "mx", ddi: "+52", mask: "000 000 000 0000" },
1464
+ { id: "md", ddi: "+373", mask: "0000 00 000" },
1465
+ { id: "mc", ddi: "+377", mask: "00 00 00 00 00" },
1466
+ { id: "ma", ddi: "+212", mask: "0000-000000" },
1467
+ { id: "nl", ddi: "+31", mask: "00 00000000" },
1468
+ { id: "nc", ddi: "+687", mask: "00.00.00" },
1469
+ { id: "no", ddi: "+47", mask: "000 00 000" },
1470
+ { id: "pk", ddi: "+92", mask: "0000 0000000" },
1471
+ { id: "ru", ddi: "+7", mask: "0 (000) 000-00-00" },
1472
+ { id: "ws", ddi: "+685", mask: "00 00000" },
1473
+ { id: "sb", ddi: "+677", mask: "00 00000" },
1474
+ { id: "sn", ddi: "+221", mask: "00 000 00 00" },
1475
+ { id: "sc", ddi: "+248", mask: "0 000 000" },
1476
+ { id: "sl", ddi: "+232", mask: "(000) 000000" },
1477
+ { id: "so", ddi: "+252", mask: "0 0000000" },
1478
+ { id: "kr", ddi: "+82", mask: "000-0000-0000" },
1479
+ { id: "se", ddi: "+46", mask: "000-000 00 00" },
1480
+ { id: "tj", ddi: "+992", mask: "000 00 0000" },
1481
+ { id: "tk", ddi: "+690", mask: "0000" },
1482
+ { id: "tr", ddi: "+90", mask: "0000 000 00 00" },
1483
+ { id: "tm", ddi: "+993", mask: "0 00 000000" },
1484
+ { id: "uz", ddi: "+998", mask: "0 00 000 00 00" },
1485
+ { id: "ve", ddi: "+58", mask: "0000-0000000" },
1486
+ ];
1487
+
1488
+
1489
+ (function (Ordination) {
1490
+ Ordination["NO"] = "no";
1491
+ Ordination["AZ"] = "az";
1492
+ Ordination["ZA"] = "za";
1493
+ })(exports.Ordination || (exports.Ordination = {}));
1494
+
1495
+ var CountryPhonePickerService = /** @class */ (function () {
1496
+ function CountryPhonePickerService(translate) {
1497
+ this.translate = translate;
1498
+ }
1499
+ CountryPhonePickerService.prototype.getCountries = function (ordination) {
1500
+ switch (ordination) {
1501
+ case exports.Ordination.AZ:
1502
+ return this.sortAlphabetically();
1503
+ case exports.Ordination.ZA:
1504
+ return this.sortAlphabeticallyDescending();
1505
+ case exports.Ordination.NO:
1506
+ default:
1507
+ return countries;
1508
+ }
1509
+ };
1510
+ CountryPhonePickerService.prototype.sortAlphabetically = function () {
1511
+ var _this = this;
1512
+ return countries.sort(function (a, b) {
1513
+ var aName = _this.translate.instant("platform.angular_components_" + a.id);
1514
+ var bName = _this.translate.instant("platform.angular_components_" + b.id);
1515
+ return aName.localeCompare(bName);
1516
+ });
1517
+ };
1518
+ CountryPhonePickerService.prototype.sortAlphabeticallyDescending = function () {
1519
+ var _this = this;
1520
+ return countries.sort(function (a, b) {
1521
+ var aName = _this.translate.instant("platform.angular_components_" + a.id);
1522
+ var bName = _this.translate.instant("platform.angular_components_" + b.id);
1523
+ return bName.localeCompare(aName);
1524
+ });
1525
+ };
1526
+ CountryPhonePickerService.ctorParameters = function () { return [
1527
+ { type: core$1.TranslateService }
1528
+ ]; };
1529
+ CountryPhonePickerService = __decorate([
1530
+ core.Injectable()
1531
+ ], CountryPhonePickerService);
1532
+ return CountryPhonePickerService;
1533
+ }());
1534
+
1535
+ var CountryPhonePickerComponent = /** @class */ (function () {
1536
+ function CountryPhonePickerComponent(countryPhonePickerService, translate, eRef) {
1537
+ var _this = this;
1538
+ this.countryPhonePickerService = countryPhonePickerService;
1539
+ this.translate = translate;
1540
+ this.eRef = eRef;
1541
+ this.currentItemIndex = 0;
1542
+ this.phone = new forms.FormControl("");
1543
+ this.filter = new forms.FormControl("");
1544
+ this._open = false;
1545
+ this.offsetTop = 0;
1546
+ this.ordination = exports.Ordination.NO;
1547
+ this.selected = new core.EventEmitter();
1548
+ this.tabindex = 0;
1549
+ this._filterCountries = function (value) {
1550
+ if (!value) {
1551
+ _this.filteredCountriesList = _this.countriesList;
1552
+ }
1553
+ else {
1554
+ _this.filteredCountriesList = _this.countriesList.filter(function (country) {
1555
+ var countryName = _this.translate.instant("platform.angular_components.country_name_" + country.id);
1556
+ return countryName.toLowerCase().includes(value.toLowerCase());
1557
+ });
1558
+ }
1559
+ };
1560
+ }
1561
+ CountryPhonePickerComponent_1 = CountryPhonePickerComponent;
1562
+ CountryPhonePickerComponent.prototype.writeValue = function (value) {
1563
+ this.value = value;
1564
+ };
1565
+ CountryPhonePickerComponent.prototype.registerOnChange = function (onChange) {
1566
+ this.onChange = onChange;
1567
+ };
1568
+ CountryPhonePickerComponent.prototype.registerOnTouched = function (onTouched) {
1569
+ this.onTouched = onTouched;
1570
+ };
1571
+ CountryPhonePickerComponent.prototype.onClickout = function (event) {
1572
+ if (!this.eRef.nativeElement.contains(event.target)) {
1573
+ this.open = false;
1574
+ }
1575
+ };
1576
+ CountryPhonePickerComponent.prototype.ngOnInit = function () {
1577
+ var _this = this;
1578
+ var _a;
1579
+ var countries = this.countryPhonePickerService.getCountries(this.ordination);
1580
+ this.filter.valueChanges.subscribe(this._filterCountries);
1581
+ if ((_a = this.countries) === null || _a === void 0 ? void 0 : _a.length) {
1582
+ this.countriesList = countries.filter(function (country) { return _this.countries.includes(country.id); });
1583
+ }
1584
+ else {
1585
+ this.countriesList = countries;
1586
+ }
1587
+ this.filteredCountriesList = this.countriesList;
1588
+ this.selectedItem = this._getSelectedCountryDefault();
1589
+ this.phone.valueChanges.subscribe(function (value) {
1590
+ _this.value = {
1591
+ id: _this.selectedItem.id,
1592
+ ddi: _this.selectedItem.ddi,
1593
+ rawValue: value !== null && value !== void 0 ? value : "",
1594
+ value: value ? "" + _this._applyMask(value) : "",
1595
+ };
1596
+ _this.onChange(_this.value);
1597
+ });
1598
+ };
1599
+ CountryPhonePickerComponent.prototype.onKeydown = function (event) {
1600
+ if (event.key === "Enter" || event.key === " ") {
1601
+ if (this.open) {
1602
+ this.selectedItem = this.countriesList[this.currentItemIndex];
1603
+ this.selected.emit(this.selectedItem);
1604
+ }
1605
+ this.open = !this.open;
1606
+ }
1607
+ else if (event.key === "Escape") {
1608
+ this.open = false;
1609
+ }
1610
+ else if (event.key === "ArrowDown") {
1611
+ this._moveToDown();
1612
+ }
1613
+ else if (event.key === "ArrowUp") {
1614
+ this._moveToUp();
1615
+ }
1616
+ };
1617
+ Object.defineProperty(CountryPhonePickerComponent.prototype, "open", {
1618
+ get: function () {
1619
+ return this._open;
1620
+ },
1621
+ set: function (open) {
1622
+ this._open = open;
1623
+ if (!open) {
1624
+ this.phoneInput.nativeElement.focus();
1625
+ }
1626
+ },
1627
+ enumerable: true,
1628
+ configurable: true
1629
+ });
1630
+ CountryPhonePickerComponent.prototype.onBlur = function () {
1631
+ this.open = false;
1632
+ this.currentItemIndex = this.countriesList.indexOf(this.selectedItem);
1633
+ };
1634
+ CountryPhonePickerComponent.prototype.onSelectItem = function (country) {
1635
+ this.open = false;
1636
+ this.selectedItem = country;
1637
+ this.phone.setValue("");
1638
+ this.currentItemIndex = this.countriesList.indexOf(this.selectedItem);
1639
+ this.selected.emit(this.selectedItem);
1640
+ };
1641
+ CountryPhonePickerComponent.prototype.onCleanFilter = function () {
1642
+ this.filter.setValue("");
1643
+ };
1644
+ CountryPhonePickerComponent.prototype.onPhoneInputFocus = function () {
1645
+ this.open = false;
1646
+ };
1647
+ CountryPhonePickerComponent.prototype.getMask = function () {
1648
+ var mask = this.selectedItem.mask;
1649
+ if (Array.isArray(mask)) {
1650
+ return !this.value || this.value.value.length <= mask[0].length - 1
1651
+ ? mask[0] // fixo
1652
+ : mask[1]; // celular
1653
+ }
1654
+ else {
1655
+ return mask;
1656
+ }
1657
+ };
1658
+ CountryPhonePickerComponent.prototype.getPlaceholder = function () {
1659
+ return this.getMask().replace(/9/g, "");
1660
+ };
1661
+ CountryPhonePickerComponent.prototype._getSelectedCountryDefault = function () {
1662
+ if (!this.countriesList.length) {
1663
+ throw new Error("No country loaded");
1664
+ }
1665
+ var filteredByBr = this.countriesList.filter(function (country) { return country.id === "br"; });
1666
+ return filteredByBr.length ? filteredByBr[0] : this.countriesList[0];
1667
+ };
1668
+ CountryPhonePickerComponent.prototype._moveToUp = function () {
1669
+ if (this.currentItemIndex == 0) {
1670
+ return;
1671
+ }
1672
+ this.currentItemIndex--;
1673
+ var selectList = document.querySelector(".select-list");
1674
+ var item = selectList.children[this.currentItemIndex];
1675
+ if (item.offsetTop - selectList.offsetTop <= this.offsetTop) {
1676
+ this.offsetTop -= 45;
1677
+ selectList.scrollTo(0, this.offsetTop);
1678
+ }
1679
+ };
1680
+ CountryPhonePickerComponent.prototype._moveToDown = function () {
1681
+ if (this.currentItemIndex >= this.countriesList.length - 1) {
1682
+ return;
1683
+ }
1684
+ this.currentItemIndex++;
1685
+ var selectList = document.querySelector(".select-list");
1686
+ var item = selectList.children[this.currentItemIndex];
1687
+ if (item.offsetTop - selectList.offsetTop > this.offsetTop + 180) {
1688
+ this.offsetTop += 45;
1689
+ selectList.scrollTo(0, this.offsetTop);
1690
+ }
1691
+ };
1692
+ CountryPhonePickerComponent.prototype._applyMask = function (value) {
1693
+ var e_1, _a;
1694
+ var mask;
1695
+ if (Array.isArray(this.selectedItem.mask)) {
1696
+ var rawMask = this.selectedItem.mask[0].replace(/[^0]/g, "");
1697
+ mask = value.length <= rawMask.length
1698
+ ? this.selectedItem.mask[0] + "\0"
1699
+ : this.selectedItem.mask[1] + "\0";
1700
+ }
1701
+ else {
1702
+ mask = this.selectedItem.mask;
1703
+ }
1704
+ var tokens = "";
1705
+ var replace = "";
1706
+ var acumulador = 0;
1707
+ var contador = 0;
1708
+ try {
1709
+ for (var mask_1 = __values(mask), mask_1_1 = mask_1.next(); !mask_1_1.done; mask_1_1 = mask_1.next()) {
1710
+ var token = mask_1_1.value;
1711
+ if (isNaN(parseInt(token))) {
1712
+ if (acumulador) {
1713
+ tokens += "(\\d{" + acumulador + "})";
1714
+ replace += "$" + ++contador;
1715
+ acumulador = 0;
1716
+ }
1717
+ if (token !== "\0") {
1718
+ replace += token;
1719
+ }
1720
+ }
1721
+ else {
1722
+ acumulador++;
1723
+ }
1724
+ }
1725
+ }
1726
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1727
+ finally {
1728
+ try {
1729
+ if (mask_1_1 && !mask_1_1.done && (_a = mask_1.return)) _a.call(mask_1);
1730
+ }
1731
+ finally { if (e_1) throw e_1.error; }
1732
+ }
1733
+ tokens = "^" + tokens + "*";
1734
+ return this.phone.value.replace(new RegExp(tokens), replace);
1735
+ };
1736
+ var CountryPhonePickerComponent_1;
1737
+ CountryPhonePickerComponent.ctorParameters = function () { return [
1738
+ { type: CountryPhonePickerService },
1739
+ { type: core$1.TranslateService },
1740
+ { type: core.ElementRef }
1741
+ ]; };
1742
+ __decorate([
1743
+ core.Input()
1744
+ ], CountryPhonePickerComponent.prototype, "countries", void 0);
1745
+ __decorate([
1746
+ core.Input()
1747
+ ], CountryPhonePickerComponent.prototype, "ordination", void 0);
1748
+ __decorate([
1749
+ core.Output()
1750
+ ], CountryPhonePickerComponent.prototype, "selected", void 0);
1751
+ __decorate([
1752
+ core.ViewChild("phoneInput", { static: true })
1753
+ ], CountryPhonePickerComponent.prototype, "phoneInput", void 0);
1754
+ __decorate([
1755
+ core.HostListener("document:click", ["$event"])
1756
+ ], CountryPhonePickerComponent.prototype, "onClickout", null);
1757
+ __decorate([
1758
+ core.HostBinding("attr.tabindex")
1759
+ ], CountryPhonePickerComponent.prototype, "tabindex", void 0);
1760
+ __decorate([
1761
+ core.HostListener("keydown", ["$event"])
1762
+ ], CountryPhonePickerComponent.prototype, "onKeydown", null);
1763
+ CountryPhonePickerComponent = CountryPhonePickerComponent_1 = __decorate([
1764
+ core.Component({
1765
+ selector: "s-country-phone-picker",
1766
+ template: "<div class=\"country-phone-picker\">\n <div class=\"phone-input\">\n <div class=\"drop\" (click)=\"open = !open\">\n <span class=\"drop-flag\" [ngClass]=\"'fi fi-' + selectedItem.id\">\n </span>\n <span class=\"drop-icon fas fa-caret-down\"></span>\n </div>\n <p class=\"phone-ddi\">{{ selectedItem.ddi }}</p>\n <input\n #phoneInput\n type=\"tel\"\n autofocus\n [mask]=\"getMask()\" \n [placeholder]=\"getPlaceholder()\"\n [formControl]=\"phone\"\n (focus)=\"onPhoneInputFocus()\" />\n </div>\n <div *ngIf=\"open\" class=\"dropdown\">\n <div class=\"search\">\n <input\n class=\"search-field\"\n type=\"text\"\n [formControl]=\"filter\">\n <span class=\"search-icon fas fa-search\"></span>\n <span\n class=\"search-clear fa fa-times\"\n (click)=\"onCleanFilter()\"></span>\n </div>\n <ul class=\"select-list\">\n <li\n *ngFor=\"let country of filteredCountriesList; let i = index;\"\n class=\"select-option\"\n [ngClass]=\"{ 'select-option--focused': i == currentItemIndex }\"\n (click)=\"onSelectItem(country)\">\n <span\n class=\"select-option__flag\"\n [ngClass]=\"'fi fi-' + country.id\">\n </span>\n <span class=\"select-option__name\">\n {{ \"platform.angular_components.country_name_\" + country.id | translate }}\n </span>\n <span class=\"select-option__ddi\">\n {{ country.ddi }}\n </span>\n </li>\n </ul>\n </div>\n</div>",
1767
+ providers: [{
1768
+ provide: forms.NG_VALUE_ACCESSOR,
1769
+ useExisting: CountryPhonePickerComponent_1,
1770
+ multi: true,
1771
+ }],
1772
+ styles: [".country-phone-picker .phone-input{background-color:#fff;border:1px solid #d8d8d8;border-radius:4px;display:-ms-flexbox;display:flex}.country-phone-picker .phone-input .drop{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex}.country-phone-picker .phone-input .drop .drop-flag{margin-left:12px}.country-phone-picker .phone-input .drop .drop-icon{font-size:12px;margin:0 8px}.country-phone-picker .phone-input .phone-ddi{margin:8px 0}.country-phone-picker .phone-input input{border:none;-ms-flex-positive:1;flex-grow:1;font-family:\"Open Sans\",sans-serif;font-size:14px;font-weight:400;line-height:150%;margin-left:8px}.country-phone-picker .phone-input input:focus{color:#697882;outline:0}.country-phone-picker .dropdown{background-color:#fff;border-radius:4px;box-shadow:0 4px 5px #00000033;padding:4px 0;position:absolute;margin:2px 0;z-index:999999}.country-phone-picker .dropdown .search{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding:8px 12px}.country-phone-picker .dropdown .search .search-field{border:1px solid #d8d8d8;border-radius:4px;-ms-flex-positive:1;flex-grow:1;font-family:\"Open Sans\",sans-serif;font-size:14px;font-weight:400;height:36px;line-height:150%;padding:0 32px 0 8px}.country-phone-picker .dropdown .search .search-icon{color:#333;font-size:12px;position:relative;right:24px}.country-phone-picker .dropdown .search .search-clear{color:#333;cursor:pointer;font-size:1rem}.country-phone-picker .dropdown .select-list{list-style:none;max-height:234px;min-width:360px;max-width:100vw;overflow:scroll;padding:0}.country-phone-picker .dropdown .select-list .select-option{cursor:pointer;display:-ms-flexbox;display:flex;padding:12px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.country-phone-picker .dropdown .select-list .select-option .select-option__flag{margin-right:12px}.country-phone-picker .dropdown .select-list .select-option .select-option__name{margin-right:.5rem;max-width:100%;overflow:hidden;text-overflow:ellipsis}.country-phone-picker .dropdown .select-list .select-option .select-option__ddi{color:#697882;font-size:14px;font-family:\"Open Sans\",sans-serif;font-weight:400;line-height:150%}.country-phone-picker .dropdown .select-list .select-option--focused,.country-phone-picker .dropdown .select-list .select-option:hover{background-color:#e5eaea}"]
1773
+ })
1774
+ ], CountryPhonePickerComponent);
1775
+ return CountryPhonePickerComponent;
1776
+ }());
1777
+
1778
+ var CountryPhonePickerModule = /** @class */ (function () {
1779
+ function CountryPhonePickerModule() {
1780
+ }
1781
+ CountryPhonePickerModule = __decorate([
1782
+ core.NgModule({
1783
+ imports: [
1784
+ common.CommonModule,
1785
+ core$1.TranslateModule,
1786
+ forms.ReactiveFormsModule,
1787
+ ngxMask.NgxMaskModule.forRoot(),
1788
+ ],
1789
+ declarations: [CountryPhonePickerComponent],
1790
+ exports: [CountryPhonePickerComponent],
1791
+ providers: [CountryPhonePickerService],
1792
+ })
1793
+ ], CountryPhonePickerModule);
1794
+ return CountryPhonePickerModule;
1795
+ }());
1796
+
1261
1797
 
1262
1798
  (function (FieldType) {
1263
1799
  FieldType["Autocomplete"] = "Autocomplete";
@@ -11246,6 +11782,233 @@
11246
11782
  ProgressBarColors["Yellow"] = "yellow";
11247
11783
  })(exports.ProgressBarColors || (exports.ProgressBarColors = {}));
11248
11784
 
11785
+ var fallback = {
11786
+ "platform.angular_components.country_name_br": "Brasil",
11787
+ "platform.angular_components.country_name_us": "Estados Unidos",
11788
+ "platform.angular_components.country_name_co": "Colômbia",
11789
+ "platform.angular_components.country_name_ar": "Argentina",
11790
+ "platform.angular_components.country_name_cl": "Chile",
11791
+ "platform.angular_components.country_name_py": "Paraguai",
11792
+ "platform.angular_components.country_name_uy": "Uruguai",
11793
+ "platform.angular_components.country_name_cn": "China",
11794
+ "platform.angular_components.country_name_ca": "Canadá",
11795
+ "platform.angular_components.country_name_as": "Samoa Americana",
11796
+ "platform.angular_components.country_name_ai": "Anguilla",
11797
+ "platform.angular_components.country_name_ag": "Antígua e Barbuda",
11798
+ "platform.angular_components.country_name_bs": "Bahamas",
11799
+ "platform.angular_components.country_name_bb": "Barbados",
11800
+ "platform.angular_components.country_name_bm": "Bermuda",
11801
+ "platform.angular_components.country_name_vg": "Ilhas Virgens Britânicas",
11802
+ "platform.angular_components.country_name_ky": "Ilhas Cayman",
11803
+ "platform.angular_components.country_name_dm": "Dominica",
11804
+ "platform.angular_components.country_name_do": "República Dominicana",
11805
+ "platform.angular_components.country_name_gd": "Granada",
11806
+ "platform.angular_components.country_name_gu": "Guam",
11807
+ "platform.angular_components.country_name_jm": "Jamaica",
11808
+ "platform.angular_components.country_name_ms": "Montserrat",
11809
+ "platform.angular_components.country_name_mp": "Ilhas Mariana do Norte",
11810
+ "platform.angular_components.country_name_pr": "Porto Rico",
11811
+ "platform.angular_components.country_name_kn": "Saint Kitts and Nevis",
11812
+ "platform.angular_components.country_name_lc": "Saint Lucia",
11813
+ "platform.angular_components.country_name_vc": "Saint Vincent and the Grenadines",
11814
+ "platform.angular_components.country_name_tt": "Trinidad e Tobago",
11815
+ "platform.angular_components.country_name_tc": "Ilhas Turcas e Caicos",
11816
+ "platform.angular_components.country_name_fi": "Finlândia",
11817
+ "platform.angular_components.country_name_rs": "Sérvia",
11818
+ "platform.angular_components.country_name_zm": "Zâmbia",
11819
+ "platform.angular_components.country_name_af": "Afghanistão",
11820
+ "platform.angular_components.country_name_al": "Albânia",
11821
+ "platform.angular_components.country_name_hr": "Croácia",
11822
+ "platform.angular_components.country_name_ec": "Equador",
11823
+ "platform.angular_components.country_name_et": "Etiópia",
11824
+ "platform.angular_components.country_name_gh": "Gana",
11825
+ "platform.angular_components.country_name_gr": "Grécia",
11826
+ "platform.angular_components.country_name_ie": "Irlanda",
11827
+ "platform.angular_components.country_name_it": "Itália",
11828
+ "platform.angular_components.country_name_lr": "Libéria",
11829
+ "platform.angular_components.country_name_na": "Namíbia",
11830
+ "platform.angular_components.country_name_nz": "Nova Zelândia",
11831
+ "platform.angular_components.country_name_sa": "Arábia Saudita",
11832
+ "platform.angular_components.country_name_za": "África do Sul",
11833
+ "platform.angular_components.country_name_lk": "Sri Lanka",
11834
+ "platform.angular_components.country_name_sd": "Sudão",
11835
+ "platform.angular_components.country_name_th": "Tailândia",
11836
+ "platform.angular_components.country_name_ua": "Ucrânia",
11837
+ "platform.angular_components.country_name_ae": "Emirados Árabes Unidos",
11838
+ "platform.angular_components.country_name_va": "Vaticano",
11839
+ "platform.angular_components.country_name_zw": "Zimbábue",
11840
+ "platform.angular_components.country_name_dz": "Argélia",
11841
+ "platform.angular_components.country_name_be": "Bélgica",
11842
+ "platform.angular_components.country_name_yt": "Mayotte",
11843
+ "platform.angular_components.country_name_bl": "Saint Barthelemy",
11844
+ "platform.angular_components.country_name_mf": "Saint Martin",
11845
+ "platform.angular_components.country_name_ad": "Andora",
11846
+ "platform.angular_components.country_name_ao": "Angola",
11847
+ "platform.angular_components.country_name_ba": "Bósnia e Herzegovina",
11848
+ "platform.angular_components.country_name_bg": "Bulgária",
11849
+ "platform.angular_components.country_name_kh": "Camboja",
11850
+ "platform.angular_components.country_name_cz": "República Checa",
11851
+ "platform.angular_components.country_name_gq": "Guiné Equatorial",
11852
+ "platform.angular_components.country_name_gw": "Guiné-Bissau",
11853
+ "platform.angular_components.country_name_li": "Liechtenstein",
11854
+ "platform.angular_components.country_name_lu": "Luxemburgo",
11855
+ "platform.angular_components.country_name_mk": "Macedónia",
11856
+ "platform.angular_components.country_name_me": "Montenegro",
11857
+ "platform.angular_components.country_name_pe": "Peru",
11858
+ "platform.angular_components.country_name_pl": "Polónia",
11859
+ "platform.angular_components.country_name_pt": "Portugal",
11860
+ "platform.angular_components.country_name_si": "Slovenia",
11861
+ "platform.angular_components.country_name_am": "Arménia",
11862
+ "platform.angular_components.country_name_aw": "Aruba",
11863
+ "platform.angular_components.country_name_bn": "Brunei",
11864
+ "platform.angular_components.country_name_fj": "Fiji",
11865
+ "platform.angular_components.country_name_gm": "Gâmbia",
11866
+ "platform.angular_components.country_name_gy": "Guiana",
11867
+ "platform.angular_components.country_name_is": "Islândia",
11868
+ "platform.angular_components.country_name_fm": "Micronésia",
11869
+ "platform.angular_components.country_name_nr": "Nauru",
11870
+ "platform.angular_components.country_name_nu": "Niue",
11871
+ "platform.angular_components.country_name_pw": "Palau",
11872
+ "platform.angular_components.country_name_st": "Sao Tome e Principe",
11873
+ "platform.angular_components.country_name_to": "Tonga",
11874
+ "platform.angular_components.country_name_vu": "Vanuatu",
11875
+ "platform.angular_components.country_name_fk": "Ilhas Falkland (Malvinas)",
11876
+ "platform.angular_components.country_name_fo": "Ilhas Feroé",
11877
+ "platform.angular_components.country_name_sh": "Saint Helena",
11878
+ "platform.angular_components.country_name_au": "Austrália",
11879
+ "platform.angular_components.country_name_cx": "Christmas Island",
11880
+ "platform.angular_components.country_name_cc": "Ilhas Cocos (Keeling)",
11881
+ "platform.angular_components.country_name_cd": "República Democrática do Congo",
11882
+ "platform.angular_components.country_name_kg": "Quirguistão",
11883
+ "platform.angular_components.country_name_ro": "Roménia",
11884
+ "platform.angular_components.country_name_rw": "Ruanda",
11885
+ "platform.angular_components.country_name_sk": "Slovakia",
11886
+ "platform.angular_components.country_name_sy": "Syria",
11887
+ "platform.angular_components.country_name_tw": "Taiwan",
11888
+ "platform.angular_components.country_name_tz": "Tanzânia",
11889
+ "platform.angular_components.country_name_ye": "Iémen (Iémen, Yemen)",
11890
+ "platform.angular_components.country_name_at": "Áustria",
11891
+ "platform.angular_components.country_name_ke": "Quénia (Kenya)",
11892
+ "platform.angular_components.country_name_ug": "Uganda",
11893
+ "platform.angular_components.country_name_az": "Azerbaijão",
11894
+ "platform.angular_components.country_name_ch": "Suiça",
11895
+ "platform.angular_components.country_name_vn": "Vietnã (Vietname)",
11896
+ "platform.angular_components.country_name_bh": "Bahrein",
11897
+ "platform.angular_components.country_name_cr": "Costa Rica",
11898
+ "platform.angular_components.country_name_sv": "El Salvador",
11899
+ "platform.angular_components.country_name_ee": "Estónia",
11900
+ "platform.angular_components.country_name_sz": "Suazilândia",
11901
+ "platform.angular_components.country_name_gt": "Guatemala",
11902
+ "platform.angular_components.country_name_hk": "Hong Kong",
11903
+ "platform.angular_components.country_name_ls": "Lesoto",
11904
+ "platform.angular_components.country_name_mo": "Macau",
11905
+ "platform.angular_components.country_name_mt": "Malta",
11906
+ "platform.angular_components.country_name_mu": "Maurícia",
11907
+ "platform.angular_components.country_name_mn": "Mongólia",
11908
+ "platform.angular_components.country_name_ni": "Nicaragua",
11909
+ "platform.angular_components.country_name_om": "Omã",
11910
+ "platform.angular_components.country_name_pg": "Papua-Nova Guiné",
11911
+ "platform.angular_components.country_name_qa": "Catar",
11912
+ "platform.angular_components.country_name_sg": "Cingapura",
11913
+ "platform.angular_components.country_name_tl": "Timor-Leste",
11914
+ "platform.angular_components.country_name_bd": "Bangladesh",
11915
+ "platform.angular_components.country_name_im": "Ilha de Man",
11916
+ "platform.angular_components.country_name_by": "Bielorrússia",
11917
+ "platform.angular_components.country_name_bz": "Belize",
11918
+ "platform.angular_components.country_name_mv": "Maldivas",
11919
+ "platform.angular_components.country_name_mh": "Ilhas Marshall",
11920
+ "platform.angular_components.country_name_sr": "Suriname",
11921
+ "platform.angular_components.country_name_bj": "Benim",
11922
+ "platform.angular_components.country_name_bt": "Butão",
11923
+ "platform.angular_components.country_name_bf": "Burkina Faso",
11924
+ "platform.angular_components.country_name_bi": "Burundi",
11925
+ "platform.angular_components.country_name_cf": "República Centro-Africana",
11926
+ "platform.angular_components.country_name_td": "Chad",
11927
+ "platform.angular_components.country_name_ci": "Costa do Marfim",
11928
+ "platform.angular_components.country_name_dk": "Dinamarca",
11929
+ "platform.angular_components.country_name_dj": "Djibouti",
11930
+ "platform.angular_components.country_name_fr": "França",
11931
+ "platform.angular_components.country_name_pf": "Polinésia Francesa",
11932
+ "platform.angular_components.country_name_ga": "Gabão",
11933
+ "platform.angular_components.country_name_ml": "Mali",
11934
+ "platform.angular_components.country_name_mr": "Mauritânia",
11935
+ "platform.angular_components.country_name_ne": "Níger",
11936
+ "platform.angular_components.country_name_sm": "San Marino",
11937
+ "platform.angular_components.country_name_tg": "Togo",
11938
+ "platform.angular_components.country_name_bo": "Bolívia",
11939
+ "platform.angular_components.country_name_gi": "Gibraltar",
11940
+ "platform.angular_components.country_name_ki": "Kiribati",
11941
+ "platform.angular_components.country_name_tv": "Tuvalu",
11942
+ "platform.angular_components.country_name_bw": "Botswana",
11943
+ "platform.angular_components.country_name_er": "Eritreia",
11944
+ "platform.angular_components.country_name_lv": "Letônia",
11945
+ "platform.angular_components.country_name_lb": "Líbano",
11946
+ "platform.angular_components.country_name_tn": "Tunísia",
11947
+ "platform.angular_components.country_name_cm": "Camarões",
11948
+ "platform.angular_components.country_name_cv": "Cabo Verde",
11949
+ "platform.angular_components.country_name_km": "Comores",
11950
+ "platform.angular_components.country_name_pm": "Saint Pierre and Miquelon",
11951
+ "platform.angular_components.country_name_cg": "República do Congo",
11952
+ "platform.angular_components.country_name_mz": "Moçambique",
11953
+ "platform.angular_components.country_name_mm": "Myanmar (Burma)",
11954
+ "platform.angular_components.country_name_ck": "Ilhas Cook",
11955
+ "platform.angular_components.country_name_cu": "Cuba",
11956
+ "platform.angular_components.country_name_cy": "Chipre",
11957
+ "platform.angular_components.country_name_eg": "Egito",
11958
+ "platform.angular_components.country_name_ir": "Irã",
11959
+ "platform.angular_components.country_name_iq": "Iraque",
11960
+ "platform.angular_components.country_name_ng": "Nigéria",
11961
+ "platform.angular_components.country_name_kp": "Coreia do Norte",
11962
+ "platform.angular_components.country_name_ph": "Filipinas",
11963
+ "platform.angular_components.country_name_ge": "Geórgia",
11964
+ "platform.angular_components.country_name_gn": "Guiné",
11965
+ "platform.angular_components.country_name_es": "Espanha",
11966
+ "platform.angular_components.country_name_de": "Alemanha",
11967
+ "platform.angular_components.country_name_gl": "Groelândia",
11968
+ "platform.angular_components.country_name_wf": "Wallis e Futuna",
11969
+ "platform.angular_components.country_name_ht": "Haiti",
11970
+ "platform.angular_components.country_name_hn": "Honduras",
11971
+ "platform.angular_components.country_name_pa": "Panamá",
11972
+ "platform.angular_components.country_name_hu": "Hungria",
11973
+ "platform.angular_components.country_name_in": "India",
11974
+ "platform.angular_components.country_name_id": "Indonésia",
11975
+ "platform.angular_components.country_name_il": "Israel",
11976
+ "platform.angular_components.country_name_jp": "Japão",
11977
+ "platform.angular_components.country_name_jo": "Jordânia",
11978
+ "platform.angular_components.country_name_kz": "Cazaquistão",
11979
+ "platform.angular_components.country_name_kw": "Kuwait",
11980
+ "platform.angular_components.country_name_la": "Laos",
11981
+ "platform.angular_components.country_name_ly": "Líbia",
11982
+ "platform.angular_components.country_name_lt": "Lituânia",
11983
+ "platform.angular_components.country_name_np": "Nepal",
11984
+ "platform.angular_components.country_name_mg": "Madagáscar",
11985
+ "platform.angular_components.country_name_mw": "Malawi",
11986
+ "platform.angular_components.country_name_my": "Malásia",
11987
+ "platform.angular_components.country_name_mx": "México",
11988
+ "platform.angular_components.country_name_md": "Moldávia",
11989
+ "platform.angular_components.country_name_mc": "Monaco",
11990
+ "platform.angular_components.country_name_ma": "Marrocos",
11991
+ "platform.angular_components.country_name_nl": "Países Baixos",
11992
+ "platform.angular_components.country_name_nc": "Nova Caledônia",
11993
+ "platform.angular_components.country_name_no": "Noruega",
11994
+ "platform.angular_components.country_name_pk": "Paquistão",
11995
+ "platform.angular_components.country_name_ru": "Rússia",
11996
+ "platform.angular_components.country_name_ws": "Samoa",
11997
+ "platform.angular_components.country_name_sb": "Ilhas Salomão",
11998
+ "platform.angular_components.country_name_sn": "Senegal",
11999
+ "platform.angular_components.country_name_sc": "Seychelles",
12000
+ "platform.angular_components.country_name_sl": "Serra Leoa",
12001
+ "platform.angular_components.country_name_so": "Somalia",
12002
+ "platform.angular_components.country_name_kr": "Coreia do Sul",
12003
+ "platform.angular_components.country_name_se": "Suécia",
12004
+ "platform.angular_components.country_name_tj": "Tajiquistão",
12005
+ "platform.angular_components.country_name_tk": "Tokelau",
12006
+ "platform.angular_components.country_name_tr": "Turquia",
12007
+ "platform.angular_components.country_name_tm": "Turquemenistão",
12008
+ "platform.angular_components.country_name_uz": "Uzbequistão",
12009
+ "platform.angular_components.country_name_ve": "Venezuela"
12010
+ };
12011
+
11249
12012
  exports.AngularComponentsModule = AngularComponentsModule;
11250
12013
  exports.AutocompleteField = AutocompleteField;
11251
12014
  exports.BadgeComponent = BadgeComponent;
@@ -11271,6 +12034,8 @@
11271
12034
  exports.CollapseLinkModule = CollapseLinkModule;
11272
12035
  exports.ControlErrorsComponent = ControlErrorsComponent;
11273
12036
  exports.ControlErrorsModule = ControlErrorsModule;
12037
+ exports.CountryPhonePickerComponent = CountryPhonePickerComponent;
12038
+ exports.CountryPhonePickerModule = CountryPhonePickerModule;
11274
12039
  exports.CurrencyField = CurrencyField;
11275
12040
  exports.CustomFieldsComponent = CustomFieldsComponent;
11276
12041
  exports.CustomFieldsModule = CustomFieldsModule;
@@ -11374,57 +12139,59 @@
11374
12139
  exports.TooltipModule = TooltipModule;
11375
12140
  exports.WorkspaceSwitchComponent = WorkspaceSwitchComponent;
11376
12141
  exports.WorkspaceSwitchModule = WorkspaceSwitchModule;
11377
- exports.ɵa = LocalizedCurrencyImpurePipe;
11378
- exports.ɵb = LocalizedBignumberPipe;
11379
- exports.ɵba = TextFieldComponent;
11380
- exports.ɵbb = BooleanSwitchFieldComponent;
11381
- exports.ɵbc = PasswordFieldComponent;
11382
- exports.ɵbe = DecimalField;
11383
- exports.ɵbf = StructureModule;
11384
- exports.ɵbg = HeaderComponent;
11385
- exports.ɵbh = FooterComponent;
11386
- exports.ɵbi = NumberLocaleOptions;
11387
- exports.ɵbj = ThumbnailService;
11388
- exports.ɵbk = TimelineItemModule;
11389
- exports.ɵbl = TimelineIconItemComponent;
11390
- exports.ɵbm = HorizontalTimelineModule;
11391
- exports.ɵbn = HorizontalTimelineComponent;
11392
- exports.ɵbo = VerticalTimelineModule;
11393
- exports.ɵbp = VerticalTimelineComponent;
11394
- exports.ɵbq = RangeLineComponent;
11395
- exports.ɵbr = CollapseOptionComponent;
11396
- exports.ɵbs = CollapsedItemsComponent;
11397
- exports.ɵbt = VerticalItemsComponent;
11398
- exports.ɵbu = InfiniteScrollModule;
11399
- exports.ɵbv = InfiniteScrollDirective;
11400
- exports.ɵbw = CustomTranslationsModule;
11401
- exports.ɵbx = CodeEditorComponent;
11402
- exports.ɵby = CoreFacade;
11403
- exports.ɵbz = CodeMirror6Core;
11404
- exports.ɵc = LocalizedBignumberImpurePipe;
11405
- exports.ɵd = TooltipComponent;
11406
- exports.ɵe = TooltipDirective;
11407
- exports.ɵf = EmptyStateGoBackComponent;
11408
- exports.ɵg = InfoSignComponent;
11409
- exports.ɵh = TableColumnsComponent;
11410
- exports.ɵi = TablePagingComponent;
11411
- exports.ɵj = AutocompleteFieldComponent;
11412
- exports.ɵk = BooleanFieldComponent;
11413
- exports.ɵl = CalendarFieldComponent;
11414
- exports.ɵm = ChipsFieldComponent;
11415
- exports.ɵn = CurrencyFieldComponent;
11416
- exports.ɵo = DynamicFieldComponent;
11417
- exports.ɵp = DynamicFormDirective;
11418
- exports.ɵq = FieldsetComponent;
11419
- exports.ɵr = FileUploadComponent$1;
11420
- exports.ɵs = LookupFieldComponent;
11421
- exports.ɵt = NumberFieldComponent;
11422
- exports.ɵu = BignumberFieldComponent;
11423
- exports.ɵv = RadioButtonComponent;
11424
- exports.ɵw = RowComponent;
11425
- exports.ɵx = SectionComponent;
11426
- exports.ɵy = SelectFieldComponent;
11427
- exports.ɵz = TextAreaFieldComponent;
12142
+ exports.fallback = fallback;
12143
+ exports.ɵa = CountryPhonePickerService;
12144
+ exports.ɵb = LocalizedCurrencyImpurePipe;
12145
+ exports.ɵba = TextAreaFieldComponent;
12146
+ exports.ɵbb = TextFieldComponent;
12147
+ exports.ɵbc = BooleanSwitchFieldComponent;
12148
+ exports.ɵbd = PasswordFieldComponent;
12149
+ exports.ɵbf = DecimalField;
12150
+ exports.ɵbg = StructureModule;
12151
+ exports.ɵbh = HeaderComponent;
12152
+ exports.ɵbi = FooterComponent;
12153
+ exports.ɵbj = NumberLocaleOptions;
12154
+ exports.ɵbk = ThumbnailService;
12155
+ exports.ɵbl = TimelineItemModule;
12156
+ exports.ɵbm = TimelineIconItemComponent;
12157
+ exports.ɵbn = HorizontalTimelineModule;
12158
+ exports.ɵbo = HorizontalTimelineComponent;
12159
+ exports.ɵbp = VerticalTimelineModule;
12160
+ exports.ɵbq = VerticalTimelineComponent;
12161
+ exports.ɵbr = RangeLineComponent;
12162
+ exports.ɵbs = CollapseOptionComponent;
12163
+ exports.ɵbt = CollapsedItemsComponent;
12164
+ exports.ɵbu = VerticalItemsComponent;
12165
+ exports.ɵbv = InfiniteScrollModule;
12166
+ exports.ɵbw = InfiniteScrollDirective;
12167
+ exports.ɵbx = CustomTranslationsModule;
12168
+ exports.ɵby = CodeEditorComponent;
12169
+ exports.ɵbz = CoreFacade;
12170
+ exports.ɵc = LocalizedBignumberPipe;
12171
+ exports.ɵca = CodeMirror6Core;
12172
+ exports.ɵd = LocalizedBignumberImpurePipe;
12173
+ exports.ɵe = TooltipComponent;
12174
+ exports.ɵf = TooltipDirective;
12175
+ exports.ɵg = EmptyStateGoBackComponent;
12176
+ exports.ɵh = InfoSignComponent;
12177
+ exports.ɵi = TableColumnsComponent;
12178
+ exports.ɵj = TablePagingComponent;
12179
+ exports.ɵk = AutocompleteFieldComponent;
12180
+ exports.ɵl = BooleanFieldComponent;
12181
+ exports.ɵm = CalendarFieldComponent;
12182
+ exports.ɵn = ChipsFieldComponent;
12183
+ exports.ɵo = CurrencyFieldComponent;
12184
+ exports.ɵp = DynamicFieldComponent;
12185
+ exports.ɵq = DynamicFormDirective;
12186
+ exports.ɵr = FieldsetComponent;
12187
+ exports.ɵs = FileUploadComponent$1;
12188
+ exports.ɵt = LookupFieldComponent;
12189
+ exports.ɵu = NumberFieldComponent;
12190
+ exports.ɵv = BignumberFieldComponent;
12191
+ exports.ɵw = RadioButtonComponent;
12192
+ exports.ɵx = RowComponent;
12193
+ exports.ɵy = SectionComponent;
12194
+ exports.ɵz = SelectFieldComponent;
11428
12195
 
11429
12196
  Object.defineProperty(exports, '__esModule', { value: true });
11430
12197