@valtimo/connector-management 4.15.3-next-main.15 → 4.15.3-next-main.16

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 (28) hide show
  1. package/README.md +16 -7
  2. package/bundles/valtimo-connector-management.umd.js +220 -167
  3. package/bundles/valtimo-connector-management.umd.js.map +1 -1
  4. package/bundles/valtimo-connector-management.umd.min.js +1 -1
  5. package/bundles/valtimo-connector-management.umd.min.js.map +1 -1
  6. package/esm2015/lib/components/add-connector/add-connector.component.js +12 -8
  7. package/esm2015/lib/components/connector-link-extension/connector-link-extension.component.js +20 -11
  8. package/esm2015/lib/components/connector-link-extension-modal/connector-link-extension-modal.component.js +19 -17
  9. package/esm2015/lib/components/connector-management/connector-management.component.js +23 -15
  10. package/esm2015/lib/components/connector-modal/connector-modal.component.js +2 -2
  11. package/esm2015/lib/components/edit-connector-form/edit-connector-form.component.js +1 -1
  12. package/esm2015/lib/components/edit-connector-properties/edit-connector-properties.component.js +17 -13
  13. package/esm2015/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.component.js +19 -12
  14. package/esm2015/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.form.js +89 -89
  15. package/esm2015/lib/components/modify-connector/modify-connector.component.js +9 -7
  16. package/esm2015/lib/components/multi-value-connector-property/multi-value-connector-property.component.js +15 -11
  17. package/esm2015/lib/connector-management-routing.js +4 -7
  18. package/esm2015/lib/connector-management.module.js +5 -7
  19. package/esm2015/lib/extension/connector-management.extension.init.js +1 -1
  20. package/esm2015/lib/services/connector-management/connector-management.service.js +2 -2
  21. package/esm2015/lib/services/connector-management-state/connector-management-state.service.js +2 -2
  22. package/esm2015/lib/services/object-api-sync/object-api-sync.service.js +2 -2
  23. package/esm2015/public-api.js +1 -1
  24. package/esm2015/valtimo-connector-management.js +1 -1
  25. package/fesm2015/valtimo-connector-management.js +225 -190
  26. package/fesm2015/valtimo-connector-management.js.map +1 -1
  27. package/package.json +1 -1
  28. package/valtimo-connector-management.metadata.json +1 -1
@@ -28,6 +28,8 @@
28
28
  return extendStatics(d, b);
29
29
  };
30
30
  function __extends(d, b) {
31
+ if (typeof b !== "function" && b !== null)
32
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
31
33
  extendStatics(d, b);
32
34
  function __() { this.constructor = d; }
33
35
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
@@ -213,11 +215,13 @@
213
215
  }
214
216
  return ar;
215
217
  }
218
+ /** @deprecated */
216
219
  function __spread() {
217
220
  for (var ar = [], i = 0; i < arguments.length; i++)
218
221
  ar = ar.concat(__read(arguments[i]));
219
222
  return ar;
220
223
  }
224
+ /** @deprecated */
221
225
  function __spreadArrays() {
222
226
  for (var s = 0, i = 0, il = arguments.length; i < il; i++)
223
227
  s += arguments[i].length;
@@ -226,7 +230,17 @@
226
230
  r[k] = a[j];
227
231
  return r;
228
232
  }
229
- ;
233
+ function __spreadArray(to, from, pack) {
234
+ if (pack || arguments.length === 2)
235
+ for (var i = 0, l = from.length, ar; i < l; i++) {
236
+ if (ar || !(i in from)) {
237
+ if (!ar)
238
+ ar = Array.prototype.slice.call(from, 0, i);
239
+ ar[i] = from[i];
240
+ }
241
+ }
242
+ return to.concat(ar || Array.prototype.slice.call(from));
243
+ }
230
244
  function __await(v) {
231
245
  return this instanceof __await ? (this.v = v, this) : new __await(v);
232
246
  }
@@ -291,18 +305,21 @@
291
305
  function __importDefault(mod) {
292
306
  return (mod && mod.__esModule) ? mod : { default: mod };
293
307
  }
