@valtimo/connector-management 4.15.3-next-main.14 → 4.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +16 -7
  2. package/bundles/valtimo-connector-management.umd.js +244 -173
  3. package/bundles/valtimo-connector-management.umd.js.map +1 -1
  4. package/bundles/valtimo-connector-management.umd.min.js +2 -2
  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 +20 -13
  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 +5 -8
  18. package/esm2015/lib/connector-management.module.js +5 -7
  19. package/esm2015/lib/extension/connector-management.extension.init.js +2 -2
  20. package/esm2015/lib/models/connector.model.js +1 -0
  21. package/esm2015/lib/models/index.js +20 -0
  22. package/esm2015/lib/models/object-sync.js +1 -0
  23. package/esm2015/lib/services/connector-management/connector-management.service.js +2 -2
  24. package/esm2015/lib/services/connector-management-state/connector-management-state.service.js +2 -2
  25. package/esm2015/lib/services/object-api-sync/object-api-sync.service.js +2 -2
  26. package/esm2015/public-api.js +2 -1
  27. package/esm2015/valtimo-connector-management.js +1 -1
  28. package/fesm2015/valtimo-connector-management.js +244 -192
  29. package/fesm2015/valtimo-connector-management.js.map +1 -1
  30. package/lib/components/add-connector/add-connector.component.d.ts +1 -1
  31. package/lib/components/connector-link-extension/connector-link-extension.component.d.ts +1 -1
  32. package/lib/components/connector-link-extension-modal/connector-link-extension-modal.component.d.ts +2 -2
  33. package/lib/components/connector-management/connector-management.component.d.ts +2 -1
  34. package/lib/components/connector-modal/connector-modal.component.d.ts +1 -1
  35. package/lib/components/edit-connector-form/edit-connector-form.component.d.ts +1 -1
  36. package/lib/components/edit-connector-properties/edit-connector-properties.component.d.ts +1 -1
  37. package/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.component.d.ts +1 -1
  38. package/lib/components/modify-connector/modify-connector.component.d.ts +1 -1
  39. package/lib/components/multi-value-connector-property/multi-value-connector-property.component.d.ts +1 -1
  40. package/lib/models/connector.model.d.ts +36 -0
  41. package/lib/models/index.d.ts +2 -0
  42. package/lib/models/object-sync.d.ts +19 -0
  43. package/lib/services/connector-management/connector-management.service.d.ts +2 -1
  44. package/lib/services/connector-management-state/connector-management-state.service.d.ts +1 -1
  45. package/lib/services/object-api-sync/object-api-sync.service.d.ts +1 -1
  46. package/package.json +1 -1
  47. package/public-api.d.ts +1 -0
  48. 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/contract'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core'), require('@angular/common/http'), require('@valtimo/config'), 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/contract', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@angular/common/http', '@valtimo/config', '@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.contract, global.rxjs, global.rxjs.operators, global.cpre$1, global.ng.common.http, global.config, global.components, global.lodash, global.form, global.document, global.ngxLogger));
