@valtimo/decision 4.23.0 → 5.2.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.
Files changed (56) hide show
  1. package/esm2020/lib/decision-deploy/decision-deploy.component.mjs +52 -0
  2. package/esm2020/lib/decision-display/decision-display.component.mjs +56 -0
  3. package/esm2020/lib/decision-list/decision-list.component.mjs +50 -0
  4. package/esm2020/lib/decision-routing.module.mjs +52 -0
  5. package/esm2020/lib/decision.component.mjs +35 -0
  6. package/esm2020/lib/decision.module.mjs +70 -0
  7. package/esm2020/lib/decision.service.mjs +48 -0
  8. package/esm2020/lib/models/decision.model.mjs +17 -0
  9. package/esm2020/lib/models/index.mjs +19 -0
  10. package/esm2020/public-api.mjs +22 -0
  11. package/esm2020/valtimo-decision.mjs +5 -0
  12. package/fesm2015/valtimo-decision.mjs +373 -0
  13. package/fesm2015/valtimo-decision.mjs.map +1 -0
  14. package/fesm2020/valtimo-decision.mjs +389 -0
  15. package/fesm2020/valtimo-decision.mjs.map +1 -0
  16. package/lib/decision-deploy/decision-deploy.component.d.ts +4 -0
  17. package/lib/decision-deploy/decision-deploy.component.d.ts.map +1 -0
  18. package/lib/decision-display/decision-display.component.d.ts +4 -0
  19. package/lib/decision-display/decision-display.component.d.ts.map +1 -0
  20. package/lib/decision-list/decision-list.component.d.ts +4 -0
  21. package/lib/decision-list/decision-list.component.d.ts.map +1 -0
  22. package/lib/decision-routing.module.d.ts +7 -0
  23. package/lib/decision-routing.module.d.ts.map +1 -0
  24. package/lib/decision.component.d.ts +4 -0
  25. package/lib/decision.component.d.ts.map +1 -0
  26. package/lib/decision.module.d.ts +14 -0
  27. package/lib/decision.module.d.ts.map +1 -0
  28. package/lib/decision.service.d.ts +4 -0
  29. package/lib/decision.service.d.ts.map +1 -0
  30. package/lib/models/decision.model.d.ts +1 -0
  31. package/lib/models/decision.model.d.ts.map +1 -0
  32. package/lib/models/index.d.ts +1 -0
  33. package/lib/models/index.d.ts.map +1 -0
  34. package/package.json +22 -10
  35. package/public-api.d.ts +1 -0
  36. package/public-api.d.ts.map +1 -0
  37. package/valtimo-decision.d.ts +2 -5
  38. package/valtimo-decision.d.ts.map +1 -0
  39. package/bundles/valtimo-decision.umd.js +0 -398
  40. package/bundles/valtimo-decision.umd.js.map +0 -1
  41. package/bundles/valtimo-decision.umd.min.js +0 -2
  42. package/bundles/valtimo-decision.umd.min.js.map +0 -1
  43. package/esm2015/lib/decision-deploy/decision-deploy.component.js +0 -53
  44. package/esm2015/lib/decision-display/decision-display.component.js +0 -60
  45. package/esm2015/lib/decision-list/decision-list.component.js +0 -52
  46. package/esm2015/lib/decision-routing.module.js +0 -48
  47. package/esm2015/lib/decision.component.js +0 -32
  48. package/esm2015/lib/decision.module.js +0 -48
  49. package/esm2015/lib/decision.service.js +0 -52
  50. package/esm2015/lib/models/decision.model.js +0 -16
  51. package/esm2015/lib/models/index.js +0 -19
  52. package/esm2015/public-api.js +0 -22
  53. package/esm2015/valtimo-decision.js +0 -10
  54. package/fesm2015/valtimo-decision.js +0 -375
  55. package/fesm2015/valtimo-decision.js.map +0 -1
  56. package/valtimo-decision.metadata.json +0 -1
