Updates sartography-workflow-lib.

This commit is contained in:
Aaron Louie 2020-03-19 15:51:43 -04:00
parent 9544b7e730
commit 05cf7ad0db
6 changed files with 1281 additions and 779 deletions

1974
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -22,47 +22,50 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^9.0.2", "@angular/animations": "^9.0.7",
"@angular/cdk": "^9.1.0", "@angular/cdk": "^9.1.3",
"@angular/common": "^9.0.2", "@angular/common": "^9.0.7",
"@angular/compiler": "^9.0.2", "@angular/compiler": "^9.0.7",
"@angular/core": "^9.0.2", "@angular/core": "^9.0.7",
"@angular/flex-layout": "^9.0.0-beta.29", "@angular/flex-layout": "^9.0.0-beta.29",
"@angular/forms": "^9.0.2", "@angular/forms": "^9.0.7",
"@angular/material": "^9.1.0", "@angular/material": "^9.1.3",
"@angular/platform-browser": "^9.0.2", "@angular/platform-browser": "^9.0.7",
"@angular/platform-browser-dynamic": "^9.0.2", "@angular/platform-browser-dynamic": "^9.0.7",
"@angular/router": "^9.0.2", "@angular/router": "^9.0.7",
"@ngx-formly/core": "^5.5.13", "@ngx-formly/core": "^5.5.15",
"@ngx-formly/material": "^5.5.13", "@ngx-formly/material": "^5.5.15",
"bpmn-js": "^6.3.0", "bpmn-js": "^6.3.4",
"bpmn-js-properties-panel": "^0.33.1", "bpmn-js-properties-panel": "^0.33.2",
"camunda-bpmn-moddle": "^4.4.0", "camunda-bpmn-moddle": "^4.4.0",
"camunda-dmn-moddle": "^1.0.0", "camunda-dmn-moddle": "^1.0.0",
"diagram-js": "^6.4.1",
"diagram-js-minimap": "^2.0.3", "diagram-js-minimap": "^2.0.3",
"diagram-js": "^6.0.1", "dmn-js": "^7.5.0",
"dmn-js": "^7.2.0", "dmn-js-properties-panel": "^0.3.5",
"dmn-moddle": "^6.0.0", "dmn-moddle": "^6.0.0",
"dmn-js-properties-panel": "^0.3.4",
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"ngx-device-detector": "^1.4.1",
"ngx-file-drop": "^8.0.8",
"ngx-markdown": "^9.0.0",
"rxjs": "~6.5.4", "rxjs": "~6.5.4",
"sartography-workflow-lib": "^0.0.64", "sartography-workflow-lib": "^0.0.68",
"tslib": "^1.10.0", "tslib": "^1.11.1",
"uuid": "^7.0.0", "uuid": "^7.0.2",
"zone.js": "~0.10.2" "zone.js": "^0.10.3"
}, },
"devDependencies": { "devDependencies": {
"@angular-builders/custom-webpack": "^9.0.0", "@angular-builders/custom-webpack": "^9.0.0",
"@angular-devkit/build-angular": "~0.900.3", "@angular-devkit/build-angular": "^0.900.7",
"@angular/cli": "^9.0.3", "@angular/cli": "^9.0.7",
"@angular/compiler-cli": "^9.0.2", "@angular/compiler-cli": "^9.0.7",
"@angular/language-service": "^9.0.2", "@angular/language-service": "^9.0.7",
"@babel/core": "^7.8.4", "@babel/core": "^7.8.7",
"@babel/preset-env": "^7.8.4", "@babel/preset-env": "^7.8.7",
"@babel/preset-react": "^7.8.3", "@babel/preset-react": "^7.8.3",
"@types/jasmine": "^3.5.7", "@types/jasmine": "^3.5.9",
"@types/jasminewd2": "^2.0.8", "@types/jasminewd2": "^2.0.8",
"@types/node": "^12.11.1", "@types/node": "^12.12.30",
"babel-loader": "^8.0.6", "babel-loader": "^8.0.6",
"codelyzer": "^5.1.2", "codelyzer": "^5.1.2",
"jasmine-core": "~3.5.0", "jasmine-core": "~3.5.0",
@ -79,8 +82,8 @@
"sonar-scanner": "^3.1.0", "sonar-scanner": "^3.1.0",
"ts-node": "~8.6.2", "ts-node": "~8.6.2",
"tslint": "~6.0.0", "tslint": "~6.0.0",
"typescript": "^3.7.5", "typescript": "~3.7.5",
"webpack": "^4.41.6", "webpack": "^4.42.0",
"webpack-dev-server": "^3.10.3", "webpack-dev-server": "^3.10.3",
"webpack-notifier": "^1.8.0" "webpack-notifier": "^1.8.0"
} }

View File

@ -1,10 +1,7 @@
<div mat-dialog-content> <div mat-dialog-content>
<mat-form-field> <form [formGroup]="form">
<input required [(ngModel)]="data.fileName" matInput placeholder="File name"> <formly-form [model]="model" [fields]="fields" [options]="options" [form]="form"></formly-form>
</mat-form-field> </form>
<mat-form-field>
<input disabled required [(ngModel)]="data.fileType" matInput placeholder="File type">
</mat-form-field>
</div> </div>
<div mat-dialog-actions> <div mat-dialog-actions>

View File

@ -29,6 +29,14 @@ export class FileMetaDialogComponent {
}); });
this.fields = [ this.fields = [
{
key: 'id',
type: 'input',
defaultValue: this.data.id,
templateOptions: {
hide: true,
},
},
{ {
key: 'fileName', key: 'fileName',
type: 'input', type: 'input',

View File

@ -1,6 +1,7 @@
import {FileMeta, FileType, WorkflowSpec, WorkflowSpecCategory} from 'sartography-workflow-lib'; import {FileMeta, FileType, WorkflowSpec, WorkflowSpecCategory} from 'sartography-workflow-lib';
export interface FileMetaDialogData { export interface FileMetaDialogData {
id?: number;
fileName: string; fileName: string;
fileType: FileType; fileType: FileType;
file?: File; file?: File;

View File

@ -119,8 +119,6 @@ export class WorkflowSpecListComponent implements OnInit {
} }
private _loadWorkflowSpecCategories() { private _loadWorkflowSpecCategories() {
console.log('=== _loadWorkflowSpecCategories ===');
this.api.getWorkflowSpecCategoryList().subscribe(cats => { this.api.getWorkflowSpecCategoryList().subscribe(cats => {
this.categories = cats; this.categories = cats;
this.workflowSpecsByCategory = [{ this.workflowSpecsByCategory = [{
@ -140,7 +138,6 @@ export class WorkflowSpecListComponent implements OnInit {
} }
private _loadWorkflowSpecs() { private _loadWorkflowSpecs() {
console.log('=== _loadWorkflowSpecs ===');
this.api.getWorkflowSpecList().subscribe(wfs => { this.api.getWorkflowSpecList().subscribe(wfs => {
this.workflowSpecs = wfs; this.workflowSpecs = wfs;
this.workflowSpecsByCategory.forEach(cat => { this.workflowSpecsByCategory.forEach(cat => {