@intl-tel-input/angular 29.2.2 → 29.3.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.
package/README.md CHANGED
@@ -14,6 +14,8 @@ For entering, formatting, and validating international telephone numbers.
14
14
 
15
15
  Check out the [website](https://intl-tel-input.com), where you can find [a full set of docs](https://intl-tel-input.com/docs/angular-component), a [live playground](https://intl-tel-input.com/playground/) where you can try out all of the options, as well as plenty of [examples](https://intl-tel-input.com/examples/angular-component/validation) of different setups.
16
16
 
17
+ Browser support: same as the core library — see the [FAQ](https://intl-tel-input.com/docs/faq#which-browsers-are-supported) for minimum versions.
18
+
17
19
  ## Running the demos locally
18
20
 
19
21
  1. Initialise the submodules: `git submodule update --init --recursive`
@@ -4955,7 +4955,7 @@ var intlTelInput = Object.assign(
4955
4955
  attachUtils,
4956
4956
  startedLoadingUtils: false,
4957
4957
  startedLoadingAutoCountry: false,
4958
- version: "29.2.2",
4958
+ version: "29.3.0",
4959
4959
  NUMBER_FORMAT,
4960
4960
  NUMBER_TYPE,
4961
4961
  VALIDATION_ERROR,
@@ -4969,7 +4969,6 @@ var intlTelInput_default = intlTelInput;
4969
4969
  import { Component, Input, ViewChild, ElementRef, Output, EventEmitter, forwardRef } from "@angular/core";
4970
4970
  import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from "@angular/forms";
4971
4971
  import * as i0 from "@angular/core";
4972
- var _c0 = ["inputRef"];
4973
4972
  var warnInputAttr = (prop) => {
4974
4973
  console.warn(`intl-tel-input: ignoring inputAttributes.${prop} - see docs for more info.`);
4975
4974
  };
@@ -5288,18 +5287,8 @@ var IntlTelInput = class _IntlTelInput {
5288
5287
  registerOnValidatorChange(fn) {
5289
5288
  this.onValidatorChange = fn;
5290
5289
  }
5291
- static \u0275fac = function IntlTelInput_Factory(__ngFactoryType__) {
5292
- return new (__ngFactoryType__ || _IntlTelInput)();
5293
- };
5294
- static \u0275cmp = /* @__PURE__ */ i0.\u0275\u0275defineComponent({ type: _IntlTelInput, selectors: [["intl-tel-input"]], viewQuery: function IntlTelInput_Query(rf, ctx) {
5295
- if (rf & 1) {
5296
- i0.\u0275\u0275viewQuery(_c0, 7);
5297
- }
5298
- if (rf & 2) {
5299
- let _t;
5300
- i0.\u0275\u0275queryRefresh(_t = i0.\u0275\u0275loadQuery()) && (ctx.inputRef = _t.first);
5301
- }
5302
- }, inputs: { initialValue: "initialValue", usePreciseValidation: "usePreciseValidation", inputAttributes: "inputAttributes", disabled: "disabled", readonly: "readonly", countrySelectorMode: "countrySelectorMode", allowedNumberTypes: "allowedNumberTypes", allowNumberExtensions: "allowNumberExtensions", allowPhonewords: "allowPhonewords", classNames: "classNames", containerClass: "containerClass", countryNameLocale: "countryNameLocale", countryNameOverrides: "countryNameOverrides", countryOrder: "countryOrder", countrySearch: "countrySearch", customPlaceholder: "customPlaceholder", dropdownAlwaysOpen: "dropdownAlwaysOpen", dropdownParent: "dropdownParent", excludeCountries: "excludeCountries", matchDropdownWidth: "matchDropdownWidth", formatAsYouType: "formatAsYouType", hiddenInputs: "hiddenInputs", uiTranslations: "uiTranslations", initialCountry: "initialCountry", initialCountryLookup: "initialCountryLookup", loadUtils: "loadUtils", numberDisplayFormat: "numberDisplayFormat", onlyCountries: "onlyCountries", placeholderNumberPolicy: "placeholderNumberPolicy", placeholderNumberType: "placeholderNumberType", searchInputClass: "searchInputClass", separateDialCode: "separateDialCode", showFlags: "showFlags", strictMode: "strictMode", strictRejectAnimation: "strictRejectAnimation" }, outputs: { numberChange: "numberChange", countryChange: "countryChange", validityChange: "validityChange", errorCodeChange: "errorCodeChange", openCountrySelector: "openCountrySelector", closeCountrySelector: "closeCountrySelector", strictReject: "strictReject", blur: "blur", focus: "focus", keydown: "keydown", keyup: "keyup", paste: "paste", click: "click" }, features: [i0.\u0275\u0275ProvidersFeature([
5290
+ static \u0275fac = i0.\u0275\u0275ngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: _IntlTelInput, deps: [], target: i0.\u0275\u0275FactoryTarget.Component });
5291
+ static \u0275cmp = i0.\u0275\u0275ngDeclareComponent({ minVersion: "14.0.0", version: "21.2.7", type: _IntlTelInput, isStandalone: true, selector: "intl-tel-input", inputs: { initialValue: "initialValue", usePreciseValidation: "usePreciseValidation", inputAttributes: "inputAttributes", disabled: "disabled", readonly: "readonly", countrySelectorMode: "countrySelectorMode", allowedNumberTypes: "allowedNumberTypes", allowNumberExtensions: "allowNumberExtensions", allowPhonewords: "allowPhonewords", classNames: "classNames", containerClass: "containerClass", countryNameLocale: "countryNameLocale", countryNameOverrides: "countryNameOverrides", countryOrder: "countryOrder", countrySearch: "countrySearch", customPlaceholder: "customPlaceholder", dropdownAlwaysOpen: "dropdownAlwaysOpen", dropdownParent: "dropdownParent", excludeCountries: "excludeCountries", matchDropdownWidth: "matchDropdownWidth", formatAsYouType: "formatAsYouType", hiddenInputs: "hiddenInputs", uiTranslations: "uiTranslations", initialCountry: "initialCountry", initialCountryLookup: "initialCountryLookup", loadUtils: "loadUtils", numberDisplayFormat: "numberDisplayFormat", onlyCountries: "onlyCountries", placeholderNumberPolicy: "placeholderNumberPolicy", placeholderNumberType: "placeholderNumberType", searchInputClass: "searchInputClass", separateDialCode: "separateDialCode", showFlags: "showFlags", strictMode: "strictMode", strictRejectAnimation: "strictRejectAnimation" }, outputs: { numberChange: "numberChange", countryChange: "countryChange", validityChange: "validityChange", errorCodeChange: "errorCodeChange", openCountrySelector: "openCountrySelector", closeCountrySelector: "closeCountrySelector", strictReject: "strictReject", blur: "blur", focus: "focus", keydown: "keydown", keyup: "keyup", paste: "paste", click: "click" }, providers: [
5303
5292
  {
5304
5293
  provide: NG_VALUE_ACCESSOR,
5305
5294
  useExisting: forwardRef(() => _IntlTelInput),
@@ -5310,33 +5299,25 @@ var IntlTelInput = class _IntlTelInput {
5310
5299
  useExisting: forwardRef(() => _IntlTelInput),
5311
5300
  multi: true
5312
5301
  }
5313
- ]), i0.\u0275\u0275NgOnChangesFeature], decls: 2, vars: 0, consts: [["inputRef", ""], ["type", "tel", 3, "blur", "focus", "keydown", "keyup", "paste", "click"]], template: function IntlTelInput_Template(rf, ctx) {
5314
- if (rf & 1) {
5315
- i0.\u0275\u0275domElementStart(0, "input", 1, 0);
5316
- i0.\u0275\u0275domListener("blur", function IntlTelInput_Template_input_blur_0_listener($event) {
5317
- return ctx.handleBlur($event);
5318
- })("focus", function IntlTelInput_Template_input_focus_0_listener($event) {
5319
- return ctx.handleFocus($event);
5320
- })("keydown", function IntlTelInput_Template_input_keydown_0_listener($event) {
5321
- return ctx.handleKeyDown($event);
5322
- })("keyup", function IntlTelInput_Template_input_keyup_0_listener($event) {
5323
- return ctx.handleKeyUp($event);
5324
- })("paste", function IntlTelInput_Template_input_paste_0_listener($event) {
5325
- return ctx.handlePaste($event);
5326
- })("click", function IntlTelInput_Template_input_click_0_listener($event) {
5327
- return ctx.handleClick($event);
5328
- });
5329
- i0.\u0275\u0275domElementEnd();
5330
- }
5331
- }, encapsulation: 2 });
5302
+ ], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["inputRef"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
5303
+ <input
5304
+ type="tel"
5305
+ #inputRef
5306
+ (blur)="handleBlur($event)"
5307
+ (focus)="handleFocus($event)"
5308
+ (keydown)="handleKeyDown($event)"
5309
+ (keyup)="handleKeyUp($event)"
5310
+ (paste)="handlePaste($event)"
5311
+ (click)="handleClick($event)"
5312
+ />
5313
+ `, isInline: true });
5332
5314
  };
5333
- (() => {
5334
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.\u0275setClassMetadata(IntlTelInput, [{
5335
- type: Component,
5336
- args: [{
5337
- selector: "intl-tel-input",
5338
- standalone: true,
5339
- template: `
5315
+ i0.\u0275\u0275ngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: IntlTelInput, decorators: [{
5316
+ type: Component,
5317
+ args: [{
5318
+ selector: "intl-tel-input",
5319
+ standalone: true,
5320
+ template: `
5340
5321
  <input
5341
5322
  type="tel"
5342
5323
  #inputRef
@@ -5348,123 +5329,119 @@ var IntlTelInput = class _IntlTelInput {
5348
5329
  (click)="handleClick($event)"
5349
5330
  />
5350
5331
  `,
5351
- providers: [
5352
- {
5353
- provide: NG_VALUE_ACCESSOR,
5354
- useExisting: forwardRef(() => IntlTelInput),
5355
- multi: true
5356
- },
5357
- {
5358
- provide: NG_VALIDATORS,
5359
- useExisting: forwardRef(() => IntlTelInput),
5360
- multi: true
5361
- }
5362
- ]
5363
- }]
5364
- }], null, { inputRef: [{
5365
- type: ViewChild,
5366
- args: ["inputRef", { static: true }]
5367
- }], initialValue: [{
5368
- type: Input
5369
- }], usePreciseValidation: [{
5370
- type: Input
5371
- }], inputAttributes: [{
5372
- type: Input
5373
- }], disabled: [{
5374
- type: Input
5375
- }], readonly: [{
5376
- type: Input
5377
- }], countrySelectorMode: [{
5378
- type: Input
5379
- }], allowedNumberTypes: [{
5380
- type: Input
5381
- }], allowNumberExtensions: [{
5382
- type: Input
5383
- }], allowPhonewords: [{
5384
- type: Input
5385
- }], classNames: [{
5386
- type: Input
5387
- }], containerClass: [{
5388
- type: Input
5389
- }], countryNameLocale: [{
5390
- type: Input
5391
- }], countryNameOverrides: [{
5392
- type: Input
5393
- }], countryOrder: [{
5394
- type: Input
5395
- }], countrySearch: [{
5396
- type: Input
5397
- }], customPlaceholder: [{
5398
- type: Input
5399
- }], dropdownAlwaysOpen: [{
5400
- type: Input
5401
- }], dropdownParent: [{
5402
- type: Input
5403
- }], excludeCountries: [{
5404
- type: Input
5405
- }], matchDropdownWidth: [{
5406
- type: Input
5407
- }], formatAsYouType: [{
5408
- type: Input
5409
- }], hiddenInputs: [{
5410
- type: Input
5411
- }], uiTranslations: [{
5412
- type: Input
5413
- }], initialCountry: [{
5414
- type: Input
5415
- }], initialCountryLookup: [{
5416
- type: Input
5417
- }], loadUtils: [{
5418
- type: Input
5419
- }], numberDisplayFormat: [{
5420
- type: Input
5421
- }], onlyCountries: [{
5422
- type: Input
5423
- }], placeholderNumberPolicy: [{
5424
- type: Input
5425
- }], placeholderNumberType: [{
5426
- type: Input
5427
- }], searchInputClass: [{
5428
- type: Input
5429
- }], separateDialCode: [{
5430
- type: Input
5431
- }], showFlags: [{
5432
- type: Input
5433
- }], strictMode: [{
5434
- type: Input
5435
- }], strictRejectAnimation: [{
5436
- type: Input
5437
- }], numberChange: [{
5438
- type: Output
5439
- }], countryChange: [{
5440
- type: Output
5441
- }], validityChange: [{
5442
- type: Output
5443
- }], errorCodeChange: [{
5444
- type: Output
5445
- }], openCountrySelector: [{
5446
- type: Output
5447
- }], closeCountrySelector: [{
5448
- type: Output
5449
- }], strictReject: [{
5450
- type: Output
5451
- }], blur: [{
5452
- type: Output
5453
- }], focus: [{
5454
- type: Output
5455
- }], keydown: [{
5456
- type: Output
5457
- }], keyup: [{
5458
- type: Output
5459
- }], paste: [{
5460
- type: Output
5461
- }], click: [{
5462
- type: Output
5463
- }] });
5464
- })();
5465
- (() => {
5466
- (typeof ngDevMode === "undefined" || ngDevMode) && i0.\u0275setClassDebugInfo(IntlTelInput, { className: "IntlTelInput", filePath: "IntlTelInput.ts", lineNumber: 71 });
5467
- })();
5332
+ providers: [
5333
+ {
5334
+ provide: NG_VALUE_ACCESSOR,
5335
+ useExisting: forwardRef(() => IntlTelInput),
5336
+ multi: true
5337
+ },
5338
+ {
5339
+ provide: NG_VALIDATORS,
5340
+ useExisting: forwardRef(() => IntlTelInput),
5341
+ multi: true
5342
+ }
5343
+ ]
5344
+ }]
5345
+ }], propDecorators: { inputRef: [{
5346
+ type: ViewChild,
5347
+ args: ["inputRef", { static: true }]
5348
+ }], initialValue: [{
5349
+ type: Input
5350
+ }], usePreciseValidation: [{
5351
+ type: Input
5352
+ }], inputAttributes: [{
5353
+ type: Input
5354
+ }], disabled: [{
5355
+ type: Input
5356
+ }], readonly: [{
5357
+ type: Input
5358
+ }], countrySelectorMode: [{
5359
+ type: Input
5360
+ }], allowedNumberTypes: [{
5361
+ type: Input
5362
+ }], allowNumberExtensions: [{
5363
+ type: Input
5364
+ }], allowPhonewords: [{
5365
+ type: Input
5366
+ }], classNames: [{
5367
+ type: Input
5368
+ }], containerClass: [{
5369
+ type: Input
5370
+ }], countryNameLocale: [{
5371
+ type: Input
5372
+ }], countryNameOverrides: [{
5373
+ type: Input
5374
+ }], countryOrder: [{
5375
+ type: Input
5376
+ }], countrySearch: [{
5377
+ type: Input
5378
+ }], customPlaceholder: [{
5379
+ type: Input
5380
+ }], dropdownAlwaysOpen: [{
5381
+ type: Input
5382
+ }], dropdownParent: [{
5383
+ type: Input
5384
+ }], excludeCountries: [{
5385
+ type: Input
5386
+ }], matchDropdownWidth: [{
5387
+ type: Input
5388
+ }], formatAsYouType: [{
5389
+ type: Input
5390
+ }], hiddenInputs: [{
5391
+ type: Input
5392
+ }], uiTranslations: [{
5393
+ type: Input
5394
+ }], initialCountry: [{
5395
+ type: Input
5396
+ }], initialCountryLookup: [{
5397
+ type: Input
5398
+ }], loadUtils: [{
5399
+ type: Input
5400
+ }], numberDisplayFormat: [{
5401
+ type: Input
5402
+ }], onlyCountries: [{
5403
+ type: Input
5404
+ }], placeholderNumberPolicy: [{
5405
+ type: Input
5406
+ }], placeholderNumberType: [{
5407
+ type: Input
5408
+ }], searchInputClass: [{
5409
+ type: Input
5410
+ }], separateDialCode: [{
5411
+ type: Input
5412
+ }], showFlags: [{
5413
+ type: Input
5414
+ }], strictMode: [{
5415
+ type: Input
5416
+ }], strictRejectAnimation: [{
5417
+ type: Input
5418
+ }], numberChange: [{
5419
+ type: Output
5420
+ }], countryChange: [{
5421
+ type: Output
5422
+ }], validityChange: [{
5423
+ type: Output
5424
+ }], errorCodeChange: [{
5425
+ type: Output
5426
+ }], openCountrySelector: [{
5427
+ type: Output
5428
+ }], closeCountrySelector: [{
5429
+ type: Output
5430
+ }], strictReject: [{
5431
+ type: Output
5432
+ }], blur: [{
5433
+ type: Output
5434
+ }], focus: [{
5435
+ type: Output
5436
+ }], keydown: [{
5437
+ type: Output
5438
+ }], keyup: [{
5439
+ type: Output
5440
+ }], paste: [{
5441
+ type: Output
5442
+ }], click: [{
5443
+ type: Output
5444
+ }] } });
5468
5445
  var IntlTelInput_default = IntlTelInput;
5469
5446
  export {
5470
5447
  IntlTelInput_default as default,