5
- }(this, (function (exports, i0, router, common, security, contract, rxjs, operators, core, i1, i2, components, lodash, form, document, ngxLogger) { 'use strict';
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, privateMap) {
295
- if (!privateMap.has(receiver)) {
296
- throw new TypeError("attempted to get private field on non-instance");
297
- }
298
- return privateMap.get(receiver);
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, 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;
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([this.currentPageAndSize$, this.pageSizes$])
485
- .pipe(operators.map(function (_b) {
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([this.currentPageAndSize$, this.translateService.stream('key'), this.stateService.refresh$])
490
- .pipe(operators.tap(function () { return _this.setFields(); }), operators.switchMap(function (_b) {
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({ page: currentPage.page, size: currentPage.size }),
494
- _this.connectorManagementService.getConnectorTypes()
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 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",
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>&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
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: [contract.ROLE_ADMIN] };
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
- common.CommonModule,
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([this.currentPageAndSize$, this.pageSizes$])
663
- .pipe(operators.map(function (_c) {
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.createObjectSyncConfig({ connectorInstanceId: connectorInstanceId, enabled: enabled, documentDefinitionName: documentDefinitionName, objectTypeId: objectTypeId })
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 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",
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([this.stateService.showModal$, this.stateService.refresh$])
795
- .subscribe(function () {
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.createConnectorInstance({
856
+ _this.connectorManagementService
857
+ .createConnectorInstance({
813
858
  name: event.name,
814
859
  typeId: selectedConnectorType.id,
815
- connectorProperties: event.properties
816
- }).subscribe(function () {
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.' + (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",
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.updateConnectorInstance({
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
- }).subscribe(function () {
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([this.editFields$, this.modifiedProperties$, this.connectorName$]).pipe(operators.map(function (_a) {
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 (editFields.length !== validValues.length) || !connectorName;
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)).subscribe(function (_a) {
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 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",
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([this.route.params, this.translateService.stream('key'), this.stateService.refresh$]).pipe(operators.switchMap(function (_b) {
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([rxjs.of(configs)], configs.map(function (config) { return _this.connectorManagementService.getConnectorInstanceById(config.connectorInstanceId).pipe(operators.catchError(function () { return rxjs.of(''); })); }))); }), operators.map(function (results) {
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) || 'Objects API' }));
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.modifyObjectSyncConfig(Object.assign(Object.assign({}, config), { enabled: !config.enabled })).subscribe(function () {
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,7 +1218,7 @@
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 *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",
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> &nbsp;\n {{ 'connectorManagement.extension.buttonText' | translate }}\n </button>\n </div>\n</ng-template>\n",
1160
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
  ];
@@ -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[]' ? value.trim() : parseInt(value, 10), _b)));
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$]).pipe(operators.take(1)).subscribe(function (_b) {
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 *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",
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
  ];
@@ -1252,15 +1318,15 @@
1252
1318
  };
1253
1319
 
1254
1320
  var ɵ0$1 = {
1255
- 'custom': 'values = window[\'productRequestDefinitions\'][row.caseDefinitionKey] || []'
1321
+ custom: "values = window['productRequestDefinitions'][row.caseDefinitionKey] || []",
1256
1322
  };
1257
1323
  var editProductAanvragenConnectorForm = {
1258
1324
  display: 'wizard',
1259
1325
  settings: {
1260
1326
  pdf: {
1261
1327
  id: '1ec0f8ee-6685-5d98-a847-26f67b67d6f0',
1262
- src: 'https://files.form.io/pdf/5692b91fd1028f01000407e3/file/1ec0f8ee-6685-5d98-a847-26f67b67d6f0'
1263
- }
1328
+ src: 'https://files.form.io/pdf/5692b91fd1028f01000407e3/file/1ec0f8ee-6685-5d98-a847-26f67b67d6f0',
1329
+ },
1264
1330
  },
1265
1331
  components: [
1266
1332
  {
@@ -1269,7 +1335,7 @@
1269
1335
  buttonSettings: {
1270
1336
  previous: true,
1271
1337
  cancel: true,
1272
- next: true
1338
+ next: true,
1273
1339
  },
1274
1340
  navigateOnEnter: false,
1275
1341
  saveOnEnter: false,
@@ -1286,15 +1352,15 @@
1286
1352
  attrs: [
1287
1353
  {
1288
1354
  attr: '',
1289
- value: ''
1290
- }
1355
+ value: '',
1356
+ },
1291
1357
  ],
1292
1358
  content: 'connectorForm.productaanvraag.step0.tip',
1293
1359
  refreshOnChange: false,
1294
1360
  key: 'html4',
1295
1361
  type: 'htmlelement',
1296
1362
  input: false,
1297
- tableView: false
1363
+ tableView: false,
1298
1364
  },
1299
1365
  {
1300
1366
  key: 'productAanvraagTypes',
@@ -1310,7 +1376,7 @@
1310
1376
  tooltip: 'connectorForm.productaanvraag.step0.typeMapping.productAanvraagType.tooltip',
1311
1377
  tableView: true,
1312
1378
  validate: {
1313
- required: true
1379
+ required: true,
1314
1380
  },
1315
1381
  key: 'productAanvraagType',
1316
1382
  type: 'textfield',
@@ -1322,11 +1388,11 @@
1322
1388
  placeholder: 'connectorForm.productaanvraag.step0.typeMapping.caseDefinitionKey.placeholder',
1323
1389
  tableView: true,
1324
1390
  validate: {
1325
- required: true
1391
+ required: true,
1326
1392
  },
1327
1393
  key: 'caseDefinitionKey',
1328
1394
  type: 'select',
1329
- input: true
1395
+ input: true,
1330
1396
  },
1331
1397
  {
1332
1398
  label: 'connectorForm.productaanvraag.step0.typeMapping.processDefinitionKey.label',
@@ -1341,13 +1407,13 @@
1341
1407
  type: 'select',
1342
1408
  input: true,
1343
1409
  validate: {
1344
- required: true
1410
+ required: true,
1345
1411
  },
1346
1412
  placeholder: 'connectorForm.productaanvraag.step0.typeMapping.processDefinitionKey.placeholder',
1347
- }
1348
- ]
1349
- }
1350
- ]
1413
+ },
1414
+ ],
1415
+ },
1416
+ ],
1351
1417
  },
1352
1418
  {
1353
1419
  title: 'connectorForm.productaanvraag.step1.title',
@@ -1355,7 +1421,7 @@
1355
1421
  buttonSettings: {
1356
1422
  previous: true,
1357
1423
  cancel: true,
1358
- next: true
1424
+ next: true,
1359
1425
  },
1360
1426
  navigateOnEnter: false,
1361
1427
  saveOnEnter: false,
@@ -1372,15 +1438,15 @@
1372
1438
  attrs: [
1373
1439
  {
1374
1440
  attr: '',
1375
- value: ''
1376
- }
1441
+ value: '',
1442
+ },
1377
1443
  ],
1378
1444
  content: 'connectorForm.productaanvraag.step1.tip',
1379
1445
  refreshOnChange: false,
1380
1446
  key: 'html',
1381
1447
  type: 'htmlelement',
1382
1448
  input: false,
1383
- tableView: false
1449
+ tableView: false,
1384
1450
  },
1385
1451
  {
1386
1452
  title: 'connectorForm.productaanvraag.step1.objectsApi.panelTitle',
@@ -1396,24 +1462,24 @@
1396
1462
  tooltip: 'connectorForm.productaanvraag.step1.objectsApi.url.tooltip',
1397
1463
  tableView: true,
1398
1464
  validate: {
1399
- required: true
1465
+ required: true,
1400
1466
  },
1401
1467
  key: 'objectsApiUrl',
1402
1468
  type: 'textfield',
1403
- input: true
1469
+ input: true,
1404
1470
  },
1405
1471
  {
1406
1472
  label: 'connectorForm.productaanvraag.step1.objectsApi.token.label',
1407
1473
  tooltip: 'connectorForm.productaanvraag.step1.objectsApi.token.tooltip',
1408
1474
  tableView: true,
1409
1475
  validate: {
1410
- required: true
1476
+ required: true,
1411
1477
  },
1412
1478
  key: 'objectsApiToken',
1413
1479
  type: 'textfield',
1414
- input: true
1415
- }
1416
- ]
1480
+ input: true,
1481
+ },
1482
+ ],
1417
1483
  },
1418
1484
  {
1419
1485
  title: 'connectorForm.productaanvraag.step1.objectTypesApi.panelTitle',
@@ -1429,26 +1495,26 @@
1429
1495
  tooltip: 'connectorForm.productaanvraag.step1.objectTypesApi.url.tooltip',
1430
1496
  tableView: true,
1431
1497
  validate: {
1432
- required: true
1498
+ required: true,
1433
1499
  },
1434
1500
  key: 'objectTypesApiUrl',
1435
1501
  type: 'textfield',
1436
- input: true
1502
+ input: true,
1437
1503
  },
1438
1504
  {
1439
1505
  label: 'connectorForm.productaanvraag.step1.objectTypesApi.token.label',
1440
1506
  tooltip: 'connectorForm.productaanvraag.step1.objectTypesApi.token.tooltip',
1441
1507
  tableView: true,
1442
1508
  validate: {
1443
- required: true
1509
+ required: true,
1444
1510
  },
1445
1511
  key: 'objectTypesApiToken',
1446
1512
  type: 'textfield',
1447
- input: true
1448
- }
1449
- ]
1450
- }
1451
- ]
1513
+ input: true,
1514
+ },
1515
+ ],
1516
+ },
1517
+ ],
1452
1518
  },