@@ -1,375 +0,0 @@
1
- import { ɵɵdefineInjectable, ɵɵinject, Injectable, EventEmitter, Component, Output, ViewChild, ViewEncapsulation, NgModule } from '@angular/core';
2
- import { HttpClient } from '@angular/common/http';
3
- import { ConfigService, ROLE_ADMIN } from '@valtimo/config';
4
- import { WidgetModule, ListModule, ModalModule } from '@valtimo/components';
5
- import { Router, ActivatedRoute, RouterModule } from '@angular/router';
6
- import { CommonModule } from '@angular/common';
7
- import { AuthGuardService } from '@valtimo/security';
8
- import DmnViewer from 'dmn-js';
9
- import { FormsModule } from '@angular/forms';
10
- import { TranslateModule } from '@ngx-translate/core';
11
-
12
- /*
13
- * Copyright 2015-2020 Ritense BV, the Netherlands.
14
- *
15
- * Licensed under EUPL, Version 1.2 (the "License");
16
- * you may not use this file except in compliance with the License.
17
- * You may obtain a copy of the License at
18
- *
19
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
20
- *
21
- * Unless required by applicable law or agreed to in writing, software
22
- * distributed under the License is distributed on an "AS IS" basis,
23
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24
- * See the License for the specific language governing permissions and
25
- * limitations under the License.
26
- */
27
-
28
- /*
29
- *
30
- * * Copyright 2015-2020 Ritense BV, the Netherlands.
31
- * *
32
- * * Licensed under EUPL, Version 1.2 (the "License");
33
- * * you may not use this file except in compliance with the License.
34
- * * You may obtain a copy of the License at
35
- * *
36
- * * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
37
- * *
38
- * * Unless required by applicable law or agreed to in writing, software
39
- * * distributed under the License is distributed on an "AS IS" basis,
40
- * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
41
- * * See the License for the specific language governing permissions and
42
- * * limitations under the License.
43
- *
44
- */
45
-
46
- /*
47
- * Copyright 2015-2020 Ritense BV, the Netherlands.
48
- *
49
- * Licensed under EUPL, Version 1.2 (the "License");
50
- * you may not use this file except in compliance with the License.
51
- * You may obtain a copy of the License at
52
- *
53
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
54
- *
55
- * Unless required by applicable law or agreed to in writing, software
56
- * distributed under the License is distributed on an "AS IS" basis,
57
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
58
- * See the License for the specific language governing permissions and
59
- * limitations under the License.
60
- */
61
- class DecisionService {
62
- constructor(configService, http) {
63
- this.configService = configService;
64
- this.http = http;
65
- this.valtimoApiConfig = configService.config.valtimoApi;
66
- }
67
- deployDmn(dmn) {
68
- const formData = new FormData();
69
- formData.append('file', dmn);
70
- formData.append('deployment-name', 'dmnTableDeploy');
71
- formData.append('deployment-source', 'process application');
72
- return this.http.post(`${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/deployment/create`, formData);
73
- }
74
- getDecisions() {
75
- return this.http.get(`${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/decision-definition`);
76
- }
77
- getDecisionXml(decisionId) {
78
- return this.http.get(`${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/decision-definition/${decisionId}/xml`);
79
- }
80
- }
81
- DecisionService.ɵprov = ɵɵdefineInjectable({ factory: function DecisionService_Factory() { return new DecisionService(ɵɵinject(ConfigService), ɵɵinject(HttpClient)); }, token: DecisionService, providedIn: "root" });
82
- DecisionService.decorators = [
83
- { type: Injectable, args: [{
84
- providedIn: 'root',
85
- },] }
86
- ];
87
- DecisionService.ctorParameters = () => [
88
- { type: ConfigService },
89
- { type: HttpClient }
90
- ];
91
-
92
- /*
93
- * Copyright 2015-2020 Ritense BV, the Netherlands.
94
- *
95
- * Licensed under EUPL, Version 1.2 (the "License");
96
- * you may not use this file except in compliance with the License.
97
- * You may obtain a copy of the License at
98
- *
99
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
100
- *
101
- * Unless required by applicable law or agreed to in writing, software
102
- * distributed under the License is distributed on an "AS IS" basis,
103
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
104
- * See the License for the specific language governing permissions and
105
- * limitations under the License.
106
- */
107
- class DecisionDeployComponent {
108
- constructor(decisionService) {
109
- this.decisionService = decisionService;
110
- this.dmn = null;
111
- this.deploySuccessful = new EventEmitter();
112
- }
113
- ngOnInit() { }
114
- onChange(files) {
115
- this.dmn = files.item(0);
116
- }
117
- deployDmn() {
118
- this.decisionService.deployDmn(this.dmn).subscribe(() => {
119
- this.modal.hide();
120
- this.deploySuccessful.emit();
121
- });
122
- }
123
- openModal() {
124
- this.modal.show();
125
- }
126
- }
127
- DecisionDeployComponent.decorators = [
128
- { type: Component, args: [{
129
- selector: 'valtimo-decision-deploy',
130
- 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-modal\n #decisionDeployModal\n elementId=\"decisionDeployModal\"\n title=\"Upload Decision table\"\n [showFooter]=\"true\"\n>\n <div body>\n <div class=\"mt-3\">{{ 'decisions.upload.description' | translate }}</div>\n <div class=\"form-group mt-3 mb-3\">\n <input type=\"file\" id=\"file\" accept=\".dmn\" (change)=\"onChange($event.target.files)\" />\n </div>\n </div>\n <div footer>\n <div class=\"mb-0 p-3 text-right\">\n <button\n [disabled]=\"!dmn\"\n class=\"btn btn-primary btn-space\"\n type=\"button\"\n (click)=\"deployDmn()\"\n >\n <i class=\"icon mdi mdi-upload mr-1\"></i>\n {{ 'Upload' | translate }}\n </button>\n </div>\n </div>\n</valtimo-modal>\n",
131
- 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 */"]
132
- },] }
133
- ];
134
- DecisionDeployComponent.ctorParameters = () => [
135
- { type: DecisionService }
136
- ];
137
- DecisionDeployComponent.propDecorators = {
138
- deploySuccessful: [{ type: Output }],
139
- modal: [{ type: ViewChild, args: ['decisionDeployModal',] }]
140
- };
141
-
142
- /*
143
- * Copyright 2015-2020 Ritense BV, the Netherlands.
144
- *
145
- * Licensed under EUPL, Version 1.2 (the "License");
146
- * you may not use this file except in compliance with the License.
147
- * You may obtain a copy of the License at
148
- *
149
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
150
- *
151
- * Unless required by applicable law or agreed to in writing, software
152
- * distributed under the License is distributed on an "AS IS" basis,
153
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
154
- * See the License for the specific language governing permissions and
155
- * limitations under the License.
156
- */
157
- class DecisionListComponent {
158
- constructor(decisionService, router) {
159
- this.decisionService = decisionService;
160
- this.router = router;
161
- this.fields = [
162
- { key: 'key', label: 'Key' },
163
- { key: 'name', label: 'Name' },
164
- { key: 'version', label: 'Version' },
165
- ];
166
- }
167
- ngOnInit() {
168
- this.loadDecisions();
169
- }
170
- loadDecisions() {
171
- this.decisionService.getDecisions().subscribe((decisions) => {
172
- this.decisions = decisions;
173
- });
174
- }
175
- viewDecisionTable(decision) {
176
- this.router.navigate(['/decision-tables', decision.id]);
177
- }
178
- }
179
- DecisionListComponent.decorators = [
180
- { type: Component, args: [{
181
- selector: 'valtimo-decision-list',
182
- 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]=\"decisions\"\n [fields]=\"fields\"\n (rowClicked)=\"viewDecisionTable($event)\"\n [header]=\"true\"\n [viewMode]=\"true\"\n [isSearchable]=\"true\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'Decision tables' | translate }}</h3>\n <h5 class=\"list-header-description\">{{ 'Overview of all Decision tables' | translate }}</h5>\n </div>\n </valtimo-list>\n</valtimo-widget>\n",
183
- 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 */"]
184
- },] }
185
- ];
186
- DecisionListComponent.ctorParameters = () => [
187
- { type: DecisionService },
188
- { type: Router }
189
- ];
190
-
191
- /*
192
- * Copyright 2015-2020 Ritense BV, the Netherlands.
193
- *
194
- * Licensed under EUPL, Version 1.2 (the "License");
195
- * you may not use this file except in compliance with the License.
196
- * You may obtain a copy of the License at
197
- *
198
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
199
- *
200
- * Unless required by applicable law or agreed to in writing, software
201
- * distributed under the License is distributed on an "AS IS" basis,
202
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203
- * See the License for the specific language governing permissions and
204
- * limitations under the License.
205
- */
206
- class DecisionComponent {
207
- }
208
- DecisionComponent.decorators = [
209
- { type: Component, args: [{
210
- selector: 'valtimo-decision',
211
- 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 (click)=\"this.deploy.openModal()\" class=\"btn btn-secondary btn-space mr-0\">\n <i class=\"icon mdi mdi-upload mr-1\"></i>\n {{ 'Upload' | translate }}\n </button>\n </div>\n </div>\n <valtimo-decision-list #decisionList></valtimo-decision-list>\n <valtimo-decision-deploy\n #decisionDeploy\n (deploySuccessful)=\"this.list.loadDecisions()\"\n ></valtimo-decision-deploy>\n </div>\n</div>\n",
212
- 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 */"]
213
- },] }
214
- ];
215
- DecisionComponent.propDecorators = {
216
- deploy: [{ type: ViewChild, args: ['decisionDeploy',] }],
217
- list: [{ type: ViewChild, args: ['decisionList',] }]
218
- };
219
-
220
- /*
221
- * Copyright 2015-2020 Ritense BV, the Netherlands.
222
- *
223
- * Licensed under EUPL, Version 1.2 (the "License");
224
- * you may not use this file except in compliance with the License.
225
- * You may obtain a copy of the License at
226
- *
227
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
228
- *
229
- * Unless required by applicable law or agreed to in writing, software
230
- * distributed under the License is distributed on an "AS IS" basis,
231
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
232
- * See the License for the specific language governing permissions and
233
- * limitations under the License.
234
- */
235
- class DecisionDisplayComponent {
236
- constructor(decisionService, route) {
237
- this.decisionService = decisionService;
238
- this.route = route;
239
- }
240
- ngOnInit() {
241
- this.viewer = new DmnViewer({
242
- container: '#canvas',
243
- });
244
- this.decisionId = this.route.snapshot.paramMap.get('id');
245
- this.loadDecisionXml();
246
- }
247
- loadDecisionXml() {
248
- this.decisionService.getDecisionXml(this.decisionId).subscribe((decision) => {
249
- this.viewer.importXML(decision.dmnXml);
250
- this.decisionXml = decision.dmnXml;
251
- });
252
- }
253
- download() {
254
- const file = new Blob([this.decisionXml], { type: 'text/xml' });
255
- const link = document.createElement('a');
256
- link.download = `decision_table_${this.decisionId}.dmn`;
257
- link.href = window.URL.createObjectURL(file);
258
- link.click();
259
- window.URL.revokeObjectURL(link.href);
260
- link.remove();
261
- }
262
- }
263
- DecisionDisplayComponent.decorators = [
264
- { type: Component, args: [{
265
- selector: 'valtimo-decision-display',
266
- 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 (click)=\"download()\" class=\"btn btn-primary btn-space mr-0\">\n <i class=\"fa fa-save\"></i> &nbsp;\n <span>{{ 'Download' | translate }}</span>\n </button>\n </div>\n </div>\n <div id=\"canvas\"></div>\n </div>\n</div>\n",
267
- encapsulation: ViewEncapsulation.None,
268
- 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 */"]
269
- },] }
270
- ];
271
- DecisionDisplayComponent.ctorParameters = () => [
272
- { type: DecisionService },
273
- { type: ActivatedRoute }
274
- ];
275
-
276
- /*
277
- * Copyright 2015-2020 Ritense BV, the Netherlands.
278
- *
279
- * Licensed under EUPL, Version 1.2 (the "License");
280
- * you may not use this file except in compliance with the License.
281
- * You may obtain a copy of the License at
282
- *
283
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
284
- *
285
- * Unless required by applicable law or agreed to in writing, software
286
- * distributed under the License is distributed on an "AS IS" basis,
287
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
288
- * See the License for the specific language governing permissions and
289
- * limitations under the License.
290
- */
291
- const ɵ0 = { title: 'Decision tables', roles: [ROLE_ADMIN] }, ɵ1 = { title: 'Decision tables', roles: [ROLE_ADMIN] };
292
- const routes = [
293
- {
294
- path: 'decision-tables',
295
- component: DecisionComponent,
296
- canActivate: [AuthGuardService],
297
- data: ɵ0,
298
- },
299
- {
300
- path: 'decision-tables/:id',
301
- component: DecisionDisplayComponent,
302
- canActivate: [AuthGuardService],
303
- data: ɵ1,
304
- },
305
- ];
306
- class DecisionRoutingModule {
307
- }
308
- DecisionRoutingModule.decorators = [
309
- { type: NgModule, args: [{
310
- declarations: [],
311
- imports: [CommonModule, RouterModule.forChild(routes)],
312
- exports: [RouterModule],
313
- },] }
314
- ];
315
-
316
- /*
317
- * Copyright 2015-2020 Ritense BV, the Netherlands.
318
- *
319
- * Licensed under EUPL, Version 1.2 (the "License");
320
- * you may not use this file except in compliance with the License.
321
- * You may obtain a copy of the License at
322
- *
323
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
324
- *
325
- * Unless required by applicable law or agreed to in writing, software
326
- * distributed under the License is distributed on an "AS IS" basis,
327
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
328
- * See the License for the specific language governing permissions and
329
- * limitations under the License.
330
- */
331
- class DecisionModule {
332
- }
333
- DecisionModule.decorators = [
334
- { type: NgModule, args: [{
335
- declarations: [
336
- DecisionComponent,
337
- DecisionDeployComponent,
338
- DecisionDisplayComponent,
339
- DecisionListComponent,
340
- ],
341
- imports: [
342
- DecisionRoutingModule,
343
- WidgetModule,
344
- ListModule,
345
- TranslateModule,
346
- ModalModule,
347
- CommonModule,
348
- FormsModule,
349
- ],
350
- exports: [DecisionComponent],
351
- },] }
352
- ];
353
-
354
- /*
355
- * Copyright 2015-2020 Ritense BV, the Netherlands.
356
- *
357
- * Licensed under EUPL, Version 1.2 (the "License");
358
- * you may not use this file except in compliance with the License.
359
- * You may obtain a copy of the License at
360
- *
361
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
362
- *
363
- * Unless required by applicable law or agreed to in writing, software
364
- * distributed under the License is distributed on an "AS IS" basis,
365
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
366
- * See the License for the specific language governing permissions and
367
- * limitations under the License.
368
- */
369
-
370
- /**
371
- * Generated bundle index. Do not edit.
372
- */
373
-
374
- export { DecisionComponent, DecisionModule, DecisionDeployComponent as ɵa, DecisionService as ɵb, DecisionDisplayComponent as ɵc, DecisionListComponent as ɵd, DecisionRoutingModule as ɵe };
375
- //# sourceMappingURL=valtimo-decision.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"valtimo-decision.js","sources":["../../../../projects/valtimo/decision/src/lib/models/decision.model.ts","../../../../projects/valtimo/decision/src/lib/models/index.ts","../../../../projects/valtimo/decision/src/lib/decision.service.ts","../../../../projects/valtimo/decision/src/lib/decision-deploy/decision-deploy.component.ts","../../../../projects/valtimo/decision/src/lib/decision-list/decision-list.component.ts","../../../../projects/valtimo/decision/src/lib/decision.component.ts","../../../../projects/valtimo/decision/src/lib/decision-display/decision-display.component.ts","../../../../projects/valtimo/decision/src/lib/decision-routing.module.ts","../../../../projects/valtimo/decision/src/lib/decision.module.ts","../../../../projects/valtimo/decision/src/public-api.ts","../../../../projects/valtimo/decision/src/valtimo-decision.ts"],"sourcesContent":["/*\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\nexport interface Decision {\n category: string;\n decisionRequirementsDefinitionId: string;\n decisionRequirementsDefinitionKey: string;\n deploymentId: string;\n historyTimeToLive: number;\n id: string;\n key: string;\n name: string;\n resource: string;\n tenantId: string;\n version: number;\n versionTag: string;\n}\n\nexport interface DecisionXml {\n id: string;\n dmnXml: string;\n}\n","/*\n *\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\nexport * from './decision.model';\n","/*\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\nimport {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {Decision, DecisionXml} from './models';\nimport {ConfigService} from '@valtimo/config';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DecisionService {\n private valtimoApiConfig: any;\n\n constructor(private configService: ConfigService, private http: HttpClient) {\n this.valtimoApiConfig = configService.config.valtimoApi;\n }\n\n deployDmn(dmn: File): Observable<any> {\n const formData: FormData = new FormData();\n formData.append('file', dmn);\n formData.append('deployment-name', 'dmnTableDeploy');\n formData.append('deployment-source', 'process application');\n return this.http.post<any>(\n `${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/deployment/create`,\n formData\n );\n }\n\n getDecisions(): Observable<Decision[]> {\n return this.http.get<Decision[]>(\n `${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/decision-definition`\n );\n }\n\n getDecisionXml(decisionId: string): Observable<DecisionXml> {\n return this.http.get<DecisionXml>(\n `${this.valtimoApiConfig.endpointUri}camunda-rest/engine/default/decision-definition/${decisionId}/xml`\n );\n }\n}\n","/*\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\nimport {Component, EventEmitter, OnInit, Output, ViewChild} from '@angular/core';\nimport {DecisionService} from '../decision.service';\nimport {ModalComponent} from '@valtimo/components';\n\n@Component({\n selector: 'valtimo-decision-deploy',\n templateUrl: './decision-deploy.component.html',\n styleUrls: ['./decision-deploy.component.scss'],\n})\nexport class DecisionDeployComponent implements OnInit {\n public dmn: File | null = null;\n @Output() deploySuccessful = new EventEmitter();\n @ViewChild('decisionDeployModal') modal: ModalComponent;\n\n constructor(private decisionService: DecisionService) {}\n\n ngOnInit() {}\n\n onChange(files: FileList): void {\n this.dmn = files.item(0);\n }\n\n deployDmn(): void {\n this.decisionService.deployDmn(this.dmn).subscribe(() => {\n this.modal.hide();\n this.deploySuccessful.emit();\n });\n }\n\n openModal() {\n this.modal.show();\n }\n}\n","/*\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\nimport {Component, OnInit} from '@angular/core';\nimport {Decision} from '../models';\nimport {DecisionService} from '../decision.service';\nimport {Router} from '@angular/router';\n\n@Component({\n selector: 'valtimo-decision-list',\n templateUrl: './decision-list.component.html',\n styleUrls: ['./decision-list.component.scss'],\n})\nexport class DecisionListComponent implements OnInit {\n public decisions: Decision[];\n public fields = [\n {key: 'key', label: 'Key'},\n {key: 'name', label: 'Name'},\n {key: 'version', label: 'Version'},\n ];\n\n constructor(private decisionService: DecisionService, private router: Router) {}\n\n ngOnInit() {\n this.loadDecisions();\n }\n\n loadDecisions() {\n this.decisionService.getDecisions().subscribe((decisions: Decision[]) => {\n this.decisions = decisions;\n });\n }\n\n viewDecisionTable(decision: Decision) {\n this.router.navigate(['/decision-tables', decision.id]);\n }\n}\n","/*\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\nimport {Component, ViewChild} from '@angular/core';\nimport {DecisionDeployComponent} from './decision-deploy/decision-deploy.component';\nimport {DecisionListComponent} from './decision-list/decision-list.component';\n\n@Component({\n selector: 'valtimo-decision',\n templateUrl: './decision.component.html',\n styleUrls: ['./decision.component.scss'],\n})\nexport class DecisionComponent {\n @ViewChild('decisionDeploy') deploy: DecisionDeployComponent;\n @ViewChild('decisionList') list: DecisionListComponent;\n}\n","/*\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\nimport {Component, OnInit, ViewEncapsulation} from '@angular/core';\nimport {DecisionService} from '../decision.service';\nimport DmnViewer from 'dmn-js';\nimport {DecisionXml} from '../models';\nimport {ActivatedRoute} from '@angular/router';\n\n@Component({\n selector: 'valtimo-decision-display',\n templateUrl: './decision-display.component.html',\n styleUrls: ['./decision-display.component.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class DecisionDisplayComponent implements OnInit {\n public viewer: DmnViewer;\n private decisionId: string;\n public decisionXml: string;\n\n constructor(private decisionService: DecisionService, private route: ActivatedRoute) {}\n\n ngOnInit() {\n this.viewer = new DmnViewer({\n container: '#canvas',\n });\n this.decisionId = this.route.snapshot.paramMap.get('id');\n this.loadDecisionXml();\n }\n\n loadDecisionXml(): void {\n this.decisionService.getDecisionXml(this.decisionId).subscribe((decision: DecisionXml) => {\n this.viewer.importXML(decision.dmnXml);\n this.decisionXml = decision.dmnXml;\n });\n }\n\n download(): void {\n const file = new Blob([this.decisionXml], {type: 'text/xml'});\n const link = document.createElement('a');\n link.download = `decision_table_${this.decisionId}.dmn`;\n link.href = window.URL.createObjectURL(file);\n link.click();\n window.URL.revokeObjectURL(link.href);\n link.remove();\n }\n}\n","/*\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\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {DecisionComponent} from './decision.component';\nimport {DecisionDisplayComponent} from './decision-display/decision-display.component';\nimport {ROLE_ADMIN} from '@valtimo/config';\n\nconst routes: Routes = [\n {\n path: 'decision-tables',\n component: DecisionComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Decision tables', roles: [ROLE_ADMIN]},\n },\n {\n path: 'decision-tables/:id',\n component: DecisionDisplayComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Decision tables', roles: [ROLE_ADMIN]},\n },\n];\n\n@NgModule({\n declarations: [],\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class DecisionRoutingModule {}\n","/*\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\nimport {NgModule} from '@angular/core';\nimport {DecisionComponent} from './decision.component';\nimport {DecisionRoutingModule} from './decision-routing.module';\nimport {DecisionDeployComponent} from './decision-deploy/decision-deploy.component';\nimport {CommonModule} from '@angular/common';\nimport {FormsModule} from '@angular/forms';\nimport {DecisionDisplayComponent} from './decision-display/decision-display.component';\nimport {DecisionListComponent} from './decision-list/decision-list.component';\nimport {ListModule, ModalModule, WidgetModule} from '@valtimo/components';\nimport {TranslateModule} from '@ngx-translate/core';\n\n@NgModule({\n declarations: [\n DecisionComponent,\n DecisionDeployComponent,\n DecisionDisplayComponent,\n DecisionListComponent,\n ],\n imports: [\n DecisionRoutingModule,\n WidgetModule,\n ListModule,\n TranslateModule,\n ModalModule,\n CommonModule,\n FormsModule,\n ],\n exports: [DecisionComponent],\n})\nexport class DecisionModule {}\n","/*\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/*\n * Public API Surface of decision\n */\n\nexport * from './lib/models';\nexport * from './lib/decision.module';\nexport * from './lib/decision.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {DecisionDeployComponent as ɵa} from './lib/decision-deploy/decision-deploy.component';\nexport {DecisionDisplayComponent as ɵc} from './lib/decision-display/decision-display.component';\nexport {DecisionListComponent as ɵd} from './lib/decision-list/decision-list.component';\nexport {DecisionRo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oBACrB,YAAY;oBACZ,UAAU;oBACV,eAAe;oBACf,WAAW;oBACX,YAAY;oBACZ,WAAW;iBACZ;gBACD,OAAO,EAAE,CAAC,iBAAiB,CAAC;aAC7B;;;AC5CD;;;;;;;;;;;;;;;;ACAA;;;;;;"}
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"exports":[{"from":"./lib/decision.model"}],"metadata":{"DecisionModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":27,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"DecisionComponent"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"}],"imports":[{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","module":"@valtimo/components","name":"WidgetModule","line":36,"character":4},{"__symbolic":"reference","module":"@valtimo/components","name":"ListModule","line":37,"character":4},{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateModule","line":38,"character":4},{"__symbolic":"reference","module":"@valtimo/components","name":"ModalModule","line":39,"character":4},{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":40,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":41,"character":4}],"exports":[{"__symbolic":"reference","name":"DecisionComponent"}]}]}],"members":{}},"DecisionComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":20,"character":1},"arguments":[{"selector":"valtimo-decision","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 (click)=\"this.deploy.openModal()\" class=\"btn btn-secondary btn-space mr-0\">\n <i class=\"icon mdi mdi-upload mr-1\"></i>\n {{ 'Upload' | translate }}\n </button>\n </div>\n </div>\n <valtimo-decision-list #decisionList></valtimo-decision-list>\n <valtimo-decision-deploy\n #decisionDeploy\n (deploySuccessful)=\"this.list.loadDecisions()\"\n ></valtimo-decision-deploy>\n </div>\n</div>\n","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 */"]}]}],"members":{"deploy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":26,"character":3},"arguments":["decisionDeploy"]}]}],"list":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":27,"character":3},"arguments":["decisionList"]}]}]}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":20,"character":1},"arguments":[{"selector":"valtimo-decision-deploy","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-modal\n #decisionDeployModal\n elementId=\"decisionDeployModal\"\n title=\"Upload Decision table\"\n [showFooter]=\"true\"\n>\n <div body>\n <div class=\"mt-3\">{{ 'decisions.upload.description' | translate }}</div>\n <div class=\"form-group mt-3 mb-3\">\n <input type=\"file\" id=\"file\" accept=\".dmn\" (change)=\"onChange($event.target.files)\" />\n </div>\n </div>\n <div footer>\n <div class=\"mb-0 p-3 text-right\">\n <button\n [disabled]=\"!dmn\"\n class=\"btn btn-primary btn-space\"\n type=\"button\"\n (click)=\"deployDmn()\"\n >\n <i class=\"icon mdi mdi-upload mr-1\"></i>\n {{ 'Upload' | translate }}\n </button>\n </div>\n </div>\n</valtimo-modal>\n","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 */"]}]}],"members":{"deploySuccessful":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":27,"character":3}}]}],"modal":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":28,"character":3},"arguments":["decisionDeployModal"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"}]}],"ngOnInit":[{"__symbolic":"method"}],"onChange":[{"__symbolic":"method"}],"deployDmn":[{"__symbolic":"method"}],"openModal":[{"__symbolic":"method"}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":22,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@valtimo/config","name":"ConfigService","line":28,"character":37},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":28,"character":66}]}],"deployDmn":[{"__symbolic":"method"}],"getDecisions":[{"__symbolic":"method"}],"getDecisionXml":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":22,"character":1},"arguments":[{"selector":"valtimo-decision-display","encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":26,"character":17},"member":"None"},"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 (click)=\"download()\" class=\"btn btn-primary btn-space mr-0\">\n <i class=\"fa fa-save\"></i> &nbsp;\n <span>{{ 'Download' | translate }}</span>\n </button>\n </div>\n </div>\n <div id=\"canvas\"></div>\n </div>\n</div>\n","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 */"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute","line":33,"character":71}]}],"ngOnInit":[{"__symbolic":"method"}],"loadDecisionXml":[{"__symbolic":"method"}],"download":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":21,"character":1},"arguments":[{"selector":"valtimo-decision-list","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]=\"decisions\"\n [fields]=\"fields\"\n (rowClicked)=\"viewDecisionTable($event)\"\n [header]=\"true\"\n [viewMode]=\"true\"\n [isSearchable]=\"true\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'Decision tables' | translate }}</h3>\n <h5 class=\"list-header-description\">{{ 'Overview of all Decision tables' | translate }}</h5>\n </div>\n </valtimo-list>\n</valtimo-widget>\n","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 */"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":34,"character":72}]}],"ngOnInit":[{"__symbolic":"method"}],"loadDecisions":[{"__symbolic":"method"}],"viewDecisionTable":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":39,"character":1},"arguments":[{"declarations":[],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":41,"character":12},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":41,"character":26},"member":"forChild"},"arguments":[[{"path":"decision-tables","component":{"__symbolic":"reference","name":"DecisionComponent"},"canActivate":[{"__symbolic":"reference","module":"@valtimo/security","name":"AuthGuardService","line":28,"character":18}],"data":{"title":"Decision tables","roles":[{"__symbolic":"reference","module":"@valtimo/config","name":"ROLE_ADMIN","line":29,"character":45}]}},{"path":"decision-tables/:id","component":{"__symbolic":"reference","name":"ɵc"},"canActivate":[{"__symbolic":"reference","module":"@valtimo/security","name":"AuthGuardService","line":34,"character":18}],"data":{"title":"Decision tables","roles":[{"__symbolic":"reference","module":"@valtimo/config","name":"ROLE_ADMIN","line":35,"character":45}]}}]]}],"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":42,"character":12}]}]}],"members":{}}},"origins":{"DecisionModule":"./lib/decision.module","DecisionComponent":"./lib/decision.component","ɵa":"./lib/decision-deploy/decision-deploy.component","ɵb":"./lib/decision.service","ɵc":"./lib/decision-display/decision-display.component","ɵd":"./lib/decision-list/decision-list.component","ɵe":"./lib/decision-routing.module"},"importAs":"@valtimo/decision"}