294
- function __classPrivateFieldGet(receiver, privateMap) {
295
- if (!privateMap.has(receiver)) {
296
- throw new TypeError("attempted to get private field on non-instance");
297
- }
298
- return privateMap.get(receiver);
308
+ function __classPrivateFieldGet(receiver, state, kind, f) {
309
+ if (kind === "a" && !f)
310
+ throw new TypeError("Private accessor was defined without a getter");
311
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
312
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
313
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
299
314
  }
300
- function __classPrivateFieldSet(receiver, privateMap, value) {
301
- if (!privateMap.has(receiver)) {
302
- throw new TypeError("attempted to set private field on non-instance");
303
- }
304
- privateMap.set(receiver, value);
305
- return value;
315
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
316
+ if (kind === "m")
317
+ throw new TypeError("Private method is not writable");
318
+ if (kind === "a" && !f)
319
+ throw new TypeError("Private accessor was defined without a setter");
320
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
321
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
322
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
306
323
  }
307
324
 
308
325
  /*
@@ -352,7 +369,7 @@
352
369
  ConnectorManagementService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConnectorManagementService_Factory() { return new ConnectorManagementService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: ConnectorManagementService, providedIn: "root" });
353
370
  ConnectorManagementService.decorators = [
354
371
  { type: i0.Injectable, args: [{
355
- providedIn: 'root'
372
+ providedIn: 'root',
356
373
  },] }
357
374
  ];
358
375
  ConnectorManagementService.ctorParameters = function () { return [
@@ -461,7 +478,7 @@
461
478
  ConnectorManagementStateService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConnectorManagementStateService_Factory() { return new ConnectorManagementStateService(); }, token: ConnectorManagementStateService, providedIn: "root" });
462
479
  ConnectorManagementStateService.decorators = [
463
480
  { type: i0.Injectable, args: [{
464
- providedIn: 'root'
481
+ providedIn: 'root',
465
482
  },] }
466
483
  ];
467
484
 
@@ -479,19 +496,27 @@
479
496
  });
480
497
  this.pageSizes$ = new rxjs.BehaviorSubject({
481
498
  collectionSize: 0,
482
- maxPaginationItemSize: 5
499
+ maxPaginationItemSize: 5,
483
500
  });
484
- this.pagination$ = rxjs.combineLatest([this.currentPageAndSize$, this.pageSizes$])
485
- .pipe(operators.map(function (_b) {
501
+ this.pagination$ = rxjs.combineLatest([
502
+ this.currentPageAndSize$,
503
+ this.pageSizes$,
504
+ ]).pipe(operators.map(function (_b) {
486
505
  var _c = __read(_b, 2), currentPage = _c[0], sizes = _c[1];
487
506
  return (Object.assign(Object.assign(Object.assign({}, currentPage), sizes), { page: currentPage.page + 1 }));
488
507
  }));
489
- this.connectorInstances$ = rxjs.combineLatest([this.currentPageAndSize$, this.translateService.stream('key'), this.stateService.refresh$])
490
- .pipe(operators.tap(function () { return _this.setFields(); }), operators.switchMap(function (_b) {
508
+ this.connectorInstances$ = rxjs.combineLatest([
509
+ this.currentPageAndSize$,
510
+ this.translateService.stream('key'),
511
+ this.stateService.refresh$,
512
+ ]).pipe(operators.tap(function () { return _this.setFields(); }), operators.switchMap(function (_b) {
491
513
  var _c = __read(_b, 1), currentPage = _c[0];
492
514
  return rxjs.combineLatest([
493
- _this.connectorManagementService.getConnectorInstances({ page: currentPage.page, size: currentPage.size }),
494
- _this.connectorManagementService.getConnectorTypes()
515
+ _this.connectorManagementService.getConnectorInstances({
516
+ page: currentPage.page,
517
+ size: currentPage.size,
518
+ }),
519
+ _this.connectorManagementService.getConnectorTypes(),
495
520
  ]);
496
521
  }), operators.tap(function (_b) {
497
522
  var _c = __read(_b, 1), instanceRes = _c[0];
@@ -544,7 +569,7 @@
544
569
  ConnectorManagementComponent.decorators = [
545
570
  { type: i0.Component, args: [{
546
571
  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 class=\"main-content pt-0\" *ngIf=\"{\n connectorInstances: connectorInstances$ | async,\n fields: fields$ | async,\n pagination: pagination$ | async,\n loading: loading$ | async\n } as obs\">\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\">\n</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>&nbsp;\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\n",
572
+ 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>&nbsp;\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
573
  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
574
  },] }
550
575
  ];
@@ -575,7 +600,7 @@
575
600
  path: 'connectors',
576
601
  component: ConnectorManagementComponent,
577
602
  canActivate: [security.AuthGuardService],
578
- data: ɵ0
603
+ data: ɵ0,
579
604
  },
580
605
  ];
581
606
  var ConnectorManagementRoutingModule = /** @class */ (function () {
@@ -586,11 +611,8 @@
586
611
  ConnectorManagementRoutingModule.decorators = [
587
612
  { type: i0.NgModule, args: [{
588
613
  declarations: [],
589
- imports: [
590
- common.CommonModule,
591
- router.RouterModule.forChild(routes),
592
- ],
593
- exports: [router.RouterModule]
614
+ imports: [common.CommonModule, router.RouterModule.forChild(routes)],
615
+ exports: [router.RouterModule],
594
616
  },] }
595
617
  ];
596
618
 
@@ -632,7 +654,7 @@
632
654
  ObjectApiSyncService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ObjectApiSyncService_Factory() { return new ObjectApiSyncService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.ConfigService)); }, token: ObjectApiSyncService, providedIn: "root" });
633
655
  ObjectApiSyncService.decorators = [
634
656
  { type: i0.Injectable, args: [{
635
- providedIn: 'root'
657
+ providedIn: 'root',
636
658
  },] }
637
659
  ];
638
660
  ObjectApiSyncService.ctorParameters = function () { return [
@@ -657,10 +679,12 @@
657
679
  });
658
680
  this.pageSizes$ = new rxjs.BehaviorSubject({
659
681
  collectionSize: 0,
660
- maxPaginationItemSize: 5
682
+ maxPaginationItemSize: 5,
661
683
  });