1453
1519
  {
1454
1520
  title: 'connectorForm.productaanvraag.step2.title',
@@ -1456,7 +1522,7 @@
1456
1522
  buttonSettings: {
1457
1523
  previous: true,
1458
1524
  cancel: true,
1459
- next: true
1525
+ next: true,
1460
1526
  },
1461
1527
  navigateOnEnter: false,
1462
1528
  saveOnEnter: false,
@@ -1473,15 +1539,15 @@
1473
1539
  attrs: [
1474
1540
  {
1475
1541
  attr: '',
1476
- value: ''
1477
- }
1542
+ value: '',
1543
+ },
1478
1544
  ],
1479
1545
  content: 'connectorForm.productaanvraag.step2.tip',
1480
1546
  refreshOnChange: false,
1481
1547
  key: 'html2',
1482
1548
  type: 'htmlelement',
1483
1549
  input: false,
1484
- tableView: false
1550
+ tableView: false,
1485
1551
  },
1486
1552
  {
1487
1553
  title: 'connectorForm.productaanvraag.step2.objectType.panelTitle',
@@ -1497,48 +1563,48 @@
1497
1563
  tooltip: 'connectorForm.productaanvraag.step2.objectType.name.tooltip',
1498
1564
  tableView: true,
1499
1565
  validate: {
1500
- required: true
1566
+ required: true,
1501
1567
  },
1502
1568
  key: 'objectTypeName',
1503
1569
  type: 'textfield',
1504
- input: true
1570
+ input: true,
1505
1571
  },
