ng-pli-commons 0.0.1294 → 0.0.1295
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/ng-pli-commons.umd.js +51 -8
- package/bundles/ng-pli-commons.umd.js.map +1 -1
- package/bundles/ng-pli-commons.umd.min.js +1 -1
- package/bundles/ng-pli-commons.umd.min.js.map +1 -1
- package/esm2015/lib/components/pdf-analyzer/pdf-analyzer.component.js +2 -1
- package/esm2015/lib/services/send-application.service.js +26 -2
- package/esm2015/version.js +8 -8
- package/esm5/lib/components/pdf-analyzer/pdf-analyzer.component.js +2 -1
- package/esm5/lib/services/send-application.service.js +38 -2
- package/esm5/version.js +8 -8
- package/fesm2015/ng-pli-commons.js +33 -8
- package/fesm2015/ng-pli-commons.js.map +1 -1
- package/fesm5/ng-pli-commons.js +45 -8
- package/fesm5/ng-pli-commons.js.map +1 -1
- package/lib/services/send-application.service.d.ts +1 -0
- package/ng-pli-commons.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -11697,7 +11697,9 @@
|
|
|
11697
11697
|
var configurationDocument = listConfigurationDocumentVisible[i];
|
|
11698
11698
|
var document_1 = this.getDocumentByConfigurationId(configurationDocument.id, listDocument, application.id);
|
|
11699
11699
|
if (validateJustRequired) {
|
|
11700
|
-
if ((!document_1 ||
|
|
11700
|
+
if ((!document_1 ||
|
|
11701
|
+
(document_1 && document_1.listArchive.length == 0) ||
|
|
11702
|
+
this.automaticDocumentsValidated(configurationDocument, listDataForm, document_1)) &&
|
|
11701
11703
|
configurationDocument.required) {
|
|
11702
11704
|
this.fillListValidateDocumentDefault(listValidatedDocument, application, configurationDocument);
|
|
11703
11705
|
}
|
|
@@ -12106,6 +12108,46 @@
|
|
|
12106
12108
|
}
|
|
12107
12109
|
return listValidatedBudget;
|
|
12108
12110
|
};
|
|
12111
|
+
SendApplicationService.prototype.automaticDocumentsValidated = function (configDocument, listDataForm, document) {
|
|
12112
|
+
var e_17, _a;
|
|
12113
|
+
if (configDocument.formulaValidateMultiple &&
|
|
12114
|
+
configDocument.formulaValidateMultiple.length > 0) {
|
|
12115
|
+
var data = { statusname: '' };
|
|
12116
|
+
if (listDataForm)
|
|
12117
|
+
try {
|
|
12118
|
+
for (var listDataForm_4 = __values(listDataForm), listDataForm_4_1 = listDataForm_4.next(); !listDataForm_4_1.done; listDataForm_4_1 = listDataForm_4.next()) {
|
|
12119
|
+
var dataForm = listDataForm_4_1.value;
|
|
12120
|
+
for (var property in dataForm.data)
|
|
12121
|
+
data[property.toLowerCase()] = dataForm.data[property];
|
|
12122
|
+
}
|
|
12123
|
+
}
|
|
12124
|
+
catch (e_17_1) {
|
|
12125
|
+
e_17 = { error: e_17_1 };
|
|
12126
|
+
}
|
|
12127
|
+
finally {
|
|
12128
|
+
try {
|
|
12129
|
+
if (listDataForm_4_1 && !listDataForm_4_1.done && (_a = listDataForm_4.return))
|
|
12130
|
+
_a.call(listDataForm_4);
|
|
12131
|
+
}
|
|
12132
|
+
finally {
|
|
12133
|
+
if (e_17)
|
|
12134
|
+
throw e_17.error;
|
|
12135
|
+
}
|
|
12136
|
+
}
|
|
12137
|
+
var formula = this.tokenService.replaceTokensFromListObject(configDocument.name, configDocument.formulaValidateMultiple, data);
|
|
12138
|
+
var result = eval(formula);
|
|
12139
|
+
if (result) {
|
|
12140
|
+
var resultArray = JSON.parse(result);
|
|
12141
|
+
if (resultArray && resultArray.length > 0) {
|
|
12142
|
+
//Then document must have archives
|
|
12143
|
+
if (!document || document.listArchive.length !== resultArray.length) {
|
|
12144
|
+
return true;
|
|
12145
|
+
}
|
|
12146
|
+
}
|
|
12147
|
+
}
|
|
12148
|
+
}
|
|
12149
|
+
return false;
|
|
12150
|
+
};
|
|
12109
12151
|
SendApplicationService.decorators = [
|
|
12110
12152
|
{ type: i0.Injectable, args: [{
|
|
12111
12153
|
providedIn: 'root'
|
|
@@ -14458,6 +14500,7 @@
|
|
|
14458
14500
|
guides: false,
|
|
14459
14501
|
highlight: false,
|
|
14460
14502
|
movable: false,
|
|
14503
|
+
aspectRatio: 4 / 3,
|
|
14461
14504
|
ready: function (e) {
|
|
14462
14505
|
var cropper = _this.cropper;
|
|
14463
14506
|
},
|
|
@@ -17045,9 +17088,9 @@
|
|
|
17045
17088
|
/* tslint:disable */
|
|
17046
17089
|
var VERSION = {
|
|
17047
17090
|
"dirty": true,
|
|
17048
|
-
"raw": "v0.0.18-
|
|
17049
|
-
"hash": "
|
|
17050
|
-
"distance":
|
|
17091
|
+
"raw": "v0.0.18-1827-gba1ea55f-dirty",
|
|
17092
|
+
"hash": "gba1ea55f",
|
|
17093
|
+
"distance": 1827,
|
|
17051
17094
|
"tag": "v0.0.18",
|
|
17052
17095
|
"semver": {
|
|
17053
17096
|
"options": {
|
|
@@ -17063,10 +17106,10 @@
|
|
|
17063
17106
|
"build": [],
|
|
17064
17107
|
"version": "0.0.18"
|
|
17065
17108
|
},
|
|
17066
|
-
"suffix": "
|
|
17067
|
-
"semverString": "0.0.18+
|
|
17068
|
-
"version": "0.0.
|
|
17069
|
-
"buildTimestamp": "2021-12-
|
|
17109
|
+
"suffix": "1827-gba1ea55f-dirty",
|
|
17110
|
+
"semverString": "0.0.18+1827.gba1ea55f",
|
|
17111
|
+
"version": "0.0.1295",
|
|
17112
|
+
"buildTimestamp": "2021-12-14T13:33:36.849Z"
|
|
17070
17113
|
};
|
|
17071
17114
|
/* tslint:enable */
|
|
17072
17115
|
|