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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pjc-fields",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.0",
6
6
  "@angular/core": "^21.2.0",
@@ -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 };