1506
1572
  {
1507
1573
  label: 'connectorForm.productaanvraag.step2.objectType.title.label',
1508
1574
  tooltip: 'connectorForm.productaanvraag.step2.objectType.title.tooltip',
1509
1575
  tableView: true,
1510
1576
  validate: {
1511
- required: true
1577
+ required: true,
1512
1578
  },
1513
1579
  key: 'objectTypeTitle',
1514
1580
  type: 'textfield',
1515
- input: true
1581
+ input: true,
1516
1582
  },
1517
1583
  {
1518
1584
  label: 'connectorForm.productaanvraag.step2.objectType.url.label',
1519
1585
  tooltip: 'connectorForm.productaanvraag.step2.objectType.url.tooltip',
1520
1586
  tableView: true,
1521
1587
  validate: {
1522
- required: true
1588
+ required: true,
1523
1589
  },
1524
1590
  key: 'objectTypeUrl',
1525
1591
  type: 'textfield',
1526
- input: true
1592
+ input: true,
1527
1593
  },
1528
1594
  {
1529
1595
  label: 'connectorForm.productaanvraag.step2.objectType.typeVersion.label',
1530
1596
  tooltip: 'connectorForm.productaanvraag.step2.objectType.typeVersion.tooltip',
1531
1597
  tableView: true,
1532
1598
  validate: {
1533
- required: true
1599
+ required: true,
1534
1600
  },
1535
1601
  key: 'objectTypeVersion',
1536
1602
  type: 'textfield',
1537
- input: true
1538
- }
1539
- ]
1540
- }
1541
- ]
1603
+ input: true,
1604
+ },
1605
+ ],
1606
+ },
1607
+ ],
1542
1608
  },
1543
1609
  {
1544
1610
  title: 'connectorForm.productaanvraag.step3.title',
@@ -1546,7 +1612,7 @@
1546
1612
  buttonSettings: {
1547
1613
  previous: true,
1548
1614
  cancel: true,
1549
- next: true
1615
+ next: true,
1550
1616
  },
1551
1617
  navigateOnEnter: false,
1552
1618
  saveOnEnter: false,
@@ -1563,15 +1629,15 @@
1563
1629
  attrs: [
1564
1630
  {
1565
1631
  attr: '',
1566
- value: ''
1567
- }
1632
+ value: '',
1633
+ },
1568
1634
  ],
1569
1635
  content: 'connectorForm.productaanvraag.step3.tip',
1570
1636
  refreshOnChange: false,
1571
1637
  key: 'html1',
1572
1638
  type: 'htmlelement',
