Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular2-google-map-auto-complete

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-google-map-auto-complete - npm Package Compare versions

Comparing version 2.0.7 to 2.0.8

directives/googleplace.directive.ngfactory.js.map

89

directives/googleplace.directive.js

@@ -1,63 +0,42 @@

System.register(["@angular/core", "@angular/forms"], function (exports_1, context_1) {
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
import { Directive, ElementRef, EventEmitter, Output } from '@angular/core';
import { NgModel } from '@angular/forms';
var GoogleplaceDirective = (function () {
function GoogleplaceDirective(el, model) {
var _this = this;
this.model = model;
this.setAddress = new EventEmitter();
this._el = el.nativeElement;
this.modelValue = this.model;
var input = this._el;
this.autocomplete = new google.maps.places.Autocomplete(input, {});
google.maps.event.addListener(this.autocomplete, 'place_changed', function () {
var place = _this.autocomplete.getPlace();
_this.invokeEvent(place);
});
}
GoogleplaceDirective.prototype.invokeEvent = function (place) {
this.setAddress.emit(place);
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
GoogleplaceDirective.prototype.onInputChange = function () {
};
var __moduleName = context_1 && context_1.id;
var core_1, forms_1, GoogleplaceDirective;
return {
setters: [
function (core_1_1) {
core_1 = core_1_1;
},
function (forms_1_1) {
forms_1 = forms_1_1;
}
],
execute: function () {
GoogleplaceDirective = (function () {
function GoogleplaceDirective(el, model) {
var _this = this;
this.model = model;
this.setAddress = new core_1.EventEmitter();
this._el = el.nativeElement;
this.modelValue = this.model;
var input = this._el;
this.autocomplete = new google.maps.places.Autocomplete(input, {});
google.maps.event.addListener(this.autocomplete, 'place_changed', function () {
var place = _this.autocomplete.getPlace();
_this.invokeEvent(place);
});
}
GoogleplaceDirective.prototype.invokeEvent = function (place) {
this.setAddress.emit(place);
};
GoogleplaceDirective.prototype.onInputChange = function () {
};
return GoogleplaceDirective;
}());
__decorate([
core_1.Output(),
__metadata("design:type", core_1.EventEmitter)
], GoogleplaceDirective.prototype, "setAddress", void 0);
GoogleplaceDirective = __decorate([
core_1.Directive({
GoogleplaceDirective.decorators = [
{ type: Directive, args: [{
selector: '[googleplace]',
providers: [forms_1.NgModel],
providers: [NgModel],
host: {
'(input)': 'onInputChange()'
}
}),
__metadata("design:paramtypes", [core_1.ElementRef, forms_1.NgModel])
], GoogleplaceDirective);
exports_1("GoogleplaceDirective", GoogleplaceDirective);
}
},] },
];
/** @nocollapse */
GoogleplaceDirective.ctorParameters = function () { return [
{ type: ElementRef, },
{ type: NgModel, },
]; };
GoogleplaceDirective.propDecorators = {
"setAddress": [{ type: Output },],
};
});
return GoogleplaceDirective;
}());
export { GoogleplaceDirective };
//# sourceMappingURL=googleplace.directive.js.map

@@ -1,45 +0,21 @@

System.register(["@angular/core", "@angular/platform-browser", "@angular/forms", "./googleplace.directive"], function (exports_1, context_1) {
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __moduleName = context_1 && context_1.id;
var core_1, platform_browser_1, forms_1, googleplace_directive_1, GooglePlaceModule, GooglePlaceModule_1;
return {
setters: [
function (core_1_1) {
core_1 = core_1_1;
},
function (platform_browser_1_1) {
platform_browser_1 = platform_browser_1_1;
},
function (forms_1_1) {
forms_1 = forms_1_1;
},
function (googleplace_directive_1_1) {
googleplace_directive_1 = googleplace_directive_1_1;
}
],
execute: function () {
GooglePlaceModule = GooglePlaceModule_1 = (function () {
function GooglePlaceModule() {
}
GooglePlaceModule.forRoot = function () { return { ngModule: GooglePlaceModule_1, providers: [] }; };
return GooglePlaceModule;
}());
GooglePlaceModule = GooglePlaceModule_1 = __decorate([
core_1.NgModule({
imports: [platform_browser_1.BrowserModule, forms_1.FormsModule, forms_1.ReactiveFormsModule],
declarations: [googleplace_directive_1.GoogleplaceDirective],
exports: [googleplace_directive_1.GoogleplaceDirective],
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { GoogleplaceDirective } from './googleplace.directive';
var GooglePlaceModule = (function () {
function GooglePlaceModule() {
}
GooglePlaceModule.forRoot = function () { return { ngModule: GooglePlaceModule, providers: [] }; };
GooglePlaceModule.decorators = [
{ type: NgModule, args: [{
imports: [FormsModule, ReactiveFormsModule],
declarations: [GoogleplaceDirective],
exports: [GoogleplaceDirective],
providers: []
})
], GooglePlaceModule);
exports_1("GooglePlaceModule", GooglePlaceModule);
}
};
});
},] },
];
/** @nocollapse */
GooglePlaceModule.ctorParameters = function () { return []; };
return GooglePlaceModule;
}());
export { GooglePlaceModule };
//# sourceMappingURL=index.js.map
import { NgModule, ModuleWithProviders } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';

@@ -7,3 +6,3 @@ import {GoogleplaceDirective} from './googleplace.directive';

@NgModule({
imports: [ BrowserModule, FormsModule, ReactiveFormsModule],
imports: [FormsModule, ReactiveFormsModule],
declarations: [GoogleplaceDirective],

@@ -10,0 +9,0 @@ exports: [GoogleplaceDirective],

/*
* @author RAJAN G
*/
System.register(["@angular/core"], function (exports_1, context_1) {
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
import { Component } from '@angular/core';
var AppComponent = (function () {
function AppComponent() {
}
AppComponent.prototype.getAddress = function (place) {
this.address = place['formatted_address'];
var location = place['geometry']['location'];
var lat = location.lat();
var lng = location.lng();
console.log("Address Object", place);
};
var __moduleName = context_1 && context_1.id;
var core_1, AppComponent;
return {
setters: [
function (core_1_1) {
core_1 = core_1_1;
}
],
execute: function () {/*
* @author RAJAN G
*/
AppComponent = (function () {
function AppComponent() {
}
AppComponent.prototype.getAddress = function (place) {
this.address = place['formatted_address'];
var location = place['geometry']['location'];
var lat = location.lat();
var lng = location.lng();
console.log("Address Object", place);
};
return AppComponent;
}());
AppComponent = __decorate([
core_1.Component({
AppComponent.decorators = [
{ type: Component, args: [{
selector: 'my-app',
template: "\n\tType Location :\n <input type=\"text\" [(ngModel)] = \"address\" (setAddress) = \"getAddress($event)\" googleplace/>\n "
})
], AppComponent);
exports_1("AppComponent", AppComponent);
}
};
});
},] },
];
/** @nocollapse */
AppComponent.ctorParameters = function () { return []; };
return AppComponent;
}());
export { AppComponent };
//# sourceMappingURL=app.component.js.map

@@ -1,46 +0,21 @@

System.register(["@angular/core", "@angular/forms", "@angular/platform-browser", "./app.component", "../directives/index"], function (exports_1, context_1) {
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __moduleName = context_1 && context_1.id;
var core_1, forms_1, platform_browser_1, app_component_1, index_1, GooglePlaceExample;
return {
setters: [
function (core_1_1) {
core_1 = core_1_1;
},
function (forms_1_1) {
forms_1 = forms_1_1;
},
function (platform_browser_1_1) {
platform_browser_1 = platform_browser_1_1;
},
function (app_component_1_1) {
app_component_1 = app_component_1_1;
},
function (index_1_1) {
index_1 = index_1_1;
}
],
execute: function () {
GooglePlaceExample = (function () {
function GooglePlaceExample() {
}
return GooglePlaceExample;
}());
GooglePlaceExample = __decorate([
core_1.NgModule({
imports: [platform_browser_1.BrowserModule, forms_1.FormsModule, index_1.GooglePlaceModule],
declarations: [app_component_1.AppComponent],
bootstrap: [app_component_1.AppComponent]
})
], GooglePlaceExample);
exports_1("GooglePlaceExample", GooglePlaceExample);
}
};
});
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { GooglePlaceModule } from '../directives/index';
var GooglePlaceExample = (function () {
function GooglePlaceExample() {
}
GooglePlaceExample.decorators = [
{ type: NgModule, args: [{
imports: [BrowserModule, FormsModule, GooglePlaceModule],
declarations: [AppComponent],
bootstrap: [AppComponent]
},] },
];
/** @nocollapse */
GooglePlaceExample.ctorParameters = function () { return []; };
return GooglePlaceExample;
}());
export { GooglePlaceExample };
//# sourceMappingURL=app.module.js.map

@@ -1,20 +0,5 @@

System.register(["@angular/platform-browser-dynamic", "./app.module"], function (exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var platform_browser_dynamic_1, app_module_1, platform;
return {
setters: [
function (platform_browser_dynamic_1_1) {
platform_browser_dynamic_1 = platform_browser_dynamic_1_1;
},
function (app_module_1_1) {
app_module_1 = app_module_1_1;
}
],
execute: function () {
platform = platform_browser_dynamic_1.platformBrowserDynamic();
platform.bootstrapModule(app_module_1.GooglePlaceExample);
}
};
});
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { GooglePlaceExample } from './app.module';
var platform = platformBrowserDynamic();
platform.bootstrapModule(GooglePlaceExample);
//# sourceMappingURL=main.js.map
{
"name": "angular2-google-map-auto-complete",
"version": "2.0.7",
"version": "2.0.8",
"description": "google map auto complete directive for angular2",

@@ -14,28 +14,29 @@ "main": "index.js",

"dependencies": {
"@angular/compiler-cli": "^4.3.6",
"@angular/platform-server": "^4.3.6",
"typings": "^0.8.1"
},
"devDependencies": {
"@angular/common": "~4.3.1",
"@angular/compiler": "~4.3.1",
"@angular/compiler-cli": "~4.3.1",
"@angular/core": "~4.3.1",
"@angular/forms": "2.0.0",
"@angular/http": "2.0.0",
"@angular/platform-browser": "~4.3.1",
"@angular/platform-browser-dynamic": "~4.3.1",
"@angular/platform-server": "~4.3.1",
"@angular/router": "3.0.0",
"@angular/upgrade": "2.0.0",
"angular2-in-memory-web-api": "0.0.20",
"@angular/common": "~5.0.0",
"@angular/compiler": "~5.0.0",
"@angular/compiler-cli": "~5.0.0",
"@angular/core": "~5.0.0",
"@angular/forms": "~5.0.0",
"@angular/http": "~5.0.0",
"@angular/platform-browser": "~5.0.0",
"@angular/platform-browser-dynamic": "~5.0.0",
"@angular/platform-server": "~5.0.0",
"@angular/router": "~5.0.0",
"@angular/upgrade": "~5.0.0",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "^2.0.3",
"@types/node": "^6.0.45",
"bootstrap": "^3.3.6",
"core-js": "^2.4.1",
"reflect-metadata": "^0.1.3",
"rxjs": "^5.1.0",
"rxjs": "^5.5.2",
"systemjs": "0.19.39",
"typescript": "~2.3.2",
"zone.js": "^0.7.4",
"typescript": "2.4.2",
"zone.js": "^0.8.18",
"concurrently": "^2.0.0",
"lite-server": "^2.2.0"
"lite-server": "^2.2.0",
"typings": "2.1.1"
},

@@ -47,2 +48,3 @@ "scripts": {

"lite": "lite-server",
"aot": "ngc -p tsconfig-aot.json",
"typings": "$(npm bin)/typings",

@@ -49,0 +51,0 @@ "postinstall": "$(npm bin)/typings install"

{
"compilerOptions": {
"target": "es5",
"target": "es6",
"module": "system",

@@ -11,3 +11,3 @@ "moduleResolution": "node",

"noImplicitAny": false,
"lib": ["es6", "dom", "es2015.iterable"]
"lib": ["es6", "dom"]
},

@@ -14,0 +14,0 @@ "exclude": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc