@credithub/harlan-components 1.97.5 → 1.97.7
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/dist/components/dossie/generativeAi/dataUtils.js +21 -3
- package/dist/styles/globalStyle.d.ts +3 -2
- package/dist/styles/globalStyle.js +9 -2
- package/lib/cjs/index.js +2573 -416
- package/lib/esm/index.js +2402 -245
- package/package.json +3 -1
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
13
|
var t = {};
|
|
3
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -102,17 +113,24 @@ export var selectRelevantData = function (data) {
|
|
|
102
113
|
// ────────────────────────────────────────────────
|
|
103
114
|
var _r = ResumoDosDados !== null && ResumoDosDados !== void 0 ? ResumoDosDados : {}, _omit = _r.protestoLiminar, ResumoSafe = __rest(_r, ["protestoLiminar"]);
|
|
104
115
|
var protestosData = [];
|
|
116
|
+
var ultimaOcorrenciaProtestos = ResumoSafe === null || ResumoSafe === void 0 ? void 0 : ResumoSafe.ultimaOcorrenciaProtestos;
|
|
105
117
|
if (Array.isArray(ResumoSafe === null || ResumoSafe === void 0 ? void 0 : ResumoSafe.protestoHistory) &&
|
|
106
118
|
ResumoSafe.protestoHistory.length) {
|
|
107
119
|
var latest = __spreadArray([], ResumoSafe.protestoHistory, true).sort(function (a, b) { return new Date(b.data).getTime() - new Date(a.data).getTime(); })[0];
|
|
108
|
-
|
|
120
|
+
var latestWithCorrectDate = ultimaOcorrenciaProtestos
|
|
121
|
+
? __assign(__assign({}, latest), { data: ultimaOcorrenciaProtestos }) : latest;
|
|
122
|
+
protestosData = [latestWithCorrectDate];
|
|
109
123
|
// 💡 mantém histórico enxuto também em ResumoSafe
|
|
110
|
-
ResumoSafe.protestoHistory = [
|
|
124
|
+
ResumoSafe.protestoHistory = [latestWithCorrectDate];
|
|
111
125
|
}
|
|
112
126
|
if (!protestosData.length &&
|
|
113
127
|
typeof protestosNumero === 'number' &&
|
|
114
128
|
protestosNumero > 0) {
|
|
115
|
-
protestosData = [
|
|
129
|
+
protestosData = [
|
|
130
|
+
ultimaOcorrenciaProtestos
|
|
131
|
+
? { quantidade: protestosNumero, data: ultimaOcorrenciaProtestos }
|
|
132
|
+
: { quantidade: protestosNumero }
|
|
133
|
+
];
|
|
116
134
|
}
|
|
117
135
|
// ────────────────────────────────────────────────
|
|
118
136
|
// 2. Processos jurídicos – ativos + passivos
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const GlobalStyleWithHelmet: React.FC;
|
|
3
|
+
export default GlobalStyleWithHelmet;
|
|
@@ -4,6 +4,13 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
// src/styles/globalStyle.tsx
|
|
6
6
|
import { createGlobalStyle } from 'styled-components';
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
import { Helmet } from 'react-helmet';
|
|
8
|
+
import React from 'react';
|
|
9
|
+
var GlobalStyle = createGlobalStyle(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* Google Fonts s\u00E3o carregados via Helmet */\n\n /* Reset + fonte padr\u00E3o para toda a aplica\u00E7\u00E3o (inclui modais e portais) */\n *, *::before, *::after {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n font-family: 'Open Sans Condensed', sans-serif;\n }\n\n body {\n -webkit-font-smoothing: antialiased;\n }\n\n /* Oculta bot\u00F5es na impress\u00E3o */\n @media print {\n button,\n [class*=\"Button\"],\n [class^=\"Button\"],\n [class*=\"btn\"],\n [class^=\"btn\"],\n .button,\n .btn {\n display: none !important;\n }\n }\n\n /* Anima\u00E7\u00F5es utilit\u00E1rias */\n @keyframes highlight {\n from {\n background-color: rgba(255, 215, 0, 0.35);\n }\n to {\n background-color: transparent;\n }\n }\n\n .highlighted-process {\n animation: highlight 3s ease-out forwards !important;\n }\n\n @keyframes blueHighlight {\n from {\n background-color: rgba(0, 122, 255, 0.35);\n }\n to {\n background-color: rgba(0, 122, 255, 0.15);\n }\n }\n\n .blue-highlighted-process {\n animation: blueHighlight 2.5s ease-in-out;\n background-color: rgba(0, 122, 255, 0.15);\n transition: background-color 0.3s ease-in-out;\n }\n"], ["\n /* Google Fonts s\u00E3o carregados via Helmet */\n\n /* Reset + fonte padr\u00E3o para toda a aplica\u00E7\u00E3o (inclui modais e portais) */\n *, *::before, *::after {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n font-family: 'Open Sans Condensed', sans-serif;\n }\n\n body {\n -webkit-font-smoothing: antialiased;\n }\n\n /* Oculta bot\u00F5es na impress\u00E3o */\n @media print {\n button,\n [class*=\"Button\"],\n [class^=\"Button\"],\n [class*=\"btn\"],\n [class^=\"btn\"],\n .button,\n .btn {\n display: none !important;\n }\n }\n\n /* Anima\u00E7\u00F5es utilit\u00E1rias */\n @keyframes highlight {\n from {\n background-color: rgba(255, 215, 0, 0.35);\n }\n to {\n background-color: transparent;\n }\n }\n\n .highlighted-process {\n animation: highlight 3s ease-out forwards !important;\n }\n\n @keyframes blueHighlight {\n from {\n background-color: rgba(0, 122, 255, 0.35);\n }\n to {\n background-color: rgba(0, 122, 255, 0.15);\n }\n }\n\n .blue-highlighted-process {\n animation: blueHighlight 2.5s ease-in-out;\n background-color: rgba(0, 122, 255, 0.15);\n transition: background-color 0.3s ease-in-out;\n }\n"])));
|
|
10
|
+
// Componente que combina GlobalStyle com Helmet para fontes
|
|
11
|
+
var GlobalStyleWithHelmet = function () { return (React.createElement(React.Fragment, null,
|
|
12
|
+
React.createElement(Helmet, null,
|
|
13
|
+
React.createElement("link", { href: "https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300;400;500;600;700&display=swap", rel: "stylesheet" })),
|
|
14
|
+
React.createElement(GlobalStyle, null))); };
|
|
15
|
+
export default GlobalStyleWithHelmet;
|
|
9
16
|
var templateObject_1;
|