@credithub/harlan-components 1.61.1 → 1.61.3
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.
|
@@ -37,7 +37,7 @@ import { Queries, RequestStatus } from '../webservice';
|
|
|
37
37
|
// Animação do spinner
|
|
38
38
|
var spin = keyframes(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n"], ["\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n"])));
|
|
39
39
|
// Componente Spinner sutil
|
|
40
|
-
var Spinner = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border:
|
|
40
|
+
var Spinner = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-left-color: #222;\n border-radius: 50%;\n width: 9px;\n height: 9px;\n animation: ", " 1s linear infinite;\n margin-right: 8px;\n display: inline-block;\n vertical-align: middle;\n"], ["\n border: 1px solid rgba(0, 0, 0, 0.1);\n border-left-color: #222;\n border-radius: 50%;\n width: 9px;\n height: 9px;\n animation: ", " 1s linear infinite;\n margin-right: 8px;\n display: inline-block;\n vertical-align: middle;\n"])), spin);
|
|
41
41
|
var ConsultaSimplesSection = function (_a) {
|
|
42
42
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
43
43
|
var documento = _a.documento, children = _a.children, onClose = _a.onClose, rest = __rest(_a, ["documento", "children", "onClose"]);
|
|
@@ -53,8 +53,6 @@ var DividasPublicas = function () {
|
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
55
|
var dividas = parseDividas(ctx.document);
|
|
56
|
-
console.log(dividas);
|
|
57
|
-
console.log(dataUpdated);
|
|
58
56
|
if (!dataUpdated) {
|
|
59
57
|
var dividasPublicas_1 = XPathUtils.select('number(//dividas/resumo/valor_total_dividas)', ctx.document) || 0;
|
|
60
58
|
setData(function (prevState) { return (__assign(__assign({}, prevState), { divida: { dividas: dividas, isLoaded: true }, dividasPublicas: dividasPublicas_1 })); });
|
|
@@ -62,7 +60,7 @@ var DividasPublicas = function () {
|
|
|
62
60
|
}
|
|
63
61
|
console.log(dataUpdated);
|
|
64
62
|
if (dividas.length === 0) {
|
|
65
|
-
setData(function (prevState) { return (__assign(__assign({}, prevState), { divida: { isLoaded: true } })); });
|
|
63
|
+
setData(function (prevState) { return (__assign(__assign({}, prevState), { divida: __assign(__assign({}, (prevState.divida || {})), { isLoaded: true }) })); });
|
|
66
64
|
}
|
|
67
65
|
}, [ctx, dataUpdated, setData]);
|
|
68
66
|
return (React.createElement(Section, { ctx: ctx, title: "D\u00EDvidas P\u00FAblicas", icon: DividasVencidasSerasaIcon, subtitle: "Veja as d\u00EDvidas p\u00FAblicas com a Uni\u00E3o (ativa, FGTS e previdenci\u00E1ria).", onSuccess: function (document) {
|