@credithub/harlan-components 1.24.3 → 1.24.5
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.
|
@@ -67,6 +67,7 @@ var ConsultaSimplesSection = function (_a) {
|
|
|
67
67
|
: 'success';
|
|
68
68
|
return (React.createElement(Section, __assign({ title: "Consulta Simples", subtitle: "Consulta de informa\u00E7\u00F5es do documento.", description: React.createElement(React.Fragment, null,
|
|
69
69
|
React.createElement(StatusMessage, { type: "found" }, formatDocument(documento)),
|
|
70
|
-
|
|
70
|
+
isError && (React.createElement(StatusMessage, { type: statusType }, ctx === null || ctx === void 0 ? void 0 : ctx.error.message)),
|
|
71
|
+
possuiPendenciaText.length ? (possuiPendenciaText.map(function (text) { return (React.createElement(StatusMessage, { key: text, type: "error" }, text)); })) : (React.createElement(StatusMessage, { type: statusType }, "Nenhum registro encontrado"))), onClose: onClose, icon: ConsultaSimplesIcon, variant: isLoading ? 'loading' : 'default' }, rest), children));
|
|
71
72
|
};
|
|
72
73
|
export default ConsultaSimplesSection;
|
|
@@ -4,7 +4,7 @@ import { useQuery } from '../webservice';
|
|
|
4
4
|
import XPathUtils from '../../utils/xpath';
|
|
5
5
|
var PartnerProtestos = function (_a) {
|
|
6
6
|
var documento = _a.documento;
|
|
7
|
-
var _b = useQuery("SELECT FROM 'IEPTB'.'IEPTBHARLAN'", { documento: documento }), isLoading = _b.isLoading, error = _b.error, response = _b.response;
|
|
7
|
+
var _b = useQuery("SELECT FROM 'IEPTB'.'IEPTBHARLAN'", { documento: documento, plugin: 'true' }), isLoading = _b.isLoading, error = _b.error, response = _b.response;
|
|
8
8
|
return isLoading ? (React.createElement(Loading, null)) : error ? ('Houve um erro ao obter a informação.') : (XPathUtils.select('string(//registros)', response === null || response === void 0 ? void 0 : response.document));
|
|
9
9
|
};
|
|
10
10
|
export default PartnerProtestos;
|