662
- this.pagination$ = rxjs.combineLatest([this.currentPageAndSize$, this.pageSizes$])
663
- .pipe(operators.map(function (_c) {
684
+ this.pagination$ = rxjs.combineLatest([
685
+ this.currentPageAndSize$,
686
+ this.pageSizes$,
687
+ ]).pipe(operators.map(function (_c) {
664
688
  var _d = __read(_c, 2), currentPage = _d[0], sizes = _d[1];
665
689
  return (Object.assign(Object.assign(Object.assign({}, currentPage), sizes), { page: currentPage.page + 1 }));
666
690
  }));
@@ -668,9 +692,8 @@
668
692
  this.currentPageAndSize$,
669
693
  this.connectorManagementService.getConnectorTypes(),
670
694
  this.translateService.stream('key'),
671
- this.stateService.refresh$
672
- ])
673
- .pipe(operators.tap(function () { return _this.setFields(); }), operators.switchMap(function (_c) {
695
+ this.stateService.refresh$,
696
+ ]).pipe(operators.tap(function () { return _this.setFields(); }), operators.switchMap(function (_c) {
674
697
  var _d = __read(_c, 2), currentPage = _d[0], types = _d[1];
675
698
  return _this.connectorManagementService.getConnectorInstancesByType(types.find(function (type) { return type.name.toLowerCase().includes('objectsapi'); }).id, { page: currentPage.page, size: currentPage.size });
676
699
  }), operators.tap(function (instanceRes) {
@@ -720,7 +743,8 @@
720
743
  var splitObjectTypeUrl = objectTypeUrl === null || objectTypeUrl === void 0 ? void 0 : objectTypeUrl.split('/');
721
744
  var objectTypeId = splitObjectTypeUrl[splitObjectTypeUrl.length - 1];
722
745
  this.stateService.disableInput();
723
- this.objectApiSyncService.createObjectSyncConfig({ connectorInstanceId: connectorInstanceId, enabled: enabled, documentDefinitionName: documentDefinitionName, objectTypeId: objectTypeId })
746
+ this.objectApiSyncService
747
+ .createObjectSyncConfig({ connectorInstanceId: connectorInstanceId, enabled: enabled, documentDefinitionName: documentDefinitionName, objectTypeId: objectTypeId })
724
748
  .subscribe(function (res) {
725
749
  _this.alertService.success(_this.translateService.instant('connectorManagement.extension.addSyncSuccess'));
726
750
  _this.stateService.hideExtensionModal();
@@ -748,7 +772,7 @@
748
772
  ConnectorLinkExtensionModalComponent.decorators = [
749
773
  { type: i0.Component, args: [{
750
774
  selector: 'valtimo-connector-link-extension-modal',
751
- template: "<valtimo-modal #modal [title]=\"'connectorManagement.extension.buttonText'| translate\">\n <div class=\"mt-2\" body *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 <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\">{{ 'connectorManagement.subtitle' | translate }}</h5>\n </div>\n </valtimo-list>\n </valtimo-widget>\n </ng-container>\n </div>\n </div>\n</valtimo-modal>\n\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",
775
+ 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
776
  styles: [".disabled{filter:grayscale(1);opacity:.8;pointer-events:none}"]
753
777
  },] }
754
778
  ];
@@ -791,8 +815,10 @@
791
815
  }
792
816
  AddConnectorComponent.prototype.ngOnInit = function () {
793
817
  var _this = this;
794
- this.refreshSubscription = rxjs.combineLatest([this.stateService.showModal$, this.stateService.refresh$])
795
- .subscribe(function () {
818
+ this.refreshSubscription = rxjs.combineLatest([
819
+ this.stateService.showModal$,
820
+ this.stateService.refresh$,
821
+ ]).subscribe(function () {
796
822
  _this.goBack();
797
823
  });
798
824
  };
@@ -809,11 +835,13 @@
809
835
  AddConnectorComponent.prototype.onSave = function (event) {
810
836
  var _this = this;
811
837
  this.selectedConnector$.pipe(operators.take(1)).subscribe(function (selectedConnectorType) {
812
- _this.connectorManagementService.createConnectorInstance({
838
+ _this.connectorManagementService
839
+ .createConnectorInstance({
813
840
  name: event.name,
814
841
  typeId: selectedConnectorType.id,
815
- connectorProperties: event.properties
816
- }).subscribe(function () {
842
+ connectorProperties: event.properties,
843
+ })
844
+ .subscribe(function () {
817
845
  _this.alertService.success(_this.translateService.instant('connectorManagement.messages.addSuccess'));
818
846
  _this.stateService.hideModal();
819
847
  _this.stateService.enableInput();
@@ -828,7 +856,7 @@
828
856
  AddConnectorComponent.decorators = [
829
857
  { type: i0.Component, args: [{
830
858
  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.' + (connectorTypes?.length > 0 ? 'addHeader' : 'noConnectorsAvailable') | translate}}\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 class=\"btn btn-outline-secondary btn-sm btn-back\" (click)=\"goBack()\" [disabled]=\"disabled$ | async\">\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",
859
+ 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
860
  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
861
  },] }
834
862
  ];
@@ -865,12 +893,14 @@
865
893
  ModifyConnectorComponent.prototype.onSave = function (event) {
866
894
  var _this = this;
867
895
  this.instance$.pipe(operators.take(1)).subscribe(function (instance) {
868
- _this.connectorManagementService.updateConnectorInstance({
896
+ _this.connectorManagementService
897
+ .updateConnectorInstance({
869
898
  name: event.name,
870
899
  typeId: instance.type.id,
871
900
  id: instance.id,
872
- connectorProperties: event.properties
873
- }).subscribe(function () {
901
+ connectorProperties: event.properties,
902
+ })
903
+ .subscribe(function () {
874
904
  _this.alertService.success(_this.translateService.instant('connectorManagement.messages.modifySuccess'));
875
905
  _this.stateService.hideModal();
876
906
  _this.stateService.enableInput();
@@ -898,7 +928,7 @@
898
928
  ModifyConnectorComponent.decorators = [
899
929
  { type: i0.Component, args: [{
900
930
  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",
931
+ 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
932
  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
933
  },] }
904
934
  ];
@@ -976,11 +1006,15 @@
976
1006
  this.modifiedProperties$ = new rxjs.BehaviorSubject(undefined);
977
1007
  this.editFields$ = new rxjs.BehaviorSubject([]);
978
1008
  this.connectorName$ = new rxjs.BehaviorSubject('');
979
- this.saveButtonDisabled$ = rxjs.combineLatest([this.editFields$, this.modifiedProperties$, this.connectorName$]).pipe(operators.map(function (_a) {
1009
+ this.saveButtonDisabled$ = rxjs.combineLatest([
1010
+ this.editFields$,
1011
+ this.modifiedProperties$,
1012
+ this.connectorName$,
1013
+ ]).pipe(operators.map(function (_a) {
980
1014
  var _b = __read(_a, 3), editFields = _b[0], modifiedProperties = _b[1], connectorName = _b[2];
981
1015
  var values = editFields.map(function (field) { return lodash.get(modifiedProperties, field.key); });
982
1016
  var validValues = values.filter(function (value) { return Array.isArray(value) ? value.length > 0 : value === 0 || value; });
983
- return (editFields.length !== validValues.length) || !connectorName;
1017
+ return editFields.length !== validValues.length || !connectorName;
984
1018
  }));
985
1019
  this.disabled$ = this.stateService.inputDisabled$;
986
1020
  }
@@ -1013,7 +1047,8 @@
1013
1047
  var _this = this;
1014
1048
  this.stateService.disableInput();
1015
1049
  rxjs.combineLatest([this.modifiedProperties$, this.connectorName$])
1016
- .pipe(operators.take(1)).subscribe(function (_a) {
1050
+ .pipe(operators.take(1))
1051
+ .subscribe(function (_a) {
1017
1052
  var _b = __read(_a, 2), properties = _b[0], name = _b[1];
1018
1053
  _this.propertiesSave.emit({ properties: properties, name: name });
1019
1054
  });
@@ -1044,8 +1079,7 @@
1044
1079
  var editFields = [];
1045
1080
  var keysToFilter = ['className'];
1046
1081
  var handlePropertyLevel = function (propertyLevel, previousKeys) {
1047
- var propertyLevelKeys = Object.keys(propertyLevel)
1048
- .filter(function (key) { return !keysToFilter.includes(key); });
1082
+ var propertyLevelKeys = Object.keys(propertyLevel).filter(function (key) { return !keysToFilter.includes(key); });
1049
1083
  propertyLevelKeys.forEach(function (key) {
1050
1084
  var propertyValue = propertyLevel[key];
1051
1085
  var baseEditField = Object.assign({ key: previousKeys + key }, (_this.withDefaults && { defaultValue: propertyValue }));
@@ -1077,7 +1111,7 @@
1077
1111
  EditConnectorPropertiesComponent.decorators = [
1078
1112
  { type: i0.Component, args: [{
1079
1113
  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 class=\"edit-fields\" *ngIf=\"{editFields: editFields$ | async, disabled: disabled$ | async} as obs\">\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 *ngTemplateOutlet=\"singleInput;context:{editField: editField, disabled: obs.disabled}\"></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 class=\"btn btn-primary\" [disabled]=\"disabled || (saveButtonDisabled$ | async)\" (click)=\"onSave()\">\n <i class=\"icon mdi mdi-save mr-1\"></i>\n {{'connectorManagement.save' | translate}}\n </button>\n <button *ngIf=\"showDeleteButton\" class=\"btn btn-danger btn-space\" (click)=\"onDelete()\" [disabled]=\"disabled\">\n <i class=\"icon mdi mdi-delete mr-1\"></i>\n {{'connectorManagement.remove' | translate}}\n </button>\n </div>\n </div>\n</ng-template>\n",
1114
+ 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
1115
  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
1116
  },] }
1083
1117
  ];
@@ -1103,17 +1137,25 @@
1103
1137
  this.alertService = alertService;
1104
1138
  this.connectorManagementService = connectorManagementService;
1105
1139
  this.loading$ = new rxjs.BehaviorSubject(true);
1106
- this.objectApiSyncConfig$ = rxjs.combineLatest([this.route.params, this.translateService.stream('key'), this.stateService.refresh$]).pipe(operators.switchMap(function (_b) {
1140
+ this.objectApiSyncConfig$ = rxjs.combineLatest([
1141
+ this.route.params,
1142
+ this.translateService.stream('key'),
1143
+ this.stateService.refresh$,
1144
+ ]).pipe(operators.switchMap(function (_b) {
1107
1145
  var _c = __read(_b, 1), params = _c[0];
1108
1146
  return _this.objectApiSyncService.getObjectSyncConfigs(params.name);
1109
- }), operators.switchMap(function (configs) { return rxjs.combineLatest(__spread([rxjs.of(configs)], configs.map(function (config) { return _this.connectorManagementService.getConnectorInstanceById(config.connectorInstanceId).pipe(operators.catchError(function () { return rxjs.of(''); })); }))); }), operators.map(function (results) {
1147
+ }), operators.switchMap(function (configs) { return rxjs.combineLatest(__spread([
1148
+ rxjs.of(configs)
1149
+ ], configs.map(function (config) { return _this.connectorManagementService
1150
+ .getConnectorInstanceById(config.connectorInstanceId)
1151
+ .pipe(operators.catchError(function () { return rxjs.of(''); })); }))); }), operators.map(function (results) {
1110
1152
  var _b = __read(results.filter(function (result) { return result; })), instances = _b.slice(1);
1111
- return results[0]
1112
- .map(function (syncConfig) {
1153
+ return results[0].map(function (syncConfig) {
1113
1154
  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) || 'Objects API' }));
1155
+ 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) ||
1156
+ 'Objects API' }));
1115
1157
  });
1116
- }), operators.map(function (results) { return Array.isArray(results) && results.length > 0 ? results[0] : null; }), operators.tap(function () {
1158
+ }), operators.map(function (results) { return (Array.isArray(results) && results.length > 0 ? results[0] : null); }), operators.tap(function () {
1117
1159
  _this.loading$.next(false);
1118
1160
  }));
1119
1161
  this.disabled$ = this.stateService.inputDisabled$;
@@ -1127,7 +1169,9 @@
1127
1169
  ConnectorLinkExtensionComponent.prototype.toggleSync = function (config) {
1128
1170
  var _this = this;
1129
1171
  this.stateService.disableInput();
1130
- this.objectApiSyncService.modifyObjectSyncConfig(Object.assign(Object.assign({}, config), { enabled: !config.enabled })).subscribe(function () {
1172
+ this.objectApiSyncService
1173
+ .modifyObjectSyncConfig(Object.assign(Object.assign({}, config), { enabled: !config.enabled }))
1174
+ .subscribe(function () {
1131
1175
  if (!config.enabled) {
1132
1176
  _this.alertService.success(_this.translateService.instant('connectorManagement.extension.addSyncSuccess'));
1133
1177
  }
@@ -1156,7 +1200,7 @@
1156
1200
  ConnectorLinkExtensionComponent.decorators = [
1157
1201
  { type: i0.Component, args: [{
1158
1202
  selector: 'valtimo-connector-link-extension',
1159
- template: "<h2 class=\"mb-4 mt-6\">{{'connectorManagement.extension.title' | translate}}</h2>\n\n<ng-container *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 class=\"btn btn-danger ml-3\" [disabled]=\"obs.disabled\" (click)=\"deleteSync(obs.syncConfig.id)\">\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 type=\"checkbox\" [checked]=\"obs.syncConfig.enabled\" [disabled]=\"obs.disabled\" name=\"sync\" id=\"sync\" (click)=\"toggleSync(obs.syncConfig)\">\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> &nbsp;\n {{'connectorManagement.extension.buttonText' | translate}}\n </button>\n </div>\n</ng-template>\n",
1203
+ 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> &nbsp;\n {{ 'connectorManagement.extension.buttonText' | translate }}\n </button>\n </div>\n</ng-template>\n",
1160
1204
  styles: [".card-header,.setting-row{flex-direction:row;justify-content:space-between}.card-header,.controls,.setting-row{align-items:center;display:flex}"]
1161
1205
  },] }
1162
1206
  ];
@@ -1194,7 +1238,9 @@
1194
1238
  var _this = this;
1195
1239
  this.values$.pipe(operators.take(1)).subscribe(function (values) {
1196
1240
  var _b;
1197
- _this.values$.next(Object.assign(Object.assign({}, values), (_b = {}, _b[index] = editField.editType === 'string[]' ? value.trim() : parseInt(value, 10), _b)));
1241
+ _this.values$.next(Object.assign(Object.assign({}, values), (_b = {}, _b[index] = editField.editType === 'string[]'
1242
+ ? value.trim()
1243
+ : parseInt(value, 10), _b)));
1198
1244
  });
1199
1245
  };
1200
1246
  MultiValueConnectorPropertyComponent.prototype.addRow = function () {
@@ -1205,7 +1251,9 @@
1205
1251
  };
1206
1252
  MultiValueConnectorPropertyComponent.prototype.removeRow = function () {
1207
1253
  var _this = this;
1208
- rxjs.combineLatest([this.values$, this.amountOfValues$]).pipe(operators.take(1)).subscribe(function (_b) {
1254
+ rxjs.combineLatest([this.values$, this.amountOfValues$])
1255
+ .pipe(operators.take(1))
1256
+ .subscribe(function (_b) {
1209
1257
  var _c = __read(_b, 2), values = _c[0], amountOfValues = _c[1];
1210
1258
  var lastValueIndex = amountOfValues.length - 1;
1211
1259
  var valuesCopy = Object.assign({}, values);
@@ -1219,7 +1267,7 @@
1219
1267
  this.valuesSubscription = this.values$.subscribe(function (values) {
1220
1268
  _this.valuesSet.emit({
1221
1269
  editFieldKey: _this.editField.key,
1222
- values: Object.values(values).filter(function (value) { return value === 0 || value; })
1270
+ values: Object.values(values).filter(function (value) { return value === 0 || value; }),
1223
1271
  });
1224
1272
  });
1225
1273
  };
@@ -1240,7 +1288,7 @@
1240
1288
  MultiValueConnectorPropertyComponent.decorators = [
1241
1289
  { type: i0.Component, args: [{
1242
1290
  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 *ngTemplateOutlet=\"input;context:{index: index, disabled: disabled, values: obs.values}\">\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 class=\"btn btn-danger btn-space btn-sm\" (click)=\"removeRow()\" [disabled]=\"disabled || (removeButtonDisabled$ | async)\">\n <i class=\"icon mdi mdi-delete mr-1\"></i>\n {{'connectorManagement.removeValue' | translate}}\n </button>\n <button class=\"btn btn-secondary btn-space mr-0 btn-sm\" (click)=\"addRow()\" [disabled]=\"disabled || (addButtonDisabled$ | async)\">\n <i class=\"icon mdi mdi-plus mr-1\"></i>\n {{'connectorManagement.addValue' | translate}}\n </button>\n </div>\n</ng-template>\n",
1291
+ 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
1292
  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
1293
  },] }
1246
1294
  ];
@@ -1252,15 +1300,15 @@
1252
1300
  };
1253
1301
 
1254
1302
  var ɵ0$1 = {
1255
- 'custom': 'values = window[\'productRequestDefinitions\'][row.caseDefinitionKey] || []'
1303
+ custom: "values = window['productRequestDefinitions'][row.caseDefinitionKey] || []",
1256
1304
  };
1257
1305
  var editProductAanvragenConnectorForm = {
1258
1306
  display: 'wizard',
1259
1307
  settings: {
1260
1308
  pdf: {
1261
1309
  id: '1ec0f8ee-6685-5d98-a847-26f67b67d6f0',
1262
- src: 'https://files.form.io/pdf/5692b91fd1028f01000407e3/file/1ec0f8ee-6685-5d98-a847-26f67b67d6f0'
1263
- }
1310
+ src: 'https://files.form.io/pdf/5692b91fd1028f01000407e3/file/1ec0f8ee-6685-5d98-a847-26f67b67d6f0',
1311
+ },
1264
1312
  },
1265
1313
  components: [
1266
1314
  {
@@ -1269,7 +1317,7 @@
1269
1317
  buttonSettings: {
1270
1318
  previous: true,
1271
1319
  cancel: true,
1272
- next: true
1320
+ next: true,
1273
1321
  },
1274
1322
  navigateOnEnter: false,
1275
1323
  saveOnEnter: false,
@@ -1286,15 +1334,15 @@
1286
1334
  attrs: [
1287
1335
  {
1288
1336
  attr: '',
1289
- value: ''
1290
- }
1337
+ value: '',
1338
+ },
1291
1339
  ],
1292
1340
  content: 'connectorForm.productaanvraag.step0.tip',
1293
1341
  refreshOnChange: false,
1294
1342
  key: 'html4',
1295
1343
  type: 'htmlelement',
1296
1344
  input: false,
1297
- tableView: false
1345
+ tableView: false,
1298
1346
  },
1299
1347
  {
1300
1348
  key: 'productAanvraagTypes',
@@ -1310,7 +1358,7 @@
1310
1358
  tooltip: 'connectorForm.productaanvraag.step0.typeMapping.productAanvraagType.tooltip',
1311
1359
  tableView: true,
1312
1360
  validate: {
1313
- required: true
1361
+ required: true,
1314
1362
  },
1315
1363
  key: 'productAanvraagType',
1316
1364
  type: 'textfield',
@@ -1322,11 +1370,11 @@
1322
1370
  placeholder: 'connectorForm.productaanvraag.step0.typeMapping.caseDefinitionKey.placeholder',
1323
1371
  tableView: true,
1324
1372
  validate: {
1325
- required: true
1373
+ required: true,
1326
1374
  },
1327
1375
  key: 'caseDefinitionKey',
1328
1376
  type: 'select',
1329
- input: true
1377
+ input: true,
1330
1378
  },
1331
1379
  {
1332
1380
  label: 'connectorForm.productaanvraag.step0.typeMapping.processDefinitionKey.label',
@@ -1341,13 +1389,13 @@
1341
1389
  type: 'select',
1342
1390
  input: true,
1343
1391
  validate: {
1344
- required: true
1392
+ required: true,
1345
1393
  },
1346
1394
  placeholder: 'connectorForm.productaanvraag.step0.typeMapping.processDefinitionKey.placeholder',
1347
- }
1348
- ]
1349
- }
1350
- ]
1395
+ },
1396
+ ],
1397
+ },
1398
+ ],
1351
1399
  },
1352
1400
  {
1353
1401
  title: 'connectorForm.productaanvraag.step1.title',
@@ -1355,7 +1403,7 @@
1355
1403
  buttonSettings: {
1356
1404
  previous: true,
1357
1405
  cancel: true,
1358
- next: true
1406
+ next: true,
1359
1407
  },
1360
1408
  navigateOnEnter: false,
1361
1409
  saveOnEnter: false,
@@ -1372,15 +1420,15 @@
1372
1420
  attrs: [
1373
1421
  {
1374
1422
  attr: '',
1375
- value: ''
1376
- }
1423
+ value: '',
1424
+ },
1377
1425
  ],
1378
1426
  content: 'connectorForm.productaanvraag.step1.tip',
1379
1427
  refreshOnChange: false,
1380
1428
  key: 'html',
1381
1429
  type: 'htmlelement',
1382
1430
  input: false,
1383
- tableView: false
1431
+ tableView: false,
1384
1432
  },
1385
1433
  {
1386
1434
  title: 'connectorForm.productaanvraag.step1.objectsApi.panelTitle',
@@ -1396,24 +1444,24 @@
1396
1444
  tooltip: 'connectorForm.productaanvraag.step1.objectsApi.url.tooltip',
1397
1445
  tableView: true,
1398
1446
  validate: {
1399
- required: true
1447
+ required: true,
1400
1448
  },
1401
1449
  key: 'objectsApiUrl',
1402
1450
  type: 'textfield',
1403
- input: true
1451
+ input: true,
1404
1452
  },
1405
1453
  {
1406
1454
  label: 'connectorForm.productaanvraag.step1.objectsApi.token.label',
1407
1455
  tooltip: 'connectorForm.productaanvraag.step1.objectsApi.token.tooltip',
1408
1456
  tableView: true,
1409
1457
  validate: {
1410
- required: true
1458
+ required: true,
1411
1459
  },
1412
1460
  key: 'objectsApiToken',
1413
1461
  type: 'textfield',
1414
- input: true
1415
- }
1416
- ]
1462
+ input: true,
1463
+ },
1464
+ ],
1417
1465
  },
1418
1466
  {
1419
1467
  title: 'connectorForm.productaanvraag.step1.objectTypesApi.panelTitle',
@@ -1429,26 +1477,26 @@
1429
1477
  tooltip: 'connectorForm.productaanvraag.step1.objectTypesApi.url.tooltip',
1430
1478
  tableView: true,
1431
1479
  validate: {
1432
- required: true
1480
+ required: true,
1433
1481
  },
1434
1482
  key: 'objectTypesApiUrl',
1435
1483
  type: 'textfield',
1436
- input: true
1484
+ input: true,
1437
1485
  },
1438
1486
  {
1439
1487
  label: 'connectorForm.productaanvraag.step1.objectTypesApi.token.label',
1440
1488
  tooltip: 'connectorForm.productaanvraag.step1.objectTypesApi.token.tooltip',
1441
1489
  tableView: true,
1442
1490
  validate: {
1443
- required: true
1491
+ required: true,
1444
1492
  },
1445
1493
  key: 'objectTypesApiToken',
1446
1494
  type: 'textfield',
1447
- input: true
1448
- }
1449
- ]
1450
- }
1451
- ]
1495
+ input: true,
1496
+ },
1497
+ ],
1498
+ },
1499
+ ],
1452
1500
  },
1453
1501
  {
1454
1502
  title: 'connectorForm.productaanvraag.step2.title',
@@ -1456,7 +1504,7 @@
1456
1504
  buttonSettings: {
1457
1505
  previous: true,
1458
1506
  cancel: true,
1459
- next: true
1507
+ next: true,
1460
1508
  },
1461
1509
  navigateOnEnter: false,
1462
1510
  saveOnEnter: false,
@@ -1473,15 +1521,15 @@
1473
1521
  attrs: [
1474
1522
  {
1475
1523
  attr: '',
1476
- value: ''
1477
- }
1524
+ value: '',
1525
+ },
1478
1526
  ],
1479
1527
  content: 'connectorForm.productaanvraag.step2.tip',
1480
1528
  refreshOnChange: false,
1481
1529
  key: 'html2',
1482
1530
  type: 'htmlelement',
1483
1531
  input: false,
1484
- tableView: false
1532
+ tableView: false,
1485
1533
  },
1486
1534
  {
1487
1535
  title: 'connectorForm.productaanvraag.step2.objectType.panelTitle',
@@ -1497,48 +1545,48 @@
1497
1545
  tooltip: 'connectorForm.productaanvraag.step2.objectType.name.tooltip',
1498
1546
  tableView: true,
1499
1547
  validate: {
1500
- required: true
1548
+ required: true,
1501
1549
  },
1502
1550
  key: 'objectTypeName',
1503
1551
  type: 'textfield',
1504
- input: true
1552
+ input: true,
1505
1553
  },
1506
1554
  {
1507
1555
  label: 'connectorForm.productaanvraag.step2.objectType.title.label',
1508
1556
  tooltip: 'connectorForm.productaanvraag.step2.objectType.title.tooltip',
1509
1557
  tableView: true,
1510
1558
  validate: {
1511
- required: true
1559
+ required: true,
1512
1560
  },
1513
1561
  key: 'objectTypeTitle',
1514
1562
  type: 'textfield',
1515
- input: true
1563
+ input: true,
1516
1564
  },
1517
1565
  {
1518
1566
  label: 'connectorForm.productaanvraag.step2.objectType.url.label',
1519
1567
  tooltip: 'connectorForm.productaanvraag.step2.objectType.url.tooltip',
1520
1568
  tableView: true,
1521
1569
  validate: {
1522
- required: true
1570
+ required: true,
1523
1571
  },
1524
1572
  key: 'objectTypeUrl',
1525
1573
  type: 'textfield',
1526
- input: true
1574
+ input: true,
1527
1575
  },
1528
1576
  {
1529
1577
  label: 'connectorForm.productaanvraag.step2.objectType.typeVersion.label',
1530
1578
  tooltip: 'connectorForm.productaanvraag.step2.objectType.typeVersion.tooltip',
1531
1579
  tableView: true,
1532
1580
  validate: {
1533
- required: true
1581
+ required: true,
1534
1582
  },
1535
1583
  key: 'objectTypeVersion',
1536
1584
  type: 'textfield',
1537
- input: true
1538
- }
1539
- ]
1540
- }
1541
- ]
1585
+ input: true,
1586
+ },
1587
+ ],
1588
+ },
1589
+ ],
1542
1590
  },
1543
1591
  {
1544
1592
  title: 'connectorForm.productaanvraag.step3.title',
@@ -1546,7 +1594,7 @@
1546
1594
  buttonSettings: {
1547
1595
  previous: true,
1548
1596
  cancel: true,
1549
- next: true
1597
+ next: true,
1550
1598
  },
1551
1599
  navigateOnEnter: false,
1552
1600
  saveOnEnter: false,
@@ -1563,15 +1611,15 @@
1563
1611
  attrs: [
1564
1612
  {
1565
1613
  attr: '',
1566
- value: ''
1567
- }
1614
+ value: '',
1615
+ },
1568
1616
  ],
1569
1617
  content: 'connectorForm.productaanvraag.step3.tip',
1570
1618
  refreshOnChange: false,
1571
1619
  key: 'html1',
1572
1620
  type: 'htmlelement',
1573
1621
  input: false,
1574
- tableView: false
1622
+ tableView: false,
1575
1623
  },
1576
1624
  {
1577
1625
  title: 'connectorForm.productaanvraag.step3.openNotifications.panelTitle',
@@ -1587,48 +1635,48 @@
1587
1635
  tooltip: 'connectorForm.productaanvraag.step3.openNotifications.baseUrl.tooltip',
1588
1636
  tableView: true,
1589
1637
  validate: {
1590
- required: true
1638
+ required: true,
1591
1639
  },
1592
1640
  key: 'openNotificationsBaseUrl',
1593
1641
  type: 'textfield',
1594
- input: true
1642
+ input: true,
1595
1643
  },
1596
1644
  {
1597
1645
  label: 'connectorForm.productaanvraag.step3.openNotifications.clientId.label',
1598
1646
  tooltip: 'connectorForm.productaanvraag.step3.openNotifications.clientId.tooltip',
1599
1647
  tableView: true,
1600
1648
  validate: {
1601
- required: true
1649
+ required: true,
1602
1650
  },
1603
1651
  key: 'openNotificationsClientId',
1604
1652
  type: 'textfield',
1605
- input: true
1653
+ input: true,
1606
1654
  },
1607
1655
  {
1608
1656
  label: 'connectorForm.productaanvraag.step3.openNotifications.secret.label',
1609
1657
  tooltip: 'connectorForm.productaanvraag.step3.openNotifications.secret.tooltip',
1610
1658
  tableView: true,
1611
1659
  validate: {
1612
- required: true
1660
+ required: true,
1613
1661
  },
1614
1662
  key: 'openNotificationsSecret',
1615
1663
  type: 'textfield',
1616
- input: true
1664
+ input: true,
1617
1665
  },
1618
1666
  {
1619
1667
  label: 'connectorForm.productaanvraag.step3.openNotifications.callbackBaseUrl.label',
1620
1668
  tooltip: 'connectorForm.productaanvraag.step3.openNotifications.callbackBaseUrl.tooltip',
1621
1669
  tableView: true,
1622
1670
  validate: {
1623
- required: true
1671
+ required: true,
1624
1672
  },
1625
1673
  key: 'openNotificationsCallbackBaseUrl',
1626
1674
  type: 'textfield',
1627
- input: true
1628
- }
1629
- ]
1630
- }
1631
- ]
1675
+ input: true,
1676
+ },
1677
+ ],
1678
+ },
1679
+ ],
1632
1680
  },
