@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 +2 -0
- package/dist/IntlTelInput.js +134 -157
- package/dist/IntlTelInputWithUtils.js +550 -449
- package/package.json +2 -2
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`
|
package/dist/IntlTelInput.js
CHANGED
|
@@ -4955,7 +4955,7 @@ var intlTelInput = Object.assign(
|
|
|
4955
4955
|
attachUtils,
|
|
4956
4956
|
startedLoadingUtils: false,
|
|
4957
4957
|
startedLoadingAutoCountry: false,
|
|
4958
|
-
version: "29.
|
|
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 =
|
|
5292
|
-
|
|
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
|
-
]
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
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
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
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
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
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,
|