@elderbyte/ngx-starter 20.4.0 → 20.4.1

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
@@ -845,15 +845,19 @@ type CountryPhoneFormat = {
845
845
  declare class PhoneFormatService {
846
846
  /***************************************************************************
847
847
  * *
848
- * Public static methods *
848
+ * Public API *
849
849
  * *
850
850
  **************************************************************************/
851
- formatPhoneNumber(nr: string, config: CountryPhoneFormat): string;
851
+ formatPhoneNumber(number: string, countryCode?: string, config?: CountryPhoneFormat): string;
852
852
  /***************************************************************************
853
853
  * *
854
- * Private static methods *
854
+ * Private Methods *
855
855
  * *
856
856
  **************************************************************************/
857
+ private applyFormattingPerConfig;
858
+ private preparePhoneNumberBody;
859
+ private cleanNumberString;
860
+ private handleWithoutConfig;
857
861
  private removeDialingCode;
858
862
  static ɵfac: i0.ɵɵFactoryDeclaration<PhoneFormatService, never>;
859
863
  static ɵprov: i0.ɵɵInjectableDeclaration<PhoneFormatService>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elderbyte/ngx-starter",
3
- "version": "20.4.0",
3
+ "version": "20.4.1",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^20.0.0 || ^21.0.0",
6
6
  "@angular/common": "^20.0.0 || ^21.0.0",