@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
|
@@ -587,7 +587,7 @@
|
|
|
587
587
|
ConnectorManagementComponent.decorators = [
|
|
588
588
|
{ type: i0.Component, args: [{
|
|
589
589
|
selector: 'valtimo-connector-management',
|
|
590
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n class=\"main-content pt-0\"\n *ngIf=\"{\n connectorInstances: connectorInstances$ | async,\n fields: fields$ | async,\n pagination: pagination$ | async,\n loading: loading$ | async\n } as obs\"\n>\n <div class=\"container-fluid\">\n <ng-container *ngTemplateOutlet=\"buttons; context: {loading: obs.loading}\"></ng-container>\n <valtimo-widget *ngIf=\"obs.loading === false; else loading\">\n <valtimo-list\n [items]=\"obs.connectorInstances\"\n [fields]=\"obs.fields\"\n [header]=\"true\"\n [viewMode]=\"true\"\n [isSearchable]=\"false\"\n [pagination]=\"obs.pagination\"\n paginationIdentifier=\"connectorManagementList\"\n (paginationClicked)=\"paginationClicked($event)\"\n (paginationSet)=\"paginationSet($event)\"\n (rowClicked)=\"rowClicked($event)\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'connectorManagement.title' | translate }}</h3>\n <h5 class=\"list-header-description\">{{ 'connectorManagement.subtitle' | translate }}</h5>\n </div>\n </valtimo-list>\n </valtimo-widget>\n </div>\n</div>\n\n<valtimo-connector-modal [modalType]=\"modalType$ | async\"> </valtimo-connector-modal>\n\n<ng-template #buttons let-loading=\"loading\">\n <div class=\"btn-group mt-m3px mb-3 float-right\">\n <button class=\"btn btn-primary btn-space mr-0\" [disabled]=\"loading\" (click)=\"showAddModal()\">\n <i class=\"icon mdi mdi-plus\"></i
|
|
590
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n class=\"main-content pt-0\"\n *ngIf=\"{\n connectorInstances: connectorInstances$ | async,\n fields: fields$ | async,\n pagination: pagination$ | async,\n loading: loading$ | async\n } as obs\"\n>\n <div class=\"container-fluid\">\n <ng-container *ngTemplateOutlet=\"buttons; context: {loading: obs.loading}\"></ng-container>\n <valtimo-widget *ngIf=\"obs.loading === false; else loading\">\n <valtimo-list\n [items]=\"obs.connectorInstances\"\n [fields]=\"obs.fields\"\n [header]=\"true\"\n [viewMode]=\"true\"\n [isSearchable]=\"false\"\n [pagination]=\"obs.pagination\"\n paginationIdentifier=\"connectorManagementList\"\n (paginationClicked)=\"paginationClicked($event)\"\n (paginationSet)=\"paginationSet($event)\"\n (rowClicked)=\"rowClicked($event)\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'connectorManagement.title' | translate }}</h3>\n <h5 class=\"list-header-description\">{{ 'connectorManagement.subtitle' | translate }}</h5>\n </div>\n </valtimo-list>\n </valtimo-widget>\n </div>\n</div>\n\n<valtimo-connector-modal [modalType]=\"modalType$ | async\"> </valtimo-connector-modal>\n\n<ng-template #buttons let-loading=\"loading\">\n <div class=\"btn-group mt-m3px mb-3 float-right\">\n <button class=\"btn btn-primary btn-space mr-0\" [disabled]=\"loading\" (click)=\"showAddModal()\">\n <i class=\"icon mdi mdi-plus 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",
|
|
591
591
|
styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */"]
|
|
592
592
|
},] }
|
|
593
593
|
];
|
|
@@ -1218,7 +1218,7 @@
|
|
|
1218
1218
|
ConnectorLinkExtensionComponent.decorators = [
|
|
1219
1219
|
{ type: i0.Component, args: [{
|
|
1220
1220
|
selector: 'valtimo-connector-link-extension',
|
|
1221
|
-
template: "<h2 class=\"mb-4 mt-6\">{{ 'connectorManagement.extension.title' | translate }}</h2>\n\n<ng-container\n *ngIf=\"{\n syncConfig: objectApiSyncConfig$ | async,\n loading: loading$ | async,\n disabled: disabled$ | async\n } as obs\"\n>\n <ng-container *ngIf=\"obs.loading === false; else loading\">\n <ng-container *ngIf=\"obs.syncConfig; else addSync\">\n <div class=\"card card-border card-contrast\">\n <div class=\"card-header card-header-contrast card-header-featured\">\n <div>\n {{ obs.syncConfig.title }}\n </div>\n <div class=\"controls\">\n <button\n class=\"btn btn-danger ml-3\"\n [disabled]=\"obs.disabled\"\n (click)=\"deleteSync(obs.syncConfig.id)\"\n >\n <i class=\"
|
|
1221
|
+
template: "<h2 class=\"mb-4 mt-6\">{{ 'connectorManagement.extension.title' | translate }}</h2>\n\n<ng-container\n *ngIf=\"{\n syncConfig: objectApiSyncConfig$ | async,\n loading: loading$ | async,\n disabled: disabled$ | async\n } as obs\"\n>\n <ng-container *ngIf=\"obs.loading === false; else loading\">\n <ng-container *ngIf=\"obs.syncConfig; else addSync\">\n <div class=\"card card-border card-contrast\">\n <div class=\"card-header card-header-contrast card-header-featured\">\n <div>\n {{ obs.syncConfig.title }}\n </div>\n <div class=\"controls\">\n <button\n class=\"btn btn-danger ml-3\"\n [disabled]=\"obs.disabled\"\n (click)=\"deleteSync(obs.syncConfig.id)\"\n >\n <i class=\"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",
|
|
1222
1222
|
styles: [".card-header,.setting-row{flex-direction:row;justify-content:space-between}.card-header,.controls,.setting-row{align-items:center;display:flex}"]
|
|
1223
1223
|
},] }
|
|
1224
1224
|
];
|
|
@@ -1319,6 +1319,10 @@
|
|
|
1319
1319
|
|
|
1320
1320
|
var ɵ0$1 = {
|
|
1321
1321
|
custom: "values = window['productRequestDefinitions'][row.caseDefinitionKey] || []",
|
|
1322
|
+
}, ɵ1 = {
|
|
1323
|
+
custom: "values = window['openNotificatieConnectorNames'] || []",
|
|
1324
|
+
}, ɵ2 = {
|
|
1325
|
+
custom: "values = window['objectApiConnectorNames'] || []",
|
|
1322
1326
|
};
|
|
1323
1327
|
var editProductAanvragenConnectorForm = {
|
|
1324
1328
|
display: 'wizard',
|
|
@@ -1449,68 +1453,45 @@
|
|
|
1449
1453
|
tableView: false,
|
|
1450
1454
|
},
|
|
1451
1455
|
{
|
|
1452
|
-
title: 'connectorForm.productaanvraag.step1.
|
|
1456
|
+
title: 'connectorForm.productaanvraag.step1.connectors.panelTitle',
|
|
1453
1457
|
collapsible: false,
|
|
1454
|
-
key: '
|
|
1458
|
+
key: 'connectorFormProductaanvraagStep1ConnectorsPanelTitle',
|
|
1455
1459
|
type: 'panel',
|
|
1456
1460
|
label: 'Panel',
|
|
1457
1461
|
input: false,
|
|
1458
1462
|
tableView: false,
|
|
1459
1463
|
components: [
|
|
1460
1464
|
{
|
|
1461
|
-
label: 'connectorForm.productaanvraag.step1.
|
|
1462
|
-
|
|
1465
|
+
label: 'connectorForm.productaanvraag.step1.connectors.openNotificatieConnector.label',
|
|
1466
|
+
widget: 'choicesjs',
|
|
1463
1467
|
tableView: true,
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1468
|
+
dataSrc: 'custom',
|
|
1469
|
+
data: ɵ1,
|
|
1470
|
+
dataType: 'string',
|
|
1471
|
+
clearOnRefresh: true,
|
|
1472
|
+
key: 'openNotificatieConnectionName',
|
|
1473
|
+
type: 'select',
|
|
1469
1474
|
input: true,
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
label: 'connectorForm.productaanvraag.step1.objectsApi.token.label',
|
|
1473
|
-
tooltip: 'connectorForm.productaanvraag.step1.objectsApi.token.tooltip',
|
|
1474
|
-
tableView: true,
|
|
1475
1475
|
validate: {
|
|
1476
1476
|
required: true,
|
|
1477
1477
|
},
|
|
1478
|
-
|
|
1479
|
-
type: 'textfield',
|
|
1480
|
-
input: true,
|
|
1478
|
+
placeholder: 'connectorForm.productaanvraag.step1.connectors.openNotificatieConnector.placeholder',
|
|
1481
1479
|
},
|
|
1482
|
-
],
|
|
1483
|
-
},
|
|
1484
|
-
{
|
|
1485
|
-
title: 'connectorForm.productaanvraag.step1.objectTypesApi.panelTitle',
|
|
1486
|
-
collapsible: false,
|
|
1487
|
-
key: 'connectorFormProductaanvraagStep1ObjectTypesApiPanelTitle',
|
|
1488
|
-
type: 'panel',
|
|
1489
|
-
label: 'Panel',
|
|
1490
|
-
input: false,
|
|
1491
|
-
tableView: false,
|
|
1492
|
-
components: [
|
|
1493
1480
|
{
|
|
1494
|
-
label: 'connectorForm.productaanvraag.step1.
|
|
1495
|
-
|
|
1481
|
+
label: 'connectorForm.productaanvraag.step1.connectors.objectsApiConnector.label',
|
|
1482
|
+
widget: 'choicesjs',
|
|
1496
1483
|
tableView: true,
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1484
|
+
dataSrc: 'custom',
|
|
1485
|
+
data: ɵ2,
|
|
1486
|
+
dataType: 'string',
|
|
1487
|
+
clearOnRefresh: true,
|
|
1488
|
+
key: 'objectsApiConnectionName',
|
|
1489
|
+
type: 'select',
|
|
1502
1490
|
input: true,
|
|
1503
|
-
},
|
|
1504
|
-
{
|
|
1505
|
-
label: 'connectorForm.productaanvraag.step1.objectTypesApi.token.label',
|
|
1506
|
-
tooltip: 'connectorForm.productaanvraag.step1.objectTypesApi.token.tooltip',
|
|
1507
|
-
tableView: true,
|
|
1508
1491
|
validate: {
|
|
1509
1492
|
required: true,
|
|
1510
1493
|
},
|
|
1511
|
-
|
|
1512
|
-
type: 'textfield',
|
|
1513
|
-
input: true,
|
|
1494
|
+
placeholder: 'connectorForm.productaanvraag.step1.connectors.objectsApiConnector.placeholder',
|
|
1514
1495
|
},
|
|
1515
1496
|
],
|
|
1516
1497
|
},
|
|
@@ -1544,195 +1525,15 @@
|
|
|
1544
1525
|
],
|
|
1545
1526
|
content: 'connectorForm.productaanvraag.step2.tip',
|
|
1546
1527
|
refreshOnChange: false,
|
|
1547
|
-
key: 'html2',
|
|
1548
|
-
type: 'htmlelement',
|
|
1549
|
-
input: false,
|
|
1550
|
-
tableView: false,
|
|
1551
|
-
},
|
|
1552
|
-
{
|
|
1553
|
-
title: 'connectorForm.productaanvraag.step2.objectType.panelTitle',
|
|
1554
|
-
collapsible: false,
|
|
1555
|
-
key: 'connectorFormProductaanvraagStep2ObjectTypePanelTitle',
|
|
1556
|
-
type: 'panel',
|
|
1557
|
-
label: 'Panel',
|
|
1558
|
-
input: false,
|
|
1559
|
-
tableView: false,
|
|
1560
|
-
components: [
|
|
1561
|
-
{
|
|
1562
|
-
label: 'connectorForm.productaanvraag.step2.objectType.name.label',
|
|
1563
|
-
tooltip: 'connectorForm.productaanvraag.step2.objectType.name.tooltip',
|
|
1564
|
-
tableView: true,
|
|
1565
|
-
validate: {
|
|
1566
|
-
required: true,
|
|
1567
|
-
},
|
|
1568
|
-
key: 'objectTypeName',
|
|
1569
|
-
type: 'textfield',
|
|
1570
|
-
input: true,
|
|
1571
|
-
},
|
|
1572
|
-
{
|
|
1573
|
-
label: 'connectorForm.productaanvraag.step2.objectType.title.label',
|
|
1574
|
-
tooltip: 'connectorForm.productaanvraag.step2.objectType.title.tooltip',
|
|
1575
|
-
tableView: true,
|
|
1576
|
-
validate: {
|
|
1577
|
-
required: true,
|
|
1578
|
-
},
|
|
1579
|
-
key: 'objectTypeTitle',
|
|
1580
|
-
type: 'textfield',
|
|
1581
|
-
input: true,
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
label: 'connectorForm.productaanvraag.step2.objectType.url.label',
|
|
1585
|
-
tooltip: 'connectorForm.productaanvraag.step2.objectType.url.tooltip',
|
|
1586
|
-
tableView: true,
|
|
1587
|
-
validate: {
|
|
1588
|
-
required: true,
|
|
1589
|
-
},
|
|
1590
|
-
key: 'objectTypeUrl',
|
|
1591
|
-
type: 'textfield',
|
|
1592
|
-
input: true,
|
|
1593
|
-
},
|
|
1594
|
-
{
|
|
1595
|
-
label: 'connectorForm.productaanvraag.step2.objectType.typeVersion.label',
|
|
1596
|
-
tooltip: 'connectorForm.productaanvraag.step2.objectType.typeVersion.tooltip',
|
|
1597
|
-
tableView: true,
|
|
1598
|
-
validate: {
|
|
1599
|
-
required: true,
|
|
1600
|
-
},
|
|
1601
|
-
key: 'objectTypeVersion',
|
|
1602
|
-
type: 'textfield',
|
|
1603
|
-
input: true,
|
|
1604
|
-
},
|
|
1605
|
-
],
|
|
1606
|
-
},
|
|
1607
|
-
],
|
|
1608
|
-
},
|
|
1609
|
-
{
|
|
1610
|
-
title: 'connectorForm.productaanvraag.step3.title',
|
|
1611
|
-
breadcrumbClickable: true,
|
|
1612
|
-
buttonSettings: {
|
|
1613
|
-
previous: true,
|
|
1614
|
-
cancel: true,
|
|
1615
|
-
next: true,
|
|
1616
|
-
},
|
|
1617
|
-
navigateOnEnter: false,
|
|
1618
|
-
saveOnEnter: false,
|
|
1619
|
-
scrollToTop: false,
|
|
1620
|
-
collapsible: false,
|
|
1621
|
-
key: 'page3',
|
|
1622
|
-
type: 'panel',
|
|
1623
|
-
label: 'Page 3',
|
|
1624
|
-
input: false,
|
|
1625
|
-
tableView: false,
|
|
1626
|
-
components: [
|
|
1627
|
-
{
|
|
1628
|
-
label: 'HTML',
|
|
1629
|
-
attrs: [
|
|
1630
|
-
{
|
|
1631
|
-
attr: '',
|
|
1632
|
-
value: '',
|
|
1633
|
-
},
|
|
1634
|
-
],
|
|
1635
|
-
content: 'connectorForm.productaanvraag.step3.tip',
|
|
1636
|
-
refreshOnChange: false,
|
|
1637
|
-
key: 'html1',
|
|
1638
|
-
type: 'htmlelement',
|
|
1639
|
-
input: false,
|
|
1640
|
-
tableView: false,
|
|
1641
|
-
},
|
|
1642
|
-
{
|
|
1643
|
-
title: 'connectorForm.productaanvraag.step3.openNotifications.panelTitle',
|
|
1644
|
-
collapsible: false,
|
|
1645
|
-
key: 'connectorFormProductaanvraagStep3OpenNotificationsPanelTitle',
|
|
1646
|
-
type: 'panel',
|
|
1647
|
-
label: 'Panel',
|
|
1648
|
-
input: false,
|
|
1649
|
-
tableView: false,
|
|
1650
|
-
components: [
|
|
1651
|
-
{
|
|
1652
|
-
label: 'connectorForm.productaanvraag.step3.openNotifications.baseUrl.label',
|
|
1653
|
-
tooltip: 'connectorForm.productaanvraag.step3.openNotifications.baseUrl.tooltip',
|
|
1654
|
-
tableView: true,
|
|
1655
|
-
validate: {
|
|
1656
|
-
required: true,
|
|
1657
|
-
},
|
|
1658
|
-
key: 'openNotificationsBaseUrl',
|
|
1659
|
-
type: 'textfield',
|
|
1660
|
-
input: true,
|
|
1661
|
-
},
|
|
1662
|
-
{
|
|
1663
|
-
label: 'connectorForm.productaanvraag.step3.openNotifications.clientId.label',
|
|
1664
|
-
tooltip: 'connectorForm.productaanvraag.step3.openNotifications.clientId.tooltip',
|
|
1665
|
-
tableView: true,
|
|
1666
|
-
validate: {
|
|
1667
|
-
required: true,
|
|
1668
|
-
},
|
|
1669
|
-
key: 'openNotificationsClientId',
|
|
1670
|
-
type: 'textfield',
|
|
1671
|
-
input: true,
|
|
1672
|
-
},
|
|
1673
|
-
{
|
|
1674
|
-
label: 'connectorForm.productaanvraag.step3.openNotifications.secret.label',
|
|
1675
|
-
tooltip: 'connectorForm.productaanvraag.step3.openNotifications.secret.tooltip',
|
|
1676
|
-
tableView: true,
|
|
1677
|
-
validate: {
|
|
1678
|
-
required: true,
|
|
1679
|
-
},
|
|
1680
|
-
key: 'openNotificationsSecret',
|
|
1681
|
-
type: 'textfield',
|
|
1682
|
-
input: true,
|
|
1683
|
-
},
|
|
1684
|
-
{
|
|
1685
|
-
label: 'connectorForm.productaanvraag.step3.openNotifications.callbackBaseUrl.label',
|
|
1686
|
-
tooltip: 'connectorForm.productaanvraag.step3.openNotifications.callbackBaseUrl.tooltip',
|
|
1687
|
-
tableView: true,
|
|
1688
|
-
validate: {
|
|
1689
|
-
required: true,
|
|
1690
|
-
},
|
|
1691
|
-
key: 'openNotificationsCallbackBaseUrl',
|
|
1692
|
-
type: 'textfield',
|
|
1693
|
-
input: true,
|
|
1694
|
-
},
|
|
1695
|
-
],
|
|
1696
|
-
},
|
|
1697
|
-
],
|
|
1698
|
-
},
|
|
1699
|
-
{
|
|
1700
|
-
title: 'connectorForm.productaanvraag.step4.title',
|
|
1701
|
-
breadcrumbClickable: true,
|
|
1702
|
-
buttonSettings: {
|
|
1703
|
-
previous: true,
|
|
1704
|
-
cancel: true,
|
|
1705
|
-
next: true,
|
|
1706
|
-
},
|
|
1707
|
-
navigateOnEnter: false,
|
|
1708
|
-
saveOnEnter: false,
|
|
1709
|
-
scrollToTop: false,
|
|
1710
|
-
collapsible: false,
|
|
1711
|
-
key: 'page4',
|
|
1712
|
-
type: 'panel',
|
|
1713
|
-
label: 'Page 4',
|
|
1714
|
-
input: false,
|
|
1715
|
-
tableView: false,
|
|
1716
|
-
components: [
|
|
1717
|
-
{
|
|
1718
|
-
label: 'HTML',
|
|
1719
|
-
attrs: [
|
|
1720
|
-
{
|
|
1721
|
-
attr: '',
|
|
1722
|
-
value: '',
|
|
1723
|
-
},
|
|
1724
|
-
],
|
|
1725
|
-
content: 'connectorForm.productaanvraag.step4.tip',
|
|
1726
|
-
refreshOnChange: false,
|
|
1727
1528
|
key: 'html3',
|
|
1728
1529
|
type: 'htmlelement',
|
|
1729
1530
|
input: false,
|
|
1730
1531
|
tableView: false,
|
|
1731
1532
|
},
|
|
1732
1533
|
{
|
|
1733
|
-
title: 'connectorForm.productaanvraag.
|
|
1534
|
+
title: 'connectorForm.productaanvraag.step2.applicant.panelTitle',
|
|
1734
1535
|
collapsible: false,
|
|
1735
|
-
key: '
|
|
1536
|
+
key: 'connectorFormProductaanvraagstep2ApplicantPanelTitle',
|
|
1736
1537
|
type: 'panel',
|
|
1737
1538
|
label: 'Panel',
|
|
1738
1539
|
input: false,
|
|
@@ -1746,7 +1547,7 @@
|
|
|
1746
1547
|
value: '',
|
|
1747
1548
|
},
|
|
1748
1549
|
],
|
|
1749
|
-
content: 'connectorForm.productaanvraag.
|
|
1550
|
+
content: 'connectorForm.productaanvraag.step2.applicant.tip',
|
|
1750
1551
|
refreshOnChange: false,
|
|
1751
1552
|
key: 'html5',
|
|
1752
1553
|
type: 'htmlelement',
|
|
@@ -1754,8 +1555,8 @@
|
|
|
1754
1555
|
tableView: false,
|
|
1755
1556
|
},
|
|
1756
1557
|
{
|
|
1757
|
-
label: 'connectorForm.productaanvraag.
|
|
1758
|
-
tooltip: 'connectorForm.productaanvraag.
|
|
1558
|
+
label: 'connectorForm.productaanvraag.step2.applicant.roleTypeUrl.label',
|
|
1559
|
+
tooltip: 'connectorForm.productaanvraag.step2.applicant.roleTypeUrl.tooltip',
|
|
1759
1560
|
tableView: true,
|
|
1760
1561
|
validate: {
|
|
1761
1562
|
required: true,
|
|
@@ -1769,7 +1570,7 @@
|
|
|
1769
1570
|
],
|
|
1770
1571
|
},
|
|
1771
1572
|
{
|
|
1772
|
-
title: 'connectorForm.productaanvraag.
|
|
1573
|
+
title: 'connectorForm.productaanvraag.step3.title',
|
|
1773
1574
|
breadcrumbClickable: true,
|
|
1774
1575
|
buttonSettings: {
|
|
1775
1576
|
previous: true,
|
|
@@ -1780,9 +1581,9 @@
|
|
|
1780
1581
|
saveOnEnter: false,
|
|
1781
1582
|
scrollToTop: false,
|
|
1782
1583
|
collapsible: false,
|
|
1783
|
-
key: '
|
|
1584
|
+
key: 'page3',
|
|
1784
1585
|
type: 'panel',
|
|
1785
|
-
label: 'Page
|
|
1586
|
+
label: 'Page 3',
|
|
1786
1587
|
input: false,
|
|
1787
1588
|
tableView: false,
|
|
1788
1589
|
components: [
|
|
@@ -1794,7 +1595,7 @@
|
|
|
1794
1595
|
value: '',
|
|
1795
1596
|
},
|
|
1796
1597
|
],
|
|
1797
|
-
content: 'connectorForm.productaanvraag.
|
|
1598
|
+
content: 'connectorForm.productaanvraag.step3.tip',
|
|
1798
1599
|
refreshOnChange: false,
|
|
1799
1600
|
key: 'html6',
|
|
1800
1601
|
type: 'htmlelement',
|
|
@@ -1802,7 +1603,7 @@
|
|
|
1802
1603
|
tableView: false,
|
|
1803
1604
|
},
|
|
1804
1605
|
{
|
|
1805
|
-
label: 'connectorForm.productaanvraag.
|
|
1606
|
+
label: 'connectorForm.productaanvraag.step3.name',
|
|
1806
1607
|
tableView: true,
|
|
1807
1608
|
validate: {
|
|
1808
1609
|
required: true,
|
|
@@ -1817,12 +1618,13 @@
|
|
|
1817
1618
|
};
|
|
1818
1619
|
|
|
1819
1620
|
var EditProductAanvragenConnectorComponent = /** @class */ (function () {
|
|
1820
|
-
function EditProductAanvragenConnectorComponent(formTranslationService, formMappingService, documentService, translateService) {
|
|
1621
|
+
function EditProductAanvragenConnectorComponent(formTranslationService, formMappingService, documentService, translateService, connectorManagementService) {
|
|
1821
1622
|
var _this = this;
|
|
1822
1623
|
this.formTranslationService = formTranslationService;
|
|
1823
1624
|
this.formMappingService = formMappingService;
|
|
1824
1625
|
this.documentService = documentService;
|
|
1825
1626
|
this.translateService = translateService;
|
|
1627
|
+
this.connectorManagementService = connectorManagementService;
|
|
1826
1628
|
this.showDeleteButton = false;
|
|
1827
1629
|
this.propertiesSave = new i0.EventEmitter();
|
|
1828
1630
|
this.connectorDelete = new i0.EventEmitter();
|
|
@@ -1845,6 +1647,7 @@
|
|
|
1845
1647
|
window['productRequestDefinitions'] = {};
|
|
1846
1648
|
this.openFormDefinitionSubscription();
|
|
1847
1649
|
this.formDefinition$.next(editProductAanvragenConnectorForm);
|
|
1650
|
+
this.loadConnectorNames();
|
|
1848
1651
|
this.loadDefinitions();
|
|
1849
1652
|
};
|
|
1850
1653
|
EditProductAanvragenConnectorComponent.prototype.ngOnDestroy = function () {
|
|
@@ -1855,19 +1658,8 @@
|
|
|
1855
1658
|
EditProductAanvragenConnectorComponent.prototype.onSubmit = function (event) {
|
|
1856
1659
|
var submission = event.data;
|
|
1857
1660
|
var properties = lodash.cloneDeep(this.properties);
|
|
1858
|
-
properties.
|
|
1859
|
-
properties.
|
|
1860
|
-
properties.objectsApiProperties.objectsTypeApi.url = submission.objectTypesApiUrl;
|
|
1861
|
-
properties.objectsApiProperties.objectsTypeApi.token = submission.objectTypesApiToken;
|
|
1862
|
-
properties.objectsApiProperties.objectType.name = submission.objectTypeName;
|
|
1863
|
-
properties.objectsApiProperties.objectType.title = submission.objectTypeTitle;
|
|
1864
|
-
properties.objectsApiProperties.objectType.url = submission.objectTypeUrl;
|
|
1865
|
-
properties.objectsApiProperties.objectType.typeVersion = submission.objectTypeVersion;
|
|
1866
|
-
properties.openNotificatieProperties.baseUrl = submission.openNotificationsBaseUrl;
|
|
1867
|
-
properties.openNotificatieProperties.clientId = submission.openNotificationsClientId;
|
|
1868
|
-
properties.openNotificatieProperties.secret = submission.openNotificationsSecret;
|
|
1869
|
-
properties.openNotificatieProperties.callbackBaseUrl =
|
|
1870
|
-
submission.openNotificationsCallbackBaseUrl;
|
|
1661
|
+
properties.objectsApiConnectionName = submission.objectsApiConnectionName;
|
|
1662
|
+
properties.openNotificatieConnectionName = submission.openNotificatieConnectionName;
|
|
1871
1663
|
properties.aanvragerRolTypeUrl = submission.applicantRoleTypeUrl;
|
|
1872
1664
|
properties.typeMapping = submission.productAanvraagTypes;
|
|
1873
1665
|
this.propertiesSave.emit({ properties: properties, name: submission.connectorName });
|
|
@@ -1889,19 +1681,8 @@
|
|
|
1889
1681
|
EditProductAanvragenConnectorComponent.prototype.prefillForm = function () {
|
|
1890
1682
|
var properties = lodash.cloneDeep(this.properties);
|
|
1891
1683
|
var submission = {};
|
|
1892
|
-
submission.
|
|
1893
|
-
submission.
|
|
1894
|
-
submission.objectTypesApiUrl = properties.objectsApiProperties.objectsTypeApi.url;
|
|
1895
|
-
submission.objectTypesApiToken = properties.objectsApiProperties.objectsTypeApi.token;
|
|
1896
|
-
submission.objectTypeName = properties.objectsApiProperties.objectType.name;
|
|
1897
|
-
submission.objectTypeTitle = properties.objectsApiProperties.objectType.title;
|
|
1898
|
-
submission.objectTypeUrl = properties.objectsApiProperties.objectType.url;
|
|
1899
|
-
submission.objectTypeVersion = properties.objectsApiProperties.objectType.typeVersion;
|
|
1900
|
-
submission.openNotificationsBaseUrl = properties.openNotificatieProperties.baseUrl;
|
|
1901
|
-
submission.openNotificationsClientId = properties.openNotificatieProperties.clientId;
|
|
1902
|
-
submission.openNotificationsSecret = properties.openNotificatieProperties.secret;
|
|
1903
|
-
submission.openNotificationsCallbackBaseUrl =
|
|
1904
|
-
properties.openNotificatieProperties.callbackBaseUrl;
|
|
1684
|
+
submission.objectsApiConnectionName = properties.objectsApiConnectionName;
|
|
1685
|
+
submission.openNotificatieConnectionName = properties.openNotificatieConnectionName;
|
|
1905
1686
|
submission.applicantRoleTypeUrl = properties.aanvragerRolTypeUrl;
|
|
1906
1687
|
submission.productAanvraagTypes = properties.typeMapping;
|
|
1907
1688
|
submission.connectorName = this.defaultName;
|
|
@@ -1932,6 +1713,26 @@
|
|
|
1932
1713
|
}))
|
|
1933
1714
|
.subscribe();
|
|
1934
1715
|
};
|
|
1716
|
+
EditProductAanvragenConnectorComponent.prototype.loadConnectorNames = function () {
|
|
1717
|
+
var _this = this;
|
|
1718
|
+
this.connectorManagementService.getConnectorTypes()
|
|
1719
|
+
.pipe(operators.tap(function (res) {
|
|
1720
|
+
res.forEach(function (connectorType) {
|
|
1721
|
+
if (connectorType.name === 'ObjectsApi') {
|
|
1722
|
+
_this.loadConnectorNamesByType('objectApiConnectorNames', connectorType.id);
|
|
1723
|
+
}
|
|
1724
|
+
else if (connectorType.name === 'OpenNotificatie') {
|
|
1725
|
+
_this.loadConnectorNamesByType('openNotificatieConnectorNames', connectorType.id);
|
|
1726
|
+
}
|
|
1727
|
+
});
|
|
1728
|
+
}))
|
|
1729
|
+
.subscribe();
|
|
1730
|
+
};
|
|
1731
|
+
EditProductAanvragenConnectorComponent.prototype.loadConnectorNamesByType = function (windowKey, connectorTypeId) {
|
|
1732
|
+
this.connectorManagementService.getConnectorInstancesByType(connectorTypeId)
|
|
1733
|
+
.pipe(operators.map(function (res) { return window[windowKey] = res.content.map(function (connector) { return connector.name; }); }))
|
|
1734
|
+
.subscribe();
|
|
1735
|
+
};
|
|
1935
1736
|
return EditProductAanvragenConnectorComponent;
|
|
1936
1737
|
}());
|
|
1937
1738
|
EditProductAanvragenConnectorComponent.decorators = [
|
|
@@ -1945,7 +1746,8 @@
|
|
|
1945
1746
|
{ type: form.FormTranslationService },
|
|
1946
1747
|
{ type: form.FormMappingService },
|
|
1947
1748
|
{ type: document.DocumentService },
|
|
1948
|
-
{ type: core.TranslateService }
|
|
1749
|
+
{ type: core.TranslateService },
|
|
1750
|
+
{ type: ConnectorManagementService }
|
|
1949
1751
|
]; };
|
|
1950
1752
|
EditProductAanvragenConnectorComponent.propDecorators = {
|
|
1951
1753
|
properties: [{ type: i0.Input }],
|
|
@@ -1977,13 +1779,15 @@
|
|
|
1977
1779
|
this.propertiesSave = new i0.EventEmitter();
|
|
1978
1780
|
this.connectorDelete = new i0.EventEmitter();
|
|
1979
1781
|
this.productAanvragenName = 'ProductAanvragen';
|
|
1782
|
+
this.taakName = 'Taak';
|
|
1783
|
+
this.customConnectorNames = [this.productAanvragenName, this.taakName];
|
|
1980
1784
|
}
|
|
1981
1785
|
return EditConnectorFormComponent;
|
|
1982
1786
|
}());
|
|
1983
1787
|
EditConnectorFormComponent.decorators = [
|
|
1984
1788
|
{ type: i0.Component, args: [{
|
|
1985
1789
|
selector: 'valtimo-edit-connector-form',
|
|
1986
|
-
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
|
|
1790
|
+
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",
|
|
1987
1791
|
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 */"]
|
|
1988
1792
|
},] }
|
|
1989
1793
|
];
|
|
@@ -1997,6 +1801,176 @@
|
|
|
1997
1801
|
connectorDelete: [{ type: i0.Output }]
|
|
1998
1802
|
};
|
|
1999
1803
|
|
|
1804
|
+
var ɵ0$2 = {
|
|
1805
|
+
custom: 'values = window[\'openNotificatieConnectorNames\'] || []',
|
|
1806
|
+
}, ɵ1$1 = {
|
|
1807
|
+
custom: 'values = window[\'objectApiConnectorNames\'] || []',
|
|
1808
|
+
};
|
|
1809
|
+
var editTaakConnectorForm = {
|
|
1810
|
+
components: [
|
|
1811
|
+
{
|
|
1812
|
+
label: 'connectorForm.taak.name',
|
|
1813
|
+
tableView: false,
|
|
1814
|
+
validate: {
|
|
1815
|
+
required: true,
|
|
1816
|
+
},
|
|
1817
|
+
key: 'connectorName',
|
|
1818
|
+
type: 'textfield',
|
|
1819
|
+
input: true,
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
label: 'connectorForm.taak.openNotificatieConnector.label',
|
|
1823
|
+
widget: 'choicesjs',
|
|
1824
|
+
tableView: false,
|
|
1825
|
+
dataSrc: 'custom',
|
|
1826
|
+
data: ɵ0$2,
|
|
1827
|
+
dataType: 'string',
|
|
1828
|
+
clearOnRefresh: true,
|
|
1829
|
+
key: 'openNotificatieConnectionName',
|
|
1830
|
+
type: 'select',
|
|
1831
|
+
input: true,
|
|
1832
|
+
validate: {
|
|
1833
|
+
required: true,
|
|
1834
|
+
},
|
|
1835
|
+
placeholder: 'connectorForm.taak.openNotificatieConnector.placeholder',
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
label: 'connectorForm.taak.objectsApiConnector.label',
|
|
1839
|
+
widget: 'choicesjs',
|
|
1840
|
+
tableView: false,
|
|
1841
|
+
dataSrc: 'custom',
|
|
1842
|
+
data: ɵ1$1,
|
|
1843
|
+
dataType: 'string',
|
|
1844
|
+
clearOnRefresh: true,
|
|
1845
|
+
key: 'objectsApiConnectionName',
|
|
1846
|
+
type: 'select',
|
|
1847
|
+
input: true,
|
|
1848
|
+
validate: {
|
|
1849
|
+
required: true,
|
|
1850
|
+
},
|
|
1851
|
+
placeholder: 'connectorForm.taak.objectsApiConnector.placeholder',
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
key: 'submit',
|
|
1855
|
+
type: 'button',
|
|
1856
|
+
customClass: 'list-inline',
|
|
1857
|
+
leftIcon: 'icon mdi mdi-save mt-1',
|
|
1858
|
+
input: true,
|
|
1859
|
+
label: 'connectorManagement.save',
|
|
1860
|
+
tableView: false,
|
|
1861
|
+
disableOnInvalid: true
|
|
1862
|
+
},
|
|
1863
|
+
],
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
var EditTaakConnectorComponent = /** @class */ (function () {
|
|
1867
|
+
function EditTaakConnectorComponent(formTranslationService, formMappingService, translateService, connectorManagementService) {
|
|
1868
|
+
var _this = this;
|
|
1869
|
+
this.formTranslationService = formTranslationService;
|
|
1870
|
+
this.formMappingService = formMappingService;
|
|
1871
|
+
this.translateService = translateService;
|
|
1872
|
+
this.connectorManagementService = connectorManagementService;
|
|
1873
|
+
this.showDeleteButton = false;
|
|
1874
|
+
this.propertiesSave = new i0.EventEmitter();
|
|
1875
|
+
this.connectorDelete = new i0.EventEmitter();
|
|
1876
|
+
this.formRefresh$ = new rxjs.Subject();
|
|
1877
|
+
this.formDefinition$ = new rxjs.BehaviorSubject(undefined);
|
|
1878
|
+
this.translatedFormDefinition$ = this.formDefinition$.pipe(operators.map(function (definition) { return _this.formTranslationService.translateForm(definition); }));
|
|
1879
|
+
this.options = {
|
|
1880
|
+
disableAlerts: true,
|
|
1881
|
+
};
|
|
1882
|
+
}
|
|
1883
|
+
EditTaakConnectorComponent.prototype.ngOnInit = function () {
|
|
1884
|
+
this.openFormDefinitionSubscription();
|
|
1885
|
+
this.formDefinition$.next(editTaakConnectorForm);
|
|
1886
|
+
this.loadConnectorNames();
|
|
1887
|
+
this.prefillForm();
|
|
1888
|
+
};
|
|
1889
|
+
EditTaakConnectorComponent.prototype.ngOnDestroy = function () {
|
|
1890
|
+
var _a, _b;
|
|
1891
|
+
(_a = this.formDefinitionSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1892
|
+
(_b = this.translateSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
1893
|
+
};
|
|
1894
|
+
EditTaakConnectorComponent.prototype.onSubmit = function (event) {
|
|
1895
|
+
var submission = event.data;
|
|
1896
|
+
var properties = lodash.cloneDeep(this.properties);
|
|
1897
|
+
properties.objectsApiConnectionName = submission.objectsApiConnectionName;
|
|
1898
|
+
properties.openNotificatieConnectionName = submission.openNotificatieConnectionName;
|
|
1899
|
+
this.propertiesSave.emit({ properties: properties, name: submission.connectorName });
|
|
1900
|
+
};
|
|
1901
|
+
EditTaakConnectorComponent.prototype.onDelete = function () {
|
|
1902
|
+
this.connectorDelete.emit();
|
|
1903
|
+
};
|
|
1904
|
+
EditTaakConnectorComponent.prototype.openFormDefinitionSubscription = function () {
|
|
1905
|
+
var _this = this;
|
|
1906
|
+
this.formDefinitionSubscription = rxjs.combineLatest([
|
|
1907
|
+
this.formDefinition$,
|
|
1908
|
+
this.translateService.stream('key'),
|
|
1909
|
+
]).subscribe(function (_c) {
|
|
1910
|
+
var _d = __read(_c, 1), form = _d[0];
|
|
1911
|
+
var translatedForm = _this.formTranslationService.translateForm(form);
|
|
1912
|
+
_this.refreshForm({ form: translatedForm });
|
|
1913
|
+
});
|
|
1914
|
+
};
|
|
1915
|
+
EditTaakConnectorComponent.prototype.prefillForm = function () {
|
|
1916
|
+
var _this = this;
|
|
1917
|
+
rxjs.timer(100).pipe(operators.tap(function () {
|
|
1918
|
+
if (_this.defaultName !== undefined) {
|
|
1919
|
+
var properties = lodash.cloneDeep(_this.properties);
|
|
1920
|
+
var submission = {};
|
|
1921
|
+
submission.objectsApiConnectionName = properties.objectsApiConnectionName;
|
|
1922
|
+
submission.openNotificatieConnectionName = properties.openNotificatieConnectionName;
|
|
1923
|
+
submission.connectorName = _this.defaultName;
|
|
1924
|
+
_this.refreshForm({ submission: { data: submission } });
|
|
1925
|
+
}
|
|
1926
|
+
})).subscribe();
|
|
1927
|
+
};
|
|
1928
|
+
EditTaakConnectorComponent.prototype.refreshForm = function (refreshValue) {
|
|
1929
|
+
this.formRefresh$.next(refreshValue);
|
|
1930
|
+
};
|
|
1931
|
+
EditTaakConnectorComponent.prototype.loadConnectorNames = function () {
|
|
1932
|
+
var _this = this;
|
|
1933
|
+
this.connectorManagementService.getConnectorTypes()
|
|
1934
|
+
.pipe(operators.tap(function (res) {
|
|
1935
|
+
res.forEach(function (connectorType) {
|
|
1936
|
+
if (connectorType.name === 'ObjectsApi') {
|
|
1937
|
+
_this.loadConnectorNamesByType('objectApiConnectorNames', connectorType.id);
|
|
1938
|
+
}
|
|
1939
|
+
else if (connectorType.name === 'OpenNotificatie') {
|
|
1940
|
+
_this.loadConnectorNamesByType('openNotificatieConnectorNames', connectorType.id);
|
|
1941
|
+
}
|
|
1942
|
+
});
|
|
1943
|
+
}))
|
|
1944
|
+
.subscribe();
|
|
1945
|
+
};
|
|
1946
|
+
EditTaakConnectorComponent.prototype.loadConnectorNamesByType = function (windowKey, connectorTypeId) {
|
|
1947
|
+
this.connectorManagementService.getConnectorInstancesByType(connectorTypeId)
|
|
1948
|
+
.pipe(operators.map(function (res) { return window[windowKey] = res.content.map(function (connector) { return connector.name; }); }))
|
|
1949
|
+
.subscribe();
|
|
1950
|
+
};
|
|
1951
|
+
return EditTaakConnectorComponent;
|
|
1952
|
+
}());
|
|
1953
|
+
EditTaakConnectorComponent.decorators = [
|
|
1954
|
+
{ type: i0.Component, args: [{
|
|
1955
|
+
selector: 'valtimo-edit-taak-connector',
|
|
1956
|
+
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",
|
|
1957
|
+
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}"]
|
|
1958
|
+
},] }
|
|
1959
|
+
];
|
|
1960
|
+
EditTaakConnectorComponent.ctorParameters = function () { return [
|
|
1961
|
+
{ type: form.FormTranslationService },
|
|
1962
|
+
{ type: form.FormMappingService },
|
|
1963
|
+
{ type: core.TranslateService },
|
|
1964
|
+
{ type: ConnectorManagementService }
|
|
1965
|
+
]; };
|
|
1966
|
+
EditTaakConnectorComponent.propDecorators = {
|
|
1967
|
+
properties: [{ type: i0.Input }],
|
|
1968
|
+
defaultName: [{ type: i0.Input }],
|
|
1969
|
+
showDeleteButton: [{ type: i0.Input }],
|
|
1970
|
+
propertiesSave: [{ type: i0.Output }],
|
|
1971
|
+
connectorDelete: [{ type: i0.Output }]
|
|
1972
|
+
};
|
|
1973
|
+
|
|
2000
1974
|
/*
|
|
2001
1975
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
2002
1976
|
*
|
|
@@ -2031,6 +2005,7 @@
|
|
|
2031
2005
|
ConnectorLinkExtensionModalComponent,
|
|
2032
2006
|
EditProductAanvragenConnectorComponent,
|
|
2033
2007
|
EditConnectorFormComponent,
|
|
2008
|
+
EditTaakConnectorComponent,
|
|
2034
2009
|
],
|
|
2035
2010
|
imports: [
|
|
2036
2011
|
common.CommonModule,
|
|
@@ -2052,6 +2027,7 @@
|
|
|
2052
2027
|
ConnectorLinkExtensionComponent,
|
|
2053
2028
|
ConnectorLinkExtensionModalComponent,
|
|
2054
2029
|
EditProductAanvragenConnectorComponent,
|
|
2030
|
+
EditTaakConnectorComponent,
|
|
2055
2031
|
],
|
|
2056
2032
|
entryComponents: [ConnectorLinkExtensionComponent],
|
|
2057
2033
|
},] }
|
|
@@ -2127,7 +2103,8 @@
|
|
|
2127
2103
|
exports.connectorLinkExtensionInitializer = connectorLinkExtensionInitializer;
|
|
2128
2104
|
exports.ɵa = EditProductAanvragenConnectorComponent;
|
|
2129
2105
|
exports.ɵb = EditConnectorFormComponent;
|
|
2130
|
-
exports.ɵc =
|
|
2106
|
+
exports.ɵc = EditTaakConnectorComponent;
|
|
2107
|
+
exports.ɵd = ConnectorManagementRoutingModule;
|
|
2131
2108
|
|
|
2132
2109
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2133
2110
|
|