summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEran (ev672n), Vosk <ev672n@att.com>2018-10-29 19:33:00 +0200
committerEran (ev672n), Vosk <ev672n@att.com>2018-10-29 19:33:00 +0200
commit2dbff5ec1853f5f48354e0bbdecfae2d7489fbbb (patch)
tree932b4549f366400753354b7e5937f7ecae40511f
parente0cf0c1c4a425816704a1e5b325fe7c8b9d2759a (diff)
Sync the code between repositories Change-Id: Ib7ee4d0e0f53b58a9bf97dadb15e094789b4f915 Issue-ID: SDC-1874 Signed-off-by: Eran (ev672n), Vosk <ev672n@att.com>
-rw-r--r--pom.xml2
-rw-r--r--public/package.json2
-rw-r--r--public/src/app/bar-icons/bar-icons.component.html10
-rw-r--r--public/src/app/diagram/diagram.component.html15
-rw-r--r--public/src/app/diagram/diagram.component.scss1
-rw-r--r--public/src/app/diagram/diagram.component.spec.ts186
-rw-r--r--public/src/app/general/general.component.html6
-rw-r--r--public/src/app/home/home.component.html65
-rw-r--r--public/src/app/home/home.component.scss12
-rw-r--r--public/src/app/home/home.component.ts5
-rw-r--r--public/src/app/import-rules/import-rules.component.html6
-rw-r--r--public/src/app/import-rules/import-rules.component.ts142
-rw-r--r--public/src/app/main/main.component.html3
-rw-r--r--public/src/app/main/main.component.ts3
-rw-r--r--public/src/app/revert-dialog/revert-dialog.component.ts2
-rw-r--r--public/src/app/rule-engine/action-list/action-list.component.html5
-rw-r--r--public/src/app/rule-engine/action-list/action-list.component.ts21
-rw-r--r--public/src/app/rule-engine/action/action.component.html16
-rw-r--r--public/src/app/rule-engine/action/action.component.ts65
-rw-r--r--public/src/app/rule-engine/api/rule-engine-api.service.ts9
-rw-r--r--public/src/app/rule-engine/condition/condition.component.html18
-rw-r--r--public/src/app/rule-engine/from/from.component.html10
-rw-r--r--public/src/app/rule-engine/rule-list/rule-list.component.html19
-rw-r--r--public/src/app/rule-engine/rule-list/rule-list.component.ts160
-rw-r--r--public/src/app/rule-engine/version-type-select/version-type-select.component.html21
-rw-r--r--public/src/app/rule-engine/version-type-select/version-type-select.component.ts7
-rw-r--r--public/src/app/store/store.ts1
-rw-r--r--public/src/assets/images/icon_revert.svg26
-rw-r--r--public/src/assets/images/icon_submitted.svg22
-rw-r--r--public/yarn.lock438
-rw-r--r--src/main/java/org/onap/sdc/dcae/FeApp.java2
31 files changed, 551 insertions, 749 deletions
diff --git a/pom.xml b/pom.xml
index 05a8df4..d3e4c02 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
- <version>2.0.5.RELEASE</version>
+ <version>1.5.9.RELEASE</version>
<relativePath />
<!-- lookup parent from repository -->
</parent>
diff --git a/public/package.json b/public/package.json
index f06f6d9..9ab6240 100644
--- a/public/package.json
+++ b/public/package.json
@@ -54,7 +54,7 @@
"intl": "^1.2.5",
"lodash": "^4.17.5",
"material-design-icons": "^3.0.1",
- "mobx": "^4.2.0",
+ "mobx": "4.3.0",
"mobx-angular": "^3.0.1",
"mobx-utils": "^5.0.0",
"ngx-datatable": "^1.0.3",
diff --git a/public/src/app/bar-icons/bar-icons.component.html b/public/src/app/bar-icons/bar-icons.component.html
index 761a5cb..b855ede 100644
--- a/public/src/app/bar-icons/bar-icons.component.html
+++ b/public/src/app/bar-icons/bar-icons.component.html
@@ -15,7 +15,7 @@
<hr>
<button mat-icon-button (click)="enableImports()" data-tests-id="import-rules" pTooltip="Import" tooltipPosition="top" [disabled]="store.viewOnly">
- <span style="width: 100%;
+ <span [style.color]="store.expandImports[store.tabIndex] ? '#009FDB' : '#5a5a5a'" style="width: 100%;
color:#5a5a5a;
height: 100%;
display: flex;
@@ -26,9 +26,9 @@
<hr>
</div>
- <button mat-icon-button (click)="enableSetting()" data-tests-id="setting-gear" [style.color]="this.store.expandAdvancedSetting[store.tabIndex] ? '#009FDB' : 'black'"
+ <button mat-icon-button (click)="enableSetting()" data-tests-id="setting-gear"
pTooltip="Settings" tooltipPosition="top">
- <span style="width: 100%;
+ <span [style.color]="this.store.expandAdvancedSetting[store.tabIndex] ? '#009FDB' : '#5a5a5a'" style="width: 100%;
color:#5a5a5a;
height: 100%;
display: flex;
@@ -47,7 +47,9 @@
<!-- advanced setting -->
<div class="setting" *ngIf="store.expandAdvancedSetting[store.tabIndex]">
<div *mobxAutorun style="width: 100%;" [class]="tabName+'-setting-list'">
- <div style="font-size: 1.5em; padding: 0 12px;">{{tabName}} Advanced Setting</div>
+ <div style="font-size: 1.5em; padding: 0 12px;">
+ {{tabName}} Advanced Settings
+ </div>
<form #cdumpConfForm="ngForm">
<div *ngFor="let prop of store.configurationForm" class="field" [id]="prop.name">
<div style="display: flex;">
diff --git a/public/src/app/diagram/diagram.component.html b/public/src/app/diagram/diagram.component.html
index 7585428..c813a3c 100644
--- a/public/src/app/diagram/diagram.component.html
+++ b/public/src/app/diagram/diagram.component.html
@@ -1,7 +1,6 @@
<div style="overflow:auto; height:450px; padding: 0 1em; border: 1px solid #d9d9d9;">
- <svg id="diagram" #diagram align="center" #svgContainer>
- <svg width="100%" height="1300px" preserveAspectRatio="xMaxYMin meet" *ngFor="let item of list; let i = index" style="padding: 1em 0;"
- align="center">
+ <svg id="diagram" #diagram align="center" #svgContainer [attr.height.px]="(list.length * 45) + 50">
+ <svg width="100%" height="2000px" preserveAspectRatio="xMaxYMin meet" *ngFor="let item of list; let i = index" align="center">
<svg [attr.width]="maxLengthLeft * 10">
<text text-anchor="start" x="0" [attr.y]="40 * (i+1)" font-size="12" dy="0">
@@ -14,18 +13,18 @@
</text>
</svg>
- <circle stroke="#8BC34A" fill="#8BC34A" [attr.cx]="maxLengthLeft * 8" [attr.cy]="44 * (i+1)" r="5" />
+ <circle stroke="#8BC34A" fill="#8BC34A" [attr.cx]="maxLengthLeft * 8" [attr.cy]="40 * (i+1)" r="5" />
- <line [attr.x1]="maxLengthLeft * 8" [attr.y1]="44 * (i+1)" [attr.x2]="maxWidth - maxLengthRight * 8 - 30" [attr.y2]="44 * (i+1)"
+ <line [attr.x1]="maxLengthLeft * 8" [attr.y1]="40 * (i+1)" [attr.x2]="maxWidth - maxLengthRight * 8 - 60" [attr.y2]="40 * (i+1)"
stroke-width="2" stroke="black" stroke-dasharray="5, 5" stroke="#8BC34A" fill="#8BC34A" class="line" />
- <circle [attr.cx]="maxWidth - maxLengthRight * 8 - 30" [attr.cy]="44 * (i+1)" r="5" stroke="#8BC34A" fill="#8BC34A" />
+ <circle [attr.cx]="maxWidth - maxLengthRight * 8 - 60" [attr.cy]="40 * (i+1)" r="5" stroke="#8BC34A" fill="#8BC34A" />
<text text-anchor="start" [attr.x]="maxWidth - maxLengthRight * 8" [attr.y]="40 * (i+1)" font-size="12" dy="0">
- <tspan [attr.x]="maxWidth - maxLengthRight * 8" dy=".6em" font-weight="bold">
+ <tspan [attr.x]="maxWidth - maxLengthRight * 11" dy=".6em" font-weight="bold">
{{item.name2}}
</tspan>
- <tspan [attr.x]="maxWidth - maxLengthRight * 8" dy="1.2em">
+ <tspan [attr.x]="maxWidth - maxLengthRight * 11" dy="1.2em">
{{item.p2}}
</tspan>
</text>
diff --git a/public/src/app/diagram/diagram.component.scss b/public/src/app/diagram/diagram.component.scss
index 7c93d86..c693f64 100644
--- a/public/src/app/diagram/diagram.component.scss
+++ b/public/src/app/diagram/diagram.component.scss
@@ -1,5 +1,4 @@
#diagram {
- height: 3000px;
width: 100%;
margin: auto;
display: block;
diff --git a/public/src/app/diagram/diagram.component.spec.ts b/public/src/app/diagram/diagram.component.spec.ts
index 8412561..1233517 100644
--- a/public/src/app/diagram/diagram.component.spec.ts
+++ b/public/src/app/diagram/diagram.component.spec.ts
@@ -1,98 +1,98 @@
-import { ComponentFixture, TestBed, async } from '@angular/core/testing';
-import { DiagramComponent } from './diagram.component';
+// import { ComponentFixture, TestBed, async } from '@angular/core/testing';
+// import { DiagramComponent } from './diagram.component';
-describe('DiagramComponent', () => {
- let component: DiagramComponent;
- let fixture: ComponentFixture<DiagramComponent>;
+// describe('DiagramComponent', () => {
+// let component: DiagramComponent;
+// let fixture: ComponentFixture<DiagramComponent>;
- beforeEach(
- async(() => {
- TestBed.configureTestingModule({
- declarations: [DiagramComponent]
- }).compileComponents();
- })
- );
+// beforeEach(
+// async(() => {
+// TestBed.configureTestingModule({
+// declarations: [DiagramComponent]
+// }).compileComponents();
+// })
+// );
- beforeEach(() => {
- fixture = TestBed.createComponent(DiagramComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
+// beforeEach(() => {
+// fixture = TestBed.createComponent(DiagramComponent);
+// component = fixture.componentInstance;
+// fixture.detectChanges();
+// });
- it('should create', () => {
- expect(component).toBeTruthy();
- });
+// it('should create', () => {
+// expect(component).toBeTruthy();
+// });
- it('should check on change check maxLengthLeft', () => {
- component.list = [
- {
- name1: 'node1dsvsdsvd',
- name2: 'node2',
- p1: 'Stream_publish_0',
- p2: 'capability'
- },
- {
- name1: 'node33',
- name2: 'node2555',
- p1: 'requirement2',
- p2: 'capability11'
- },
- {
- name1: 'namber4',
- name2: 'namber3',
- p1: 'requirement3',
- p2: 'capability4'
- }
- ];
- component.ngOnChanges();
- expect(component.maxLengthLeft).toBe(16);
- });
- it('should check on change check maxLengthRight', () => {
- component.list = [
- {
- name1: 'node1dsvsdsvd',
- name2: 'node2',
- p1: 'Stream_publish_0',
- p2: 'capability'
- },
- {
- name1: 'node33',
- name2: 'node2555',
- p1: 'requirement2',
- p2: 'capability11'
- },
- {
- name1: 'namber4',
- name2: 'namber3',
- p1: 'requirement3',
- p2: 'capability4'
- }
- ];
- component.ngOnChanges();
- expect(component.maxLengthRight).toBe(12);
- });
- it('should check on change check maxWidth', () => {
- component.list = [
- {
- name1: 'node1dsvsdsvd',
- name2: 'node2',
- p1: 'Stream_publish_0',
- p2: 'capability'
- },
- {
- name1: 'node33',
- name2: 'node2555',
- p1: 'requirement2',
- p2: 'capability11'
- },
- {
- name1: 'namber4',
- name2: 'namber3',
- p1: 'requirement3',
- p2: 'capability4'
- }
- ];
- component.ngOnChanges();
- // expect(component.maxWidth).toBe(550);
- });
-});
+// it('should check on change check maxLengthLeft', () => {
+// component.list = [
+// {
+// name1: 'node1dsvsdsvd',
+// name2: 'node2',
+// p1: 'Stream_publish_0',
+// p2: 'capability'
+// },
+// {
+// name1: 'node33',
+// name2: 'node2555',
+// p1: 'requirement2',
+// p2: 'capability11'
+// },
+// {
+// name1: 'namber4',
+// name2: 'namber3',
+// p1: 'requirement3',
+// p2: 'capability4'
+// }
+// ];
+// component.ngOnChanges();
+// expect(component.maxLengthLeft).toBe(16);
+// });
+// it('should check on change check maxLengthRight', () => {
+// component.list = [
+// {
+// name1: 'node1dsvsdsvd',
+// name2: 'node2',
+// p1: 'Stream_publish_0',
+// p2: 'capability'
+// },
+// {
+// name1: 'node33',
+// name2: 'node2555',
+// p1: 'requirement2',
+// p2: 'capability11'
+// },
+// {
+// name1: 'namber4',
+// name2: 'namber3',
+// p1: 'requirement3',
+// p2: 'capability4'
+// }
+// ];
+// component.ngOnChanges();
+// expect(component.maxLengthRight).toBe(12);
+// });
+// it('should check on change check maxWidth', () => {
+// component.list = [
+// {
+// name1: 'node1dsvsdsvd',
+// name2: 'node2',
+// p1: 'Stream_publish_0',
+// p2: 'capability'
+// },
+// {
+// name1: 'node33',
+// name2: 'node2555',
+// p1: 'requirement2',
+// p2: 'capability11'
+// },
+// {
+// name1: 'namber4',
+// name2: 'namber3',
+// p1: 'requirement3',
+// p2: 'capability4'
+// }
+// ];
+// component.ngOnChanges();
+// // expect(component.maxWidth).toBe(550);
+// });
+// });
diff --git a/public/src/app/general/general.component.html b/public/src/app/general/general.component.html
index 2d6f232..19cdeb5 100644
--- a/public/src/app/general/general.component.html
+++ b/public/src/app/general/general.component.html
@@ -38,7 +38,7 @@
<div class="field" *ngIf="store.generalflow === 'new'">
<div class="field-label required" style="display: flex;">
<span>Template</span>
- <span style="padding-left: 5px;" [innerHTML]="'help-circle' | feather:14"></span>
+ <span style="padding-left: 5px;" [innerHTML]="'help-circle' | feather:14" pTooltip="The monitoring templates define the connectivity and flow of the monitoring mS’." tooltipPosition="top"></span>
</div>
<select name="template" [disabled]="this.store.isEditMode" required [(ngModel)]="newVfcmt.template" (ngModelChange)="onChangeTemplate($event)"
data-tests-id="templateDdl" class="field-text" [style.background]="this.store.isEditMode ? '#ebebe4' : 'white'">
@@ -50,7 +50,7 @@
<div class="field" *ngIf="store.generalflow === 'import' || store.generalflow === 'edit'">
<div class="field-label required" style="display: flex;">
<span>Flow type</span>
- <span style="padding-left: 5px;" [innerHTML]="'help-circle' | feather:14"></span>
+ <span style="padding-left: 5px;" [innerHTML]="'help-circle' | feather:14" pTooltip="The flow type define the connectivity and flow of the monitoring mS’." tooltipPosition="top"></span>
</div>
<select name="flowType" [disabled]="this.store.isEditMode || disableFlowType" required [(ngModel)]="newVfcmt.flowType" data-tests-id="flowTypeDdl"
class="field-text" [style.background]="this.store.isEditMode || disableFlowType ? '#ebebe4' : 'white'">
@@ -62,7 +62,7 @@
<div class="field">
<div class="field-label required" style="display: flex;">
<span>Attached to</span>
- <span style="padding-left: 5px;" [innerHTML]="'help-circle' | feather:14"></span>
+ <span style="padding-left: 5px;" [innerHTML]="'help-circle' | feather:14" pTooltip="Select the VF instance to which the Monitoring Configuration would be assigned." tooltipPosition="top"></span>
</div>
<select name="serviceAttached" [disabled]="this.store.isEditMode || disableVnfiList" required [(ngModel)]="newVfcmt.vfni"
data-tests-id="vfniDdl" (ngModelChange)="onChangeVfni($event)" class="field-text" [style.background]="this.store.isEditMode || disableVnfiList ? '#ebebe4' : 'white'">
diff --git a/public/src/app/home/home.component.html b/public/src/app/home/home.component.html
index 3c23385..a742696 100644
--- a/public/src/app/home/home.component.html
+++ b/public/src/app/home/home.component.html
@@ -34,8 +34,7 @@
<ngx-datatable data-tests-id="monitoringComponentTable" class="material" [rows]="store.monitoringComponents"
[loadingIndicator]="loadingIndicator" [columnMode]="'flex'" [headerHeight]="40" [footerHeight]="40" [limit]="12"
- [rowHeight]="45" (selected)="onTableSelectItem($event)" [selectionType]="'single'" [selected]="selectedLine"
- (activate)="onTableActivate($event)">
+ [rowHeight]="45" (selected)="onTableSelectItem($event)" [selectionType]="'single'" [selected]="selectedLine" (activate)="onTableActivate($event)">
<ngx-datatable-column name="Monitoring Configuration" prop="name" [flexGrow]="3">
<ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
@@ -60,36 +59,46 @@
<ngx-datatable-column name="Actions" sortable="false" prop="id" [flexGrow]="2">
<ng-template let-row="row" let-rowIndex="rowIndex" ngx-datatable-cell-template>
- <div *ngIf="hoveredIndex == rowIndex" style="margin-top:-5px; display: flex; justify-content: flex-start; align-items: center;">
-
- <button mat-icon-button *ngIf="row.submittedUuid" pTooltip="View submitted" tooltipPosition="top" (click)="viewSubmitted(row)" data-tests-id="viewSubmitted">
- <img src="{{imgBase}}/icon_submitted.svg" style="object-fit: contain; width:18px; height: 18px;" alt="icon_submitted">
- </button>
-
- <button *ngIf="checkCanCreate();" mat-icon-button data-tests-id="editMC" (click)="checkTableItemHoverCondition(row) && editTableItem(row)"
- [ngClass]="{'ngx-datatable-monitoring-name': checkTableItemHoverCondition(row)}" pTooltip="Edit"
- tooltipPosition="top">
- <span style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; color:#5A5A5A;"
- [innerHTML]="'edit-3' | feather:18"></span>
- </button>
-
- <div *ngIf="checkCanCreate();">
- <button mat-icon-button *ngIf="row.submittedUuid != null && checkReverted(row)" pTooltip="Revert" data-tests-id="revertMC"
- tooltipPosition="top" (click)="checkTableItemHoverCondition(row) && revertMcDialog(row)">
- <img src="{{imgBase}}/icon_revert.svg" style="object-fit: contain; width:18px; height: 18px;" alt="icon_revert">
- </button>
+ <div class="activeBtnWrapper">
+ <div class="activeBtn" *ngIf="hoveredIndex == rowIndex">
+
+ <button mat-icon-button *ngIf="row.submittedUuid" pTooltip="View submitted" tooltipPosition="top" (click)="viewSubmitted(row)" data-tests-id="viewSubmitted">
+ <img src="{{imgBase}}/icon_submitted.svg" style="object-fit: contain; width:18px; height: 18px;" alt="icon_submitted">
+ </button>
+
+ <button *ngIf="checkCanCreate();" mat-icon-button data-tests-id="editMC" (click)="checkTableItemHoverCondition(row) && editTableItem(row)"
+ [ngClass]="{'ngx-datatable-monitoring-name': checkTableItemHoverCondition(row)}" pTooltip="Edit"
+ tooltipPosition="top">
+ <span style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; color:#5A5A5A;"
+ [innerHTML]="'edit-3' | feather:18"></span>
+ </button>
+
+ <div *ngIf="checkCanCreate();">
+ <button mat-icon-button *ngIf="row.submittedUuid != null && checkReverted(row)" pTooltip="Revert" data-tests-id="revertMC"
+ tooltipPosition="top" (click)="checkTableItemHoverCondition(row) && revertMcDialog(row)">
+ <img src="{{imgBase}}/icon_revert.svg" style="object-fit: contain; width:18px; height: 18px;" alt="icon_revert">
+ </button>
+ </div>
+
+ <button *ngIf="checkCanCreate();" mat-icon-button data-tests-id="tableItemsButtonDelete"
+ pTooltip="Delete" tooltipPosition="top" (click)="deleteTableItem(row, rowIndex)">
+ <span style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; color:#5A5A5A;"
+ [innerHTML]="'trash-2' | feather:18"></span>
+ </button>
+
+ </div>
</div>
+ </ng-template>
+ </ngx-datatable-column>
- <button *ngIf="checkCanCreate();" mat-icon-button data-tests-id="tableItemsButtonDelete"
- pTooltip="Delete" tooltipPosition="top" (click)="deleteTableItem(row, rowIndex)">
- <span style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; color:#5A5A5A;"
- [innerHTML]="'trash-2' | feather:18"></span>
- </button>
-
+ <ngx-datatable-footer>
+ <ng-template ngx-datatable-footer-template let-rowCount="rowCount" let-pageSize="pageSize" let-selectedCount="selectedCount"
+ let-curPage="curPage" let-offset="offset" let-isVisible="isVisible">
+ <div class="page-count" *ngIf="showTable===true">
+ You have {{rowCount.toLocaleString()}} MC table elements
</div>
-
</ng-template>
- </ngx-datatable-column>
+ </ngx-datatable-footer>
</ngx-datatable>
diff --git a/public/src/app/home/home.component.scss b/public/src/app/home/home.component.scss
index fb2f5e4..523fc3b 100644
--- a/public/src/app/home/home.component.scss
+++ b/public/src/app/home/home.component.scss
@@ -73,6 +73,18 @@
color: #5a5a5a;
}
+.activeBtnWrapper .activeBtn {
+ opacity: 0;
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+ margin-top: -5px;
+}
+
+.activeBtnWrapper:hover .activeBtn {
+ opacity: 1;
+}
+
// .ngx-datatable.fixed-row
// .datatable-scroll
// .datatable-body-row
diff --git a/public/src/app/home/home.component.ts b/public/src/app/home/home.component.ts
index ad970f6..ef29043 100644
--- a/public/src/app/home/home.component.ts
+++ b/public/src/app/home/home.component.ts
@@ -10,6 +10,7 @@ import { PluginPubSub } from 'sdc-pubsub';
import { Store } from '../store/store';
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
import { environment } from '../../environments/environment';
+import { RuleEngineApiService } from '../rule-engine/api/rule-engine-api.service';
@Component({
selector: 'app-home',
@@ -33,6 +34,7 @@ export class HomeComponent {
private activeRoute: ActivatedRoute,
private route: Router,
private _restApi: RestApiService,
+ private _ruleApi: RuleEngineApiService,
private dialog: MatDialog,
public store: Store,
private toastr: ToastrService,
@@ -41,6 +43,8 @@ export class HomeComponent {
this.store.loader = true;
this.store.viewOnly = false;
this.store.mcName = '';
+ this._ruleApi.callUpdateTabIndex(-1);
+ this.store.setTabIndex(-1);
this.activeRoute.queryParams.subscribe(params => {
console.log('params: %o', params);
this.store.sdcParmas = params;
@@ -144,7 +148,6 @@ export class HomeComponent {
this.hoveredIndex = this.store.monitoringComponents.findIndex(
s => s === event.row
);
- console.log('selected : ');
}
revertMcDialog(item) {
diff --git a/public/src/app/import-rules/import-rules.component.html b/public/src/app/import-rules/import-rules.component.html
index e32d969..80ae78b 100644
--- a/public/src/app/import-rules/import-rules.component.html
+++ b/public/src/app/import-rules/import-rules.component.html
@@ -31,10 +31,10 @@
class="field-select">
<option [ngValue]="null" disabled>Select Mapping</option>
<optgroup label="Rules Configured">
- <option *ngFor="let target of advancedSetting" [hidden]="!target.isExist" [value]="target.name" data-tests-id="templateOptionsExist">{{target.name}}</option>
+ <option *ngFor="let target of store.advancedSetting" [hidden]="!target.isExist" [value]="target.name" data-tests-id="templateOptionsExist">{{target.name}}</option>
</optgroup>
<optgroup label="No Mapping Configuration">
- <option *ngFor="let target of advancedSetting" [hidden]="target.isExist" [value]="target.name" data-tests-id="templateOptionsNotExist">{{target.name}}</option>
+ <option *ngFor="let target of store.advancedSetting" [hidden]="target.isExist" [value]="target.name" data-tests-id="templateOptionsNotExist">{{target.name}}</option>
</optgroup>
</select>
</div>
@@ -53,7 +53,7 @@
<button mat-raised-button style="border: 1px solid #009fdb; color:#009fdb; font-size: 14px; font-family: 'Open Sans', sans-serif;text-align: center; height: 36px; width: 96px;">
Browse
</button>
- <input type="file" id="file" accept=".json" (change)="handleFileInput($event.target.files)">
+ <input type="file" id="importMC" accept=".json" #fileInput (change)="handleFileInput($event.target.files)">
</div>
</div>
diff --git a/public/src/app/import-rules/import-rules.component.ts b/public/src/app/import-rules/import-rules.component.ts
index b581dc6..7403518 100644
--- a/public/src/app/import-rules/import-rules.component.ts
+++ b/public/src/app/import-rules/import-rules.component.ts
@@ -1,6 +1,13 @@
-import { Component, EventEmitter, Output } from '@angular/core';
+import {
+ Component,
+ EventEmitter,
+ Output,
+ ViewChild,
+ ElementRef
+} from '@angular/core';
import { Store } from '../store/store';
import { RuleEngineApiService } from '../rule-engine/api/rule-engine-api.service';
+import { ToastrService } from 'ngx-toastr';
@Component({
selector: 'app-import-rules',
@@ -11,12 +18,16 @@ export class ImportRulesComponent {
fileToUpload: File = null;
fileName = '';
mappingTarget: string;
- advancedSetting: Array<any>;
tabName: string;
isGroup = false;
@Output() refrashRuleList = new EventEmitter();
+ @ViewChild('fileInput') fileInput: ElementRef;
- constructor(public _ruleApi: RuleEngineApiService, public store: Store) {
+ constructor(
+ public _ruleApi: RuleEngineApiService,
+ private toastr: ToastrService,
+ public store: Store
+ ) {
this._ruleApi.tabIndex
// .filter(index => { if (index >= 0) { const tabName =
// this.store.cdump.nodes[index].name; console.log('tab name:', tabName); if
@@ -30,20 +41,20 @@ export class ImportRulesComponent {
this.tabName.toLowerCase().includes('highlandpark') ||
this.tabName.toLowerCase().includes('hp')
) {
- this.advancedSetting = this.store.tabsProperties[index].filter(
- item => {
- if (
- !(
- item.hasOwnProperty('constraints') &&
- item.value !== undefined &&
- !item.value.includes('get_input')
- )
- ) {
- return item;
- }
+ this.store.advancedSetting = this.store.tabsProperties[
+ index
+ ].filter(item => {
+ if (
+ !(
+ item.hasOwnProperty('constraints') &&
+ item.value !== undefined &&
+ !item.value.includes('get_input')
+ )
+ ) {
+ return item;
}
- );
- this.mappingTarget = this.advancedSetting[0].name;
+ });
+ this.mappingTarget = this.store.advancedSetting[0].name;
this._ruleApi.setParams({
userId: this.store.sdcParmas.userId,
@@ -65,7 +76,7 @@ export class ImportRulesComponent {
'generateMappingRulesFileName response: ',
response
);
- this.advancedSetting.forEach(element => {
+ this.store.advancedSetting.forEach(element => {
if (response.includes(element.name)) {
element.isExist = true;
} else {
@@ -73,7 +84,7 @@ export class ImportRulesComponent {
}
});
});
- console.log('advancedSetting', this.advancedSetting);
+ console.log('advancedSetting', this.store.advancedSetting);
}
}
});
@@ -93,48 +104,61 @@ export class ImportRulesComponent {
}
handleFileInput(files: FileList) {
- this.store.loader = true;
- this.fileToUpload = files.item(0);
- console.log('file to load:', this.fileToUpload);
- this.fileName = this.fileToUpload !== null ? this.fileToUpload.name : '';
const reader = new FileReader();
- reader.readAsText(this.fileToUpload, 'UTF-8');
- reader.onload = () => {
- console.log(reader.result);
- this._ruleApi
- .getLatestMcUuid({
- contextType: this.store.sdcParmas.contextType,
- serviceUuid: this.store.sdcParmas.uuid,
- vfiName: this.store.vfiName,
- vfcmtUuid: this.store.mcUuid
- })
- .subscribe(
- res => {
- this.store.mcUuid = res.uuid;
- if (
- this.tabName.toLowerCase().includes('highlandpark') ||
- this.tabName.toLowerCase().includes('hp')
- ) {
- this.isGroup = true;
+ if (files && files.length > 0) {
+ this.store.loader = true;
+ this.fileToUpload = files.item(0);
+ console.log('file to load:', this.fileToUpload);
+ this.fileName = this.fileToUpload !== null ? this.fileToUpload.name : '';
+ reader.readAsText(this.fileToUpload, 'UTF-8');
+ reader.onload = () => {
+ console.log(reader.result);
+ this._ruleApi
+ .getLatestMcUuid({
+ contextType: this.store.sdcParmas.contextType,
+ serviceUuid: this.store.sdcParmas.uuid,
+ vfiName: this.store.vfiName,
+ vfcmtUuid: this.store.mcUuid
+ })
+ .subscribe(
+ res => {
+ this.store.mcUuid = res.uuid;
+ if (
+ this.tabName.toLowerCase().includes('highlandpark') ||
+ this.tabName.toLowerCase().includes('hp')
+ ) {
+ this.isGroup = true;
+ }
+ this._ruleApi
+ .importRules(reader.result, res.uuid, this.isGroup)
+ .subscribe(
+ response => {
+ console.log('success import', response);
+ this.toastr.success('', 'success import');
+ this.store.expandImports[this.store.tabIndex] = false;
+ this.clearFile();
+ this.store.loader = false;
+ this._ruleApi.callUpdateTabIndex(this.store.tabIndex);
+ },
+ error => {
+ this.notifyError(error);
+ this.clearFile();
+ }
+ );
+ },
+ error => {
+ this.notifyError(error);
+ this.clearFile();
}
- this._ruleApi
- .importRules(reader.result, res.uuid, this.isGroup)
- .subscribe(
- response => {
- console.log('success import', response);
- this.store.expandImports[this.store.tabIndex] = false;
- this.store.loader = false;
- this._ruleApi.callUpdateTabIndex(this.store.tabIndex);
- },
- error => {
- this.notifyError(error);
- }
- );
- },
- error => {
- this.notifyError(error);
- }
- );
- };
+ );
+ };
+ } else {
+ this.clearFile();
+ }
+ }
+
+ clearFile() {
+ this.fileInput.nativeElement.value = '';
+ this.fileName = '';
}
}
diff --git a/public/src/app/main/main.component.html b/public/src/app/main/main.component.html
index 182ed9c..10d86e2 100644
--- a/public/src/app/main/main.component.html
+++ b/public/src/app/main/main.component.html
@@ -39,10 +39,9 @@
</button>
<div *ngIf="this.store.isEditMode" style="display: flex;">
- <button mat-icon-button (click)="saveCDUMP()" [disabled]="!store.cdumpIsDirty || store.viewOnly" data-tests-id="save-btn">
+ <button mat-icon-button (click)="saveCDUMP()" [disabled]="!store.cdumpIsDirty || store.viewOnly" data-tests-id="save-btn" style="margin-right: 10px;">
<span style="width: 100%;
height: 100%;
- padding-right: 20px;
display: flex;
justify-content: center;
align-items: center;"
diff --git a/public/src/app/main/main.component.ts b/public/src/app/main/main.component.ts
index 8ba0d1f..f4b76bc 100644
--- a/public/src/app/main/main.component.ts
+++ b/public/src/app/main/main.component.ts
@@ -56,7 +56,7 @@ export class MainComponent {
success => {
console.log(success);
this.store.mcUuid = success.vfcmt.uuid;
- this.store.generalflow = '';
+ this.store.generalflow = 'edit';
this.store.mcName = success.vfcmt.name;
this.store.flowType = success.cdump.flowType;
console.log(this.cleanProperty(success));
@@ -119,7 +119,6 @@ export class MainComponent {
this.location.path();
// this.location.go();
this.store.mcUuid = success.vfcmt.uuid;
- this.store.generalflow = '';
this.store.mcName = success.vfcmt.name;
console.log(this.cleanProperty(success));
this.store.cdump = success.cdump;
diff --git a/public/src/app/revert-dialog/revert-dialog.component.ts b/public/src/app/revert-dialog/revert-dialog.component.ts
index 9cd7a7d..7ae93b4 100644
--- a/public/src/app/revert-dialog/revert-dialog.component.ts
+++ b/public/src/app/revert-dialog/revert-dialog.component.ts
@@ -37,7 +37,7 @@ export class RevertDialogComponent {
success => {
this.store.monitoringComponents = this.store.monitoringComponents.map(
item => {
- if (item.invariantUuid === success.invariantUuid) {
+ if (item.invariantUUid === success.invariantUUid) {
item = success;
}
return item;
diff --git a/public/src/app/rule-engine/action-list/action-list.component.html b/public/src/app/rule-engine/action-list/action-list.component.html
index c7eac9f..201dba0 100644
--- a/public/src/app/rule-engine/action-list/action-list.component.html
+++ b/public/src/app/rule-engine/action-list/action-list.component.html
@@ -107,10 +107,11 @@
</button>
<button mat-icon-button class='button-remove' [disabled]="store.viewOnly" (click)="removeAction(action)" data-tests-id="deleteAction">
- <mat-icon>delete</mat-icon>
+ <span style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
+ [innerHTML]="'trash-2' | feather:20"></span>
</button>
</div>
- </div>
+ </div>
</li>
</ul>
</div>
diff --git a/public/src/app/rule-engine/action-list/action-list.component.ts b/public/src/app/rule-engine/action-list/action-list.component.ts
index f8fd6dd..466b6a9 100644
--- a/public/src/app/rule-engine/action-list/action-list.component.ts
+++ b/public/src/app/rule-engine/action-list/action-list.component.ts
@@ -407,6 +407,7 @@ export class ActionListComponent implements AfterViewInit {
// clear temp copy rule.
this.clearCopyRuleFromList();
// then update the rule list and sync with server
+ this.updateTaregtListExisiting();
this.store.updateRuleInList(response);
this._ruleApi.callUpdateVersionLock();
this.store.loader = false;
@@ -424,6 +425,25 @@ export class ActionListComponent implements AfterViewInit {
}
}
+ updateTaregtListExisiting() {
+ this._ruleApi
+ .generateMappingRulesFileName(
+ this.store.ruleListExistParams.nodeName,
+ this.store.ruleListExistParams.nodeId,
+ this.store.ruleListExistParams.vfcmtUuid
+ )
+ .subscribe(response => {
+ console.log('generateMappingRulesFileName response: ', response);
+ this.store.advancedSetting.forEach(element => {
+ if (response.includes(element.name)) {
+ element.isExist = true;
+ } else {
+ element.isExist = false;
+ }
+ });
+ });
+ }
+
private clearCopyRuleFromList() {
this.store.ruleList = this.store.ruleList.filter(item => item.uid !== '');
}
@@ -452,6 +472,7 @@ export class ActionListComponent implements AfterViewInit {
// clear temp copy rule.
this.clearCopyRuleFromList();
// then update the rule list and sync with server
+ this.updateTaregtListExisiting();
this.store.updateRuleInList(response);
this._ruleApi.callUpdateVersionLock();
this.uid = response.uid;
diff --git a/public/src/app/rule-engine/action/action.component.html b/public/src/app/rule-engine/action/action.component.html
index f439c5c..21f03b1 100644
--- a/public/src/app/rule-engine/action/action.component.html
+++ b/public/src/app/rule-engine/action/action.component.html
@@ -17,7 +17,7 @@
<span class="label" style="padding: 0 5px; width: 100px;">
Start Value
</span>
- <input required class="input-text" [readonly]="store.viewOnly" data-tests-id="startValue" name="title"
+ <input required class="input-text" [readonly]="store.viewOnly" data-tests-id="startValue" name="startValue"
[(ngModel)]="action.stringTransform.startValue" type="text" placeholder="Select start value">
</div>
</div>
@@ -34,7 +34,7 @@
<span class="label" style="padding: 0 5px; width: 100px;">
Target case
</span>
- <input required class="input-text" [readonly]="store.viewOnly" data-tests-id="targetCase" name="title"
+ <input required class="input-text" [readonly]="store.viewOnly" data-tests-id="targetCase" name="targetCase"
[(ngModel)]="action.stringTransform.targetCase" type="text" placeholder="Select target case">
</div>
</div>
@@ -162,7 +162,8 @@
<button mat-icon-button class="button-remove" [ngStyle]="hoveredIndex === index ? {'opacity':'1'} : {'opacity':'0'}"
(click)="removeSearchField(index)" *ngIf="action.search.enrich.fields.length > 1" style="box-shadow: none; height: 24px; width: 24px; display:flex"
data-tests-id="btnDelete" [disabled]="store.viewOnly">
- <mat-icon class="md-24">delete</mat-icon>
+ <span style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
+ [innerHTML]="'trash-2' | feather:20"></span>
</button>
</div>
@@ -217,7 +218,8 @@
<button mat-icon-button data-tests-id="btn-remove-row" [ngStyle]="hoveredIndex === index ? {'opacity':'1'} : {'opacity':'0'}"
class="button-remove" (click)="removeSearchUpdatesRow(index)" *ngIf="action.search.updates.length > 1" [disabled]="store.viewOnly"
style="height: 24px; width: 24px; display:flex; box-shadow: none;">
- <mat-icon class="md-24">delete</mat-icon>
+ <span style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
+ [innerHTML]="'trash-2' | feather:20"></span>
</button>
</th>
</tr>
@@ -421,7 +423,8 @@
<th style="height: 30px; display: flex; align-items: baseline;">
<button mat-icon-button data-tests-id="btn-remove-row" [ngStyle]="hoveredIndex === index ? {'opacity':'1'} : {'opacity':'0'}"
class="button-remove" (click)="removeMapRow(index)" *ngIf="action.map.values.length > 1" style="height: 24px; width: 24px; display:flex; box-shadow: none;" [disabled]="store.viewOnly">
- <mat-icon class="md-24">delete</mat-icon>
+ <span style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
+ [innerHTML]="'trash-2' | feather:20"></span>
</button>
</th>
</tr>
@@ -433,7 +436,6 @@
<div style="display: flex; align-items: center;">
<button mat-mini-fab color="primary" (click)="addMapRow()" data-tests-id="btn-add-row" style="height: 16px; width: 16px; display:flex; box-shadow: none;" [disabled]="store.viewOnly">
<span style="padding-left: 2px; display: flex; justify-content: center; align-items: center" [innerHTML]="'plus' | feather:12"></span>
- <!-- <mat-icon>add</mat-icon> -->
</button>
<span style="color: #009FDB; display: flex; justify-content: center; padding-left: 6px">Add Row</span>
</div>
@@ -447,7 +449,7 @@
align-items: center;"
[innerHTML]="'download' | feather:20"></span>
</div>
- <input type="file" id="file" accept=".csv" (change)="handleFileInput($event.target.files)">
+ <input type="file" id="file" #csvInput [disabled]="store.viewOnly" accept=".csv" (change)="handleFileInput($event.target.files)">
</div>
</div>
</div>
diff --git a/public/src/app/rule-engine/action/action.component.ts b/public/src/app/rule-engine/action/action.component.ts
index dfdb83f..380ff43 100644
--- a/public/src/app/rule-engine/action/action.component.ts
+++ b/public/src/app/rule-engine/action/action.component.ts
@@ -4,7 +4,8 @@ import {
Input,
OnInit,
ViewChild,
- AfterViewInit
+ AfterViewInit,
+ ElementRef
} from '@angular/core';
// import { Copy } from "../model";
import { Http, Response, Headers, RequestOptions } from '@angular/http';
@@ -17,6 +18,7 @@ import * as Papa from 'papaparse';
import { metricData } from './metric.data';
import { Store } from '../../store/store';
import { ToastrService } from 'ngx-toastr';
+import { toJS } from 'mobx';
@Component({
selector: 'app-action',
@@ -28,6 +30,7 @@ export class ActionComponent implements OnInit, AfterViewInit {
@ViewChild('from') fromInstance;
@ViewChild('target') targetInstance;
@ViewChild('actionFrm') actionFrm: NgForm;
+ @ViewChild('csvInput') fileInput: ElementRef;
highlight = 'black';
hoveredIndex;
fileToUpload: File = null;
@@ -42,12 +45,12 @@ export class ActionComponent implements OnInit, AfterViewInit {
ngAfterViewInit(): void {
console.log(this.action.id);
if (this.action.from !== undefined && this.action.from !== '') {
- console.log('Action %o', this.action);
this.fromInstance.updateMode(this.action.from);
}
if (this.action.target !== undefined && this.action.target !== '') {
this.targetInstance.updateMode(this.action);
}
+ console.log('Action %o', this.action);
}
updateFrom(data) {
@@ -93,34 +96,40 @@ export class ActionComponent implements OnInit, AfterViewInit {
this.action.search.updates.splice(index, 1);
}
- handleFileInput(files: FileList) {
- this.fileToUpload = files.item(0);
- console.log('file to load:', this.fileToUpload);
- this.fileName = this.fileToUpload !== null ? this.fileToUpload.name : '';
+ clearFile() {
+ this.fileInput.nativeElement.value = '';
+ this.fileName = '';
+ }
- this.store.loader = true;
- Papa.parse(this.fileToUpload, {
- complete: result => {
- if (result.data) {
- const mapConvert = result.data
- .slice(0, 300)
- .filter(item => item[0] !== undefined && item[1] !== undefined)
- .map(item => {
- console.log(`item 0: ${item[0]} item 1: ${item[1]}`);
- return {
- key: item[0].trim(),
- value: item[1].trim()
- };
- });
+ handleFileInput(files: FileList) {
+ if (files && files.length > 0) {
+ this.fileToUpload = files.item(0);
+ console.log('file to load:', this.fileToUpload);
+ this.fileName = this.fileToUpload !== null ? this.fileToUpload.name : '';
+ this.store.loader = true;
+ Papa.parse(this.fileToUpload, {
+ complete: result => {
+ if (result.data) {
+ const mapConvert = result.data
+ .slice(0, 300)
+ .filter(item => item[0] !== undefined && item[1] !== undefined)
+ .map(item => {
+ console.log(`item 0: ${item[0]} item 1: ${item[1]}`);
+ return {
+ key: item[0].trim(),
+ value: item[1].trim()
+ };
+ });
+ this.store.loader = false;
+ this.action.map.values = mapConvert;
+ }
+ },
+ error: (err, file) => {
this.store.loader = false;
- this.action.map.values = mapConvert;
+ console.log(`error: ${err}, in file ${file}`);
+ this.toastr.error('', err);
}
- },
- error: (err, file) => {
- this.store.loader = false;
- console.log(`error: ${err}, in file ${file}`);
- this.toastr.error('', err);
- }
- });
+ });
+ }
}
}
diff --git a/public/src/app/rule-engine/api/rule-engine-api.service.ts b/public/src/app/rule-engine/api/rule-engine-api.service.ts
index f19fd15..ed0d25c 100644
--- a/public/src/app/rule-engine/api/rule-engine-api.service.ts
+++ b/public/src/app/rule-engine/api/rule-engine-api.service.ts
@@ -25,7 +25,8 @@ export class RuleEngineApiService {
flowType: string;
editorData: Subject<any> = new Subject();
updateVersionLock: Subject<any> = new Subject();
- tabIndex: Subject<any> = new BehaviorSubject(-1);
+ currentTab: Subject<any> = new BehaviorSubject(-1);
+ tabIndex = this.currentTab.asObservable();
constructor(private http: Http) {
this.baseUrl = `${environment.apiBaseUrl}/rule-editor`;
@@ -171,9 +172,9 @@ export class RuleEngineApiService {
});
}
- deleteFilter() {
+ deleteFilter(vfcmtUuid) {
const deleteFilter = {
- vfcmtUuid: this.vfcmtUuid,
+ vfcmtUuid: vfcmtUuid,
dcaeCompLabel: this.dcaeCompName,
nid: this.nid,
configParam: this.configParam
@@ -271,6 +272,6 @@ export class RuleEngineApiService {
}
callUpdateTabIndex(index) {
- this.tabIndex.next(index);
+ this.currentTab.next(index);
}
}
diff --git a/public/src/app/rule-engine/condition/condition.component.html b/public/src/app/rule-engine/condition/condition.component.html
index 3a26823..e4a8775 100644
--- a/public/src/app/rule-engine/condition/condition.component.html
+++ b/public/src/app/rule-engine/condition/condition.component.html
@@ -59,8 +59,13 @@
<div *ngIf="!isFilter" style="display: flex; margin-left: auto;">
<div style="display: flex; align-items: center; padding: 0 25px;">
- <button mat-mini-fab color="primary" data-tests-id="addCondition" (click)="addConditional(tree, node)" style="height: 24px; width: 24px; display:flex; box-shadow: none;" [disabled]="store.viewOnly">
- <mat-icon class="material-icons md-18">add</mat-icon>
+ <button mat-mini-fab color="primary" data-tests-id="addCondition" (click)="addConditional(tree, node)" style="height: 16px; width: 16px; display:flex; box-shadow: none;align-items: center;justify-content: center;" [disabled]="store.viewOnly">
+ <span style="width: 100%;
+ color:white;
+ height: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;" [innerHTML]="'plus' | feather:12"></span>
</button>
<span class="btn-label">Add Condition
</span>
@@ -68,8 +73,13 @@
<div style="display: flex; align-items: center; padding: 0 25px;">
<button mat-mini-fab color="primary" data-tests-id="addConditionGroup" [disabled]="node.data.level === 2 || store.viewOnly" (click)="addConditionalGroup(tree, node)"
- style="height: 24px; width: 24px; display:flex; box-shadow: none;">
- <mat-icon class="material-icons md-18">add</mat-icon>
+ style="height: 16px; width: 16px; display:flex; box-shadow: none;align-items: center;justify-content: center;">
+ <span style="width: 100%;
+ color:white;
+ height: 100%;
+ display: flex;
+ justify-content: center;
+ align-items: center;" [innerHTML]="'plus' | feather:12"></span>
</button>
<span [style.color]="node.data.level === 2 ? '#a7a7a7' : '#009fdb' " [style.cursor]="node.data.level === 2 ? 'default' : 'pointer' "
class="btn-label">Add Condition Group
diff --git a/public/src/app/rule-engine/from/from.component.html b/public/src/app/rule-engine/from/from.component.html
index 0da7173..835946a 100644
--- a/public/src/app/rule-engine/from/from.component.html
+++ b/public/src/app/rule-engine/from/from.component.html
@@ -52,7 +52,8 @@
<button mat-icon-button class="button-remove" [ngStyle]="hoveredIndex === index ? {'opacity':'1'} : {'opacity':'0'}" (click)="removeFromInput(index)"
*ngIf="from.values.length > 1" style="box-shadow: none; height: 24px; width: 24px; display:flex" data-tests-id="btnDelete">
- <mat-icon class="md-24">delete</mat-icon>
+ <span style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
+ [innerHTML]="'trash-2' | feather:20"></span>
</button>
</div>
@@ -81,7 +82,8 @@
<button mat-icon-button class="button-remove" [ngStyle]="hoveredIndex === index ? {'opacity':'1'} : {'opacity':'0'}" (click)="removeFromInput(index)"
*ngIf="from.values.length > 1" style="box-shadow: none; height: 24px; width: 24px; display:flex" data-tests-id="btnDelete">
- <mat-icon class="md-24">delete</mat-icon>
+ <span style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
+ [innerHTML]="'trash-2' | feather:20"></span>
</button>
</div>
@@ -112,7 +114,8 @@
<button mat-icon-button class="button-remove" [ngStyle]="hoveredIndex === index ? {'opacity':'1'} : {'opacity':'0'}" (click)="removeFromInput(index)"
*ngIf="from.values.length > 2" style="box-shadow: none; height: 24px; width: 24px; display:flex" data-tests-id="btnDelete">
- <mat-icon class="md-24">delete</mat-icon>
+ <span style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
+ [innerHTML]="'trash-2' | feather:20"></span>
</button>
</div>
@@ -122,7 +125,6 @@
<button mat-mini-fab color="primary" (click)="addFromInput()" style="box-shadow: none; height: 16px; width: 16px; display:flex"
data-tests-id="btnAddInput">
<span style="padding-left: 2px; display: flex; justify-content: center; align-items: center" [innerHTML]="'plus' | feather:12"></span>
- <!-- <mat-icon>add</mat-icon> -->
</button>
<span style="color: #009FDB; display: flex; justify-content: center; padding-top: 1px; padding-left: 6px;">Add input</span>
</div>
diff --git a/public/src/app/rule-engine/rule-list/rule-list.component.html b/public/src/app/rule-engine/rule-list/rule-list.component.html
index 5085563..b0d3d9b 100644
--- a/public/src/app/rule-engine/rule-list/rule-list.component.html
+++ b/public/src/app/rule-engine/rule-list/rule-list.component.html
@@ -26,7 +26,7 @@
<div class="field-label required" style="padding-right: 10px;">
Entry Phase
</div>
- <input name="entryPhase" [readonly]="store.viewOnly" required [(ngModel)]="entryPhase" class="field-text" style="width:250px;"
+ <input name="entryPhase" [readonly]="store.viewOnly" [(ngModel)]="entryPhase" class="field-text" style="width:250px;"
data-tests-id="entryPhase" />
</div>
@@ -53,7 +53,7 @@
</div>
</div>
<div *ngIf="ifStatement">
- <button mat-raised-button (click)="applyFilter()" color="primary" style="width: 113px;height: 36px;"
+ <button mat-raised-button (click)="applyFilter()" color="primary" style="width: 113px;height: 36px;" [disabled]="store.viewOnly"
data-tests-id="applyFilter">
Apply Filter
</button>
@@ -66,7 +66,7 @@
</div>
</div>
- <div *ngIf="targetSource && (tabName.toLowerCase().includes('highlandpark') || tabName.toLowerCase().includes('hp'))">
+ <div *ngIf="targetSource && versionType.selectedEvent && (tabName.toLowerCase().includes('highlandpark') || tabName.toLowerCase().includes('hp'))">
<div style="display: flex; align-items: baseline; width: 170px; height:35px; position:relative;" (mouseenter)="showBtnList = true"
(mouseleave)="showBtnList = false" data-tests-id="addGroup">
<div style="display: flex; align-items: center;">
@@ -111,8 +111,7 @@
</div>
<input type="text" name="phase" [(ngModel)]="item.phase" class="field-text" data-tests-id="phase" />
- <button mat-icon-button (click)="deleteGroup(item.groupId)" [disabled]="disableDeleteGroup(item.groupId)" [disabled]="store.viewOnly"
- class="gray" data-tests-id="deleteGroup">
+ <button mat-icon-button (click)="deleteGroup(item.groupId)" [disabled]="disableDeleteGroup(item.groupId) || store.viewOnly" class="gray" data-tests-id="deleteGroup">
<span style="width: 100%;
height: 100%;
display: flex;
@@ -144,7 +143,8 @@
</button>
<button (click)="removeItem(rule.uid, item.groupId)" data-tests-id="deleteRule" class="btn-list"
mat-icon-button [disabled]="disableDeleteGroup(item.groupId) && item.list.length === 1 || store.viewOnly">
- <mat-icon class="md-24">delete</mat-icon>
+ <span style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
+ [innerHTML]="'trash-2' | feather:20"></span>
</button>
</div>
</div>
@@ -176,7 +176,7 @@
align-items: center;"
[innerHTML]="'download' | feather:18"></span>
</button>
- <input type="file" id="file" accept=".json" (change)="handleImportCDAP($event.target.files, item.groupId, item.phase)">
+ <input type="file" id="file" accept=".json" [disabled]="store.viewOnly" #groupUpload (change)="handleImportCDAP($event.target.files, item.groupId, item.phase)">
<span style="color: #009FDB; display: flex; justify-content: center; ">Import phase</span>
</div>
</div>
@@ -188,7 +188,7 @@
<div *ngIf="targetSource && !(tabName.toLowerCase().includes('highlandpark') || tabName.toLowerCase().includes('hp'))">
- <div *ngIf="targetSource && store.ruleList.length === 0 && !(tabName.toLowerCase().includes('highlandpark') || tabName.toLowerCase().includes('hp'))"
+ <div *ngIf="targetSource && store.ruleList.length === 0 && versionType.selectedEvent && !(tabName.toLowerCase().includes('highlandpark') || tabName.toLowerCase().includes('hp'))"
style="margin: 30px 0; display: flex; align-items: center; justify-content: center; flex-direction: column;">
<div style="margin: 3em 0 2em 0;">
@@ -244,7 +244,8 @@
[innerHTML]="'copy' | feather:20"></span>
</button>
<button (click)="removeItem(item.uid, null)" data-tests-id="deleteRule" class="btn-list" mat-icon-button *ngIf="!store.viewOnly">
- <mat-icon class="md-24">delete</mat-icon>
+ <span style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
+ [innerHTML]="'trash-2' | feather:20"></span>
</button>
</div>
</div>
diff --git a/public/src/app/rule-engine/rule-list/rule-list.component.ts b/public/src/app/rule-engine/rule-list/rule-list.component.ts
index 6e3c877..1bbed87 100644
--- a/public/src/app/rule-engine/rule-list/rule-list.component.ts
+++ b/public/src/app/rule-engine/rule-list/rule-list.component.ts
@@ -1,4 +1,9 @@
-import { Component, ViewChild, ViewEncapsulation } from '@angular/core';
+import {
+ Component,
+ ViewChild,
+ ViewEncapsulation,
+ ElementRef
+} from '@angular/core';
import { MatDialog } from '@angular/material';
import { isEmpty } from 'lodash';
import { ToastrService } from 'ngx-toastr';
@@ -21,6 +26,7 @@ const primaryColor = '#009fdb';
})
export class RuleListComponent {
@ViewChild('versionEventType') versionType;
+ @ViewChild('groupUpload') fileInput: ElementRef;
error: Array<string>;
// list = new Array();
schema;
@@ -43,6 +49,7 @@ export class RuleListComponent {
// filter
ifStatement = false;
condition: any;
+ filterSave = false;
private errorHandler(error: any) {
this.store.loader = false;
@@ -82,14 +89,18 @@ export class RuleListComponent {
filterCheckbox() {
this.ifStatement = !this.ifStatement;
- if (!this.ifStatement && this.condition !== undefined) {
- this.deleteFilter();
+ if (!this.ifStatement) {
+ if (this.filterSave) {
+ this.deleteFilter();
+ } else {
+ this.condition = null;
+ }
}
}
removeConditionCheck(flag) {
this.ifStatement = flag;
- if (this.condition !== undefined) {
+ if (this.filterSave) {
this.deleteFilter();
}
}
@@ -107,10 +118,14 @@ export class RuleListComponent {
.subscribe(
res => {
this.store.mcUuid = res.uuid;
- this._ruleApi.deleteFilter().subscribe(
+ this._ruleApi.deleteFilter(res.uuid).subscribe(
response => {
- console.log('success import', response);
+ if (this.store.ruleList.length === 0) {
+ this.versionType.updateVersionTypeFlag(false);
+ }
this.condition = null;
+ this.filterSave = false;
+ this.ifStatement = false;
this.store.loader = false;
},
error => {
@@ -174,63 +189,76 @@ export class RuleListComponent {
}
}
+ clearFile() {
+ this.fileInput.nativeElement.value = '';
+ this.fileName = '';
+ }
+
handleImportCDAP(files: FileList, groupId, phaseName) {
this.error = null;
- this.store.loader = true;
- this.fileToUpload = files.item(0);
- console.log('file to load:', this.fileToUpload);
- this.fileName = this.fileToUpload !== null ? this.fileToUpload.name : '';
const reader = new FileReader();
- reader.readAsText(this.fileToUpload, 'UTF-8');
- reader.onload = () => {
- console.log(reader.result);
- this._ruleApi
- .getLatestMcUuid({
- contextType: this.store.sdcParmas.contextType,
- serviceUuid: this.store.sdcParmas.uuid,
- vfiName: this.store.vfiName,
- vfcmtUuid: this.store.mcUuid
- })
- .subscribe(
- res => {
- this.store.mcUuid = res.uuid;
- let data = '';
- try {
- data = JSON.parse(reader.result as any);
- const input = {
- version: this.versionType.selectedVersion,
- eventType: this.versionType.selectedEvent,
- groupId: groupId,
- phase: phaseName,
- payload: data
- };
- this._ruleApi.importPhase(input).subscribe(
- response => {
- console.log('success import', response);
- this.store.loader = false;
- this.store.updateRuleList(Object.values(response.rules));
- },
- error => {
- this.notifyError(error);
- }
- );
- } catch (e) {
- console.log(e);
- this.errorHandler({
- policyException: {
- messageId: 'Invalid JSON',
- text: 'Invalid JSON',
- variables: [],
- formattedErrorMessage: 'Invalid JSON'
- }
- });
+ if (files && files.length > 0) {
+ this.store.loader = true;
+ this.fileToUpload = files.item(0);
+ console.log('file to load:', this.fileToUpload);
+ this.fileName = this.fileToUpload !== null ? this.fileToUpload.name : '';
+ reader.readAsText(this.fileToUpload, 'UTF-8');
+ reader.onload = () => {
+ console.log(reader.result);
+ this._ruleApi
+ .getLatestMcUuid({
+ contextType: this.store.sdcParmas.contextType,
+ serviceUuid: this.store.sdcParmas.uuid,
+ vfiName: this.store.vfiName,
+ vfcmtUuid: this.store.mcUuid
+ })
+ .subscribe(
+ res => {
+ this.store.mcUuid = res.uuid;
+ let data = '';
+ try {
+ data = JSON.parse(reader.result as any);
+ const input = {
+ version: this.versionType.selectedVersion,
+ eventType: this.versionType.selectedEvent,
+ groupId: groupId,
+ phase: phaseName,
+ payload: data
+ };
+ this._ruleApi.importPhase(input).subscribe(
+ response => {
+ console.log('success import', response);
+ this.clearFile();
+ this.store.loader = false;
+ this.store.updateRuleList(Object.values(response.rules));
+ },
+ error => {
+ this.clearFile();
+ this.notifyError(error);
+ }
+ );
+ } catch (e) {
+ console.log(e);
+ this.clearFile();
+ this.errorHandler({
+ policyException: {
+ messageId: 'Invalid JSON',
+ text: 'Invalid JSON',
+ variables: [],
+ formattedErrorMessage: 'Invalid JSON'
+ }
+ });
+ }
+ },
+ error => {
+ this.clearFile();
+ this.errorHandler(error);
}
- },
- error => {
- this.errorHandler(error);
- }
- );
- };
+ );
+ };
+ } else {
+ this.clearFile();
+ }
}
addGroup(type) {
@@ -306,10 +334,12 @@ export class RuleListComponent {
this.entryPhase = response.entryPhase;
this.publishPhase = response.publishPhase;
this.condition = response.filter;
+ this.filterSave = response.filter !== undefined ? true : false;
this.ifStatement = this.condition == null ? false : true;
} else {
this.store.resetRuleList();
this.condition = null;
+ this.filterSave = false;
this.ifStatement = false;
this.versionType.updateVersionTypeFlag(false);
this.targetSource = null;
@@ -412,6 +442,7 @@ export class RuleListComponent {
.subscribe(
res => {
this.store.mcUuid = res.uuid;
+ this.filterSave = true;
let conditionData2server = null;
conditionData2server = this.convertConditionToServer(this.condition);
const newFilter = {
@@ -423,6 +454,9 @@ export class RuleListComponent {
};
this._ruleApi.applyFilter(newFilter).subscribe(
success => {
+ if (this.store.ruleList.length === 0) {
+ this.versionType.updateVersionTypeFlag(true);
+ }
this.store.loader = false;
},
error => {
@@ -549,7 +583,9 @@ export class RuleListComponent {
console.log(data);
this.versions = data.map(x => x.version);
this.metaData = data;
- this.versionType.updateVersionTypeFlag(false);
+ if (this.filterSave === false) {
+ this.versionType.updateVersionTypeFlag(false);
+ }
this.targetSource = null;
});
}
@@ -597,7 +633,9 @@ export class RuleListComponent {
this.store.isLeftVisible = false;
this._ruleApi.updateVersionLock.subscribe(() => {
- this.versionType.updateVersionTypeFlag(true);
+ if (this.filterSave === true) {
+ this.versionType.updateVersionTypeFlag(true);
+ }
});
}
}
diff --git a/public/src/app/rule-engine/version-type-select/version-type-select.component.html b/public/src/app/rule-engine/version-type-select/version-type-select.component.html
index fd3cfab..1539c49 100644
--- a/public/src/app/rule-engine/version-type-select/version-type-select.component.html
+++ b/public/src/app/rule-engine/version-type-select/version-type-select.component.html
@@ -10,10 +10,10 @@
style="height: 35px; padding: 0.3rem; border: 1px solid #d2d2d2; width:250px;" class="field-select">
<option [ngValue]="null" disabled>Select Mapping</option>
<optgroup label="Rules Configured">
- <option *ngFor="let target of advancedSetting" [hidden]="!target.isExist" [value]="target.name" data-tests-id="templateOptionsExist">{{target.name}}</option>
+ <option *ngFor="let target of store.advancedSetting" [hidden]="!target.isExist" [value]="target.name" data-tests-id="templateOptionsExist">{{target.name}}</option>
</optgroup>
<optgroup label="No Mapping Configuration">
- <option *ngFor="let target of advancedSetting" [hidden]="target.isExist" [value]="target.name" data-tests-id="templateOptionsNotExist">{{target.name}}</option>
+ <option *ngFor="let target of store.advancedSetting" [hidden]="target.isExist" [value]="target.name" data-tests-id="templateOptionsNotExist">{{target.name}}</option>
</optgroup>
</select>
</div>
@@ -45,23 +45,6 @@
| slice:0:selectedEvent.length-6}}</span>
</div>
- <!-- <div class="notifyId" style="display: flex; flex-direction:column; margin-right:10px;">
- <div class="pretty p-svg space-down">
- <input type="checkbox" name="notifyIdCheckbox" data-tests-id="notifyIdCheckbox" [checked]="notifyIdCheckbox" (change)="changeNotifyId()"
- />
- <div class="state">
- <svg class="svg svg-icon" viewBox="0 0 20 20">
- <path d="M7.629,14.566c0.125,0.125,0.291,0.188,0.456,0.188c0.164,0,0.329-0.062,0.456-0.188l8.219-8.221c0.252-0.252,0.252-0.659,0-0.911c-0.252-0.252-0.659-0.252-0.911,0l-7.764,7.763L4.152,9.267c-0.252-0.251-0.66-0.251-0.911,0c-0.252,0.252-0.252,0.66,0,0.911L7.629,14.566z"
- style="stroke: #009fdb; fill:#009fdb;"></path>
- </svg>
- <label style="margin-left: 5px;">Notify OID</label>
- </div>
- </div>
- <div *ngIf="notifyIdCheckbox" class="input-wrapper">
- <input type="text" ngModel required name="defaultInput" data-tests-id="defaultInput" [(ngModel)]="store.notifyIdValue" class="input">
- </div>
- </div> -->
-
</div>
</div>
diff --git a/public/src/app/rule-engine/version-type-select/version-type-select.component.ts b/public/src/app/rule-engine/version-type-select/version-type-select.component.ts
index 6869260..791919c 100644
--- a/public/src/app/rule-engine/version-type-select/version-type-select.component.ts
+++ b/public/src/app/rule-engine/version-type-select/version-type-select.component.ts
@@ -19,7 +19,6 @@ export class VersionTypeSelectComponent {
@Input() metaData;
@Output() nodesUpdated = new EventEmitter();
@Output() refrashRuleList = new EventEmitter();
- advancedSetting: Array<any>;
notifyIdCheckbox = false;
constructor(private _ruleApi: RuleEngineApiService, public store: Store) {
@@ -36,7 +35,7 @@ export class VersionTypeSelectComponent {
tabName.toLowerCase().includes('highlandpark') ||
tabName.toLowerCase().includes('hp')
) {
- this.advancedSetting = this.store.tabsProperties[index].filter(
+ this.store.advancedSetting = this.store.tabsProperties[index].filter(
item => {
if (
!(
@@ -49,7 +48,7 @@ export class VersionTypeSelectComponent {
}
}
);
- this.mappingTarget = this.advancedSetting[0].name;
+ this.mappingTarget = this.store.advancedSetting[0].name;
this._ruleApi
.generateMappingRulesFileName(
@@ -59,7 +58,7 @@ export class VersionTypeSelectComponent {
)
.subscribe(response => {
console.log('generateMappingRulesFileName response: ', response);
- this.advancedSetting.forEach(element => {
+ this.store.advancedSetting.forEach(element => {
if (response.includes(element.name)) {
element.isExist = true;
} else {
diff --git a/public/src/app/store/store.ts b/public/src/app/store/store.ts
index 5bd8c3e..a994e94 100644
--- a/public/src/app/store/store.ts
+++ b/public/src/app/store/store.ts
@@ -19,6 +19,7 @@ export class Store {
@observable loader = false;
@observable cdumpIsDirty = false;
@observable expandAdvancedSetting = [];
+ @observable advancedSetting = [];
@observable expandImports = [];
@observable generalflow;
@observable vfiName;
diff --git a/public/src/assets/images/icon_revert.svg b/public/src/assets/images/icon_revert.svg
new file mode 100644
index 0000000..800220f
--- /dev/null
+++ b/public/src/assets/images/icon_revert.svg
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="20px" height="18px" viewBox="0 0 20 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <!-- Generator: Sketch 50.2 (55047) - http://www.bohemiancoding.com/sketch -->
+ <title>icons/actions/download copy</title>
+ <desc>Created with Sketch.</desc>
+ <defs>
+ <path d="M10.8333333,8.83333333 L13.0833333,11.0833333 C13.4166667,11.4166667 13.4166667,11.9166667 13.0833333,12.25 C12.9166667,12.4166667 12.6666667,12.5 12.5,12.5 C12.3333333,12.5 12.0833333,12.4166667 11.9166667,12.25 L9.41666667,9.75 C9.25,9.58333333 9.16666667,9.41666667 9.16666667,9.16666667 L9.16666667,4.16666667 C9.16666667,3.66666667 9.5,3.33333333 10,3.33333333 C10.5,3.33333333 10.8333333,3.66666667 10.8333333,4.16666667 L10.8333333,8.83333333 Z M17.8364846,5.58223491 C19.4189846,9.91556825 17.0864846,14.6655682 12.7523179,16.1655682 C11.8364846,16.4989016 10.9189846,16.6655682 10.0031512,16.6655682 C6.58648456,16.6655682 3.33648456,14.4989016 2.08648456,11.0822349 C1.91898456,10.6655682 2.16898456,10.1655682 2.58565123,9.99890158 C3.0023179,9.83223491 3.50315123,10.0822349 3.6698179,10.4989016 C4.9198179,13.9989016 8.6698179,15.8322349 12.1689846,14.5822349 C13.9198179,13.9989016 15.2523179,12.7489016 16.0031512,11.1655682 C16.7523179,9.58223491 16.8364846,7.74890158 16.2531512,6.08223491 C15.6689846,4.33223491 14.4189846,2.99890158 12.8364846,2.24890158 C11.2531512,1.49890158 9.41898456,1.41556825 7.7523179,1.99890158 C6.83648456,2.33223491 5.91898456,2.91556825 5.2523179,3.58223491 L2.9198179,5.83223491 L5.83648456,5.83223491 C6.33565123,5.83223491 6.5023179,5.99890158 6.5023179,6.49890158 C6.5023179,6.99890158 6.1698179,7.33223491 5.66898456,7.33223491 L0.668984565,7.33223491 L0.502317898,7.33223491 L0.419817898,7.33223491 L0.336484565,7.24890158 C0.252317898,7.24890158 0.252317898,7.24890158 0.169817898,7.16556825 C0.0856512313,7.16556825 0.0856512313,7.08223491 0.0856512313,7.08223491 C0.0856512313,6.99890158 0.00315123127,6.99890158 0.00315123127,6.91556825 L0.00315123127,6.74890158 L0.00315123127,6.66556825 L0.00315123127,1.66556825 C0.00315123127,1.16556825 0.336484565,0.832234912 0.836484565,0.832234912 C1.33565123,0.832234912 1.6698179,1.16556825 1.6698179,1.66556825 L1.6698179,4.74890158 L4.1698179,2.41556825 C5.00315123,1.58223491 6.08565123,0.915568245 7.25315123,0.498901579 C9.33648456,-0.251098421 11.5864846,-0.167765088 13.5856512,0.832234912 C15.5864846,1.83223491 17.0864846,3.49890158 17.8364846,5.58223491 Z" id="path-1"></path>
+ </defs>
+ <g id="Vr7" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+ <g id="DCAE-1810-MC_monitoring_list" transform="translate(-1264.000000, -489.000000)">
+ <g id="icons/versio_bar/revert" transform="translate(1264.000000, 488.000000)">
+ <g id="color-/-gray-#5A5A5A-/-idle--Copy-20" transform="translate(0.833333, 1.666667)">
+ <mask id="mask-2" fill="white">
+ <use xlink:href="#path-1"></use>
+ </mask>
+ <use id="Mask" fill="#000000" xlink:href="#path-1"></use>
+ <g id="color/gray#5A5A5A" mask="url(#mask-2)" fill="#5A5A5A">
+ <g transform="translate(-0.833333, -1.666667)" id="Rectangle-3">
+ <rect x="0" y="0" width="25" height="25"></rect>
+ </g>
+ </g>
+ </g>
+ </g>
+ </g>
+ </g>
+</svg> \ No newline at end of file
diff --git a/public/src/assets/images/icon_submitted.svg b/public/src/assets/images/icon_submitted.svg
new file mode 100644
index 0000000..513cb77
--- /dev/null
+++ b/public/src/assets/images/icon_submitted.svg
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg width="13px" height="17px" viewBox="0 0 13 17" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <!-- Generator: Sketch 50.2 (55047) - http://www.bohemiancoding.com/sketch -->
+ <title>icon_delete copy 2</title>
+ <desc>Created with Sketch.</desc>
+ <defs>
+ <polygon id="path-1" points="0 0 12.6666667 0 12.6666667 15.8333333 0 15.8333333"></polygon>
+ </defs>
+ <g id="Vr7" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+ <g id="DCAE-1810-MC_monitoring_list" transform="translate(-1199.000000, -489.000000)">
+ <g id="icons/vid/testing-" transform="translate(1196.000000, 488.000000)">
+ <g id="Page-1" transform="translate(3.166667, 1.583333)">
+ <mask id="mask-2" fill="white">
+ <use xlink:href="#path-1"></use>
+ </mask>
+ <g id="Clip-2"></g>
+ <path d="M11.2592593,13.6742424 C11.2592593,14.1060606 10.9777778,14.3939394 10.5555556,14.3939394 L2.11111111,14.3939394 C1.68888889,14.3939394 1.40740741,14.1060606 1.40740741,13.6742424 L1.40740741,3.59848485 C1.40740741,3.16594697 1.68888889,2.87878788 2.11111111,2.87878788 L2.81481481,2.87878788 C2.81481481,3.67045455 3.44814815,4.31818182 4.22222222,4.31818182 L8.44444444,4.31818182 C9.21851852,4.31818182 9.85185185,3.67045455 9.85185185,2.87878788 L10.5555556,2.87878788 C10.9777778,2.87878788 11.2592593,3.16594697 11.2592593,3.59848485 L11.2592593,13.6742424 Z M4.22222222,2.15909091 L4.22222222,1.43939394 L8.44444444,1.43939394 L8.44444444,2.87878788 L4.22222222,2.87878788 L4.22222222,2.15909091 Z M9.07757161,6.57083333 C9.39423828,6.25416667 9.86923828,6.25416667 10.1859049,6.57083333 C10.5017799,6.8875 10.5017799,7.3625 10.1859049,7.67916667 L6.26429814,11.9077762 C6.10596481,12.0661096 5.86846481,12.1452762 5.71013148,12.1452762 C5.55179814,12.1452762 5.31429814,12.0661096 5.15596481,11.9077762 L3.40416667,10.2452762 C3.0875,9.92860957 3.0875,9.45360957 3.40416667,9.1369429 C3.72083333,8.82027624 4.19583333,8.82027624 4.5125,9.1369429 L5.71013148,10.2452762 L9.07757161,6.57083333 Z M9.85185185,1.43939394 C9.85185185,0.647007576 9.21851852,0 8.44444444,0 L4.22222222,0 C3.44814815,0 2.81481481,0.647007576 2.81481481,1.43939394 L2.11111111,1.43939394 C0.914814815,1.43939394 0,2.375 0,3.59848485 L0,13.6742424 C0,14.8970076 0.914814815,15.8333333 2.11111111,15.8333333 L10.5555556,15.8333333 C11.7518519,15.8333333 12.6666667,14.8970076 12.6666667,13.6742424 L12.6666667,3.59848485 C12.6666667,2.375 11.7518519,1.43939394 10.5555556,1.43939394 L9.85185185,1.43939394 Z" id="Combined-Shape" fill="#5A5A5A" mask="url(#mask-2)"></path>
+ </g>
+ </g>
+ </g>
+ </g>
+</svg> \ No newline at end of file
diff --git a/public/yarn.lock b/public/yarn.lock
index c6209bd..532f2a5 100644
--- a/public/yarn.lock
+++ b/public/yarn.lock
@@ -185,46 +185,6 @@
esutils "^2.0.2"
js-tokens "^3.0.0"
-"@bahmutov/add-typescript-to-cypress@^2.0.0":
- version "2.0.0"
- resolved "https://registry.yarnpkg.com/@bahmutov/add-typescript-to-cypress/-/add-typescript-to-cypress-2.0.0.tgz#5458b630d1d9d309b10941df8757bb59a5db2abf"
- dependencies:
- "@cypress/webpack-preprocessor" "1.1.3"
- am-i-a-dependency "1.1.2"
- chalk "2.3.0"
- debug "3.1.0"
- shelljs "0.8.0"
- terminal-banner "1.1.0"
- ts-loader "3.2.0"
-
-"@cypress/listr-verbose-renderer@0.4.1":
- version "0.4.1"
- resolved "https://registry.yarnpkg.com/@cypress/listr-verbose-renderer/-/listr-verbose-renderer-0.4.1.tgz#a77492f4b11dcc7c446a34b3e28721afd33c642a"
- dependencies:
- chalk "^1.1.3"
- cli-cursor "^1.0.2"
- date-fns "^1.27.2"
- figures "^1.7.0"
-
-"@cypress/webpack-preprocessor@1.1.3":
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/@cypress/webpack-preprocessor/-/webpack-preprocessor-1.1.3.tgz#ee216893714c6e89a171ff4a6ffa03893c308c78"
- dependencies:
- babel-core "6.26.0"
- babel-loader "7.1.2"
- babel-preset-env "1.6.0"
- babel-preset-react "6.24.1"
- bluebird "3.5.0"
- debug "3.1.0"
- lodash.clonedeep "4.5.0"
- webpack "3.6.0"
-
-"@cypress/xvfb@1.1.3":
- version "1.1.3"
- resolved "https://registry.yarnpkg.com/@cypress/xvfb/-/xvfb-1.1.3.tgz#6294a7d1feb751f12302248f2089fc534c4acb7f"
- dependencies:
- lodash.once "^4.1.1"
-
"@ng-select/ng-select@^0.26.2":
version "0.26.2"
resolved "https://registry.yarnpkg.com/@ng-select/ng-select/-/ng-select-0.26.2.tgz#4e3bbf3743294b7435868af48b1f4dd593ca4c58"
@@ -523,29 +483,6 @@
version "13.0.1"
resolved "https://registry.yarnpkg.com/@swimlane/ngx-datatable/-/ngx-datatable-13.0.1.tgz#6e949e19130b2054e2715d30d158751c4fbaa502"
-"@types/blob-util@1.3.3":
- version "1.3.3"
- resolved "https://registry.yarnpkg.com/@types/blob-util/-/blob-util-1.3.3.tgz#adba644ae34f88e1dd9a5864c66ad651caaf628a"
-
-"@types/bluebird@3.5.18":
- version "3.5.18"
- resolved "https://registry.yarnpkg.com/@types/bluebird/-/bluebird-3.5.18.tgz#6a60435d4663e290f3709898a4f75014f279c4d6"
-
-"@types/chai-jquery@1.1.35":
- version "1.1.35"
- resolved "https://registry.yarnpkg.com/@types/chai-jquery/-/chai-jquery-1.1.35.tgz#9a8f0a39ec0851b2768a8f8c764158c2a2568d04"
- dependencies:
- "@types/chai" "*"
- "@types/jquery" "*"
-
-"@types/chai@*":
- version "4.1.2"
- resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.1.2.tgz#f1af664769cfb50af805431c407425ed619daa21"
-
-"@types/chai@4.0.8":
- version "4.0.8"
- resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.0.8.tgz#d27600e9ba2f371e08695d90a0fe0408d89c7be7"
-
"@types/jasmine@*", "@types/jasmine@~2.8.3":
version "2.8.4"
resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-2.8.4.tgz#5528fb5e53f1b27594f81f18debb7eab8dc532cb"
@@ -560,26 +497,6 @@
version "22.2.0"
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-22.2.0.tgz#55ce83139f7ad1b48b414c3927746614c6963c0f"
-"@types/jquery@*":
- version "3.3.0"
- resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.3.0.tgz#6316ac20a1a13c5d521a2dc661befc7184f73f5b"
-
-"@types/jquery@3.2.16":
- version "3.2.16"
- resolved "https://registry.yarnpkg.com/@types/jquery/-/jquery-3.2.16.tgz#04419c404a3194350e7d3f339a90e72c88db3111"
-
-"@types/lodash@4.14.87":
- version "4.14.87"
- resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.87.tgz#55f92183b048c2c64402afe472f8333f4e319a6b"
-
-"@types/minimatch@3.0.1":
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.1.tgz#b683eb60be358304ef146f5775db4c0e3696a550"
-
-"@types/mocha@2.2.44":
- version "2.2.44"
- resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-2.2.44.tgz#1d4a798e53f35212fd5ad4d04050620171cd5b5e"
-
"@types/node@^6.0.46":
version "6.0.96"
resolved "https://registry.yarnpkg.com/@types/node/-/node-6.0.96.tgz#7bf0bf40d6ce51e93762cc47d010c8cc5ebb2179"
@@ -604,21 +521,6 @@
version "2.53.43"
resolved "https://registry.yarnpkg.com/@types/selenium-webdriver/-/selenium-webdriver-2.53.43.tgz#2de3d718819bc20165754c4a59afb7e9833f6707"
-"@types/sinon-chai@2.7.29":
- version "2.7.29"
- resolved "https://registry.yarnpkg.com/@types/sinon-chai/-/sinon-chai-2.7.29.tgz#4db01497e2dd1908b2bd30d1782f456353f5f723"
- dependencies:
- "@types/chai" "*"
- "@types/sinon" "*"
-
-"@types/sinon@*":
- version "4.1.3"
- resolved "https://registry.yarnpkg.com/@types/sinon/-/sinon-4.1.3.tgz#2ee25e0e302f31e78a945650a60029e08878eaf8"
-
-"@types/sinon@4.0.0":
- version "4.0.0"
- resolved "https://registry.yarnpkg.com/@types/sinon/-/sinon-4.0.0.tgz#9a93ffa4ee1329e85166278a5ed99f81dc4c8362"
-
JSONStream@^1.0.3:
version "1.3.2"
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.2.tgz#c102371b6ec3a7cf3b847ca00c20bb0fce4c6dea"
@@ -716,7 +618,7 @@ airbnb-js-shims@^1.4.1:
string.prototype.padend "^3.0.0"
string.prototype.padstart "^3.0.0"
-ajv-keywords@^2.0.0, ajv-keywords@^2.1.0:
+ajv-keywords@^2.1.0:
version "2.1.1"
resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-2.1.1.tgz#617997fc5f60576894c435f940d819e135b80762"
@@ -731,7 +633,7 @@ ajv@^4.9.1:
co "^4.6.0"
json-stable-stringify "^1.0.1"
-ajv@^5.0.0, ajv@^5.1.0, ajv@^5.1.5, ajv@~5.5.1:
+ajv@^5.0.0, ajv@^5.1.0, ajv@~5.5.1:
version "5.5.2"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-5.5.2.tgz#73b5eeca3fab653e3d3f9422b341ad42205dc965"
dependencies:
@@ -760,10 +662,6 @@ alphanum-sort@^1.0.1, alphanum-sort@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/alphanum-sort/-/alphanum-sort-1.0.2.tgz#97a1119649b211ad33691d9f9f486a8ec9fbe0a3"
-am-i-a-dependency@1.1.2:
- version "1.1.2"
- resolved "https://registry.yarnpkg.com/am-i-a-dependency/-/am-i-a-dependency-1.1.2.tgz#f9d3422304d6f642f821e4c407565035f6167f1f"
-
amdefine@>=0.0.4:
version "1.0.1"
resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5"
@@ -1034,12 +932,6 @@ async-limiter@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8"
-async@2.1.4:
- version "2.1.4"
- resolved "https://registry.yarnpkg.com/async/-/async-2.1.4.tgz#2d2160c7788032e4dd6cbe2502f1f9a2c8f6cde4"
- dependencies:
- lodash "^4.14.0"
-
async@^1.4.0, async@^1.5.2:
version "1.5.2"
resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a"
@@ -1123,7 +1015,7 @@ babel-code-frame@6.26.0, babel-code-frame@^6.22.0, babel-code-frame@^6.26.0:
esutils "^2.0.2"
js-tokens "^3.0.2"
-babel-core@6.26.0, babel-core@^6.0.0, babel-core@^6.24.1, babel-core@^6.26.0:
+babel-core@^6.0.0, babel-core@^6.24.1, babel-core@^6.26.0:
version "6.26.0"
resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.26.0.tgz#af32f78b31a6fcef119c87b0fd8d9753f03a0bb8"
dependencies:
@@ -1293,14 +1185,6 @@ babel-jest@^22.4.1:
babel-plugin-istanbul "^4.1.5"
babel-preset-jest "^22.4.1"
-babel-loader@7.1.2:
- version "7.1.2"
- resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.1.2.tgz#f6cbe122710f1aa2af4d881c6d5b54358ca24126"
- dependencies:
- find-cache-dir "^1.0.0"
- loader-utils "^1.0.2"
- mkdirp "^0.5.1"
-
babel-loader@^7.0.0:
version "7.1.3"
resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-7.1.3.tgz#ff5b440da716e9153abb946251a9ab7670037b16"
@@ -1718,41 +1602,6 @@ babel-plugin-transform-strict-mode@^6.24.1:
babel-runtime "^6.22.0"
babel-types "^6.24.1"
-babel-preset-env@1.6.0:
- version "1.6.0"
- resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.6.0.tgz#2de1c782a780a0a5d605d199c957596da43c44e4"
- dependencies:
- babel-plugin-check-es2015-constants "^6.22.0"
- babel-plugin-syntax-trailing-function-commas "^6.22.0"
- babel-plugin-transform-async-to-generator "^6.22.0"
- babel-plugin-transform-es2015-arrow-functions "^6.22.0"
- babel-plugin-transform-es2015-block-scoped-functions "^6.22.0"
- babel-plugin-transform-es2015-block-scoping "^6.23.0"
- babel-plugin-transform-es2015-classes "^6.23.0"
- babel-plugin-transform-es2015-computed-properties "^6.22.0"
- babel-plugin-transform-es2015-destructuring "^6.23.0"
- babel-plugin-transform-es2015-duplicate-keys "^6.22.0"
- babel-plugin-transform-es2015-for-of "^6.23.0"
- babel-plugin-transform-es2015-function-name "^6.22.0"
- babel-plugin-transform-es2015-literals "^6.22.0"
- babel-plugin-transform-es2015-modules-amd "^6.22.0"
- babel-plugin-transform-es2015-modules-commonjs "^6.23.0"
- babel-plugin-transform-es2015-modules-systemjs "^6.23.0"
- babel-plugin-transform-es2015-modules-umd "^6.23.0"
- babel-plugin-transform-es2015-object-super "^6.22.0"
- babel-plugin-transform-es2015-parameters "^6.23.0"
- babel-plugin-transform-es2015-shorthand-properties "^6.22.0"
- babel-plugin-transform-es2015-spread "^6.22.0"
- babel-plugin-transform-es2015-sticky-regex "^6.22.0"
- babel-plugin-transform-es2015-template-literals "^6.22.0"
- babel-plugin-transform-es2015-typeof-symbol "^6.23.0"
- babel-plugin-transform-es2015-unicode-regex "^6.22.0"
- babel-plugin-transform-exponentiation-operator "^6.22.0"
- babel-plugin-transform-regenerator "^6.22.0"
- browserslist "^2.1.2"
- invariant "^2.2.2"
- semver "^5.3.0"
-
babel-preset-env@1.6.1, babel-preset-env@^1.6.0:
version "1.6.1"
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.6.1.tgz#a18b564cc9b9afdf4aae57ae3c1b0d99188e6f48"
@@ -2015,10 +1864,6 @@ blocking-proxy@0.0.5:
dependencies:
minimist "^1.2.0"
-bluebird@3.5.0:
- version "3.5.0"
- resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.0.tgz#791420d7f551eea2897453a8a77653f96606d67c"
-
bluebird@^3.3.0, bluebird@^3.4.7, bluebird@^3.5.0, bluebird@^3.5.1:
version "3.5.1"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9"
@@ -2274,10 +2119,6 @@ bser@^2.0.0:
dependencies:
node-int64 "^0.4.0"
-buffer-crc32@~0.2.3:
- version "0.2.13"
- resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242"
-
buffer-from@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.0.tgz#87fcaa3a298358e0ade6e442cfce840740d1ad04"
@@ -2492,15 +2333,7 @@ chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
strip-ansi "^3.0.0"
supports-color "^2.0.0"
-chalk@2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.1.0.tgz#ac5becf14fa21b99c6c92ca7a7d7cfd5b17e743e"
- dependencies:
- ansi-styles "^3.1.0"
- escape-string-regexp "^1.0.5"
- supports-color "^4.0.0"
-
-chalk@2.3.0, chalk@^2.0.0, chalk@^2.3.0:
+chalk@^2.0.0, chalk@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.0.tgz#b5ea48efc9c1793dccc9b4767c93914d3f2d52ba"
dependencies:
@@ -2528,10 +2361,6 @@ chardet@^0.4.0:
version "0.4.2"
resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.4.2.tgz#b5473b33dc97c424e5d98dc87d55d4d8a29c8bf2"
-check-more-types@2.24.0:
- version "2.24.0"
- resolved "https://registry.yarnpkg.com/check-more-types/-/check-more-types-2.24.0.tgz#1420ffb10fd444dcfc79b43891bbfffd32a84600"
-
chokidar@^1.4.1, chokidar@^1.4.2, chokidar@^1.6.0, chokidar@^1.7.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468"
@@ -2811,12 +2640,6 @@ commander@^2.12.1, commander@^2.9.0, commander@~2.13.0:
version "2.13.0"
resolved "https://registry.yarnpkg.com/commander/-/commander-2.13.0.tgz#6964bca67685df7c1f1430c584f07d7597885b9c"
-common-tags@1.4.0:
- version "1.4.0"
- resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.4.0.tgz#1187be4f3d4cf0c0427d43f74eef1f73501614c0"
- dependencies:
- babel-runtime "^6.18.0"
-
common-tags@^1.3.1, common-tags@^1.7.2:
version "1.7.2"
resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.7.2.tgz#24d9768c63d253a56ecff93845b44b4df1d52771"
@@ -3271,47 +3094,6 @@ cyclist@~0.2.2:
version "0.2.2"
resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-0.2.2.tgz#1b33792e11e914a2fd6d6ed6447464444e5fa640"
-cypress@^2.1.0:
- version "2.1.0"
- resolved "https://registry.yarnpkg.com/cypress/-/cypress-2.1.0.tgz#a8bd7d9b89c38a1e380db83b57d9bba0dbb95ba4"
- dependencies:
- "@cypress/listr-verbose-renderer" "0.4.1"
- "@cypress/xvfb" "1.1.3"
- "@types/blob-util" "1.3.3"
- "@types/bluebird" "3.5.18"
- "@types/chai" "4.0.8"
- "@types/chai-jquery" "1.1.35"
- "@types/jquery" "3.2.16"
- "@types/lodash" "4.14.87"
- "@types/minimatch" "3.0.1"
- "@types/mocha" "2.2.44"
- "@types/sinon" "4.0.0"
- "@types/sinon-chai" "2.7.29"
- bluebird "3.5.0"
- chalk "2.1.0"
- check-more-types "2.24.0"
- commander "2.11.0"
- common-tags "1.4.0"
- debug "3.1.0"
- extract-zip "1.6.6"
- fs-extra "4.0.1"
- getos "2.8.4"
- glob "7.1.2"
- is-ci "1.0.10"
- is-installed-globally "0.1.0"
- lazy-ass "1.6.0"
- listr "0.12.0"
- lodash "4.17.4"
- minimist "1.2.0"
- progress "1.1.8"
- ramda "0.24.1"
- request "2.81.0"
- request-progress "0.3.1"
- supports-color "5.1.0"
- tmp "0.0.31"
- url "0.11.0"
- yauzl "2.8.0"
-
d@1:
version "1.0.0"
resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f"
@@ -4252,7 +4034,7 @@ extract-text-webpack-plugin@^3.0.2:
schema-utils "^0.3.0"
webpack-sources "^1.0.1"
-extract-zip@1.6.6, extract-zip@^1.0.3:
+extract-zip@^1.0.3:
version "1.6.6"
resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.6.6.tgz#1290ede8d20d0872b429fd3f351ca128ec5ef85c"
dependencies:
@@ -4573,14 +4355,6 @@ fs-access@^1.0.0:
dependencies:
null-check "^1.0.0"
-fs-extra@4.0.1:
- version "4.0.1"
- resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.1.tgz#7fc0c6c8957f983f57f306a24e5b9ddd8d0dd880"
- dependencies:
- graceful-fs "^4.1.2"
- jsonfile "^3.0.0"
- universalify "^0.1.0"
-
fs-extra@4.0.3, fs-extra@^4.0.0, fs-extra@^4.0.2:
version "4.0.3"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-4.0.3.tgz#0d852122e5bc5beb453fb028e9c0c9bf36340c94"
@@ -4735,12 +4509,6 @@ get-value@^2.0.3, get-value@^2.0.6:
version "2.0.6"
resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28"
-getos@2.8.4:
- version "2.8.4"
- resolved "https://registry.yarnpkg.com/getos/-/getos-2.8.4.tgz#7b8603d3619c28e38cb0fe7a4f63c3acb80d5163"
- dependencies:
- async "2.1.4"
-
getpass@^0.1.1:
version "0.1.7"
resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa"
@@ -4838,12 +4606,6 @@ glob@^6.0.4:
once "^1.3.0"
path-is-absolute "^1.0.0"
-global-dirs@^0.1.0:
- version "0.1.1"
- resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445"
- dependencies:
- ini "^1.3.4"
-
global-modules@1.0.0, global-modules@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-1.0.0.tgz#6d770f0eb523ac78164d72b5e71a8877265cc3ea"
@@ -5559,12 +5321,6 @@ is-callable@^1.1.1, is-callable@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.3.tgz#86eb75392805ddc33af71c92a0eedf74ee7604b2"
-is-ci@1.0.10:
- version "1.0.10"
- resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.0.10.tgz#f739336b2632365061a9d48270cd56ae3369318e"
- dependencies:
- ci-info "^1.0.0"
-
is-ci@^1.0.10:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.1.0.tgz#247e4162e7860cebbdaf30b774d6b0ac7dcfe7a5"
@@ -5681,13 +5437,6 @@ is-glob@^4.0.0:
dependencies:
is-extglob "^2.1.1"
-is-installed-globally@0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/is-installed-globally/-/is-installed-globally-0.1.0.tgz#0dfd98f5a9111716dd535dda6492f67bf3d25a80"
- dependencies:
- global-dirs "^0.1.0"
- is-path-inside "^1.0.0"
-
is-my-json-valid@^2.12.4:
version "2.17.1"
resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.17.1.tgz#3da98914a70a22f0a8563ef1511a246c6fc55471"
@@ -6529,12 +6278,6 @@ jsonfile@^2.1.0:
optionalDependencies:
graceful-fs "^4.1.6"
-jsonfile@^3.0.0:
- version "3.0.1"
- resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-3.0.1.tgz#a5ecc6f65f53f662c4415c7675a0331d0992ec66"
- optionalDependencies:
- graceful-fs "^4.1.6"
-
jsonfile@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb"
@@ -6684,10 +6427,6 @@ labeled-stream-splicer@^2.0.0:
isarray "~0.0.1"
stream-splicer "^2.0.0"
-lazy-ass@1.6.0:
- version "1.6.0"
- resolved "https://registry.yarnpkg.com/lazy-ass/-/lazy-ass-1.6.0.tgz#7999655e8646c17f089fdd187d150d3324d54513"
-
lazy-cache@^1.0.3:
version "1.0.4"
resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e"
@@ -6802,19 +6541,6 @@ listr-silent-renderer@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/listr-silent-renderer/-/listr-silent-renderer-1.1.1.tgz#924b5a3757153770bf1a8e3fbf74b8bbf3f9242e"
-listr-update-renderer@^0.2.0:
- version "0.2.0"
- resolved "https://registry.yarnpkg.com/listr-update-renderer/-/listr-update-renderer-0.2.0.tgz#ca80e1779b4e70266807e8eed1ad6abe398550f9"
- dependencies:
- chalk "^1.1.3"
- cli-truncate "^0.2.1"
- elegant-spinner "^1.0.1"
- figures "^1.7.0"
- indent-string "^3.0.0"
- log-symbols "^1.0.2"
- log-update "^1.0.2"
- strip-ansi "^3.0.1"
-
listr-update-renderer@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/listr-update-renderer/-/listr-update-renderer-0.4.0.tgz#344d980da2ca2e8b145ba305908f32ae3f4cc8a7"
@@ -6837,27 +6563,6 @@ listr-verbose-renderer@^0.4.0:
date-fns "^1.27.2"
figures "^1.7.0"
-listr@0.12.0:
- version "0.12.0"
- resolved "https://registry.yarnpkg.com/listr/-/listr-0.12.0.tgz#6bce2c0f5603fa49580ea17cd6a00cc0e5fa451a"
- dependencies:
- chalk "^1.1.3"
- cli-truncate "^0.2.1"
- figures "^1.7.0"
- indent-string "^2.1.0"
- is-promise "^2.1.0"
- is-stream "^1.1.0"
- listr-silent-renderer "^1.1.1"
- listr-update-renderer "^0.2.0"
- listr-verbose-renderer "^0.4.0"
- log-symbols "^1.0.2"
- log-update "^1.0.2"
- ora "^0.2.3"
- p-map "^1.1.1"
- rxjs "^5.0.0-beta.11"
- stream-to-observable "^0.1.0"
- strip-ansi "^3.0.1"
-
listr@^0.13.0:
version "0.13.0"
resolved "https://registry.yarnpkg.com/listr/-/listr-0.13.0.tgz#20bb0ba30bae660ee84cc0503df4be3d5623887d"
@@ -6962,7 +6667,7 @@ lodash.camelcase@^4.3.0:
version "4.3.0"
resolved "https://registry.yarnpkg.com/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"
-lodash.clonedeep@4.5.0, lodash.clonedeep@^4.3.2, lodash.clonedeep@^4.5.0:
+lodash.clonedeep@^4.3.2, lodash.clonedeep@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
@@ -7010,10 +6715,6 @@ lodash.mergewith@^4.6.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.0.tgz#150cf0a16791f5903b8891eab154609274bdea55"
-lodash.once@^4.1.1:
- version "4.1.1"
- resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac"
-
lodash.pick@^4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3"
@@ -7030,14 +6731,14 @@ lodash.uniq@^4.5.0:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
-lodash@4.17.4, lodash@^4.0.0, lodash@^4.11.1, lodash@^4.15.0, lodash@^4.17.2, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.3.0, lodash@^4.5.0, lodash@~4.17.4:
- version "4.17.4"
- resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
-
lodash@^3.10.1, lodash@^3.5.0:
version "3.10.1"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
+lodash@^4.0.0, lodash@^4.11.1, lodash@^4.15.0, lodash@^4.17.2, lodash@^4.17.3, lodash@^4.17.4, lodash@^4.3.0, lodash@^4.5.0, lodash@~4.17.4:
+ version "4.17.4"
+ resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
+
lodash@^4.0.1, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.17.0, lodash@^4.17.5, lodash@^4.2.1:
version "4.17.5"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
@@ -7397,7 +7098,7 @@ minimist@0.0.8:
version "0.0.8"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
-minimist@1.2.0, minimist@^1.1.0, minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0:
+minimist@^1.1.0, minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
@@ -7481,14 +7182,18 @@ mobx-remotedev@^0.2.8:
remotedev "^0.2.7"
remotedev-utils "^0.1.4"
+mobx-utils@^5.0.0:
+ version "5.0.0"
+ resolved "https://registry.yarnpkg.com/mobx-utils/-/mobx-utils-5.0.0.tgz#384e805064c237b9a9446788a9e68278a3437610"
+
+mobx@4.3.0:
+ version "4.3.0"
+ resolved "https://registry.yarnpkg.com/mobx/-/mobx-4.3.0.tgz#50a5e63fd0197a83c68166ff83ada45b65c859f8"
+
mobx@^3.6.2:
version "3.6.2"
resolved "https://registry.yarnpkg.com/mobx/-/mobx-3.6.2.tgz#fb9f5ff5090539a1ad54e75dc4c098b602693320"
-mobx@^4.2.0:
- version "4.2.0"
- resolved "https://registry.yarnpkg.com/mobx/-/mobx-4.2.0.tgz#ee0b0a4f3da2f4776225046ab208ac329a4841d4"
-
mocha-rp-reporter@^1.0.12:
version "1.0.12"
resolved "https://registry.yarnpkg.com/mocha-rp-reporter/-/mocha-rp-reporter-1.0.12.tgz#408d2660d3f3e58f9762f6005e92bd1f9839b30e"
@@ -7672,6 +7377,12 @@ ngx-datatable@^1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/ngx-datatable/-/ngx-datatable-1.0.3.tgz#9ef9915aa019e9983aa8e3897b61f400f2fd69d5"
+ngx-papaparse@^2.1.4:
+ version "2.1.4"
+ resolved "https://registry.yarnpkg.com/ngx-papaparse/-/ngx-papaparse-2.1.4.tgz#9881a38f7584b7041e05c4847a3b50c2b8847a36"
+ dependencies:
+ papaparse "^4.3.6"
+
ngx-toastr@^8.2.1:
version "8.2.1"
resolved "https://registry.yarnpkg.com/ngx-toastr/-/ngx-toastr-8.2.1.tgz#86cffec666a9dadde5f8a37f2a8fe2ab527b3dde"
@@ -8888,7 +8599,7 @@ progress-stream@^1.1.0:
speedometer "~0.1.2"
through2 "~0.2.3"
-progress@1.1.8, progress@^1.1.8:
+progress@^1.1.8:
version "1.1.8"
resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be"
@@ -9085,10 +8796,6 @@ radium@^0.19.0:
inline-style-prefixer "^2.0.5"
prop-types "^15.5.8"
-ramda@0.24.1:
- version "0.24.1"
- resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.24.1.tgz#c3b7755197f35b8dc3502228262c4c91ddb6b857"
-
ramda@^0.25.0:
version "0.25.0"
resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.25.0.tgz#8fdf68231cffa90bc2f9460390a0cb74a29b29a9"
@@ -9622,12 +9329,6 @@ repeating@^2.0.0:
dependencies:
is-finite "^1.0.0"
-request-progress@0.3.1:
- version "0.3.1"
- resolved "https://registry.yarnpkg.com/request-progress/-/request-progress-0.3.1.tgz#0721c105d8a96ac6b2ce8b2c89ae2d5ecfcf6b3a"
- dependencies:
- throttleit "~0.0.2"
-
request-progress@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/request-progress/-/request-progress-2.0.1.tgz#5d36bb57961c673aa5b788dbc8141fdf23b44e08"
@@ -9880,7 +9581,7 @@ rx-lite@*, rx-lite@^4.0.8:
version "4.0.8"
resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-4.0.8.tgz#0b1e11af8bc44836f04a6407e92da42467b79444"
-rxjs@^5.0.0-beta.11, rxjs@^5.4.2, rxjs@^5.5.6:
+rxjs@^5.4.2, rxjs@^5.5.6:
version "5.5.6"
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.6.tgz#e31fb96d6fd2ff1fd84bcea8ae9c02d007179c02"
dependencies:
@@ -9998,6 +9699,10 @@ scss-tokenizer@^0.2.3:
js-base64 "^2.1.8"
source-map "^0.4.2"
+sdc-pubsub@^1.0.20:
+ version "1.0.20"
+ resolved "https://registry.yarnpkg.com/sdc-pubsub/-/sdc-pubsub-1.0.20.tgz#3ed42a6299eeca6c2c088fbe249fc57595dbf33b"
+
select-hose@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca"
@@ -10199,14 +9904,6 @@ shell-quote@1.6.1, shell-quote@^1.6.1:
array-reduce "~0.0.0"
jsonify "~0.0.0"
-shelljs@0.8.0:
- version "0.8.0"
- resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.0.tgz#12f561c52ec5d0d3315af15616c011a18ff80d59"
- dependencies:
- glob "^7.0.0"
- interpret "^1.0.0"
- rechoir "^0.6.2"
-
shelljs@^0.8.1:
version "0.8.1"
resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.8.1.tgz#729e038c413a2254c4078b95ed46e0397154a9f1"
@@ -10629,10 +10326,6 @@ stream-splicer@^2.0.0:
inherits "^2.0.1"
readable-stream "^2.0.2"
-stream-to-observable@^0.1.0:
- version "0.1.0"
- resolved "https://registry.yarnpkg.com/stream-to-observable/-/stream-to-observable-0.1.0.tgz#45bf1d9f2d7dc09bed81f1c307c430e68b84cffe"
-
stream-to-observable@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/stream-to-observable/-/stream-to-observable-0.2.0.tgz#59d6ea393d87c2c0ddac10aa0d561bc6ba6f0e10"
@@ -10810,12 +10503,6 @@ supports-color@4.4.0:
dependencies:
has-flag "^2.0.0"
-supports-color@5.1.0, supports-color@^5.1.0:
- version "5.1.0"
- resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.1.0.tgz#058a021d1b619f7ddf3980d712ea3590ce7de3d5"
- dependencies:
- has-flag "^2.0.0"
-
supports-color@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
@@ -10832,6 +10519,12 @@ supports-color@^4.0.0, supports-color@^4.2.1:
dependencies:
has-flag "^2.0.0"
+supports-color@^5.1.0:
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.1.0.tgz#058a021d1b619f7ddf3980d712ea3590ce7de3d5"
+ dependencies:
+ has-flag "^2.0.0"
+
supports-color@^5.2.0, supports-color@^5.3.0:
version "5.3.0"
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.3.0.tgz#5b24ac15db80fa927cf5227a4a33fd3c4c7676c0"
@@ -10919,10 +10612,6 @@ tcomb@^3.0.0, tcomb@^3.2.17:
version "3.2.24"
resolved "https://registry.yarnpkg.com/tcomb/-/tcomb-3.2.24.tgz#7f427053cc393b5997c4c3d859ca20411180887b"
-terminal-banner@1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/terminal-banner/-/terminal-banner-1.1.0.tgz#ef81ce7d9d7e541a81d09eb2c0257c3d5463c3ea"
-
test-exclude@^4.1.1, test-exclude@^4.2.0:
version "4.2.1"
resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-4.2.1.tgz#dfa222f03480bca69207ca728b37d74b45f724fa"
@@ -10941,7 +10630,7 @@ throat@^4.0.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/throat/-/throat-4.1.0.tgz#89037cbc92c56ab18926e6ba4cbb200e15672a6a"
-throttleit@0.0.2, throttleit@~0.0.2:
+throttleit@0.0.2:
version "0.0.2"
resolved "https://registry.yarnpkg.com/throttleit/-/throttleit-0.0.2.tgz#cfedf88e60c00dd9697b61fdd2a8343a9b680eaf"
@@ -11009,12 +10698,6 @@ tmp@0.0.30:
dependencies:
os-tmpdir "~1.0.1"
-tmp@0.0.31:
- version "0.0.31"
- resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.31.tgz#8f38ab9438e17315e5dbd8b3657e8bfb277ae4a7"
- dependencies:
- os-tmpdir "~1.0.1"
-
tmp@0.0.33, tmp@0.0.x, tmp@^0.0.33:
version "0.0.33"
resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9"
@@ -11113,15 +10796,6 @@ ts-jest@^22.4.1:
pkg-dir "^2.0.0"
yargs "^11.0.0"
-ts-loader@3.2.0:
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-3.2.0.tgz#23211922179b81f7448754b7fdfca45b8374a15a"
- dependencies:
- chalk "^2.3.0"
- enhanced-resolve "^3.0.0"
- loader-utils "^1.0.2"
- semver "^5.0.1"
-
ts-loader@^3.5.0:
version "3.5.0"
resolved "https://registry.yarnpkg.com/ts-loader/-/ts-loader-3.5.0.tgz#151d004dcddb4cf8e381a3bf9d6b74c2d957a9c0"
@@ -11416,7 +11090,7 @@ url-parse@^1.1.8:
querystringify "~1.0.0"
requires-port "~1.0.0"
-url@0.11.0, url@^0.11.0, url@~0.11.0:
+url@^0.11.0, url@~0.11.0:
version "0.11.0"
resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"
dependencies:
@@ -11696,33 +11370,6 @@ webpack-subresource-integrity@^1.0.1:
dependencies:
webpack-core "^0.6.8"
-webpack@3.6.0:
- version "3.6.0"
- resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.6.0.tgz#a89a929fbee205d35a4fa2cc487be9cbec8898bc"
- dependencies:
- acorn "^5.0.0"
- acorn-dynamic-import "^2.0.0"
- ajv "^5.1.5"
- ajv-keywords "^2.0.0"
- async "^2.1.2"
- enhanced-resolve "^3.4.0"
- escope "^3.6.0"
- interpret "^1.0.0"
- json-loader "^0.5.4"
- json5 "^0.5.1"
- loader-runner "^2.3.0"
- loader-utils "^1.1.0"
- memory-fs "~0.4.1"
- mkdirp "~0.5.0"
- node-libs-browser "^2.0.0"
- source-map "^0.5.3"
- supports-color "^4.2.1"
- tapable "^0.2.7"
- uglifyjs-webpack-plugin "^0.4.6"
- watchpack "^1.4.0"
- webpack-sources "^1.0.1"
- yargs "^8.0.2"
-
webpack@^3.11.0, webpack@~3.11.0:
version "3.11.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-3.11.0.tgz#77da451b1d7b4b117adaf41a1a93b5742f24d894"
@@ -12110,13 +11757,6 @@ yauzl@2.4.1:
dependencies:
fd-slicer "~1.0.1"
-yauzl@2.8.0:
- version "2.8.0"
- resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.8.0.tgz#79450aff22b2a9c5a41ef54e02db907ccfbf9ee2"
- dependencies:
- buffer-crc32 "~0.2.3"
- fd-slicer "~1.0.1"
-
yeast@0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419"
diff --git a/src/main/java/org/onap/sdc/dcae/FeApp.java b/src/main/java/org/onap/sdc/dcae/FeApp.java
index d0db5c4..01d757c 100644
--- a/src/main/java/org/onap/sdc/dcae/FeApp.java
+++ b/src/main/java/org/onap/sdc/dcae/FeApp.java
@@ -7,7 +7,7 @@ import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
-import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
+import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.*;
import javax.servlet.ServletContext;