ngx-dial-input 1.0.0

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 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,4 @@
1
+ {
2
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
3
+ "recommendations": ["angular.ng-template"]
4
+ }
@@ -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 ADDED
@@ -0,0 +1,27 @@
1
+ # CountryPhoneInput
2
+
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.
8
+
9
+ ## Code scaffolding
10
+
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`.
12
+
13
+ ## Build
14
+
15
+ Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
16
+
17
+ ## Running unit tests
18
+
19
+ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20
+
21
+ ## Running end-to-end tests
22
+
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.
24
+
25
+ ## Further help
26
+
27
+ 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.
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
+ }
Binary file
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "ngx-dial-input",
3
+ "version": "1.0.0",
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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "../../dist/phone-input",
4
+ "lib": {
5
+ "entryFile": "src/public-api.ts"
6
+ }
7
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "phone-input",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "15.1.1",
6
+ "@angular/core": "15.1.1"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "sideEffects": false
12
+ }
@@ -0,0 +1,9 @@
1
+ export interface CountriesPhoneInputData {
2
+ name : string;
3
+ native : string;
4
+ iso2 : string;
5
+ dialCode : string;
6
+ flag : string;
7
+ format : string;
8
+ phoneLength: number;
9
+ }