-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81d6889
commit a7686b6
Showing
51 changed files
with
2,572 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,10 @@ testem.log | |
/typings | ||
*.old | ||
|
||
# mock data | ||
/stubs | ||
/src/stubs | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. | ||
# For additional information regarding the format and rule options, please see: | ||
# https://github.com/browserslist/browserslist#queries | ||
|
||
# For the full list of supported browsers by the Angular framework, please see: | ||
# https://angular.io/guide/browser-support | ||
|
||
# You can see what browsers were selected by your queries by running: | ||
# npx browserslist | ||
|
||
last 3 Electron major versions | ||
last 1 Chrome version | ||
last 1 Firefox version | ||
last 2 Edge major versions | ||
last 2 Safari major versions | ||
last 2 iOS major versions | ||
Firefox ESR | ||
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line. | ||
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
<sz-example-header | ||
title="@senzing/sdk-components-ng/examples/charts" | ||
description="An example Angular app showing usage of the sz-record-counts-donut component"></sz-example-header> | ||
<div class="cols"> | ||
<sz-record-counts-donut | ||
ignore="test,search,watchlist" | ||
[colors]="['#081fad', 'lightblue', '#434447', '#6b486b', '#a05d56', '#d0743c', '#ff8c00']" | ||
orderBy="countdesc" | ||
></sz-record-counts-donut> | ||
<sz-license></sz-license> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
.graph-context-menu { | ||
border: 1px solid #686868; | ||
} | ||
|
||
:host { | ||
display: block; | ||
width: 1200px; | ||
|
||
sz-record-counts-donut { | ||
height: 200px; | ||
} | ||
sz-license { | ||
margin-left: 20px; | ||
width: 98%; | ||
|
||
padding: 0 20px 20px 20px; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
} | ||
|
||
.cols { | ||
display: flex;; | ||
flex-direction: row; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, ViewContainerRef } from '@angular/core'; | ||
import { Overlay, OverlayRef } from '@angular/cdk/overlay'; | ||
import { Subscription} from 'rxjs'; | ||
|
||
@Component({ | ||
selector: 'app-root', | ||
templateUrl: './app.component.html', | ||
styleUrls: ['./app.component.scss'] | ||
}) | ||
export class AppComponent { | ||
sub: Subscription; | ||
overlayRef: OverlayRef | null; | ||
|
||
constructor( public overlay: Overlay, public viewContainerRef: ViewContainerRef ) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { BrowserModule } from '@angular/platform-browser'; | ||
import { NgModule } from '@angular/core'; | ||
import { ReactiveFormsModule, FormsModule } from '@angular/forms'; | ||
import { HttpClientModule } from '@angular/common/http'; | ||
import { SenzingSdkModule, SzRestConfiguration } from '@senzing/sdk-components-ng'; | ||
import { AppComponent } from './app.component'; | ||
import { SzExamplesHeader } from '../common/header.component'; | ||
|
||
/** | ||
* Pull in api configuration(SzRestConfigurationParameters) | ||
* from: environments/environment | ||
* | ||
* @example | ||
* ng build -c production | ||
* ng serve -c docker | ||
*/ | ||
import { apiConfig, environment } from './../environments/environment'; | ||
|
||
/** | ||
* create exportable config factory | ||
* for AOT compilation. | ||
* | ||
* @export | ||
*/ | ||
export function SzRestConfigurationFactory() { | ||
return new SzRestConfiguration( (apiConfig ? apiConfig : undefined) ); | ||
} | ||
|
||
@NgModule({ | ||
declarations: [ | ||
AppComponent, | ||
SzExamplesHeader | ||
], | ||
imports: [ | ||
BrowserModule, | ||
HttpClientModule, | ||
FormsModule, | ||
ReactiveFormsModule, | ||
SenzingSdkModule.forRoot( SzRestConfigurationFactory ) | ||
], | ||
providers: [], | ||
bootstrap: [AppComponent] | ||
}) | ||
export class AppModule { } |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div style="text-align:left; font-weight: bold; font-size: 1.5em"> | ||
{{title}} | ||
</div> | ||
<div style="text-align:left; text-decoration: italic; font-size: 0.8em; margin: 2px 0 10px 0;"> | ||
{{description}} | ||
</div> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, HostBinding, Input, ViewChild, Output, OnInit, OnDestroy, EventEmitter, ElementRef, ChangeDetectorRef } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'sz-example-header', | ||
templateUrl: './header.component.html', | ||
styleUrls: ['./header.component.scss'] | ||
}) | ||
export class SzExamplesHeader { | ||
@Input() public title: string = ''; | ||
@Input() public description: string = ''; | ||
|
||
constructor() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { SzRestConfigurationParameters } from '@senzing/sdk-components-ng'; | ||
|
||
export const environment = { | ||
production: true | ||
}; | ||
|
||
// api configuration parameters | ||
export const apiConfig: SzRestConfigurationParameters = { | ||
'basePath': '/api', | ||
'withCredentials': true | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { SzRestConfigurationParameters } from '@senzing/sdk-components-ng'; | ||
|
||
// This file can be replaced during build by using the `fileReplacements` array. | ||
// `ng build` replaces `environment.ts` with `environment.prod.ts`. | ||
// The list of file replacements can be found in `angular.json`. | ||
|
||
export const environment = { | ||
production: false | ||
}; | ||
|
||
// api configuration parameters | ||
export const apiConfig: SzRestConfigurationParameters = { | ||
'basePath': '/api', | ||
'withCredentials': true | ||
}; | ||
|
||
/* | ||
* For easier debugging in development mode, you can import the following file | ||
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. | ||
* | ||
* This import should be commented out in production mode because it will have a negative impact | ||
* on performance if an error is thrown. | ||
*/ | ||
import 'zone.js/plugins/zone-error'; // Included with Angular CLI. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Charts</title> | ||
<base href="/"> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="icon" type="image/x-icon" href="favicon.ico"> | ||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" | ||
rel="stylesheet"> | ||
<link href="~/node_modules/@senzing/styles/styles.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<app-root></app-root> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { enableProdMode } from '@angular/core'; | ||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | ||
|
||
import { AppModule } from './app/app.module'; | ||
import { environment } from './environments/environment'; | ||
|
||
if (environment.production) { | ||
enableProdMode(); | ||
} | ||
|
||
platformBrowserDynamic().bootstrapModule(AppModule) | ||
.catch(err => console.error(err)); |
Oops, something went wrong.