@valtimo/connector-management 4.15.2 → 4.15.3-next-main.14
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 +45 -68
- 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/connector-link-extension/connector-link-extension.component.js +3 -3
- package/esm2015/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.component.js +25 -52
- package/esm2015/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.form.js +22 -16
- package/esm2015/lib/extension/connector-management.extension.init.js +2 -2
- package/fesm2015/valtimo-connector-management.js +45 -67
- package/fesm2015/valtimo-connector-management.js.map +1 -1
- package/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.component.d.ts +10 -8
- package/lib/components/edit-product-aanvragen-connector/edit-product-aanvragen-connector.form.d.ts +24 -14
- package/package.json +1 -1
- package/valtimo-connector-management.metadata.json +1 -1
|
@@ -1156,8 +1156,8 @@
|
|
|
1156
1156
|
ConnectorLinkExtensionComponent.decorators = [
|
|
1157
1157
|
{ type: i0.Component, args: [{
|
|
1158
1158
|
selector: 'valtimo-connector-link-extension',
|
|
1159
|
-
template: "<h2 class=\"mb-4 mt-6\">{{'connectorManagement.extension.title' | translate}}</h2>\n\n<ng-container *ngIf=\"{\n syncConfig: objectApiSyncConfig$ | async,\n loading: loading$ | async,\n disabled: disabled$ | async\n } as obs\"\n>\n <ng-container *ngIf=\"obs.loading === false; else loading\">\n <ng-container *ngIf=\"obs.syncConfig; else addSync\">\n <div class=\"card card-border\">\n <div class=\"card-
|
|
1160
|
-
styles: [".card-
|
|
1159
|
+
template: "<h2 class=\"mb-4 mt-6\">{{'connectorManagement.extension.title' | translate}}</h2>\n\n<ng-container *ngIf=\"{\n syncConfig: objectApiSyncConfig$ | async,\n loading: loading$ | async,\n disabled: disabled$ | async\n } as obs\"\n>\n <ng-container *ngIf=\"obs.loading === false; else loading\">\n <ng-container *ngIf=\"obs.syncConfig; else addSync\">\n <div class=\"card card-border card-contrast\">\n <div class=\"card-header card-header-contrast card-header-featured\">\n <div>\n {{obs.syncConfig.title}}\n </div>\n <div class=\"controls\">\n <button class=\"btn btn-danger ml-3\" [disabled]=\"obs.disabled\" (click)=\"deleteSync(obs.syncConfig.id)\">\n <i class=\"fa fa-trash\"></i>\n </button>\n </div>\n </div>\n <div class=\"card-body\">\n <div class=\"setting-row\">\n Automatisch zaakdetails synchroniseren\n <div class=\"controls\">\n <div class=\"switch-button switch-button-success\">\n <input type=\"checkbox\" [checked]=\"obs.syncConfig.enabled\" [disabled]=\"obs.disabled\" name=\"sync\" id=\"sync\" (click)=\"toggleSync(obs.syncConfig)\">\n <span><label for=\"sync\"></label></span>\n </div>\n </div>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n</ng-container>\n\n<valtimo-connector-link-extension-modal></valtimo-connector-link-extension-modal>\n\n<ng-template #loading>\n <valtimo-spinner></valtimo-spinner>\n</ng-template>\n\n<ng-template #addSync>\n <div class=\"text-right mt-5\">\n <button class=\"btn btn-primary\" (click)=\"openModal()\" [disabled]=\"disabled$ | async\">\n <i class=\"icon mdi mdi-plus\"></i> \n {{'connectorManagement.extension.buttonText' | translate}}\n </button>\n </div>\n</ng-template>\n",
|
|
1160
|
+
styles: [".card-header,.setting-row{flex-direction:row;justify-content:space-between}.card-header,.controls,.setting-row{align-items:center;display:flex}"]
|
|
1161
1161
|
},] }
|
|
1162
1162
|
];
|
|
1163
1163
|
ConnectorLinkExtensionComponent.ctorParameters = function () { return [
|
|
@@ -1251,6 +1251,9 @@
|
|
|
1251
1251
|
valuesSet: [{ type: i0.Output }]
|
|
1252
1252
|
};
|
|
1253
1253
|
|
|
1254
|
+
var ɵ0$1 = {
|
|
1255
|
+
'custom': 'values = window[\'productRequestDefinitions\'][row.caseDefinitionKey] || []'
|
|
1256
|
+
};
|
|
1254
1257
|
var editProductAanvragenConnectorForm = {
|
|
1255
1258
|
display: 'wizard',
|
|
1256
1259
|
settings: {
|
|
@@ -1294,13 +1297,13 @@
|
|
|
1294
1297
|
tableView: false
|
|
1295
1298
|
},
|
|
1296
1299
|
{
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1300
|
+
key: 'productAanvraagTypes',
|
|
1301
|
+
type: 'editgrid',
|
|
1302
|
+
input: true,
|
|
1303
|
+
validate: {
|
|
1304
|
+
minLength: 1,
|
|
1305
|
+
},
|
|
1306
|
+
customClass: 'edit-grid-component',
|
|
1304
1307
|
components: [
|
|
1305
1308
|
{
|
|
1306
1309
|
label: 'connectorForm.productaanvraag.step0.typeMapping.productAanvraagType.label',
|
|
@@ -1311,7 +1314,7 @@
|
|
|
1311
1314
|
},
|
|
1312
1315
|
key: 'productAanvraagType',
|
|
1313
1316
|
type: 'textfield',
|
|
1314
|
-
input: true
|
|
1317
|
+
input: true,
|
|
1315
1318
|
},
|
|
1316
1319
|
{
|
|
1317
1320
|
label: 'connectorForm.productaanvraag.step0.typeMapping.caseDefinitionKey.label',
|
|
@@ -1328,17 +1331,19 @@
|
|
|
1328
1331
|
{
|
|
1329
1332
|
label: 'connectorForm.productaanvraag.step0.typeMapping.processDefinitionKey.label',
|
|
1330
1333
|
widget: 'choicesjs',
|
|
1331
|
-
placeholder: 'connectorForm.productaanvraag.step0.typeMapping.processDefinitionKey.placeholder',
|
|
1332
1334
|
tableView: true,
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1335
|
+
dataSrc: 'custom',
|
|
1336
|
+
data: ɵ0$1,
|
|
1337
|
+
dataType: 'string',
|
|
1338
|
+
refreshOn: 'row.caseDefinitionKey',
|
|
1339
|
+
clearOnRefresh: true,
|
|
1336
1340
|
key: 'processDefinitionKey',
|
|
1337
1341
|
type: 'select',
|
|
1338
1342
|
input: true,
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1343
|
+
validate: {
|
|
1344
|
+
required: true
|
|
1345
|
+
},
|
|
1346
|
+
placeholder: 'connectorForm.productaanvraag.step0.typeMapping.processDefinitionKey.placeholder',
|
|
1342
1347
|
}
|
|
1343
1348
|
]
|
|
1344
1349
|
}
|
|
@@ -1758,56 +1763,29 @@
|
|
|
1758
1763
|
this.formRefresh$ = new rxjs.Subject();
|
|
1759
1764
|
this.formDefinition$ = new rxjs.BehaviorSubject(undefined);
|
|
1760
1765
|
this.translatedFormDefinition$ = this.formDefinition$.pipe(operators.map(function (definition) { return _this.formTranslationService.translateForm(definition); }));
|
|
1761
|
-
this.
|
|
1766
|
+
this.caseDefinitionOptions = [];
|
|
1767
|
+
this.processDocumentDefinitionOptions = {};
|
|
1762
1768
|
this.options = {
|
|
1763
1769
|
disableAlerts: true
|
|
1764
1770
|
};
|
|
1765
1771
|
this.mapCaseDefinitionKeyComponent = function (component) {
|
|
1766
|
-
var _a;
|
|
1767
1772
|
if (component.key === 'caseDefinitionKey') {
|
|
1768
|
-
|
|
1769
|
-
return Object.assign(Object.assign({}, component), { disabled: false, data: { values: definitionOptions } });
|
|
1770
|
-
}
|
|
1771
|
-
return component;
|
|
1772
|
-
};
|
|
1773
|
-
this.mapProcessDefinitionKeyComponent = function (component) {
|
|
1774
|
-
var _a;
|
|
1775
|
-
if (component.key === 'processDefinitionKey') {
|
|
1776
|
-
var processOptions = _this.processDocumentDefinitions.map(function (definition) { return ({ label: definition.processName, value: definition.id.processDefinitionKey }); });
|
|
1777
|
-
if (((_a = _this.processDocumentDefinitions) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
1778
|
-
return Object.assign(Object.assign({}, component), { disabled: false, data: { values: processOptions } });
|
|
1779
|
-
}
|
|
1780
|
-
else {
|
|
1781
|
-
return Object.assign(Object.assign({}, component), { disabled: true, data: { values: [] } });
|
|
1782
|
-
}
|
|
1773
|
+
return Object.assign(Object.assign({}, component), { disabled: false, data: { values: _this.caseDefinitionOptions } });
|
|
1783
1774
|
}
|
|
1784
1775
|
return component;
|
|
1785
1776
|
};
|
|
1786
1777
|
}
|
|
1787
1778
|
EditProductAanvragenConnectorComponent.prototype.ngOnInit = function () {
|
|
1779
|
+
window['productRequestDefinitions'] = {};
|
|
1788
1780
|
this.openFormDefinitionSubscription();
|
|
1789
1781
|
this.formDefinition$.next(editProductAanvragenConnectorForm);
|
|
1790
|
-
this.
|
|
1782
|
+
this.loadDefinitions();
|
|
1791
1783
|
};
|
|
1792
1784
|
EditProductAanvragenConnectorComponent.prototype.ngOnDestroy = function () {
|
|
1793
1785
|
var _a, _b;
|
|
1794
1786
|
(_a = this.formDefinitionSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1795
1787
|
(_b = this.translateSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
1796
1788
|
};
|
|
1797
|
-
EditProductAanvragenConnectorComponent.prototype.onChange = function (object) {
|
|
1798
|
-
var _this = this;
|
|
1799
|
-
var _a;
|
|
1800
|
-
var caseDefinitionKeyValue = (_a = object === null || object === void 0 ? void 0 : object.data) === null || _a === void 0 ? void 0 : _a.caseDefinitionKey;
|
|
1801
|
-
var currentCaseDefinitionId = this.caseDefinitionId$.getValue();
|
|
1802
|
-
if (caseDefinitionKeyValue && caseDefinitionKeyValue !== currentCaseDefinitionId) {
|
|
1803
|
-
this.documentService.findProcessDocumentDefinitions(caseDefinitionKeyValue).subscribe(function (processDocumentDefinitions) {
|
|
1804
|
-
_this.processDocumentDefinitions = processDocumentDefinitions;
|
|
1805
|
-
var definitionWithProcessDefinitionKeyValues = _this.formMappingService.mapComponents(_this.formDefinition$.getValue(), _this.mapProcessDefinitionKeyComponent);
|
|
1806
|
-
_this.formDefinition$.next(definitionWithProcessDefinitionKeyValues);
|
|
1807
|
-
_this.caseDefinitionId$.next(caseDefinitionKeyValue);
|
|
1808
|
-
});
|
|
1809
|
-
}
|
|
1810
|
-
};
|
|
1811
1789
|
EditProductAanvragenConnectorComponent.prototype.onSubmit = function (event) {
|
|
1812
1790
|
var submission = event.data;
|
|
1813
1791
|
var properties = lodash.cloneDeep(this.properties);
|
|
@@ -1824,13 +1802,7 @@
|
|
|
1824
1802
|
properties.openNotificatieProperties.secret = submission.openNotificationsSecret;
|
|
1825
1803
|
properties.openNotificatieProperties.callbackBaseUrl = submission.openNotificationsCallbackBaseUrl;
|
|
1826
1804
|
properties.aanvragerRolTypeUrl = submission.applicantRoleTypeUrl;
|
|
1827
|
-
properties.typeMapping =
|
|
1828
|
-
{
|
|
1829
|
-
productAanvraagType: submission.productAanvraagType,
|
|
1830
|
-
caseDefinitionKey: submission.caseDefinitionKey,
|
|
1831
|
-
processDefinitionKey: submission.processDefinitionKey
|
|
1832
|
-
}
|
|
1833
|
-
];
|
|
1805
|
+
properties.typeMapping = submission.productAanvraagTypes;
|
|
1834
1806
|
this.propertiesSave.emit({ properties: properties, name: submission.connectorName });
|
|
1835
1807
|
};
|
|
1836
1808
|
EditProductAanvragenConnectorComponent.prototype.onDelete = function () {
|
|
@@ -1861,34 +1833,39 @@
|
|
|
1861
1833
|
submission.openNotificationsSecret = properties.openNotificatieProperties.secret;
|
|
1862
1834
|
submission.openNotificationsCallbackBaseUrl = properties.openNotificatieProperties.callbackBaseUrl;
|
|
1863
1835
|
submission.applicantRoleTypeUrl = properties.aanvragerRolTypeUrl;
|
|
1864
|
-
submission.
|
|
1865
|
-
submission.caseDefinitionKey = properties.typeMapping[0].caseDefinitionKey;
|
|
1866
|
-
submission.processDefinitionKey = properties.typeMapping[0].processDefinitionKey;
|
|
1836
|
+
submission.productAanvraagTypes = properties.typeMapping;
|
|
1867
1837
|
submission.connectorName = this.defaultName;
|
|
1868
1838
|
this.refreshForm({ submission: { data: submission } });
|
|
1869
1839
|
};
|
|
1870
1840
|
EditProductAanvragenConnectorComponent.prototype.refreshForm = function (refreshValue) {
|
|
1871
1841
|
this.formRefresh$.next(refreshValue);
|
|
1872
1842
|
};
|
|
1873
|
-
EditProductAanvragenConnectorComponent.prototype.
|
|
1843
|
+
EditProductAanvragenConnectorComponent.prototype.loadDefinitions = function () {
|
|
1874
1844
|
var _this = this;
|
|
1875
|
-
|
|
1845
|
+
var documentDefinitions;
|
|
1846
|
+
this.documentService.getAllDefinitions().pipe(operators.tap(function (resDocumentDefinitions) { return documentDefinitions = resDocumentDefinitions.content; }), operators.switchMap(function (resDocumentDefinitions) { return rxjs.combineLatest(resDocumentDefinitions.content.map(function (definition) { return _this.documentService.findProcessDocumentDefinitions(definition.id.name); })); }), operators.tap(function (res) {
|
|
1876
1847
|
var _a;
|
|
1877
|
-
_this.
|
|
1878
|
-
|
|
1879
|
-
|
|
1848
|
+
_this.caseDefinitionOptions = documentDefinitions.map(function (documentDefinition) {
|
|
1849
|
+
return { label: documentDefinition.id.name, value: documentDefinition.id.name };
|
|
1850
|
+
});
|
|
1851
|
+
documentDefinitions.forEach(function (documentDefinition, index) {
|
|
1852
|
+
_this.processDocumentDefinitionOptions[documentDefinition.id.name] = res[index].map(function (processDocumentDefinition) { return processDocumentDefinition.id.processDefinitionKey; });
|
|
1853
|
+
});
|
|
1854
|
+
window['productRequestDefinitions'] = _this.processDocumentDefinitionOptions;
|
|
1855
|
+
var definitionWithCaseDefinitionOptions = _this.formMappingService.mapComponents(_this.formDefinition$.getValue(), _this.mapCaseDefinitionKeyComponent);
|
|
1856
|
+
_this.formDefinition$.next(definitionWithCaseDefinitionOptions);
|
|
1880
1857
|
if ((_a = _this.properties) === null || _a === void 0 ? void 0 : _a.aanvragerRolTypeUrl) {
|
|
1881
1858
|
_this.prefillForm();
|
|
1882
1859
|
}
|
|
1883
|
-
});
|
|
1860
|
+
})).subscribe();
|
|
1884
1861
|
};
|
|
1885
1862
|
return EditProductAanvragenConnectorComponent;
|
|
1886
1863
|
}());
|
|
1887
1864
|
EditProductAanvragenConnectorComponent.decorators = [
|
|
1888
1865
|
{ type: i0.Component, args: [{
|
|
1889
1866
|
selector: 'valtimo-edit-product-aanvragen-connector',
|
|
1890
|
-
template: "<!--\n ~ Copyright 2015-2021 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n *ngIf=\"translatedFormDefinition$ | async as definition\"\n class=\"edit-product-request\"\n [ngClass]=\"{'has-delete': showDeleteButton}\"\n>\n <valtimo-form-io\n [form]=\"definition\"\n [formRefresh$]=\"formRefresh$\"\n [
|
|
1891
|
-
styles: ["/*!\n * Copyright 2015-2021 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.edit-product-request ::ng-deep .btn-wizard-nav-cancel{display:none}.edit-product-request ::ng-deep .list-inline{display:flex;flex-direction:row;justify-content:flex-end}.edit-product-request.has-delete ::ng-deep .list-inline{margin-bottom:-30px}.edit-product-request .btn-danger{position:relative}"]
|
|
1867
|
+
template: "<!--\n ~ Copyright 2015-2021 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div\n *ngIf=\"translatedFormDefinition$ | async as definition\"\n class=\"edit-product-request\"\n [ngClass]=\"{'has-delete': showDeleteButton}\"\n>\n <valtimo-form-io\n [form]=\"definition\"\n [formRefresh$]=\"formRefresh$\"\n [options]=\"options\"\n (submit)=\"onSubmit($event)\"\n >\n </valtimo-form-io>\n\n <button *ngIf=\"showDeleteButton\" class=\"btn btn-danger btn-space\" (click)=\"onDelete()\">\n <i class=\"icon mdi mdi-delete mr-1\"></i>\n {{'connectorManagement.remove' | translate}}\n </button>\n</div>\n\n",
|
|
1868
|
+
styles: ["/*!\n * Copyright 2015-2021 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */.edit-product-request ::ng-deep .btn-wizard-nav-cancel{display:none}.edit-product-request ::ng-deep .list-inline{display:flex;flex-direction:row;justify-content:flex-end}.edit-product-request ::ng-deep .col-sm-2{flex:0 0 25%;max-width:25%}.edit-product-request ::ng-deep .edit-grid-component>label{display:none}.edit-product-request.has-delete ::ng-deep .list-inline{margin-bottom:-30px}.edit-product-request .btn-danger{position:relative}"]
|
|
1892
1869
|
},] }
|
|
1893
1870
|
];
|
|
1894
1871
|
EditProductAanvragenConnectorComponent.ctorParameters = function () { return [
|
|
@@ -2031,7 +2008,7 @@
|
|
|
2031
2008
|
return new Promise(function (resolve, reject) {
|
|
2032
2009
|
try {
|
|
2033
2010
|
logger.debug('connector link extension initializer before init');
|
|
2034
|
-
var extension = new contract.Extension('ConnectorLink', new contract.BasicExtensionPoint('dossier-management', 'dossier', '
|
|
2011
|
+
var extension = new contract.Extension('ConnectorLink', new contract.BasicExtensionPoint('dossier-management', 'dossier', 'right-panel', ConnectorLinkExtensionComponent));
|
|
2035
2012
|
configService.addExtension(extension);
|
|
2036
2013
|
logger.debug('connector link extension initializer after init');
|
|
2037
2014
|
resolve();
|