Skip to content

Commit f44155c

Browse files
Merge pull request #29 from juanjotorres90/develop
develop to main
2 parents 526944a + a34d6e9 commit f44155c

27 files changed

+4799
-3733
lines changed

.all-contributorsrc

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,35 @@
3131
"avatar_url": "https://avatars3.githubusercontent.com/u/5524772?v=4",
3232
"profile": "https://github.com/whegar",
3333
"contributions": ["ideas", "question", "infra", "maintenance", "review"]
34+
},
35+
{
36+
"login": "ghollingworthh",
37+
"name": "Glen Hollingworth",
38+
"avatar_url": "https://avatars.githubusercontent.com/u/26550815?v=4?s=100",
39+
"profile": "https://github.com/ghollingworthh",
40+
"contributions": [
41+
"code",
42+
"doc",
43+
"ideas",
44+
"question",
45+
"infra",
46+
"maintenance",
47+
"review"
48+
]
49+
},
50+
{
51+
"login": "EphraimHaber",
52+
"name": "EphraimHaber",
53+
"avatar_url": "https://avatars.githubusercontent.com/u/61934858?v=4?s=100",
54+
"profile": "https://github.com/EphraimHaber",
55+
"contributions": [
56+
"code",
57+
"doc",
58+
"ideas",
59+
"question",
60+
"maintenance",
61+
"review"
62+
]
3463
}
3564
],
3665
"contributorsPerLine": 7,

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 48 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
## [19.0.0] - 2024-12-07
9+
10+
### Added
11+
12+
- Add support for Angular 19 ([#25](https://github.com/juanjotorres90/ngx-material-intl-tel-input/issues/25)).
13+
- Add 'useMask' option to enable masking of the phone number input.
14+
15+
### Changed
16+
17+
- Upgrade project to nx 20.2.
18+
- Upgrade project to use ESLint 9.
19+
820
## [18.2.1] - 2024-11-22
921

1022
### Added

README.md

Lines changed: 29 additions & 23 deletions
Large diffs are not rendered by default.

apps/ngx-material-intl-tel-input/.eslintrc.json

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
const { FlatCompat } = require('@eslint/eslintrc');
2+
const js = require('@eslint/js');
3+
const baseConfig = require('../../eslint.config.js');
4+
5+
const compat = new FlatCompat({
6+
baseDirectory: __dirname,
7+
recommendedConfig: js.configs.recommended
8+
});
9+
10+
module.exports = [
11+
...baseConfig,
12+
...compat
13+
.config({
14+
extends: [
15+
'plugin:@nx/angular',
16+
'plugin:@angular-eslint/template/process-inline-templates'
17+
]
18+
})
19+
.map((config) => ({
20+
...config,
21+
files: ['**/*.ts'],
22+
rules: {
23+
...config.rules,
24+
'@angular-eslint/directive-selector': [
25+
'error',
26+
{
27+
type: 'attribute',
28+
prefix: 'ngxMaterialIntlTelInput',
29+
style: 'camelCase'
30+
}
31+
],
32+
'@angular-eslint/component-selector': [
33+
'error',
34+
{
35+
type: 'element',
36+
prefix: 'ngx-material-intl-tel-input',
37+
style: 'kebab-case'
38+
}
39+
]
40+
}
41+
})),
42+
...compat
43+
.config({
44+
extends: ['plugin:@nx/angular-template']
45+
})
46+
.map((config) => ({
47+
...config,
48+
files: ['**/*.html'],
49+
rules: {
50+
...config.rules
51+
}
52+
}))
53+
];
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable */
21
export default {
32
displayName: 'ngx-material-intl-tel-input',
43
preset: '../../jest.preset.js',
@@ -9,14 +8,14 @@ export default {
98
'jest-preset-angular',
109
{
1110
tsconfig: '<rootDir>/tsconfig.spec.json',
12-
stringifyContentPathRegex: '\\.(html|svg)$',
13-
},
14-
],
11+
stringifyContentPathRegex: '\\.(html|svg)$'
12+
}
13+
]
1514
},
1615
transformIgnorePatterns: ['node_modules/(?!.*\\.mjs$)'],
1716
snapshotSerializers: [
1817
'jest-preset-angular/build/serializers/no-ng-attributes',
1918
'jest-preset-angular/build/serializers/ng-snapshot',
20-
'jest-preset-angular/build/serializers/html-comment',
21-
],
19+
'jest-preset-angular/build/serializers/html-comment'
20+
]
2221
};

apps/ngx-material-intl-tel-input/src/app/app.component.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
<ngx-material-intl-tel-input
44
(currentValue)="getValue($event)"
55
fieldControlName="phone"
6+
[emojiFlags]="false"
7+
[includeDialCode]="false"
8+
[useMask]="false"
9+
[forceSelectedCountryCode]="false"
10+
[showMaskPlaceholder]="true"
611
></ngx-material-intl-tel-input>
712
<button mat-flat-button type="submit" [disabled]="!formTestGroup.valid">
813
Submit

apps/ngx-material-intl-tel-input/src/app/app.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { RouterModule } from '@angular/router';
1414
import { NgxMaterialIntlTelInputComponent } from 'ngx-material-intl-tel-input';
1515

1616
@Component({
17-
standalone: true,
1817
imports: [
1918
NgxMaterialIntlTelInputComponent,
2019
RouterModule,

0 commit comments

Comments
 (0)