-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(experimental):
InputPhoneInternational
refactor to new textfie…
…ld approach
- Loading branch information
Showing
35 changed files
with
773 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
<input | ||
icon="" | ||
tuiInputCard | ||
tuiTextfield | ||
[(ngModel)]="card" | ||
/> | ||
<tui-thumbnail-card | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 8 additions & 5 deletions
13
projects/demo/src/modules/components/input-phone-international/examples/1/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<tui-input-phone-international | ||
[countries]="countries" | ||
[(countryIsoCode)]="countryIsoCode" | ||
[(ngModel)]="value" | ||
/> | ||
<tui-textfield> | ||
<input | ||
tuiInputPhoneInternational | ||
[countries]="countries" | ||
[(countryIsoCode)]="countryIsoCode" | ||
[(ngModel)]="value" | ||
/> | ||
</tui-textfield> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 10 additions & 8 deletions
18
projects/demo/src/modules/components/input-phone-international/examples/2/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<tui-input-phone-international | ||
[countries]="(countries | tuiSortCountries | async) || []" | ||
[countrySearch]="true" | ||
[(countryIsoCode)]="countryIsoCode" | ||
[(ngModel)]="value" | ||
> | ||
Type your number | ||
</tui-input-phone-international> | ||
<tui-textfield> | ||
<label tuiLabel>Phone number</label> | ||
<input | ||
tuiInputPhoneInternational | ||
[countries]="(countries | tuiSortCountries | async) || []" | ||
[countrySearch]="true" | ||
[(countryIsoCode)]="countryIsoCode" | ||
[(ngModel)]="value" | ||
/> | ||
</tui-textfield> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 9 additions & 7 deletions
16
projects/demo/src/modules/components/input-phone-international/examples/4/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
<tui-input-phone-international | ||
[countries]="countries" | ||
[(countryIsoCode)]="countryIsoCode" | ||
[(ngModel)]="value" | ||
> | ||
Phone number | ||
<tui-textfield [style.inline-size.rem]="20"> | ||
<label tuiLabel>Phone number</label> | ||
<input | ||
tuiInputPhoneInternational | ||
[countries]="countries" | ||
[(countryIsoCode)]="countryIsoCode" | ||
[(ngModel)]="value" | ||
/> | ||
<tui-icon | ||
appearance="negative" | ||
tuiHintAppearance="error" | ||
tuiHintDirection="top" | ||
tuiTooltip="I am a hint" | ||
/> | ||
<tui-icon icon="@tui.phone" /> | ||
</tui-input-phone-international> | ||
</tui-textfield> |
3 changes: 0 additions & 3 deletions
3
projects/demo/src/modules/components/input-phone-international/examples/4/index.less
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 9 additions & 7 deletions
16
projects/demo/src/modules/components/input-phone-international/examples/5/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<tui-input-phone-international | ||
[countries]="countries" | ||
[(countryIsoCode)]="countryIsoCode" | ||
[(ngModel)]="value" | ||
> | ||
Type your number | ||
</tui-input-phone-international> | ||
<tui-textfield> | ||
<label tuiLabel>Type your number</label> | ||
<input | ||
tuiInputPhoneInternational | ||
[countries]="countries" | ||
[(countryIsoCode)]="countryIsoCode" | ||
[(ngModel)]="value" | ||
/> | ||
</tui-textfield> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 7 additions & 4 deletions
11
...mo/src/modules/components/input-phone-international/examples/import/template.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
```html | ||
<form [formGroup]="testForm"> | ||
<tui-input-phone-international | ||
formControlName="testValue" | ||
[countries]="countries" | ||
></tui-input-phone-international> | ||
<tui-textfield> | ||
<input | ||
tuiInputPhoneInternational | ||
formControlName="testValue" | ||
[countries]="countries" | ||
/> | ||
</tui-textfield> | ||
</form> | ||
``` |
Oops, something went wrong.