@elderbyte/ngx-starter 20.4.7 → 20.4.9

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/index.d.ts CHANGED
@@ -837,7 +837,7 @@ type PhoneNumber = {
837
837
  };
838
838
  type CountryPhoneFormat = {
839
839
  country: string;
840
- dialingCode: string;
840
+ countryCode: string;
841
841
  bodyFormat?: [RegExp, string];
842
842
  customPrefix?: string;
843
843
  };
@@ -848,24 +848,29 @@ declare class PhoneFormatService {
848
848
  * Public API *
849
849
  * *
850
850
  **************************************************************************/
851
- formatPhoneNumber(number: string, countryCode?: string, config?: CountryPhoneFormat): string;
851
+ formatPhoneNumber(nr: string, config: CountryPhoneFormat): string;
852
852
  /***************************************************************************
853
853
  * *
854
854
  * Private Methods *
855
855
  * *
856
856
  **************************************************************************/
857
- private applyFormattingPerConfig;
857
+ private addPrefix;
858
858
  private preparePhoneNumberBody;
859
859
  private cleanNumberString;
860
- private handleWithoutConfig;
861
860
  private removeDialingCode;
861
+ private applyRegexTransform;
862
862
  static ɵfac: i0.ɵɵFactoryDeclaration<PhoneFormatService, never>;
863
863
  static ɵprov: i0.ɵɵInjectableDeclaration<PhoneFormatService>;
864
864
  }
865
865
 
866
866
  declare class CountryPhoneFormatService {
867
- getCountryPhoneFormat(dialingCode: string): CountryPhoneFormat | null;
868
- getCountry(dialingCode: string): string | null;
867
+ /***************************************************************************
868
+ * *
869
+ * Public API *
870
+ * *
871
+ **************************************************************************/
872
+ getCountryPhoneFormat(countryCode: string): CountryPhoneFormat | null;
873
+ getCountry(countryCode: string): string | null;
869
874
  protected readonly countryPhoneFormats: Record<string, CountryPhoneFormat>;
870
875
  static ɵfac: i0.ɵɵFactoryDeclaration<CountryPhoneFormatService, never>;
871
876
  static ɵprov: i0.ɵɵInjectableDeclaration<CountryPhoneFormatService>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "20.4.7",
3
+ "version": "20.4.9",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^20.0.0 || ^21.0.0",
6
6
  "@angular/common": "^20.0.0 || ^21.0.0",