Skip to content

Commit 587cfdf

Browse files
committed
docs(project): Updating CHANGELOG.md for v8.0.0
1 parent 5fed9db commit 587cfdf

File tree

26 files changed

+33
-48
lines changed

26 files changed

+33
-48
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
* fix(project): bug fixed with validation (5fed9db)
2+
* fix(project): minor (5ddffb2)
3+
* fix(project): upgraded universal (22221de)
4+
* fix(project): upgraded angular material deps (4c898b3)
5+
* fix(project): upgraded angular deps (0ac70db)
6+
* fix(project): upgraded angular deps (ae74502)
7+
* fix(project): minor (75aded9)
8+
* fix(project): updated the lib (7432616)
9+
* fix(project): updated the lib (22a13fb)
10+
* fix(project): updated the lib (8f4d5da)
11+
112
* fix(project): updated the lib (d69deb5)
213
* Merge pull request #326 from bittlerr/fix-address-components-error (4aaf185)
314
* fix(lib): safe access address components (03f8b42)

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr-styles/content-v2/sha512/8d/53/ad58764bc240411378ae1c47c0c20525da378a3b143795a11bc3fdbf6c9cde6fb2de6c3947d673d5872b9ce205d6274114b3b4dfd27609a636df7fd0b600

-1
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr-styles/content-v2/sha512/cf/83/e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e

Whitespace-only changes.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr-styles/content-v2/sha512/e4/29/247e58780ab5236e8a73e86c364fc4b083ab73903b6e5505e10ffccf31fd169ebc41a05b94cb3860bcf1457e8810447d9d64cf6a25c9f3cf4e03ca20680b

-1
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr-styles/content-v2/sha512/fa/18/543ea9248f4aa3d471109f744111098f419dabed382bb0550c2f2d03d876708ac0b12b0b1c0f08ce875d2d84605b3e100d6790e04208d1a8ec37f6b19f59

-1
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr-styles/index-v5/0a/76/843a23a3aade8ab0e032f714cce4bcd84b3391f70bb8da58d5570e8312d0

-2
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr-styles/index-v5/3b/42/22728db0289095eb280abaeecf657c9d86b5f2b2933a36d440c5f27b19fe

-2
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr-styles/index-v5/3c/cf/51d962cc5fe6c6bc41e398bcc49edd376a44af578e001a313b25700fe667

-2
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr-styles/index-v5/94/3f/2e79b29cccd6d52699887ae524d83a70cca36fd736d78824ed9b01968595

-2
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/content-v2/sha512/25/3d/bede8bffc1859dcbd49de2a633c665ef3503c557913cd5a19955a0253464363f91d41b0be9a1fb931e887c5d31db36757eed574b7fcd0a0fc42b6d7cc221

-1
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/content-v2/sha512/59/e5/402b448ef258e160614f0f35d27bcf9ad50766b1e07d443af065ee60751e765344706244f438e71ecf31eb49e1c5e545322f4ad58fb3bb5f6a781f910363

-1
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/content-v2/sha512/6e/fa/b7aa137c7966ecabc26349199e615977541a5dfbe59a0b4678375c1a7819ac07378b6cfb26a95d615bf020f27a40b20c13b2cff3fa817b21f986ab103c2b

-1
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/content-v2/sha512/a6/f0/046d6f3f08858c984c544dc3590c6682a20394de05e3119483091ccbd3ce95786d87ab7ffd896f2e8faa07925f9f4b1fbc3f43b46ba618b8943cb67aca33

-1
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/content-v2/sha512/aa/4f/16c33fe249173f270c37bf4ddf60c72871ecf672406ead7d58211eaa101dbbc3e492f8feacf62c81d3bbd836f9ccef13150dca770d7d64713e05b99c171f

-1
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/content-v2/sha512/ed/82/a4c0a0a070151990840e641fa41ee2af5b4acb46ad6663eb9c5ba9f078d6d5c8c2405fb89e586083a8dde4a35f57ddc50865f3d5e0f1e2e62d29fdf1dc56

-1
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/index-v5/31/23/7eb20b8520f9ce8f83ca6f9c5d59631bba8b719028bb1b59d91900528b5d

-2
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/index-v5/81/ad/d33c1fb9824958ce13bcbf9fbf370068f7a55efc11ddef2f8dc37343d50c

-3
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/index-v5/90/21/013eb18c790a29cf18bc215a05b0e2a02fbda75f245f3b229c9a308e491d

-3
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/index-v5/ae/b5/bea433780889ebaf999966e8a973946d93aac9eb2df48f0da1d433194e8d

-2
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/index-v5/bc/63/b01a14da10ffffab55ac324e1d22a622bdcb795fdef5a0520ebd0e4e7096

-2
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/index-v5/f6/46/2e3d7eacc62b078e781e36dc05577e805494ce2b914107dd5008d02578d0

-3
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/index-v5/f6/89/d542e2cf41b252e290d5f6b8b135a3c1ae064c317ac0af426f8a80a1ff12

-2
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/node_modules/.cache/ng-packagr/index-v5/ff/16/fbbd08a38d4d4f02d36c3f31f97bef33f5980d3752d3879e314ebffead52

-2
This file was deleted.

