-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from juanjotorres90/develop
feat: ✨ add support for Angular 18
- Loading branch information
Showing
21 changed files
with
6,578 additions
and
4,739 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
<ngx-material-intl-tel-input></ngx-material-intl-tel-input> | ||
<ngx-material-intl-tel-input | ||
(currentValue)="getValue($event)" | ||
></ngx-material-intl-tel-input> | ||
|
||
@if (currentPhoneValue()) { | ||
<div>Returned value: {{ currentPhoneValue() }}</div> | ||
} @else { | ||
<div>No value returned</div> | ||
} | ||
<router-outlet></router-outlet> |
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,11 +1,17 @@ | ||
:host { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 32px; | ||
justify-content: center; | ||
align-items: center; | ||
width: 100%; | ||
height: 100%; | ||
ngx-material-intl-tel-input { | ||
ngx-material-intl-tel-input, | ||
div { | ||
max-width: 400px; | ||
padding: 16px; | ||
box-sizing: border-box; | ||
display: block; | ||
width: 100%; | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
apps/ngx-material-intl-tel-input/src/app/app.component.spec.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
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 |
---|---|---|
@@ -1,8 +1,20 @@ | ||
import { ApplicationConfig } from '@angular/core'; | ||
import { | ||
ApplicationConfig, | ||
provideExperimentalZonelessChangeDetection | ||
} from '@angular/core'; | ||
import { provideRouter } from '@angular/router'; | ||
import { appRoutes } from './app.routes'; | ||
import { provideAnimations } from '@angular/platform-browser/animations'; | ||
import { | ||
provideHttpClient, | ||
withInterceptorsFromDi | ||
} from '@angular/common/http'; | ||
|
||
export const appConfig: ApplicationConfig = { | ||
providers: [provideRouter(appRoutes), provideAnimations()], | ||
providers: [ | ||
provideRouter(appRoutes), | ||
provideAnimations(), | ||
provideHttpClient(withInterceptorsFromDi()), | ||
provideExperimentalZonelessChangeDetection() | ||
] | ||
}; |
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,163 @@ | ||
// This file was generated by running 'ng generate @angular/material:m3-theme'. | ||
// Proceed with caution if making changes to this file. | ||
|
||
@use 'sass:map'; | ||
@use '@angular/material' as mat; | ||
|
||
// Note: Color palettes are generated from primary: #209ffc, secondary: #023871 | ||
$_palettes: ( | ||
primary: ( | ||
0: #000000, | ||
10: #001d35, | ||
20: #003256, | ||
25: #003e68, | ||
30: #00497a, | ||
35: #00558d, | ||
40: #0062a0, | ||
50: #007bc8, | ||
60: #0096f2, | ||
70: #5db0ff, | ||
80: #9ccaff, | ||
90: #d0e4ff, | ||
95: #e9f1ff, | ||
98: #f8f9ff, | ||
99: #fdfcff, | ||
100: #ffffff | ||
), | ||
secondary: ( | ||
0: #000000, | ||
10: #001b3d, | ||
20: #003063, | ||
25: #003b77, | ||
30: #00468b, | ||
35: #15529a, | ||
40: #285ea7, | ||
50: #4577c2, | ||
60: #6191dd, | ||
70: #7cacfa, | ||
80: #a9c7ff, | ||
90: #d6e3ff, | ||
95: #ecf0ff, | ||
98: #f9f9ff, | ||
99: #fdfbff, | ||
100: #ffffff | ||
), | ||
tertiary: ( | ||
0: #000000, | ||
10: #241432, | ||
20: #3a2948, | ||
25: #463454, | ||
30: #514060, | ||
35: #5d4b6c, | ||
40: #6a5779, | ||
50: #836f93, | ||
60: #9e89ad, | ||
70: #b9a3c9, | ||
80: #d5bee5, | ||
90: #f1daff, | ||
95: #faecff, | ||
98: #fff7fe, | ||
99: #fffbff, | ||
100: #ffffff | ||
), | ||
neutral: ( | ||
0: #000000, | ||
10: #1a1c1e, | ||
20: #2f3033, | ||
25: #3a3b3e, | ||
30: #45474a, | ||
35: #515255, | ||
40: #5d5e61, | ||
50: #76777a, | ||
60: #909094, | ||
70: #ababae, | ||
80: #c6c6ca, | ||
90: #e2e2e6, | ||
95: #f1f0f4, | ||
98: #f9f9fc, | ||
99: #fdfcff, | ||
100: #ffffff, | ||
4: #0c0e11, | ||
6: #121316, | ||
12: #1e2022, | ||
17: #282a2d, | ||
22: #333538, | ||
24: #38393c, | ||
87: #dadadd, | ||
92: #e8e8eb, | ||
94: #eeedf1, | ||
96: #f4f3f7 | ||
), | ||
neutral-variant: ( | ||
0: #000000, | ||
10: #171c22, | ||
20: #2c3137, | ||
25: #373c42, | ||
30: #42474e, | ||
35: #4e535a, | ||
40: #5a5f66, | ||
50: #73777f, | ||
60: #8c9199, | ||
70: #a7abb3, | ||
80: #c2c7cf, | ||
90: #dfe3eb, | ||
95: #edf1f9, | ||
98: #f8f9ff, | ||
99: #fdfcff, | ||
100: #ffffff | ||
), | ||
error: ( | ||
0: #000000, | ||
10: #410002, | ||
20: #690005, | ||
25: #7e0007, | ||
30: #93000a, | ||
35: #a80710, | ||
40: #ba1a1a, | ||
50: #de3730, | ||
60: #ff5449, | ||
70: #ff897d, | ||
80: #ffb4ab, | ||
90: #ffdad6, | ||
95: #ffedea, | ||
98: #fff8f7, | ||
99: #fffbff, | ||
100: #ffffff | ||
) | ||
); | ||
|
||
$_rest: ( | ||
secondary: map.get($_palettes, secondary), | ||
neutral: map.get($_palettes, neutral), | ||
neutral-variant: map.get($_palettes, neutral-variant), | ||
error: map.get($_palettes, error) | ||
); | ||
$_primary: map.merge(map.get($_palettes, primary), $_rest); | ||
$_tertiary: map.merge(map.get($_palettes, tertiary), $_rest); | ||
|
||
$light-theme: mat.define-theme( | ||
( | ||
color: ( | ||
theme-type: light, | ||
primary: $_primary, | ||
tertiary: $_tertiary | ||
), | ||
typography: ( | ||
brand-family: Roboto, | ||
bold-weight: 400 | ||
) | ||
) | ||
); | ||
$dark-theme: mat.define-theme( | ||
( | ||
color: ( | ||
theme-type: dark, | ||
primary: $_primary, | ||
tertiary: $_tertiary | ||
), | ||
typography: ( | ||
brand-family: Roboto, | ||
bold-weight: 400 | ||
) | ||
) | ||
); |
Oops, something went wrong.