Skip to content

Commit

Permalink
revert to npm, upgrade ngx-bootstrap to 9
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Ivanov committed Feb 16, 2025
1 parent 79a453c commit 4a5db4b
Show file tree
Hide file tree
Showing 8 changed files with 17,164 additions and 8,485 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

- name: Install and Build 🔧
run: |
yarn install
yarn build_lib
yarn build
npm ci
npm run build_lib
npm run build
24 changes: 5 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ An Angular package for entering and validating international telephone numbers.
Validation with [google-libphonenumber](https://github.com/ruimarinho/google-libphonenumber)

| ngx-intl-tel-input | Angular | ngx-bootstrap |
| ------------------ |----------------| ------------- |
| 16.x.x | >= 16.x.x | >= 6.0.0 |
| ------------------ | -------------- | ------------- |
| 16.x.x | >= 16.x.x | >= 9.0.0 |
| 3.x.x | 9.x.x - 15.x.x | >= 6.0.0 |
| 2.x.x | 8.x.x - 9.1.x | 5.6.x |

Expand Down Expand Up @@ -87,22 +87,7 @@ Or this:

```html
<form #f="ngForm" [formGroup]="phoneForm">
<ngx-intl-tel-input
[cssClass]="'custom'"
[preferredCountries]="[CountryISO.UnitedStates, CountryISO.UnitedKingdom]"
[enableAutoCountrySelect]="false"
[enablePlaceholder]="true"
[searchCountryFlag]="true"
[searchCountryField]="[SearchCountryField.Iso2, SearchCountryField.Name]"
[selectFirstCountry]="false"
[selectedCountryISO]="CountryISO.India"
[maxLength]="15"
[phoneValidation]="true"
[inputId]="my-input-id"
name="phone"
formControlName="phone"
[excludeCountries]="[CountryISO.Russia]"
></ngx-intl-tel-input>
<ngx-intl-tel-input [cssClass]="'custom'" [preferredCountries]="[CountryISO.UnitedStates, CountryISO.UnitedKingdom]" [enableAutoCountrySelect]="false" [enablePlaceholder]="true" [searchCountryFlag]="true" [searchCountryField]="[SearchCountryField.Iso2, SearchCountryField.Name]" [selectFirstCountry]="false" [selectedCountryISO]="CountryISO.India" [maxLength]="15" [phoneValidation]="true" [inputId]="my-input-id" name="phone" formControlName="phone" [excludeCountries]="[CountryISO.Russia]"></ngx-intl-tel-input>
</form>
```

Expand All @@ -127,7 +112,8 @@ Or this:
| selectedCountryISO | `<CountryISO>` | `None` | Set specific country on load. |
| separateDialCode | `boolean` | `false` | Visually separate dialcode into the drop down element. |
| countryChange | `<Country>` | `None` | Emits country value when the user selects a country from the dropdown. |
| excludeCountries | `<CountryISO>[]` | `[]` | List of exluded countries, that will not be displayed in the dropdown.
| excludeCountries | `<CountryISO>[]` | `[]` | List of exluded countries, that will not be displayed in the dropdown. |

## Supported Formats

Following formats are supported
Expand Down
Loading

0 comments on commit 4a5db4b

Please sign in to comment.