ngx-dial-input 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/tasks.json +42 -0
- package/README.md +12 -9
- package/angular.json +41 -0
- package/package.json +49 -32
- package/projects/phone-input/README.md +24 -0
- package/projects/phone-input/ng-package.json +7 -0
- package/projects/phone-input/package.json +9 -0
- package/projects/phone-input/src/data/countries.model.ts +9 -0
- package/projects/phone-input/src/data/countries.ts +1219 -0
- package/projects/phone-input/src/lib/phone-input.component.css +0 -0
- package/projects/phone-input/src/lib/phone-input.component.html +0 -0
- package/projects/phone-input/src/lib/phone-input.component.ts +348 -0
- package/projects/phone-input/src/lib/phone-input.module.ts +15 -0
- package/projects/phone-input/src/lib/phone-input.service.spec.ts +16 -0
- package/{public-api.d.ts → projects/phone-input/src/public-api.ts} +3 -0
- package/projects/phone-input/tsconfig.lib.json +15 -0
- package/projects/phone-input/tsconfig.lib.prod.json +10 -0
- package/projects/phone-input/tsconfig.spec.json +14 -0
- package/tsconfig.json +33 -0
- package/data/countries.d.ts +0 -2
- package/data/countries.model.d.ts +0 -9
- package/esm2020/data/countries.mjs +0 -1218
- package/esm2020/data/countries.model.mjs +0 -2
- package/esm2020/lib/phone-input.component.mjs +0 -292
- package/esm2020/lib/phone-input.module.mjs +0 -24
- package/esm2020/ngx-dial-input.mjs +0 -5
- package/esm2020/public-api.mjs +0 -6
- package/fesm2015/ngx-dial-input.mjs +0 -1542
- package/fesm2015/ngx-dial-input.mjs.map +0 -1
- package/fesm2020/ngx-dial-input.mjs +0 -1541
- package/fesm2020/ngx-dial-input.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/phone-input.component.d.ts +0 -37
- package/lib/phone-input.module.d.ts +0 -9
- package/ngx-dial-input-2.0.1.tgz +0 -0
package/.editorconfig
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Editor configuration, see https://editorconfig.org
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
charset = utf-8
|
|
6
|
+
indent_style = space
|
|
7
|
+
indent_size = 2
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
|
|
11
|
+
[*.ts]
|
|
12
|
+
quote_type = single
|
|
13
|
+
|
|
14
|
+
[*.md]
|
|
15
|
+
max_line_length = off
|
|
16
|
+
trim_trailing_whitespace = false
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"configurations": [
|
|
5
|
+
{
|
|
6
|
+
"name": "ng serve",
|
|
7
|
+
"type": "chrome",
|
|
8
|
+
"request": "launch",
|
|
9
|
+
"preLaunchTask": "npm: start",
|
|
10
|
+
"url": "http://localhost:4200/"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "ng test",
|
|
14
|
+
"type": "chrome",
|
|
15
|
+
"request": "launch",
|
|
16
|
+
"preLaunchTask": "npm: test",
|
|
17
|
+
"url": "http://localhost:9876/debug.html"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"tasks": [
|
|
5
|
+
{
|
|
6
|
+
"type": "npm",
|
|
7
|
+
"script": "start",
|
|
8
|
+
"isBackground": true,
|
|
9
|
+
"problemMatcher": {
|
|
10
|
+
"owner": "typescript",
|
|
11
|
+
"pattern": "$tsc",
|
|
12
|
+
"background": {
|
|
13
|
+
"activeOnStart": true,
|
|
14
|
+
"beginsPattern": {
|
|
15
|
+
"regexp": "(.*?)"
|
|
16
|
+
},
|
|
17
|
+
"endsPattern": {
|
|
18
|
+
"regexp": "bundle generation complete"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "npm",
|
|
25
|
+
"script": "test",
|
|
26
|
+
"isBackground": true,
|
|
27
|
+
"problemMatcher": {
|
|
28
|
+
"owner": "typescript",
|
|
29
|
+
"pattern": "$tsc",
|
|
30
|
+
"background": {
|
|
31
|
+
"activeOnStart": true,
|
|
32
|
+
"beginsPattern": {
|
|
33
|
+
"regexp": "(.*?)"
|
|
34
|
+
},
|
|
35
|
+
"endsPattern": {
|
|
36
|
+
"regexp": "bundle generation complete"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
package/README.md
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CountryPhoneInput
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.2.3.
|
|
4
|
+
|
|
5
|
+
## Development server
|
|
6
|
+
|
|
7
|
+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
|
|
4
8
|
|
|
5
9
|
## Code scaffolding
|
|
6
10
|
|
|
7
|
-
Run `ng generate component component-name
|
|
8
|
-
> Note: Don't forget to add `--project phone-input` or else it will be added to the default project in your `angular.json` file.
|
|
11
|
+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
|
|
9
12
|
|
|
10
13
|
## Build
|
|
11
14
|
|
|
12
|
-
Run `ng build
|
|
15
|
+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
16
|
|
|
14
|
-
##
|
|
17
|
+
## Running unit tests
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
17
20
|
|
|
18
|
-
## Running
|
|
21
|
+
## Running end-to-end tests
|
|
19
22
|
|
|
20
|
-
Run `ng
|
|
23
|
+
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
|
|
21
24
|
|
|
22
25
|
## Further help
|
|
23
26
|
|
package/angular.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"projects": {
|
|
6
|
+
"phone-input": {
|
|
7
|
+
"projectType": "library",
|
|
8
|
+
"root": "projects/phone-input",
|
|
9
|
+
"sourceRoot": "projects/phone-input/src",
|
|
10
|
+
"prefix": "lib",
|
|
11
|
+
"architect": {
|
|
12
|
+
"build": {
|
|
13
|
+
"builder": "@angular-devkit/build-angular:ng-packagr",
|
|
14
|
+
"options": {
|
|
15
|
+
"project": "projects/phone-input/ng-package.json"
|
|
16
|
+
},
|
|
17
|
+
"configurations": {
|
|
18
|
+
"production": {
|
|
19
|
+
"tsConfig": "projects/phone-input/tsconfig.lib.prod.json"
|
|
20
|
+
},
|
|
21
|
+
"development": {
|
|
22
|
+
"tsConfig": "projects/phone-input/tsconfig.lib.json"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"defaultConfiguration": "production"
|
|
26
|
+
},
|
|
27
|
+
"test": {
|
|
28
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
29
|
+
"options": {
|
|
30
|
+
"main": "projects/phone-input/src/test.ts",
|
|
31
|
+
"tsConfig": "projects/phone-input/tsconfig.spec.json",
|
|
32
|
+
"karmaConfig": "projects/phone-input/karma.conf.js"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"cli": {
|
|
39
|
+
"analytics": "9ebb98a1-9245-4e95-a454-fed795444981"
|
|
40
|
+
}
|
|
41
|
+
}
|
package/package.json
CHANGED
|
@@ -1,32 +1,49 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ngx-dial-input",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "ngx-dial-input",
|
|
3
|
+
"version": "2.0.2",
|
|
4
|
+
"description": "Allows users to select a country and automatically formats the phone number input based on the selected country.",
|
|
5
|
+
"author": "CroemInc",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "bundles/phone-input.umd.js",
|
|
8
|
+
"module": "fesm2015/phone-input.js",
|
|
9
|
+
"es2015": "fesm2015/phone-input.js",
|
|
10
|
+
"typings": "phone-input.d.ts",
|
|
11
|
+
"keywords": ["angular", "phone", "input", "country", "flag","international","phone regex","phone number","croem"],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"ng": "ng",
|
|
14
|
+
"start": "ng serve",
|
|
15
|
+
"build": "ng build",
|
|
16
|
+
"watch": "ng build --watch --configuration development",
|
|
17
|
+
"test": "ng test",
|
|
18
|
+
"pack": "ng-packagr -p ng-package.json && cd dist && npm pack"
|
|
19
|
+
},
|
|
20
|
+
"private": false,
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"@angular/animations": "^15.1.1",
|
|
23
|
+
"@angular/common": "15.2.10",
|
|
24
|
+
"@angular/compiler": "^15.1.1",
|
|
25
|
+
"@angular/core": "15.2.10",
|
|
26
|
+
"@angular/forms": "^15.1.1",
|
|
27
|
+
"@angular/platform-browser": "^15.1.1",
|
|
28
|
+
"@angular/platform-browser-dynamic": "^15.1.1",
|
|
29
|
+
"@angular/router": "^15.1.1",
|
|
30
|
+
"rxjs": "^6.6.0 || ^7.8.0",
|
|
31
|
+
"zone.js": "~0.11.4"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"tslib": "^2.0.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@angular-devkit/build-angular": "^15.1.2",
|
|
38
|
+
"@angular/cli": "^15.1.2",
|
|
39
|
+
"@angular/compiler-cli": "^15.1.1",
|
|
40
|
+
"@types/jasmine": "~3.6.0",
|
|
41
|
+
"jasmine-core": "~3.6.0",
|
|
42
|
+
"karma": "~6.3.4",
|
|
43
|
+
"karma-chrome-launcher": "~3.1.0",
|
|
44
|
+
"karma-jasmine": "~4.0.0",
|
|
45
|
+
"karma-jasmine-html-reporter": "^1.5.0",
|
|
46
|
+
"ng-packagr": "^15.0.2",
|
|
47
|
+
"typescript": "4.8.4"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# PhoneInput
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project phone-input` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project phone-input`.
|
|
8
|
+
> Note: Don't forget to add `--project phone-input` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build phone-input` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build phone-input`, go to the dist folder `cd dist/phone-input` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test phone-input` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|