-
Notifications
You must be signed in to change notification settings - Fork 474
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 (#9976) Co-authored-by: taiga-family-bot <[email protected]> Co-authored-by: Nikita Barsukov <[email protected]>
- Loading branch information
1 parent
e8a7926
commit 08f924d
Showing
50 changed files
with
1,019 additions
and
143 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
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
7 changes: 7 additions & 0 deletions
7
projects/demo-playwright/utils/page-objects/input-phone-international.po.ts
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type {Locator} from '@playwright/test'; | ||
|
||
import {TuiTextfieldWithDataListPO} from './textfield-with-data-list.po'; | ||
|
||
export class TuiInputPhoneInternationalPO extends TuiTextfieldWithDataListPO { | ||
public select: Locator = this.host.locator('.t-ipi-select'); | ||
} |
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
10 changes: 10 additions & 0 deletions
10
projects/demo/src/modules/components/input-phone-international/examples/3/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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<tui-textfield tuiDropdownMobile="Select country"> | ||
<label tuiLabel>Phone number</label> | ||
<input | ||
tuiInputPhoneInternational | ||
[countries]="(countries | tuiSortCountries | async) || []" | ||
[countrySearch]="true" | ||
[(countryIsoCode)]="countryIsoCode" | ||
[(ngModel)]="value" | ||
/> | ||
</tui-textfield> |
Oops, something went wrong.