@valtimo/connector-management 4.17.0 → 4.18.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 +242 -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 +30 -29
- 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 +125 -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/connector.model.js +1 -1
- package/esm2015/lib/models/index.js +1 -1
- package/esm2015/lib/models/object-sync.js +1 -1
- package/esm2015/lib/services/connector-management/connector-management.service.js +1 -1
- 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 +250 -266
- package/fesm2015/valtimo-connector-management.js.map +1 -1
- package/lib/components/edit-connector-form/edit-connector-form.component.d.ts +2 -0
- package/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.component.d.ts +5 -1
- 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/package.json +1 -1
- package/valtimo-connector-management.d.ts +2 -1
- package/valtimo-connector-management.metadata.json +1 -1
|
@@ -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,25 @@ class EditProductAanvragenConnectorComponent {
|
|
|
1622
1403
|
}))
|
|
1623
1404
|
.subscribe();
|
|
1624
1405
|
}
|
|
1406
|
+
loadConnectorNames() {
|
|
1407
|
+
this.connectorManagementService.getConnectorTypes()
|
|
1408
|
+
.pipe(tap(res => {
|
|
1409
|
+
res.forEach(connectorType => {
|
|
1410
|
+
if (connectorType.name === 'ObjectsApi') {
|
|
1411
|
+
this.loadConnectorNamesByType('objectApiConnectorNames', connectorType.id);
|
|
1412
|
+
}
|
|
1413
|
+
else if (connectorType.name === 'OpenNotificatie') {
|
|
1414
|
+
this.loadConnectorNamesByType('openNotificatieConnectorNames', connectorType.id);
|
|
1415
|
+
}
|
|
1416
|
+
});
|
|
1417
|
+
}))
|
|
1418
|
+
.subscribe();
|
|
1419
|
+
}
|
|
1420
|
+
loadConnectorNamesByType(windowKey, connectorTypeId) {
|
|
1421
|
+
this.connectorManagementService.getConnectorInstancesByType(connectorTypeId)
|
|
1422
|
+
.pipe(map(res => window[windowKey] = res.content.map(connector => connector.name)))
|
|
1423
|
+
.subscribe();
|
|
1424
|
+
}
|
|
1625
1425
|
}
|
|
1626
1426
|
EditProductAanvragenConnectorComponent.decorators = [
|
|
1627
1427
|
{ type: Component, args: [{
|
|
@@ -1634,7 +1434,8 @@ EditProductAanvragenConnectorComponent.ctorParameters = () => [
|
|
|
1634
1434
|
{ type: FormTranslationService },
|
|
1635
1435
|
{ type: FormMappingService },
|
|
1636
1436
|
{ type: DocumentService },
|
|
1637
|
-
{ type: TranslateService }
|
|
1437
|
+
{ type: TranslateService },
|
|
1438
|
+
{ type: ConnectorManagementService }
|
|
1638
1439
|
];
|
|
1639
1440
|
EditProductAanvragenConnectorComponent.propDecorators = {
|
|
1640
1441
|
properties: [{ type: Input }],
|
|
@@ -1666,12 +1467,14 @@ class EditConnectorFormComponent {
|
|
|
1666
1467
|
this.propertiesSave = new EventEmitter();
|
|
1667
1468
|
this.connectorDelete = new EventEmitter();
|
|
1668
1469
|
this.productAanvragenName = 'ProductAanvragen';
|
|
1470
|
+
this.taakName = 'Taak';
|
|
1471
|
+
this.customConnectorNames = [this.productAanvragenName, this.taakName];
|
|
1669
1472
|
}
|
|
1670
1473
|
}
|
|
1671
1474
|
EditConnectorFormComponent.decorators = [
|
|
1672
1475
|
{ type: Component, args: [{
|
|
1673
1476
|
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
|
|
1477
|
+
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
1478
|
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
1479
|
},] }
|
|
1677
1480
|
];
|
|
@@ -1685,6 +1488,185 @@ EditConnectorFormComponent.propDecorators = {
|
|
|
1685
1488
|
connectorDelete: [{ type: Output }]
|
|
1686
1489
|
};
|
|
1687
1490
|
|
|
1491
|
+
const ɵ0$2 = {
|
|
1492
|
+
custom: 'values = window[\'openNotificatieConnectorNames\'] || []',
|
|
1493
|
+
}, ɵ1$1 = {
|
|
1494
|
+
custom: 'values = window[\'objectApiConnectorNames\'] || []',
|
|
1495
|
+
};
|
|
1496
|
+
const editTaakConnectorForm = {
|
|
1497
|
+
components: [
|
|
1498
|
+
{
|
|
1499
|
+
label: 'connectorForm.taak.name',
|
|
1500
|
+
tableView: false,
|
|
1501
|
+
validate: {
|
|
1502
|
+
required: true,
|
|
1503
|
+
},
|
|
1504
|
+
key: 'connectorName',
|
|
1505
|
+
type: 'textfield',
|
|
1506
|
+
input: true,
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
label: 'connectorForm.taak.openNotificatieConnector.label',
|
|
1510
|
+
widget: 'choicesjs',
|
|
1511
|
+
tableView: false,
|
|
1512
|
+
dataSrc: 'custom',
|
|
1513
|
+
data: ɵ0$2,
|
|
1514
|
+
dataType: 'string',
|
|
1515
|
+
clearOnRefresh: true,
|
|
1516
|
+
key: 'openNotificatieConnectionName',
|
|
1517
|
+
type: 'select',
|
|
1518
|
+
input: true,
|
|
1519
|
+
validate: {
|
|
1520
|
+
required: true,
|
|
1521
|
+
},
|
|
1522
|
+
placeholder: 'connectorForm.taak.openNotificatieConnector.placeholder',
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
label: 'connectorForm.taak.objectsApiConnector.label',
|
|
1526
|
+
widget: 'choicesjs',
|
|
1527
|
+
tableView: false,
|
|
1528
|
+
dataSrc: 'custom',
|
|
1529
|
+
data: ɵ1$1,
|
|
1530
|
+
dataType: 'string',
|
|
1531
|
+
clearOnRefresh: true,
|
|
1532
|
+
key: 'objectsApiConnectionName',
|
|
1533
|
+
type: 'select',
|
|
1534
|
+
input: true,
|
|
1535
|
+
validate: {
|
|
1536
|
+
required: true,
|
|
1537
|
+
},
|
|
1538
|
+
placeholder: 'connectorForm.taak.objectsApiConnector.placeholder',
|
|
1539
|
+
},
|
|
1540
|
+
{
|
|
1541
|
+
key: 'submit',
|
|
1542
|
+
type: 'button',
|
|
1543
|
+
customClass: 'list-inline',
|
|
1544
|
+
leftIcon: 'icon mdi mdi-save mt-1',
|
|
1545
|
+
input: true,
|
|
1546
|
+
label: 'connectorManagement.save',
|
|
1547
|
+
tableView: false,
|
|
1548
|
+
disableOnInvalid: true
|
|
1549
|
+
},
|
|
1550
|
+
],
|
|
1551
|
+
};
|
|
1552
|
+
|
|
1553
|
+
/*
|
|
1554
|
+
* Copyright 2015-2022 Ritense BV, the Netherlands.
|
|
1555
|
+
*
|
|
1556
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1557
|
+
* you may not use this file except in compliance with the License.
|
|
1558
|
+
* You may obtain a copy of the License at
|
|
1559
|
+
*
|
|
1560
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1561
|
+
*
|
|
1562
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1563
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1564
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1565
|
+
* See the License for the specific language governing permissions and
|
|
1566
|
+
* limitations under the License.
|
|
1567
|
+
*/
|
|
1568
|
+
class EditTaakConnectorComponent {
|
|
1569
|
+
constructor(formTranslationService, formMappingService, translateService, connectorManagementService) {
|
|
1570
|
+
this.formTranslationService = formTranslationService;
|
|
1571
|
+
this.formMappingService = formMappingService;
|
|
1572
|
+
this.translateService = translateService;
|
|
1573
|
+
this.connectorManagementService = connectorManagementService;
|
|
1574
|
+
this.showDeleteButton = false;
|
|
1575
|
+
this.propertiesSave = new EventEmitter();
|
|
1576
|
+
this.connectorDelete = new EventEmitter();
|
|
1577
|
+
this.formRefresh$ = new Subject();
|
|
1578
|
+
this.formDefinition$ = new BehaviorSubject(undefined);
|
|
1579
|
+
this.translatedFormDefinition$ = this.formDefinition$.pipe(map(definition => this.formTranslationService.translateForm(definition)));
|
|
1580
|
+
this.options = {
|
|
1581
|
+
disableAlerts: true,
|
|
1582
|
+
};
|
|
1583
|
+
}
|
|
1584
|
+
ngOnInit() {
|
|
1585
|
+
this.openFormDefinitionSubscription();
|
|
1586
|
+
this.formDefinition$.next(editTaakConnectorForm);
|
|
1587
|
+
this.loadConnectorNames();
|
|
1588
|
+
this.prefillForm();
|
|
1589
|
+
}
|
|
1590
|
+
ngOnDestroy() {
|
|
1591
|
+
var _a, _b;
|
|
1592
|
+
(_a = this.formDefinitionSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1593
|
+
(_b = this.translateSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
1594
|
+
}
|
|
1595
|
+
onSubmit(event) {
|
|
1596
|
+
const submission = event.data;
|
|
1597
|
+
const properties = cloneDeep(this.properties);
|
|
1598
|
+
properties.objectsApiConnectionName = submission.objectsApiConnectionName;
|
|
1599
|
+
properties.openNotificatieConnectionName = submission.openNotificatieConnectionName;
|
|
1600
|
+
this.propertiesSave.emit({ properties, name: submission.connectorName });
|
|
1601
|
+
}
|
|
1602
|
+
onDelete() {
|
|
1603
|
+
this.connectorDelete.emit();
|
|
1604
|
+
}
|
|
1605
|
+
openFormDefinitionSubscription() {
|
|
1606
|
+
this.formDefinitionSubscription = combineLatest([
|
|
1607
|
+
this.formDefinition$,
|
|
1608
|
+
this.translateService.stream('key'),
|
|
1609
|
+
]).subscribe(([form]) => {
|
|
1610
|
+
const translatedForm = this.formTranslationService.translateForm(form);
|
|
1611
|
+
this.refreshForm({ form: translatedForm });
|
|
1612
|
+
});
|
|
1613
|
+
}
|
|
1614
|
+
prefillForm() {
|
|
1615
|
+
timer(100).pipe(tap(() => {
|
|
1616
|
+
if (this.defaultName !== undefined) {
|
|
1617
|
+
const properties = cloneDeep(this.properties);
|
|
1618
|
+
const submission = {};
|
|
1619
|
+
submission.objectsApiConnectionName = properties.objectsApiConnectionName;
|
|
1620
|
+
submission.openNotificatieConnectionName = properties.openNotificatieConnectionName;
|
|
1621
|
+
submission.connectorName = this.defaultName;
|
|
1622
|
+
this.refreshForm({ submission: { data: submission } });
|
|
1623
|
+
}
|
|
1624
|
+
})).subscribe();
|
|
1625
|
+
}
|
|
1626
|
+
refreshForm(refreshValue) {
|
|
1627
|
+
this.formRefresh$.next(refreshValue);
|
|
1628
|
+
}
|
|
1629
|
+
loadConnectorNames() {
|
|
1630
|
+
this.connectorManagementService.getConnectorTypes()
|
|
1631
|
+
.pipe(tap(res => {
|
|
1632
|
+
res.forEach(connectorType => {
|
|
1633
|
+
if (connectorType.name === 'ObjectsApi') {
|
|
1634
|
+
this.loadConnectorNamesByType('objectApiConnectorNames', connectorType.id);
|
|
1635
|
+
}
|
|
1636
|
+
else if (connectorType.name === 'OpenNotificatie') {
|
|
1637
|
+
this.loadConnectorNamesByType('openNotificatieConnectorNames', connectorType.id);
|
|
1638
|
+
}
|
|
1639
|
+
});
|
|
1640
|
+
}))
|
|
1641
|
+
.subscribe();
|
|
1642
|
+
}
|
|
1643
|
+
loadConnectorNamesByType(windowKey, connectorTypeId) {
|
|
1644
|
+
this.connectorManagementService.getConnectorInstancesByType(connectorTypeId)
|
|
1645
|
+
.pipe(map(res => window[windowKey] = res.content.map(connector => connector.name)))
|
|
1646
|
+
.subscribe();
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
EditTaakConnectorComponent.decorators = [
|
|
1650
|
+
{ type: Component, args: [{
|
|
1651
|
+
selector: 'valtimo-edit-taak-connector',
|
|
1652
|
+
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\n",
|
|
1653
|
+
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}"]
|
|
1654
|
+
},] }
|
|
1655
|
+
];
|
|
1656
|
+
EditTaakConnectorComponent.ctorParameters = () => [
|
|
1657
|
+
{ type: FormTranslationService },
|
|
1658
|
+
{ type: FormMappingService },
|
|
1659
|
+
{ type: TranslateService },
|
|
1660
|
+
{ type: ConnectorManagementService }
|
|
1661
|
+
];
|
|
1662
|
+
EditTaakConnectorComponent.propDecorators = {
|
|
1663
|
+
properties: [{ type: Input }],
|
|
1664
|
+
defaultName: [{ type: Input }],
|
|
1665
|
+
showDeleteButton: [{ type: Input }],
|
|
1666
|
+
propertiesSave: [{ type: Output }],
|
|
1667
|
+
connectorDelete: [{ type: Output }]
|
|
1668
|
+
};
|
|
1669
|
+
|
|
1688
1670
|
/*
|
|
1689
1671
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1690
1672
|
*
|
|
@@ -1716,6 +1698,7 @@ ConnectorManagementModule.decorators = [
|
|
|
1716
1698
|
ConnectorLinkExtensionModalComponent,
|
|
1717
1699
|
EditProductAanvragenConnectorComponent,
|
|
1718
1700
|
EditConnectorFormComponent,
|
|
1701
|
+
EditTaakConnectorComponent,
|
|
1719
1702
|
],
|
|
1720
1703
|
imports: [
|
|
1721
1704
|
CommonModule,
|
|
@@ -1737,6 +1720,7 @@ ConnectorManagementModule.decorators = [
|
|
|
1737
1720
|
ConnectorLinkExtensionComponent,
|
|
1738
1721
|
ConnectorLinkExtensionModalComponent,
|
|
1739
1722
|
EditProductAanvragenConnectorComponent,
|
|
1723
|
+
EditTaakConnectorComponent,
|
|
1740
1724
|
],
|
|
1741
1725
|
entryComponents: [ConnectorLinkExtensionComponent],
|
|
1742
1726
|
},] }
|
|
@@ -1797,5 +1781,5 @@ function connectorLinkExtensionInitializer(injector) {
|
|
|
1797
1781
|
* Generated bundle index. Do not edit.
|
|
1798
1782
|
*/
|
|
1799
1783
|
|
|
1800
|
-
export { AddConnectorComponent, ConnectorLinkExtensionComponent, ConnectorLinkExtensionModalComponent, ConnectorManagementComponent, ConnectorManagementModule, ConnectorManagementService, ConnectorManagementStateService, ConnectorModalComponent, EditConnectorPropertiesComponent, ModifyConnectorComponent, MultiValueConnectorPropertyComponent, ObjectApiSyncService, connectorLinkExtensionInitializer, EditProductAanvragenConnectorComponent as ɵa, EditConnectorFormComponent as ɵb,
|
|
1784
|
+
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
1785
|
//# sourceMappingURL=valtimo-connector-management.js.map
|