This commit is contained in:
Sercan Yemen 2017-10-13 12:21:07 +03:00
commit 3198663430
18 changed files with 241 additions and 975 deletions

1009
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -15,18 +15,19 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "4.4.4", "@agm/core": "1.0.0-beta.1",
"@angular/animations": "4.4.5",
"@angular/cdk": "2.0.0-beta.12", "@angular/cdk": "2.0.0-beta.12",
"@angular/common": "4.4.4", "@angular/common": "4.4.5",
"@angular/compiler": "4.4.4", "@angular/compiler": "4.4.5",
"@angular/core": "4.4.4", "@angular/core": "4.4.5",
"@angular/flex-layout": "2.0.0-beta.9", "@angular/flex-layout": "2.0.0-beta.9",
"@angular/forms": "4.4.4", "@angular/forms": "4.4.5",
"@angular/http": "4.4.4", "@angular/http": "4.4.5",
"@angular/material": "2.0.0-beta.12", "@angular/material": "2.0.0-beta.12",
"@angular/platform-browser": "4.4.4", "@angular/platform-browser": "4.4.5",
"@angular/platform-browser-dynamic": "4.4.4", "@angular/platform-browser-dynamic": "4.4.5",
"@angular/router": "4.4.4", "@angular/router": "4.4.5",
"@swimlane/ngx-charts": "6.0.2", "@swimlane/ngx-charts": "6.0.2",
"@swimlane/ngx-datatable": "9.3.1", "@swimlane/ngx-datatable": "9.3.1",
"@swimlane/ngx-dnd": "3.0.0", "@swimlane/ngx-dnd": "3.0.0",
@ -49,8 +50,8 @@
}, },
"devDependencies": { "devDependencies": {
"@angular/cli": "1.4.2", "@angular/cli": "1.4.2",
"@angular/compiler-cli": "4.4.4", "@angular/compiler-cli": "4.4.5",
"@angular/language-service": "4.4.4", "@angular/language-service": "4.4.5",
"@angularclass/hmr": "2.1.3", "@angularclass/hmr": "2.1.3",
"@ngtools/webpack": "1.7.1", "@ngtools/webpack": "1.7.1",
"@types/jasmine": "2.6.0", "@types/jasmine": "2.6.0",

View File

@ -2,6 +2,7 @@ import { NgModule } from '@angular/core';
import { SharedModule } from '../../../core/modules/shared.module'; import { SharedModule } from '../../../core/modules/shared.module';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import { FuseNgxDatatableComponent } from './datatable/ngx-datatable.component'; import { FuseNgxDatatableComponent } from './datatable/ngx-datatable.component';
import { GoogleMapsModule } from './google-maps/google-maps.module';
const routes = [ const routes = [
{ {
@ -13,7 +14,8 @@ const routes = [
@NgModule({ @NgModule({
imports : [ imports : [
SharedModule, SharedModule,
RouterModule.forChild(routes) RouterModule.forChild(routes),
GoogleMapsModule
], ],
declarations: [ declarations: [
FuseNgxDatatableComponent FuseNgxDatatableComponent

View File

@ -1,3 +1,7 @@
:host { :host {
} .content{
max-width: 1100px;
}
}

View File

@ -0,0 +1,60 @@
<div id="countdown" class="page-layout simple fullwidth" fusePerfectScrollbar>
<!-- HEADER -->
<div class="header mat-accent-bg p-24 h-160" fxLayout="column" fxLayoutAlign="center center" fxLayout.gt-xs="row" fxLayoutAlign.gt-xs="space-between center">
<div fxLayout="column" fxLayoutAlign="center center" fxLayout.gt-xs="column" fxLayoutAlign.gt-xs="center start">
<div class="black-fg" fxLayout="row" fxLayoutAlign="start center">
<mat-icon class="secondary-text s-16">home</mat-icon>
<mat-icon class="secondary-text s-16">chevron_right</mat-icon>
<span class="secondary-text">Google Maps</span>
</div>
<div class="h2 mt-16">Google Maps</div>
</div>
<a mat-raised-button class="reference-button mat-white-bg mt-16 mt-sm-0"
href="https://angular-maps.com"
target="_blank">
<mat-icon>link</mat-icon>
<span>Reference</span>
</a>
</div>
<!-- / HEADER -->
<!-- CONTENT -->
<div class="content p-24">
<p>
<code>agm-map</code> is a angular component library for Google Maps.
</p>
<div class="my-48">
<h2>Sample</h2>
<p fxLayout="row" fxLayoutAlign="start start">
<agm-map [latitude]="lat" [longitude]="lng">
<agm-marker [latitude]="lat" [longitude]="lng"></agm-marker>
</agm-map>
</p>
</div>
<div class="my-48">
<h2>Usage</h2>
<p class="mat-grey-200-bg py-8">
<fuse-hljs lang="html" class="source-code">
<textarea #source hidden="hidden">
<agm-map [latitude]="lat" [longitude]="lng">
<agm-marker [latitude]="lat" [longitude]="lng"></agm-marker>
</agm-map>
</textarea>
</fuse-hljs>
</p>
</div>
<div class="my-48">
<h2>Inputs</h2>
Checkout the component api docs for detail:
<a href="https://angular-maps.com/api-docs/agm-core/components/AgmMap.html" target="_blank">AgmMap Api</a>
</div>
</div>
</div>

View File

@ -0,0 +1,11 @@
:host {
.content{
max-width: 960px;
}
agm-map {
width: 100%;
height: 300px;
}
}

View File

@ -0,0 +1,17 @@
import { Component } from '@angular/core';
@Component({
selector : 'fuse-google-maps-docs',
templateUrl: './google-maps.component.html',
styleUrls : ['./google-maps.component.scss']
})
export class FuseGoogleMapsDocsComponent
{
lat = -34.397;
lng = 150.644;
constructor()
{
}
}

View File

@ -0,0 +1,28 @@
import { NgModule } from '@angular/core';
import { FuseGoogleMapsDocsComponent } from './google-maps.component';
import { SharedModule } from '../../../../core/modules/shared.module';
import { RouterModule } from '@angular/router';
import { AgmCoreModule } from '@agm/core';
const routes = [
{
path : 'components-third-party/google-maps',
component: FuseGoogleMapsDocsComponent
}
];
@NgModule({
imports : [
SharedModule,
RouterModule.forChild(routes),
AgmCoreModule.forRoot({
apiKey: 'AIzaSyD81ecsCj4yYpcXSLFcYU97PvRsE_X8Bx8'
})
],
declarations: [
FuseGoogleMapsDocsComponent
]
})
export class GoogleMapsModule
{
}

View File

@ -3,7 +3,7 @@
.angular-material-element { .angular-material-element {
> .content { > .content {
max-width: 940px; max-width: 960px;
} }
} }
} }

View File

@ -1,3 +1,7 @@
:host { :host {
} .content{
max-width: 1100px;
}
}

View File

@ -1,3 +1,7 @@
:host { :host {
} .content{
max-width: 1100px;
}
}

View File

@ -1,3 +1,7 @@
:host { :host {
} .content{
max-width: 1100px;
}
}

View File

@ -1,3 +1,7 @@
:host { :host {
} .content{
max-width: 1100px;
}
}

View File

@ -1,3 +1,7 @@
:host { :host {
} .content{
max-width: 1100px;
}
}

View File

@ -1,3 +1,7 @@
:host { :host {
} .content{
max-width: 1100px;
}
}

View File

@ -1,3 +1,7 @@
:host { :host {
} .content{
max-width: 1100px;
}
}

View File

@ -1,3 +1,7 @@
:host { :host {
} .content{
max-width: 1100px;
}
}

View File

@ -634,6 +634,12 @@ export class NavigationModel
'url' : '/components-third-party/datatables/ngx-datatable' 'url' : '/components-third-party/datatables/ngx-datatable'
} }
] ]
},
{
'title': 'Google Maps',
'type' : 'item',
'icon' : 'place',
'url' : '/components-third-party/google-maps'
} }
] ]
} }