@valtimo/process-management 4.15.3-next-main.14 → 4.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -7
- package/bundles/valtimo-process-management.umd.js +64 -49
- package/bundles/valtimo-process-management.umd.js.map +1 -1
- package/bundles/valtimo-process-management.umd.min.js +1 -1
- package/bundles/valtimo-process-management.umd.min.js.map +1 -1
- package/esm2015/lib/process-management-builder/process-management-builder.component.js +18 -15
- package/esm2015/lib/process-management-list/process-management-list.component.js +2 -2
- package/esm2015/lib/process-management-routing.js +7 -10
- package/esm2015/lib/process-management-upload/process-management-upload.component.js +3 -4
- package/esm2015/lib/process-management.component.js +4 -6
- package/esm2015/lib/process-management.module.js +4 -4
- package/esm2015/lib/process-management.service.js +2 -2
- package/esm2015/public-api.js +1 -1
- package/esm2015/valtimo-process-management.js +1 -1
- package/fesm2015/valtimo-process-management.js +33 -37
- package/fesm2015/valtimo-process-management.js.map +1 -1
- package/lib/process-management-builder/process-management-builder.component.d.ts +1 -2
- package/lib/process-management-list/process-management-list.component.d.ts +1 -2
- package/package.json +1 -1
- package/valtimo-process-management.metadata.json +1 -1
package/README.md
CHANGED
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
# ProcessManagement
|
|
2
2
|
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version
|
|
4
|
+
8.2.14.
|
|
4
5
|
|
|
5
6
|
## Code scaffolding
|
|
6
7
|
|
|
7
|
-
Run `ng generate component component-name --project process-management` to generate a new component.
|
|
8
|
-
|
|
8
|
+
Run `ng generate component component-name --project process-management` to generate a new component.
|
|
9
|
+
You can also use
|
|
10
|
+
`ng generate directive|pipe|service|class|guard|interface|enum|module --project process-management`.
|
|
11
|
+
|
|
12
|
+
> Note: Don't forget to add `--project process-management` or else it will be added to the default
|
|
13
|
+
> project in your `angular.json` file.
|
|
9
14
|
|
|
10
15
|
## Build
|
|
11
16
|
|
|
12
|
-
Run `ng build process-management` to build the project. The build artifacts will be stored in the
|
|
17
|
+
Run `ng build process-management` to build the project. The build artifacts will be stored in the
|
|
18
|
+
`dist/` directory.
|
|
13
19
|
|
|
14
20
|
## Publishing
|
|
15
21
|
|
|
16
|
-
After building your library with `ng build process-management`, go to the dist folder
|
|
22
|
+
After building your library with `ng build process-management`, go to the dist folder
|
|
23
|
+
`cd dist/process-management` and run `npm publish`.
|
|
17
24
|
|
|
18
25
|
## Running unit tests
|
|
19
26
|
|
|
20
|
-
Run `ng test process-management` to execute the unit tests via
|
|
27
|
+
Run `ng test process-management` to execute the unit tests via
|
|
28
|
+
[Karma](https://karma-runner.github.io).
|
|
21
29
|
|
|
22
30
|
## Further help
|
|
23
31
|
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the
|
|
32
|
+
To get more help on the Angular CLI use `ng help` or go check out the
|
|
33
|
+
[Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@angular/common'), require('@valtimo/security'), require('@angular/common/http'), require('@valtimo/process'), require('@valtimo/components'), require('rxjs'), require('@valtimo/layout'), require('bpmn-js/lib/Modeler'), require('bpmn-js-properties-panel'), require('bpmn-js-properties-panel/lib/provider/camunda'), require('camunda-bpmn-moddle/lib'), require('camunda-bpmn-moddle/resources/camunda.json'), require('@valtimo/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@valtimo/process-management', ['exports', '@angular/core', '@angular/router', '@angular/common', '@valtimo/security', '@angular/common/http', '@valtimo/process', '@valtimo/components', 'rxjs', '@valtimo/layout', 'bpmn-js/lib/Modeler', 'bpmn-js-properties-panel', 'bpmn-js-properties-panel/lib/provider/camunda', 'camunda-bpmn-moddle/lib', 'camunda-bpmn-moddle/resources/camunda.json', '@valtimo/
|
|
4
|
-
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo['process-management'] = {}), global.ng.core, global.ng.router, global.ng.common, global.security, global.ng.common.http, global.process, global.components, global.rxjs, global.layout, global.Modeler, global.PropertiesPanelModule, global.PropertiesProviderModule, global.CamundaExtensionModule, global.CamundaModdleDescriptor, global.
|
|
5
|
-
}(this, (function (exports, i0, router, common, security, i2, process, components, rxjs, layout, Modeler, PropertiesPanelModule, PropertiesProviderModule, CamundaExtensionModule, CamundaModdleDescriptor,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@angular/common'), require('@valtimo/security'), require('@angular/common/http'), require('@valtimo/process'), require('@valtimo/components'), require('rxjs'), require('@valtimo/layout'), require('bpmn-js/lib/Modeler'), require('bpmn-js-properties-panel'), require('bpmn-js-properties-panel/lib/provider/camunda'), require('camunda-bpmn-moddle/lib'), require('camunda-bpmn-moddle/resources/camunda.json'), require('@valtimo/config'), require('@angular/forms'), require('@ngx-translate/core')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@valtimo/process-management', ['exports', '@angular/core', '@angular/router', '@angular/common', '@valtimo/security', '@angular/common/http', '@valtimo/process', '@valtimo/components', 'rxjs', '@valtimo/layout', 'bpmn-js/lib/Modeler', 'bpmn-js-properties-panel', 'bpmn-js-properties-panel/lib/provider/camunda', 'camunda-bpmn-moddle/lib', 'camunda-bpmn-moddle/resources/camunda.json', '@valtimo/config', '@angular/forms', '@ngx-translate/core'], factory) :
|
|
4
|
+
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo['process-management'] = {}), global.ng.core, global.ng.router, global.ng.common, global.security, global.ng.common.http, global.process, global.components, global.rxjs, global.layout, global.Modeler, global.PropertiesPanelModule, global.PropertiesProviderModule, global.CamundaExtensionModule, global.CamundaModdleDescriptor, global.config, global.ng.forms, global.cpre$1));
|
|
5
|
+
}(this, (function (exports, i0, router, common, security, i2, process, components, rxjs, layout, Modeler, PropertiesPanelModule, PropertiesProviderModule, CamundaExtensionModule, CamundaModdleDescriptor, i1, forms, core) { 'use strict';
|
|
6
6
|
|
|
7
7
|
Modeler = Modeler && Object.prototype.hasOwnProperty.call(Modeler, 'default') ? Modeler['default'] : Modeler;
|
|
8
8
|
PropertiesPanelModule = PropertiesPanelModule && Object.prototype.hasOwnProperty.call(PropertiesPanelModule, 'default') ? PropertiesPanelModule['default'] : PropertiesPanelModule;
|
|
@@ -28,14 +28,13 @@
|
|
|
28
28
|
var ProcessManagementComponent = /** @class */ (function () {
|
|
29
29
|
function ProcessManagementComponent() {
|
|
30
30
|
}
|
|
31
|
-
ProcessManagementComponent.prototype.ngOnInit = function () {
|
|
32
|
-
};
|
|
31
|
+
ProcessManagementComponent.prototype.ngOnInit = function () { };
|
|
33
32
|
return ProcessManagementComponent;
|
|
34
33
|
}());
|
|
35
34
|
ProcessManagementComponent.decorators = [
|
|
36
35
|
{ type: i0.Component, args: [{
|
|
37
36
|
selector: 'valtimo-process-management',
|
|
38
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"text-right\">\n <div class=\"btn-group mt-m3px mb-3\">\n <button class=\"btn btn-primary btn-space\" [routerLink]=\"'create'\"
|
|
37
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"text-right\">\n <div class=\"btn-group mt-m3px mb-3\">\n <button class=\"btn btn-primary btn-space\" [routerLink]=\"'create'\">\n <i class=\"icon mdi mdi-plus\"></i> \n {{ 'Create new Process' | translate }}\n </button>\n <button\n class=\"btn btn-secondary btn-space mr-0\"\n data-toggle=\"modal\"\n data-target=\"#uploadProcess\"\n >\n <i class=\"icon mdi mdi-upload\"></i> \n {{ 'Upload process' | translate }}\n </button>\n </div>\n </div>\n <valtimo-process-management-upload\n (reload)=\"processManagementList.loadProcessDefinitions()\"\n ></valtimo-process-management-upload>\n <valtimo-process-management-list #processManagementList></valtimo-process-management-list>\n </div>\n</div>\n",
|
|
39
38
|
styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */"]
|
|
40
39
|
},] }
|
|
41
40
|
];
|
|
@@ -68,6 +67,8 @@
|
|
|
68
67
|
return extendStatics(d, b);
|
|
69
68
|
};
|
|
70
69
|
function __extends(d, b) {
|
|
70
|
+
if (typeof b !== "function" && b !== null)
|
|
71
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
71
72
|
extendStatics(d, b);
|
|
72
73
|
function __() { this.constructor = d; }
|
|
73
74
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -253,11 +254,13 @@
|
|
|
253
254
|
}
|
|
254
255
|
return ar;
|
|
255
256
|
}
|
|
257
|
+
/** @deprecated */
|
|
256
258
|
function __spread() {
|
|
257
259
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
258
260
|
ar = ar.concat(__read(arguments[i]));
|
|
259
261
|
return ar;
|
|
260
262
|
}
|
|
263
|
+
/** @deprecated */
|
|
261
264
|
function __spreadArrays() {
|
|
262
265
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
263
266
|
s += arguments[i].length;
|
|
@@ -266,7 +269,17 @@
|
|
|
266
269
|
r[k] = a[j];
|
|
267
270
|
return r;
|
|
268
271
|
}
|
|
269
|
-
|
|
272
|
+
function __spreadArray(to, from, pack) {
|
|
273
|
+
if (pack || arguments.length === 2)
|
|
274
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
275
|
+
if (ar || !(i in from)) {
|
|
276
|
+
if (!ar)
|
|
277
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
278
|
+
ar[i] = from[i];
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
282
|
+
}
|
|
270
283
|
function __await(v) {
|
|
271
284
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
272
285
|
}
|
|
@@ -331,18 +344,21 @@
|
|
|
331
344
|
function __importDefault(mod) {
|
|
332
345
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
333
346
|
}
|
|
334
|
-
function __classPrivateFieldGet(receiver,
|
|
335
|
-
if (!
|
|
336
|
-
throw new TypeError("
|
|
337
|
-
|
|
338
|
-
|
|
347
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
348
|
+
if (kind === "a" && !f)
|
|
349
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
350
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
351
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
352
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
339
353
|
}
|
|
340
|
-
function __classPrivateFieldSet(receiver,
|
|
341
|
-
if (
|
|
342
|
-
throw new TypeError("
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
354
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
355
|
+
if (kind === "m")
|
|
356
|
+
throw new TypeError("Private method is not writable");
|
|
357
|
+
if (kind === "a" && !f)
|
|
358
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
359
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
360
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
361
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
346
362
|
}
|
|
347
363
|
|
|
348
364
|
var ProcessManagementBuilderComponent = /** @class */ (function () {
|
|
@@ -356,9 +372,7 @@
|
|
|
356
372
|
this.processDefinitionVersions = null;
|
|
357
373
|
this.selectedVersion = null;
|
|
358
374
|
this.processKey = null;
|
|
359
|
-
this.elementTemplateFiles = [
|
|
360
|
-
'mailSendTask'
|
|
361
|
-
];
|
|
375
|
+
this.elementTemplateFiles = ['mailSendTask'];
|
|
362
376
|
}
|
|
363
377
|
ProcessManagementBuilderComponent.prototype.ngOnInit = function () {
|
|
364
378
|
this.init();
|
|
@@ -373,15 +387,15 @@
|
|
|
373
387
|
additionalModules: [
|
|
374
388
|
PropertiesPanelModule,
|
|
375
389
|
PropertiesProviderModule,
|
|
376
|
-
CamundaExtensionModule
|
|
390
|
+
CamundaExtensionModule,
|
|
377
391
|
],
|
|
378
392
|
propertiesPanel: {
|
|
379
|
-
parent: '#properties'
|
|
393
|
+
parent: '#properties',
|
|
380
394
|
},
|
|
381
395
|
moddleExtensions: {
|
|
382
|
-
camunda: CamundaModdleDescriptor
|
|
396
|
+
camunda: CamundaModdleDescriptor,
|
|
383
397
|
},
|
|
384
|
-
elementTemplates: elementTemplates
|
|
398
|
+
elementTemplates: elementTemplates,
|
|
385
399
|
});
|
|
386
400
|
if (_this.processKey) {
|
|
387
401
|
_this.loadProcessVersions(_this.processKey);
|
|
@@ -425,9 +439,12 @@
|
|
|
425
439
|
ProcessManagementBuilderComponent.prototype.loadEmptyBpmn = function () {
|
|
426
440
|
var _this = this;
|
|
427
441
|
var url = '/assets/bpmn/initial.bpmn';
|
|
428
|
-
this.http
|
|
429
|
-
|
|
430
|
-
|
|
442
|
+
this.http
|
|
443
|
+
.get(url, {
|
|
444
|
+
headers: { observe: 'response' },
|
|
445
|
+
responseType: 'text',
|
|
446
|
+
})
|
|
447
|
+
.subscribe(function (xml) {
|
|
431
448
|
_this.bpmnModeler.importXML(xml);
|
|
432
449
|
});
|
|
433
450
|
};
|
|
@@ -439,7 +456,7 @@
|
|
|
439
456
|
var file = _c.value;
|
|
440
457
|
templateObs.push(this.http.get("/assets/bpmn/element-templates/" + file + ".json", {
|
|
441
458
|
headers: { observe: 'response' },
|
|
442
|
-
responseType: 'json'
|
|
459
|
+
responseType: 'json',
|
|
443
460
|
}));
|
|
444
461
|
}
|
|
445
462
|
}
|
|
@@ -458,7 +475,9 @@
|
|
|
458
475
|
};
|
|
459
476
|
ProcessManagementBuilderComponent.prototype.loadProcessVersions = function (processDefinitionKey) {
|
|
460
477
|
var _this = this;
|
|
461
|
-
this.processService
|
|
478
|
+
this.processService
|
|
479
|
+
.getProcessDefinitionVersions(processDefinitionKey)
|
|
480
|
+
.subscribe(function (processDefinitionVersions) {
|
|
462
481
|
_this.processDefinitionVersions = processDefinitionVersions;
|
|
463
482
|
_this.setLatestVersion();
|
|
464
483
|
});
|
|
@@ -486,7 +505,7 @@
|
|
|
486
505
|
ProcessManagementBuilderComponent.decorators = [
|
|
487
506
|
{ type: i0.Component, args: [{
|
|
488
507
|
selector: 'valtimo-process-management-builder',
|
|
489
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"mb-5\" [ngClass]=\"{'main-content pt-0': !layoutService.isFullscreen}\">\n <div [ngClass]=\"{'container-fluid'
|
|
508
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"mb-5\" [ngClass]=\"{'main-content pt-0': !layoutService.isFullscreen}\">\n <div [ngClass]=\"{'container-fluid': !layoutService.isFullscreen}\">\n <div class=\"text-right\">\n <div\n class=\"btn-group mt-m3px mb-3\"\n *ngIf=\"(selectedVersion !== null || processKey === null) && !layoutService.isFullscreen\"\n >\n <button class=\"btn btn-primary btn-space\" (click)=\"deploy()\">\n <i class=\"fa fa-upload\"></i> Deploy\n </button>\n <button\n class=\"btn btn-secondary btn-space\"\n (click)=\"download()\"\n [ngClass]=\"{'mr-0': selectedVersion !== null}\"\n >\n <i class=\"fa fa-save\"></i> Download\n </button>\n <button\n *ngIf=\"selectedVersion === null\"\n class=\"btn btn-danger btn-space mr-0\"\n (click)=\"reset()\"\n >\n <i class=\"fa fa-trash\"></i> Clear\n </button>\n </div>\n </div>\n\n <div class=\"modeler pl-3 pr-3 mb-3\" [ngClass]=\"{'mt-4': !layoutService.isFullscreen}\">\n <div\n class=\"row pt-4 pb-3 bg-light versions\"\n *ngIf=\"processDefinitionVersions\"\n [ngClass]=\"{'border-bottom-0': selectedVersion !== null}\"\n >\n <div class=\"col-md-2\" *ngIf=\"processDefinitionVersions.length > 0\">\n <h2 class=\"process-title\">\n {{ processDefinitionVersions[0].name }}\n </h2>\n </div>\n <div class=\"col-md-1 offset-md-6\">\n <label for=\"processVersion\"><strong>Version</strong></label>\n <select\n id=\"processVersion\"\n class=\"form-control w-100\"\n [(ngModel)]=\"selectedVersion\"\n (change)=\"loadProcessBpmn()\"\n [compareWith]=\"compareProcessDefinitions\"\n >\n <option [ngValue]=\"null\" disabled selected>Version</option>\n <option\n *ngFor=\"let processDefinition of processDefinitionVersions\"\n [ngValue]=\"processDefinition\"\n >\n {{ processDefinition.version }}\n </option>\n </select>\n </div>\n <div\n class=\"col-md-2 d-flex align-items-end\"\n *ngIf=\"(selectedVersion !== null || processKey === null) && layoutService.isFullscreen\"\n >\n <div class=\"btn-group\">\n <button class=\"btn btn-primary btn-space\" (click)=\"deploy()\">\n <i class=\"fa fa-upload\"></i> Deploy\n </button>\n <button class=\"btn btn-secondary btn-space\" (click)=\"download()\">\n <i class=\"fa fa-save\"></i> Download\n </button>\n <button *ngIf=\"!selectedVersion\" class=\"btn btn-danger btn-space\" (click)=\"reset()\">\n <i class=\"fa fa-trash\"></i> Clear\n </button>\n </div>\n </div>\n <div\n *ngIf=\"selectedVersion\"\n class=\"col-md-1 text-right fullscreen-toggle\"\n [ngClass]=\"{'offset-md-2': !layoutService.isFullscreen}\"\n >\n <i\n class=\"fas\"\n [ngClass]=\"{\n 'fa-expand-arrows-alt': !layoutService.isFullscreen,\n 'fa-compress-arrows-alt': layoutService.isFullscreen\n }\"\n (click)=\"layoutService.toggleFullscreen()\"\n ></i>\n </div>\n </div>\n <div [hidden]=\"!selectedVersion && processKey\" class=\"row bg-white diagram mb-3\">\n <div id=\"canvas\" class=\"col-9\"></div>\n <div id=\"properties\" class=\"col-3 pr-0\"></div>\n </div>\n </div>\n </div>\n</div>\n",
|
|
490
509
|
encapsulation: i0.ViewEncapsulation.None,
|
|
491
510
|
styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.diagram,.versions{border:1px solid #dee2e6}.process-title{color:#6b6b6b;font-size:1.5rem}.fullscreen-toggle{font-size:2rem}.fullscreen-toggle>i{cursor:pointer}.modeler{height:90vh}#properties{border-left:1px solid #dee2e6;padding-left:0}"]
|
|
492
511
|
},] }
|
|
@@ -515,25 +534,25 @@
|
|
|
515
534
|
* See the License for the specific language governing permissions and
|
|
516
535
|
* limitations under the License.
|
|
517
536
|
*/
|
|
518
|
-
var ɵ0 = { title: 'Processes', roles: [
|
|
537
|
+
var ɵ0 = { title: 'Processes', roles: [i1.ROLE_ADMIN] }, ɵ1 = { title: 'Create new Process', roles: [i1.ROLE_ADMIN] }, ɵ2 = { title: 'Process details', roles: [i1.ROLE_ADMIN] };
|
|
519
538
|
var routes = [
|
|
520
539
|
{
|
|
521
540
|
path: 'processes',
|
|
522
541
|
component: ProcessManagementComponent,
|
|
523
542
|
canActivate: [security.AuthGuardService],
|
|
524
|
-
data: ɵ0
|
|
543
|
+
data: ɵ0,
|
|
525
544
|
},
|
|
526
545
|
{
|
|
527
546
|
path: 'processes/create',
|
|
528
547
|
component: ProcessManagementBuilderComponent,
|
|
529
548
|
canActivate: [security.AuthGuardService],
|
|
530
|
-
data: ɵ1
|
|
549
|
+
data: ɵ1,
|
|
531
550
|
},
|
|
532
551
|
{
|
|
533
552
|
path: 'processes/process/:key',
|
|
534
553
|
component: ProcessManagementBuilderComponent,
|
|
535
554
|
canActivate: [security.AuthGuardService],
|
|
536
|
-
data: ɵ2
|
|
555
|
+
data: ɵ2,
|
|
537
556
|
},
|
|
538
557
|
];
|
|
539
558
|
var ProcessManagementRoutingModule = /** @class */ (function () {
|
|
@@ -544,11 +563,8 @@
|
|
|
544
563
|
ProcessManagementRoutingModule.decorators = [
|
|
545
564
|
{ type: i0.NgModule, args: [{
|
|
546
565
|
declarations: [],
|
|
547
|
-
imports: [
|
|
548
|
-
|
|
549
|
-
router.RouterModule.forChild(routes),
|
|
550
|
-
],
|
|
551
|
-
exports: [router.RouterModule]
|
|
566
|
+
imports: [common.CommonModule, router.RouterModule.forChild(routes)],
|
|
567
|
+
exports: [router.RouterModule],
|
|
552
568
|
},] }
|
|
553
569
|
];
|
|
554
570
|
|
|
@@ -594,7 +610,7 @@
|
|
|
594
610
|
ProcessManagementListComponent.decorators = [
|
|
595
611
|
{ type: i0.Component, args: [{
|
|
596
612
|
selector: 'valtimo-process-management-list',
|
|
597
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-widget>\n <valtimo-list
|
|
613
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-widget>\n <valtimo-list\n [items]=\"processDefinitions\"\n [fields]=\"fields\"\n (rowClicked)=\"editProcessDefinition($event)\"\n [header]=\"true\"\n [viewMode]=\"true\"\n [isSearchable]=\"true\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'Processes' | translate }}</h3>\n <h5 class=\"list-header-description\">{{ 'Overview of all Processes' | translate }}</h5>\n </div>\n </valtimo-list>\n</valtimo-widget>\n",
|
|
598
614
|
styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */"]
|
|
599
615
|
},] }
|
|
600
616
|
];
|
|
@@ -636,7 +652,7 @@
|
|
|
636
652
|
ProcessManagementService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProcessManagementService_Factory() { return new ProcessManagementService(i0.ɵɵinject(i1.ConfigService), i0.ɵɵinject(i2.HttpClient)); }, token: ProcessManagementService, providedIn: "root" });
|
|
637
653
|
ProcessManagementService.decorators = [
|
|
638
654
|
{ type: i0.Injectable, args: [{
|
|
639
|
-
providedIn: 'root'
|
|
655
|
+
providedIn: 'root',
|
|
640
656
|
},] }
|
|
641
657
|
];
|
|
642
658
|
ProcessManagementService.ctorParameters = function () { return [
|
|
@@ -666,8 +682,7 @@
|
|
|
666
682
|
this.bpmn = null;
|
|
667
683
|
this.reload = new i0.EventEmitter();
|
|
668
684
|
}
|
|
669
|
-
ProcessManagementUploadComponent.prototype.ngOnInit = function () {
|
|
670
|
-
};
|
|
685
|
+
ProcessManagementUploadComponent.prototype.ngOnInit = function () { };
|
|
671
686
|
ProcessManagementUploadComponent.prototype.onChange = function (files) {
|
|
672
687
|
this.bpmn = files.item(0);
|
|
673
688
|
};
|
|
@@ -689,7 +704,7 @@
|
|
|
689
704
|
ProcessManagementUploadComponent.decorators = [
|
|
690
705
|
{ type: i0.Component, args: [{
|
|
691
706
|
selector: 'valtimo-process-management-upload',
|
|
692
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div
|
|
707
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n class=\"modal fade\"\n id=\"uploadProcess\"\n tabindex=\"-1\"\n role=\"dialog\"\n aria-labelledby=\"uploadProcessLabel\"\n aria-hidden=\"true\"\n>\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h3 class=\"modal-title\" id=\"uploadProcessLabel\">Upload process</h3>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <h5>BPMN Model</h5>\n <input\n #bpmnFile\n type=\"file\"\n id=\"file\"\n accept=\".bpmn\"\n (change)=\"onChange($event.target.files)\"\n />\n </div>\n <div class=\"modal-footer\">\n <div class=\"btn-group\">\n <button\n type=\"button\"\n class=\"btn btn-primary btn-space\"\n (click)=\"uploadProcessBpmn()\"\n [disabled]=\"!bpmn\"\n data-dismiss=\"modal\"\n >\n Upload\n </button>\n </div>\n </div>\n </div>\n </div>\n</div>\n",
|
|
693
708
|
styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */"]
|
|
694
709
|
},] }
|
|
695
710
|
];
|
|
@@ -728,7 +743,7 @@
|
|
|
728
743
|
ProcessManagementComponent,
|
|
729
744
|
ProcessManagementBuilderComponent,
|
|
730
745
|
ProcessManagementListComponent,
|
|
731
|
-
ProcessManagementUploadComponent
|
|
746
|
+
ProcessManagementUploadComponent,
|
|
732
747
|
],
|
|
733
748
|
imports: [
|
|
734
749
|
common.CommonModule,
|
|
@@ -736,9 +751,9 @@
|
|
|
736
751
|
components.WidgetModule,
|
|
737
752
|
components.ListModule,
|
|
738
753
|
forms.FormsModule,
|
|
739
|
-
core.TranslateModule
|
|
754
|
+
core.TranslateModule,
|
|
740
755
|
],
|
|
741
|
-
exports: [ProcessManagementComponent]
|
|
756
|
+
exports: [ProcessManagementComponent],
|
|
742
757
|
},] }
|
|
743
758
|
];
|
|
744
759
|
|