pjc-fields 0.0.63 → 0.0.65
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/fesm2022/pjc-fields.mjs +56 -0
- package/fesm2022/pjc-fields.mjs.map +1 -1
- package/package.json +1 -1
- package/types/pjc-fields.d.ts +18 -0
package/package.json
CHANGED
package/types/pjc-fields.d.ts
CHANGED
|
@@ -905,8 +905,26 @@ declare class PjcUtils {
|
|
|
905
905
|
static valorMonetarioPorExtenso(valor: number, currencyName?: string, currencyNamePlural?: string, centavoSingular?: string, centavoPlural?: string): string;
|
|
906
906
|
/**
|
|
907
907
|
* Converte unidade de medida para extenso, respeitando gênero.
|
|
908
|
+
* Para quilograma e litro, a parte decimal é convertida para a subunidade
|
|
909
|
+
* correspondente (grama e mililitro, respectivamente).
|
|
908
910
|
*/
|
|
909
911
|
static unidadeMedidaPorExtenso(valor: number, unidade: PjcUnidadeMedida): string;
|
|
912
|
+
private static unidadeComSubunidade;
|
|
913
|
+
/**
|
|
914
|
+
* Converte múltiplas unidades de massa para extenso em uma única string.
|
|
915
|
+
* Todos os parâmetros são opcionais. Os valores informados são convertidos
|
|
916
|
+
* para extenso e concatenados com vírgulas e "e" antes do último item.
|
|
917
|
+
*
|
|
918
|
+
* Exemplo:
|
|
919
|
+
* PjcUtils.massaPorExtenso({ quilograma: 1, grama: 200, miligrama: 100, centigrama: 500 })
|
|
920
|
+
* // => "um quilograma, duzentos gramas, cem miligramas e quinhentos centigramas"
|
|
921
|
+
*/
|
|
922
|
+
static massaPorExtenso(params: {
|
|
923
|
+
quilograma?: number;
|
|
924
|
+
grama?: number;
|
|
925
|
+
miligrama?: number;
|
|
926
|
+
centigrama?: number;
|
|
927
|
+
}): string;
|
|
910
928
|
}
|
|
911
929
|
|
|
912
930
|
export { ESTADOS, PJC_CIDADE_SERVICE, PJC_ENUM_SERVICE, PjcCepFieldComponent, PjcChassiFieldComponent, PjcChassiInputDirective, PjcCidadeFieldComponent, PjcCidadeService, PjcCnhFieldComponent, PjcCnpjFieldComponent, PjcCpfCnpjFieldComponent, PjcCpfFieldComponent, PjcDataFieldComponent, PjcDataHoraFieldComponent, PjcDetalhesComponent, PjcEmailFieldComponent, PjcEnumFieldComponent, PjcEnumService, PjcErroValidacaoComponent, PjcFields, PjcHoraFieldComponent, PjcImeiFieldComponent, PjcIntegerFieldComponent, PjcMoedaFieldComponent, PjcNumeroCartaoFieldComponent, PjcPasswordFieldComponent, PjcPlacaFieldComponent, PjcRenavamFieldComponent, PjcTelefoneFieldComponent, PjcTipoPessoaFieldComponent, PjcUfFieldComponent, PjcUppercaseFieldComponent, PjcUtils, PjcValidators, TIPOS_PESSOA };
|