@valtimo/connector-management 4.15.2 → 4.16.0-next-main.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -7
- package/bundles/valtimo-connector-management.umd.js +282 -234
- package/bundles/valtimo-connector-management.umd.js.map +1 -1
- package/bundles/valtimo-connector-management.umd.min.js +2 -2
- package/bundles/valtimo-connector-management.umd.min.js.map +1 -1
- package/esm2015/lib/components/add-connector/add-connector.component.js +12 -8
- package/esm2015/lib/components/connector-link-extension/connector-link-extension.component.js +21 -12
- package/esm2015/lib/components/connector-link-extension-modal/connector-link-extension-modal.component.js +19 -17
- package/esm2015/lib/components/connector-management/connector-management.component.js +23 -15
- package/esm2015/lib/components/connector-modal/connector-modal.component.js +2 -2
- package/esm2015/lib/components/edit-connector-form/edit-connector-form.component.js +1 -1
- package/esm2015/lib/components/edit-connector-properties/edit-connector-properties.component.js +17 -13
- package/esm2015/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.component.js +39 -59
- package/esm2015/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.form.js +108 -102
- package/esm2015/lib/components/modify-connector/modify-connector.component.js +9 -7
- package/esm2015/lib/components/multi-value-connector-property/multi-value-connector-property.component.js +15 -11
- package/esm2015/lib/connector-management-routing.js +5 -8
- package/esm2015/lib/connector-management.module.js +5 -7
- package/esm2015/lib/extension/connector-management.extension.init.js +3 -3
- package/esm2015/lib/models/connector.model.js +1 -0
- package/esm2015/lib/models/index.js +20 -0
- package/esm2015/lib/models/object-sync.js +1 -0
- package/esm2015/lib/services/connector-management/connector-management.service.js +2 -2
- package/esm2015/lib/services/connector-management-state/connector-management-state.service.js +2 -2
- package/esm2015/lib/services/object-api-sync/object-api-sync.service.js +2 -2
- package/esm2015/public-api.js +2 -1
- package/esm2015/valtimo-connector-management.js +1 -1
- package/fesm2015/valtimo-connector-management.js +281 -251
- package/fesm2015/valtimo-connector-management.js.map +1 -1
- package/lib/components/add-connector/add-connector.component.d.ts +1 -1
- package/lib/components/connector-link-extension/connector-link-extension.component.d.ts +1 -1
- package/lib/components/connector-link-extension-modal/connector-link-extension-modal.component.d.ts +2 -2
- package/lib/components/connector-management/connector-management.component.d.ts +2 -1
- package/lib/components/connector-modal/connector-modal.component.d.ts +1 -1
- package/lib/components/edit-connector-form/edit-connector-form.component.d.ts +1 -1
- package/lib/components/edit-connector-properties/edit-connector-properties.component.d.ts +1 -1
- package/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.component.d.ts +10 -8
- package/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.form.d.ts +24 -14
- package/lib/components/modify-connector/modify-connector.component.d.ts +1 -1
- package/lib/components/multi-value-connector-property/multi-value-connector-property.component.d.ts +1 -1
- package/lib/models/connector.model.d.ts +36 -0
- package/lib/models/index.d.ts +2 -0
- package/lib/models/object-sync.d.ts +19 -0
- package/lib/services/connector-management/connector-management.service.d.ts +2 -1
- package/lib/services/connector-management-state/connector-management-state.service.d.ts +1 -1
- package/lib/services/object-api-sync/object-api-sync.service.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/valtimo-connector-management.metadata.json +1 -1
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@angular/common'), require('@valtimo/security'), require('@valtimo/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@valtimo/connector-management', ['exports', '@angular/core', '@angular/router', '@angular/common', '@valtimo/security', '@valtimo/
|
|
4
|
-
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo['connector-management'] = {}), global.ng.core, global.ng.router, global.ng.common, global.security, global.
|
|
5
|
-
}(this, (function (exports, i0, router, common, security,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@angular/common'), require('@valtimo/security'), require('@valtimo/config'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core'), require('@angular/common/http'), require('@valtimo/components'), require('lodash'), require('@valtimo/form'), require('@valtimo/document'), require('ngx-logger')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@valtimo/connector-management', ['exports', '@angular/core', '@angular/router', '@angular/common', '@valtimo/security', '@valtimo/config', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@angular/common/http', '@valtimo/components', 'lodash', '@valtimo/form', '@valtimo/document', 'ngx-logger'], factory) :
|
|
4
|
+
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo['connector-management'] = {}), global.ng.core, global.ng.router, global.ng.common, global.security, global.config, global.rxjs, global.rxjs.operators, global.cpre$1, global.ng.common.http, global.components, global.lodash, global.form, global.document, global.ngxLogger));
|
|
5
|
+
}(this, (function (exports, i0, router, common, security, i2, rxjs, operators, core, i1, components, lodash, form, document, ngxLogger) { 'use strict';
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
*
|
|
9
|
+
* * Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
10
|
+
* *
|
|
11
|
+
* * Licensed under EUPL, Version 1.2 (the "License");
|
|
12
|
+
* * you may not use this file except in compliance with the License.
|
|
13
|
+
* * You may obtain a copy of the License at
|
|
14
|
+
* *
|
|
15
|
+
* * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
16
|
+
* *
|
|
17
|
+
* * Unless required by applicable law or agreed to in writing, software
|
|
18
|
+
* * distributed under the License is distributed on an "AS IS" basis,
|
|
19
|
+
* * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
20
|
+
* * See the License for the specific language governing permissions and
|
|
21
|
+
* * limitations under the License.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
6
24
|
|
|
7
25
|
/*! *****************************************************************************
|
|
8
26
|
Copyright (c) Microsoft Corporation.
|
|
@@ -28,6 +46,8 @@
|
|
|
28
46
|
return extendStatics(d, b);
|
|
29
47
|
};
|
|
30
48
|
function __extends(d, b) {
|
|
49
|
+
if (typeof b !== "function" && b !== null)
|
|
50
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
31
51
|
extendStatics(d, b);
|
|
32
52
|
function __() { this.constructor = d; }
|
|
33
53
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -213,11 +233,13 @@
|
|
|
213
233
|
}
|
|
214
234
|
return ar;
|
|
215
235
|
}
|
|
236
|
+
/** @deprecated */
|
|
216
237
|
function __spread() {
|
|
217
238
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
218
239
|
ar = ar.concat(__read(arguments[i]));
|
|
219
240
|
return ar;
|
|
220
241
|
}
|
|
242
|
+
/** @deprecated */
|
|
221
243
|
function __spreadArrays() {
|
|
222
244
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
223
245
|
s += arguments[i].length;
|
|
@@ -226,7 +248,17 @@
|
|
|
226
248
|
r[k] = a[j];
|
|
227
249
|
return r;
|
|
228
250
|
}
|
|
229
|
-
|
|
251
|
+
function __spreadArray(to, from, pack) {
|
|
252
|
+
if (pack || arguments.length === 2)
|
|
253
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
254
|
+
if (ar || !(i in from)) {
|
|
255
|
+
if (!ar)
|
|
256
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
257
|
+
ar[i] = from[i];
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
261
|
+
}
|
|
230
262
|
function __await(v) {
|
|
231
263
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
232
264
|
}
|
|
@@ -291,18 +323,21 @@
|
|
|
291
323
|
function __importDefault(mod) {
|
|
292
324
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
293
325
|
}
|
|
294
|
-
function __classPrivateFieldGet(receiver,
|
|
295
|
-
if (!
|
|
296
|
-
throw new TypeError("
|
|
297
|
-
|
|
298
|
-
|
|
326
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
327
|
+
if (kind === "a" && !f)
|
|
328
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
329
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
330
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
331
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
299
332
|
}
|
|
300
|
-
function __classPrivateFieldSet(receiver,
|
|
301
|
-
if (
|
|
302
|
-
throw new TypeError("
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
333
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
334
|
+
if (kind === "m")
|
|
335
|
+
throw new TypeError("Private method is not writable");
|
|
336
|
+
if (kind === "a" && !f)
|
|
337
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
338
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
339
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
340
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
306
341
|
}
|
|
307
342
|
|
|
308
343
|
/*
|
|
@@ -352,7 +387,7 @@
|
|
|
352
387
|
ConnectorManagementService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConnectorManagementService_Factory() { return new ConnectorManagementService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: ConnectorManagementService, providedIn: "root" });
|
|
353
388
|
ConnectorManagementService.decorators = [
|
|
354
389
|
{ type: i0.Injectable, args: [{
|
|
355
|
-
providedIn: 'root'
|
|
390
|
+
providedIn: 'root',
|
|
356
391
|
},] }
|
|
357
392
|
];
|
|
358
393
|
ConnectorManagementService.ctorParameters = function () { return [
|
|
@@ -461,7 +496,7 @@
|
|
|
461
496
|
ConnectorManagementStateService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConnectorManagementStateService_Factory() { return new ConnectorManagementStateService(); }, token: ConnectorManagementStateService, providedIn: "root" });
|
|
462
497
|
ConnectorManagementStateService.decorators = [
|
|
463
498
|
{ type: i0.Injectable, args: [{
|
|
464
|
-
providedIn: 'root'
|
|
499
|
+
providedIn: 'root',
|
|
465
500
|
},] }
|
|
466
501
|
];
|
|
467
502
|
|
|
@@ -479,19 +514,27 @@
|
|
|
479
514
|
});
|
|
480
515
|
this.pageSizes$ = new rxjs.BehaviorSubject({
|
|
481
516
|
collectionSize: 0,
|
|
482
|
-
maxPaginationItemSize: 5
|
|
517
|
+
maxPaginationItemSize: 5,
|
|
483
518
|
});
|
|
484
|
-
this.pagination$ = rxjs.combineLatest([
|
|
485
|
-
.
|
|
519
|
+
this.pagination$ = rxjs.combineLatest([
|
|
520
|
+
this.currentPageAndSize$,
|
|
521
|
+
this.pageSizes$,
|
|
522
|
+
]).pipe(operators.map(function (_b) {
|
|
486
523
|
var _c = __read(_b, 2), currentPage = _c[0], sizes = _c[1];
|
|
487
524
|
return (Object.assign(Object.assign(Object.assign({}, currentPage), sizes), { page: currentPage.page + 1 }));
|
|
488
525
|
}));
|
|
489
|
-
this.connectorInstances$ = rxjs.combineLatest([
|
|
490
|
-
.
|
|
526
|
+
this.connectorInstances$ = rxjs.combineLatest([
|
|
527
|
+
this.currentPageAndSize$,
|
|
528
|
+
this.translateService.stream('key'),
|
|
529
|
+
this.stateService.refresh$,
|
|
530
|
+
]).pipe(operators.tap(function () { return _this.setFields(); }), operators.switchMap(function (_b) {
|
|
491
531
|
var _c = __read(_b, 1), currentPage = _c[0];
|
|
492
532
|
return rxjs.combineLatest([
|
|
493
|
-
_this.connectorManagementService.getConnectorInstances({
|
|
494
|
-
|
|
533
|
+
_this.connectorManagementService.getConnectorInstances({
|
|
534
|
+
page: currentPage.page,
|
|
535
|
+
size: currentPage.size,
|
|
536
|
+
}),
|
|
537
|
+
_this.connectorManagementService.getConnectorTypes(),
|
|
495
538
|
]);
|
|
496
539
|
}), operators.tap(function (_b) {
|
|
497
540
|
var _c = __read(_b, 1), instanceRes = _c[0];
|
|
@@ -544,7 +587,7 @@
|
|
|
544
587
|
ConnectorManagementComponent.decorators = [
|
|
545
588
|
{ type: i0.Component, args: [{
|
|
546
589
|
selector: 'valtimo-connector-management',
|
|
547
|
-
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
|
|
590
|
+
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=\"main-content pt-0\"\n *ngIf=\"{\n connectorInstances: connectorInstances$ | async,\n fields: fields$ | async,\n pagination: pagination$ | async,\n loading: loading$ | async\n } as obs\"\n>\n <div class=\"container-fluid\">\n <ng-container *ngTemplateOutlet=\"buttons; context: {loading: obs.loading}\"></ng-container>\n <valtimo-widget *ngIf=\"obs.loading === false; else loading\">\n <valtimo-list\n [items]=\"obs.connectorInstances\"\n [fields]=\"obs.fields\"\n [header]=\"true\"\n [viewMode]=\"true\"\n [isSearchable]=\"false\"\n [pagination]=\"obs.pagination\"\n paginationIdentifier=\"connectorManagementList\"\n (paginationClicked)=\"paginationClicked($event)\"\n (paginationSet)=\"paginationSet($event)\"\n (rowClicked)=\"rowClicked($event)\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'connectorManagement.title' | translate }}</h3>\n <h5 class=\"list-header-description\">{{ 'connectorManagement.subtitle' | translate }}</h5>\n </div>\n </valtimo-list>\n </valtimo-widget>\n </div>\n</div>\n\n<valtimo-connector-modal [modalType]=\"modalType$ | async\"> </valtimo-connector-modal>\n\n<ng-template #buttons let-loading=\"loading\">\n <div class=\"btn-group mt-m3px mb-3 float-right\">\n <button class=\"btn btn-primary btn-space mr-0\" [disabled]=\"loading\" (click)=\"showAddModal()\">\n <i class=\"icon mdi mdi-plus\"></i> \n {{ 'connectorManagement.add' | translate }}\n </button>\n </div>\n <div class=\"clearfix\"></div>\n</ng-template>\n\n<ng-template #loading>\n <valtimo-spinner></valtimo-spinner>\n</ng-template>\n",
|
|
548
591
|
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 */"]
|
|
549
592
|
},] }
|
|
550
593
|
];
|
|
@@ -569,13 +612,13 @@
|
|
|
569
612
|
* See the License for the specific language governing permissions and
|
|
570
613
|
* limitations under the License.
|
|
571
614
|
*/
|
|
572
|
-
var ɵ0 = { title: 'Connectors', roles: [
|
|
615
|
+
var ɵ0 = { title: 'Connectors', roles: [i2.ROLE_ADMIN] };
|
|
573
616
|
var routes = [
|
|
574
617
|
{
|
|
575
618
|
path: 'connectors',
|
|
576
619
|
component: ConnectorManagementComponent,
|
|
577
620
|
canActivate: [security.AuthGuardService],
|
|
578
|
-
data: ɵ0
|
|
621
|
+
data: ɵ0,
|
|
579
622
|
},
|
|
580
623
|
];
|
|
581
624
|
var ConnectorManagementRoutingModule = /** @class */ (function () {
|
|
@@ -586,11 +629,8 @@
|
|
|
586
629
|
ConnectorManagementRoutingModule.decorators = [
|
|
587
630
|
{ type: i0.NgModule, args: [{
|
|
588
631
|
declarations: [],
|
|
589
|
-
imports: [
|
|
590
|
-
|
|
591
|
-
router.RouterModule.forChild(routes),
|
|
592
|
-
],
|
|
593
|
-
exports: [router.RouterModule]
|
|
632
|
+
imports: [common.CommonModule, router.RouterModule.forChild(routes)],
|
|
633
|
+
exports: [router.RouterModule],
|
|
594
634
|
},] }
|
|
595
635
|
];
|
|
596
636
|
|
|
@@ -632,7 +672,7 @@
|
|
|
632
672
|
ObjectApiSyncService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ObjectApiSyncService_Factory() { return new ObjectApiSyncService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: ObjectApiSyncService, providedIn: "root" });
|
|
633
673
|
ObjectApiSyncService.decorators = [
|
|
634
674
|
{ type: i0.Injectable, args: [{
|
|
635
|
-
providedIn: 'root'
|
|
675
|
+
providedIn: 'root',
|
|
636
676
|
},] }
|
|
637
677
|
];
|
|
638
678
|
ObjectApiSyncService.ctorParameters = function () { return [
|
|
@@ -657,10 +697,12 @@
|
|
|
657
697
|
});
|
|
658
698
|
this.pageSizes$ = new rxjs.BehaviorSubject({
|
|
659
699
|
collectionSize: 0,
|
|
660
|
-
maxPaginationItemSize: 5
|
|
700
|
+
maxPaginationItemSize: 5,
|
|
661
701
|
});
|
|
662
|
-
this.pagination$ = rxjs.combineLatest([
|
|
663
|
-
.
|
|
702
|
+
this.pagination$ = rxjs.combineLatest([
|
|
703
|
+
this.currentPageAndSize$,
|
|
704
|
+
this.pageSizes$,
|
|
705
|
+
]).pipe(operators.map(function (_c) {
|
|
664
706
|
var _d = __read(_c, 2), currentPage = _d[0], sizes = _d[1];
|
|
665
707
|
return (Object.assign(Object.assign(Object.assign({}, currentPage), sizes), { page: currentPage.page + 1 }));
|
|
666
708
|
}));
|
|
@@ -668,9 +710,8 @@
|
|
|
668
710
|
this.currentPageAndSize$,
|
|
669
711
|
this.connectorManagementService.getConnectorTypes(),
|
|
670
712
|
this.translateService.stream('key'),
|
|
671
|
-
this.stateService.refresh
|
|
672
|
-
])
|
|
673
|
-
.pipe(operators.tap(function () { return _this.setFields(); }), operators.switchMap(function (_c) {
|
|
713
|
+
this.stateService.refresh$,
|
|
714
|
+
]).pipe(operators.tap(function () { return _this.setFields(); }), operators.switchMap(function (_c) {
|
|
674
715
|
var _d = __read(_c, 2), currentPage = _d[0], types = _d[1];
|
|
675
716
|
return _this.connectorManagementService.getConnectorInstancesByType(types.find(function (type) { return type.name.toLowerCase().includes('objectsapi'); }).id, { page: currentPage.page, size: currentPage.size });
|
|
676
717
|
}), operators.tap(function (instanceRes) {
|
|
@@ -720,7 +761,8 @@
|
|
|
720
761
|
var splitObjectTypeUrl = objectTypeUrl === null || objectTypeUrl === void 0 ? void 0 : objectTypeUrl.split('/');
|
|
721
762
|
var objectTypeId = splitObjectTypeUrl[splitObjectTypeUrl.length - 1];
|
|
722
763
|
this.stateService.disableInput();
|
|
723
|
-
this.objectApiSyncService
|
|
764
|
+
this.objectApiSyncService
|
|
765
|
+
.createObjectSyncConfig({ connectorInstanceId: connectorInstanceId, enabled: enabled, documentDefinitionName: documentDefinitionName, objectTypeId: objectTypeId })
|
|
724
766
|
.subscribe(function (res) {
|
|
725
767
|
_this.alertService.success(_this.translateService.instant('connectorManagement.extension.addSyncSuccess'));
|
|
726
768
|
_this.stateService.hideExtensionModal();
|
|
@@ -748,7 +790,7 @@
|
|
|
748
790
|
ConnectorLinkExtensionModalComponent.decorators = [
|
|
749
791
|
{ type: i0.Component, args: [{
|
|
750
792
|
selector: 'valtimo-connector-link-extension-modal',
|
|
751
|
-
template: "<valtimo-modal #modal [title]=\"'connectorManagement.extension.buttonText'| translate\">\n <div
|
|
793
|
+
template: "<valtimo-modal #modal [title]=\"'connectorManagement.extension.buttonText' | translate\">\n <div\n class=\"mt-2\"\n body\n *ngIf=\"{\n connectorInstances: connectorInstances$ | async,\n fields: fields$ | async,\n pagination: pagination$ | async,\n loading: loading$ | async,\n disabled: disabled$ | async,\n noConnectors: noObjectsApiConnectors$ | async\n } as obs\"\n >\n <div *ngIf=\"obs.loading === false; else loading\" [ngClass]=\"{disabled: obs.disabled}\">\n <ng-container *ngIf=\"!obs.noConnectors; else noConnectors\">\n <p class=\"lead\">{{ 'connectorManagement.extension.clickToSync' | translate }}</p>\n <valtimo-widget>\n <valtimo-list\n [items]=\"obs.connectorInstances\"\n [fields]=\"obs.fields\"\n [header]=\"false\"\n [viewMode]=\"false\"\n [isSearchable]=\"false\"\n [pagination]=\"obs.pagination\"\n paginationIdentifier=\"connectorManagementList\"\n (paginationClicked)=\"paginationClicked($event)\"\n (paginationSet)=\"paginationSet($event)\"\n (rowClicked)=\"rowClicked($event)\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'connectorManagement.title' | translate }}</h3>\n <h5 class=\"list-header-description\">\n {{ 'connectorManagement.subtitle' | translate }}\n </h5>\n </div>\n </valtimo-list>\n </valtimo-widget>\n </ng-container>\n </div>\n </div>\n</valtimo-modal>\n\n<ng-template #loading>\n <valtimo-spinner></valtimo-spinner>\n</ng-template>\n\n<ng-template #noConnectors>\n <p class=\"lead\">{{ 'connectorManagement.extension.noConnectors' | translate }}</p>\n</ng-template>\n",
|
|
752
794
|
styles: [".disabled{filter:grayscale(1);opacity:.8;pointer-events:none}"]
|
|
753
795
|
},] }
|
|
754
796
|
];
|
|
@@ -791,8 +833,10 @@
|
|
|
791
833
|
}
|
|
792
834
|
AddConnectorComponent.prototype.ngOnInit = function () {
|
|
793
835
|
var _this = this;
|
|
794
|
-
this.refreshSubscription = rxjs.combineLatest([
|
|
795
|
-
.
|
|
836
|
+
this.refreshSubscription = rxjs.combineLatest([
|
|
837
|
+
this.stateService.showModal$,
|
|
838
|
+
this.stateService.refresh$,
|
|
839
|
+
]).subscribe(function () {
|
|
796
840
|
_this.goBack();
|
|
797
841
|
});
|
|
798
842
|
};
|
|
@@ -809,11 +853,13 @@
|
|
|
809
853
|
AddConnectorComponent.prototype.onSave = function (event) {
|
|
810
854
|
var _this = this;
|
|
811
855
|
this.selectedConnector$.pipe(operators.take(1)).subscribe(function (selectedConnectorType) {
|
|
812
|
-
_this.connectorManagementService
|
|
856
|
+
_this.connectorManagementService
|
|
857
|
+
.createConnectorInstance({
|
|
813
858
|
name: event.name,
|
|
814
859
|
typeId: selectedConnectorType.id,
|
|
815
|
-
connectorProperties: event.properties
|
|
816
|
-
})
|
|
860
|
+
connectorProperties: event.properties,
|
|
861
|
+
})
|
|
862
|
+
.subscribe(function () {
|
|
817
863
|
_this.alertService.success(_this.translateService.instant('connectorManagement.messages.addSuccess'));
|
|
818
864
|
_this.stateService.hideModal();
|
|
819
865
|
_this.stateService.enableInput();
|
|
@@ -828,7 +874,7 @@
|
|
|
828
874
|
AddConnectorComponent.decorators = [
|
|
829
875
|
{ type: i0.Component, args: [{
|
|
830
876
|
selector: 'valtimo-add-connector',
|
|
831
|
-
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<ng-container *ngIf=\"connectorTypes$ | async as connectorTypes; else loading\">\n <ng-container *ngIf=\"(selectedConnector$ | async) === undefined; else configure\">\n <p class=\"lead\">\n {{'connectorManagement.'
|
|
877
|
+
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<ng-container *ngIf=\"connectorTypes$ | async as connectorTypes; else loading\">\n <ng-container *ngIf=\"(selectedConnector$ | async) === undefined; else configure\">\n <p class=\"lead\">\n {{\n 'connectorManagement.' +\n (connectorTypes?.length > 0 ? 'addHeader' : 'noConnectorsAvailable') | translate\n }}\n </p>\n <div class=\"cards-container mt-3\">\n <div *ngFor=\"let connectorType of connectorTypes\" class=\"card card-border text-center\">\n <div class=\"card-header\">{{ connectorType.name }}</div>\n <div class=\"card-body\">\n <button class=\"btn btn-primary\" (click)=\"selectConnector(connectorType)\">\n {{ 'connectorManagement.configureButton' | translate }}\n </button>\n </div>\n </div>\n </div>\n </ng-container>\n</ng-container>\n\n<ng-template #configure>\n <ng-container *ngIf=\"selectedConnector$ | async as connector\">\n <button\n class=\"btn btn-outline-secondary btn-sm btn-back\"\n (click)=\"goBack()\"\n [disabled]=\"disabled$ | async\"\n >\n <i class=\"icon mdi mdi-arrow-left mr-1\"></i>\n {{ 'connectorManagement.goBack' | translate }}\n </button>\n <p class=\"lead text-center mb-3 pb-3 border-bottom\">\n {{ ('connectorManagement.configureWith' | translate) + ' ' + connector.name }}\n </p>\n <valtimo-edit-connector-form\n [connectorName]=\"connector.name\"\n [properties]=\"(selectedConnector$ | async).properties\"\n (propertiesSave)=\"onSave($event)\"\n >\n </valtimo-edit-connector-form>\n </ng-container>\n</ng-template>\n\n<ng-template #loading>\n <valtimo-spinner></valtimo-spinner>\n</ng-template>\n",
|
|
832
878
|
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 */.btn-back{position:absolute}.cards-container{display:flex;flex-flow:row wrap;width:100%}.card{margin-right:30px;width:calc(33.3% - 20px)}.card:nth-child(3n+3){margin-right:0}.card-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]
|
|
833
879
|
},] }
|
|
834
880
|
];
|
|
@@ -865,12 +911,14 @@
|
|
|
865
911
|
ModifyConnectorComponent.prototype.onSave = function (event) {
|
|
866
912
|
var _this = this;
|
|
867
913
|
this.instance$.pipe(operators.take(1)).subscribe(function (instance) {
|
|
868
|
-
_this.connectorManagementService
|
|
914
|
+
_this.connectorManagementService
|
|
915
|
+
.updateConnectorInstance({
|
|
869
916
|
name: event.name,
|
|
870
917
|
typeId: instance.type.id,
|
|
871
918
|
id: instance.id,
|
|
872
|
-
connectorProperties: event.properties
|
|
873
|
-
})
|
|
919
|
+
connectorProperties: event.properties,
|
|
920
|
+
})
|
|
921
|
+
.subscribe(function () {
|
|
874
922
|
_this.alertService.success(_this.translateService.instant('connectorManagement.messages.modifySuccess'));
|
|
875
923
|
_this.stateService.hideModal();
|
|
876
924
|
_this.stateService.enableInput();
|
|
@@ -898,7 +946,7 @@
|
|
|
898
946
|
ModifyConnectorComponent.decorators = [
|
|
899
947
|
{ type: i0.Component, args: [{
|
|
900
948
|
selector: 'valtimo-modify-connector',
|
|
901
|
-
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<ng-container *ngIf=\"instance$ | async as instance\">\n <p class=\"lead text-center mb-3 pb-3 border-bottom\">\n {{('connectorManagement.modifyWith' | translate) + ' ' + instance.type.name}}\n </p>\n <valtimo-edit-connector-form\n [properties]=\"instance.properties\"\n [withDefaults]=\"true\"\n [defaultName]=\"instance.name\"\n [showDeleteButton]=\"true\"\n [connectorName]=\"instance.type.name\"\n (propertiesSave)=\"onSave($event)\"\n (connectorDelete)=\"onDelete()\"\n >\n </valtimo-edit-connector-form>\n</ng-container>\n",
|
|
949
|
+
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<ng-container *ngIf=\"instance$ | async as instance\">\n <p class=\"lead text-center mb-3 pb-3 border-bottom\">\n {{ ('connectorManagement.modifyWith' | translate) + ' ' + instance.type.name }}\n </p>\n <valtimo-edit-connector-form\n [properties]=\"instance.properties\"\n [withDefaults]=\"true\"\n [defaultName]=\"instance.name\"\n [showDeleteButton]=\"true\"\n [connectorName]=\"instance.type.name\"\n (propertiesSave)=\"onSave($event)\"\n (connectorDelete)=\"onDelete()\"\n >\n </valtimo-edit-connector-form>\n</ng-container>\n",
|
|
902
950
|
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 */"]
|
|
903
951
|
},] }
|
|
904
952
|
];
|
|
@@ -976,11 +1024,15 @@
|
|
|
976
1024
|
this.modifiedProperties$ = new rxjs.BehaviorSubject(undefined);
|
|
977
1025
|
this.editFields$ = new rxjs.BehaviorSubject([]);
|
|
978
1026
|
this.connectorName$ = new rxjs.BehaviorSubject('');
|
|
979
|
-
this.saveButtonDisabled$ = rxjs.combineLatest([
|
|
1027
|
+
this.saveButtonDisabled$ = rxjs.combineLatest([
|
|
1028
|
+
this.editFields$,
|
|
1029
|
+
this.modifiedProperties$,
|
|
1030
|
+
this.connectorName$,
|
|
1031
|
+
]).pipe(operators.map(function (_a) {
|
|
980
1032
|
var _b = __read(_a, 3), editFields = _b[0], modifiedProperties = _b[1], connectorName = _b[2];
|
|
981
1033
|
var values = editFields.map(function (field) { return lodash.get(modifiedProperties, field.key); });
|
|
982
1034
|
var validValues = values.filter(function (value) { return Array.isArray(value) ? value.length > 0 : value === 0 || value; });
|
|
983
|
-
return
|
|
1035
|
+
return editFields.length !== validValues.length || !connectorName;
|
|
984
1036
|
}));
|
|
985
1037
|
this.disabled$ = this.stateService.inputDisabled$;
|
|
986
1038
|
}
|
|
@@ -1013,7 +1065,8 @@
|
|
|
1013
1065
|
var _this = this;
|
|
1014
1066
|
this.stateService.disableInput();
|
|
1015
1067
|
rxjs.combineLatest([this.modifiedProperties$, this.connectorName$])
|
|
1016
|
-
.pipe(operators.take(1))
|
|
1068
|
+
.pipe(operators.take(1))
|
|
1069
|
+
.subscribe(function (_a) {
|
|
1017
1070
|
var _b = __read(_a, 2), properties = _b[0], name = _b[1];
|
|
1018
1071
|
_this.propertiesSave.emit({ properties: properties, name: name });
|
|
1019
1072
|
});
|
|
@@ -1044,8 +1097,7 @@
|
|
|
1044
1097
|
var editFields = [];
|
|
1045
1098
|
var keysToFilter = ['className'];
|
|
1046
1099
|
var handlePropertyLevel = function (propertyLevel, previousKeys) {
|
|
1047
|
-
var propertyLevelKeys = Object.keys(propertyLevel)
|
|
1048
|
-
.filter(function (key) { return !keysToFilter.includes(key); });
|
|
1100
|
+
var propertyLevelKeys = Object.keys(propertyLevel).filter(function (key) { return !keysToFilter.includes(key); });
|
|
1049
1101
|
propertyLevelKeys.forEach(function (key) {
|
|
1050
1102
|
var propertyValue = propertyLevel[key];
|
|
1051
1103
|
var baseEditField = Object.assign({ key: previousKeys + key }, (_this.withDefaults && { defaultValue: propertyValue }));
|
|
@@ -1077,7 +1129,7 @@
|
|
|
1077
1129
|
EditConnectorPropertiesComponent.decorators = [
|
|
1078
1130
|
{ type: i0.Component, args: [{
|
|
1079
1131
|
selector: 'valtimo-edit-connector-properties',
|
|
1080
|
-
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
|
|
1132
|
+
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=\"edit-fields\"\n *ngIf=\"{editFields: editFields$ | async, disabled: disabled$ | async} as obs\"\n>\n <ng-container *ngTemplateOutlet=\"nameInput; context: {disabled: obs.disabled}\"></ng-container>\n <ng-container *ngFor=\"let editField of obs.editFields\">\n <ng-container *ngIf=\"editField.editType === 'string' || editField.editType === 'number'\">\n <ng-container\n *ngTemplateOutlet=\"singleInput; context: {editField: editField, disabled: obs.disabled}\"\n ></ng-container>\n </ng-container>\n <ng-container *ngIf=\"editField.editType === 'string[]' || editField.editType === 'number[]'\">\n <valtimo-multi-value-connector-property\n [editField]=\"editField\"\n (valuesSet)=\"multiFieldValuesSet($event)\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"withDefaults && editField.defaultValue\"\n >\n </valtimo-multi-value-connector-property>\n </ng-container>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"buttons; context: {disabled: obs.disabled}\"></ng-container>\n</div>\n\n<ng-template #nameInput let-disabled=\"disabled\">\n <div class=\"form-group row\">\n <label class=\"col-3 col-form-label text-sm-right\">\n {{ 'connectorManagement.inputLabels.connectorName' | translate }}\n </label>\n <div class=\"col-7\">\n <input\n class=\"form-control\"\n type=\"text\"\n (input)=\"onNameValueChange($event.target.value)\"\n [disabled]=\"disabled\"\n [value]=\"withDefaults && defaultName ? defaultName : ''\"\n />\n </div>\n </div>\n</ng-template>\n\n<ng-template #singleInput let-editField=\"editField\" let-disabled=\"disabled\">\n <div class=\"form-group row\">\n <label class=\"col-3 col-form-label text-sm-right\">\n {{ 'connectorManagement.inputLabels.' + editField.key | translate }}\n </label>\n <div class=\"col-7\">\n <input\n *ngIf=\"editField.editType === 'string'\"\n class=\"form-control\"\n type=\"text\"\n (input)=\"onSingleValueChange($event.target.value, editField)\"\n [disabled]=\"disabled\"\n [value]=\"withDefaults ? editField.defaultValue : ''\"\n />\n <input\n *ngIf=\"editField.editType === 'number'\"\n class=\"form-control\"\n type=\"number\"\n step=\"1\"\n min=\"0\"\n oninput=\"validity.valid||(value='');\"\n (input)=\"onSingleValueChange($event.target.value, editField)\"\n [disabled]=\"disabled\"\n [value]=\"withDefaults ? editField.defaultValue : ''\"\n />\n </div>\n </div>\n</ng-template>\n\n<ng-template #buttons let-disabled=\"disabled\">\n <div class=\"border-top mt-3 pt-6\">\n <div class=\"button-container\">\n <button\n class=\"btn btn-primary\"\n [disabled]=\"disabled || (saveButtonDisabled$ | async)\"\n (click)=\"onSave()\"\n >\n <i class=\"icon mdi mdi-save mr-1\"></i>\n {{ 'connectorManagement.save' | translate }}\n </button>\n <button\n *ngIf=\"showDeleteButton\"\n class=\"btn btn-danger btn-space\"\n (click)=\"onDelete()\"\n [disabled]=\"disabled\"\n >\n <i class=\"icon mdi mdi-delete mr-1\"></i>\n {{ 'connectorManagement.remove' | translate }}\n </button>\n </div>\n </div>\n</ng-template>\n",
|
|
1081
1133
|
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 */.button-container{display:flex;flex-flow:row-reverse;justify-content:space-between;width:100%}"]
|
|
1082
1134
|
},] }
|
|
1083
1135
|
];
|
|
@@ -1103,17 +1155,25 @@
|
|
|
1103
1155
|
this.alertService = alertService;
|
|
1104
1156
|
this.connectorManagementService = connectorManagementService;
|
|
1105
1157
|
this.loading$ = new rxjs.BehaviorSubject(true);
|
|
1106
|
-
this.objectApiSyncConfig$ = rxjs.combineLatest([
|
|
1158
|
+
this.objectApiSyncConfig$ = rxjs.combineLatest([
|
|
1159
|
+
this.route.params,
|
|
1160
|
+
this.translateService.stream('key'),
|
|
1161
|
+
this.stateService.refresh$,
|
|
1162
|
+
]).pipe(operators.switchMap(function (_b) {
|
|
1107
1163
|
var _c = __read(_b, 1), params = _c[0];
|
|
1108
1164
|
return _this.objectApiSyncService.getObjectSyncConfigs(params.name);
|
|
1109
|
-
}), operators.switchMap(function (configs) { return rxjs.combineLatest(__spread([
|
|
1165
|
+
}), operators.switchMap(function (configs) { return rxjs.combineLatest(__spread([
|
|
1166
|
+
rxjs.of(configs)
|
|
1167
|
+
], configs.map(function (config) { return _this.connectorManagementService
|
|
1168
|
+
.getConnectorInstanceById(config.connectorInstanceId)
|
|
1169
|
+
.pipe(operators.catchError(function () { return rxjs.of(''); })); }))); }), operators.map(function (results) {
|
|
1110
1170
|
var _b = __read(results.filter(function (result) { return result; })), instances = _b.slice(1);
|
|
1111
|
-
return results[0]
|
|
1112
|
-
.map(function (syncConfig) {
|
|
1171
|
+
return results[0].map(function (syncConfig) {
|
|
1113
1172
|
var _a;
|
|
1114
|
-
return (Object.assign(Object.assign({}, syncConfig), { title: ((_a = instances.find(function (instance) { return instance.id === syncConfig.connectorInstanceId; })) === null || _a === void 0 ? void 0 : _a.name) ||
|
|
1173
|
+
return (Object.assign(Object.assign({}, syncConfig), { title: ((_a = instances.find(function (instance) { return instance.id === syncConfig.connectorInstanceId; })) === null || _a === void 0 ? void 0 : _a.name) ||
|
|
1174
|
+
'Objects API' }));
|
|
1115
1175
|
});
|
|
1116
|
-
}), operators.map(function (results) { return Array.isArray(results) && results.length > 0 ? results[0] : null; }), operators.tap(function () {
|
|
1176
|
+
}), operators.map(function (results) { return (Array.isArray(results) && results.length > 0 ? results[0] : null); }), operators.tap(function () {
|
|
1117
1177
|
_this.loading$.next(false);
|
|
1118
1178
|
}));
|
|
1119
1179
|
this.disabled$ = this.stateService.inputDisabled$;
|
|
@@ -1127,7 +1187,9 @@
|
|
|
1127
1187
|
ConnectorLinkExtensionComponent.prototype.toggleSync = function (config) {
|
|
1128
1188
|
var _this = this;
|
|
1129
1189
|
this.stateService.disableInput();
|
|
1130
|
-
this.objectApiSyncService
|
|
1190
|
+
this.objectApiSyncService
|
|
1191
|
+
.modifyObjectSyncConfig(Object.assign(Object.assign({}, config), { enabled: !config.enabled }))
|
|
1192
|
+
.subscribe(function () {
|
|
1131
1193
|
if (!config.enabled) {
|
|
1132
1194
|
_this.alertService.success(_this.translateService.instant('connectorManagement.extension.addSyncSuccess'));
|
|
1133
1195
|
}
|
|
@@ -1156,8 +1218,8 @@
|
|
|
1156
1218
|
ConnectorLinkExtensionComponent.decorators = [
|
|
1157
1219
|
{ type: i0.Component, args: [{
|
|
1158
1220
|
selector: 'valtimo-connector-link-extension',
|
|
1159
|
-
template: "<h2 class=\"mb-4 mt-6\">{{'connectorManagement.extension.title' | translate}}</h2>\n\n<ng-container
|
|
1160
|
-
styles: [".card-
|
|
1221
|
+
template: "<h2 class=\"mb-4 mt-6\">{{ 'connectorManagement.extension.title' | translate }}</h2>\n\n<ng-container\n *ngIf=\"{\n syncConfig: objectApiSyncConfig$ | async,\n loading: loading$ | async,\n disabled: disabled$ | async\n } as obs\"\n>\n <ng-container *ngIf=\"obs.loading === false; else loading\">\n <ng-container *ngIf=\"obs.syncConfig; else addSync\">\n <div class=\"card card-border card-contrast\">\n <div class=\"card-header card-header-contrast card-header-featured\">\n <div>\n {{ obs.syncConfig.title }}\n </div>\n <div class=\"controls\">\n <button\n class=\"btn btn-danger ml-3\"\n [disabled]=\"obs.disabled\"\n (click)=\"deleteSync(obs.syncConfig.id)\"\n >\n <i class=\"fa fa-trash\"></i>\n </button>\n </div>\n </div>\n <div class=\"card-body\">\n <div class=\"setting-row\">\n Automatisch zaakdetails synchroniseren\n <div class=\"controls\">\n <div class=\"switch-button switch-button-success\">\n <input\n type=\"checkbox\"\n [checked]=\"obs.syncConfig.enabled\"\n [disabled]=\"obs.disabled\"\n name=\"sync\"\n id=\"sync\"\n (click)=\"toggleSync(obs.syncConfig)\"\n />\n <span><label for=\"sync\"></label></span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n</ng-container>\n\n<valtimo-connector-link-extension-modal></valtimo-connector-link-extension-modal>\n\n<ng-template #loading>\n <valtimo-spinner></valtimo-spinner>\n</ng-template>\n\n<ng-template #addSync>\n <div class=\"text-right mt-5\">\n <button class=\"btn btn-primary\" (click)=\"openModal()\" [disabled]=\"disabled$ | async\">\n <i class=\"icon mdi mdi-plus\"></i> \n {{ 'connectorManagement.extension.buttonText' | translate }}\n </button>\n </div>\n</ng-template>\n",
|
|
1222
|
+
styles: [".card-header,.setting-row{flex-direction:row;justify-content:space-between}.card-header,.controls,.setting-row{align-items:center;display:flex}"]
|
|
1161
1223
|
},] }
|
|
1162
1224
|
];
|
|
1163
1225
|
ConnectorLinkExtensionComponent.ctorParameters = function () { return [
|
|
@@ -1194,7 +1256,9 @@
|
|
|
1194
1256
|
var _this = this;
|
|
1195
1257
|
this.values$.pipe(operators.take(1)).subscribe(function (values) {
|
|
1196
1258
|
var _b;
|
|
1197
|
-
_this.values$.next(Object.assign(Object.assign({}, values), (_b = {}, _b[index] = editField.editType === 'string[]'
|
|
1259
|
+
_this.values$.next(Object.assign(Object.assign({}, values), (_b = {}, _b[index] = editField.editType === 'string[]'
|
|
1260
|
+
? value.trim()
|
|
1261
|
+
: parseInt(value, 10), _b)));
|
|
1198
1262
|
});
|
|
1199
1263
|
};
|
|
1200
1264
|
MultiValueConnectorPropertyComponent.prototype.addRow = function () {
|
|
@@ -1205,7 +1269,9 @@
|
|
|
1205
1269
|
};
|
|
1206
1270
|
MultiValueConnectorPropertyComponent.prototype.removeRow = function () {
|
|
1207
1271
|
var _this = this;
|
|
1208
|
-
rxjs.combineLatest([this.values$, this.amountOfValues$])
|
|
1272
|
+
rxjs.combineLatest([this.values$, this.amountOfValues$])
|
|
1273
|
+
.pipe(operators.take(1))
|
|
1274
|
+
.subscribe(function (_b) {
|
|
1209
1275
|
var _c = __read(_b, 2), values = _c[0], amountOfValues = _c[1];
|
|
1210
1276
|
var lastValueIndex = amountOfValues.length - 1;
|
|
1211
1277
|
var valuesCopy = Object.assign({}, values);
|
|
@@ -1219,7 +1285,7 @@
|
|
|
1219
1285
|
this.valuesSubscription = this.values$.subscribe(function (values) {
|
|
1220
1286
|
_this.valuesSet.emit({
|
|
1221
1287
|
editFieldKey: _this.editField.key,
|
|
1222
|
-
values: Object.values(values).filter(function (value) { return value === 0 || value; })
|
|
1288
|
+
values: Object.values(values).filter(function (value) { return value === 0 || value; }),
|
|
1223
1289
|
});
|
|
1224
1290
|
});
|
|
1225
1291
|
};
|
|
@@ -1240,7 +1306,7 @@
|
|
|
1240
1306
|
MultiValueConnectorPropertyComponent.decorators = [
|
|
1241
1307
|
{ type: i0.Component, args: [{
|
|
1242
1308
|
selector: 'valtimo-multi-value-connector-property',
|
|
1243
|
-
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=\"form-group row\"\n *ngIf=\"{amountOfValues: amountOfValues$ | async, values: values$ | async} as obs\"\n>\n <label class=\"col-3 col-form-label text-sm-right\">\n {{'connectorManagement.inputLabels.' + editField.key | translate}}\n </label>\n <div class=\"col-7\">\n <ng-container *ngFor=\"let value of obs.amountOfValues; let index = index\">\n <ng-container
|
|
1309
|
+
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=\"form-group row\"\n *ngIf=\"{amountOfValues: amountOfValues$ | async, values: values$ | async} as obs\"\n>\n <label class=\"col-3 col-form-label text-sm-right\">\n {{ 'connectorManagement.inputLabels.' + editField.key | translate }}\n </label>\n <div class=\"col-7\">\n <ng-container *ngFor=\"let value of obs.amountOfValues; let index = index\">\n <ng-container\n *ngTemplateOutlet=\"input; context: {index: index, disabled: disabled, values: obs.values}\"\n >\n </ng-container>\n </ng-container>\n <ng-container *ngTemplateOutlet=\"buttons; context: {disabled: disabled}\"></ng-container>\n </div>\n</div>\n\n<ng-template #input let-index=\"index\" let-disabled=\"disabled\" let-values=\"values\">\n <input\n *ngIf=\"editField.editType === 'string[]'\"\n class=\"form-control mb-2\"\n type=\"text\"\n (input)=\"onValueChange($event.target.value, editField, index)\"\n [disabled]=\"disabled\"\n [value]=\"defaultValue && values[index] ? values[index] : ''\"\n />\n <input\n *ngIf=\"editField.editType === 'number[]'\"\n class=\"form-control mb-2\"\n type=\"number\"\n step=\"1\"\n min=\"0\"\n oninput=\"validity.valid||(value='');\"\n (input)=\"onValueChange($event.target.value, editField, index)\"\n [disabled]=\"disabled\"\n [value]=\"defaultValue && values[index] ? values[index] : ''\"\n />\n</ng-template>\n\n<ng-template #buttons let-disabled=\"disabled\">\n <div class=\"button-container mt-1\">\n <button\n class=\"btn btn-danger btn-space btn-sm\"\n (click)=\"removeRow()\"\n [disabled]=\"disabled || (removeButtonDisabled$ | async)\"\n >\n <i class=\"icon mdi mdi-delete mr-1\"></i>\n {{ 'connectorManagement.removeValue' | translate }}\n </button>\n <button\n class=\"btn btn-secondary btn-space mr-0 btn-sm\"\n (click)=\"addRow()\"\n [disabled]=\"disabled || (addButtonDisabled$ | async)\"\n >\n <i class=\"icon mdi mdi-plus mr-1\"></i>\n {{ 'connectorManagement.addValue' | translate }}\n </button>\n </div>\n</ng-template>\n",
|
|
1244
1310
|
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 */.button-container{display:flex;justify-content:flex-end;width:100%}"]
|
|
1245
1311
|
},] }
|
|
1246
1312
|
];
|
|
@@ -1251,13 +1317,16 @@
|
|
|
1251
1317
|
valuesSet: [{ type: i0.Output }]
|
|
1252
1318
|
};
|
|
1253
1319
|
|
|
1320
|
+
var ɵ0$1 = {
|
|
1321
|
+
custom: "values = window['productRequestDefinitions'][row.caseDefinitionKey] || []",
|
|
1322
|
+
};
|
|
1254
1323
|
var editProductAanvragenConnectorForm = {
|
|
1255
1324
|
display: 'wizard',
|
|
1256
1325
|
settings: {
|
|
1257
1326
|
pdf: {
|
|
1258
1327
|
id: '1ec0f8ee-6685-5d98-a847-26f67b67d6f0',
|
|
1259
|
-
src: 'https://files.form.io/pdf/5692b91fd1028f01000407e3/file/1ec0f8ee-6685-5d98-a847-26f67b67d6f0'
|
|
1260
|
-
}
|
|
1328
|
+
src: 'https://files.form.io/pdf/5692b91fd1028f01000407e3/file/1ec0f8ee-6685-5d98-a847-26f67b67d6f0',
|
|
1329
|
+
},
|
|
1261
1330
|
},
|
|
1262
1331
|
components: [
|
|
1263
1332
|
{
|
|
@@ -1266,7 +1335,7 @@
|
|
|
1266
1335
|
buttonSettings: {
|
|
1267
1336
|
previous: true,
|
|
1268
1337
|
cancel: true,
|
|
1269
|
-
next: true
|
|
1338
|
+
next: true,
|
|
1270
1339
|
},
|
|
1271
1340
|
navigateOnEnter: false,
|
|
1272
1341
|
saveOnEnter: false,
|
|
@@ -1283,35 +1352,35 @@
|
|
|
1283
1352
|
attrs: [
|
|
1284
1353
|
{
|
|
1285
1354
|
attr: '',
|
|
1286
|
-
value: ''
|
|
1287
|
-
}
|
|
1355
|
+
value: '',
|
|
1356
|
+
},
|
|
1288
1357
|
],
|
|
1289
1358
|
content: 'connectorForm.productaanvraag.step0.tip',
|
|
1290
1359
|
refreshOnChange: false,
|
|
1291
1360
|
key: 'html4',
|
|
1292
1361
|
type: 'htmlelement',
|
|
1293
1362
|
input: false,
|
|
1294
|
-
tableView: false
|
|
1363
|
+
tableView: false,
|
|
1295
1364
|
},
|
|
1296
1365
|
{
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1366
|
+
key: 'productAanvraagTypes',
|
|
1367
|
+
type: 'editgrid',
|
|
1368
|
+
input: true,
|
|
1369
|
+
validate: {
|
|
1370
|
+
minLength: 1,
|
|
1371
|
+
},
|
|
1372
|
+
customClass: 'edit-grid-component',
|
|
1304
1373
|
components: [
|
|
1305
1374
|
{
|
|
1306
1375
|
label: 'connectorForm.productaanvraag.step0.typeMapping.productAanvraagType.label',
|
|
1307
1376
|
tooltip: 'connectorForm.productaanvraag.step0.typeMapping.productAanvraagType.tooltip',
|
|
1308
1377
|
tableView: true,
|
|
1309
1378
|
validate: {
|
|
1310
|
-
required: true
|
|
1379
|
+
required: true,
|
|
1311
1380
|
},
|
|
1312
1381
|
key: 'productAanvraagType',
|
|
1313
1382
|
type: 'textfield',
|
|
1314
|
-
input: true
|
|
1383
|
+
input: true,
|
|
1315
1384
|
},
|
|
1316
1385
|
{
|
|
1317
1386
|
label: 'connectorForm.productaanvraag.step0.typeMapping.caseDefinitionKey.label',
|
|
@@ -1319,30 +1388,32 @@
|
|
|
1319
1388
|
placeholder: 'connectorForm.productaanvraag.step0.typeMapping.caseDefinitionKey.placeholder',
|
|
1320
1389
|
tableView: true,
|
|
1321
1390
|
validate: {
|
|
1322
|
-
required: true
|
|
1391
|
+
required: true,
|
|
1323
1392
|
},
|
|
1324
1393
|
key: 'caseDefinitionKey',
|
|
1325
1394
|
type: 'select',
|
|
1326
|
-
input: true
|
|
1395
|
+
input: true,
|
|
1327
1396
|
},
|
|
1328
1397
|
{
|
|
1329
1398
|
label: 'connectorForm.productaanvraag.step0.typeMapping.processDefinitionKey.label',
|
|
1330
1399
|
widget: 'choicesjs',
|
|
1331
|
-
placeholder: 'connectorForm.productaanvraag.step0.typeMapping.processDefinitionKey.placeholder',
|
|
1332
1400
|
tableView: true,
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1401
|
+
dataSrc: 'custom',
|
|
1402
|
+
data: ɵ0$1,
|
|
1403
|
+
dataType: 'string',
|
|
1404
|
+
refreshOn: 'row.caseDefinitionKey',
|
|
1405
|
+
clearOnRefresh: true,
|
|
1336
1406
|
key: 'processDefinitionKey',
|
|
1337
1407
|
type: 'select',
|
|
1338
1408
|
input: true,
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1409
|
+
validate: {
|
|
1410
|
+
required: true,
|
|
1411
|
+
},
|
|
1412
|
+
placeholder: 'connectorForm.productaanvraag.step0.typeMapping.processDefinitionKey.placeholder',
|
|
1413
|
+
},
|
|
1414
|
+
],
|
|
1415
|
+
},
|
|
1416
|
+
],
|
|
1346
1417
|
},
|
|
1347
1418
|
{
|
|
1348
1419
|
title: 'connectorForm.productaanvraag.step1.title',
|
|
@@ -1350,7 +1421,7 @@
|
|
|
1350
1421
|
buttonSettings: {
|
|
1351
1422
|
previous: true,
|
|
1352
1423
|
cancel: true,
|
|
1353
|
-
next: true
|
|
1424
|
+
next: true,
|
|
1354
1425
|
},
|
|
1355
1426
|
navigateOnEnter: false,
|
|
1356
1427
|
saveOnEnter: false,
|
|
@@ -1367,15 +1438,15 @@
|
|
|
1367
1438
|
attrs: [
|
|
1368
1439
|
{
|
|
1369
1440
|
attr: '',
|
|
1370
|
-
value: ''
|
|
1371
|
-
}
|
|
1441
|
+
value: '',
|
|
1442
|
+
},
|
|
1372
1443
|
],
|
|
1373
1444
|
content: 'connectorForm.productaanvraag.step1.tip',
|
|
1374
1445
|
refreshOnChange: false,
|
|
1375
1446
|
key: 'html',
|
|
1376
1447
|
type: 'htmlelement',
|
|
1377
1448
|
input: false,
|
|
1378
|
-
tableView: false
|
|
1449
|
+
tableView: false,
|
|
1379
1450
|
},
|
|
1380
1451
|
{
|
|
1381
1452
|
title: 'connectorForm.productaanvraag.step1.objectsApi.panelTitle',
|
|
@@ -1391,24 +1462,24 @@
|
|
|
1391
1462
|
tooltip: 'connectorForm.productaanvraag.step1.objectsApi.url.tooltip',
|
|
1392
1463
|
tableView: true,
|
|
1393
1464
|
validate: {
|
|
1394
|
-
required: true
|
|
1465
|
+
required: true,
|
|
1395
1466
|
},
|
|
1396
1467
|
key: 'objectsApiUrl',
|
|
1397
1468
|
type: 'textfield',
|
|
1398
|
-
input: true
|
|
1469
|
+
input: true,
|
|
1399
1470
|
},
|
|
1400
1471
|
{
|
|
1401
1472
|
label: 'connectorForm.productaanvraag.step1.objectsApi.token.label',
|
|
1402
1473
|
tooltip: 'connectorForm.productaanvraag.step1.objectsApi.token.tooltip',
|
|
1403
1474
|
tableView: true,
|
|
1404
1475
|
validate: {
|
|
1405
|
-
required: true
|
|
1476
|
+
required: true,
|
|
1406
1477
|
},
|
|
1407
1478
|
key: 'objectsApiToken',
|
|
1408
1479
|
type: 'textfield',
|
|
1409
|
-
input: true
|
|
1410
|
-
}
|
|
1411
|
-
]
|
|
1480
|
+
input: true,
|
|
1481
|
+
},
|
|
1482
|
+
],
|
|
1412
1483
|
},
|
|
1413
1484
|
{
|
|
1414
1485
|
title: 'connectorForm.productaanvraag.step1.objectTypesApi.panelTitle',
|
|
@@ -1424,26 +1495,26 @@
|
|
|
1424
1495
|
tooltip: 'connectorForm.productaanvraag.step1.objectTypesApi.url.tooltip',
|
|
1425
1496
|
tableView: true,
|
|
1426
1497
|
validate: {
|
|
1427
|
-
required: true
|
|
1498
|
+
required: true,
|
|
1428
1499
|
},
|
|
1429
1500
|
key: 'objectTypesApiUrl',
|
|
1430
1501
|
type: 'textfield',
|
|
1431
|
-
input: true
|
|
1502
|
+
input: true,
|
|
1432
1503
|
},
|
|
1433
1504
|
{
|
|
1434
1505
|
label: 'connectorForm.productaanvraag.step1.objectTypesApi.token.label',
|
|
1435
1506
|
tooltip: 'connectorForm.productaanvraag.step1.objectTypesApi.token.tooltip',
|
|
1436
1507
|
tableView: true,
|
|
1437
1508
|
validate: {
|
|
1438
|
-
required: true
|
|
1509
|
+
required: true,
|
|
1439
1510
|
},
|
|
1440
1511
|
key: 'objectTypesApiToken',
|
|
1441
1512
|
type: 'textfield',
|
|
1442
|
-
input: true
|
|
1443
|
-
}
|
|
1444
|
-
]
|
|
1445
|
-
}
|
|
1446
|
-
]
|
|
1513
|
+
input: true,
|
|
1514
|
+
},
|
|
1515
|
+
],
|
|
1516
|
+
},
|
|
1517
|
+
],
|
|
1447
1518
|
},
|
|
1448
1519
|
{
|
|
1449
1520
|
title: 'connectorForm.productaanvraag.step2.title',
|
|
@@ -1451,7 +1522,7 @@
|
|
|
1451
1522
|
buttonSettings: {
|
|
1452
1523
|
previous: true,
|
|
1453
1524
|
cancel: true,
|
|
1454
|
-
next: true
|
|
1525
|
+
next: true,
|
|
1455
1526
|
},
|
|
1456
1527
|
navigateOnEnter: false,
|
|
1457
1528
|
saveOnEnter: false,
|
|
@@ -1468,15 +1539,15 @@
|
|
|
1468
1539
|
attrs: [
|
|
1469
1540
|
{
|
|
1470
1541
|
attr: '',
|
|
1471
|
-
value: ''
|
|
1472
|
-
}
|
|
1542
|
+
value: '',
|
|
1543
|
+
},
|
|
1473
1544
|
],
|
|
1474
1545
|
content: 'connectorForm.productaanvraag.step2.tip',
|
|
1475
1546
|
refreshOnChange: false,
|
|
1476
1547
|
key: 'html2',
|
|
1477
1548
|
type: 'htmlelement',
|
|
1478
1549
|
input: false,
|
|
1479
|
-
tableView: false
|
|
1550
|
+
tableView: false,
|
|
1480
1551
|
},
|
|
1481
1552
|
{
|
|
1482
1553
|
title: 'connectorForm.productaanvraag.step2.objectType.panelTitle',
|
|
@@ -1492,48 +1563,48 @@
|
|
|
1492
1563
|
tooltip: 'connectorForm.productaanvraag.step2.objectType.name.tooltip',
|
|
1493
1564
|
tableView: true,
|
|
1494
1565
|
validate: {
|
|
1495
|
-
required: true
|
|
1566
|
+
required: true,
|
|
1496
1567
|
},
|
|
1497
1568
|
key: 'objectTypeName',
|
|
1498
1569
|
type: 'textfield',
|
|
1499
|
-
input: true
|
|
1570
|
+
input: true,
|
|
1500
1571
|
},
|
|
1501
1572
|
{
|
|
1502
1573
|
label: 'connectorForm.productaanvraag.step2.objectType.title.label',
|
|
1503
1574
|
tooltip: 'connectorForm.productaanvraag.step2.objectType.title.tooltip',
|
|
1504
1575
|
tableView: true,
|
|
1505
1576
|
validate: {
|
|
1506
|
-
required: true
|
|
1577
|
+
required: true,
|
|
1507
1578
|
},
|
|
1508
1579
|
key: 'objectTypeTitle',
|
|
1509
1580
|
type: 'textfield',
|
|
1510
|
-
input: true
|
|
1581
|
+
input: true,
|
|
1511
1582
|
},
|
|
1512
1583
|
{
|
|
1513
1584
|
label: 'connectorForm.productaanvraag.step2.objectType.url.label',
|
|
1514
1585
|
tooltip: 'connectorForm.productaanvraag.step2.objectType.url.tooltip',
|
|
1515
1586
|
tableView: true,
|
|
1516
1587
|
validate: {
|
|
1517
|
-
required: true
|
|
1588
|
+
required: true,
|
|
1518
1589
|
},
|
|
1519
1590
|
key: 'objectTypeUrl',
|
|
1520
1591
|
type: 'textfield',
|
|
1521
|
-
input: true
|
|
1592
|
+
input: true,
|
|
1522
1593
|
},
|
|
1523
1594
|
{
|
|
1524
1595
|
label: 'connectorForm.productaanvraag.step2.objectType.typeVersion.label',
|
|
1525
1596
|
tooltip: 'connectorForm.productaanvraag.step2.objectType.typeVersion.tooltip',
|
|
1526
1597
|
tableView: true,
|
|
1527
1598
|
validate: {
|
|
1528
|
-
required: true
|
|
1599
|
+
required: true,
|
|
1529
1600
|
},
|
|
1530
1601
|
key: 'objectTypeVersion',
|
|
1531
1602
|
type: 'textfield',
|
|
1532
|
-
input: true
|
|
1533
|
-
}
|
|
1534
|
-
]
|
|
1535
|
-
}
|
|
1536
|
-
]
|
|
1603
|
+
input: true,
|
|
1604
|
+
},
|
|
1605
|
+
],
|
|
1606
|
+
},
|
|
1607
|
+
],
|
|
1537
1608
|
},
|
|
1538
1609
|
{
|
|
1539
1610
|
title: 'connectorForm.productaanvraag.step3.title',
|
|
@@ -1541,7 +1612,7 @@
|
|
|
1541
1612
|
buttonSettings: {
|
|
1542
1613
|
previous: true,
|
|
1543
1614
|
cancel: true,
|
|
1544
|
-
next: true
|
|
1615
|
+
next: true,
|
|
1545
1616
|
},
|
|
1546
1617
|
navigateOnEnter: false,
|
|
1547
1618
|
saveOnEnter: false,
|
|
@@ -1558,15 +1629,15 @@
|
|
|
1558
1629
|
attrs: [
|
|
1559
1630
|
{
|
|
1560
1631
|
attr: '',
|
|
1561
|
-
value: ''
|
|
1562
|
-
}
|
|
1632
|
+
value: '',
|
|
1633
|
+
},
|
|
1563
1634
|
],
|
|
1564
1635
|
content: 'connectorForm.productaanvraag.step3.tip',
|
|
1565
1636
|
refreshOnChange: false,
|
|
1566
1637
|
key: 'html1',
|
|
1567
1638
|
type: 'htmlelement',
|
|
1568
1639
|
input: false,
|
|
1569
|
-
tableView: false
|
|
1640
|
+
tableView: false,
|
|
1570
1641
|
},
|
|
1571
1642
|
{
|
|
1572
1643
|
title: 'connectorForm.productaanvraag.step3.openNotifications.panelTitle',
|
|
@@ -1582,48 +1653,48 @@
|
|
|
1582
1653
|
tooltip: 'connectorForm.productaanvraag.step3.openNotifications.baseUrl.tooltip',
|
|
1583
1654
|
tableView: true,
|
|
1584
1655
|
validate: {
|
|
1585
|
-
required: true
|
|
1656
|
+
required: true,
|
|
1586
1657
|
},
|
|
1587
1658
|
key: 'openNotificationsBaseUrl',
|
|
1588
1659
|
type: 'textfield',
|
|
1589
|
-
input: true
|
|
1660
|
+
input: true,
|
|
1590
1661
|
},
|
|
1591
1662
|
{
|
|
1592
1663
|
label: 'connectorForm.productaanvraag.step3.openNotifications.clientId.label',
|
|
1593
1664
|
tooltip: 'connectorForm.productaanvraag.step3.openNotifications.clientId.tooltip',
|
|
1594
1665
|
tableView: true,
|
|
1595
1666
|
validate: {
|
|
1596
|
-
required: true
|
|
1667
|
+
required: true,
|
|
1597
1668
|
},
|
|
1598
1669
|
key: 'openNotificationsClientId',
|
|
1599
1670
|
type: 'textfield',
|
|
1600
|
-
input: true
|
|
1671
|
+
input: true,
|
|
1601
1672
|
},
|
|
1602
1673
|
{
|
|
1603
1674
|
label: 'connectorForm.productaanvraag.step3.openNotifications.secret.label',
|
|
1604
1675
|
tooltip: 'connectorForm.productaanvraag.step3.openNotifications.secret.tooltip',
|
|
1605
1676
|
tableView: true,
|
|
1606
1677
|
validate: {
|
|
1607
|
-
required: true
|
|
1678
|
+
required: true,
|
|
1608
1679
|
},
|
|
1609
1680
|
key: 'openNotificationsSecret',
|
|
1610
1681
|
type: 'textfield',
|
|
1611
|
-
input: true
|
|
1682
|
+
input: true,
|
|
1612
1683
|
},
|
|
1613
1684
|
{
|
|
1614
1685
|
label: 'connectorForm.productaanvraag.step3.openNotifications.callbackBaseUrl.label',
|
|
1615
1686
|
tooltip: 'connectorForm.productaanvraag.step3.openNotifications.callbackBaseUrl.tooltip',
|
|
1616
1687
|
tableView: true,
|
|
1617
1688
|
validate: {
|
|
1618
|
-
required: true
|
|
1689
|
+
required: true,
|
|
1619
1690
|
},
|
|
1620
1691
|
key: 'openNotificationsCallbackBaseUrl',
|
|
1621
1692
|
type: 'textfield',
|
|
1622
|
-
input: true
|
|
1623
|
-
}
|
|
1624
|
-
]
|
|
1625
|
-
}
|
|
1626
|
-
]
|
|
1693
|
+
input: true,
|
|
1694
|
+
},
|
|
1695
|
+
],
|
|
1696
|
+
},
|
|
1697
|
+
],
|
|
1627
1698
|
},
|
|
1628
1699
|
{
|
|
1629
1700
|
title: 'connectorForm.productaanvraag.step4.title',
|
|
@@ -1631,7 +1702,7 @@
|
|
|
1631
1702
|
buttonSettings: {
|
|
1632
1703
|
previous: true,
|
|
1633
1704
|
cancel: true,
|
|
1634
|
-
next: true
|
|
1705
|
+
next: true,
|
|
1635
1706
|
},
|
|
1636
1707
|
navigateOnEnter: false,
|
|
1637
1708
|
saveOnEnter: false,
|
|
@@ -1648,15 +1719,15 @@
|
|
|
1648
1719
|
attrs: [
|
|
1649
1720
|
{
|
|
1650
1721
|
attr: '',
|
|
1651
|
-
value: ''
|
|
1652
|
-
}
|
|
1722
|
+
value: '',
|
|
1723
|
+
},
|
|
1653
1724
|
],
|
|
1654
1725
|
content: 'connectorForm.productaanvraag.step4.tip',
|
|
1655
1726
|
refreshOnChange: false,
|
|
1656
1727
|
key: 'html3',
|
|
1657
1728
|
type: 'htmlelement',
|
|
1658
1729
|
input: false,
|
|
1659
|
-
tableView: false
|
|
1730
|
+
tableView: false,
|
|
1660
1731
|
},
|
|
1661
1732
|
{
|
|
1662
1733
|
title: 'connectorForm.productaanvraag.step4.applicant.panelTitle',
|
|
@@ -1672,30 +1743,30 @@
|
|
|
1672
1743
|
attrs: [
|
|
1673
1744
|
{
|
|
1674
1745
|
attr: '',
|
|
1675
|
-
value: ''
|
|
1676
|
-
}
|
|
1746
|
+
value: '',
|
|
1747
|
+
},
|
|
1677
1748
|
],
|
|
1678
1749
|
content: 'connectorForm.productaanvraag.step4.applicant.tip',
|
|
1679
1750
|
refreshOnChange: false,
|
|
1680
1751
|
key: 'html5',
|
|
1681
1752
|
type: 'htmlelement',
|
|
1682
1753
|
input: false,
|
|
1683
|
-
tableView: false
|
|
1754
|
+
tableView: false,
|
|
1684
1755
|
},
|
|
1685
1756
|
{
|
|
1686
1757
|
label: 'connectorForm.productaanvraag.step4.applicant.roleTypeUrl.label',
|
|
1687
1758
|
tooltip: 'connectorForm.productaanvraag.step4.applicant.roleTypeUrl.tooltip',
|
|
1688
1759
|
tableView: true,
|
|
1689
1760
|
validate: {
|
|
1690
|
-
required: true
|
|
1761
|
+
required: true,
|
|
1691
1762
|
},
|
|
1692
1763
|
key: 'applicantRoleTypeUrl',
|
|
1693
1764
|
type: 'textfield',
|
|
1694
|
-
input: true
|
|
1695
|
-
}
|
|
1696
|
-
]
|
|
1697
|
-
}
|
|
1698
|
-
]
|
|
1765
|
+
input: true,
|
|
1766
|
+
},
|
|
1767
|
+
],
|
|
1768
|
+
},
|
|
1769
|
+
],
|
|
1699
1770
|
},
|
|
1700
1771
|
{
|
|
1701
1772
|
title: 'connectorForm.productaanvraag.step5.title',
|
|
@@ -1703,7 +1774,7 @@
|
|
|
1703
1774
|
buttonSettings: {
|
|
1704
1775
|
previous: true,
|
|
1705
1776
|
cancel: true,
|
|
1706
|
-
next: true
|
|
1777
|
+
next: true,
|
|
1707
1778
|
},
|
|
1708
1779
|
navigateOnEnter: false,
|
|
1709
1780
|
saveOnEnter: false,
|
|
@@ -1720,29 +1791,29 @@
|
|
|
1720
1791
|
attrs: [
|
|
1721
1792
|
{
|
|
1722
1793
|
attr: '',
|
|
1723
|
-
value: ''
|
|
1724
|
-
}
|
|
1794
|
+
value: '',
|
|
1795
|
+
},
|
|
1725
1796
|
],
|
|
1726
1797
|
content: 'connectorForm.productaanvraag.step5.tip',
|
|
1727
1798
|
refreshOnChange: false,
|
|
1728
1799
|
key: 'html6',
|
|
1729
1800
|
type: 'htmlelement',
|
|
1730
1801
|
input: false,
|
|
1731
|
-
tableView: false
|
|
1802
|
+
tableView: false,
|
|
1732
1803
|
},
|
|
1733
1804
|
{
|
|
1734
1805
|
label: 'connectorForm.productaanvraag.step5.name',
|
|
1735
1806
|
tableView: true,
|
|
1736
1807
|
validate: {
|
|
1737
|
-
required: true
|
|
1808
|
+
required: true,
|
|
1738
1809
|
},
|
|
1739
1810
|
key: 'connectorName',
|
|
1740
1811
|
type: 'textfield',
|
|
1741
|
-
input: true
|
|
1742
|
-
}
|
|
1743
|
-
]
|
|
1744
|
-
}
|
|
1745
|
-
]
|
|
1812
|
+
input: true,
|
|
1813
|
+
},
|
|
1814
|
+
],
|
|
1815
|
+
},
|
|
1816
|
+
],
|
|
1746
1817
|
};
|
|
1747
1818
|
|
|
1748
1819
|
var EditProductAanvragenConnectorComponent = /** @class */ (function () {
|
|
@@ -1758,56 +1829,29 @@
|
|
|
1758
1829
|
this.formRefresh$ = new rxjs.Subject();
|
|
1759
1830
|
this.formDefinition$ = new rxjs.BehaviorSubject(undefined);
|
|
1760
1831
|
this.translatedFormDefinition$ = this.formDefinition$.pipe(operators.map(function (definition) { return _this.formTranslationService.translateForm(definition); }));
|
|
1761
|
-
this.
|
|
1832
|
+
this.caseDefinitionOptions = [];
|
|
1833
|
+
this.processDocumentDefinitionOptions = {};
|
|
1762
1834
|
this.options = {
|
|
1763
|
-
disableAlerts: true
|
|
1835
|
+
disableAlerts: true,
|
|
1764
1836
|
};
|
|
1765
1837
|
this.mapCaseDefinitionKeyComponent = function (component) {
|
|
1766
|
-
var _a;
|
|
1767
1838
|
if (component.key === 'caseDefinitionKey') {
|
|
1768
|
-
|
|
1769
|
-
return Object.assign(Object.assign({}, component), { disabled: false, data: { values: definitionOptions } });
|
|
1770
|
-
}
|
|
1771
|
-
return component;
|
|
1772
|
-
};
|
|
1773
|
-
this.mapProcessDefinitionKeyComponent = function (component) {
|
|
1774
|
-
var _a;
|
|
1775
|
-
if (component.key === 'processDefinitionKey') {
|
|
1776
|
-
var processOptions = _this.processDocumentDefinitions.map(function (definition) { return ({ label: definition.processName, value: definition.id.processDefinitionKey }); });
|
|
1777
|
-
if (((_a = _this.processDocumentDefinitions) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
1778
|
-
return Object.assign(Object.assign({}, component), { disabled: false, data: { values: processOptions } });
|
|
1779
|
-
}
|
|
1780
|
-
else {
|
|
1781
|
-
return Object.assign(Object.assign({}, component), { disabled: true, data: { values: [] } });
|
|
1782
|
-
}
|
|
1839
|
+
return Object.assign(Object.assign({}, component), { disabled: false, data: { values: _this.caseDefinitionOptions } });
|
|
1783
1840
|
}
|
|
1784
1841
|
return component;
|
|
1785
1842
|
};
|
|
1786
1843
|
}
|
|
1787
1844
|
EditProductAanvragenConnectorComponent.prototype.ngOnInit = function () {
|
|
1845
|
+
window['productRequestDefinitions'] = {};
|
|
1788
1846
|
this.openFormDefinitionSubscription();
|
|
1789
1847
|
this.formDefinition$.next(editProductAanvragenConnectorForm);
|
|
1790
|
-
this.
|
|
1848
|
+
this.loadDefinitions();
|
|
1791
1849
|
};
|
|
1792
1850
|
EditProductAanvragenConnectorComponent.prototype.ngOnDestroy = function () {
|
|
1793
1851
|
var _a, _b;
|
|
1794
1852
|
(_a = this.formDefinitionSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1795
1853
|
(_b = this.translateSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
1796
1854
|
};
|
|
1797
|
-
EditProductAanvragenConnectorComponent.prototype.onChange = function (object) {
|
|
1798
|
-
var _this = this;
|
|
1799
|
-
var _a;
|
|
1800
|
-
var caseDefinitionKeyValue = (_a = object === null || object === void 0 ? void 0 : object.data) === null || _a === void 0 ? void 0 : _a.caseDefinitionKey;
|
|
1801
|
-
var currentCaseDefinitionId = this.caseDefinitionId$.getValue();
|
|
1802
|
-
if (caseDefinitionKeyValue && caseDefinitionKeyValue !== currentCaseDefinitionId) {
|
|
1803
|
-
this.documentService.findProcessDocumentDefinitions(caseDefinitionKeyValue).subscribe(function (processDocumentDefinitions) {
|
|
1804
|
-
_this.processDocumentDefinitions = processDocumentDefinitions;
|
|
1805
|
-
var definitionWithProcessDefinitionKeyValues = _this.formMappingService.mapComponents(_this.formDefinition$.getValue(), _this.mapProcessDefinitionKeyComponent);
|
|
1806
|
-
_this.formDefinition$.next(definitionWithProcessDefinitionKeyValues);
|
|
1807
|
-
_this.caseDefinitionId$.next(caseDefinitionKeyValue);
|
|
1808
|
-
});
|
|
1809
|
-
}
|
|
1810
|
-
};
|
|
1811
1855
|
EditProductAanvragenConnectorComponent.prototype.onSubmit = function (event) {
|
|
1812
1856
|
var submission = event.data;
|
|
1813
1857
|
var properties = lodash.cloneDeep(this.properties);
|
|
@@ -1822,15 +1866,10 @@
|
|
|
1822
1866
|
properties.openNotificatieProperties.baseUrl = submission.openNotificationsBaseUrl;
|
|
1823
1867
|
properties.openNotificatieProperties.clientId = submission.openNotificationsClientId;
|
|
1824
1868
|
properties.openNotificatieProperties.secret = submission.openNotificationsSecret;
|
|
1825
|
-
properties.openNotificatieProperties.callbackBaseUrl =
|
|
1869
|
+
properties.openNotificatieProperties.callbackBaseUrl =
|
|
1870
|
+
submission.openNotificationsCallbackBaseUrl;
|
|
1826
1871
|
properties.aanvragerRolTypeUrl = submission.applicantRoleTypeUrl;
|
|
1827
|
-
properties.typeMapping =
|
|
1828
|
-
{
|
|
1829
|
-
productAanvraagType: submission.productAanvraagType,
|
|
1830
|
-
caseDefinitionKey: submission.caseDefinitionKey,
|
|
1831
|
-
processDefinitionKey: submission.processDefinitionKey
|
|
1832
|
-
}
|
|
1833
|
-
];
|
|
1872
|
+
properties.typeMapping = submission.productAanvraagTypes;
|
|
1834
1873
|
this.propertiesSave.emit({ properties: properties, name: submission.connectorName });
|
|
1835
1874
|
};
|
|
1836
1875
|
EditProductAanvragenConnectorComponent.prototype.onDelete = function () {
|
|
@@ -1838,8 +1877,10 @@
|
|
|
1838
1877
|
};
|
|
1839
1878
|
EditProductAanvragenConnectorComponent.prototype.openFormDefinitionSubscription = function () {
|
|
1840
1879
|
var _this = this;
|
|
1841
|
-
this.formDefinitionSubscription = rxjs.combineLatest([
|
|
1842
|
-
.
|
|
1880
|
+
this.formDefinitionSubscription = rxjs.combineLatest([
|
|
1881
|
+
this.formDefinition$,
|
|
1882
|
+
this.translateService.stream('key'),
|
|
1883
|
+
]).subscribe(function (_c) {
|
|
1843
1884
|
var _d = __read(_c, 1), form = _d[0];
|
|
1844
1885
|
var translatedForm = _this.formTranslationService.translateForm(form);
|
|
1845
1886
|
_this.refreshForm({ form: translatedForm });
|
|
@@ -1859,36 +1900,45 @@
|
|
|
1859
1900
|
submission.openNotificationsBaseUrl = properties.openNotificatieProperties.baseUrl;
|
|
1860
1901
|
submission.openNotificationsClientId = properties.openNotificatieProperties.clientId;
|
|
1861
1902
|
submission.openNotificationsSecret = properties.openNotificatieProperties.secret;
|
|
1862
|
-
submission.openNotificationsCallbackBaseUrl =
|
|
1903
|
+
submission.openNotificationsCallbackBaseUrl =
|
|
1904
|
+
properties.openNotificatieProperties.callbackBaseUrl;
|
|
1863
1905
|
submission.applicantRoleTypeUrl = properties.aanvragerRolTypeUrl;
|
|
1864
|
-
submission.
|
|
1865
|
-
submission.caseDefinitionKey = properties.typeMapping[0].caseDefinitionKey;
|
|
1866
|
-
submission.processDefinitionKey = properties.typeMapping[0].processDefinitionKey;
|
|
1906
|
+
submission.productAanvraagTypes = properties.typeMapping;
|
|
1867
1907
|
submission.connectorName = this.defaultName;
|
|
1868
1908
|
this.refreshForm({ submission: { data: submission } });
|
|
1869
1909
|
};
|
|
1870
1910
|
EditProductAanvragenConnectorComponent.prototype.refreshForm = function (refreshValue) {
|
|
1871
1911
|
this.formRefresh$.next(refreshValue);
|
|
1872
1912
|
};
|
|
1873
|
-
EditProductAanvragenConnectorComponent.prototype.
|
|
1913
|
+
EditProductAanvragenConnectorComponent.prototype.loadDefinitions = function () {
|
|
1874
1914
|
var _this = this;
|
|
1875
|
-
|
|
1915
|
+
var documentDefinitions;
|
|
1916
|
+
this.documentService
|
|
1917
|
+
.getAllDefinitions()
|
|
1918
|
+
.pipe(operators.tap(function (resDocumentDefinitions) { return (documentDefinitions = resDocumentDefinitions.content); }), operators.switchMap(function (resDocumentDefinitions) { return rxjs.combineLatest(resDocumentDefinitions.content.map(function (definition) { return _this.documentService.findProcessDocumentDefinitions(definition.id.name); })); }), operators.tap(function (res) {
|
|
1876
1919
|
var _a;
|
|
1877
|
-
_this.
|
|
1878
|
-
|
|
1879
|
-
|
|
1920
|
+
_this.caseDefinitionOptions = documentDefinitions.map(function (documentDefinition) {
|
|
1921
|
+
return { label: documentDefinition.id.name, value: documentDefinition.id.name };
|
|
1922
|
+
});
|
|
1923
|
+
documentDefinitions.forEach(function (documentDefinition, index) {
|
|
1924
|
+
_this.processDocumentDefinitionOptions[documentDefinition.id.name] = res[index].map(function (processDocumentDefinition) { return processDocumentDefinition.id.processDefinitionKey; });
|
|
1925
|
+
});
|
|
1926
|
+
window['productRequestDefinitions'] = _this.processDocumentDefinitionOptions;
|
|
1927
|
+
var definitionWithCaseDefinitionOptions = _this.formMappingService.mapComponents(_this.formDefinition$.getValue(), _this.mapCaseDefinitionKeyComponent);
|
|
1928
|
+
_this.formDefinition$.next(definitionWithCaseDefinitionOptions);
|
|
1880
1929
|
if ((_a = _this.properties) === null || _a === void 0 ? void 0 : _a.aanvragerRolTypeUrl) {
|
|
1881
1930
|
_this.prefillForm();
|
|
1882
1931
|
}
|
|
1883
|
-
})
|
|
1932
|
+
}))
|
|
1933
|
+
.subscribe();
|
|
1884
1934
|
};
|
|
1885
1935
|
return EditProductAanvragenConnectorComponent;
|
|
1886
1936
|
}());
|
|
1887
1937
|
EditProductAanvragenConnectorComponent.decorators = [
|
|
1888
1938
|
{ type: i0.Component, args: [{
|
|
1889
1939
|
selector: 'valtimo-edit-product-aanvragen-connector',
|
|
1890
|
-
template: "<!--\n ~ Copyright 2015-2021 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 *ngIf=\"translatedFormDefinition$ | async as definition\"\n class=\"edit-product-request\"\n [ngClass]=\"{'has-delete': showDeleteButton}\"\n>\n <valtimo-form-io\n [form]=\"definition\"\n [formRefresh$]=\"formRefresh$\"\n [
|
|
1891
|
-
styles: ["/*!\n * Copyright 2015-2021 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 */.edit-product-request ::ng-deep .btn-wizard-nav-cancel{display:none}.edit-product-request ::ng-deep .list-inline{display:flex;flex-direction:row;justify-content:flex-end}.edit-product-request.has-delete ::ng-deep .list-inline{margin-bottom:-30px}.edit-product-request .btn-danger{position:relative}"]
|
|
1940
|
+
template: "<!--\n ~ Copyright 2015-2021 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 *ngIf=\"translatedFormDefinition$ | async as definition\"\n class=\"edit-product-request\"\n [ngClass]=\"{'has-delete': showDeleteButton}\"\n>\n <valtimo-form-io\n [form]=\"definition\"\n [formRefresh$]=\"formRefresh$\"\n [options]=\"options\"\n (submit)=\"onSubmit($event)\"\n >\n </valtimo-form-io>\n\n <button *ngIf=\"showDeleteButton\" class=\"btn btn-danger btn-space\" (click)=\"onDelete()\">\n <i class=\"icon mdi mdi-delete mr-1\"></i>\n {{ 'connectorManagement.remove' | translate }}\n </button>\n</div>\n",
|
|
1941
|
+
styles: ["/*!\n * Copyright 2015-2021 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 */.edit-product-request ::ng-deep .btn-wizard-nav-cancel{display:none}.edit-product-request ::ng-deep .list-inline{display:flex;flex-direction:row;justify-content:flex-end}.edit-product-request ::ng-deep .col-sm-2{flex:0 0 25%;max-width:25%}.edit-product-request ::ng-deep .edit-grid-component>label{display:none}.edit-product-request.has-delete ::ng-deep .list-inline{margin-bottom:-30px}.edit-product-request .btn-danger{position:relative}"]
|
|
1892
1942
|
},] }
|
|
1893
1943
|
];
|
|
1894
1944
|
EditProductAanvragenConnectorComponent.ctorParameters = function () { return [
|
|
@@ -1980,7 +2030,7 @@
|
|
|
1980
2030
|
ConnectorLinkExtensionComponent,
|
|
1981
2031
|
ConnectorLinkExtensionModalComponent,
|
|
1982
2032
|
EditProductAanvragenConnectorComponent,
|
|
1983
|
-
EditConnectorFormComponent
|
|
2033
|
+
EditConnectorFormComponent,
|
|
1984
2034
|
],
|
|
1985
2035
|
imports: [
|
|
1986
2036
|
common.CommonModule,
|
|
@@ -1990,7 +2040,7 @@
|
|
|
1990
2040
|
components.ListModule,
|
|
1991
2041
|
components.SpinnerModule,
|
|
1992
2042
|
components.ModalModule,
|
|
1993
|
-
components.FormIoModule
|
|
2043
|
+
components.FormIoModule,
|
|
1994
2044
|
],
|
|
1995
2045
|
exports: [
|
|
1996
2046
|
ConnectorManagementComponent,
|
|
@@ -2001,11 +2051,9 @@
|
|
|
2001
2051
|
MultiValueConnectorPropertyComponent,
|
|
2002
2052
|
ConnectorLinkExtensionComponent,
|
|
2003
2053
|
ConnectorLinkExtensionModalComponent,
|
|
2004
|
-
EditProductAanvragenConnectorComponent
|
|
2054
|
+
EditProductAanvragenConnectorComponent,
|
|
2005
2055
|
],
|
|
2006
|
-
entryComponents: [
|
|
2007
|
-
ConnectorLinkExtensionComponent,
|
|
2008
|
-
]
|
|
2056
|
+
entryComponents: [ConnectorLinkExtensionComponent],
|
|
2009
2057
|
},] }
|
|
2010
2058
|
];
|
|
2011
2059
|
|
|
@@ -2031,7 +2079,7 @@
|
|
|
2031
2079
|
return new Promise(function (resolve, reject) {
|
|
2032
2080
|
try {
|
|
2033
2081
|
logger.debug('connector link extension initializer before init');
|
|
2034
|
-
var extension = new
|
|
2082
|
+
var extension = new i2.Extension('ConnectorLink', new i2.BasicExtensionPoint('dossier-management', 'dossier', 'right-panel', ConnectorLinkExtensionComponent));
|
|
2035
2083
|
configService.addExtension(extension);
|
|
2036
2084
|
logger.debug('connector link extension initializer after init');
|
|
2037
2085
|
resolve();
|