1573
1639
  input: false,
1574
- tableView: false
1640
+ tableView: false,
1575
1641
  },
1576
1642
  {
1577
1643
  title: 'connectorForm.productaanvraag.step3.openNotifications.panelTitle',
@@ -1587,48 +1653,48 @@
1587
1653
  tooltip: 'connectorForm.productaanvraag.step3.openNotifications.baseUrl.tooltip',
1588
1654
  tableView: true,
1589
1655
  validate: {
1590
- required: true
1656
+ required: true,
1591
1657
  },
1592
1658
  key: 'openNotificationsBaseUrl',
1593
1659
  type: 'textfield',
1594
- input: true
1660
+ input: true,
1595
1661
  },
1596
1662
  {
1597
1663
  label: 'connectorForm.productaanvraag.step3.openNotifications.clientId.label',
1598
1664
  tooltip: 'connectorForm.productaanvraag.step3.openNotifications.clientId.tooltip',
1599
1665
  tableView: true,
1600
1666
  validate: {
1601
- required: true
1667
+ required: true,
1602
1668
  },
1603
1669
  key: 'openNotificationsClientId',
1604
1670
  type: 'textfield',
1605
- input: true
1671
+ input: true,
1606
1672
  },
1607
1673
  {
1608
1674
  label: 'connectorForm.productaanvraag.step3.openNotifications.secret.label',
1609
1675
  tooltip: 'connectorForm.productaanvraag.step3.openNotifications.secret.tooltip',
1610
1676
  tableView: true,
1611
1677
  validate: {
1612
- required: true
1678
+ required: true,
1613
1679
  },
1614
1680
  key: 'openNotificationsSecret',
1615
1681
  type: 'textfield',
1616
- input: true
1682
+ input: true,
1617
1683
  },
1618
1684
  {
1619
1685
  label: 'connectorForm.productaanvraag.step3.openNotifications.callbackBaseUrl.label',
1620
1686
  tooltip: 'connectorForm.productaanvraag.step3.openNotifications.callbackBaseUrl.tooltip',
1621
1687
  tableView: true,
1622
1688
  validate: {
1623
- required: true
1689
+ required: true,
1624
1690
  },
1625
1691
  key: 'openNotificationsCallbackBaseUrl',
1626
1692
  type: 'textfield',
1627
- input: true
1628
- }
1629
- ]
1630
- }
1631
- ]
1693
+ input: true,
1694
+ },
1695
+ ],
1696
+ },
1697
+ ],
1632
1698
  },
1633
1699
  {
1634
1700
  title: 'connectorForm.productaanvraag.step4.title',
@@ -1636,7 +1702,7 @@
1636
1702
  buttonSettings: {
1637
1703
  previous: true,
1638
1704
  cancel: true,
1639
- next: true
1705
+ next: true,
1640
1706
  },
1641
1707
  navigateOnEnter: false,
1642
1708
  saveOnEnter: false,
@@ -1653,15 +1719,15 @@
1653
1719
  attrs: [
1654
1720
  {
1655
1721
  attr: '',
1656
- value: ''
1657
- }
1722
+ value: '',
1723
+ },
1658
1724
  ],
1659
1725
  content: 'connectorForm.productaanvraag.step4.tip',
1660
1726
  refreshOnChange: false,
1661
1727
  key: 'html3',
1662
1728
  type: 'htmlelement',
1663
1729
  input: false,
1664
- tableView: false
1730
+ tableView: false,
1665
1731
  },
1666
1732
  {
1667
1733
  title: 'connectorForm.productaanvraag.step4.applicant.panelTitle',
@@ -1677,30 +1743,30 @@
1677
1743
  attrs: [
1678
1744
  {
1679
1745
  attr: '',
1680
- value: ''
1681
- }
1746
+ value: '',
1747
+ },
1682
1748
  ],
1683
1749
  content: 'connectorForm.productaanvraag.step4.applicant.tip',
1684
1750
  refreshOnChange: false,
1685
1751
  key: 'html5',
1686
1752
  type: 'htmlelement',
1687
1753
  input: false,
1688
- tableView: false
1754
+ tableView: false,
1689
1755
  },
