matcha-components 20.108.0 → 20.109.0

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.
@@ -5116,7 +5116,12 @@ class MatchaMaskApplierService {
5116
5116
  }
5117
5117
  }
5118
5118
  // Modo moeda: dígitos entram pela direita (ex: 1 → 0,01, 12 → 0,12, 123 → 1,23)
5119
- if (this.currencyMode && precision > 0) {
5119
+ // IMPORTANTE: Só aplicar currencyMode se o valor NÃO tem o decimalMarker
5120
+ // Se já tem o decimalMarker, significa que veio formatado do backend (ex: 10,50)
5121
+ const hasDecimalMarker = typeof decimalMarker === 'string'
5122
+ ? processedValue.includes(decimalMarker)
5123
+ : decimalMarker.some((marker) => processedValue.includes(marker));
5124
+ if (this.currencyMode && precision > 0 && !hasDecimalMarker) {
5120
5125
  // Extrair apenas dígitos e sinal negativo
5121
5126
  const hasMinus = processedValue.startsWith("-" /* MaskExpression.MINUS */) ||
5122
5127
  (this.allowNegativeNumbers && processedValue.includes("-" /* MaskExpression.MINUS */));
@@ -5707,7 +5712,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
5707
5712
  type: Injectable
5708
5713
  }] });
5709
5714
 
5710
- console.log('🎯 MATCHA-MASK VERSION: v102 - ELEMENTREF FIX - ' + new Date().toISOString());
5715
+ console.log('🎯 MATCHA-MASK VERSION: v103 - CURRENCYMODE DECIMAL FIX - ' + new Date().toISOString());
5711
5716
  class MatchaMaskService extends MatchaMaskApplierService {
5712
5717
  constructor() {
5713
5718
  super(...arguments);