@credithub/harlan-components 1.94.0 → 1.94.1
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.
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import PefinRefinBoaVistaIcon from '../../assets/icones/pefinRefinBoaVista';
|
|
13
13
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
14
|
-
import { formatMoney } from '../../utils/number';
|
|
14
|
+
import { clearMoneyString, formatMoney } from '../../utils/number';
|
|
15
15
|
import { addNoValueContent } from '../../utils/string';
|
|
16
16
|
import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
17
17
|
import AddItemField from '../common/addItem';
|
|
@@ -97,9 +97,7 @@ function RefinBoaVista(_a) {
|
|
|
97
97
|
progress: loadingProgress
|
|
98
98
|
}, title: "Restri\u00E7\u00F5es Pefin/Refin Boa Vista", subtitle: "Apontamentos e Restri\u00E7\u00F5es Financeiras e Comerciais", icon: PefinRefinBoaVistaIcon, description: !error && (React.createElement(StatusMessage, { type: pendencias.length === 0 ? 'default' : 'error' }, description)), variant: pendencias.length === 0 ? 'default' : 'error', onSuccess: function () { return (React.createElement(Result, null, pendencias.map(function (pendencia, i) { return (React.createElement(ResultContent, { key: i, desktop: "repeat(5, 1fr)", tablet: "repeat(3, 1fr)", mobile: "1fr 1fr" },
|
|
99
99
|
React.createElement(AddItemField, { name: "Associado", value: pendencia.NomeAssociado }),
|
|
100
|
-
React.createElement(AddItemField, { name: "Valor", value:
|
|
101
|
-
? "".concat(formatMoney(parseFloat(pendencia.Valor)))
|
|
102
|
-
: 'Sem Valor' }),
|
|
100
|
+
React.createElement(AddItemField, { name: "Valor", value: formatMoney(clearMoneyString(pendencia.Valor)) }),
|
|
103
101
|
React.createElement(AddItemField, { name: "Data da Inclus\u00E3o", value: pendencia.DataDeInclusao }),
|
|
104
102
|
React.createElement(AddItemField, { name: "Data do Vencimento", value: pendencia.DataDoVencimento }),
|
|
105
103
|
React.createElement(AddItemField, { name: "Entidade", value: pendencia.Entidade }),
|
package/dist/utils/number.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export declare const phoneMask: (value?: string) => string;
|
|
|
3
3
|
export declare function formatValue(valor?: number): string | undefined;
|
|
4
4
|
export declare function sum(valores: number[]): number;
|
|
5
5
|
export declare const extractIntegerFromText: (text: string | null) => number;
|
|
6
|
+
export declare const clearMoneyString: (value: string) => string;
|
package/dist/utils/number.js
CHANGED