@valtimo/process-management 4.23.0 → 5.0.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/esm2020/lib/process-management-builder/process-management-builder.component.mjs +162 -0
- package/esm2020/lib/process-management-list/process-management-list.component.mjs +50 -0
- package/esm2020/lib/process-management-routing.mjs +58 -0
- package/esm2020/lib/process-management-upload/process-management-upload.component.mjs +55 -0
- package/esm2020/lib/process-management.component.mjs +35 -0
- package/esm2020/lib/process-management.module.mjs +67 -0
- package/esm2020/lib/process-management.service.mjs +42 -0
- package/esm2020/public-api.mjs +21 -0
- package/esm2020/valtimo-process-management.mjs +5 -0
- package/fesm2015/valtimo-process-management.mjs +460 -0
- package/fesm2015/valtimo-process-management.mjs.map +1 -0
- package/fesm2020/valtimo-process-management.mjs +460 -0
- package/fesm2020/valtimo-process-management.mjs.map +1 -0
- package/lib/process-management-builder/process-management-builder.component.d.ts +4 -0
- package/lib/process-management-builder/process-management-builder.component.d.ts.map +1 -0
- package/lib/process-management-list/process-management-list.component.d.ts +4 -0
- package/lib/process-management-list/process-management-list.component.d.ts.map +1 -0
- package/lib/process-management-routing.d.ts +7 -0
- package/lib/process-management-routing.d.ts.map +1 -0
- package/lib/process-management-upload/process-management-upload.component.d.ts +4 -0
- package/lib/process-management-upload/process-management-upload.component.d.ts.map +1 -0
- package/lib/process-management.component.d.ts +4 -0
- package/lib/process-management.component.d.ts.map +1 -0
- package/lib/process-management.module.d.ts +14 -0
- package/lib/process-management.module.d.ts.map +1 -0
- package/lib/process-management.service.d.ts +4 -0
- package/lib/process-management.service.d.ts.map +1 -0
- package/package.json +22 -10
- package/public-api.d.ts +1 -0
- package/public-api.d.ts.map +1 -0
- package/valtimo-process-management.d.ts +2 -5
- package/valtimo-process-management.d.ts.map +1 -0
- package/bundles/valtimo-process-management.umd.js +0 -791
- package/bundles/valtimo-process-management.umd.js.map +0 -1
- package/bundles/valtimo-process-management.umd.min.js +0 -2
- package/bundles/valtimo-process-management.umd.min.js.map +0 -1
- package/esm2015/lib/process-management-builder/process-management-builder.component.js +0 -168
- package/esm2015/lib/process-management-list/process-management-list.component.js +0 -52
- package/esm2015/lib/process-management-routing.js +0 -54
- package/esm2015/lib/process-management-upload/process-management-upload.component.js +0 -58
- package/esm2015/lib/process-management.component.js +0 -33
- package/esm2015/lib/process-management.module.js +0 -47
- package/esm2015/lib/process-management.service.js +0 -46
- package/esm2015/public-api.js +0 -21
- package/esm2015/valtimo-process-management.js +0 -10
- package/fesm2015/valtimo-process-management.js +0 -454
- package/fesm2015/valtimo-process-management.js.map +0 -1
- package/valtimo-process-management.metadata.json +0 -1
|
@@ -1,791 +0,0 @@
|
|
|
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/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
|
-
|
|
7
|
-
Modeler = Modeler && Object.prototype.hasOwnProperty.call(Modeler, 'default') ? Modeler['default'] : Modeler;
|
|
8
|
-
PropertiesPanelModule = PropertiesPanelModule && Object.prototype.hasOwnProperty.call(PropertiesPanelModule, 'default') ? PropertiesPanelModule['default'] : PropertiesPanelModule;
|
|
9
|
-
PropertiesProviderModule = PropertiesProviderModule && Object.prototype.hasOwnProperty.call(PropertiesProviderModule, 'default') ? PropertiesProviderModule['default'] : PropertiesProviderModule;
|
|
10
|
-
CamundaExtensionModule = CamundaExtensionModule && Object.prototype.hasOwnProperty.call(CamundaExtensionModule, 'default') ? CamundaExtensionModule['default'] : CamundaExtensionModule;
|
|
11
|
-
CamundaModdleDescriptor = CamundaModdleDescriptor && Object.prototype.hasOwnProperty.call(CamundaModdleDescriptor, 'default') ? CamundaModdleDescriptor['default'] : CamundaModdleDescriptor;
|
|
12
|
-
|
|
13
|
-
/*
|
|
14
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
15
|
-
*
|
|
16
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
17
|
-
* you may not use this file except in compliance with the License.
|
|
18
|
-
* You may obtain a copy of the License at
|
|
19
|
-
*
|
|
20
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
21
|
-
*
|
|
22
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
23
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
24
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
25
|
-
* See the License for the specific language governing permissions and
|
|
26
|
-
* limitations under the License.
|
|
27
|
-
*/
|
|
28
|
-
var ProcessManagementComponent = /** @class */ (function () {
|
|
29
|
-
function ProcessManagementComponent() {
|
|
30
|
-
}
|
|
31
|
-
ProcessManagementComponent.prototype.ngOnInit = function () { };
|
|
32
|
-
return ProcessManagementComponent;
|
|
33
|
-
}());
|
|
34
|
-
ProcessManagementComponent.decorators = [
|
|
35
|
-
{ type: i0.Component, args: [{
|
|
36
|
-
selector: 'valtimo-process-management',
|
|
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\n class=\"btn btn-secondary btn-space\"\n data-toggle=\"modal\"\n data-target=\"#uploadProcess\"\n >\n <i class=\"icon mdi mdi-upload mr-1\"></i>\n {{ 'Upload process' | translate }}\n </button>\n <button class=\"btn btn-primary btn-space\" [routerLink]=\"'create'\">\n <i class=\"icon mdi mdi-plus mr-1\"></i>\n {{ 'Create new 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",
|
|
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 */"]
|
|
39
|
-
},] }
|
|
40
|
-
];
|
|
41
|
-
ProcessManagementComponent.ctorParameters = function () { return []; };
|
|
42
|
-
ProcessManagementComponent.propDecorators = {
|
|
43
|
-
processManagementList: [{ type: i0.ViewChild, args: ['processManagementList',] }]
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/*! *****************************************************************************
|
|
47
|
-
Copyright (c) Microsoft Corporation.
|
|
48
|
-
|
|
49
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
50
|
-
purpose with or without fee is hereby granted.
|
|
51
|
-
|
|
52
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
53
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
54
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
55
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
56
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
57
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
58
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
59
|
-
***************************************************************************** */
|
|
60
|
-
/* global Reflect, Promise */
|
|
61
|
-
var extendStatics = function (d, b) {
|
|
62
|
-
extendStatics = Object.setPrototypeOf ||
|
|
63
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
64
|
-
function (d, b) { for (var p in b)
|
|
65
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
66
|
-
d[p] = b[p]; };
|
|
67
|
-
return extendStatics(d, b);
|
|
68
|
-
};
|
|
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");
|
|
72
|
-
extendStatics(d, b);
|
|
73
|
-
function __() { this.constructor = d; }
|
|
74
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
75
|
-
}
|
|
76
|
-
var __assign = function () {
|
|
77
|
-
__assign = Object.assign || function __assign(t) {
|
|
78
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
79
|
-
s = arguments[i];
|
|
80
|
-
for (var p in s)
|
|
81
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
82
|
-
t[p] = s[p];
|
|
83
|
-
}
|
|
84
|
-
return t;
|
|
85
|
-
};
|
|
86
|
-
return __assign.apply(this, arguments);
|
|
87
|
-
};
|
|
88
|
-
function __rest(s, e) {
|
|
89
|
-
var t = {};
|
|
90
|
-
for (var p in s)
|
|
91
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
92
|
-
t[p] = s[p];
|
|
93
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
94
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
95
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
96
|
-
t[p[i]] = s[p[i]];
|
|
97
|
-
}
|
|
98
|
-
return t;
|
|
99
|
-
}
|
|
100
|
-
function __decorate(decorators, target, key, desc) {
|
|
101
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
102
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
103
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
104
|
-
else
|
|
105
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
106
|
-
if (d = decorators[i])
|
|
107
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
108
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
109
|
-
}
|
|
110
|
-
function __param(paramIndex, decorator) {
|
|
111
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
112
|
-
}
|
|
113
|
-
function __metadata(metadataKey, metadataValue) {
|
|
114
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
115
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
116
|
-
}
|
|
117
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
118
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
119
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
120
|
-
function fulfilled(value) { try {
|
|
121
|
-
step(generator.next(value));
|
|
122
|
-
}
|
|
123
|
-
catch (e) {
|
|
124
|
-
reject(e);
|
|
125
|
-
} }
|
|
126
|
-
function rejected(value) { try {
|
|
127
|
-
step(generator["throw"](value));
|
|
128
|
-
}
|
|
129
|
-
catch (e) {
|
|
130
|
-
reject(e);
|
|
131
|
-
} }
|
|
132
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
133
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
function __generator(thisArg, body) {
|
|
137
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
138
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
139
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
140
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
141
|
-
function step(op) {
|
|
142
|
-
if (f)
|
|
143
|
-
throw new TypeError("Generator is already executing.");
|
|
144
|
-
while (_)
|
|
145
|
-
try {
|
|
146
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
147
|
-
return t;
|
|
148
|
-
if (y = 0, t)
|
|
149
|
-
op = [op[0] & 2, t.value];
|
|
150
|
-
switch (op[0]) {
|
|
151
|
-
case 0:
|
|
152
|
-
case 1:
|
|
153
|
-
t = op;
|
|
154
|
-
break;
|
|
155
|
-
case 4:
|
|
156
|
-
_.label++;
|
|
157
|
-
return { value: op[1], done: false };
|
|
158
|
-
case 5:
|
|
159
|
-
_.label++;
|
|
160
|
-
y = op[1];
|
|
161
|
-
op = [0];
|
|
162
|
-
continue;
|
|
163
|
-
case 7:
|
|
164
|
-
op = _.ops.pop();
|
|
165
|
-
_.trys.pop();
|
|
166
|
-
continue;
|
|
167
|
-
default:
|
|
168
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
169
|
-
_ = 0;
|
|
170
|
-
continue;
|
|
171
|
-
}
|
|
172
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
173
|
-
_.label = op[1];
|
|
174
|
-
break;
|
|
175
|
-
}
|
|
176
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
177
|
-
_.label = t[1];
|
|
178
|
-
t = op;
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
if (t && _.label < t[2]) {
|
|
182
|
-
_.label = t[2];
|
|
183
|
-
_.ops.push(op);
|
|
184
|
-
break;
|
|
185
|
-
}
|
|
186
|
-
if (t[2])
|
|
187
|
-
_.ops.pop();
|
|
188
|
-
_.trys.pop();
|
|
189
|
-
continue;
|
|
190
|
-
}
|
|
191
|
-
op = body.call(thisArg, _);
|
|
192
|
-
}
|
|
193
|
-
catch (e) {
|
|
194
|
-
op = [6, e];
|
|
195
|
-
y = 0;
|
|
196
|
-
}
|
|
197
|
-
finally {
|
|
198
|
-
f = t = 0;
|
|
199
|
-
}
|
|
200
|
-
if (op[0] & 5)
|
|
201
|
-
throw op[1];
|
|
202
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
206
|
-
if (k2 === undefined)
|
|
207
|
-
k2 = k;
|
|
208
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
209
|
-
}) : (function (o, m, k, k2) {
|
|
210
|
-
if (k2 === undefined)
|
|
211
|
-
k2 = k;
|
|
212
|
-
o[k2] = m[k];
|
|
213
|
-
});
|
|
214
|
-
function __exportStar(m, o) {
|
|
215
|
-
for (var p in m)
|
|
216
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
217
|
-
__createBinding(o, m, p);
|
|
218
|
-
}
|
|
219
|
-
function __values(o) {
|
|
220
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
221
|
-
if (m)
|
|
222
|
-
return m.call(o);
|
|
223
|
-
if (o && typeof o.length === "number")
|
|
224
|
-
return {
|
|
225
|
-
next: function () {
|
|
226
|
-
if (o && i >= o.length)
|
|
227
|
-
o = void 0;
|
|
228
|
-
return { value: o && o[i++], done: !o };
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
232
|
-
}
|
|
233
|
-
function __read(o, n) {
|
|
234
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
235
|
-
if (!m)
|
|
236
|
-
return o;
|
|
237
|
-
var i = m.call(o), r, ar = [], e;
|
|
238
|
-
try {
|
|
239
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
240
|
-
ar.push(r.value);
|
|
241
|
-
}
|
|
242
|
-
catch (error) {
|
|
243
|
-
e = { error: error };
|
|
244
|
-
}
|
|
245
|
-
finally {
|
|
246
|
-
try {
|
|
247
|
-
if (r && !r.done && (m = i["return"]))
|
|
248
|
-
m.call(i);
|
|
249
|
-
}
|
|
250
|
-
finally {
|
|
251
|
-
if (e)
|
|
252
|
-
throw e.error;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
return ar;
|
|
256
|
-
}
|
|
257
|
-
/** @deprecated */
|
|
258
|
-
function __spread() {
|
|
259
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
260
|
-
ar = ar.concat(__read(arguments[i]));
|
|
261
|
-
return ar;
|
|
262
|
-
}
|
|
263
|
-
/** @deprecated */
|
|
264
|
-
function __spreadArrays() {
|
|
265
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
266
|
-
s += arguments[i].length;
|
|
267
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
268
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
269
|
-
r[k] = a[j];
|
|
270
|
-
return r;
|
|
271
|
-
}
|
|
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
|
-
}
|
|
283
|
-
function __await(v) {
|
|
284
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
285
|
-
}
|
|
286
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
287
|
-
if (!Symbol.asyncIterator)
|
|
288
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
289
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
290
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
291
|
-
function verb(n) { if (g[n])
|
|
292
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
293
|
-
function resume(n, v) { try {
|
|
294
|
-
step(g[n](v));
|
|
295
|
-
}
|
|
296
|
-
catch (e) {
|
|
297
|
-
settle(q[0][3], e);
|
|
298
|
-
} }
|
|
299
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
300
|
-
function fulfill(value) { resume("next", value); }
|
|
301
|
-
function reject(value) { resume("throw", value); }
|
|
302
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
303
|
-
resume(q[0][0], q[0][1]); }
|
|
304
|
-
}
|
|
305
|
-
function __asyncDelegator(o) {
|
|
306
|
-
var i, p;
|
|
307
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
308
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
309
|
-
}
|
|
310
|
-
function __asyncValues(o) {
|
|
311
|
-
if (!Symbol.asyncIterator)
|
|
312
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
313
|
-
var m = o[Symbol.asyncIterator], i;
|
|
314
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
315
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
316
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
317
|
-
}
|
|
318
|
-
function __makeTemplateObject(cooked, raw) {
|
|
319
|
-
if (Object.defineProperty) {
|
|
320
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
321
|
-
}
|
|
322
|
-
else {
|
|
323
|
-
cooked.raw = raw;
|
|
324
|
-
}
|
|
325
|
-
return cooked;
|
|
326
|
-
}
|
|
327
|
-
;
|
|
328
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
329
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
330
|
-
}) : function (o, v) {
|
|
331
|
-
o["default"] = v;
|
|
332
|
-
};
|
|
333
|
-
function __importStar(mod) {
|
|
334
|
-
if (mod && mod.__esModule)
|
|
335
|
-
return mod;
|
|
336
|
-
var result = {};
|
|
337
|
-
if (mod != null)
|
|
338
|
-
for (var k in mod)
|
|
339
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
340
|
-
__createBinding(result, mod, k);
|
|
341
|
-
__setModuleDefault(result, mod);
|
|
342
|
-
return result;
|
|
343
|
-
}
|
|
344
|
-
function __importDefault(mod) {
|
|
345
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
346
|
-
}
|
|
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);
|
|
353
|
-
}
|
|
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;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
var ProcessManagementBuilderComponent = /** @class */ (function () {
|
|
365
|
-
function ProcessManagementBuilderComponent(http, processService, layoutService, alertService, route, router) {
|
|
366
|
-
this.http = http;
|
|
367
|
-
this.processService = processService;
|
|
368
|
-
this.layoutService = layoutService;
|
|
369
|
-
this.alertService = alertService;
|
|
370
|
-
this.route = route;
|
|
371
|
-
this.router = router;
|
|
372
|
-
this.processDefinitionVersions = null;
|
|
373
|
-
this.selectedVersion = null;
|
|
374
|
-
this.processKey = null;
|
|
375
|
-
this.elementTemplateFiles = ['mailSendTask'];
|
|
376
|
-
}
|
|
377
|
-
ProcessManagementBuilderComponent.prototype.ngOnInit = function () {
|
|
378
|
-
this.init();
|
|
379
|
-
};
|
|
380
|
-
ProcessManagementBuilderComponent.prototype.init = function () {
|
|
381
|
-
var _this = this;
|
|
382
|
-
this.processKey = this.route.snapshot.paramMap.get('key');
|
|
383
|
-
rxjs.forkJoin(this.getElementTemplates()).subscribe(function (elementTemplates) {
|
|
384
|
-
_this.bpmnModeler = new Modeler({
|
|
385
|
-
container: '#canvas',
|
|
386
|
-
height: '90vh',
|
|
387
|
-
additionalModules: [
|
|
388
|
-
PropertiesPanelModule,
|
|
389
|
-
PropertiesProviderModule,
|
|
390
|
-
CamundaExtensionModule,
|
|
391
|
-
],
|
|
392
|
-
propertiesPanel: {
|
|
393
|
-
parent: '#properties',
|
|
394
|
-
},
|
|
395
|
-
moddleExtensions: {
|
|
396
|
-
camunda: CamundaModdleDescriptor,
|
|
397
|
-
},
|
|
398
|
-
elementTemplates: elementTemplates,
|
|
399
|
-
});
|
|
400
|
-
if (_this.processKey) {
|
|
401
|
-
_this.loadProcessVersions(_this.processKey);
|
|
402
|
-
_this.selectedVersion = null;
|
|
403
|
-
}
|
|
404
|
-
else {
|
|
405
|
-
_this.loadEmptyBpmn();
|
|
406
|
-
}
|
|
407
|
-
});
|
|
408
|
-
};
|
|
409
|
-
ProcessManagementBuilderComponent.prototype.deploy = function () {
|
|
410
|
-
var _this = this;
|
|
411
|
-
this.bpmnModeler.saveXML(function (err, xml) {
|
|
412
|
-
_this.processService.deployProcess(xml).subscribe(function (asd) {
|
|
413
|
-
if (_this.processKey) {
|
|
414
|
-
_this.loadProcessVersions(_this.processKey);
|
|
415
|
-
}
|
|
416
|
-
else {
|
|
417
|
-
_this.router.navigate(['/processes']);
|
|
418
|
-
}
|
|
419
|
-
_this.alertService.success('Deployment successful');
|
|
420
|
-
_this.selectedVersion = null;
|
|
421
|
-
});
|
|
422
|
-
});
|
|
423
|
-
};
|
|
424
|
-
ProcessManagementBuilderComponent.prototype.reset = function () {
|
|
425
|
-
this.bpmnModeler.destroy();
|
|
426
|
-
this.init();
|
|
427
|
-
};
|
|
428
|
-
ProcessManagementBuilderComponent.prototype.download = function () {
|
|
429
|
-
this.bpmnModeler.saveXML(function (err, xml) {
|
|
430
|
-
var file = new Blob([xml], { type: 'text/xml' });
|
|
431
|
-
var link = document.createElement('a');
|
|
432
|
-
link.download = 'diagram.bpmn';
|
|
433
|
-
link.href = window.URL.createObjectURL(file);
|
|
434
|
-
link.click();
|
|
435
|
-
window.URL.revokeObjectURL(link.href);
|
|
436
|
-
link.remove();
|
|
437
|
-
});
|
|
438
|
-
};
|
|
439
|
-
ProcessManagementBuilderComponent.prototype.loadEmptyBpmn = function () {
|
|
440
|
-
var _this = this;
|
|
441
|
-
var url = '/assets/bpmn/initial.bpmn';
|
|
442
|
-
this.http
|
|
443
|
-
.get(url, {
|
|
444
|
-
headers: { observe: 'response' },
|
|
445
|
-
responseType: 'text',
|
|
446
|
-
})
|
|
447
|
-
.subscribe(function (xml) {
|
|
448
|
-
_this.bpmnModeler.importXML(xml);
|
|
449
|
-
});
|
|
450
|
-
};
|
|
451
|
-
ProcessManagementBuilderComponent.prototype.getElementTemplates = function () {
|
|
452
|
-
var e_1, _a;
|
|
453
|
-
var templateObs = [];
|
|
454
|
-
try {
|
|
455
|
-
for (var _b = __values(this.elementTemplateFiles), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
456
|
-
var file = _c.value;
|
|
457
|
-
templateObs.push(this.http.get("/assets/bpmn/element-templates/" + file + ".json", {
|
|
458
|
-
headers: { observe: 'response' },
|
|
459
|
-
responseType: 'json',
|
|
460
|
-
}));
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
464
|
-
finally {
|
|
465
|
-
try {
|
|
466
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
467
|
-
}
|
|
468
|
-
finally { if (e_1) throw e_1.error; }
|
|
469
|
-
}
|
|
470
|
-
return templateObs;
|
|
471
|
-
};
|
|
472
|
-
ProcessManagementBuilderComponent.prototype.setLatestVersion = function () {
|
|
473
|
-
this.selectedVersion = this.processDefinitionVersions.reduce(function (acc, version) { return version.version > acc.version ? version : acc; });
|
|
474
|
-
this.loadProcessBpmn();
|
|
475
|
-
};
|
|
476
|
-
ProcessManagementBuilderComponent.prototype.loadProcessVersions = function (processDefinitionKey) {
|
|
477
|
-
var _this = this;
|
|
478
|
-
this.processService
|
|
479
|
-
.getProcessDefinitionVersions(processDefinitionKey)
|
|
480
|
-
.subscribe(function (processDefinitionVersions) {
|
|
481
|
-
_this.processDefinitionVersions = processDefinitionVersions;
|
|
482
|
-
_this.setLatestVersion();
|
|
483
|
-
});
|
|
484
|
-
};
|
|
485
|
-
ProcessManagementBuilderComponent.prototype.compareProcessDefinitions = function (pd1, pd2) {
|
|
486
|
-
if (pd1 === null && pd2 === null) {
|
|
487
|
-
return true;
|
|
488
|
-
}
|
|
489
|
-
if (pd1 === null || pd2 === null) {
|
|
490
|
-
return false;
|
|
491
|
-
}
|
|
492
|
-
return pd1.id === pd2.id;
|
|
493
|
-
};
|
|
494
|
-
ProcessManagementBuilderComponent.prototype.loadProcessBpmn = function () {
|
|
495
|
-
var _this = this;
|
|
496
|
-
this.processService.getProcessDefinitionXml(this.selectedVersion.id).subscribe(function (xml) {
|
|
497
|
-
_this.bpmnModeler.importXML(xml['bpmn20Xml']);
|
|
498
|
-
});
|
|
499
|
-
};
|
|
500
|
-
ProcessManagementBuilderComponent.prototype.ngOnDestroy = function () {
|
|
501
|
-
this.bpmnModeler.destroy();
|
|
502
|
-
};
|
|
503
|
-
return ProcessManagementBuilderComponent;
|
|
504
|
-
}());
|
|
505
|
-
ProcessManagementBuilderComponent.decorators = [
|
|
506
|
-
{ type: i0.Component, args: [{
|
|
507
|
-
selector: 'valtimo-process-management-builder',
|
|
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)=\"download()\">\n <i class=\"icon mdi mdi-download mr-1\"></i>{{ 'processManagement.download' | translate }}\n </button>\n <button\n class=\"btn btn-success btn-space\"\n (click)=\"deploy()\"\n [ngClass]=\"{'mr-0': selectedVersion !== null}\"\n >\n <i class=\"icon mdi mdi-upload mr-1\"></i>{{ 'processManagement.deploy' | translate }}\n </button>\n <button\n *ngIf=\"selectedVersion === null\"\n class=\"btn btn-danger btn-space mr-0\"\n (click)=\"reset()\"\n >\n <i class=\"icon mdi mdi-delete mr-1\"></i>{{ 'processManagement.clear' | translate }}\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=\"icon mdi mdi-upload mr-1\"></i>{{ 'processManagement.deploy' | translate }}\n </button>\n <button class=\"btn btn-secondary btn-space\" (click)=\"download()\">\n <i class=\"icon mdi mdi-download mr-1\"></i\n >{{ 'processManagement.download' | translate }}\n </button>\n <button *ngIf=\"!selectedVersion\" class=\"btn btn-danger btn-space\" (click)=\"reset()\">\n <i class=\"icon mdi mdi-delete mr-1\"></i>{{ 'processManagement.clear' | translate }}\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",
|
|
509
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
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}"]
|
|
511
|
-
},] }
|
|
512
|
-
];
|
|
513
|
-
ProcessManagementBuilderComponent.ctorParameters = function () { return [
|
|
514
|
-
{ type: i2.HttpClient },
|
|
515
|
-
{ type: process.ProcessService },
|
|
516
|
-
{ type: layout.LayoutService },
|
|
517
|
-
{ type: components.AlertService },
|
|
518
|
-
{ type: router.ActivatedRoute },
|
|
519
|
-
{ type: router.Router }
|
|
520
|
-
]; };
|
|
521
|
-
|
|
522
|
-
/*
|
|
523
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
524
|
-
*
|
|
525
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
526
|
-
* you may not use this file except in compliance with the License.
|
|
527
|
-
* You may obtain a copy of the License at
|
|
528
|
-
*
|
|
529
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
530
|
-
*
|
|
531
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
532
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
533
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
534
|
-
* See the License for the specific language governing permissions and
|
|
535
|
-
* limitations under the License.
|
|
536
|
-
*/
|
|
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] };
|
|
538
|
-
var routes = [
|
|
539
|
-
{
|
|
540
|
-
path: 'processes',
|
|
541
|
-
component: ProcessManagementComponent,
|
|
542
|
-
canActivate: [security.AuthGuardService],
|
|
543
|
-
data: ɵ0,
|
|
544
|
-
},
|
|
545
|
-
{
|
|
546
|
-
path: 'processes/create',
|
|
547
|
-
component: ProcessManagementBuilderComponent,
|
|
548
|
-
canActivate: [security.AuthGuardService],
|
|
549
|
-
data: ɵ1,
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
path: 'processes/process/:key',
|
|
553
|
-
component: ProcessManagementBuilderComponent,
|
|
554
|
-
canActivate: [security.AuthGuardService],
|
|
555
|
-
data: ɵ2,
|
|
556
|
-
},
|
|
557
|
-
];
|
|
558
|
-
var ProcessManagementRoutingModule = /** @class */ (function () {
|
|
559
|
-
function ProcessManagementRoutingModule() {
|
|
560
|
-
}
|
|
561
|
-
return ProcessManagementRoutingModule;
|
|
562
|
-
}());
|
|
563
|
-
ProcessManagementRoutingModule.decorators = [
|
|
564
|
-
{ type: i0.NgModule, args: [{
|
|
565
|
-
declarations: [],
|
|
566
|
-
imports: [common.CommonModule, router.RouterModule.forChild(routes)],
|
|
567
|
-
exports: [router.RouterModule],
|
|
568
|
-
},] }
|
|
569
|
-
];
|
|
570
|
-
|
|
571
|
-
/*
|
|
572
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
573
|
-
*
|
|
574
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
575
|
-
* you may not use this file except in compliance with the License.
|
|
576
|
-
* You may obtain a copy of the License at
|
|
577
|
-
*
|
|
578
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
579
|
-
*
|
|
580
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
581
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
582
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
583
|
-
* See the License for the specific language governing permissions and
|
|
584
|
-
* limitations under the License.
|
|
585
|
-
*/
|
|
586
|
-
var ProcessManagementListComponent = /** @class */ (function () {
|
|
587
|
-
function ProcessManagementListComponent(processService, router) {
|
|
588
|
-
this.processService = processService;
|
|
589
|
-
this.router = router;
|
|
590
|
-
this.processDefinitions = [];
|
|
591
|
-
this.fields = [
|
|
592
|
-
{ key: 'key', label: 'Key' },
|
|
593
|
-
{ key: 'name', label: 'Name' },
|
|
594
|
-
];
|
|
595
|
-
}
|
|
596
|
-
ProcessManagementListComponent.prototype.ngOnInit = function () {
|
|
597
|
-
this.loadProcessDefinitions();
|
|
598
|
-
};
|
|
599
|
-
ProcessManagementListComponent.prototype.loadProcessDefinitions = function () {
|
|
600
|
-
var _this = this;
|
|
601
|
-
this.processService.getProcessDefinitions().subscribe(function (processDefs) {
|
|
602
|
-
_this.processDefinitions = processDefs;
|
|
603
|
-
});
|
|
604
|
-
};
|
|
605
|
-
ProcessManagementListComponent.prototype.editProcessDefinition = function (processDefinition) {
|
|
606
|
-
this.router.navigate(['/processes/process', processDefinition.key]);
|
|
607
|
-
};
|
|
608
|
-
return ProcessManagementListComponent;
|
|
609
|
-
}());
|
|
610
|
-
ProcessManagementListComponent.decorators = [
|
|
611
|
-
{ type: i0.Component, args: [{
|
|
612
|
-
selector: 'valtimo-process-management-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",
|
|
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 */"]
|
|
615
|
-
},] }
|
|
616
|
-
];
|
|
617
|
-
ProcessManagementListComponent.ctorParameters = function () { return [
|
|
618
|
-
{ type: process.ProcessService },
|
|
619
|
-
{ type: router.Router }
|
|
620
|
-
]; };
|
|
621
|
-
|
|
622
|
-
/*
|
|
623
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
624
|
-
*
|
|
625
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
626
|
-
* you may not use this file except in compliance with the License.
|
|
627
|
-
* You may obtain a copy of the License at
|
|
628
|
-
*
|
|
629
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
630
|
-
*
|
|
631
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
632
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
633
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
634
|
-
* See the License for the specific language governing permissions and
|
|
635
|
-
* limitations under the License.
|
|
636
|
-
*/
|
|
637
|
-
var ProcessManagementService = /** @class */ (function () {
|
|
638
|
-
function ProcessManagementService(configService, http) {
|
|
639
|
-
this.configService = configService;
|
|
640
|
-
this.http = http;
|
|
641
|
-
this.valtimoApiConfig = configService.config.valtimoApi;
|
|
642
|
-
}
|
|
643
|
-
ProcessManagementService.prototype.deployBpmn = function (bpmn) {
|
|
644
|
-
var formData = new FormData();
|
|
645
|
-
formData.append('file', bpmn);
|
|
646
|
-
formData.append('deployment-name', 'valtimoConsoleApp');
|
|
647
|
-
formData.append('deployment-source', 'process application');
|
|
648
|
-
return this.http.post(this.valtimoApiConfig.endpointUri + "camunda-rest/engine/default/deployment/create", formData);
|
|
649
|
-
};
|
|
650
|
-
return ProcessManagementService;
|
|
651
|
-
}());
|
|
652
|
-
ProcessManagementService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProcessManagementService_Factory() { return new ProcessManagementService(i0.ɵɵinject(i1.ConfigService), i0.ɵɵinject(i2.HttpClient)); }, token: ProcessManagementService, providedIn: "root" });
|
|
653
|
-
ProcessManagementService.decorators = [
|
|
654
|
-
{ type: i0.Injectable, args: [{
|
|
655
|
-
providedIn: 'root',
|
|
656
|
-
},] }
|
|
657
|
-
];
|
|
658
|
-
ProcessManagementService.ctorParameters = function () { return [
|
|
659
|
-
{ type: i1.ConfigService },
|
|
660
|
-
{ type: i2.HttpClient }
|
|
661
|
-
]; };
|
|
662
|
-
|
|
663
|
-
/*
|
|
664
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
665
|
-
*
|
|
666
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
667
|
-
* you may not use this file except in compliance with the License.
|
|
668
|
-
* You may obtain a copy of the License at
|
|
669
|
-
*
|
|
670
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
671
|
-
*
|
|
672
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
673
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
674
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
675
|
-
* See the License for the specific language governing permissions and
|
|
676
|
-
* limitations under the License.
|
|
677
|
-
*/
|
|
678
|
-
var ProcessManagementUploadComponent = /** @class */ (function () {
|
|
679
|
-
function ProcessManagementUploadComponent(processManagementService, alertService) {
|
|
680
|
-
this.processManagementService = processManagementService;
|
|
681
|
-
this.alertService = alertService;
|
|
682
|
-
this.bpmn = null;
|
|
683
|
-
this.reload = new i0.EventEmitter();
|
|
684
|
-
}
|
|
685
|
-
ProcessManagementUploadComponent.prototype.ngOnInit = function () { };
|
|
686
|
-
ProcessManagementUploadComponent.prototype.onChange = function (files) {
|
|
687
|
-
this.bpmn = files.item(0);
|
|
688
|
-
};
|
|
689
|
-
ProcessManagementUploadComponent.prototype.uploadProcessBpmn = function () {
|
|
690
|
-
var _this = this;
|
|
691
|
-
this.processManagementService.deployBpmn(this.bpmn).subscribe(function () {
|
|
692
|
-
_this.bpmn = null;
|
|
693
|
-
_this.bpmnFile.nativeElement.value = '';
|
|
694
|
-
_this.alertService.success('Deployment successful');
|
|
695
|
-
_this.reload.emit();
|
|
696
|
-
}, function (error) {
|
|
697
|
-
_this.bpmn = null;
|
|
698
|
-
_this.bpmnFile.nativeElement.value = '';
|
|
699
|
-
_this.alertService.error("Deployment failed. " + error);
|
|
700
|
-
});
|
|
701
|
-
};
|
|
702
|
-
return ProcessManagementUploadComponent;
|
|
703
|
-
}());
|
|
704
|
-
ProcessManagementUploadComponent.decorators = [
|
|
705
|
-
{ type: i0.Component, args: [{
|
|
706
|
-
selector: 'valtimo-process-management-upload',
|
|
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",
|
|
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 */"]
|
|
709
|
-
},] }
|
|
710
|
-
];
|
|
711
|
-
ProcessManagementUploadComponent.ctorParameters = function () { return [
|
|
712
|
-
{ type: ProcessManagementService },
|
|
713
|
-
{ type: components.AlertService }
|
|
714
|
-
]; };
|
|
715
|
-
ProcessManagementUploadComponent.propDecorators = {
|
|
716
|
-
reload: [{ type: i0.Output }],
|
|
717
|
-
bpmnFile: [{ type: i0.ViewChild, args: ['bpmnFile',] }]
|
|
718
|
-
};
|
|
719
|
-
|
|
720
|
-
/*
|
|
721
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
722
|
-
*
|
|
723
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
724
|
-
* you may not use this file except in compliance with the License.
|
|
725
|
-
* You may obtain a copy of the License at
|
|
726
|
-
*
|
|
727
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
728
|
-
*
|
|
729
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
730
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
731
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
732
|
-
* See the License for the specific language governing permissions and
|
|
733
|
-
* limitations under the License.
|
|
734
|
-
*/
|
|
735
|
-
var ProcessManagementModule = /** @class */ (function () {
|
|
736
|
-
function ProcessManagementModule() {
|
|
737
|
-
}
|
|
738
|
-
return ProcessManagementModule;
|
|
739
|
-
}());
|
|
740
|
-
ProcessManagementModule.decorators = [
|
|
741
|
-
{ type: i0.NgModule, args: [{
|
|
742
|
-
declarations: [
|
|
743
|
-
ProcessManagementComponent,
|
|
744
|
-
ProcessManagementBuilderComponent,
|
|
745
|
-
ProcessManagementListComponent,
|
|
746
|
-
ProcessManagementUploadComponent,
|
|
747
|
-
],
|
|
748
|
-
imports: [
|
|
749
|
-
common.CommonModule,
|
|
750
|
-
ProcessManagementRoutingModule,
|
|
751
|
-
components.WidgetModule,
|
|
752
|
-
components.ListModule,
|
|
753
|
-
forms.FormsModule,
|
|
754
|
-
core.TranslateModule,
|
|
755
|
-
],
|
|
756
|
-
exports: [ProcessManagementComponent],
|
|
757
|
-
},] }
|
|
758
|
-
];
|
|
759
|
-
|
|
760
|
-
/*
|
|
761
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
762
|
-
*
|
|
763
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
764
|
-
* you may not use this file except in compliance with the License.
|
|
765
|
-
* You may obtain a copy of the License at
|
|
766
|
-
*
|
|
767
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
768
|
-
*
|
|
769
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
770
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
771
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
772
|
-
* See the License for the specific language governing permissions and
|
|
773
|
-
* limitations under the License.
|
|
774
|
-
*/
|
|
775
|
-
|
|
776
|
-
/**
|
|
777
|
-
* Generated bundle index. Do not edit.
|
|
778
|
-
*/
|
|
779
|
-
|
|
780
|
-
exports.ProcessManagementComponent = ProcessManagementComponent;
|
|
781
|
-
exports.ProcessManagementModule = ProcessManagementModule;
|
|
782
|
-
exports.ɵa = ProcessManagementBuilderComponent;
|
|
783
|
-
exports.ɵb = ProcessManagementListComponent;
|
|
784
|
-
exports.ɵc = ProcessManagementUploadComponent;
|
|
785
|
-
exports.ɵd = ProcessManagementService;
|
|
786
|
-
exports.ɵe = ProcessManagementRoutingModule;
|
|
787
|
-
|
|
788
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
789
|
-
|
|
790
|
-
})));
|
|
791
|
-
//# sourceMappingURL=valtimo-process-management.umd.js.map
|