pjc-fields 0.0.64 → 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 +31 -0
- package/fesm2022/pjc-fields.mjs.map +1 -1
- package/package.json +1 -1
- package/types/pjc-fields.d.ts +15 -0
package/package.json
CHANGED
package/types/pjc-fields.d.ts
CHANGED
|
@@ -910,6 +910,21 @@ declare class PjcUtils {
|
|
|
910
910
|
*/
|
|
911
911
|
static unidadeMedidaPorExtenso(valor: number, unidade: PjcUnidadeMedida): string;
|
|
912
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;
|
|
913
928
|
}
|
|
914
929
|
|
|
915
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 };
|