myrta-ui 1.1.16 → 1.1.18

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.
@@ -1,4 +1,4 @@
1
- import { OnInit, EventEmitter } from '@angular/core';
1
+ import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
2
2
  import { ParsedPhoneNumber } from 'awesome-phonenumber';
3
3
  import { CountriesISO } from './data/country-iso.enum';
4
4
  import { SearchCountryField } from './data/search-country-field.enum';
@@ -11,6 +11,8 @@ import { InputPhoneValueWithId } from '../input-phone/enums/input-phone.enum';
11
11
  import { DropdownComponent } from '../../dropdown/dropdown.component';
12
12
  import * as i0 from "@angular/core";
13
13
  export declare class InputTelComponent implements ControlValueAccessor, OnInit {
14
+ private _detector;
15
+ private _onlyCountries;
14
16
  uuid: string;
15
17
  fields: Field[];
16
18
  disabled: boolean;
@@ -20,7 +22,6 @@ export declare class InputTelComponent implements ControlValueAccessor, OnInit {
20
22
  size: InputTelSizesTypes;
21
23
  cssClass: string;
22
24
  preferredCountries: (CountriesISO)[];
23
- onlyCountries: (CountriesISO)[];
24
25
  enableAutoCountrySelect: boolean;
25
26
  enablePlaceholder: boolean;
26
27
  customPlaceholder: string | null;
@@ -35,6 +36,7 @@ export declare class InputTelComponent implements ControlValueAccessor, OnInit {
35
36
  separateDialCode: boolean;
36
37
  autoDealCode: boolean;
37
38
  autoCloseDropdown: boolean;
39
+ set onlyCountries(val: (CountriesISO)[]);
38
40
  invalid: boolean;
39
41
  invalidMessage: string | string[];
40
42
  invalidPhoneMessage: string;
@@ -55,13 +57,14 @@ export declare class InputTelComponent implements ControlValueAccessor, OnInit {
55
57
  parsedPhoneNumber?: ParsedPhoneNumber;
56
58
  innerInvalid: boolean;
57
59
  innerInvalidMessage: string;
58
- constructor();
60
+ constructor(_detector: ChangeDetectorRef);
59
61
  writeValue(outsideValue: string): void;
60
62
  private onChange;
61
63
  private onTouched;
62
64
  registerOnChange(fn: any): void;
63
65
  registerOnTouched(fn: any): void;
64
66
  ngOnInit(): void;
67
+ private _initData;
65
68
  private _validation;
66
69
  get getClasses(): string;
67
70
  get isValid(): boolean;
@@ -86,5 +89,5 @@ export declare class InputTelComponent implements ControlValueAccessor, OnInit {
86
89
  private _resetValidate;
87
90
  updateValue(): void;
88
91
  static ɵfac: i0.ɵɵFactoryDeclaration<InputTelComponent, never>;
89
- static ɵcmp: i0.ɵɵComponentDeclaration<InputTelComponent, "mrx-input-tel", never, { "fields": "fields"; "disabled": "disabled"; "readonly": "readonly"; "maxLength": "maxLength"; "customClasses": "customClasses"; "size": "size"; "cssClass": "cssClass"; "preferredCountries": "preferredCountries"; "onlyCountries": "onlyCountries"; "enableAutoCountrySelect": "enableAutoCountrySelect"; "enablePlaceholder": "enablePlaceholder"; "customPlaceholder": "customPlaceholder"; "numberFormat": "numberFormat"; "searchCountryFlag": "searchCountryFlag"; "searchCountryField": "searchCountryField"; "searchCountryPlaceholder": "searchCountryPlaceholder"; "selectFirstCountry": "selectFirstCountry"; "phoneValidation": "phoneValidation"; "inputId": "inputId"; "selectedCountryISO": "selectedCountryISO"; "separateDialCode": "separateDialCode"; "autoDealCode": "autoDealCode"; "autoCloseDropdown": "autoCloseDropdown"; "invalid": "invalid"; "invalidMessage": "invalidMessage"; "invalidPhoneMessage": "invalidPhoneMessage"; "checkInvalid": "checkInvalid"; }, { "changed": "changed"; "modelChange": "modelChange"; }, never, never>;
92
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputTelComponent, "mrx-input-tel", never, { "fields": "fields"; "disabled": "disabled"; "readonly": "readonly"; "maxLength": "maxLength"; "customClasses": "customClasses"; "size": "size"; "cssClass": "cssClass"; "preferredCountries": "preferredCountries"; "enableAutoCountrySelect": "enableAutoCountrySelect"; "enablePlaceholder": "enablePlaceholder"; "customPlaceholder": "customPlaceholder"; "numberFormat": "numberFormat"; "searchCountryFlag": "searchCountryFlag"; "searchCountryField": "searchCountryField"; "searchCountryPlaceholder": "searchCountryPlaceholder"; "selectFirstCountry": "selectFirstCountry"; "phoneValidation": "phoneValidation"; "inputId": "inputId"; "selectedCountryISO": "selectedCountryISO"; "separateDialCode": "separateDialCode"; "autoDealCode": "autoDealCode"; "autoCloseDropdown": "autoCloseDropdown"; "onlyCountries": "onlyCountries"; "invalid": "invalid"; "invalidMessage": "invalidMessage"; "invalidPhoneMessage": "invalidPhoneMessage"; "checkInvalid": "checkInvalid"; }, { "changed": "changed"; "modelChange": "modelChange"; }, never, never>;
90
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myrta-ui",
3
- "version": "1.1.16",
3
+ "version": "1.1.18",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.3.0",
6
6
  "@angular/core": "^13.3.0",
package/public-api.d.ts CHANGED
@@ -174,5 +174,6 @@ export * from './lib/helpers/index';
174
174
  export * from './lib/models/index';
175
175
  export * from './lib/components/form/input-tel/input-tel.module';
176
176
  export * from './lib/components/form/input-tel/input-tel.component';
177
+ export * from './lib/components/form/input-tel/enums/input-phone.enum';
177
178
  export * from './lib/components/form/input-tel/data/all-countries';
178
179
  export * from './lib/components/form/input-tel/data/country-iso.enum';