@dartech/arsenal-ui 1.4.46 → 1.4.47
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/index.js +3 -2
 - package/package.json +1 -1
 
    
        package/index.js
    CHANGED
    
    | 
         @@ -2509,7 +2509,8 @@ const ControlNumberInput = _a => { 
     | 
|
| 
       2509 
2509 
     | 
    
         
             
                  rules: {
         
     | 
| 
       2510 
2510 
     | 
    
         
             
                    required: required ? textError.required : false,
         
     | 
| 
       2511 
2511 
     | 
    
         
             
                    validate: val => {
         
     | 
| 
       2512 
     | 
    
         
            -
                      if (val ===  
     | 
| 
      
 2512 
     | 
    
         
            +
                      if (+val === 0) return true;
         
     | 
| 
      
 2513 
     | 
    
         
            +
                      if (val === null) {
         
     | 
| 
       2513 
2514 
     | 
    
         
             
                        return required ? textError.required : true;
         
     | 
| 
       2514 
2515 
     | 
    
         
             
                      }
         
     | 
| 
       2515 
2516 
     | 
    
         
             
                      if (decimal && !floatsOnly.test(val) || /^-*0+$/.test(val)) {
         
     | 
| 
         @@ -6828,7 +6829,7 @@ const PropertyFiller = ({ 
     | 
|
| 
       6828 
6829 
     | 
    
         
             
                  parseValue: true,
         
     | 
| 
       6829 
6830 
     | 
    
         
             
                  hideErrorMessage: true,
         
     | 
| 
       6830 
6831 
     | 
    
         
             
                  useCleanValue: true,
         
     | 
| 
       6831 
     | 
    
         
            -
                  mode: propertyType === PropertyType.ANY ? 'text' : 'json'
         
     | 
| 
      
 6832 
     | 
    
         
            +
                  mode: propertyType === PropertyType.ANY || propertyType === PropertyType.JSON ? 'text' : 'json'
         
     | 
| 
       6832 
6833 
     | 
    
         
             
                }) : jsx(ControlInput, {
         
     | 
| 
       6833 
6834 
     | 
    
         
             
                  control: control,
         
     | 
| 
       6834 
6835 
     | 
    
         
             
                  name: name,
         
     |