@valtimo/connector-management 4.16.0 → 4.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/valtimo-connector-management.umd.js +248 -265
- package/bundles/valtimo-connector-management.umd.js.map +1 -1
- package/bundles/valtimo-connector-management.umd.min.js +2 -2
- package/bundles/valtimo-connector-management.umd.min.js.map +1 -1
- package/esm2015/lib/components/add-connector/add-connector.component.js +1 -1
- package/esm2015/lib/components/connector-link-extension/connector-link-extension.component.js +2 -2
- package/esm2015/lib/components/connector-link-extension-modal/connector-link-extension-modal.component.js +1 -1
- package/esm2015/lib/components/connector-management/connector-management.component.js +2 -2
- package/esm2015/lib/components/connector-modal/connector-modal.component.js +1 -1
- package/esm2015/lib/components/edit-connector-form/edit-connector-form.component.js +4 -2
- package/esm2015/lib/components/edit-connector-properties/edit-connector-properties.component.js +1 -1
- package/esm2015/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.component.js +33 -30
- package/esm2015/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.form.js +36 -235
- package/esm2015/lib/components/edit-taak-connector/edit-taak-connector.component.js +129 -0
- package/esm2015/lib/components/edit-taak-connector/edit-taak-connector.form.js +63 -0
- package/esm2015/lib/components/modify-connector/modify-connector.component.js +1 -1
- package/esm2015/lib/components/multi-value-connector-property/multi-value-connector-property.component.js +1 -1
- package/esm2015/lib/connector-management-routing.js +1 -1
- package/esm2015/lib/connector-management.module.js +4 -1
- package/esm2015/lib/extension/connector-management.extension.init.js +1 -1
- package/esm2015/lib/models/index.js +1 -2
- package/esm2015/lib/models/object-sync.js +1 -1
- package/esm2015/lib/services/connector-management/connector-management.service.js +2 -2
- package/esm2015/lib/services/connector-management-state/connector-management-state.service.js +1 -1
- package/esm2015/lib/services/object-api-sync/object-api-sync.service.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/esm2015/valtimo-connector-management.js +3 -2
- package/fesm2015/valtimo-connector-management.js +256 -266
- package/fesm2015/valtimo-connector-management.js.map +1 -1
- package/lib/components/add-connector/add-connector.component.d.ts +1 -1
- package/lib/components/connector-link-extension-modal/connector-link-extension-modal.component.d.ts +1 -1
- package/lib/components/connector-management/connector-management.component.d.ts +1 -1
- package/lib/components/connector-modal/connector-modal.component.d.ts +1 -1
- package/lib/components/edit-connector-form/edit-connector-form.component.d.ts +3 -1
- package/lib/components/edit-connector-properties/edit-connector-properties.component.d.ts +1 -1
- package/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.component.d.ts +6 -2
- package/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.form.d.ts +62 -0
- package/lib/components/edit-taak-connector/edit-taak-connector.component.d.ts +38 -0
- package/lib/components/edit-taak-connector/edit-taak-connector.form.d.ts +57 -0
- package/lib/components/modify-connector/modify-connector.component.d.ts +1 -1
- package/lib/components/multi-value-connector-property/multi-value-connector-property.component.d.ts +1 -1
- package/lib/models/index.d.ts +0 -1
- package/lib/services/connector-management/connector-management.service.d.ts +1 -2
- package/lib/services/connector-management-state/connector-management-state.service.d.ts +1 -1
- package/package.json +1 -1
- package/valtimo-connector-management.d.ts +2 -1
- package/valtimo-connector-management.metadata.json +1 -1
- package/esm2015/lib/models/connector.model.js +0 -1
- package/lib/models/connector.model.d.ts +0 -36
|
@@ -3,7 +3,7 @@ import { RouterModule, ActivatedRoute } from '@angular/router';
|
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import { AuthGuardService } from '@valtimo/security';
|
|
5
5
|
import { ConfigService, ROLE_ADMIN, Extension, BasicExtensionPoint } from '@valtimo/config';
|
|
6
|
-
import { BehaviorSubject, combineLatest, of, Subject } from 'rxjs';
|
|
6
|
+
import { BehaviorSubject, combineLatest, of, Subject, timer } from 'rxjs';
|
|
7
7
|
import { map, tap, switchMap, take, catchError } from 'rxjs/operators';
|
|
8
8
|
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
9
9
|
import { HttpClient } from '@angular/common/http';
|
|
@@ -252,7 +252,7 @@ class ConnectorManagementComponent {
|
|
|
252
252
|
ConnectorManagementComponent.decorators = [
|
|
253
253
|
{ type: Component, args: [{
|
|
254
254
|
selector: 'valtimo-connector-management',
|
|
255
|
-
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
|
|
255
|
+
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 mr-1\"></i>\n {{ 'connectorManagement.add' | translate }}\n </button>\n </div>\n <div class=\"clearfix\"></div>\n</ng-template>\n\n<ng-template #loading>\n <valtimo-spinner></valtimo-spinner>\n</ng-template>\n",
|
|
256
256
|
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 */"]
|
|
257
257
|
},] }
|
|
258
258
|
];
|
|
@@ -890,7 +890,7 @@ class ConnectorLinkExtensionComponent {
|
|
|
890
890
|
ConnectorLinkExtensionComponent.decorators = [
|
|
891
891
|
{ type: Component, args: [{
|
|
892
892
|
selector: 'valtimo-connector-link-extension',
|
|
893
|
-
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=\"
|
|
893
|
+
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=\"icon mdi mdi-delete\"></i>\n </button>\n </div>\n </div>\n <div class=\"card-body\">\n <div class=\"setting-row\">\n {{ 'connectorManagement.autoSync' | translate }}\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 mr-1\"></i>\n {{ 'connectorManagement.extension.buttonText' | translate }}\n </button>\n </div>\n</ng-template>\n",
|
|
894
894
|
styles: [".card-header,.setting-row{flex-direction:row;justify-content:space-between}.card-header,.controls,.setting-row{align-items:center;display:flex}"]
|
|
895
895
|
},] }
|
|
896
896
|
];
|
|
@@ -998,6 +998,10 @@ MultiValueConnectorPropertyComponent.propDecorators = {
|
|
|
998
998
|
|
|
999
999
|
const ɵ0$1 = {
|
|
1000
1000
|
custom: "values = window['productRequestDefinitions'][row.caseDefinitionKey] || []",
|
|
1001
|
+
}, ɵ1 = {
|
|
1002
|
+
custom: "values = window['openNotificatieConnectorNames'] || []",
|
|
1003
|
+
}, ɵ2 = {
|
|
1004
|
+
custom: "values = window['objectApiConnectorNames'] || []",
|
|
1001
1005
|
};
|
|
1002
1006
|
const editProductAanvragenConnectorForm = {
|
|
1003
1007
|
display: 'wizard',
|
|
@@ -1128,68 +1132,45 @@ const editProductAanvragenConnectorForm = {
|
|
|
1128
1132
|
tableView: false,
|
|
1129
1133
|
},
|
|
1130
1134
|
{
|
|
1131
|
-
title: 'connectorForm.productaanvraag.step1.
|
|
1135
|
+
title: 'connectorForm.productaanvraag.step1.connectors.panelTitle',
|
|
1132
1136
|
collapsible: false,
|
|
1133
|
-
key: '
|
|
1137
|
+
key: 'connectorFormProductaanvraagStep1ConnectorsPanelTitle',
|
|
1134
1138
|
type: 'panel',
|
|
1135
1139
|
label: 'Panel',
|
|
1136
1140
|
input: false,
|
|
1137
1141
|
tableView: false,
|
|
1138
1142
|
components: [
|
|
1139
1143
|
{
|
|
1140
|
-
label: 'connectorForm.productaanvraag.step1.
|
|
1141
|
-
|
|
1144
|
+
label: 'connectorForm.productaanvraag.step1.connectors.openNotificatieConnector.label',
|
|
1145
|
+
widget: 'choicesjs',
|
|
1142
1146
|
tableView: true,
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1147
|
+
dataSrc: 'custom',
|
|
1148
|
+
data: ɵ1,
|
|
1149
|
+
dataType: 'string',
|
|
1150
|
+
clearOnRefresh: true,
|
|
1151
|
+
key: 'openNotificatieConnectionName',
|
|
1152
|
+
type: 'select',
|
|
1148
1153
|
input: true,
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
label: 'connectorForm.productaanvraag.step1.objectsApi.token.label',
|
|
1152
|
-
tooltip: 'connectorForm.productaanvraag.step1.objectsApi.token.tooltip',
|
|
1153
|
-
tableView: true,
|
|
1154
1154
|
validate: {
|
|
1155
1155
|
required: true,
|
|
1156
1156
|
},
|
|
1157
|
-
|
|
1158
|
-
type: 'textfield',
|
|
1159
|
-
input: true,
|
|
1157
|
+
placeholder: 'connectorForm.productaanvraag.step1.connectors.openNotificatieConnector.placeholder',
|
|
1160
1158
|
},
|
|
1161
|
-
],
|
|
1162
|
-
},
|
|
1163
|
-
{
|
|
1164
|
-
title: 'connectorForm.productaanvraag.step1.objectTypesApi.panelTitle',
|
|
1165
|
-
collapsible: false,
|
|
1166
|
-
key: 'connectorFormProductaanvraagStep1ObjectTypesApiPanelTitle',
|
|
1167
|
-
type: 'panel',
|
|
1168
|
-
label: 'Panel',
|
|
1169
|
-
input: false,
|
|
1170
|
-
tableView: false,
|
|
1171
|
-
components: [
|
|
1172
1159
|
{
|
|
1173
|
-
label: 'connectorForm.productaanvraag.step1.
|
|
1174
|
-
|
|
1160
|
+
label: 'connectorForm.productaanvraag.step1.connectors.objectsApiConnector.label',
|
|
1161
|
+
widget: 'choicesjs',
|
|
1175
1162
|
tableView: true,
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1163
|
+
dataSrc: 'custom',
|
|
1164
|
+
data: ɵ2,
|
|
1165
|
+
dataType: 'string',
|
|
1166
|
+
clearOnRefresh: true,
|
|
1167
|
+
key: 'objectsApiConnectionName',
|
|
1168
|
+
type: 'select',
|
|
1181
1169
|
input: true,
|
|
1182
|
-
},
|
|
1183
|
-
{
|
|
1184
|
-
label: 'connectorForm.productaanvraag.step1.objectTypesApi.token.label',
|
|
1185
|
-
tooltip: 'connectorForm.productaanvraag.step1.objectTypesApi.token.tooltip',
|
|
1186
|
-
tableView: true,
|
|
1187
1170
|
validate: {
|
|
1188
1171
|
required: true,
|
|
1189
1172
|
},
|
|
1190
|
-
|
|
1191
|
-
type: 'textfield',
|
|
1192
|
-
input: true,
|
|
1173
|
+
placeholder: 'connectorForm.productaanvraag.step1.connectors.objectsApiConnector.placeholder',
|
|
1193
1174
|
},
|
|
1194
1175
|
],
|
|
1195
1176
|
},
|
|
@@ -1223,195 +1204,15 @@ const editProductAanvragenConnectorForm = {
|
|
|
1223
1204
|
],
|
|
1224
1205
|
content: 'connectorForm.productaanvraag.step2.tip',
|
|
1225
1206
|
refreshOnChange: false,
|
|
1226
|
-
key: 'html2',
|
|
1227
|
-
type: 'htmlelement',
|
|
1228
|
-
input: false,
|
|
1229
|
-
tableView: false,
|
|
1230
|
-
},
|
|
1231
|
-
{
|
|
1232
|
-
title: 'connectorForm.productaanvraag.step2.objectType.panelTitle',
|
|
1233
|
-
collapsible: false,
|
|
1234
|
-
key: 'connectorFormProductaanvraagStep2ObjectTypePanelTitle',
|
|
1235
|
-
type: 'panel',
|
|
1236
|
-
label: 'Panel',
|
|
1237
|
-
input: false,
|
|
1238
|
-
tableView: false,
|
|
1239
|
-
components: [
|
|
1240
|
-
{
|
|
1241
|
-
label: 'connectorForm.productaanvraag.step2.objectType.name.label',
|
|
1242
|
-
tooltip: 'connectorForm.productaanvraag.step2.objectType.name.tooltip',
|
|
1243
|
-
tableView: true,
|
|
1244
|
-
validate: {
|
|
1245
|
-
required: true,
|
|
1246
|
-
},
|
|
1247
|
-
key: 'objectTypeName',
|
|
1248
|
-
type: 'textfield',
|
|
1249
|
-
input: true,
|
|
1250
|
-
},
|
|
1251
|
-
{
|
|
1252
|
-
label: 'connectorForm.productaanvraag.step2.objectType.title.label',
|
|
1253
|
-
tooltip: 'connectorForm.productaanvraag.step2.objectType.title.tooltip',
|
|
1254
|
-
tableView: true,
|
|
1255
|
-
validate: {
|
|
1256
|
-
required: true,
|
|
1257
|
-
},
|
|
1258
|
-
key: 'objectTypeTitle',
|
|
1259
|
-
type: 'textfield',
|
|
1260
|
-
input: true,
|
|
1261
|
-
},
|
|
1262
|
-
{
|
|
1263
|
-
label: 'connectorForm.productaanvraag.step2.objectType.url.label',
|
|
1264
|
-
tooltip: 'connectorForm.productaanvraag.step2.objectType.url.tooltip',
|
|
1265
|
-
tableView: true,
|
|
1266
|
-
validate: {
|
|
1267
|
-
required: true,
|
|
1268
|
-
},
|
|
1269
|
-
key: 'objectTypeUrl',
|
|
1270
|
-
type: 'textfield',
|
|
1271
|
-
input: true,
|
|
1272
|
-
},
|
|
1273
|
-
{
|
|
1274
|
-
label: 'connectorForm.productaanvraag.step2.objectType.typeVersion.label',
|
|
1275
|
-
tooltip: 'connectorForm.productaanvraag.step2.objectType.typeVersion.tooltip',
|
|
1276
|
-
tableView: true,
|
|
1277
|
-
validate: {
|
|
1278
|
-
required: true,
|
|
1279
|
-
},
|
|
1280
|
-
key: 'objectTypeVersion',
|
|
1281
|
-
type: 'textfield',
|
|
1282
|
-
input: true,
|
|
1283
|
-
},
|
|
1284
|
-
],
|
|
1285
|
-
},
|
|
1286
|
-
],
|
|
1287
|
-
},
|
|
1288
|
-
{
|
|
1289
|
-
title: 'connectorForm.productaanvraag.step3.title',
|
|
1290
|
-
breadcrumbClickable: true,
|
|
1291
|
-
buttonSettings: {
|
|
1292
|
-
previous: true,
|
|
1293
|
-
cancel: true,
|
|
1294
|
-
next: true,
|
|
1295
|
-
},
|
|
1296
|
-
navigateOnEnter: false,
|
|
1297
|
-
saveOnEnter: false,
|
|
1298
|
-
scrollToTop: false,
|
|
1299
|
-
collapsible: false,
|
|
1300
|
-
key: 'page3',
|
|
1301
|
-
type: 'panel',
|
|
1302
|
-
label: 'Page 3',
|
|
1303
|
-
input: false,
|
|
1304
|
-
tableView: false,
|
|
1305
|
-
components: [
|
|
1306
|
-
{
|
|
1307
|
-
label: 'HTML',
|
|
1308
|
-
attrs: [
|
|
1309
|
-
{
|
|
1310
|
-
attr: '',
|
|
1311
|
-
value: '',
|
|
1312
|
-
},
|
|
1313
|
-
],
|
|
1314
|
-
content: 'connectorForm.productaanvraag.step3.tip',
|
|
1315
|
-
refreshOnChange: false,
|
|
1316
|
-
key: 'html1',
|
|
1317
|
-
type: 'htmlelement',
|
|
1318
|
-
input: false,
|
|
1319
|
-
tableView: false,
|
|
1320
|
-
},
|
|
1321
|
-
{
|
|
1322
|
-
title: 'connectorForm.productaanvraag.step3.openNotifications.panelTitle',
|
|
1323
|
-
collapsible: false,
|
|
1324
|
-
key: 'connectorFormProductaanvraagStep3OpenNotificationsPanelTitle',
|
|
1325
|
-
type: 'panel',
|
|
1326
|
-
label: 'Panel',
|
|
1327
|
-
input: false,
|
|
1328
|
-
tableView: false,
|
|
1329
|
-
components: [
|
|
1330
|
-
{
|
|
1331
|
-
label: 'connectorForm.productaanvraag.step3.openNotifications.baseUrl.label',
|
|
1332
|
-
tooltip: 'connectorForm.productaanvraag.step3.openNotifications.baseUrl.tooltip',
|
|
1333
|
-
tableView: true,
|
|
1334
|
-
validate: {
|
|
1335
|
-
required: true,
|
|
1336
|
-
},
|
|
1337
|
-
key: 'openNotificationsBaseUrl',
|
|
1338
|
-
type: 'textfield',
|
|
1339
|
-
input: true,
|
|
1340
|
-
},
|
|
1341
|
-
{
|
|
1342
|
-
label: 'connectorForm.productaanvraag.step3.openNotifications.clientId.label',
|
|
1343
|
-
tooltip: 'connectorForm.productaanvraag.step3.openNotifications.clientId.tooltip',
|
|
1344
|
-
tableView: true,
|
|
1345
|
-
validate: {
|
|
1346
|
-
required: true,
|
|
1347
|
-
},
|
|
1348
|
-
key: 'openNotificationsClientId',
|
|
1349
|
-
type: 'textfield',
|
|
1350
|
-
input: true,
|
|
1351
|
-
},
|
|
1352
|
-
{
|
|
1353
|
-
label: 'connectorForm.productaanvraag.step3.openNotifications.secret.label',
|
|
1354
|
-
tooltip: 'connectorForm.productaanvraag.step3.openNotifications.secret.tooltip',
|
|
1355
|
-
tableView: true,
|
|
1356
|
-
validate: {
|
|
1357
|
-
required: true,
|
|
1358
|
-
},
|
|
1359
|
-
key: 'openNotificationsSecret',
|
|
1360
|
-
type: 'textfield',
|
|
1361
|
-
input: true,
|
|
1362
|
-
},
|
|
1363
|
-
{
|
|
1364
|
-
label: 'connectorForm.productaanvraag.step3.openNotifications.callbackBaseUrl.label',
|
|
1365
|
-
tooltip: 'connectorForm.productaanvraag.step3.openNotifications.callbackBaseUrl.tooltip',
|
|
1366
|
-
tableView: true,
|
|
1367
|
-
validate: {
|
|
1368
|
-
required: true,
|
|
1369
|
-
},
|
|
1370
|
-
key: 'openNotificationsCallbackBaseUrl',
|
|
1371
|
-
type: 'textfield',
|
|
1372
|
-
input: true,
|
|
1373
|
-
},
|
|
1374
|
-
],
|
|
1375
|
-
},
|
|
1376
|
-
],
|
|
1377
|
-
},
|
|
1378
|
-
{
|
|
1379
|
-
title: 'connectorForm.productaanvraag.step4.title',
|
|
1380
|
-
breadcrumbClickable: true,
|
|
1381
|
-
buttonSettings: {
|
|
1382
|
-
previous: true,
|
|
1383
|
-
cancel: true,
|
|
1384
|
-
next: true,
|
|
1385
|
-
},
|
|
1386
|
-
navigateOnEnter: false,
|
|
1387
|
-
saveOnEnter: false,
|
|
1388
|
-
scrollToTop: false,
|
|
1389
|
-
collapsible: false,
|
|
1390
|
-
key: 'page4',
|
|
1391
|
-
type: 'panel',
|
|
1392
|
-
label: 'Page 4',
|
|
1393
|
-
input: false,
|
|
1394
|
-
tableView: false,
|
|
1395
|
-
components: [
|
|
1396
|
-
{
|
|
1397
|
-
label: 'HTML',
|
|
1398
|
-
attrs: [
|
|
1399
|
-
{
|
|
1400
|
-
attr: '',
|
|
1401
|
-
value: '',
|
|
1402
|
-
},
|
|
1403
|
-
],
|
|
1404
|
-
content: 'connectorForm.productaanvraag.step4.tip',
|
|
1405
|
-
refreshOnChange: false,
|
|
1406
1207
|
key: 'html3',
|
|
1407
1208
|
type: 'htmlelement',
|
|
1408
1209
|
input: false,
|
|
1409
1210
|
tableView: false,
|
|
1410
1211
|
},
|
|
1411
1212
|
{
|
|
1412
|
-
title: 'connectorForm.productaanvraag.
|
|
1213
|
+
title: 'connectorForm.productaanvraag.step2.applicant.panelTitle',
|
|
1413
1214
|
collapsible: false,
|
|
1414
|
-
key: '
|
|
1215
|
+
key: 'connectorFormProductaanvraagstep2ApplicantPanelTitle',
|
|
1415
1216
|
type: 'panel',
|
|
1416
1217
|
label: 'Panel',
|
|
1417
1218
|
input: false,
|
|
@@ -1425,7 +1226,7 @@ const editProductAanvragenConnectorForm = {
|
|
|
1425
1226
|
value: '',
|
|
1426
1227
|
},
|
|
1427
1228
|
],
|
|
1428
|
-
content: 'connectorForm.productaanvraag.
|
|
1229
|
+
content: 'connectorForm.productaanvraag.step2.applicant.tip',
|
|
1429
1230
|
refreshOnChange: false,
|
|
1430
1231
|
key: 'html5',
|
|
1431
1232
|
type: 'htmlelement',
|
|
@@ -1433,8 +1234,8 @@ const editProductAanvragenConnectorForm = {
|
|
|
1433
1234
|
tableView: false,
|
|
1434
1235
|
},
|
|
1435
1236
|
{
|
|
1436
|
-
label: 'connectorForm.productaanvraag.
|
|
1437
|
-
tooltip: 'connectorForm.productaanvraag.
|
|
1237
|
+
label: 'connectorForm.productaanvraag.step2.applicant.roleTypeUrl.label',
|
|
1238
|
+
tooltip: 'connectorForm.productaanvraag.step2.applicant.roleTypeUrl.tooltip',
|
|
1438
1239
|
tableView: true,
|
|
1439
1240
|
validate: {
|
|
1440
1241
|
required: true,
|
|
@@ -1448,7 +1249,7 @@ const editProductAanvragenConnectorForm = {
|
|
|
1448
1249
|
],
|
|
1449
1250
|
},
|
|
1450
1251
|
{
|
|
1451
|
-
title: 'connectorForm.productaanvraag.
|
|
1252
|
+
title: 'connectorForm.productaanvraag.step3.title',
|
|
1452
1253
|
breadcrumbClickable: true,
|
|
1453
1254
|
buttonSettings: {
|
|
1454
1255
|
previous: true,
|
|
@@ -1459,9 +1260,9 @@ const editProductAanvragenConnectorForm = {
|
|
|
1459
1260
|
saveOnEnter: false,
|
|
1460
1261
|
scrollToTop: false,
|
|
1461
1262
|
collapsible: false,
|
|
1462
|
-
key: '
|
|
1263
|
+
key: 'page3',
|
|
1463
1264
|
type: 'panel',
|
|
1464
|
-
label: 'Page
|
|
1265
|
+
label: 'Page 3',
|
|
1465
1266
|
input: false,
|
|
1466
1267
|
tableView: false,
|
|
1467
1268
|
components: [
|
|
@@ -1473,7 +1274,7 @@ const editProductAanvragenConnectorForm = {
|
|
|
1473
1274
|
value: '',
|
|
1474
1275
|
},
|
|
1475
1276
|
],
|
|
1476
|
-
content: 'connectorForm.productaanvraag.
|
|
1277
|
+
content: 'connectorForm.productaanvraag.step3.tip',
|
|
1477
1278
|
refreshOnChange: false,
|
|
1478
1279
|
key: 'html6',
|
|
1479
1280
|
type: 'htmlelement',
|
|
@@ -1481,7 +1282,7 @@ const editProductAanvragenConnectorForm = {
|
|
|
1481
1282
|
tableView: false,
|
|
1482
1283
|
},
|
|
1483
1284
|
{
|
|
1484
|
-
label: 'connectorForm.productaanvraag.
|
|
1285
|
+
label: 'connectorForm.productaanvraag.step3.name',
|
|
1485
1286
|
tableView: true,
|
|
1486
1287
|
validate: {
|
|
1487
1288
|
required: true,
|
|
@@ -1511,11 +1312,12 @@ const editProductAanvragenConnectorForm = {
|
|
|
1511
1312
|
* limitations under the License.
|
|
1512
1313
|
*/
|
|
1513
1314
|
class EditProductAanvragenConnectorComponent {
|
|
1514
|
-
constructor(formTranslationService, formMappingService, documentService, translateService) {
|
|
1315
|
+
constructor(formTranslationService, formMappingService, documentService, translateService, connectorManagementService) {
|
|
1515
1316
|
this.formTranslationService = formTranslationService;
|
|
1516
1317
|
this.formMappingService = formMappingService;
|
|
1517
1318
|
this.documentService = documentService;
|
|
1518
1319
|
this.translateService = translateService;
|
|
1320
|
+
this.connectorManagementService = connectorManagementService;
|
|
1519
1321
|
this.showDeleteButton = false;
|
|
1520
1322
|
this.propertiesSave = new EventEmitter();
|
|
1521
1323
|
this.connectorDelete = new EventEmitter();
|
|
@@ -1538,6 +1340,7 @@ class EditProductAanvragenConnectorComponent {
|
|
|
1538
1340
|
window['productRequestDefinitions'] = {};
|
|
1539
1341
|
this.openFormDefinitionSubscription();
|
|
1540
1342
|
this.formDefinition$.next(editProductAanvragenConnectorForm);
|
|
1343
|
+
this.loadConnectorNames();
|
|
1541
1344
|
this.loadDefinitions();
|
|
1542
1345
|
}
|
|
1543
1346
|
ngOnDestroy() {
|
|
@@ -1548,19 +1351,8 @@ class EditProductAanvragenConnectorComponent {
|
|
|
1548
1351
|
onSubmit(event) {
|
|
1549
1352
|
const submission = event.data;
|
|
1550
1353
|
const properties = cloneDeep(this.properties);
|
|
1551
|
-
properties.
|
|
1552
|
-
properties.
|
|
1553
|
-
properties.objectsApiProperties.objectsTypeApi.url = submission.objectTypesApiUrl;
|
|
1554
|
-
properties.objectsApiProperties.objectsTypeApi.token = submission.objectTypesApiToken;
|
|
1555
|
-
properties.objectsApiProperties.objectType.name = submission.objectTypeName;
|
|
1556
|
-
properties.objectsApiProperties.objectType.title = submission.objectTypeTitle;
|
|
1557
|
-
properties.objectsApiProperties.objectType.url = submission.objectTypeUrl;
|
|
1558
|
-
properties.objectsApiProperties.objectType.typeVersion = submission.objectTypeVersion;
|
|
1559
|
-
properties.openNotificatieProperties.baseUrl = submission.openNotificationsBaseUrl;
|
|
1560
|
-
properties.openNotificatieProperties.clientId = submission.openNotificationsClientId;
|
|
1561
|
-
properties.openNotificatieProperties.secret = submission.openNotificationsSecret;
|
|
1562
|
-
properties.openNotificatieProperties.callbackBaseUrl =
|
|
1563
|
-
submission.openNotificationsCallbackBaseUrl;
|
|
1354
|
+
properties.objectsApiConnectionName = submission.objectsApiConnectionName;
|
|
1355
|
+
properties.openNotificatieConnectionName = submission.openNotificatieConnectionName;
|
|
1564
1356
|
properties.aanvragerRolTypeUrl = submission.applicantRoleTypeUrl;
|
|
1565
1357
|
properties.typeMapping = submission.productAanvraagTypes;
|
|
1566
1358
|
this.propertiesSave.emit({ properties, name: submission.connectorName });
|
|
@@ -1580,19 +1372,8 @@ class EditProductAanvragenConnectorComponent {
|
|
|
1580
1372
|
prefillForm() {
|
|
1581
1373
|
const properties = cloneDeep(this.properties);
|
|
1582
1374
|
const submission = {};
|
|
1583
|
-
submission.
|
|
1584
|
-
submission.
|
|
1585
|
-
submission.objectTypesApiUrl = properties.objectsApiProperties.objectsTypeApi.url;
|
|
1586
|
-
submission.objectTypesApiToken = properties.objectsApiProperties.objectsTypeApi.token;
|
|
1587
|
-
submission.objectTypeName = properties.objectsApiProperties.objectType.name;
|
|
1588
|
-
submission.objectTypeTitle = properties.objectsApiProperties.objectType.title;
|
|
1589
|
-
submission.objectTypeUrl = properties.objectsApiProperties.objectType.url;
|
|
1590
|
-
submission.objectTypeVersion = properties.objectsApiProperties.objectType.typeVersion;
|
|
1591
|
-
submission.openNotificationsBaseUrl = properties.openNotificatieProperties.baseUrl;
|
|
1592
|
-
submission.openNotificationsClientId = properties.openNotificatieProperties.clientId;
|
|
1593
|
-
submission.openNotificationsSecret = properties.openNotificatieProperties.secret;
|
|
1594
|
-
submission.openNotificationsCallbackBaseUrl =
|
|
1595
|
-
properties.openNotificatieProperties.callbackBaseUrl;
|
|
1375
|
+
submission.objectsApiConnectionName = properties.objectsApiConnectionName;
|
|
1376
|
+
submission.openNotificatieConnectionName = properties.openNotificatieConnectionName;
|
|
1596
1377
|
submission.applicantRoleTypeUrl = properties.aanvragerRolTypeUrl;
|
|
1597
1378
|
submission.productAanvraagTypes = properties.typeMapping;
|
|
1598
1379
|
submission.connectorName = this.defaultName;
|
|
@@ -1622,6 +1403,27 @@ class EditProductAanvragenConnectorComponent {
|
|
|
1622
1403
|
}))
|
|
1623
1404
|
.subscribe();
|
|
1624
1405
|
}
|
|
1406
|
+
loadConnectorNames() {
|
|
1407
|
+
this.connectorManagementService
|
|
1408
|
+
.getConnectorTypes()
|
|
1409
|
+
.pipe(tap(res => {
|
|
1410
|
+
res.forEach(connectorType => {
|
|
1411
|
+
if (connectorType.name === 'ObjectsApi') {
|
|
1412
|
+
this.loadConnectorNamesByType('objectApiConnectorNames', connectorType.id);
|
|
1413
|
+
}
|
|
1414
|
+
else if (connectorType.name === 'OpenNotificatie') {
|
|
1415
|
+
this.loadConnectorNamesByType('openNotificatieConnectorNames', connectorType.id);
|
|
1416
|
+
}
|
|
1417
|
+
});
|
|
1418
|
+
}))
|
|
1419
|
+
.subscribe();
|
|
1420
|
+
}
|
|
1421
|
+
loadConnectorNamesByType(windowKey, connectorTypeId) {
|
|
1422
|
+
this.connectorManagementService
|
|
1423
|
+
.getConnectorInstancesByType(connectorTypeId)
|
|
1424
|
+
.pipe(map(res => (window[windowKey] = res.content.map(connector => connector.name))))
|
|
1425
|
+
.subscribe();
|
|
1426
|
+
}
|
|
1625
1427
|
}
|
|
1626
1428
|
EditProductAanvragenConnectorComponent.decorators = [
|
|
1627
1429
|
{ type: Component, args: [{
|
|
@@ -1634,7 +1436,8 @@ EditProductAanvragenConnectorComponent.ctorParameters = () => [
|
|
|
1634
1436
|
{ type: FormTranslationService },
|
|
1635
1437
|
{ type: FormMappingService },
|
|
1636
1438
|
{ type: DocumentService },
|
|
1637
|
-
{ type: TranslateService }
|
|
1439
|
+
{ type: TranslateService },
|
|
1440
|
+
{ type: ConnectorManagementService }
|
|
1638
1441
|
];
|
|
1639
1442
|
EditProductAanvragenConnectorComponent.propDecorators = {
|
|
1640
1443
|
properties: [{ type: Input }],
|
|
@@ -1666,12 +1469,14 @@ class EditConnectorFormComponent {
|
|
|
1666
1469
|
this.propertiesSave = new EventEmitter();
|
|
1667
1470
|
this.connectorDelete = new EventEmitter();
|
|
1668
1471
|
this.productAanvragenName = 'ProductAanvragen';
|
|
1472
|
+
this.taakName = 'Taak';
|
|
1473
|
+
this.customConnectorNames = [this.productAanvragenName, this.taakName];
|
|
1669
1474
|
}
|
|
1670
1475
|
}
|
|
1671
1476
|
EditConnectorFormComponent.decorators = [
|
|
1672
1477
|
{ type: Component, args: [{
|
|
1673
1478
|
selector: 'valtimo-edit-connector-form',
|
|
1674
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-edit-connector-properties\n *ngIf=\"connectorName
|
|
1479
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-edit-connector-properties\n *ngIf=\"!customConnectorNames.includes(connectorName)\"\n [properties]=\"properties\"\n [withDefaults]=\"withDefaults\"\n [defaultName]=\"defaultName\"\n [showDeleteButton]=\"showDeleteButton\"\n (propertiesSave)=\"propertiesSave.emit($event)\"\n (connectorDelete)=\"connectorDelete.emit()\"\n>\n</valtimo-edit-connector-properties>\n\n<valtimo-edit-product-aanvragen-connector\n *ngIf=\"connectorName === productAanvragenName\"\n [defaultName]=\"defaultName\"\n [properties]=\"properties\"\n [showDeleteButton]=\"showDeleteButton\"\n (propertiesSave)=\"propertiesSave.emit($event)\"\n (connectorDelete)=\"connectorDelete.emit()\"\n>\n</valtimo-edit-product-aanvragen-connector>\n\n<valtimo-edit-taak-connector\n *ngIf=\"connectorName === taakName\"\n [defaultName]=\"defaultName\"\n [properties]=\"properties\"\n [showDeleteButton]=\"showDeleteButton\"\n (propertiesSave)=\"propertiesSave.emit($event)\"\n (connectorDelete)=\"connectorDelete.emit()\"\n>\n</valtimo-edit-taak-connector>\n",
|
|
1675
1480
|
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 */"]
|
|
1676
1481
|
},] }
|
|
1677
1482
|
];
|
|
@@ -1685,6 +1490,189 @@ EditConnectorFormComponent.propDecorators = {
|
|
|
1685
1490
|
connectorDelete: [{ type: Output }]
|
|
1686
1491
|
};
|
|
1687
1492
|
|
|
1493
|
+
const ɵ0$2 = {
|
|
1494
|
+
custom: "values = window['openNotificatieConnectorNames'] || []",
|
|
1495
|
+
}, ɵ1$1 = {
|
|
1496
|
+
custom: "values = window['objectApiConnectorNames'] || []",
|
|
1497
|
+
};
|
|
1498
|
+
const editTaakConnectorForm = {
|
|
1499
|
+
components: [
|
|
1500
|
+
{
|
|
1501
|
+
label: 'connectorForm.taak.name',
|
|
1502
|
+
tableView: false,
|
|
1503
|
+
validate: {
|
|
1504
|
+
required: true,
|
|
1505
|
+
},
|
|
1506
|
+
key: 'connectorName',
|
|
1507
|
+
type: 'textfield',
|
|
1508
|
+
input: true,
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
label: 'connectorForm.taak.openNotificatieConnector.label',
|
|
1512
|
+
widget: 'choicesjs',
|
|
1513
|
+
tableView: false,
|
|
1514
|
+
dataSrc: 'custom',
|
|
1515
|
+
data: ɵ0$2,
|
|
1516
|
+
dataType: 'string',
|
|
1517
|
+
clearOnRefresh: true,
|
|
1518
|
+
key: 'openNotificatieConnectionName',
|
|
1519
|
+
type: 'select',
|
|
1520
|
+
input: true,
|
|
1521
|
+
validate: {
|
|
1522
|
+
required: true,
|
|
1523
|
+
},
|
|
1524
|
+
placeholder: 'connectorForm.taak.openNotificatieConnector.placeholder',
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
label: 'connectorForm.taak.objectsApiConnector.label',
|
|
1528
|
+
widget: 'choicesjs',
|
|
1529
|
+
tableView: false,
|
|
1530
|
+
dataSrc: 'custom',
|
|
1531
|
+
data: ɵ1$1,
|
|
1532
|
+
dataType: 'string',
|
|
1533
|
+
clearOnRefresh: true,
|
|
1534
|
+
key: 'objectsApiConnectionName',
|
|
1535
|
+
type: 'select',
|
|
1536
|
+
input: true,
|
|
1537
|
+
validate: {
|
|
1538
|
+
required: true,
|
|
1539
|
+
},
|
|
1540
|
+
placeholder: 'connectorForm.taak.objectsApiConnector.placeholder',
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
key: 'submit',
|
|
1544
|
+
type: 'button',
|
|
1545
|
+
customClass: 'list-inline',
|
|
1546
|
+
leftIcon: 'icon mdi mdi-save mt-1',
|
|
1547
|
+
input: true,
|
|
1548
|
+
label: 'connectorManagement.save',
|
|
1549
|
+
tableView: false,
|
|
1550
|
+
disableOnInvalid: true,
|
|
1551
|
+
},
|
|
1552
|
+
],
|
|
1553
|
+
};
|
|
1554
|
+
|
|
1555
|
+
/*
|
|
1556
|
+
* Copyright 2015-2022 Ritense BV, the Netherlands.
|
|
1557
|
+
*
|
|
1558
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1559
|
+
* you may not use this file except in compliance with the License.
|
|
1560
|
+
* You may obtain a copy of the License at
|
|
1561
|
+
*
|
|
1562
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1563
|
+
*
|
|
1564
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1565
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1566
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1567
|
+
* See the License for the specific language governing permissions and
|
|
1568
|
+
* limitations under the License.
|
|
1569
|
+
*/
|
|
1570
|
+
class EditTaakConnectorComponent {
|
|
1571
|
+
constructor(formTranslationService, formMappingService, translateService, connectorManagementService) {
|
|
1572
|
+
this.formTranslationService = formTranslationService;
|
|
1573
|
+
this.formMappingService = formMappingService;
|
|
1574
|
+
this.translateService = translateService;
|
|
1575
|
+
this.connectorManagementService = connectorManagementService;
|
|
1576
|
+
this.showDeleteButton = false;
|
|
1577
|
+
this.propertiesSave = new EventEmitter();
|
|
1578
|
+
this.connectorDelete = new EventEmitter();
|
|
1579
|
+
this.formRefresh$ = new Subject();
|
|
1580
|
+
this.formDefinition$ = new BehaviorSubject(undefined);
|
|
1581
|
+
this.translatedFormDefinition$ = this.formDefinition$.pipe(map(definition => this.formTranslationService.translateForm(definition)));
|
|
1582
|
+
this.options = {
|
|
1583
|
+
disableAlerts: true,
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
ngOnInit() {
|
|
1587
|
+
this.openFormDefinitionSubscription();
|
|
1588
|
+
this.formDefinition$.next(editTaakConnectorForm);
|
|
1589
|
+
this.loadConnectorNames();
|
|
1590
|
+
this.prefillForm();
|
|
1591
|
+
}
|
|
1592
|
+
ngOnDestroy() {
|
|
1593
|
+
var _a, _b;
|
|
1594
|
+
(_a = this.formDefinitionSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1595
|
+
(_b = this.translateSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
1596
|
+
}
|
|
1597
|
+
onSubmit(event) {
|
|
1598
|
+
const submission = event.data;
|
|
1599
|
+
const properties = cloneDeep(this.properties);
|
|
1600
|
+
properties.objectsApiConnectionName = submission.objectsApiConnectionName;
|
|
1601
|
+
properties.openNotificatieConnectionName = submission.openNotificatieConnectionName;
|
|
1602
|
+
this.propertiesSave.emit({ properties, name: submission.connectorName });
|
|
1603
|
+
}
|
|
1604
|
+
onDelete() {
|
|
1605
|
+
this.connectorDelete.emit();
|
|
1606
|
+
}
|
|
1607
|
+
openFormDefinitionSubscription() {
|
|
1608
|
+
this.formDefinitionSubscription = combineLatest([
|
|
1609
|
+
this.formDefinition$,
|
|
1610
|
+
this.translateService.stream('key'),
|
|
1611
|
+
]).subscribe(([form]) => {
|
|
1612
|
+
const translatedForm = this.formTranslationService.translateForm(form);
|
|
1613
|
+
this.refreshForm({ form: translatedForm });
|
|
1614
|
+
});
|
|
1615
|
+
}
|
|
1616
|
+
prefillForm() {
|
|
1617
|
+
timer(100)
|
|
1618
|
+
.pipe(tap(() => {
|
|
1619
|
+
if (this.defaultName !== undefined) {
|
|
1620
|
+
const properties = cloneDeep(this.properties);
|
|
1621
|
+
const submission = {};
|
|
1622
|
+
submission.objectsApiConnectionName = properties.objectsApiConnectionName;
|
|
1623
|
+
submission.openNotificatieConnectionName = properties.openNotificatieConnectionName;
|
|
1624
|
+
submission.connectorName = this.defaultName;
|
|
1625
|
+
this.refreshForm({ submission: { data: submission } });
|
|
1626
|
+
}
|
|
1627
|
+
}))
|
|
1628
|
+
.subscribe();
|
|
1629
|
+
}
|
|
1630
|
+
refreshForm(refreshValue) {
|
|
1631
|
+
this.formRefresh$.next(refreshValue);
|
|
1632
|
+
}
|
|
1633
|
+
loadConnectorNames() {
|
|
1634
|
+
this.connectorManagementService
|
|
1635
|
+
.getConnectorTypes()
|
|
1636
|
+
.pipe(tap(res => {
|
|
1637
|
+
res.forEach(connectorType => {
|
|
1638
|
+
if (connectorType.name === 'ObjectsApi') {
|
|
1639
|
+
this.loadConnectorNamesByType('objectApiConnectorNames', connectorType.id);
|
|
1640
|
+
}
|
|
1641
|
+
else if (connectorType.name === 'OpenNotificatie') {
|
|
1642
|
+
this.loadConnectorNamesByType('openNotificatieConnectorNames', connectorType.id);
|
|
1643
|
+
}
|
|
1644
|
+
});
|
|
1645
|
+
}))
|
|
1646
|
+
.subscribe();
|
|
1647
|
+
}
|
|
1648
|
+
loadConnectorNamesByType(windowKey, connectorTypeId) {
|
|
1649
|
+
this.connectorManagementService
|
|
1650
|
+
.getConnectorInstancesByType(connectorTypeId)
|
|
1651
|
+
.pipe(map(res => (window[windowKey] = res.content.map(connector => connector.name))))
|
|
1652
|
+
.subscribe();
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
EditTaakConnectorComponent.decorators = [
|
|
1656
|
+
{ type: Component, args: [{
|
|
1657
|
+
selector: 'valtimo-edit-taak-connector',
|
|
1658
|
+
template: "<!--\n ~ Copyright 2015-2022 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-taak\"\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",
|
|
1659
|
+
styles: ["/*!\n * Copyright 2015-2022 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-taak ::ng-deep .list-inline{display:flex;flex-direction:row;justify-content:flex-end}.edit-taak .btn-danger{bottom:35px;position:absolute}"]
|
|
1660
|
+
},] }
|
|
1661
|
+
];
|
|
1662
|
+
EditTaakConnectorComponent.ctorParameters = () => [
|
|
1663
|
+
{ type: FormTranslationService },
|
|
1664
|
+
{ type: FormMappingService },
|
|
1665
|
+
{ type: TranslateService },
|
|
1666
|
+
{ type: ConnectorManagementService }
|
|
1667
|
+
];
|
|
1668
|
+
EditTaakConnectorComponent.propDecorators = {
|
|
1669
|
+
properties: [{ type: Input }],
|
|
1670
|
+
defaultName: [{ type: Input }],
|
|
1671
|
+
showDeleteButton: [{ type: Input }],
|
|
1672
|
+
propertiesSave: [{ type: Output }],
|
|
1673
|
+
connectorDelete: [{ type: Output }]
|
|
1674
|
+
};
|
|
1675
|
+
|
|
1688
1676
|
/*
|
|
1689
1677
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1690
1678
|
*
|
|
@@ -1716,6 +1704,7 @@ ConnectorManagementModule.decorators = [
|
|
|
1716
1704
|
ConnectorLinkExtensionModalComponent,
|
|
1717
1705
|
EditProductAanvragenConnectorComponent,
|
|
1718
1706
|
EditConnectorFormComponent,
|
|
1707
|
+
EditTaakConnectorComponent,
|
|
1719
1708
|
],
|
|
1720
1709
|
imports: [
|
|
1721
1710
|
CommonModule,
|
|
@@ -1737,6 +1726,7 @@ ConnectorManagementModule.decorators = [
|
|
|
1737
1726
|
ConnectorLinkExtensionComponent,
|
|
1738
1727
|
ConnectorLinkExtensionModalComponent,
|
|
1739
1728
|
EditProductAanvragenConnectorComponent,
|
|
1729
|
+
EditTaakConnectorComponent,
|
|
1740
1730
|
],
|
|
1741
1731
|
entryComponents: [ConnectorLinkExtensionComponent],
|
|
1742
1732
|
},] }
|
|
@@ -1797,5 +1787,5 @@ function connectorLinkExtensionInitializer(injector) {
|
|
|
1797
1787
|
* Generated bundle index. Do not edit.
|
|
1798
1788
|
*/
|
|
1799
1789
|
|
|
1800
|
-
export { AddConnectorComponent, ConnectorLinkExtensionComponent, ConnectorLinkExtensionModalComponent, ConnectorManagementComponent, ConnectorManagementModule, ConnectorManagementService, ConnectorManagementStateService, ConnectorModalComponent, EditConnectorPropertiesComponent, ModifyConnectorComponent, MultiValueConnectorPropertyComponent, ObjectApiSyncService, connectorLinkExtensionInitializer, EditProductAanvragenConnectorComponent as ɵa, EditConnectorFormComponent as ɵb,
|
|
1790
|
+
export { AddConnectorComponent, ConnectorLinkExtensionComponent, ConnectorLinkExtensionModalComponent, ConnectorManagementComponent, ConnectorManagementModule, ConnectorManagementService, ConnectorManagementStateService, ConnectorModalComponent, EditConnectorPropertiesComponent, ModifyConnectorComponent, MultiValueConnectorPropertyComponent, ObjectApiSyncService, connectorLinkExtensionInitializer, EditProductAanvragenConnectorComponent as ɵa, EditConnectorFormComponent as ɵb, EditTaakConnectorComponent as ɵc, ConnectorManagementRoutingModule as ɵd };
|
|
1801
1791
|
//# sourceMappingURL=valtimo-connector-management.js.map
|