All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Fix cursor position when using 'includeDialCode' option. (#41).
- Add 'outputNumberFormat' option to set the output number to INTERNATIONAL, E164, or RFC3966 format.
- Add css variables to customize the input field appearance (#34).
- Clear the number input field when a form reset is triggered (#37).
- Fix cursor position when editing the number from the middle or start position (#37).
- Add 'currentCountryCode' output event to retrieve the current country code number selected (#30).
- Add 'currentCountryISO' output event to retrieve the current country ISO code selected (#31).
- Add support for Angular 19 (#25).
- Add 'useMask' option to enable masking of the phone number input.
- Upgrade project to nx 20.2.
- Upgrade project to use ESLint 9.
- Add 'appearance' option to set the material form field appearance (#22).
- Add country's name tooltip when hovering over country selection element.
- Fix match area codes or priority when determining country code (#13)
- Add error border color when the field is invalid, dirty and not focused.
- Fix 'ng-invalid' class not being applied when the field is not valid (#11).
- Add 'emojiFlag' option to use standard emoji icons for the country flags.
- Add 'hidePhoneIcon' option to hide the phone icon.
- Add 'fieldControlName' option to get the form control from the parent form group by name.
- Ability to dynamically change the form field value.
- Ability to dynamically enable or disable the form field.
- Fix "AbstractControl" not assignable to FieldControl.
- Fix setting the initial value and status of the phone field control when it was set in the parent form group control.
- Add support for Angular 18.
- Add 'includeDialCode' option to include the dial code in the phone number input.
- Auto select number input after changing country code.
- Add support for Material 3 theming.
- Use of Signal Inputs to dynamically change the disabled or required state of the phone field.
- Add 'currentValue' output event to retrieve the current phone number value without using a FormControl.
- Fix Northern Mariana Islands number format.
- Upgrade project to nx 19.1.
- Use of Signal Inputs for component options.
- The component is now zoneless.
- Add 'enableSearch' option to enable or disable country search.
- Add 'excludedCountries' option to exclude countries from the list.
- Update mat select dropdown styling.
- Add linting and unit tests execution on pre-commit and ci.
- Fix flags css on library build.
- Add 'autoSelectCountry' option to enable auto selecting a country on initialization.
- Add 'autoSelectedCountry' option to set the country to be auto selected.
- Add 'numberValidation' option to disable phone number validation.
- Add 'preferredCountries' option to show them on top of the country list.
- Add 'visibleCountries' option to only show the specified countries.
- Export "CountryISO" type.
- Fetch country data refactor. Now a service handles all the logic.
- Remove unused css.
🎉🚀 First stable release 🚀🎉
- Export "TextLabels" type.
- Remove telephone form to avoid hydration issues.
- Rename main FormControl from "formControl" to "fieldControl" to avoid errors.
- Show field required error only when the field control is dirty.
- Update library README image preview.
- Add README to library build.
- Initial version.