1690
1756
  {
1691
1757
  label: 'connectorForm.productaanvraag.step4.applicant.roleTypeUrl.label',
1692
1758
  tooltip: 'connectorForm.productaanvraag.step4.applicant.roleTypeUrl.tooltip',
1693
1759
  tableView: true,
1694
1760
  validate: {
1695
- required: true
1761
+ required: true,
1696
1762
  },
1697
1763
  key: 'applicantRoleTypeUrl',
1698
1764
  type: 'textfield',
1699
- input: true
1700
- }
1701
- ]
1702
- }
1703
- ]
1765
+ input: true,
1766
+ },
1767
+ ],
1768
+ },
1769
+ ],
1704
1770
  },
1705
1771
  {
1706
1772
  title: 'connectorForm.productaanvraag.step5.title',
@@ -1708,7 +1774,7 @@
1708
1774
  buttonSettings: {
1709
1775
  previous: true,
1710
1776
  cancel: true,
1711
- next: true
1777
+ next: true,
1712
1778
  },
1713
1779
  navigateOnEnter: false,
1714
1780
  saveOnEnter: false,
@@ -1725,29 +1791,29 @@
1725
1791
  attrs: [
1726
1792
  {
1727
1793
  attr: '',
1728
- value: ''
1729
- }
1794
+ value: '',
1795
+ },
1730
1796
  ],
1731
1797
  content: 'connectorForm.productaanvraag.step5.tip',
1732
1798
  refreshOnChange: false,
1733
1799
  key: 'html6',
1734
1800
  type: 'htmlelement',
1735
1801
  input: false,
1736
- tableView: false
1802
+ tableView: false,
1737
1803
  },
1738
1804
  {
1739
1805
  label: 'connectorForm.productaanvraag.step5.name',
1740
1806
  tableView: true,
1741
1807
  validate: {
1742
- required: true
1808
+ required: true,
1743
1809
  },
1744
1810
  key: 'connectorName',
1745
1811
  type: 'textfield',
1746
- input: true
1747
- }
1748
- ]
1749
- }
1750
- ]
1812
+ input: true,
1813
+ },
1814
+ ],
1815
+ },
1816
+ ],
1751
1817
  };
1752
1818
 
