@credithub/harlan-components 1.13.5 → 1.13.6

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.
@@ -133,7 +133,6 @@ var CustomChart = function (_a) {
133
133
  var _k = (0, useCalculation_1.useCalculation)(dataInput.boaVista), quantidadeDeNegativacoesBoaVista = _k.quantidade, valorTotalDeNegativacoesBoaVista = _k.valorTotal;
134
134
  var quantidadeCCF = (0, useCalculation_1.useCalculation)(dataInput.ccfs).quantidade;
135
135
  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
- console.log(dataInput);
137
136
  return (react_1.default.createElement(ChartWrapper, null,
138
137
  react_1.default.createElement(chartContent_1.default, { dataInput: dataInput }),
139
138
  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 })));
@@ -75,7 +75,6 @@ var Protestos = function () {
75
75
  element: react_1.default.createElement(protestosCategory_1.default, { title: "Protestos Gerais", subtitle: "Protestos de outros tipos.", registros: protestosGerais === null || protestosGerais === void 0 ? void 0 : protestosGerais.length, icon: protestosGerais_1.default }, protestosGerais.map(function (protestoElement, index) { return (react_1.default.createElement(protestosList_1.ProtestoItem, { protesto: protestoElement, key: index })); }))
76
76
  }
77
77
  ].sort(function (a, b) { return b.total - a.total; });
78
- console.log(elements);
79
78
  var children = registros ? (react_1.default.createElement(ResultProtestos, null, elements.map(function (_a) {
80
79
  var element = _a.element;
81
80
  return element;
@@ -83,7 +82,7 @@ var Protestos = function () {
83
82
  return {
84
83
  children: children,
85
84
  variant: registros ? 'error' : 'default',
86
- description: (react_1.default.createElement(statusMessage_1.default, { type: registros ? "success" : "default" }, registros
85
+ description: (react_1.default.createElement(statusMessage_1.default, { type: registros ? "error" : "default" }, registros
87
86
  ? registros === 1
88
87
  ? "Encontrado um protesto"
89
88
  : "Encontrados ".concat(registros, " protestos")
@@ -45,7 +45,7 @@ var ProtestosCategory = function (_a) {
45
45
  var defaultHeaderActions = (react_1.default.createElement(react_1.default.Fragment, null,
46
46
  react_1.default.createElement(btnWrapper_1.default, { onClick: toggleOpen }, isOpen ? react_1.default.createElement(chevronUp_1.default, null) : react_1.default.createElement(chevronDown_1.default, null))));
47
47
  return (react_1.default.createElement("div", null,
48
- react_1.default.createElement(header_1.default, __assign({ title: title, subtitle: subtitle, description: react_1.default.createElement(statusMessage_1.default, { type: registros ? "success" : "default" }, !registros
48
+ react_1.default.createElement(header_1.default, __assign({ title: title, subtitle: subtitle, description: react_1.default.createElement(statusMessage_1.default, { type: registros ? "error" : "default" }, !registros
49
49
  ? "Não foram encontradas ocorrências"
50
50
  : (registros === 1 ? 'Foi encontrado um protesto' : "Foram encontrados ".concat(registros, " protestos"))), variant: registros ? 'error' : 'default', actions: registros ? defaultHeaderActions : null }, rest)),
51
51
  react_1.default.createElement(Content, { isOpen: isOpen },
@@ -103,7 +103,6 @@ var CustomChart = function (_a) {
103
103
  var _k = useCalculation(dataInput.boaVista), quantidadeDeNegativacoesBoaVista = _k.quantidade, valorTotalDeNegativacoesBoaVista = _k.valorTotal;
104
104
  var quantidadeCCF = useCalculation(dataInput.ccfs).quantidade;
105
105
  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
- console.log(dataInput);
107
106
  return (React.createElement(ChartWrapper, null,
108
107
  React.createElement(ChartContent, { dataInput: dataInput }),
109
108
  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 })));
@@ -47,7 +47,6 @@ var Protestos = function () {
47
47
  element: React.createElement(ProtestosCategory, { title: "Protestos Gerais", subtitle: "Protestos de outros tipos.", registros: protestosGerais === null || protestosGerais === void 0 ? void 0 : protestosGerais.length, icon: ProtestosGeraisIcon }, protestosGerais.map(function (protestoElement, index) { return (React.createElement(ProtestoItem, { protesto: protestoElement, key: index })); }))
48
48
  }
49
49
  ].sort(function (a, b) { return b.total - a.total; });
50
- console.log(elements);
51
50
  var children = registros ? (React.createElement(ResultProtestos, null, elements.map(function (_a) {
52
51
  var element = _a.element;
53
52
  return element;
@@ -55,7 +54,7 @@ var Protestos = function () {
55
54
  return {
56
55
  children: children,
57
56
  variant: registros ? 'error' : 'default',
58
- description: (React.createElement(StatusMessage, { type: registros ? "success" : "default" }, registros
57
+ description: (React.createElement(StatusMessage, { type: registros ? "error" : "default" }, registros
59
58
  ? registros === 1
60
59
  ? "Encontrado um protesto"
61
60
  : "Encontrados ".concat(registros, " protestos")
@@ -40,7 +40,7 @@ var ProtestosCategory = function (_a) {
40
40
  var defaultHeaderActions = (React.createElement(React.Fragment, null,
41
41
  React.createElement(BtnWrapper, { onClick: toggleOpen }, isOpen ? React.createElement(ChevronUp, null) : React.createElement(ChevronDown, null))));
42
42
  return (React.createElement("div", null,
43
- React.createElement(Header, __assign({ title: title, subtitle: subtitle, description: React.createElement(StatusMessage, { type: registros ? "success" : "default" }, !registros
43
+ React.createElement(Header, __assign({ title: title, subtitle: subtitle, description: React.createElement(StatusMessage, { type: registros ? "error" : "default" }, !registros
44
44
  ? "Não foram encontradas ocorrências"
45
45
  : (registros === 1 ? 'Foi encontrado um protesto' : "Foram encontrados ".concat(registros, " protestos"))), variant: registros ? 'error' : 'default', actions: registros ? defaultHeaderActions : null }, rest)),
46
46
  React.createElement(Content, { isOpen: isOpen },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credithub/harlan-components",
3
- "version": "1.13.5",
3
+ "version": "1.13.6",
4
4
  "description": "Provide a set of web components to be used in Harlan and other projects",
5
5
  "keywords": [
6
6
  "harlan",