ngxsmk-tel-input 1.6.1 → 1.6.3
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.
|
@@ -33,11 +33,14 @@ class NgxsmkTelInputComponent {
|
|
|
33
33
|
/* Core config */
|
|
34
34
|
this.initialCountry = 'US';
|
|
35
35
|
this.preferredCountries = ['US', 'GB'];
|
|
36
|
-
/**
|
|
37
|
-
this.separateDialCode =
|
|
36
|
+
/** Dropdown shows dial code; input will NEVER show dial code */
|
|
37
|
+
this.separateDialCode = true;
|
|
38
38
|
this.allowDropdown = true;
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
/* Display / formatting */
|
|
40
|
+
/** 'formatted' => national with spaces; 'digits' => digits only */
|
|
41
|
+
this.nationalDisplay = 'formatted';
|
|
42
|
+
/** 'typing' (live), 'blur', or 'off' */
|
|
43
|
+
this.formatWhenValid = 'typing';
|
|
41
44
|
this.autocomplete = 'tel';
|
|
42
45
|
this.disabled = false;
|
|
43
46
|
this.size = 'md';
|
|
@@ -45,7 +48,6 @@ class NgxsmkTelInputComponent {
|
|
|
45
48
|
this.showClear = true;
|
|
46
49
|
this.autoFocus = false;
|
|
47
50
|
this.selectOnFocus = false;
|
|
48
|
-
this.formatOnBlur = true;
|
|
49
51
|
this.showErrorWhenTouched = true;
|
|
50
52
|
/* Dropdown plumbing */
|
|
51
53
|
this.dropdownAttachToBody = true;
|
|
@@ -54,11 +56,9 @@ class NgxsmkTelInputComponent {
|
|
|
54
56
|
this.dir = 'ltr';
|
|
55
57
|
/* Placeholders (intl-tel-input) */
|
|
56
58
|
this.autoPlaceholder = 'off';
|
|
57
|
-
|
|
58
|
-
this.
|
|
59
|
-
|
|
60
|
-
this.digitsOnly = true;
|
|
61
|
-
this.allowLeadingPlus = false;
|
|
59
|
+
/* Input behavior */
|
|
60
|
+
this.digitsOnly = true; // we still insert spaces when formatted
|
|
61
|
+
this.lockWhenValid = true; // optional UX guard
|
|
62
62
|
/* Outputs */
|
|
63
63
|
this.countryChange = new EventEmitter();
|
|
64
64
|
this.validityChange = new EventEmitter();
|
|
@@ -111,23 +111,25 @@ class NgxsmkTelInputComponent {
|
|
|
111
111
|
writeValue(val) {
|
|
112
112
|
if (!this.inputRef)
|
|
113
113
|
return;
|
|
114
|
-
if (!this.iti) { // not
|
|
114
|
+
if (!this.iti) { // not ready yet
|
|
115
115
|
this.pendingWrite = val ?? '';
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
118
|
this.suppressEvents = true;
|
|
119
119
|
try {
|
|
120
|
-
// Let the plugin infer
|
|
120
|
+
// Let the plugin infer the country from E.164 (if provided).
|
|
121
121
|
this.iti.setNumber(val || '');
|
|
122
122
|
const iso2 = this.currentIso2();
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
const parsed = this.tel.parse(val ?? '', iso2);
|
|
124
|
+
// Visible input: ALWAYS NSN (no dial code, no trunk '0')
|
|
125
|
+
const nsn = parsed.e164
|
|
126
|
+
? this.nsnFromE164(parsed.e164, iso2)
|
|
127
|
+
: this.stripLeadingZero(this.toNSN(parsed.national ?? (val ?? '')));
|
|
128
|
+
const display = this.displayValue(nsn, iso2);
|
|
129
|
+
this.setInputValue(display);
|
|
128
130
|
// FormControl value: ALWAYS E.164 (or null)
|
|
129
131
|
this.zone.run(() => this.onChange(parsed.e164));
|
|
130
|
-
this.zone.run(() => this.inputChange.emit({ raw:
|
|
132
|
+
this.zone.run(() => this.inputChange.emit({ raw: display, e164: parsed.e164, iso2 }));
|
|
131
133
|
}
|
|
132
134
|
finally {
|
|
133
135
|
this.suppressEvents = false;
|
|
@@ -137,20 +139,20 @@ class NgxsmkTelInputComponent {
|
|
|
137
139
|
registerOnTouched(fn) { this.onTouchedCb = fn; }
|
|
138
140
|
setDisabledState(isDisabled) {
|
|
139
141
|
this.disabled = isDisabled;
|
|
140
|
-
// 1) native input
|
|
142
|
+
// 1) native input
|
|
141
143
|
if (this.inputRef)
|
|
142
144
|
this.inputRef.nativeElement.disabled = isDisabled;
|
|
143
|
-
// 2)
|
|
145
|
+
// 2) toggle dropdown by re-init with allowDropdown=false when disabled
|
|
144
146
|
if (this.iti) {
|
|
145
147
|
if (isDisabled && this.allowDropdown) {
|
|
146
148
|
this.allowDropdownWasTrue = true;
|
|
147
149
|
this.allowDropdown = false;
|
|
148
|
-
this.reinitPlugin();
|
|
150
|
+
this.reinitPlugin(); // closes popup & removes handlers
|
|
149
151
|
}
|
|
150
152
|
else if (!isDisabled && this.allowDropdownWasTrue) {
|
|
151
153
|
this.allowDropdown = true;
|
|
152
154
|
this.allowDropdownWasTrue = false;
|
|
153
|
-
this.reinitPlugin();
|
|
155
|
+
this.reinitPlugin(); // restore dropdown
|
|
154
156
|
}
|
|
155
157
|
else {
|
|
156
158
|
this.applyDisabledUi(isDisabled);
|
|
@@ -211,26 +213,20 @@ class NgxsmkTelInputComponent {
|
|
|
211
213
|
initialCountry: this.initialCountry === 'auto' ? 'auto' : (this.initialCountry?.toLowerCase() || 'us'),
|
|
212
214
|
preferredCountries: (this.preferredCountries ?? []).map(c => c.toLowerCase()),
|
|
213
215
|
onlyCountries: (this.onlyCountries ?? []).map(c => c.toLowerCase()),
|
|
214
|
-
//
|
|
215
|
-
// but enabling nationalMode prevents plugin from forcing a '+' back in.
|
|
216
|
-
nationalMode: true,
|
|
216
|
+
nationalMode: true, // we control the visible value; prevents '+' in the input
|
|
217
217
|
allowDropdown: this.allowDropdown,
|
|
218
218
|
separateDialCode: this.separateDialCode,
|
|
219
219
|
geoIpLookup: (cb) => cb('us'),
|
|
220
|
-
// placeholders
|
|
221
220
|
autoPlaceholder: this.autoPlaceholder,
|
|
222
221
|
utilsScript: this.utilsScript,
|
|
223
222
|
customPlaceholder: this.customPlaceholder,
|
|
224
|
-
// localization
|
|
225
223
|
i18n: this.i18n,
|
|
226
224
|
localizedCountries: toLowerKeys(this.localizedCountries),
|
|
227
|
-
// dropdown container
|
|
228
225
|
dropdownContainer: this.dropdownAttachToBody && typeof document !== 'undefined' ? document.body : undefined
|
|
229
226
|
};
|
|
230
227
|
this.zone.runOutsideAngular(() => {
|
|
231
228
|
this.iti = intlTelInput(this.inputRef.nativeElement, config);
|
|
232
229
|
});
|
|
233
|
-
// ensure dropdown is above app UI & apply disabled UI
|
|
234
230
|
this.inputRef.nativeElement.style.setProperty('--tel-dd-z', String(this.dropdownZIndex));
|
|
235
231
|
this.applyDisabledUi(this.disabled);
|
|
236
232
|
}
|
|
@@ -267,11 +263,7 @@ class NgxsmkTelInputComponent {
|
|
|
267
263
|
this.inputRef.nativeElement = clone;
|
|
268
264
|
}
|
|
269
265
|
}
|
|
270
|
-
// ---------- Input
|
|
271
|
-
sanitizeDigits(value) {
|
|
272
|
-
// visible input is digits-only regardless of props
|
|
273
|
-
return (value || '').replace(/\D/g, '');
|
|
274
|
-
}
|
|
266
|
+
// ---------- Input listeners ----------
|
|
275
267
|
bindDomListeners() {
|
|
276
268
|
const el = this.inputRef.nativeElement;
|
|
277
269
|
this.zone.runOutsideAngular(() => {
|
|
@@ -292,27 +284,18 @@ class NgxsmkTelInputComponent {
|
|
|
292
284
|
return;
|
|
293
285
|
const isDigit = data >= '0' && data <= '9';
|
|
294
286
|
if (!isDigit)
|
|
295
|
-
ev.preventDefault();
|
|
287
|
+
ev.preventDefault(); // digits only; we add spaces ourselves
|
|
296
288
|
});
|
|
297
289
|
el.addEventListener('paste', (e) => {
|
|
298
290
|
const text = (e.clipboardData || window.clipboardData).getData('text') || '';
|
|
299
291
|
e.preventDefault();
|
|
300
|
-
const
|
|
292
|
+
const digits = this.toNSN(text);
|
|
301
293
|
const start = el.selectionStart ?? el.value.length;
|
|
302
294
|
const end = el.selectionEnd ?? el.value.length;
|
|
303
|
-
el.setRangeText(
|
|
295
|
+
el.setRangeText(digits, start, end, 'end');
|
|
304
296
|
queueMicrotask(() => this.handleInput());
|
|
305
297
|
});
|
|
306
|
-
el.addEventListener('input', () =>
|
|
307
|
-
const val = el.value;
|
|
308
|
-
const sanitized = this.sanitizeDigits(val);
|
|
309
|
-
if (val !== sanitized) {
|
|
310
|
-
const caret = el.selectionStart ?? sanitized.length;
|
|
311
|
-
el.value = sanitized;
|
|
312
|
-
el.setSelectionRange(caret, caret);
|
|
313
|
-
}
|
|
314
|
-
this.handleInput();
|
|
315
|
-
});
|
|
298
|
+
el.addEventListener('input', () => this.handleInput());
|
|
316
299
|
el.addEventListener('countrychange', () => {
|
|
317
300
|
const iso2 = this.currentIso2();
|
|
318
301
|
this.zone.run(() => {
|
|
@@ -328,15 +311,16 @@ class NgxsmkTelInputComponent {
|
|
|
328
311
|
onBlur() {
|
|
329
312
|
this.touched = true;
|
|
330
313
|
this.zone.run(() => this.onTouchedCb());
|
|
331
|
-
if (
|
|
332
|
-
return;
|
|
333
|
-
const raw = this.currentRaw();
|
|
334
|
-
if (!raw)
|
|
314
|
+
if (this.formatWhenValid === 'off')
|
|
335
315
|
return;
|
|
336
316
|
const iso2 = this.currentIso2();
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
|
|
317
|
+
const digits = this.stripLeadingZero(this.toNSN(this.currentRaw()));
|
|
318
|
+
const parsed = this.tel.parse(digits, iso2);
|
|
319
|
+
if (!parsed.e164 && !parsed.isValid)
|
|
320
|
+
return;
|
|
321
|
+
const nsn = parsed.e164 ? this.nsnFromE164(parsed.e164, iso2) : digits;
|
|
322
|
+
if (this.formatWhenValid !== 'typing') {
|
|
323
|
+
this.setInputValue(this.displayValue(nsn, iso2));
|
|
340
324
|
}
|
|
341
325
|
}
|
|
342
326
|
onFocus() {
|
|
@@ -349,70 +333,55 @@ class NgxsmkTelInputComponent {
|
|
|
349
333
|
handleInput() {
|
|
350
334
|
if (this.suppressEvents)
|
|
351
335
|
return;
|
|
352
|
-
let raw = this.toNSN(this.currentRaw());
|
|
353
336
|
const iso2 = this.currentIso2();
|
|
354
|
-
//
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
raw = this.currentRaw();
|
|
359
|
-
}
|
|
360
|
-
// Parse once
|
|
361
|
-
const parsed = this.tel.parse(raw, iso2);
|
|
362
|
-
// Emit E.164 to the form
|
|
337
|
+
// Users type national digits; remove any separators and a single trunk '0'
|
|
338
|
+
let digits = this.stripLeadingZero(this.toNSN(this.currentRaw()));
|
|
339
|
+
const parsed = this.tel.parse(digits, iso2);
|
|
340
|
+
// Emit E.164 to the form (or null if incomplete)
|
|
363
341
|
this.zone.run(() => this.onChange(parsed.e164));
|
|
364
|
-
this.zone.run(() => this.inputChange.emit({ raw, e164: parsed.e164, iso2 }));
|
|
365
|
-
// Keep visible as
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}
|
|
371
|
-
// optional live formatting (we keep digits-only anyway)
|
|
372
|
-
if (this.formatWhenValid === 'typing' && raw && parsed.isValid) {
|
|
373
|
-
const natPretty = this.toNSN(this.formatAsYouType(raw, iso2));
|
|
374
|
-
if (natPretty !== raw)
|
|
375
|
-
this.setInputValue(natPretty);
|
|
376
|
-
}
|
|
342
|
+
this.zone.run(() => this.inputChange.emit({ raw: this.currentRaw(), e164: parsed.e164, iso2 }));
|
|
343
|
+
// Keep visible value as NSN (optionally formatted)
|
|
344
|
+
const nsn = parsed.e164 ? this.nsnFromE164(parsed.e164, iso2) : digits;
|
|
345
|
+
const display = this.formatWhenValid === 'typing' ? this.displayValue(nsn, iso2) : nsn;
|
|
346
|
+
if (display !== this.currentRaw())
|
|
347
|
+
this.setInputValue(display);
|
|
377
348
|
}
|
|
378
349
|
// ---------- Utilities ----------
|
|
379
|
-
/**
|
|
380
|
-
|
|
350
|
+
/** Convert any string to digits only (NSN basis). */
|
|
351
|
+
toNSN(v) {
|
|
352
|
+
return (v ?? '').replace(/\D/g, '');
|
|
353
|
+
}
|
|
354
|
+
/** Strip exactly one leading trunk '0' from national input. */
|
|
355
|
+
stripLeadingZero(nsn) {
|
|
356
|
+
return nsn.replace(/^0/, '');
|
|
357
|
+
}
|
|
358
|
+
/** Current country calling code (e.g. "44", "94"). */
|
|
359
|
+
currentDialCode() {
|
|
360
|
+
return (this.iti?.getSelectedCountryData?.().dialCode ?? '').toString();
|
|
361
|
+
}
|
|
362
|
+
/** Convert E.164 (+<cc><nsn>) to NSN (never includes trunk '0'). */
|
|
363
|
+
nsnFromE164(e164, iso2) {
|
|
364
|
+
const dial = this.currentDialCode();
|
|
365
|
+
if (!e164 || !dial)
|
|
366
|
+
return this.toNSN(e164);
|
|
367
|
+
if (e164.startsWith('+' + dial))
|
|
368
|
+
return e164.slice(dial.length + 1);
|
|
369
|
+
return this.toNSN(e164);
|
|
370
|
+
}
|
|
371
|
+
/** Format NSN for region (adds spaces but NEVER a trunk '0'). */
|
|
372
|
+
formatNSN(nsn, iso2) {
|
|
381
373
|
try {
|
|
382
374
|
const fmt = new AsYouType(iso2);
|
|
383
|
-
return
|
|
375
|
+
return fmt.input(nsn);
|
|
384
376
|
}
|
|
385
377
|
catch {
|
|
386
|
-
return
|
|
378
|
+
return nsn;
|
|
387
379
|
}
|
|
388
380
|
}
|
|
389
|
-
/**
|
|
390
|
-
|
|
391
|
-
return
|
|
392
|
-
|
|
393
|
-
/** Generic: remove one trunk '0' after +<dial> or at national start, only if it makes a valid number */
|
|
394
|
-
stripTrunkZeroIfNeeded(raw, iso2) {
|
|
395
|
-
if (!raw)
|
|
396
|
-
return raw;
|
|
397
|
-
const dial = this.iti?.getSelectedCountryData?.().dialCode ?? '';
|
|
398
|
-
const p0 = this.tel.parse(raw, iso2);
|
|
399
|
-
if (p0.isValid)
|
|
400
|
-
return raw;
|
|
401
|
-
// Case 1: "+<dial>0xxxx" -> try "+<dial>xxxx"
|
|
402
|
-
if (raw.startsWith('+') && dial && raw.startsWith(`+${dial}0`)) {
|
|
403
|
-
const attempt = `+${dial}${raw.slice(dial.length + 2)}`;
|
|
404
|
-
const p1 = this.tel.parse(attempt, iso2);
|
|
405
|
-
if (p1.isValid)
|
|
406
|
-
return attempt;
|
|
407
|
-
}
|
|
408
|
-
// Case 2: national "0xxxx" -> try "xxxx"
|
|
409
|
-
if (!raw.startsWith('+') && raw.startsWith('0')) {
|
|
410
|
-
const attemptNat = raw.slice(1);
|
|
411
|
-
const p2 = this.tel.parse(attemptNat, iso2);
|
|
412
|
-
if (p2.isValid)
|
|
413
|
-
return attemptNat;
|
|
414
|
-
}
|
|
415
|
-
return raw;
|
|
381
|
+
/** Compose visible value based on settings. */
|
|
382
|
+
displayValue(nsn, iso2) {
|
|
383
|
+
return this.nationalDisplay === 'formatted' ? this.formatNSN(nsn, iso2) : nsn;
|
|
384
|
+
// (spaces in formatted mode; digits only otherwise)
|
|
416
385
|
}
|
|
417
386
|
currentRaw() { return (this.inputRef?.nativeElement.value ?? '').trim(); }
|
|
418
387
|
currentIso2() {
|
|
@@ -438,7 +407,7 @@ class NgxsmkTelInputComponent {
|
|
|
438
407
|
}
|
|
439
408
|
}
|
|
440
409
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: NgxsmkTelInputComponent, deps: [{ token: i0.NgZone }, { token: NgxsmkTelInputService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
441
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: NgxsmkTelInputComponent, isStandalone: true, selector: "ngxsmk-tel-input", inputs: { initialCountry: "initialCountry", preferredCountries: "preferredCountries", onlyCountries: "onlyCountries", separateDialCode: "separateDialCode", allowDropdown: "allowDropdown",
|
|
410
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: NgxsmkTelInputComponent, isStandalone: true, selector: "ngxsmk-tel-input", inputs: { initialCountry: "initialCountry", preferredCountries: "preferredCountries", onlyCountries: "onlyCountries", separateDialCode: "separateDialCode", allowDropdown: "allowDropdown", nationalDisplay: "nationalDisplay", formatWhenValid: "formatWhenValid", placeholder: "placeholder", autocomplete: "autocomplete", name: "name", inputId: "inputId", disabled: "disabled", label: "label", hint: "hint", errorText: "errorText", size: "size", variant: "variant", showClear: "showClear", autoFocus: "autoFocus", selectOnFocus: "selectOnFocus", showErrorWhenTouched: "showErrorWhenTouched", dropdownAttachToBody: "dropdownAttachToBody", dropdownZIndex: "dropdownZIndex", i18n: "i18n", telI18n: "telI18n", localizedCountries: "localizedCountries", telLocalizedCountries: "telLocalizedCountries", clearAriaLabel: "clearAriaLabel", dir: "dir", autoPlaceholder: "autoPlaceholder", utilsScript: "utilsScript", customPlaceholder: "customPlaceholder", digitsOnly: "digitsOnly", lockWhenValid: "lockWhenValid" }, outputs: { countryChange: "countryChange", validityChange: "validityChange", inputChange: "inputChange" }, providers: [
|
|
442
411
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => NgxsmkTelInputComponent), multi: true },
|
|
443
412
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => NgxsmkTelInputComponent), multi: true }
|
|
444
413
|
], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["telInput"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
@@ -462,7 +431,6 @@ class NgxsmkTelInputComponent {
|
|
|
462
431
|
[attr.placeholder]="placeholder || null"
|
|
463
432
|
[attr.autocomplete]="autocomplete"
|
|
464
433
|
[attr.inputmode]="digitsOnly ? 'numeric' : 'tel'"
|
|
465
|
-
[attr.pattern]="digitsOnly ? (allowLeadingPlus ? '\\\\+?[0-9]*' : '[0-9]*') : null"
|
|
466
434
|
[disabled]="disabled"
|
|
467
435
|
[attr.aria-invalid]="showError ? 'true' : 'false'"
|
|
468
436
|
(blur)="onBlur()"
|
|
@@ -509,7 +477,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
509
477
|
[attr.placeholder]="placeholder || null"
|
|
510
478
|
[attr.autocomplete]="autocomplete"
|
|
511
479
|
[attr.inputmode]="digitsOnly ? 'numeric' : 'tel'"
|
|
512
|
-
[attr.pattern]="digitsOnly ? (allowLeadingPlus ? '\\\\+?[0-9]*' : '[0-9]*') : null"
|
|
513
480
|
[disabled]="disabled"
|
|
514
481
|
[attr.aria-invalid]="showError ? 'true' : 'false'"
|
|
515
482
|
(blur)="onBlur()"
|
|
@@ -548,7 +515,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
548
515
|
type: Input
|
|
549
516
|
}], allowDropdown: [{
|
|
550
517
|
type: Input
|
|
551
|
-
}],
|
|
518
|
+
}], nationalDisplay: [{
|
|
519
|
+
type: Input
|
|
520
|
+
}], formatWhenValid: [{
|
|
552
521
|
type: Input
|
|
553
522
|
}], placeholder: [{
|
|
554
523
|
type: Input
|
|
@@ -576,8 +545,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
576
545
|
type: Input
|
|
577
546
|
}], selectOnFocus: [{
|
|
578
547
|
type: Input
|
|
579
|
-
}], formatOnBlur: [{
|
|
580
|
-
type: Input
|
|
581
548
|
}], showErrorWhenTouched: [{
|
|
582
549
|
type: Input
|
|
583
550
|
}], dropdownAttachToBody: [{
|
|
@@ -606,11 +573,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
606
573
|
type: Input
|
|
607
574
|
}], customPlaceholder: [{
|
|
608
575
|
type: Input
|
|
609
|
-
}], formatWhenValid: [{
|
|
610
|
-
type: Input
|
|
611
576
|
}], digitsOnly: [{
|
|
612
577
|
type: Input
|
|
613
|
-
}],
|
|
578
|
+
}], lockWhenValid: [{
|
|
614
579
|
type: Input
|
|
615
580
|
}], countryChange: [{
|
|
616
581
|
type: Output
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngxsmk-tel-input.mjs","sources":["../../../projects/ngxsmk-tel-input/src/lib/ngxsmk-tel-input.service.ts","../../../projects/ngxsmk-tel-input/src/lib/ngxsmk-tel-input.component.ts","../../../projects/ngxsmk-tel-input/src/ngxsmk-tel-input.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { parsePhoneNumberFromString, type CountryCode } from 'libphonenumber-js';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NgxsmkTelInputService {\r\n parse(input: string, iso2: CountryCode): { e164: string | null; national: string | null; isValid: boolean } {\r\n const phone = parsePhoneNumberFromString(input || '', iso2);\r\n if (!phone) return { e164: null, national: null, isValid: false };\r\n const isValid = phone.isValid();\r\n return { e164: isValid ? phone.number : null, national: phone.formatNational(), isValid };\r\n }\r\n\r\n isValid(input: string, iso2: CountryCode): boolean {\r\n const phone = parsePhoneNumberFromString(input || '', iso2);\r\n return !!phone && phone.isValid();\r\n }\r\n}\r\n","import {\r\n AfterViewInit,\r\n Component,\r\n ElementRef,\r\n EventEmitter,\r\n forwardRef,\r\n inject,\r\n Input,\r\n NgZone,\r\n OnChanges,\r\n OnDestroy,\r\n Output,\r\n PLATFORM_ID,\r\n SimpleChanges,\r\n ViewChild\r\n} from '@angular/core';\r\nimport { isPlatformBrowser } from '@angular/common';\r\nimport {\r\n AbstractControl,\r\n ControlValueAccessor,\r\n NG_VALIDATORS,\r\n NG_VALUE_ACCESSOR,\r\n ValidationErrors,\r\n Validator\r\n} from '@angular/forms';\r\nimport { AsYouType, CountryCode } from 'libphonenumber-js';\r\nimport { NgxsmkTelInputService } from './ngxsmk-tel-input.service';\r\nimport { CountryMap, IntlTelI18n } from './types';\r\n\r\ntype IntlTelInstance = any;\r\n\r\n@Component({\r\n selector: 'ngxsmk-tel-input',\r\n standalone: true,\r\n imports: [],\r\n template: `\r\n <div class=\"ngxsmk-tel\"\r\n [class.disabled]=\"disabled\"\r\n [attr.data-size]=\"size\"\r\n [attr.data-variant]=\"variant\"\r\n [attr.dir]=\"dir\">\r\n @if (label) {\r\n <label class=\"ngxsmk-tel__label\" [for]=\"resolvedId\">{{ label }}</label>\r\n }\r\n\r\n <div class=\"ngxsmk-tel__wrap\" [class.has-error]=\"showError\">\r\n <div class=\"ngxsmk-tel-input__wrapper\">\r\n <input\r\n #telInput\r\n type=\"tel\"\r\n class=\"ngxsmk-tel-input__control\"\r\n [id]=\"resolvedId\"\r\n [attr.name]=\"name || null\"\r\n [attr.placeholder]=\"placeholder || null\"\r\n [attr.autocomplete]=\"autocomplete\"\r\n [attr.inputmode]=\"digitsOnly ? 'numeric' : 'tel'\"\r\n [attr.pattern]=\"digitsOnly ? (allowLeadingPlus ? '\\\\\\\\+?[0-9]*' : '[0-9]*') : null\"\r\n [disabled]=\"disabled\"\r\n [attr.aria-invalid]=\"showError ? 'true' : 'false'\"\r\n (blur)=\"onBlur()\"\r\n (focus)=\"onFocus()\"\r\n />\r\n </div>\r\n\r\n @if (showClear && currentRaw()) {\r\n <button type=\"button\"\r\n class=\"ngxsmk-tel__clear\"\r\n (click)=\"clearInput()\"\r\n [attr.aria-label]=\"clearAriaLabel\">\r\n ×\r\n </button>\r\n }\r\n </div>\r\n\r\n @if (hint && !showError) {\r\n <div class=\"ngxsmk-tel__hint\">{{ hint }}</div>\r\n }\r\n </div>\r\n `,\r\n styleUrls: ['./ngxsmk-tel-input.component.scss'],\r\n providers: [\r\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => NgxsmkTelInputComponent), multi: true },\r\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => NgxsmkTelInputComponent), multi: true }\r\n ]\r\n})\r\nexport class NgxsmkTelInputComponent implements AfterViewInit, OnChanges, OnDestroy, ControlValueAccessor, Validator {\r\n @ViewChild('telInput', { static: true }) inputRef!: ElementRef<HTMLInputElement>;\r\n\r\n /* Core config */\r\n @Input() initialCountry: CountryCode | 'auto' = 'US';\r\n @Input() preferredCountries: CountryCode[] = ['US', 'GB'];\r\n @Input() onlyCountries?: CountryCode[];\r\n /** UI-only: flag/dial code. Input will ALWAYS show national digits only. */\r\n @Input() separateDialCode: boolean = false;\r\n @Input() allowDropdown: boolean = true;\r\n /** UI “valid lock” while typing digits */\r\n @Input() lockWhenValid: boolean = true;\r\n\r\n /* UX */\r\n @Input() placeholder?: string;\r\n @Input() autocomplete = 'tel';\r\n @Input() name?: string;\r\n @Input() inputId?: string;\r\n @Input() disabled: boolean = false;\r\n\r\n @Input() label?: string;\r\n @Input() hint?: string;\r\n @Input() errorText?: string;\r\n @Input() size: 'sm' | 'md' | 'lg' = 'md';\r\n @Input() variant: 'outline' | 'filled' | 'underline' = 'outline';\r\n @Input() showClear: boolean = true;\r\n @Input() autoFocus: boolean = false;\r\n @Input() selectOnFocus: boolean = false;\r\n @Input() formatOnBlur: boolean = true;\r\n @Input() showErrorWhenTouched: boolean = true;\r\n\r\n /* Dropdown plumbing */\r\n @Input() dropdownAttachToBody: boolean = true;\r\n @Input() dropdownZIndex: number = 2000;\r\n\r\n /* Localization + RTL */\r\n @Input('i18n') i18n?: IntlTelI18n;\r\n @Input('telI18n') set telI18n(v: IntlTelI18n | undefined) { this.i18n = v; }\r\n @Input('localizedCountries') localizedCountries?: CountryMap;\r\n @Input('telLocalizedCountries') set telLocalizedCountries(v: CountryMap | undefined) { this.localizedCountries = v; }\r\n\r\n @Input() clearAriaLabel: string = 'Clear phone number';\r\n @Input() dir: 'ltr' | 'rtl' = 'ltr';\r\n\r\n /* Placeholders (intl-tel-input) */\r\n @Input() autoPlaceholder: 'off' | 'polite' | 'aggressive' = 'off';\r\n @Input() utilsScript?: string;\r\n @Input() customPlaceholder?: (example: string, country: any) => string;\r\n\r\n /** When to live-format while typing (NATIONAL visible only) */\r\n @Input() formatWhenValid: 'off' | 'blur' | 'typing' = 'blur';\r\n\r\n /* Digits-only controls (visible input is digits-only regardless; these affect typing filters) */\r\n @Input() digitsOnly: boolean = true;\r\n @Input() allowLeadingPlus: boolean = false;\r\n\r\n /* Outputs */\r\n @Output() countryChange = new EventEmitter<{ iso2: CountryCode }>();\r\n @Output() validityChange = new EventEmitter<boolean>();\r\n @Output() inputChange = new EventEmitter<{ raw: string; e164: string | null; iso2: CountryCode }>();\r\n\r\n /* Internal */\r\n private iti: IntlTelInstance | null = null;\r\n private onChange: (val: string | null) => void = () => {};\r\n private onTouchedCb: () => void = () => {};\r\n private validatorChange?: () => void;\r\n private lastEmittedValid = false;\r\n private pendingWrite: string | null = null;\r\n private touched: boolean = false;\r\n\r\n private allowDropdownWasTrue = false;\r\n private suppressEvents = false;\r\n\r\n readonly resolvedId: string = this.inputId || ('tel-' + Math.random().toString(36).slice(2));\r\n private readonly platformId = inject(PLATFORM_ID);\r\n\r\n constructor(\r\n private readonly zone: NgZone,\r\n private readonly tel: NgxsmkTelInputService\r\n ) {}\r\n\r\n // ---------- Lifecycle ----------\r\n ngAfterViewInit(): void {\r\n if (!isPlatformBrowser(this.platformId)) return;\r\n void this.initAndWire();\r\n }\r\n\r\n private async initAndWire(): Promise<void> {\r\n await this.initIntlTelInput();\r\n this.bindDomListeners();\r\n\r\n if (this.pendingWrite !== null) {\r\n const v = this.pendingWrite;\r\n this.pendingWrite = null;\r\n this.writeValue(v);\r\n }\r\n\r\n if (this.autoFocus) setTimeout(() => this.focus(), 0);\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n if (!isPlatformBrowser(this.platformId)) return;\r\n const configChanged = [\r\n 'initialCountry', 'preferredCountries', 'onlyCountries',\r\n 'separateDialCode', 'allowDropdown',\r\n 'i18n', 'localizedCountries', 'dir',\r\n 'autoPlaceholder', 'utilsScript', 'customPlaceholder'\r\n ].some(k => k in changes && !changes[k]?.firstChange);\r\n\r\n if (configChanged && this.iti) {\r\n this.reinitPlugin();\r\n this.validatorChange?.();\r\n }\r\n }\r\n\r\n ngOnDestroy(): void { this.destroyPlugin(); }\r\n\r\n // ---------- CVA ----------\r\n writeValue(val: string | null): void {\r\n if (!this.inputRef) return;\r\n\r\n if (!this.iti) { // not initialized yet\r\n this.pendingWrite = val ?? '';\r\n return;\r\n }\r\n\r\n this.suppressEvents = true;\r\n try {\r\n // Let the plugin infer selected country from E.164\r\n this.iti.setNumber(val || '');\r\n\r\n const iso2 = this.currentIso2();\r\n const normalized = this.stripTrunkZeroIfNeeded(val ?? '', iso2);\r\n const parsed = this.tel.parse(normalized, iso2);\r\n\r\n // Visible input: ALWAYS NATIONAL digits only\r\n const nsn = this.toNSN(parsed.national ?? normalized.replace(/^\\+\\d+/, ''));\r\n this.setInputValue(nsn);\r\n\r\n // FormControl value: ALWAYS E.164 (or null)\r\n this.zone.run(() => this.onChange(parsed.e164));\r\n this.zone.run(() => this.inputChange.emit({ raw: nsn, e164: parsed.e164, iso2 }));\r\n } finally {\r\n this.suppressEvents = false;\r\n }\r\n }\r\n\r\n registerOnChange(fn: any): void { this.onChange = fn; }\r\n registerOnTouched(fn: any): void { this.onTouchedCb = fn; }\r\n\r\n setDisabledState(isDisabled: boolean): void {\r\n this.disabled = isDisabled;\r\n\r\n // 1) native input state\r\n if (this.inputRef) this.inputRef.nativeElement.disabled = isDisabled;\r\n\r\n // 2) disable/enable dropdown robustly by toggling allowDropdown and reinit\r\n if (this.iti) {\r\n if (isDisabled && this.allowDropdown) {\r\n this.allowDropdownWasTrue = true;\r\n this.allowDropdown = false;\r\n this.reinitPlugin();\r\n } else if (!isDisabled && this.allowDropdownWasTrue) {\r\n this.allowDropdown = true;\r\n this.allowDropdownWasTrue = false;\r\n this.reinitPlugin();\r\n } else {\r\n this.applyDisabledUi(isDisabled);\r\n }\r\n } else {\r\n this.applyDisabledUi(isDisabled);\r\n }\r\n }\r\n\r\n // ---------- Validator ----------\r\n validate(_: AbstractControl): ValidationErrors | null {\r\n const raw = this.currentRaw();\r\n if (!raw) return null;\r\n const valid = this.tel.isValid(raw, this.currentIso2());\r\n if (valid !== this.lastEmittedValid) {\r\n this.lastEmittedValid = valid;\r\n this.validityChange.emit(valid);\r\n }\r\n return valid ? null : { phoneInvalid: true };\r\n }\r\n\r\n registerOnValidatorChange(fn: () => void): void { this.validatorChange = fn; }\r\n\r\n // ---------- Public helpers ----------\r\n focus(): void {\r\n this.inputRef?.nativeElement.focus();\r\n if (this.selectOnFocus) {\r\n const el = this.inputRef.nativeElement;\r\n queueMicrotask(() => el.setSelectionRange(0, el.value.length));\r\n }\r\n }\r\n\r\n selectCountry(iso2: CountryCode): void {\r\n if (this.iti) {\r\n this.iti.setCountry(iso2.toLowerCase());\r\n this.handleInput();\r\n }\r\n }\r\n\r\n clearInput(): void {\r\n this.setInputValue('');\r\n this.handleInput();\r\n this.inputRef.nativeElement.focus();\r\n }\r\n\r\n // ---------- intl-tel-input wiring ----------\r\n private async initIntlTelInput() {\r\n const [{ default: intlTelInput }] = await Promise.all([import('intl-tel-input')]);\r\n\r\n const toLowerKeys = (m?: CountryMap) => {\r\n if (!m) return undefined;\r\n const out: Record<string, string> = {};\r\n for (const k in m) if (Object.prototype.hasOwnProperty.call(m, k)) {\r\n const v = (m as Record<string, string | undefined>)[k];\r\n if (v != null) out[k.toLowerCase()] = v;\r\n }\r\n return out;\r\n };\r\n\r\n const config: any = {\r\n initialCountry: this.initialCountry === 'auto' ? 'auto' : (this.initialCountry?.toLowerCase() || 'us'),\r\n preferredCountries: (this.preferredCountries ?? []).map(c => c.toLowerCase()),\r\n onlyCountries: (this.onlyCountries ?? []).map(c => c.toLowerCase()),\r\n\r\n // We ALWAYS show national digits in the input ourselves,\r\n // but enabling nationalMode prevents plugin from forcing a '+' back in.\r\n nationalMode: true,\r\n\r\n allowDropdown: this.allowDropdown,\r\n separateDialCode: this.separateDialCode,\r\n geoIpLookup: (cb: (iso2: string) => void) => cb('us'),\r\n\r\n // placeholders\r\n autoPlaceholder: this.autoPlaceholder,\r\n utilsScript: this.utilsScript,\r\n customPlaceholder: this.customPlaceholder,\r\n\r\n // localization\r\n i18n: this.i18n,\r\n localizedCountries: toLowerKeys(this.localizedCountries),\r\n\r\n // dropdown container\r\n dropdownContainer: this.dropdownAttachToBody && typeof document !== 'undefined' ? document.body : undefined\r\n };\r\n\r\n this.zone.runOutsideAngular(() => {\r\n this.iti = intlTelInput(this.inputRef.nativeElement, config);\r\n });\r\n\r\n // ensure dropdown is above app UI & apply disabled UI\r\n (this.inputRef.nativeElement as HTMLElement).style.setProperty('--tel-dd-z', String(this.dropdownZIndex));\r\n this.applyDisabledUi(this.disabled);\r\n }\r\n\r\n private async reinitPlugin() {\r\n const prevIso2 = (this.iti?.getSelectedCountryData?.().iso2 || this.initialCountry || 'US').toString().toLowerCase();\r\n const prevValue = this.currentRaw();\r\n\r\n this.destroyPlugin();\r\n await this.initIntlTelInput();\r\n this.bindDomListeners();\r\n\r\n try { this.iti?.setCountry(prevIso2); } catch {}\r\n if (prevValue) {\r\n this.setInputValue(prevValue);\r\n this.handleInput();\r\n }\r\n this.applyDisabledUi(this.disabled);\r\n }\r\n\r\n private destroyPlugin() {\r\n if (this.iti) {\r\n this.iti.destroy();\r\n this.iti = null;\r\n }\r\n if (this.inputRef?.nativeElement) {\r\n const el = this.inputRef.nativeElement;\r\n const clone = el.cloneNode(true) as HTMLInputElement;\r\n\r\n // preserve state across clone\r\n clone.disabled = this.disabled;\r\n clone.id = this.resolvedId;\r\n clone.name = this.name ?? clone.name;\r\n clone.value = el.value;\r\n\r\n el.parentNode?.replaceChild(clone, el);\r\n (this.inputRef as any).nativeElement = clone;\r\n }\r\n }\r\n\r\n // ---------- Input filtering (digits-only) ----------\r\n private sanitizeDigits(value: string): string {\r\n // visible input is digits-only regardless of props\r\n return (value || '').replace(/\\D/g, '');\r\n }\r\n\r\n private bindDomListeners() {\r\n const el = this.inputRef.nativeElement;\r\n\r\n this.zone.runOutsideAngular(() => {\r\n el.addEventListener('beforeinput', (ev: InputEvent) => {\r\n if (!this.digitsOnly) return;\r\n const data = (ev as any).data as string | null;\r\n\r\n // If already valid, block extra digit insertions when no selection\r\n if (this.lockWhenValid && this.isCurrentlyValid()) {\r\n const selCollapsed = (el.selectionStart ?? 0) === (el.selectionEnd ?? 0);\r\n const isDigit = !!data && ev.inputType === 'insertText' && data >= '0' && data <= '9';\r\n if (selCollapsed && isDigit) { ev.preventDefault(); return; }\r\n }\r\n\r\n if (!data || ev.inputType !== 'insertText') return;\r\n const isDigit = data >= '0' && data <= '9';\r\n if (!isDigit) ev.preventDefault();\r\n });\r\n\r\n el.addEventListener('paste', (e: ClipboardEvent) => {\r\n const text = (e.clipboardData || (window as any).clipboardData).getData('text') || '';\r\n e.preventDefault();\r\n const sanitized = this.sanitizeDigits(text);\r\n const start = el.selectionStart ?? el.value.length;\r\n const end = el.selectionEnd ?? el.value.length;\r\n el.setRangeText(sanitized, start, end, 'end');\r\n queueMicrotask(() => this.handleInput());\r\n });\r\n\r\n el.addEventListener('input', () => {\r\n const val = el.value;\r\n const sanitized = this.sanitizeDigits(val);\r\n if (val !== sanitized) {\r\n const caret = el.selectionStart ?? sanitized.length;\r\n el.value = sanitized;\r\n el.setSelectionRange(caret, caret);\r\n }\r\n this.handleInput();\r\n });\r\n\r\n el.addEventListener('countrychange', () => {\r\n const iso2 = this.currentIso2();\r\n this.zone.run(() => {\r\n this.countryChange.emit({ iso2 });\r\n this.validatorChange?.();\r\n });\r\n this.handleInput();\r\n });\r\n\r\n el.addEventListener('blur', () => this.onBlur());\r\n });\r\n }\r\n\r\n // ---------- UX handlers ----------\r\n onBlur() {\r\n this.touched = true;\r\n this.zone.run(() => this.onTouchedCb());\r\n if (!this.formatOnBlur) return;\r\n\r\n const raw = this.currentRaw();\r\n if (!raw) return;\r\n\r\n const iso2 = this.currentIso2();\r\n const parsed = this.tel.parse(raw, iso2);\r\n\r\n if (parsed.isValid && parsed.national) {\r\n this.setInputValue(this.toNSN(parsed.national)); // keep digits only\r\n }\r\n }\r\n\r\n onFocus() {\r\n if (this.selectOnFocus) {\r\n const el = this.inputRef.nativeElement;\r\n queueMicrotask(() => el.setSelectionRange(0, el.value.length));\r\n }\r\n }\r\n\r\n // ---------- Core input pipeline ----------\r\n private handleInput() {\r\n if (this.suppressEvents) return;\r\n\r\n let raw = this.toNSN(this.currentRaw());\r\n const iso2 = this.currentIso2();\r\n\r\n // Try a generic trunk-0 strip only if it makes the number valid\r\n const fixed = this.stripTrunkZeroIfNeeded(raw, iso2);\r\n if (fixed !== raw) {\r\n this.setInputValue(this.toNSN(fixed));\r\n raw = this.currentRaw();\r\n }\r\n\r\n // Parse once\r\n const parsed = this.tel.parse(raw, iso2);\r\n\r\n // Emit E.164 to the form\r\n this.zone.run(() => this.onChange(parsed.e164));\r\n this.zone.run(() => this.inputChange.emit({ raw, e164: parsed.e164, iso2 }));\r\n\r\n // Keep visible as NATIONAL digits only\r\n if (parsed.isValid && parsed.national) {\r\n const nsn = this.toNSN(parsed.national).replace(/\\s{2,}/g, ' ');\r\n if (nsn !== raw) this.setInputValue(nsn);\r\n }\r\n\r\n // optional live formatting (we keep digits-only anyway)\r\n if (this.formatWhenValid === 'typing' && raw && parsed.isValid) {\r\n const natPretty = this.toNSN(this.formatAsYouType(raw, iso2));\r\n if (natPretty !== raw) this.setInputValue(natPretty);\r\n }\r\n }\r\n\r\n // ---------- Utilities ----------\r\n /** NATIONAL-only formatter while typing, using region for rules */\r\n private formatAsYouType(raw: string, iso2: CountryCode): string {\r\n try {\r\n const fmt = new AsYouType(iso2);\r\n return this.toNSN(fmt.input(raw));\r\n } catch {\r\n return raw;\r\n }\r\n }\r\n\r\n /** Convert any string to NSN (digits only). */\r\n private toNSN(v: string | null | undefined): string {\r\n return (v ?? '').replace(/\\D/g, '');\r\n }\r\n\r\n /** Generic: remove one trunk '0' after +<dial> or at national start, only if it makes a valid number */\r\n private stripTrunkZeroIfNeeded(raw: string, iso2: CountryCode): string {\r\n if (!raw) return raw;\r\n\r\n const dial = this.iti?.getSelectedCountryData?.().dialCode ?? '';\r\n const p0 = this.tel.parse(raw, iso2);\r\n if (p0.isValid) return raw;\r\n\r\n // Case 1: \"+<dial>0xxxx\" -> try \"+<dial>xxxx\"\r\n if (raw.startsWith('+') && dial && raw.startsWith(`+${dial}0`)) {\r\n const attempt = `+${dial}${raw.slice(dial.length + 2)}`;\r\n const p1 = this.tel.parse(attempt, iso2);\r\n if (p1.isValid) return attempt;\r\n }\r\n\r\n // Case 2: national \"0xxxx\" -> try \"xxxx\"\r\n if (!raw.startsWith('+') && raw.startsWith('0')) {\r\n const attemptNat = raw.slice(1);\r\n const p2 = this.tel.parse(attemptNat, iso2);\r\n if (p2.isValid) return attemptNat;\r\n }\r\n\r\n return raw;\r\n }\r\n\r\n currentRaw(): string { return (this.inputRef?.nativeElement.value ?? '').trim(); }\r\n\r\n private currentIso2(): CountryCode {\r\n const iso2 = (this.iti?.getSelectedCountryData?.().iso2 ?? this.initialCountry ?? 'US')\r\n .toString().toUpperCase();\r\n return iso2 as CountryCode;\r\n }\r\n\r\n private setInputValue(v: string) { this.inputRef.nativeElement.value = v ?? ''; }\r\n\r\n get showError(): boolean {\r\n const invalid = !!this.validate({} as AbstractControl);\r\n return this.showErrorWhenTouched ? (this.touched && invalid) : invalid;\r\n }\r\n\r\n private isCurrentlyValid(): boolean { return this.tel.isValid(this.currentRaw(), this.currentIso2()); }\r\n\r\n /** Make flag/dropdown non-interactive when disabled */\r\n private applyDisabledUi(disabled: boolean) {\r\n const input = this.inputRef?.nativeElement;\r\n if (!input) return;\r\n const flag = input.parentElement?.querySelector('.iti__selected-flag') as HTMLElement | null;\r\n if (flag) {\r\n flag.tabIndex = disabled ? -1 : 0;\r\n flag.setAttribute('aria-disabled', String(disabled));\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.NgxsmkTelInputService"],"mappings":";;;;;;MAIa,qBAAqB,CAAA;IAChC,KAAK,CAAC,KAAa,EAAE,IAAiB,EAAA;QACpC,MAAM,KAAK,GAAG,0BAA0B,CAAC,KAAK,IAAI,EAAE,EAAE,IAAI,CAAC;AAC3D,QAAA,IAAI,CAAC,KAAK;AAAE,YAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE;AACjE,QAAA,MAA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sBAAtB;gBAGc,IAAI,EAAA,CAAA;sBAAlB,KAAK;uBAAC,MAAM;gBACS,OAAO,EAAA,CAAA;sBAA5B,KAAK;uBAAC,SAAS;gBACa,kBAAkB,EAAA,CAAA;sBAA9C,KAAK;uBAAC,oBAAoB;gBACS,qBAAqB,EAAA,CAAA;sBAAxD,KAAK;uBAAC,uBAAuB;gBAErB,cAAc,EAAA,CAAA;sBAAtB;gBACQ,GAAG,EAAA,CAAA;sBAAX;gBAGQ,eAAe,EAAA,CAAA;sBAAvB;gBACQ,WAAW,EAAA,CAAA;sBAAnB;gBACQ,iBAAiB,EAAA,CAAA;sBAAzB;gBAGQ,eAAe,EAAA,CAAA;sBAAvB;gBAGQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,gBAAgB,EAAA,CAAA;sBAAxB;gBAGS,aAAa,EAAA,CAAA;sBAAtB;gBACS,cAAc,EAAA,CAAA;sBAAvB;gBACS,WAAW,EAAA,CAAA;sBAApB;;;AChJH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngxsmk-tel-input.mjs","sources":["../../../projects/ngxsmk-tel-input/src/lib/ngxsmk-tel-input.service.ts","../../../projects/ngxsmk-tel-input/src/lib/ngxsmk-tel-input.component.ts","../../../projects/ngxsmk-tel-input/src/ngxsmk-tel-input.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { parsePhoneNumberFromString, type CountryCode } from 'libphonenumber-js';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class NgxsmkTelInputService {\r\n parse(input: string, iso2: CountryCode): { e164: string | null; national: string | null; isValid: boolean } {\r\n const phone = parsePhoneNumberFromString(input || '', iso2);\r\n if (!phone) return { e164: null, national: null, isValid: false };\r\n const isValid = phone.isValid();\r\n return { e164: isValid ? phone.number : null, national: phone.formatNational(), isValid };\r\n }\r\n\r\n isValid(input: string, iso2: CountryCode): boolean {\r\n const phone = parsePhoneNumberFromString(input || '', iso2);\r\n return !!phone && phone.isValid();\r\n }\r\n}\r\n","import {\r\n AfterViewInit,\r\n Component,\r\n ElementRef,\r\n EventEmitter,\r\n forwardRef,\r\n inject,\r\n Input,\r\n NgZone,\r\n OnChanges,\r\n OnDestroy,\r\n Output,\r\n PLATFORM_ID,\r\n SimpleChanges,\r\n ViewChild\r\n} from '@angular/core';\r\nimport { isPlatformBrowser } from '@angular/common';\r\nimport {\r\n AbstractControl,\r\n ControlValueAccessor,\r\n NG_VALIDATORS,\r\n NG_VALUE_ACCESSOR,\r\n ValidationErrors,\r\n Validator\r\n} from '@angular/forms';\r\nimport { AsYouType, CountryCode } from 'libphonenumber-js';\r\nimport { NgxsmkTelInputService } from './ngxsmk-tel-input.service';\r\nimport { CountryMap, IntlTelI18n } from './types';\r\n\r\ntype IntlTelInstance = any;\r\n\r\n@Component({\r\n selector: 'ngxsmk-tel-input',\r\n standalone: true,\r\n imports: [],\r\n template: `\r\n <div class=\"ngxsmk-tel\"\r\n [class.disabled]=\"disabled\"\r\n [attr.data-size]=\"size\"\r\n [attr.data-variant]=\"variant\"\r\n [attr.dir]=\"dir\">\r\n @if (label) {\r\n <label class=\"ngxsmk-tel__label\" [for]=\"resolvedId\">{{ label }}</label>\r\n }\r\n\r\n <div class=\"ngxsmk-tel__wrap\" [class.has-error]=\"showError\">\r\n <div class=\"ngxsmk-tel-input__wrapper\">\r\n <input\r\n #telInput\r\n type=\"tel\"\r\n class=\"ngxsmk-tel-input__control\"\r\n [id]=\"resolvedId\"\r\n [attr.name]=\"name || null\"\r\n [attr.placeholder]=\"placeholder || null\"\r\n [attr.autocomplete]=\"autocomplete\"\r\n [attr.inputmode]=\"digitsOnly ? 'numeric' : 'tel'\"\r\n [disabled]=\"disabled\"\r\n [attr.aria-invalid]=\"showError ? 'true' : 'false'\"\r\n (blur)=\"onBlur()\"\r\n (focus)=\"onFocus()\"\r\n />\r\n </div>\r\n\r\n @if (showClear && currentRaw()) {\r\n <button type=\"button\"\r\n class=\"ngxsmk-tel__clear\"\r\n (click)=\"clearInput()\"\r\n [attr.aria-label]=\"clearAriaLabel\">\r\n ×\r\n </button>\r\n }\r\n </div>\r\n\r\n @if (hint && !showError) {\r\n <div class=\"ngxsmk-tel__hint\">{{ hint }}</div>\r\n }\r\n </div>\r\n `,\r\n styleUrls: ['./ngxsmk-tel-input.component.scss'],\r\n providers: [\r\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => NgxsmkTelInputComponent), multi: true },\r\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => NgxsmkTelInputComponent), multi: true }\r\n ]\r\n})\r\nexport class NgxsmkTelInputComponent implements AfterViewInit, OnChanges, OnDestroy, ControlValueAccessor, Validator {\r\n @ViewChild('telInput', { static: true }) inputRef!: ElementRef<HTMLInputElement>;\r\n\r\n /* Core config */\r\n @Input() initialCountry: CountryCode | 'auto' = 'US';\r\n @Input() preferredCountries: CountryCode[] = ['US', 'GB'];\r\n @Input() onlyCountries?: CountryCode[];\r\n /** Dropdown shows dial code; input will NEVER show dial code */\r\n @Input() separateDialCode: boolean = true;\r\n @Input() allowDropdown: boolean = true;\r\n\r\n /* Display / formatting */\r\n /** 'formatted' => national with spaces; 'digits' => digits only */\r\n @Input() nationalDisplay: 'formatted' | 'digits' = 'formatted';\r\n /** 'typing' (live), 'blur', or 'off' */\r\n @Input() formatWhenValid: 'off' | 'blur' | 'typing' = 'typing';\r\n\r\n /* UX */\r\n @Input() placeholder?: string;\r\n @Input() autocomplete = 'tel';\r\n @Input() name?: string;\r\n @Input() inputId?: string;\r\n @Input() disabled = false;\r\n\r\n @Input() label?: string;\r\n @Input() hint?: string;\r\n @Input() errorText?: string;\r\n @Input() size: 'sm' | 'md' | 'lg' = 'md';\r\n @Input() variant: 'outline' | 'filled' | 'underline' = 'outline';\r\n @Input() showClear = true;\r\n @Input() autoFocus = false;\r\n @Input() selectOnFocus = false;\r\n @Input() showErrorWhenTouched = true;\r\n\r\n /* Dropdown plumbing */\r\n @Input() dropdownAttachToBody = true;\r\n @Input() dropdownZIndex = 2000;\r\n\r\n /* Localization + RTL */\r\n @Input('i18n') i18n?: IntlTelI18n;\r\n @Input('telI18n') set telI18n(v: IntlTelI18n | undefined) { this.i18n = v; }\r\n @Input('localizedCountries') localizedCountries?: CountryMap;\r\n @Input('telLocalizedCountries') set telLocalizedCountries(v: CountryMap | undefined) { this.localizedCountries = v; }\r\n\r\n @Input() clearAriaLabel = 'Clear phone number';\r\n @Input() dir: 'ltr' | 'rtl' = 'ltr';\r\n\r\n /* Placeholders (intl-tel-input) */\r\n @Input() autoPlaceholder: 'off' | 'polite' | 'aggressive' = 'off';\r\n @Input() utilsScript?: string;\r\n @Input() customPlaceholder?: (example: string, country: any) => string;\r\n\r\n /* Input behavior */\r\n @Input() digitsOnly = true; // we still insert spaces when formatted\r\n @Input() lockWhenValid = true; // optional UX guard\r\n\r\n /* Outputs */\r\n @Output() countryChange = new EventEmitter<{ iso2: CountryCode }>();\r\n @Output() validityChange = new EventEmitter<boolean>();\r\n @Output() inputChange = new EventEmitter<{ raw: string; e164: string | null; iso2: CountryCode }>();\r\n\r\n /* Internal */\r\n private iti: IntlTelInstance | null = null;\r\n private onChange: (val: string | null) => void = () => {};\r\n private onTouchedCb: () => void = () => {};\r\n private validatorChange?: () => void;\r\n private lastEmittedValid = false;\r\n private pendingWrite: string | null = null;\r\n private touched = false;\r\n\r\n private allowDropdownWasTrue = false;\r\n private suppressEvents = false;\r\n\r\n readonly resolvedId: string = this.inputId || ('tel-' + Math.random().toString(36).slice(2));\r\n private readonly platformId = inject(PLATFORM_ID);\r\n\r\n constructor(private readonly zone: NgZone, private readonly tel: NgxsmkTelInputService) {}\r\n\r\n // ---------- Lifecycle ----------\r\n ngAfterViewInit(): void {\r\n if (!isPlatformBrowser(this.platformId)) return;\r\n void this.initAndWire();\r\n }\r\n\r\n private async initAndWire(): Promise<void> {\r\n await this.initIntlTelInput();\r\n this.bindDomListeners();\r\n\r\n if (this.pendingWrite !== null) {\r\n const v = this.pendingWrite;\r\n this.pendingWrite = null;\r\n this.writeValue(v);\r\n }\r\n\r\n if (this.autoFocus) setTimeout(() => this.focus(), 0);\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n if (!isPlatformBrowser(this.platformId)) return;\r\n const configChanged = [\r\n 'initialCountry', 'preferredCountries', 'onlyCountries',\r\n 'separateDialCode', 'allowDropdown',\r\n 'i18n', 'localizedCountries', 'dir',\r\n 'autoPlaceholder', 'utilsScript', 'customPlaceholder'\r\n ].some(k => k in changes && !changes[k]?.firstChange);\r\n\r\n if (configChanged && this.iti) {\r\n this.reinitPlugin();\r\n this.validatorChange?.();\r\n }\r\n }\r\n\r\n ngOnDestroy(): void { this.destroyPlugin(); }\r\n\r\n // ---------- CVA ----------\r\n writeValue(val: string | null): void {\r\n if (!this.inputRef) return;\r\n\r\n if (!this.iti) { // not ready yet\r\n this.pendingWrite = val ?? '';\r\n return;\r\n }\r\n\r\n this.suppressEvents = true;\r\n try {\r\n // Let the plugin infer the country from E.164 (if provided).\r\n this.iti.setNumber(val || '');\r\n\r\n const iso2 = this.currentIso2();\r\n const parsed = this.tel.parse(val ?? '', iso2);\r\n\r\n // Visible input: ALWAYS NSN (no dial code, no trunk '0')\r\n const nsn = parsed.e164\r\n ? this.nsnFromE164(parsed.e164, iso2)\r\n : this.stripLeadingZero(this.toNSN(parsed.national ?? (val ?? '')));\r\n\r\n const display = this.displayValue(nsn, iso2);\r\n this.setInputValue(display);\r\n\r\n // FormControl value: ALWAYS E.164 (or null)\r\n this.zone.run(() => this.onChange(parsed.e164));\r\n this.zone.run(() => this.inputChange.emit({ raw: display, e164: parsed.e164, iso2 }));\r\n } finally {\r\n this.suppressEvents = false;\r\n }\r\n }\r\n\r\n registerOnChange(fn: any): void { this.onChange = fn; }\r\n registerOnTouched(fn: any): void { this.onTouchedCb = fn; }\r\n\r\n setDisabledState(isDisabled: boolean): void {\r\n this.disabled = isDisabled;\r\n\r\n // 1) native input\r\n if (this.inputRef) this.inputRef.nativeElement.disabled = isDisabled;\r\n\r\n // 2) toggle dropdown by re-init with allowDropdown=false when disabled\r\n if (this.iti) {\r\n if (isDisabled && this.allowDropdown) {\r\n this.allowDropdownWasTrue = true;\r\n this.allowDropdown = false;\r\n this.reinitPlugin(); // closes popup & removes handlers\r\n } else if (!isDisabled && this.allowDropdownWasTrue) {\r\n this.allowDropdown = true;\r\n this.allowDropdownWasTrue = false;\r\n this.reinitPlugin(); // restore dropdown\r\n } else {\r\n this.applyDisabledUi(isDisabled);\r\n }\r\n } else {\r\n this.applyDisabledUi(isDisabled);\r\n }\r\n }\r\n\r\n // ---------- Validator ----------\r\n validate(_: AbstractControl): ValidationErrors | null {\r\n const raw = this.currentRaw();\r\n if (!raw) return null;\r\n const valid = this.tel.isValid(raw, this.currentIso2());\r\n if (valid !== this.lastEmittedValid) {\r\n this.lastEmittedValid = valid;\r\n this.validityChange.emit(valid);\r\n }\r\n return valid ? null : { phoneInvalid: true };\r\n }\r\n\r\n registerOnValidatorChange(fn: () => void): void { this.validatorChange = fn; }\r\n\r\n // ---------- Public helpers ----------\r\n focus(): void {\r\n this.inputRef?.nativeElement.focus();\r\n if (this.selectOnFocus) {\r\n const el = this.inputRef.nativeElement;\r\n queueMicrotask(() => el.setSelectionRange(0, el.value.length));\r\n }\r\n }\r\n\r\n selectCountry(iso2: CountryCode): void {\r\n if (this.iti) {\r\n this.iti.setCountry(iso2.toLowerCase());\r\n this.handleInput();\r\n }\r\n }\r\n\r\n clearInput(): void {\r\n this.setInputValue('');\r\n this.handleInput();\r\n this.inputRef.nativeElement.focus();\r\n }\r\n\r\n // ---------- intl-tel-input wiring ----------\r\n private async initIntlTelInput() {\r\n const [{ default: intlTelInput }] = await Promise.all([import('intl-tel-input')]);\r\n\r\n const toLowerKeys = (m?: CountryMap) => {\r\n if (!m) return undefined;\r\n const out: Record<string, string> = {};\r\n for (const k in m) if (Object.prototype.hasOwnProperty.call(m, k)) {\r\n const v = (m as Record<string, string | undefined>)[k];\r\n if (v != null) out[k.toLowerCase()] = v;\r\n }\r\n return out;\r\n };\r\n\r\n const config: any = {\r\n initialCountry: this.initialCountry === 'auto' ? 'auto' : (this.initialCountry?.toLowerCase() || 'us'),\r\n preferredCountries: (this.preferredCountries ?? []).map(c => c.toLowerCase()),\r\n onlyCountries: (this.onlyCountries ?? []).map(c => c.toLowerCase()),\r\n nationalMode: true, // we control the visible value; prevents '+' in the input\r\n allowDropdown: this.allowDropdown,\r\n separateDialCode: this.separateDialCode,\r\n geoIpLookup: (cb: (iso2: string) => void) => cb('us'),\r\n\r\n autoPlaceholder: this.autoPlaceholder,\r\n utilsScript: this.utilsScript,\r\n customPlaceholder: this.customPlaceholder,\r\n\r\n i18n: this.i18n,\r\n localizedCountries: toLowerKeys(this.localizedCountries),\r\n dropdownContainer: this.dropdownAttachToBody && typeof document !== 'undefined' ? document.body : undefined\r\n };\r\n\r\n this.zone.runOutsideAngular(() => {\r\n this.iti = intlTelInput(this.inputRef.nativeElement, config);\r\n });\r\n\r\n (this.inputRef.nativeElement as HTMLElement).style.setProperty('--tel-dd-z', String(this.dropdownZIndex));\r\n this.applyDisabledUi(this.disabled);\r\n }\r\n\r\n private async reinitPlugin() {\r\n const prevIso2 = (this.iti?.getSelectedCountryData?.().iso2 || this.initialCountry || 'US').toString().toLowerCase();\r\n const prevValue = this.currentRaw();\r\n\r\n this.destroyPlugin();\r\n await this.initIntlTelInput();\r\n this.bindDomListeners();\r\n\r\n try { this.iti?.setCountry(prevIso2); } catch {}\r\n if (prevValue) {\r\n this.setInputValue(prevValue);\r\n this.handleInput();\r\n }\r\n this.applyDisabledUi(this.disabled);\r\n }\r\n\r\n private destroyPlugin() {\r\n if (this.iti) {\r\n this.iti.destroy();\r\n this.iti = null;\r\n }\r\n if (this.inputRef?.nativeElement) {\r\n const el = this.inputRef.nativeElement;\r\n const clone = el.cloneNode(true) as HTMLInputElement;\r\n\r\n // preserve state across clone\r\n clone.disabled = this.disabled;\r\n clone.id = this.resolvedId;\r\n clone.name = this.name ?? clone.name;\r\n clone.value = el.value;\r\n\r\n el.parentNode?.replaceChild(clone, el);\r\n (this.inputRef as any).nativeElement = clone;\r\n }\r\n }\r\n\r\n // ---------- Input listeners ----------\r\n private bindDomListeners() {\r\n const el = this.inputRef.nativeElement;\r\n\r\n this.zone.runOutsideAngular(() => {\r\n el.addEventListener('beforeinput', (ev: InputEvent) => {\r\n if (!this.digitsOnly) return;\r\n const data = (ev as any).data as string | null;\r\n\r\n // If already valid, block extra digit insertions when no selection\r\n if (this.lockWhenValid && this.isCurrentlyValid()) {\r\n const selCollapsed = (el.selectionStart ?? 0) === (el.selectionEnd ?? 0);\r\n const isDigit = !!data && ev.inputType === 'insertText' && data >= '0' && data <= '9';\r\n if (selCollapsed && isDigit) { ev.preventDefault(); return; }\r\n }\r\n\r\n if (!data || ev.inputType !== 'insertText') return;\r\n const isDigit = data >= '0' && data <= '9';\r\n if (!isDigit) ev.preventDefault(); // digits only; we add spaces ourselves\r\n });\r\n\r\n el.addEventListener('paste', (e: ClipboardEvent) => {\r\n const text = (e.clipboardData || (window as any).clipboardData).getData('text') || '';\r\n e.preventDefault();\r\n const digits = this.toNSN(text);\r\n const start = el.selectionStart ?? el.value.length;\r\n const end = el.selectionEnd ?? el.value.length;\r\n el.setRangeText(digits, start, end, 'end');\r\n queueMicrotask(() => this.handleInput());\r\n });\r\n\r\n el.addEventListener('input', () => this.handleInput());\r\n\r\n el.addEventListener('countrychange', () => {\r\n const iso2 = this.currentIso2();\r\n this.zone.run(() => {\r\n this.countryChange.emit({ iso2 });\r\n this.validatorChange?.();\r\n });\r\n this.handleInput();\r\n });\r\n\r\n el.addEventListener('blur', () => this.onBlur());\r\n });\r\n }\r\n\r\n // ---------- UX handlers ----------\r\n onBlur() {\r\n this.touched = true;\r\n this.zone.run(() => this.onTouchedCb());\r\n if (this.formatWhenValid === 'off') return;\r\n\r\n const iso2 = this.currentIso2();\r\n const digits = this.stripLeadingZero(this.toNSN(this.currentRaw()));\r\n\r\n const parsed = this.tel.parse(digits, iso2);\r\n if (!parsed.e164 && !parsed.isValid) return;\r\n\r\n const nsn = parsed.e164 ? this.nsnFromE164(parsed.e164, iso2) : digits;\r\n if (this.formatWhenValid !== 'typing') {\r\n this.setInputValue(this.displayValue(nsn, iso2));\r\n }\r\n }\r\n\r\n onFocus() {\r\n if (this.selectOnFocus) {\r\n const el = this.inputRef.nativeElement;\r\n queueMicrotask(() => el.setSelectionRange(0, el.value.length));\r\n }\r\n }\r\n\r\n // ---------- Core input pipeline ----------\r\n private handleInput() {\r\n if (this.suppressEvents) return;\r\n\r\n const iso2 = this.currentIso2();\r\n // Users type national digits; remove any separators and a single trunk '0'\r\n let digits = this.stripLeadingZero(this.toNSN(this.currentRaw()));\r\n\r\n const parsed = this.tel.parse(digits, iso2);\r\n\r\n // Emit E.164 to the form (or null if incomplete)\r\n this.zone.run(() => this.onChange(parsed.e164));\r\n this.zone.run(() => this.inputChange.emit({ raw: this.currentRaw(), e164: parsed.e164, iso2 }));\r\n\r\n // Keep visible value as NSN (optionally formatted)\r\n const nsn = parsed.e164 ? this.nsnFromE164(parsed.e164, iso2) : digits;\r\n const display = this.formatWhenValid === 'typing' ? this.displayValue(nsn, iso2) : nsn;\r\n\r\n if (display !== this.currentRaw()) this.setInputValue(display);\r\n }\r\n\r\n // ---------- Utilities ----------\r\n /** Convert any string to digits only (NSN basis). */\r\n private toNSN(v: string | null | undefined): string {\r\n return (v ?? '').replace(/\\D/g, '');\r\n }\r\n\r\n /** Strip exactly one leading trunk '0' from national input. */\r\n private stripLeadingZero(nsn: string): string {\r\n return nsn.replace(/^0/, '');\r\n }\r\n\r\n /** Current country calling code (e.g. \"44\", \"94\"). */\r\n private currentDialCode(): string {\r\n return (this.iti?.getSelectedCountryData?.().dialCode ?? '').toString();\r\n }\r\n\r\n /** Convert E.164 (+<cc><nsn>) to NSN (never includes trunk '0'). */\r\n private nsnFromE164(e164: string, iso2: CountryCode): string {\r\n const dial = this.currentDialCode();\r\n if (!e164 || !dial) return this.toNSN(e164);\r\n if (e164.startsWith('+' + dial)) return e164.slice(dial.length + 1);\r\n return this.toNSN(e164);\r\n }\r\n\r\n /** Format NSN for region (adds spaces but NEVER a trunk '0'). */\r\n private formatNSN(nsn: string, iso2: CountryCode): string {\r\n try {\r\n const fmt = new AsYouType(iso2);\r\n return fmt.input(nsn);\r\n } catch {\r\n return nsn;\r\n }\r\n }\r\n\r\n /** Compose visible value based on settings. */\r\n private displayValue(nsn: string, iso2: CountryCode): string {\r\n return this.nationalDisplay === 'formatted' ? this.formatNSN(nsn, iso2) : nsn;\r\n // (spaces in formatted mode; digits only otherwise)\r\n }\r\n\r\n currentRaw(): string { return (this.inputRef?.nativeElement.value ?? '').trim(); }\r\n\r\n private currentIso2(): CountryCode {\r\n const iso2 = (this.iti?.getSelectedCountryData?.().iso2 ?? this.initialCountry ?? 'US')\r\n .toString().toUpperCase();\r\n return iso2 as CountryCode;\r\n }\r\n\r\n private setInputValue(v: string) { this.inputRef.nativeElement.value = v ?? ''; }\r\n\r\n get showError(): boolean {\r\n const invalid = !!this.validate({} as AbstractControl);\r\n return this.showErrorWhenTouched ? (this.touched && invalid) : invalid;\r\n }\r\n\r\n private isCurrentlyValid(): boolean { return this.tel.isValid(this.currentRaw(), this.currentIso2()); }\r\n\r\n /** Make flag/dropdown non-interactive when disabled */\r\n private applyDisabledUi(disabled: boolean) {\r\n const input = this.inputRef?.nativeElement;\r\n if (!input) return;\r\n const flag = input.parentElement?.querySelector('.iti__selected-flag') as HTMLElement | null;\r\n if (flag) {\r\n flag.tabIndex = disabled ? -1 : 0;\r\n flag.setAttribute('aria-disabled', String(disabled));\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.NgxsmkTelInputService"],"mappings":";;;;;;MAIa,qBAAqB,CAAA;IAChC,KAAK,CAAC,KAAa,EAAE,IAAiB,EAAA;QACpC,MAAM,KAAK,GAAG,0BAA0B,CAAC,KAAK,IAAI,EAAE,EAAE,IAAI,C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AAA,CAAA;sBAAZ;gBACQ,OAAO,EAAA,CAAA;sBAAf;gBACQ,QAAQ,EAAA,CAAA;sBAAhB;gBAEQ,KAAK,EAAA,CAAA;sBAAb;gBACQ,IAAI,EAAA,CAAA;sBAAZ;gBACQ,SAAS,EAAA,CAAA;sBAAjB;gBACQ,IAAI,EAAA,CAAA;sBAAZ;gBACQ,OAAO,EAAA,CAAA;sBAAf;gBACQ,SAAS,EAAA,CAAA;sBAAjB;gBACQ,SAAS,EAAA,CAAA;sBAAjB;gBACQ,aAAa,EAAA,CAAA;sBAArB;gBACQ,oBAAoB,EAAA,CAAA;sBAA5B;gBAGQ,oBAAoB,EAAA,CAAA;sBAA5B;gBACQ,cAAc,EAAA,CAAA;sBAAtB;gBAGc,IAAI,EAAA,CAAA;sBAAlB,KAAK;uBAAC,MAAM;gBACS,OAAO,EAAA,CAAA;sBAA5B,KAAK;uBAAC,SAAS;gBACa,kBAAkB,EAAA,CAAA;sBAA9C,KAAK;uBAAC,oBAAoB;gBACS,qBAAqB,EAAA,CAAA;sBAAxD,KAAK;uBAAC,uBAAuB;gBAErB,cAAc,EAAA,CAAA;sBAAtB;gBACQ,GAAG,EAAA,CAAA;sBAAX;gBAGQ,eAAe,EAAA,CAAA;sBAAvB;gBACQ,WAAW,EAAA,CAAA;sBAAnB;gBACQ,iBAAiB,EAAA,CAAA;sBAAzB;gBAGQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,aAAa,EAAA,CAAA;sBAArB;gBAGS,aAAa,EAAA,CAAA;sBAAtB;gBACS,cAAc,EAAA,CAAA;sBAAvB;gBACS,WAAW,EAAA,CAAA;sBAApB;;;AC/IH;;AAEG;;;;"}
|
|
@@ -11,11 +11,13 @@ export declare class NgxsmkTelInputComponent implements AfterViewInit, OnChanges
|
|
|
11
11
|
initialCountry: CountryCode | 'auto';
|
|
12
12
|
preferredCountries: CountryCode[];
|
|
13
13
|
onlyCountries?: CountryCode[];
|
|
14
|
-
/**
|
|
14
|
+
/** Dropdown shows dial code; input will NEVER show dial code */
|
|
15
15
|
separateDialCode: boolean;
|
|
16
16
|
allowDropdown: boolean;
|
|
17
|
-
/**
|
|
18
|
-
|
|
17
|
+
/** 'formatted' => national with spaces; 'digits' => digits only */
|
|
18
|
+
nationalDisplay: 'formatted' | 'digits';
|
|
19
|
+
/** 'typing' (live), 'blur', or 'off' */
|
|
20
|
+
formatWhenValid: 'off' | 'blur' | 'typing';
|
|
19
21
|
placeholder?: string;
|
|
20
22
|
autocomplete: string;
|
|
21
23
|
name?: string;
|
|
@@ -29,7 +31,6 @@ export declare class NgxsmkTelInputComponent implements AfterViewInit, OnChanges
|
|
|
29
31
|
showClear: boolean;
|
|
30
32
|
autoFocus: boolean;
|
|
31
33
|
selectOnFocus: boolean;
|
|
32
|
-
formatOnBlur: boolean;
|
|
33
34
|
showErrorWhenTouched: boolean;
|
|
34
35
|
dropdownAttachToBody: boolean;
|
|
35
36
|
dropdownZIndex: number;
|
|
@@ -42,10 +43,8 @@ export declare class NgxsmkTelInputComponent implements AfterViewInit, OnChanges
|
|
|
42
43
|
autoPlaceholder: 'off' | 'polite' | 'aggressive';
|
|
43
44
|
utilsScript?: string;
|
|
44
45
|
customPlaceholder?: (example: string, country: any) => string;
|
|
45
|
-
/** When to live-format while typing (NATIONAL visible only) */
|
|
46
|
-
formatWhenValid: 'off' | 'blur' | 'typing';
|
|
47
46
|
digitsOnly: boolean;
|
|
48
|
-
|
|
47
|
+
lockWhenValid: boolean;
|
|
49
48
|
countryChange: EventEmitter<{
|
|
50
49
|
iso2: CountryCode;
|
|
51
50
|
}>;
|
|
@@ -83,17 +82,22 @@ export declare class NgxsmkTelInputComponent implements AfterViewInit, OnChanges
|
|
|
83
82
|
private initIntlTelInput;
|
|
84
83
|
private reinitPlugin;
|
|
85
84
|
private destroyPlugin;
|
|
86
|
-
private sanitizeDigits;
|
|
87
85
|
private bindDomListeners;
|
|
88
86
|
onBlur(): void;
|
|
89
87
|
onFocus(): void;
|
|
90
88
|
private handleInput;
|
|
91
|
-
/**
|
|
92
|
-
private formatAsYouType;
|
|
93
|
-
/** Convert any string to NSN (digits only). */
|
|
89
|
+
/** Convert any string to digits only (NSN basis). */
|
|
94
90
|
private toNSN;
|
|
95
|
-
/**
|
|
96
|
-
private
|
|
91
|
+
/** Strip exactly one leading trunk '0' from national input. */
|
|
92
|
+
private stripLeadingZero;
|
|
93
|
+
/** Current country calling code (e.g. "44", "94"). */
|
|
94
|
+
private currentDialCode;
|
|
95
|
+
/** Convert E.164 (+<cc><nsn>) to NSN (never includes trunk '0'). */
|
|
96
|
+
private nsnFromE164;
|
|
97
|
+
/** Format NSN for region (adds spaces but NEVER a trunk '0'). */
|
|
98
|
+
private formatNSN;
|
|
99
|
+
/** Compose visible value based on settings. */
|
|
100
|
+
private displayValue;
|
|
97
101
|
currentRaw(): string;
|
|
98
102
|
private currentIso2;
|
|
99
103
|
private setInputValue;
|
|
@@ -102,6 +106,6 @@ export declare class NgxsmkTelInputComponent implements AfterViewInit, OnChanges
|
|
|
102
106
|
/** Make flag/dropdown non-interactive when disabled */
|
|
103
107
|
private applyDisabledUi;
|
|
104
108
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxsmkTelInputComponent, never>;
|
|
105
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgxsmkTelInputComponent, "ngxsmk-tel-input", never, { "initialCountry": { "alias": "initialCountry"; "required": false; }; "preferredCountries": { "alias": "preferredCountries"; "required": false; }; "onlyCountries": { "alias": "onlyCountries"; "required": false; }; "separateDialCode": { "alias": "separateDialCode"; "required": false; }; "allowDropdown": { "alias": "allowDropdown"; "required": false; }; "
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgxsmkTelInputComponent, "ngxsmk-tel-input", never, { "initialCountry": { "alias": "initialCountry"; "required": false; }; "preferredCountries": { "alias": "preferredCountries"; "required": false; }; "onlyCountries": { "alias": "onlyCountries"; "required": false; }; "separateDialCode": { "alias": "separateDialCode"; "required": false; }; "allowDropdown": { "alias": "allowDropdown"; "required": false; }; "nationalDisplay": { "alias": "nationalDisplay"; "required": false; }; "formatWhenValid": { "alias": "formatWhenValid"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "name": { "alias": "name"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "selectOnFocus": { "alias": "selectOnFocus"; "required": false; }; "showErrorWhenTouched": { "alias": "showErrorWhenTouched"; "required": false; }; "dropdownAttachToBody": { "alias": "dropdownAttachToBody"; "required": false; }; "dropdownZIndex": { "alias": "dropdownZIndex"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "telI18n": { "alias": "telI18n"; "required": false; }; "localizedCountries": { "alias": "localizedCountries"; "required": false; }; "telLocalizedCountries": { "alias": "telLocalizedCountries"; "required": false; }; "clearAriaLabel": { "alias": "clearAriaLabel"; "required": false; }; "dir": { "alias": "dir"; "required": false; }; "autoPlaceholder": { "alias": "autoPlaceholder"; "required": false; }; "utilsScript": { "alias": "utilsScript"; "required": false; }; "customPlaceholder": { "alias": "customPlaceholder"; "required": false; }; "digitsOnly": { "alias": "digitsOnly"; "required": false; }; "lockWhenValid": { "alias": "lockWhenValid"; "required": false; }; }, { "countryChange": "countryChange"; "validityChange": "validityChange"; "inputChange": "inputChange"; }, never, never, true, never>;
|
|
106
110
|
}
|
|
107
111
|
//# sourceMappingURL=ngxsmk-tel-input.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngxsmk-tel-input.component.d.ts","sourceRoot":"","sources":["../../../projects/ngxsmk-tel-input/src/lib/ngxsmk-tel-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,UAAU,EACV,YAAY,EAIZ,MAAM,EACN,SAAS,EACT,SAAS,EAGT,aAAa,EAEd,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,eAAe,EACf,oBAAoB,EAGpB,gBAAgB,EAChB,SAAS,EACV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAa,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;;AAIlD,
|
|
1
|
+
{"version":3,"file":"ngxsmk-tel-input.component.d.ts","sourceRoot":"","sources":["../../../projects/ngxsmk-tel-input/src/lib/ngxsmk-tel-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,UAAU,EACV,YAAY,EAIZ,MAAM,EACN,SAAS,EACT,SAAS,EAGT,aAAa,EAEd,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,eAAe,EACf,oBAAoB,EAGpB,gBAAgB,EAChB,SAAS,EACV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAa,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;;AAIlD,qBAqDa,uBAAwB,YAAW,aAAa,EAAE,SAAS,EAAE,SAAS,EAAE,oBAAoB,EAAE,SAAS;IA4EtG,OAAO,CAAC,QAAQ,CAAC,IAAI;IAAU,OAAO,CAAC,QAAQ,CAAC,GAAG;IA3EtB,QAAQ,EAAG,UAAU,CAAC,gBAAgB,CAAC,CAAC;IAGxE,cAAc,EAAE,WAAW,GAAG,MAAM,CAAQ;IAC5C,kBAAkB,EAAE,WAAW,EAAE,CAAgB;IACjD,aAAa,CAAC,EAAE,WAAW,E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