1633
1681
  {
1634
1682
  title: 'connectorForm.productaanvraag.step4.title',
@@ -1636,7 +1684,7 @@
1636
1684
  buttonSettings: {
1637
1685
  previous: true,
1638
1686
  cancel: true,
1639
- next: true
1687
+ next: true,
1640
1688
  },
1641
1689
  navigateOnEnter: false,
1642
1690
  saveOnEnter: false,
@@ -1653,15 +1701,15 @@
1653
1701
  attrs: [
1654
1702
  {
1655
1703
  attr: '',
1656
- value: ''
1657
- }
1704
+ value: '',
1705
+ },
1658
1706
  ],
1659
1707
  content: 'connectorForm.productaanvraag.step4.tip',
1660
1708
  refreshOnChange: false,
1661
1709
  key: 'html3',
1662
1710
  type: 'htmlelement',
1663
1711
  input: false,
1664
- tableView: false
1712
+ tableView: false,
1665
1713
  },
1666
1714
  {
1667
1715
  title: 'connectorForm.productaanvraag.step4.applicant.panelTitle',
@@ -1677,30 +1725,30 @@
1677
1725
  attrs: [
1678
1726
  {
1679
1727
  attr: '',
1680
- value: ''
1681
- }
1728
+ value: '',
1729
+ },
1682
1730
  ],
