@credithub/harlan-components 1.13.7 → 1.13.8

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.
@@ -124,19 +124,19 @@ var ResumoDeNegativacoesChartSection = function (_a) {
124
124
  exports.ResumoDeNegativacoesChartSection = ResumoDeNegativacoesChartSection;
125
125
  var ChartWrapper = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 20px 30px;\n //background-color: ", ";\n"], ["\n padding: 20px 30px;\n //background-color: ", ";\n"])), theme_1.default.colors.white);
126
126
  var CustomChart = function (_a) {
127
- var _b, _c, _d, _e, _f, _g;
127
+ var _b, _c, _d, _e, _f, _g, _h, _j;
128
128
  var dataInput = _a.dataInput;
129
129
  var ultimaOcorrenciaCCF = (0, useUltimaOcorrenciaCCF_1.default)();
130
+ var _k = (0, useDividasPublicas_1.default)(), quantidadeDividas = _k.quantidade, valorTotalDividas = _k.valorTotal;
130
131
  var quantidadeDeProtestos = ((_c = (_b = dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos) === null || _b === void 0 ? void 0 : _b[(dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos.length) - 1]) === null || _c === void 0 ? void 0 : _c.quantidade) || 0;
131
- var valorTotalProtestos = (0, useCalculation_1.useCalculation)(dataInput.protestos).valorTotal;
132
- var _h = (0, useDividasPublicas_1.default)(), quantidadeDividas = _h.quantidade, valorTotalDividas = _h.valorTotal;
133
- var _j = (0, useCalculation_1.useCalculation)(dataInput.serasa), quantidadeDeNegativacoesSerasa = _j.quantidade, valorTotalDeNegativacoesSerasa = _j.valorTotal;
134
- var _k = (0, useCalculation_1.useCalculation)(dataInput.boaVista), quantidadeDeNegativacoesBoaVista = _k.quantidade, valorTotalDeNegativacoesBoaVista = _k.valorTotal;
132
+ var valorTotalProtestos = ((_e = (_d = dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos) === null || _d === void 0 ? void 0 : _d[(dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos.length) - 1]) === null || _e === void 0 ? void 0 : _e.valorTotal) || 0;
133
+ var _l = (0, useCalculation_1.useCalculation)(dataInput.serasa), quantidadeDeNegativacoesSerasa = _l.quantidade, valorTotalDeNegativacoesSerasa = _l.valorTotal;
134
+ var _m = (0, useCalculation_1.useCalculation)(dataInput.boaVista), quantidadeDeNegativacoesBoaVista = _m.quantidade, valorTotalDeNegativacoesBoaVista = _m.valorTotal;
135
135
  var quantidadeCCF = (0, useCalculation_1.useCalculation)(dataInput.ccfs).quantidade;
136
- var ultimaOcorrenciaProtestos = (_f = (_e = dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos[((_d = dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos) === null || _d === void 0 ? void 0 : _d.length) - 1]) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.toLocaleDateString();
136
+ var ultimaOcorrenciaProtestos = (_h = (_g = dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos[((_f = dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos) === null || _f === void 0 ? void 0 : _f.length) - 1]) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.toLocaleDateString();
137
137
  return (react_1.default.createElement(ChartWrapper, null,
138
138
  react_1.default.createElement(chartContent_1.default, { dataInput: dataInput }),
139
- react_1.default.createElement(quantityResult_1.default, { quantidadeProtestos: quantidadeDeProtestos, quantidadeProcessos: (_g = dataInput === null || dataInput === void 0 ? void 0 : dataInput.pieChartTotalConfig) === null || _g === void 0 ? void 0 : _g.processosJuridicos, quantidadeDividas: quantidadeDividas, quantidadeDividasSerasa: quantidadeDeNegativacoesSerasa, quantidadeDividasBoaVista: quantidadeDeNegativacoesBoaVista, quantidadeChequesSemFundos: quantidadeCCF, ultimaOcorrenciaChequesSemFundos: ultimaOcorrenciaCCF, valorTotalDividasSerasa: valorTotalDeNegativacoesSerasa, valorTotalDividasBoaVista: valorTotalDeNegativacoesBoaVista, valorTotalProtestos: valorTotalProtestos, valorTotalDividas: valorTotalDividas, ultimaOcorrenciaProtestos: ultimaOcorrenciaProtestos })));
139
+ react_1.default.createElement(quantityResult_1.default, { quantidadeProtestos: quantidadeDeProtestos, quantidadeProcessos: (_j = dataInput === null || dataInput === void 0 ? void 0 : dataInput.pieChartTotalConfig) === null || _j === void 0 ? void 0 : _j.processosJuridicos, quantidadeDividas: quantidadeDividas, quantidadeDividasSerasa: quantidadeDeNegativacoesSerasa, quantidadeDividasBoaVista: quantidadeDeNegativacoesBoaVista, quantidadeChequesSemFundos: quantidadeCCF, ultimaOcorrenciaChequesSemFundos: ultimaOcorrenciaCCF, valorTotalDividasSerasa: valorTotalDeNegativacoesSerasa, valorTotalDividasBoaVista: valorTotalDeNegativacoesBoaVista, valorTotalProtestos: valorTotalProtestos, valorTotalDividas: valorTotalDividas, ultimaOcorrenciaProtestos: ultimaOcorrenciaProtestos })));
140
140
  };
141
141
  exports.default = CustomChart;
142
142
  var templateObject_1, templateObject_2;
@@ -94,19 +94,19 @@ export var ResumoDeNegativacoesChartSection = function (_a) {
94
94
  };
95
95
  var ChartWrapper = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding: 20px 30px;\n //background-color: ", ";\n"], ["\n padding: 20px 30px;\n //background-color: ", ";\n"])), theme.colors.white);
96
96
  var CustomChart = function (_a) {
97
- var _b, _c, _d, _e, _f, _g;
97
+ var _b, _c, _d, _e, _f, _g, _h, _j;
98
98
  var dataInput = _a.dataInput;
99
99
  var ultimaOcorrenciaCCF = useUltimaOcorrenciaCCF();
100
+ var _k = useDividasPublicas(), quantidadeDividas = _k.quantidade, valorTotalDividas = _k.valorTotal;
100
101
  var quantidadeDeProtestos = ((_c = (_b = dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos) === null || _b === void 0 ? void 0 : _b[(dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos.length) - 1]) === null || _c === void 0 ? void 0 : _c.quantidade) || 0;
101
- var valorTotalProtestos = useCalculation(dataInput.protestos).valorTotal;
102
- var _h = useDividasPublicas(), quantidadeDividas = _h.quantidade, valorTotalDividas = _h.valorTotal;
103
- var _j = useCalculation(dataInput.serasa), quantidadeDeNegativacoesSerasa = _j.quantidade, valorTotalDeNegativacoesSerasa = _j.valorTotal;
104
- var _k = useCalculation(dataInput.boaVista), quantidadeDeNegativacoesBoaVista = _k.quantidade, valorTotalDeNegativacoesBoaVista = _k.valorTotal;
102
+ var valorTotalProtestos = ((_e = (_d = dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos) === null || _d === void 0 ? void 0 : _d[(dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos.length) - 1]) === null || _e === void 0 ? void 0 : _e.valorTotal) || 0;
103
+ var _l = useCalculation(dataInput.serasa), quantidadeDeNegativacoesSerasa = _l.quantidade, valorTotalDeNegativacoesSerasa = _l.valorTotal;
104
+ var _m = useCalculation(dataInput.boaVista), quantidadeDeNegativacoesBoaVista = _m.quantidade, valorTotalDeNegativacoesBoaVista = _m.valorTotal;
105
105
  var quantidadeCCF = useCalculation(dataInput.ccfs).quantidade;
106
- var ultimaOcorrenciaProtestos = (_f = (_e = dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos[((_d = dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos) === null || _d === void 0 ? void 0 : _d.length) - 1]) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.toLocaleDateString();
106
+ var ultimaOcorrenciaProtestos = (_h = (_g = dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos[((_f = dataInput === null || dataInput === void 0 ? void 0 : dataInput.protestos) === null || _f === void 0 ? void 0 : _f.length) - 1]) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.toLocaleDateString();
107
107
  return (React.createElement(ChartWrapper, null,
108
108
  React.createElement(ChartContent, { dataInput: dataInput }),
109
- React.createElement(QuantidadeResultados, { quantidadeProtestos: quantidadeDeProtestos, quantidadeProcessos: (_g = dataInput === null || dataInput === void 0 ? void 0 : dataInput.pieChartTotalConfig) === null || _g === void 0 ? void 0 : _g.processosJuridicos, quantidadeDividas: quantidadeDividas, quantidadeDividasSerasa: quantidadeDeNegativacoesSerasa, quantidadeDividasBoaVista: quantidadeDeNegativacoesBoaVista, quantidadeChequesSemFundos: quantidadeCCF, ultimaOcorrenciaChequesSemFundos: ultimaOcorrenciaCCF, valorTotalDividasSerasa: valorTotalDeNegativacoesSerasa, valorTotalDividasBoaVista: valorTotalDeNegativacoesBoaVista, valorTotalProtestos: valorTotalProtestos, valorTotalDividas: valorTotalDividas, ultimaOcorrenciaProtestos: ultimaOcorrenciaProtestos })));
109
+ React.createElement(QuantidadeResultados, { quantidadeProtestos: quantidadeDeProtestos, quantidadeProcessos: (_j = dataInput === null || dataInput === void 0 ? void 0 : dataInput.pieChartTotalConfig) === null || _j === void 0 ? void 0 : _j.processosJuridicos, quantidadeDividas: quantidadeDividas, quantidadeDividasSerasa: quantidadeDeNegativacoesSerasa, quantidadeDividasBoaVista: quantidadeDeNegativacoesBoaVista, quantidadeChequesSemFundos: quantidadeCCF, ultimaOcorrenciaChequesSemFundos: ultimaOcorrenciaCCF, valorTotalDividasSerasa: valorTotalDeNegativacoesSerasa, valorTotalDividasBoaVista: valorTotalDeNegativacoesBoaVista, valorTotalProtestos: valorTotalProtestos, valorTotalDividas: valorTotalDividas, ultimaOcorrenciaProtestos: ultimaOcorrenciaProtestos })));
110
110
  };
111
111
  export default CustomChart;
112
112
  var templateObject_1, templateObject_2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credithub/harlan-components",
3
- "version": "1.13.7",
3
+ "version": "1.13.8",
4
4
  "description": "Provide a set of web components to be used in Harlan and other projects",
5
5
  "keywords": [
6
6
  "harlan",