projects/angular-material-extensions/google-maps-autocomplete/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@angular-material-extensions/google-maps-autocomplete",
33
"description": "Autocomplete input component and directive for google-maps built with angular and material design",
4-
"version": "7.1.0",
4+
"version": "8.0.0",
55
"homepage": "https://angular-material-extensions.github.io/google-maps-autocomplete",
66
"author": {
77
"name": "Anthony Nahas",
@@ -43,7 +43,7 @@
4343
"release:patch": "../../../node_modules/.bin/release-it --patch --ci",
4444
"release:minor": "../../../node_modules/.bin/release-it --minor --ci",
4545
"release:major": "../../../node_modules/.bin/release-it --major --ci --no-git.requireCleanWorkingDir --dry-run",
46-
"release:custom": "../../../node_modules/.bin/release-it 7.1.0 --ci --no-git.requireCleanWorkingDir",
46+
"release:custom": "../../../node_modules/.bin/release-it 8.0.0 --ci --no-git.requireCleanWorkingDir",
4747
"ng:test": "../../../node_modules/.bin/ng test @angular-material-extensions/google-maps-autocomplete",
4848
"test": "../../../node_modules/.bin/jest --coverage",
4949
"test:watch": "../../../node_modules/.bin/jest --coverage --watch"

projects/angular-material-extensions/google-maps-autocomplete/src/lib/directives/mat-google-maps-autocomplete.directive.ts

+8-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import {
1212
Output,
1313
PLATFORM_ID
1414
} from '@angular/core';
15-
import {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';
15+
import {ControlValueAccessor, FormControl, NG_VALIDATORS, Validators} from '@angular/forms';
1616
import {MapsAPILoader} from '@agm/core';
17-
import {isPlatformBrowser} from '@angular/common';
1817
import {GermanAddress, Location} from '../interfaces';
18+
import {isPlatformBrowser} from '@angular/common';
1919
import PlaceResult = google.maps.places.PlaceResult;
2020
import AutocompleteOptions = google.maps.places.AutocompleteOptions;
2121

@@ -24,7 +24,7 @@ import AutocompleteOptions = google.maps.places.AutocompleteOptions;
2424
exportAs: 'matGoogleMapsAutocomplete',
2525
providers: [
2626
{
27-
provide: NG_VALUE_ACCESSOR,
27+
provide: NG_VALIDATORS,
2828
useExisting: forwardRef(() => MatGoogleMapsAutocompleteDirective),
2929
multi: true
3030
}
@@ -86,14 +86,14 @@ export class MatGoogleMapsAutocompleteDirective implements OnInit, ControlValueA
8686
};
8787

8888
constructor(@Inject(PLATFORM_ID) public platformId: string,
89-
// @Optional() @Self() public ngControl: NgControl,
9089
public elemRef: ElementRef,
9190
public mapsAPILoader: MapsAPILoader,
9291
private cf: ChangeDetectorRef,
9392
private ngZone: NgZone) {
9493
}
9594

9695
ngOnInit(): void {
96+
console.log('validator', this)
9797
if (isPlatformBrowser(this.platformId)) {
9898
const options: AutocompleteOptions = {
9999
// types: ['address'],
@@ -114,6 +114,10 @@ export class MatGoogleMapsAutocompleteDirective implements OnInit, ControlValueA
114114
}
115115
}
116116

117+
validate(fc: FormControl) {
118+
return fc.hasValidator(Validators.required) ? !!fc?.value : true;
119+
}
120+
117121
@HostListener('change')
118122
onChangeInputValue(): void {
119123
const value = (this.elemRef.nativeElement as HTMLInputElement)?.value;

projects/angular-material-extensions/google-maps-autocomplete/src/lib/mat-google-maps-autocomplete.module.ts

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import {CommonModule} from '@angular/common';
2-
import {NgModule} from '@angular/core';
2+
import {forwardRef, NgModule} from '@angular/core';
33
import {FlexLayoutModule} from '@angular/flex-layout';
4-
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
5-
import { MatIconModule } from '@angular/material/icon';
6-
import { MatInputModule } from '@angular/material/input';
4+
import {FormsModule, NG_VALUE_ACCESSOR, ReactiveFormsModule} from '@angular/forms';
5+
import {MatIconModule} from '@angular/material/icon';
6+
import {MatInputModule} from '@angular/material/input';
77
import {MatGoogleMapsAutocompleteDirective} from './directives/mat-google-maps-autocomplete.directive';
88
import {MatValidateAddressDirective} from './directives/address-validator/mat-address-validator.directive';
9-
import {MatGoogleMapsAutocompleteComponent} from './component/mat-google-maps-autocomplete.component';
109
// tslint:disable-next-line:max-line-length
11-
import {MatSearchGoogleMapsAutocompleteComponent} from './component/mat-search-google-maps-autocomplete/mat-search-google-maps-autocomplete.component';
10+
import {MatGoogleMapsAutocompleteComponent, MatSearchGoogleMapsAutocompleteComponent} from './component';
1211

1312

1413
@NgModule({
@@ -32,6 +31,13 @@ import {MatSearchGoogleMapsAutocompleteComponent} from './component/mat-search-g
3231
MatGoogleMapsAutocompleteDirective,
3332
MatValidateAddressDirective,
3433
MatSearchGoogleMapsAutocompleteComponent
34+
],
35+
providers: [
36+
// {
37+
// provide: NG_VALUE_ACCESSOR,
38+
// useExisting: forwardRef(() => MatGoogleMapsAutocompleteDirective),
39+
// multi: true
40+
// }
3541
]
3642
})
3743
export class MatGoogleMapsAutocompleteModule {

0 commit comments

Comments
 (0)