1683
1731
  content: 'connectorForm.productaanvraag.step4.applicant.tip',
1684
1732
  refreshOnChange: false,
1685
1733
  key: 'html5',
1686
1734
  type: 'htmlelement',
1687
1735
  input: false,
1688
- tableView: false
1736
+ tableView: false,
1689
1737
  },
1690
1738
  {
1691
1739
  label: 'connectorForm.productaanvraag.step4.applicant.roleTypeUrl.label',
1692
1740
  tooltip: 'connectorForm.productaanvraag.step4.applicant.roleTypeUrl.tooltip',
1693
1741
  tableView: true,
1694
1742
  validate: {
1695
- required: true
1743
+ required: true,
1696
1744
  },
1697
1745
  key: 'applicantRoleTypeUrl',
1698
1746
  type: 'textfield',
1699
- input: true
1700
- }
1701
- ]
1702
- }
1703
- ]
1747
+ input: true,
1748
+ },
1749
+ ],
1750
+ },
1751
+ ],
1704
1752
  },
1705
1753
  {
1706
1754
  title: 'connectorForm.productaanvraag.step5.title',
@@ -1708,7 +1756,7 @@
1708
1756
  buttonSettings: {
1709
1757
  previous: true,
1710
1758
  cancel: true,
1711
- next: true
1759
+ next: true,
1712
1760
  },
1713
1761
  navigateOnEnter: false,
1714
1762
  saveOnEnter: false,
@@ -1725,29 +1773,29 @@
1725
1773
  attrs: [
1726
1774
  {
1727
1775
  attr: '',
1728
- value: ''
1729
- }
1776
+ value: '',
1777
+ },
1730
1778
  ],