1753
1819
  var EditProductAanvragenConnectorComponent = /** @class */ (function () {
@@ -1766,7 +1832,7 @@
1766
1832
  this.caseDefinitionOptions = [];
1767
1833
  this.processDocumentDefinitionOptions = {};
1768
1834
  this.options = {
1769
- disableAlerts: true
1835
+ disableAlerts: true,
1770
1836
  };
1771
1837
  this.mapCaseDefinitionKeyComponent = function (component) {
1772
1838
  if (component.key === 'caseDefinitionKey') {
@@ -1800,7 +1866,8 @@
1800
1866
  properties.openNotificatieProperties.baseUrl = submission.openNotificationsBaseUrl;
1801
1867
  properties.openNotificatieProperties.clientId = submission.openNotificationsClientId;
1802
1868
  properties.openNotificatieProperties.secret = submission.openNotificationsSecret;
1803
- properties.openNotificatieProperties.callbackBaseUrl = submission.openNotificationsCallbackBaseUrl;
1869
+ properties.openNotificatieProperties.callbackBaseUrl =
1870
+ submission.openNotificationsCallbackBaseUrl;
1804
1871
  properties.aanvragerRolTypeUrl = submission.applicantRoleTypeUrl;
1805
1872
  properties.typeMapping = submission.productAanvraagTypes;
1806
1873
  this.propertiesSave.emit({ properties: properties, name: submission.connectorName });
@@ -1810,8 +1877,10 @@
1810
1877
  };
1811
1878
  EditProductAanvragenConnectorComponent.prototype.openFormDefinitionSubscription = function () {
1812
1879
  var _this = this;
1813
- this.formDefinitionSubscription = rxjs.combineLatest([this.formDefinition$, this.translateService.stream('key')])
1814
- .subscribe(function (_c) {
1880
+ this.formDefinitionSubscription = rxjs.combineLatest([
1881
+ this.formDefinition$,
1882
+ this.translateService.stream('key'),
1883
+ ]).subscribe(function (_c) {
1815
1884
  var _d = __read(_c, 1), form = _d[0];
1816
1885
  var translatedForm = _this.formTranslationService.translateForm(form);
1817
1886
  _this.refreshForm({ form: translatedForm });
@@ -1831,7 +1900,8 @@
1831
1900
  submission.openNotificationsBaseUrl = properties.openNotificatieProperties.baseUrl;
1832
1901
  submission.openNotificationsClientId = properties.openNotificatieProperties.clientId;
1833
1902
  submission.openNotificationsSecret = properties.openNotificatieProperties.secret;
1834
- submission.openNotificationsCallbackBaseUrl = properties.openNotificatieProperties.callbackBaseUrl;
1903
+ submission.openNotificationsCallbackBaseUrl =
1904
+ properties.openNotificatieProperties.callbackBaseUrl;
1835
1905
  submission.applicantRoleTypeUrl = properties.aanvragerRolTypeUrl;
1836
1906
  submission.productAanvraagTypes = properties.typeMapping;
1837
1907
  submission.connectorName = this.defaultName;
@@ -1843,7 +1913,9 @@
1843
1913
  EditProductAanvragenConnectorComponent.prototype.loadDefinitions = function () {
1844
1914
  var _this = this;
1845
1915
  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) {
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) {
1847
1919
  var _a;
1848
1920
  _this.caseDefinitionOptions = documentDefinitions.map(function (documentDefinition) {
1849
1921
  return { label: documentDefinition.id.name, value: documentDefinition.id.name };
@@ -1857,14 +1929,15 @@
1857
1929
  if ((_a = _this.properties) === null || _a === void 0 ? void 0 : _a.aanvragerRolTypeUrl) {
1858
1930
  _this.prefillForm();
1859
1931
  }
1860
- })).subscribe();
1932
+ }))
1933
+ .subscribe();
1861
1934
  };
1862
1935
  return EditProductAanvragenConnectorComponent;
1863
1936
  }());
1864
1937
  EditProductAanvragenConnectorComponent.decorators = [
1865
1938
  { type: i0.Component, args: [{
1866
1939
  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",
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",
1868
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}"]
1869
1942
  },] }
1870
1943
  ];
@@ -1957,7 +2030,7 @@
1957
2030
  ConnectorLinkExtensionComponent,
1958
2031
  ConnectorLinkExtensionModalComponent,
1959
2032
  EditProductAanvragenConnectorComponent,
1960
- EditConnectorFormComponent
2033
+ EditConnectorFormComponent,
1961
2034
  ],
1962
2035
  imports: [
1963
2036
  common.CommonModule,
@@ -1967,7 +2040,7 @@
1967
2040
  components.ListModule,
1968
2041
  components.SpinnerModule,
1969
2042
  components.ModalModule,
1970
- components.FormIoModule
2043
+ components.FormIoModule,
1971
2044
  ],
1972
2045
  exports: [
1973
2046
  ConnectorManagementComponent,
@@ -1978,11 +2051,9 @@
1978
2051
  MultiValueConnectorPropertyComponent,
1979
2052
  ConnectorLinkExtensionComponent,
1980
2053
  ConnectorLinkExtensionModalComponent,
1981
- EditProductAanvragenConnectorComponent
2054
+ EditProductAanvragenConnectorComponent,
1982
2055
  ],
1983
- entryComponents: [
1984
- ConnectorLinkExtensionComponent,
1985
- ]
2056
+ entryComponents: [ConnectorLinkExtensionComponent],
1986
2057
  },] }
1987
2058
  ];
1988
2059
 
@@ -2008,7 +2079,7 @@
2008
2079
  return new Promise(function (resolve, reject) {
2009
2080
  try {
2010
2081
  logger.debug('connector link extension initializer before init');
2011
- var extension = new contract.Extension('ConnectorLink', new contract.BasicExtensionPoint('dossier-management', 'dossier', 'right-panel', ConnectorLinkExtensionComponent));
2082
+ var extension = new i2.Extension('ConnectorLink', new i2.BasicExtensionPoint('dossier-management', 'dossier', 'right-panel', ConnectorLinkExtensionComponent));
2012
2083
  configService.addExtension(extension);
2013
2084
  logger.debug('connector link extension initializer after init');
2014
2085
  resolve();