From 3b77d1f9e4f75ff4e00d08c17bc2b91266856e15 Mon Sep 17 00:00:00 2001 From: Andrew Darts Date: Thu, 16 Sep 2021 11:44:58 -0500 Subject: [PATCH 01/25] update to use @ng-bootstrap --- package.json | 2 +- projects/ngx-intl-tel-input/ng-package.json | 19 ++- projects/ngx-intl-tel-input/package.json | 10 +- .../src/lib/ngx-intl-tel-input.component.css | 10 ++ .../src/lib/ngx-intl-tel-input.component.html | 79 ++++++----- .../src/lib/ngx-intl-tel-input.component.ts | 132 +++++++++--------- .../src/lib/ngx-intl-tel-input.module.ts | 25 ++-- 7 files changed, 139 insertions(+), 138 deletions(-) diff --git a/package.json b/package.json index e2d55ad1..6b722ee0 100644 --- a/package.json +++ b/package.json @@ -28,12 +28,12 @@ "@angular/platform-browser": "~11.2.1", "@angular/platform-browser-dynamic": "~11.2.1", "@angular/router": "~11.2.1", + "@ng-bootstrap/ng-bootstrap": "^10.0.0", "bootstrap": "^4.5.2", "core-js": "^3.6.5", "google-libphonenumber": "^3.2.3", "intl-tel-input": "^17.0.3", "jquery": "^3.5.0", - "ngx-bootstrap": "^6.0.0", "popper.js": "^1.16.1", "rxjs": "~6.6.0", "tslib": "^2.0.0", diff --git a/projects/ngx-intl-tel-input/ng-package.json b/projects/ngx-intl-tel-input/ng-package.json index 9c412065..6ada289c 100644 --- a/projects/ngx-intl-tel-input/ng-package.json +++ b/projects/ngx-intl-tel-input/ng-package.json @@ -1,12 +1,11 @@ { - "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", - "dest": "../../dist/ngx-intl-tel-input", - "lib": { - "entryFile": "src/public_api.ts", - "umdModuleIds": { - "google-libphonenumber": "^3.2.3", - "ngx-bootstrap": "^6.0.0", - "ngx-bootstrap/dropdown": "ngx-bootstrap-dropdown" - } - } + "$schema": "../../node_modules/ng-packagr/ng-package.schema.json", + "dest": "../../dist/ngx-intl-tel-input", + "lib": { + "entryFile": "src/public_api.ts", + "umdModuleIds": { + "google-libphonenumber": "^3.2.3", + "@ng-bootstrap/ng-bootstrap": "^9.1.3" + } + } } diff --git a/projects/ngx-intl-tel-input/package.json b/projects/ngx-intl-tel-input/package.json index fbc64140..85447778 100644 --- a/projects/ngx-intl-tel-input/package.json +++ b/projects/ngx-intl-tel-input/package.json @@ -7,15 +7,15 @@ "@angular/forms": "8.x - 11.x", "google-libphonenumber": "^3.2.3", "intl-tel-input": "^17.0.3", - "ngx-bootstrap": "^6.0.0" + "@ng-bootstrap/ng-bootstrap": "^9.1.3" }, "repository": { "type": "git", - "url": "git+https://github.com/webcat12345/ngx-intl-tel-input" + "url": "https://github.com/travelnetsolutions/ngx-intl-tel-input" }, "author": { - "name": "webcat12345", - "email": "webcat91@gmail.com" + "name": "Andrew Darts", + "email": "adarts@tnsinc.com" }, "keywords": [ "angular", @@ -32,7 +32,7 @@ ], "license": "MIT", "bugs": { - "url": "https://github.com/webcat12345/ngx-intl-tel-input/issues" + "url": "https://github.com/travelnetsolutions/ngx-intl-tel-input/issues" }, "devDependencies": { "@types/google-libphonenumber": "^7.4.17" diff --git a/projects/ngx-intl-tel-input/src/lib/ngx-intl-tel-input.component.css b/projects/ngx-intl-tel-input/src/lib/ngx-intl-tel-input.component.css index 5bc96fe5..4421b9f2 100644 --- a/projects/ngx-intl-tel-input/src/lib/ngx-intl-tel-input.component.css +++ b/projects/ngx-intl-tel-input/src/lib/ngx-intl-tel-input.component.css @@ -1,9 +1,15 @@ li.iti__country:hover { background-color: rgba(0, 0, 0, 0.05); } + .iti__selected-flag.dropdown-toggle:after { content: none; } + +.iti__flag-container { + position: absolute; +} + .iti__flag-container.disabled { cursor: default !important; } @@ -36,6 +42,10 @@ li.iti__country:hover { border: none; } +.iti__country-list::-webkit-scrollbar { + display: none; +} + .iti input#country-search-box { padding-left: 6px; } diff --git a/projects/ngx-intl-tel-input/src/lib/ngx-intl-tel-input.component.html b/projects/ngx-intl-tel-input/src/lib/ngx-intl-tel-input.component.html index 4d0883f0..69c2299c 100644 --- a/projects/ngx-intl-tel-input/src/lib/ngx-intl-tel-input.component.html +++ b/projects/ngx-intl-tel-input/src/lib/ngx-intl-tel-input.component.html @@ -1,58 +1,64 @@ -
-
-