Merge branch 'dev' into feature/default_display_order_74
This commit is contained in:
commit
635035419d
File diff suppressed because it is too large
Load Diff
|
@ -52,6 +52,7 @@
|
||||||
"ngx-file-drop": "^9.0.1",
|
"ngx-file-drop": "^9.0.1",
|
||||||
"ngx-highlightjs": "^4.1.1",
|
"ngx-highlightjs": "^4.1.1",
|
||||||
"ngx-markdown": "^9.1.1",
|
"ngx-markdown": "^9.1.1",
|
||||||
|
"protractor": "^7.0.0",
|
||||||
"rxjs": "~6.5.4",
|
"rxjs": "~6.5.4",
|
||||||
"sartography-workflow-lib": "0.0.447",
|
"sartography-workflow-lib": "0.0.447",
|
||||||
"tslib": "^1.13.0",
|
"tslib": "^1.13.0",
|
||||||
|
@ -64,10 +65,10 @@
|
||||||
"@angular/cli": "^9.1.11",
|
"@angular/cli": "^9.1.11",
|
||||||
"@angular/compiler-cli": "^9.1.12",
|
"@angular/compiler-cli": "^9.1.12",
|
||||||
"@angular/language-service": "^9.1.12",
|
"@angular/language-service": "^9.1.12",
|
||||||
|
"@babel/compat-data": "7.9.0",
|
||||||
"@babel/core": "^7.10.5",
|
"@babel/core": "^7.10.5",
|
||||||
"@babel/preset-env": "^7.10.4",
|
"@babel/preset-env": "^7.10.4",
|
||||||
"@babel/preset-react": "^7.10.4",
|
"@babel/preset-react": "^7.10.4",
|
||||||
"@babel/compat-data": "7.9.0",
|
|
||||||
"@types/jasmine": "^3.5.11",
|
"@types/jasmine": "^3.5.11",
|
||||||
"@types/jasminewd2": "^2.0.8",
|
"@types/jasminewd2": "^2.0.8",
|
||||||
"@types/node": "^12.12.50",
|
"@types/node": "^12.12.50",
|
||||||
|
@ -82,7 +83,6 @@
|
||||||
"karma-jasmine-html-reporter": "^1.5.4",
|
"karma-jasmine-html-reporter": "^1.5.4",
|
||||||
"mockdate": "^2.0.5",
|
"mockdate": "^2.0.5",
|
||||||
"postcss-short": "^5.0.0",
|
"postcss-short": "^5.0.0",
|
||||||
"protractor": "^7.0.0",
|
|
||||||
"puppeteer": "^2.1.1",
|
"puppeteer": "^2.1.1",
|
||||||
"sonar-scanner": "^3.1.0",
|
"sonar-scanner": "^3.1.0",
|
||||||
"ts-node": "~8.6.2",
|
"ts-node": "~8.6.2",
|
||||||
|
|
|
@ -14,3 +14,7 @@
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.diagram-container {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
Primary process
|
Primary process
|
||||||
</button>
|
</button>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<h4 (click)="editFile(fm)" mat-line>{{fm.name}}</h4>
|
<h4 (click)="editFile(fm)" mat-line>{{fm.file.name}}</h4>
|
||||||
<p (click)="editFile(fm)" mat-line>{{fm.last_updated | date}}</p>
|
<p (click)="editFile(fm)" mat-line> Updated: {{fm.file.lastModified | date}}</p>
|
||||||
<button (click)="downloadFile(fm)" class="mat-elevation-z0" color="primary" mat-icon-button>
|
<button (click)="downloadFile(fm)" class="mat-elevation-z0" color="primary" mat-icon-button>
|
||||||
<mat-icon>save_alt</mat-icon>
|
<mat-icon>save_alt</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
<div *ngIf="!(searchField.value && cat.workflow_specs.length === 0)">
|
<div *ngIf="!(searchField.value && cat.workflow_specs.length === 0)">
|
||||||
<ng-container *ngIf="!(cat.id === null && cat.workflow_specs.length === 0)">
|
<ng-container *ngIf="!(cat.id === null && cat.workflow_specs.length === 0)">
|
||||||
<mat-expansion-panel hideToggle [expanded]="categoryExpanded(cat)">
|
<mat-expansion-panel hideToggle (opened)="selectCat(cat)" [expanded]="selectedSpec.category_id == cat.id">
|
||||||
<mat-expansion-panel-header>
|
<mat-expansion-panel-header>
|
||||||
<mat-panel-title>
|
<mat-panel-title>
|
||||||
{{cat.display_name}}
|
{{cat.display_name}}
|
||||||
|
|
|
@ -87,6 +87,10 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
selectCat(selectedCat?: WorkflowSpecCategory) {
|
||||||
|
this.selectedCat = selectedCat;
|
||||||
|
}
|
||||||
|
|
||||||
selectSpec(selectedSpec?: WorkflowSpec) {
|
selectSpec(selectedSpec?: WorkflowSpec) {
|
||||||
this.selectedSpec = selectedSpec;
|
this.selectedSpec = selectedSpec;
|
||||||
this.location.replaceState(environment.homeRoute + '/' + selectedSpec.name);
|
this.location.replaceState(environment.homeRoute + '/' + selectedSpec.name);
|
||||||
|
@ -206,7 +210,6 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
this.workflowSpecsByCategory.push(cat);
|
this.workflowSpecsByCategory.push(cat);
|
||||||
this.workflowSpecsByCategory[i + 1].workflow_specs = [];
|
this.workflowSpecsByCategory[i + 1].workflow_specs = [];
|
||||||
});
|
});
|
||||||
|
|
||||||
this._loadWorkflowSpecs(selectedSpecName);
|
this._loadWorkflowSpecs(selectedSpecName);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -373,6 +376,11 @@ export class WorkflowSpecListComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
private _updateSpecDisplayOrders(specs: WorkflowSpec[]) {
|
private _updateSpecDisplayOrders(specs: WorkflowSpec[]) {
|
||||||
|
if (this.selectedCat && this.selectedSpec.category) {
|
||||||
|
if (this.selectedCat.id !== this.selectedSpec.category.id) {
|
||||||
|
this.selectedSpec = specs[0];
|
||||||
|
}
|
||||||
|
}
|
||||||
let numUpdated = 0;
|
let numUpdated = 0;
|
||||||
specs.forEach((spec, j) => {
|
specs.forEach((spec, j) => {
|
||||||
const newSpec = createClone({ circles: true })(spec);
|
const newSpec = createClone({ circles: true })(spec);
|
||||||
|
|
Loading…
Reference in New Issue