@senior-agronegocio/angular-components 0.0.9870 → 0.0.9871
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/senior-agronegocio-angular-components.umd.js +18 -7
- package/bundles/senior-agronegocio-angular-components.umd.js.map +1 -1
- package/bundles/senior-agronegocio-angular-components.umd.min.js +1 -1
- package/bundles/senior-agronegocio-angular-components.umd.min.js.map +1 -1
- package/components/financial-title-table/services/financial/enums.d.ts +1 -1
- package/esm2015/components/financial-title-table/financial-title-table.component.js +5 -3
- package/esm2015/components/financial-title-table/services/financial/agro-financial.service.js +10 -5
- package/esm2015/components/financial-title-table/services/financial/enums.js +2 -2
- package/esm2015/services/i18n/en-US.js +2 -1
- package/esm2015/services/i18n/es-CO.js +2 -1
- package/esm2015/services/i18n/pt-BR.js +2 -1
- package/esm5/components/financial-title-table/financial-title-table.component.js +6 -3
- package/esm5/components/financial-title-table/services/financial/agro-financial.service.js +11 -6
- package/esm5/components/financial-title-table/services/financial/enums.js +2 -2
- package/esm5/services/i18n/en-US.js +2 -1
- package/esm5/services/i18n/es-CO.js +2 -1
- package/esm5/services/i18n/pt-BR.js +2 -1
- package/fesm2015/senior-agronegocio-angular-components.js +16 -6
- package/fesm2015/senior-agronegocio-angular-components.js.map +1 -1
- package/fesm5/senior-agronegocio-angular-components.js +18 -7
- package/fesm5/senior-agronegocio-angular-components.js.map +1 -1
- package/package.json +3 -3
- package/services/i18n/en-US.d.ts +1 -0
- package/services/i18n/es-CO.d.ts +1 -0
- package/services/i18n/pt-BR.d.ts +1 -0
|
@@ -1051,6 +1051,7 @@
|
|
|
1051
1051
|
"agro.angular_components.error_loading_accounts_description": "Ocorreu um erro ao carregar as contas do produtor. Tente novamente mais tarde.",
|
|
1052
1052
|
"agro.angular_components.close": "Fechar",
|
|
1053
1053
|
"agro.angular_components.value_paid": "Valor a pagar",
|
|
1054
|
+
"agro.angular_components.timeout_request_error": "Tempo de requisição excedida. Tente novamente mais tarde.",
|
|
1054
1055
|
};
|
|
1055
1056
|
|
|
1056
1057
|
var enUS = {
|
|
@@ -1346,6 +1347,7 @@
|
|
|
1346
1347
|
"agro.angular_components.error_loading_accounts_description": "An error occurred while loading the producer's accounts. Please try again later.",
|
|
1347
1348
|
"agro.angular_components.close": "Close",
|
|
1348
1349
|
"agro.angular_components.value_paid": "Value to pay",
|
|
1350
|
+
"agro.angular_components.timeout_request_error": "Request timeout. Please try again later.",
|
|
1349
1351
|
};
|
|
1350
1352
|
|
|
1351
1353
|
var esCO = {
|
|
@@ -1641,6 +1643,7 @@
|
|
|
1641
1643
|
"agro.angular_components.error_loading_accounts_description": "Ocurrió un error al cargar las cuentas del productor. Intente nuevamente más tarde.",
|
|
1642
1644
|
"agro.angular_components.close": "Cerrar",
|
|
1643
1645
|
"agro.angular_components.value_paid": "Valor a pagar",
|
|
1646
|
+
"agro.angular_components.timeout_request_error": "Tiempo de solicitud excedido. Intente nuevamente más tarde.",
|
|
1644
1647
|
};
|
|
1645
1648
|
|
|
1646
1649
|
|
|
@@ -8364,7 +8367,7 @@
|
|
|
8364
8367
|
(function (QueryStatus) {
|
|
8365
8368
|
QueryStatus["PENDING"] = "PENDING";
|
|
8366
8369
|
QueryStatus["FINISHED"] = "FINISHED";
|
|
8367
|
-
QueryStatus["
|
|
8370
|
+
QueryStatus["ERROR"] = "ERROR";
|
|
8368
8371
|
})(QueryStatus || (QueryStatus = {}));
|
|
8369
8372
|
|
|
8370
8373
|
var AgroFinancialService = /** @class */ (function (_super) {
|
|
@@ -8402,13 +8405,18 @@
|
|
|
8402
8405
|
}
|
|
8403
8406
|
return (index + 1) * 1000;
|
|
8404
8407
|
});
|
|
8405
|
-
return rxjs.scheduled(delays, rxjs.asyncScheduler).pipe(operators.concatMap(function (delay) {
|
|
8408
|
+
return rxjs.scheduled(delays, rxjs.asyncScheduler).pipe(operators.concatMap(function (delay, index) {
|
|
8406
8409
|
return rxjs.timer(delay).pipe(operators.switchMap(function () { return _this.getListTitlesResponse({ requestId: requestId }); }), operators.tap(function (res) {
|
|
8407
|
-
if (res.status === QueryStatus.
|
|
8410
|
+
if (res.status === QueryStatus.ERROR) {
|
|
8408
8411
|
throw new Error(res.message);
|
|
8409
8412
|
}
|
|
8410
|
-
}));
|
|
8411
|
-
}), operators.scan(function (_, curr) { return curr; }, null), operators.filter(function (
|
|
8413
|
+
}), operators.map(function (res) { return ({ res: res, isLast: index === delays.length - 1 }); }));
|
|
8414
|
+
}), operators.scan(function (_, curr) { return curr; }, null), operators.filter(function (data) { return (data === null || data === void 0 ? void 0 : data.res.status) === QueryStatus.FINISHED || (data === null || data === void 0 ? void 0 : data.isLast); }), operators.take(1), operators.map(function (data) {
|
|
8415
|
+
if ((data === null || data === void 0 ? void 0 : data.isLast) && data.res.status === QueryStatus.PENDING) {
|
|
8416
|
+
throw new Error("agro.angular_components.timeout_request_error");
|
|
8417
|
+
}
|
|
8418
|
+
return data === null || data === void 0 ? void 0 : data.res;
|
|
8419
|
+
}), operators.takeUntil(this.pooling), operators.map(function (res) { return res === null || res === void 0 ? void 0 : res.result; }));
|
|
8412
8420
|
};
|
|
8413
8421
|
AgroFinancialService.ctorParameters = function () { return [
|
|
8414
8422
|
{ type: http.HttpClient },
|
|
@@ -8539,7 +8547,8 @@
|
|
|
8539
8547
|
.listTitles(input)
|
|
8540
8548
|
.pipe(operators.takeUntil(this.ngUnsubscribe), operators.catchError(function (err) {
|
|
8541
8549
|
_this.componentLoading = false;
|
|
8542
|
-
|
|
8550
|
+
var detailMsg = (err === null || err === void 0 ? void 0 : err.message) || "agro.angular_components.error_loading_accounts_description";
|
|
8551
|
+
_this.addMessage("warn", "agro.angular_components.error_loading_accounts_title", detailMsg);
|
|
8543
8552
|
throw err;
|
|
8544
8553
|
}))
|
|
8545
8554
|
.subscribe(function (list) {
|
|
@@ -8799,11 +8808,13 @@
|
|
|
8799
8808
|
FinancialTitleTableComponent.prototype.getFields = function (field, header, path, type, fieldOrderBy) {
|
|
8800
8809
|
return { field: field, path: path, type: type, header: this.translate.instant(header), orderBy: fieldOrderBy };
|
|
8801
8810
|
};
|
|
8802
|
-
FinancialTitleTableComponent.prototype.addMessage = function (severity, summary, detail, sticky) {
|
|
8811
|
+
FinancialTitleTableComponent.prototype.addMessage = function (severity, summary, detail, sticky, life) {
|
|
8803
8812
|
if (sticky === void 0) { sticky = false; }
|
|
8813
|
+
if (life === void 0) { life = 7000; }
|
|
8804
8814
|
this.messageService.add({
|
|
8805
8815
|
severity: severity,
|
|
8806
8816
|
sticky: sticky,
|
|
8817
|
+
life: life,
|
|
8807
8818
|
summary: this.translate.instant(summary),
|
|
8808
8819
|
detail: this.translate.instant(detail),
|
|
8809
8820
|
});
|