1731
1779
  content: 'connectorForm.productaanvraag.step5.tip',
1732
1780
  refreshOnChange: false,
1733
1781
  key: 'html6',
1734
1782
  type: 'htmlelement',
1735
1783
  input: false,
1736
- tableView: false
1784
+ tableView: false,
1737
1785
  },
1738
1786
  {
1739
1787
  label: 'connectorForm.productaanvraag.step5.name',
1740
1788
  tableView: true,
1741
1789
  validate: {
1742
- required: true
1790
+ required: true,
1743
1791
  },
1744
1792
  key: 'connectorName',
1745
1793
  type: 'textfield',
1746
- input: true
1747
- }
1748
- ]
1749
- }
1750
- ]
1794
+ input: true,
1795
+ },
1796
+ ],
1797
+ },
1798
+ ],
1751
1799
  };
1752
1800
 
1753
1801
  var EditProductAanvragenConnectorComponent = /** @class */ (function () {
@@ -1766,7 +1814,7 @@
1766
1814
  this.caseDefinitionOptions = [];
1767
1815
  this.processDocumentDefinitionOptions = {};
1768
1816
  this.options = {
1769
- disableAlerts: true
1817
+ disableAlerts: true,
1770
1818
  };
1771
1819
  this.mapCaseDefinitionKeyComponent = function (component) {
1772
1820
  if (component.key === 'caseDefinitionKey') {
@@ -1800,7 +1848,8 @@
1800
1848
  properties.openNotificatieProperties.baseUrl = submission.openNotificationsBaseUrl;
1801
1849
  properties.openNotificatieProperties.clientId = submission.openNotificationsClientId;
1802
1850
  properties.openNotificatieProperties.secret = submission.openNotificationsSecret;
1803
- properties.openNotificatieProperties.callbackBaseUrl = submission.openNotificationsCallbackBaseUrl;
1851
+ properties.openNotificatieProperties.callbackBaseUrl =
1852
+ submission.openNotificationsCallbackBaseUrl;
1804
1853
  properties.aanvragerRolTypeUrl = submission.applicantRoleTypeUrl;
1805
1854
  properties.typeMapping = submission.productAanvraagTypes;
1806
1855
  this.propertiesSave.emit({ properties: properties, name: submission.connectorName });
@@ -1810,8 +1859,10 @@
1810
1859
  };
1811
1860
  EditProductAanvragenConnectorComponent.prototype.openFormDefinitionSubscription = function () {
1812
1861
  var _this = this;
1813
- this.formDefinitionSubscription = rxjs.combineLatest([this.formDefinition$, this.translateService.stream('key')])
1814
- .subscribe(function (_c) {
1862
+ this.formDefinitionSubscription = rxjs.combineLatest([
1863
+ this.formDefinition$,
1864
+ this.translateService.stream('key'),
1865
+ ]).subscribe(function (_c) {
1815
1866
  var _d = __read(_c, 1), form = _d[0];
1816
1867
  var translatedForm = _this.formTranslationService.translateForm(form);
1817
1868
  _this.refreshForm({ form: translatedForm });
@@ -1831,7 +1882,8 @@
1831
1882
  submission.openNotificationsBaseUrl = properties.openNotificatieProperties.baseUrl;
1832
1883
  submission.openNotificationsClientId = properties.openNotificatieProperties.clientId;
1833
1884
  submission.openNotificationsSecret = properties.openNotificatieProperties.secret;
1834
- submission.openNotificationsCallbackBaseUrl = properties.openNotificatieProperties.callbackBaseUrl;
1885
+ submission.openNotificationsCallbackBaseUrl =
1886
+ properties.openNotificatieProperties.callbackBaseUrl;
1835
1887
  submission.applicantRoleTypeUrl = properties.aanvragerRolTypeUrl;
1836
1888
  submission.productAanvraagTypes = properties.typeMapping;
1837
1889
  submission.connectorName = this.defaultName;
@@ -1843,7 +1895,9 @@
1843
1895
  EditProductAanvragenConnectorComponent.prototype.loadDefinitions = function () {
1844
1896
  var _this = this;
1845
1897
  var documentDefinitions;
1846
- this.documentService.getAllDefinitions().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) {
1898
+ this.documentService
1899
+ .getAllDefinitions()
1900
+ .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) {
1847
1901
  var _a;
1848
1902
  _this.caseDefinitionOptions = documentDefinitions.map(function (documentDefinition) {
1849
1903
  return { label: documentDefinition.id.name, value: documentDefinition.id.name };
@@ -1857,14 +1911,15 @@
1857
1911
  if ((_a = _this.properties) === null || _a === void 0 ? void 0 : _a.aanvragerRolTypeUrl) {
1858
1912
  _this.prefillForm();
1859
1913
  }
1860
- })).subscribe();
1914
+ }))
1915
+ .subscribe();
1861
1916
  };
1862
1917
  return EditProductAanvragenConnectorComponent;
1863
1918
  }());
1864
1919
  EditProductAanvragenConnectorComponent.decorators = [
1865
1920
  { type: i0.Component, args: [{
1866
1921
  selector: 'valtimo-edit-product-aanvragen-connector',
1867
- 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\n",
1922
+ 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",
1868
1923
  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}"]
1869
1924
  },] }
1870
1925
  ];
@@ -1957,7 +2012,7 @@
1957
2012
  ConnectorLinkExtensionComponent,
1958
2013
  ConnectorLinkExtensionModalComponent,
1959
2014
  EditProductAanvragenConnectorComponent,
1960
- EditConnectorFormComponent
2015
+ EditConnectorFormComponent,
1961
2016
  ],
1962
2017
  imports: [
1963
2018
  common.CommonModule,
@@ -1967,7 +2022,7 @@
1967
2022
  components.ListModule,
1968
2023
  components.SpinnerModule,
1969
2024
  components.ModalModule,
1970
- components.FormIoModule
2025
+ components.FormIoModule,
1971
2026
  ],
1972
2027
  exports: [
1973
2028
  ConnectorManagementComponent,
@@ -1978,11 +2033,9 @@
1978
2033
  MultiValueConnectorPropertyComponent,
1979
2034
  ConnectorLinkExtensionComponent,
1980
2035
  ConnectorLinkExtensionModalComponent,
1981
- EditProductAanvragenConnectorComponent
2036
+ EditProductAanvragenConnectorComponent,
1982
2037
  ],
1983
- entryComponents: [
1984
- ConnectorLinkExtensionComponent,
1985
- ]
2038
+ entryComponents: [ConnectorLinkExtensionComponent],
1986
2039
  },] }
1987
2040
  ];
1988
2041