profinansy-ui-lib 3.8.29 → 3.8.30
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.
|
@@ -6172,7 +6172,7 @@ Check the top-level render call using <`+q+">.")}return G}}function J2(M,G){{if(
|
|
|
6172
6172
|
Prefix can't start with '-' when allowNegative is true.
|
|
6173
6173
|
prefix: `+o+`
|
|
6174
6174
|
allowNegative: `+i+`
|
|
6175
|
-
`),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}function JS(e){e=US(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=Tn);var i=e.onBlur;i===void 0&&(i=Tn);var a=e.thousandSeparator,l=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var f=e.defaultValue,p=e.value,C=e.valueIsNumericString,g=e.onValueChange,v=P4(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),b=Ai(e),x=b.decimalSeparator,y=b.allowedDecimalSeparators,E=function(A){return B5(A,e)},w=function(A,_){return zS(A,_,e)},I=Rr(p)?f:p,k=C??YS(I,u,t);Rr(p)?Rr(f)||(k=k||typeof f=="number"):k=k||typeof p=="number";var S=function(A){return H4(A)?A:(typeof A=="number"&&(A=F4(A)),k&&typeof l=="number"?H5(A,l,!!c):A)},L=O4(S(p),S(f),!!k,E,w,g),$=L[0],D=$.numAsString,j=$.formattedValue,F=L[1],R=function(A){var _=A.target,P=A.key,T=_.selectionStart,W=_.selectionEnd,Z=_.value;if(Z===void 0&&(Z=""),(P==="Backspace"||P==="Delete")&&W<u.length){A.preventDefault();return}if(T!==W){o(A);return}P==="Backspace"&&Z[0]==="-"&&T===u.length+1&&n&&Xn(_,1),l&&c&&(P==="Backspace"&&Z[T-1]===x?(Xn(_,T-1),A.preventDefault()):P==="Delete"&&Z[T]===x&&A.preventDefault()),y?.includes(P)&&Z[T]===x&&Xn(_,T+1);var X=a===!0?",":a;P==="Backspace"&&Z[T-1]===X&&Xn(_,T-1),P==="Delete"&&Z[T]===X&&Xn(_,T+1),o(A)},V=function(A){var _=D;if(_.match(/\d/g)||(_=""),r||(_=AS(_)),c&&l&&(_=H5(_,l,c)),_!==D){var P=B5(_,e);F({formattedValue:P,value:_,floatValue:parseFloat(_)},{event:A,source:T1.event})}i(A)},H=function(A){return A===x?!0:A1(A)},B=function(A){var _=A.currentValue,P=A.lastValue,T=A.formattedValue,W=A.currentValueIndex,Z=A.formattedValueIndex,X=_[W],he=T[Z],re=V4(P,_),oe=re.to,Y=function(te){return w(te).indexOf(".")+u.length};return p===0&&c&&l&&_[oe.start]===x&&Y(_)<W&&Y(T)>Z?!1:W>=oe.start&&W<oe.end&&y&&y.includes(X)&&he===x?!0:X===he};return Object.assign(Object.assign({},v),{value:j,valueIsNumericString:!1,isValidInputCharacter:H,isCharacterSame:B,onValueChange:F,format:E,removeFormatting:w,getCaretBoundary:function(A){return XS(A,e)},onKeyDown:R,onBlur:V})}function QS(e){var t=JS(e);return m.createElement(ZS,Object.assign({},t))}const KS=({name:e,value:t,onChange:n,isFloat:r=!1,numAfterDot:o=3,numBeforeDot:i,...a})=>{const l=(u,f)=>{n&&n(u.value,f.event)},c=r?o:0;return s.jsx(QS,{name:e,value:t??"",thousandSeparator:" ",allowedDecimalSeparators:[",","."],decimalSeparator:",",isAllowed:u=>{if(!i)return!0;const{value:f}=u;return f.split(".")[0].length<=i},onValueChange:l,customInput:gr,decimalScale:c,isNumberInput:!0,...a})},qS=m.memo(KS),e$=e=>h.keyframes`
|
|
6175
|
+
`),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}function JS(e){e=US(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=Tn);var i=e.onBlur;i===void 0&&(i=Tn);var a=e.thousandSeparator,l=e.decimalScale,c=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var f=e.defaultValue,p=e.value,C=e.valueIsNumericString,g=e.onValueChange,v=P4(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),b=Ai(e),x=b.decimalSeparator,y=b.allowedDecimalSeparators,E=function(A){return B5(A,e)},w=function(A,_){return zS(A,_,e)},I=Rr(p)?f:p,k=C??YS(I,u,t);Rr(p)?Rr(f)||(k=k||typeof f=="number"):k=k||typeof p=="number";var S=function(A){return H4(A)?A:(typeof A=="number"&&(A=F4(A)),k&&typeof l=="number"?H5(A,l,!!c):A)},L=O4(S(p),S(f),!!k,E,w,g),$=L[0],D=$.numAsString,j=$.formattedValue,F=L[1],R=function(A){var _=A.target,P=A.key,T=_.selectionStart,W=_.selectionEnd,Z=_.value;if(Z===void 0&&(Z=""),(P==="Backspace"||P==="Delete")&&W<u.length){A.preventDefault();return}if(T!==W){o(A);return}P==="Backspace"&&Z[0]==="-"&&T===u.length+1&&n&&Xn(_,1),l&&c&&(P==="Backspace"&&Z[T-1]===x?(Xn(_,T-1),A.preventDefault()):P==="Delete"&&Z[T]===x&&A.preventDefault()),y?.includes(P)&&Z[T]===x&&Xn(_,T+1);var X=a===!0?",":a;P==="Backspace"&&Z[T-1]===X&&Xn(_,T-1),P==="Delete"&&Z[T]===X&&Xn(_,T+1),o(A)},V=function(A){var _=D;if(_.match(/\d/g)||(_=""),r||(_=AS(_)),c&&l&&(_=H5(_,l,c)),_!==D){var P=B5(_,e);F({formattedValue:P,value:_,floatValue:parseFloat(_)},{event:A,source:T1.event})}i(A)},H=function(A){return A===x?!0:A1(A)},B=function(A){var _=A.currentValue,P=A.lastValue,T=A.formattedValue,W=A.currentValueIndex,Z=A.formattedValueIndex,X=_[W],he=T[Z],re=V4(P,_),oe=re.to,Y=function(te){return w(te).indexOf(".")+u.length};return p===0&&c&&l&&_[oe.start]===x&&Y(_)<W&&Y(T)>Z?!1:W>=oe.start&&W<oe.end&&y&&y.includes(X)&&he===x?!0:X===he};return Object.assign(Object.assign({},v),{value:j,valueIsNumericString:!1,isValidInputCharacter:H,isCharacterSame:B,onValueChange:F,format:E,removeFormatting:w,getCaretBoundary:function(A){return XS(A,e)},onKeyDown:R,onBlur:V})}function QS(e){var t=JS(e);return m.createElement(ZS,Object.assign({},t))}const KS=({name:e,value:t,onChange:n,isFloat:r=!1,numAfterDot:o=3,numBeforeDot:i,...a})=>{const l=(u,f)=>{f.source==="event"&&n&&n(u.value,f.event)},c=r?o:0;return s.jsx(QS,{name:e,value:t??"",thousandSeparator:" ",allowedDecimalSeparators:[",","."],decimalSeparator:",",isAllowed:u=>{if(!i)return!0;const{value:f}=u;return f.split(".")[0].length<=i},onValueChange:l,customInput:gr,decimalScale:c,isNumberInput:!0,...a})},qS=m.memo(KS),e$=e=>h.keyframes`
|
|
6176
6176
|
from {
|
|
6177
6177
|
translate: ${e?"100% 0":"0 0"};
|
|
6178
6178
|
}
|