@progress/kendo-vue-inputs 7.0.2 → 7.1.0-develop.1

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.d.mts CHANGED
@@ -180,12 +180,12 @@ onChangemodel?: (value: boolean) => any;
180
180
  }>, {
181
181
  value: string | number | boolean | string[];
182
182
  size: string;
183
+ rounded: string;
184
+ checked: boolean;
183
185
  modelValue: string | number | boolean | string[];
184
186
  defaultValue: any;
185
- rounded: string;
186
187
  valid: boolean;
187
188
  validityStyles: boolean;
188
- checked: boolean;
189
189
  defaultChecked: boolean;
190
190
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
191
191
 
@@ -1077,12 +1077,12 @@ tabIndex: number;
1077
1077
  size: string;
1078
1078
  view: string;
1079
1079
  rounded: string;
1080
+ adaptive: boolean;
1080
1081
  fillMode: string;
1081
1082
  valid: boolean;
1082
1083
  showClearButton: boolean;
1083
1084
  open: boolean;
1084
1085
  popupSettings: ColorPickerPopupSettings_2;
1085
- adaptive: boolean;
1086
1086
  selectedView: number;
1087
1087
  showPreview: boolean;
1088
1088
  showButtons: boolean;
@@ -1931,11 +1931,11 @@ onChangemodel?: (value: string | number) => any;
1931
1931
  }>, {
1932
1932
  required: boolean;
1933
1933
  size: string;
1934
- modelValue: string | number;
1935
- defaultValue: string | number | string[];
1936
- disabled: boolean;
1937
1934
  rounded: string;
1935
+ disabled: boolean;
1938
1936
  fillMode: string;
1937
+ modelValue: string | number;
1938
+ defaultValue: string | number | string[];
1939
1939
  valid: boolean;
1940
1940
  validityStyles: boolean;
1941
1941
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -2905,8 +2905,8 @@ onChangemodel?: (value: number) => any;
2905
2905
  }>, {
2906
2906
  required: boolean;
2907
2907
  size: string;
2908
- disabled: boolean;
2909
2908
  rounded: string;
2909
+ disabled: boolean;
2910
2910
  fillMode: string;
2911
2911
  valid: boolean;
2912
2912
  validityStyles: boolean;
@@ -3284,9 +3284,9 @@ onFocus?: (event: RadioGroupFocusEvent) => any;
3284
3284
  onChangemodel?: (value: any) => any;
3285
3285
  "onUpdate:modelValue"?: (value: any) => any;
3286
3286
  }>, {
3287
+ item: string;
3287
3288
  disabled: boolean;
3288
3289
  valid: boolean;
3289
- item: string;
3290
3290
  layout: string;
3291
3291
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3292
3292
 
@@ -3488,7 +3488,7 @@ dispatchStateValue(args: any): void;
3488
3488
  focus(): void;
3489
3489
  handleChange(newValue: any, event: any | DraggableDragEvent): void;
3490
3490
  calcNewDistance(event: any): any;
3491
- calcKey(payload: any): "end" | "start";
3491
+ calcKey(payload: any): "start" | "end";
3492
3492
  handleStartKeyDown(event: any): void;
3493
3493
  handleEndKeyDown(event: any): void;
3494
3494
  handleTrackPress(event: any): void;
@@ -3531,8 +3531,8 @@ startTabIndex: NumberConstructor;
3531
3531
  endTabIndex: NumberConstructor;
3532
3532
  }>> & Readonly<{}>, {
3533
3533
  vertical: boolean;
3534
- defaultValue: Record<string, any>;
3535
3534
  disabled: boolean;
3535
+ defaultValue: Record<string, any>;
3536
3536
  dir: string;
3537
3537
  step: number;
3538
3538
  }, {}, {}, {}, string, () => {
@@ -4798,11 +4798,11 @@ onChangemodel?: (value: boolean) => any;
4798
4798
  required: boolean;
4799
4799
  value: string | number | boolean;
4800
4800
  size: string;
4801
- modelValue: boolean;
4802
4801
  disabled: boolean;
4802
+ checked: boolean;
4803
+ modelValue: boolean;
4803
4804
  valid: boolean;
4804
4805
  validityStyles: boolean;
4805
- checked: boolean;
4806
4806
  defaultChecked: boolean;
4807
4807
  trackRounded: string;
4808
4808
  thumbRounded: string;
@@ -5194,10 +5194,10 @@ onChangemodel?: (value: string | number | string[]) => any;
5194
5194
  "onUpdate:modelValue"?: (value: string | number | string[]) => any;
5195
5195
  }>, {
5196
5196
  size: string;
5197
- flow: string;
5198
- modelValue: string | number | string[];
5199
5197
  rounded: string;
5200
5198
  fillMode: string;
5199
+ flow: string;
5200
+ modelValue: string | number | string[];
5201
5201
  valid: boolean;
5202
5202
  validityStyles: boolean;
5203
5203
  resizable: string;
@@ -5540,7 +5540,9 @@ default: boolean;
5540
5540
  };
5541
5541
  iconName: PropType<string>;
5542
5542
  inputPrefix: PropType<string | boolean | Object | Function>;
5543
+ prefix: PropType<string | boolean | Object | Function>;
5543
5544
  inputSuffix: PropType<string | boolean | Object | Function>;
5545
+ suffix: PropType<string | boolean | Object | Function>;
5544
5546
  showValidationIcon: PropType<boolean>;
5545
5547
  showLoadingIcon: PropType<boolean>;
5546
5548
  showClearButton: PropType<boolean>;
@@ -5683,7 +5685,9 @@ default: boolean;
5683
5685
  };
5684
5686
  iconName: PropType<string>;
5685
5687
  inputPrefix: PropType<string | boolean | Object | Function>;
5688
+ prefix: PropType<string | boolean | Object | Function>;
5686
5689
  inputSuffix: PropType<string | boolean | Object | Function>;
5690
+ suffix: PropType<string | boolean | Object | Function>;
5687
5691
  showValidationIcon: PropType<boolean>;
5688
5692
  showLoadingIcon: PropType<boolean>;
5689
5693
  showClearButton: PropType<boolean>;
@@ -5707,11 +5711,11 @@ onChangemodel?: (value: string | number) => any;
5707
5711
  }>, {
5708
5712
  required: boolean;
5709
5713
  size: string;
5710
- modelValue: string | number;
5711
- defaultValue: string | number | string[];
5712
- disabled: boolean;
5713
5714
  rounded: string;
5715
+ disabled: boolean;
5714
5716
  fillMode: string;
5717
+ modelValue: string | number;
5718
+ defaultValue: string | number | string[];
5715
5719
  valid: boolean;
5716
5720
  validityStyles: boolean;
5717
5721
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -5842,13 +5846,27 @@ export declare interface TextBoxProps extends FormComponentProps {
5842
5846
  */
5843
5847
  iconName?: string;
5844
5848
  /**
5849
+ *
5850
+ * @obsolete Use `prefix` instead.
5851
+ *
5845
5852
  * Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
5846
5853
  */
5847
5854
  inputPrefix?: boolean | string | Object | Function;
5848
5855
  /**
5856
+ * Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
5857
+ */
5858
+ prefix?: boolean | string | Object | Function;
5859
+ /**
5860
+ *
5861
+ * @obsolete Use `suffix` instead.
5862
+ *
5849
5863
  * Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
5850
5864
  */
5851
5865
  inputSuffix?: boolean | string | Object | Function;
5866
+ /**
5867
+ * Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
5868
+ */
5869
+ suffix?: boolean | string | Object | Function;
5852
5870
  /**
5853
5871
  * Defines a boolean prop that controls whether to show the validation icon. Defaults to 'false'.
5854
5872
  */
package/index.d.ts CHANGED
@@ -180,12 +180,12 @@ onChangemodel?: (value: boolean) => any;
180
180
  }>, {
181
181
  value: string | number | boolean | string[];
182
182
  size: string;
183
+ rounded: string;
184
+ checked: boolean;
183
185
  modelValue: string | number | boolean | string[];
184
186
  defaultValue: any;
185
- rounded: string;
186
187
  valid: boolean;
187
188
  validityStyles: boolean;
188
- checked: boolean;
189
189
  defaultChecked: boolean;
190
190
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
191
191
 
@@ -1077,12 +1077,12 @@ tabIndex: number;
1077
1077
  size: string;
1078
1078
  view: string;
1079
1079
  rounded: string;
1080
+ adaptive: boolean;
1080
1081
  fillMode: string;
1081
1082
  valid: boolean;
1082
1083
  showClearButton: boolean;
1083
1084
  open: boolean;
1084
1085
  popupSettings: ColorPickerPopupSettings_2;
1085
- adaptive: boolean;
1086
1086
  selectedView: number;
1087
1087
  showPreview: boolean;
1088
1088
  showButtons: boolean;
@@ -1931,11 +1931,11 @@ onChangemodel?: (value: string | number) => any;
1931
1931
  }>, {
1932
1932
  required: boolean;
1933
1933
  size: string;
1934
- modelValue: string | number;
1935
- defaultValue: string | number | string[];
1936
- disabled: boolean;
1937
1934
  rounded: string;
1935
+ disabled: boolean;
1938
1936
  fillMode: string;
1937
+ modelValue: string | number;
1938
+ defaultValue: string | number | string[];
1939
1939
  valid: boolean;
1940
1940
  validityStyles: boolean;
1941
1941
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -2905,8 +2905,8 @@ onChangemodel?: (value: number) => any;
2905
2905
  }>, {
2906
2906
  required: boolean;
2907
2907
  size: string;
2908
- disabled: boolean;
2909
2908
  rounded: string;
2909
+ disabled: boolean;
2910
2910
  fillMode: string;
2911
2911
  valid: boolean;
2912
2912
  validityStyles: boolean;
@@ -3284,9 +3284,9 @@ onFocus?: (event: RadioGroupFocusEvent) => any;
3284
3284
  onChangemodel?: (value: any) => any;
3285
3285
  "onUpdate:modelValue"?: (value: any) => any;
3286
3286
  }>, {
3287
+ item: string;
3287
3288
  disabled: boolean;
3288
3289
  valid: boolean;
3289
- item: string;
3290
3290
  layout: string;
3291
3291
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3292
3292
 
@@ -3488,7 +3488,7 @@ dispatchStateValue(args: any): void;
3488
3488
  focus(): void;
3489
3489
  handleChange(newValue: any, event: any | DraggableDragEvent): void;
3490
3490
  calcNewDistance(event: any): any;
3491
- calcKey(payload: any): "end" | "start";
3491
+ calcKey(payload: any): "start" | "end";
3492
3492
  handleStartKeyDown(event: any): void;
3493
3493
  handleEndKeyDown(event: any): void;
3494
3494
  handleTrackPress(event: any): void;
@@ -3531,8 +3531,8 @@ startTabIndex: NumberConstructor;
3531
3531
  endTabIndex: NumberConstructor;
3532
3532
  }>> & Readonly<{}>, {
3533
3533
  vertical: boolean;
3534
- defaultValue: Record<string, any>;
3535
3534
  disabled: boolean;
3535
+ defaultValue: Record<string, any>;
3536
3536
  dir: string;
3537
3537
  step: number;
3538
3538
  }, {}, {}, {}, string, () => {
@@ -4798,11 +4798,11 @@ onChangemodel?: (value: boolean) => any;
4798
4798
  required: boolean;
4799
4799
  value: string | number | boolean;
4800
4800
  size: string;
4801
- modelValue: boolean;
4802
4801
  disabled: boolean;
4802
+ checked: boolean;
4803
+ modelValue: boolean;
4803
4804
  valid: boolean;
4804
4805
  validityStyles: boolean;
4805
- checked: boolean;
4806
4806
  defaultChecked: boolean;
4807
4807
  trackRounded: string;
4808
4808
  thumbRounded: string;
@@ -5194,10 +5194,10 @@ onChangemodel?: (value: string | number | string[]) => any;
5194
5194
  "onUpdate:modelValue"?: (value: string | number | string[]) => any;
5195
5195
  }>, {
5196
5196
  size: string;
5197
- flow: string;
5198
- modelValue: string | number | string[];
5199
5197
  rounded: string;
5200
5198
  fillMode: string;
5199
+ flow: string;
5200
+ modelValue: string | number | string[];
5201
5201
  valid: boolean;
5202
5202
  validityStyles: boolean;
5203
5203
  resizable: string;
@@ -5540,7 +5540,9 @@ default: boolean;
5540
5540
  };
5541
5541
  iconName: PropType<string>;
5542
5542
  inputPrefix: PropType<string | boolean | Object | Function>;
5543
+ prefix: PropType<string | boolean | Object | Function>;
5543
5544
  inputSuffix: PropType<string | boolean | Object | Function>;
5545
+ suffix: PropType<string | boolean | Object | Function>;
5544
5546
  showValidationIcon: PropType<boolean>;
5545
5547
  showLoadingIcon: PropType<boolean>;
5546
5548
  showClearButton: PropType<boolean>;
@@ -5683,7 +5685,9 @@ default: boolean;
5683
5685
  };
5684
5686
  iconName: PropType<string>;
5685
5687
  inputPrefix: PropType<string | boolean | Object | Function>;
5688
+ prefix: PropType<string | boolean | Object | Function>;
5686
5689
  inputSuffix: PropType<string | boolean | Object | Function>;
5690
+ suffix: PropType<string | boolean | Object | Function>;
5687
5691
  showValidationIcon: PropType<boolean>;
5688
5692
  showLoadingIcon: PropType<boolean>;
5689
5693
  showClearButton: PropType<boolean>;
@@ -5707,11 +5711,11 @@ onChangemodel?: (value: string | number) => any;
5707
5711
  }>, {
5708
5712
  required: boolean;
5709
5713
  size: string;
5710
- modelValue: string | number;
5711
- defaultValue: string | number | string[];
5712
- disabled: boolean;
5713
5714
  rounded: string;
5715
+ disabled: boolean;
5714
5716
  fillMode: string;
5717
+ modelValue: string | number;
5718
+ defaultValue: string | number | string[];
5715
5719
  valid: boolean;
5716
5720
  validityStyles: boolean;
5717
5721
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -5842,13 +5846,27 @@ export declare interface TextBoxProps extends FormComponentProps {
5842
5846
  */
5843
5847
  iconName?: string;
5844
5848
  /**
5849
+ *
5850
+ * @obsolete Use `prefix` instead.
5851
+ *
5845
5852
  * Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
5846
5853
  */
5847
5854
  inputPrefix?: boolean | string | Object | Function;
5848
5855
  /**
5856
+ * Defines if the inputPrefix will be shown. Accepts a slot name, a `render` function, or a Vue component.
5857
+ */
5858
+ prefix?: boolean | string | Object | Function;
5859
+ /**
5860
+ *
5861
+ * @obsolete Use `suffix` instead.
5862
+ *
5849
5863
  * Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
5850
5864
  */
5851
5865
  inputSuffix?: boolean | string | Object | Function;
5866
+ /**
5867
+ * Defines if the inputSuffix will be shown. Accepts a slot name, a `render` function, or a Vue component.
5868
+ */
5869
+ suffix?: boolean | string | Object | Function;
5852
5870
  /**
5853
5871
  * Defines a boolean prop that controls whether to show the validation icon. Defaults to 'false'.
5854
5872
  */
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=11111111111111e-7,he=.31111111111111117,Le=1,ee=1,ne=0,V=/\d/,te=15,Ie=(t,n)=>t!==void 0?t:n,m=(t,n,r)=>t===null&&t===void 0?"":typeof t=="string"?t:r.formatNumber(t,n),T=t=>(String(t).split(".")[1]||"").length,re=(t,n)=>Math.max(T(t),T(n)),oe=t=>Math.min(t,te),G=(t,n)=>{const r=oe(n);return parseFloat(t.toFixed(r))},Ne=(t,n,r,e,u,o,a)=>{const s=re(t||0,r||0),c=U(G((t||0)+(r||0),s),e,u);n.eventValue=c,n.currentLooseValue=m(c,o,a),n.selectionStart=n.selectionEnd=N(n.currentLooseValue,V)},Pe=(t,n,r,e,u,o,a)=>{const s=re(t||0,r||0),c=U(G((t||0)-(r||0),s),e,u);n.eventValue=c,n.currentLooseValue=m(c,o,a),n.selectionStart=n.selectionEnd=N(n.currentLooseValue,V)},U=(t,n,r)=>t==null?t:!(t>1||t<1||t===1)||r!==void 0&&n!==void 0&&r<n?null:(r!==void 0&&t>r&&(t=r),n!==void 0&&t<n&&(t=n),t),se=(t,n)=>{const r=n.findIndex(([u,o])=>!!o&&t.indexOf(o)===t.length-o.length);if(r===-1)return-1;const e=n[r][1];return t.length-e.length},ue=(t,n)=>{const r=n.findIndex(([u,o])=>!!u&&t.indexOf(u)===0);return r===-1?-1:n[r][0].length},ie=(t,n,r)=>{const e=se(t,n);if(e!==-1&&r.selectionStart>e){r.selectionStart=r.selectionEnd=e;return}r.selectionStart>t.length&&(r.selectionStart=r.selectionEnd=t.length);const u=ue(t,n);u!==-1&&r.selectionStart<u&&(r.selectionStart=r.selectionEnd=u),r.selectionStart===-1&&(r.selectionStart=r.selectionEnd=0)},x=(t,n,r,e)=>{t.selectionStart=t.selectionEnd=n,ie(r,e,t)},M=(t,n,r,e)=>{t.eventValue=e.parseNumber(t.prevLooseValue,n),t.currentLooseValue=t.prevLooseValue,t.valueIsCorrected=!0,x(t,t.selectionStart,t.currentLooseValue,r)},v=(t,n,r)=>n.split(t).length!==r.split(t).length&&n.length===r.length+t.length,ce=(t,n)=>{const r=String(t.currentLooseValue),e=String(t.prevLooseValue);return v(n.minusSign,r,e)||v("-",r,e)||v("−",r,e)},le=(t,n)=>{const r=String(t.currentLooseValue),e=String(t.prevLooseValue);return r.indexOf(n.minusSign)===-1&&e.indexOf(n.minusSign)!==-1},ae=(t,n)=>String(t.currentLooseValue).split(n.decimal).length>2,de=(t,n)=>{const r=n.formatNumber(w,t),e=n.formatNumber(-11111111111111e-7,t),u=n.formatNumber(ne,t),o=n.formatNumber(ee,t),a=D(r),s=D(e),c=D(u),l=D(o),P=O(r),C=O(e),b=O(u),h=O(o);return{positiveInfo:[a,P],negativeInfo:[s,C],zeroInfo:[c,b],oneInfo:[l,h]}},ge=(t,n)=>{const r=n.formatNumber(w,t),e=n.formatNumber(-11111111111111e-7,t),u=n.formatNumber(ne,t),o=n.formatNumber(ee,t),a=n.numberSymbols(),s=new RegExp(`[\\d\\${a.decimal}${a.group}]`,"g");return[r,e,u,o].map(l=>l.replace(s,"")).join("").split("").filter((l,P,C)=>C.indexOf(l)===P).join("")},y=(t,n)=>{const r=t.indexOf(n.decimal);return r>-1?r:N(t,V)},S=t=>t.split("").reverse().join(""),N=(t,n)=>t.length-S(t).search(n),D=t=>t.split(t[t.search(V)])[0],O=t=>{const n=S(t);return S(n.split(n[n.search(V)])[0])},F=(t,n)=>t.search(n),$=(t,n)=>{const r=t.indexOf(n);return r>-1?t.length-r-1:0},j=(t,n,r,e,u)=>{const o=t.replace(u,"")[0]==="0",a=n.replace(u,"")[0]==="0";if(o&&!a)return r-1;if(a&&e)return r+1;let s=0;for(let l=0;l<r;l++)V.test(t.charAt(l))&&s++;let c=0;for(;s>0&&n.length>c;)V.test(n.charAt(c))&&s--,c++;return c},Ce=(t,n,r)=>{const e={...t},{prevLooseValue:u}=e,o=r.numberSymbols(),a=ge(n,r),s=String(e.currentLooseValue),c=String(u),l=new RegExp(`[^\\d\\${o.decimal}]`,"g"),P=new RegExp(`[^\\d\\${o.decimal}\\${o.group}]`,"g"),C=new RegExp(`[\\d\\${o.decimal}\\${o.group}]`),b=s.replace(l,""),h=F(s,V),E=h===-1?-1:N(s,V),fe=s.indexOf(o.decimal),X=(s.substring(0,h)+s.substring(h,E).replace(P,"")+s.substring(E,s.length)).split("").filter(p=>a.indexOf(p)!==-1||p.search(C)!==-1).join(""),Z=r.formatNumber(he,n).replace(l,""),W=Z.indexOf(o.decimal),I=W>-1?Z.length-W-1:0,k=r.formatNumber(Le,n).replace(l,""),q=k.indexOf(o.decimal),R=q>-1?k.length-q-1:0,{positiveInfo:me,negativeInfo:Ve,zeroInfo:pe,oneInfo:xe}=de(n,r),g=[me,Ve,pe,xe],be=g.findIndex(p=>p.findIndex(L=>!!L)!==-1)!==1,z=s.length>0&&s.length<c.length,H=typeof n=="string"&&n[0]==="p"&&s&&s.indexOf(o.percentSign)===-1;if(!e.isPaste){if(s==="")return e.eventValue=null,e.currentLooseValue="",e;if(e.currentLooseValue===o.minusSign&&r.formatNumber(-0,n)!==c)return e.eventValue=-0,e.currentLooseValue=m(e.eventValue,n,r),x(e,y(e.currentLooseValue,o),e.currentLooseValue,g),e;if(e.currentLooseValue===o.decimal){e.eventValue=0;const f=m(e.eventValue,n,r);if(R===0&&I>0){const i=N(f,V);e.currentLooseValue=f.substring(0,i)+o.decimal+f.substring(i)}else e.currentLooseValue=f;return x(e,y(e.currentLooseValue,o)+1,e.currentLooseValue,g),e}if(ce(e,o)){const f=r.parseNumber(u,n);e.eventValue=-(f!==null?f:0),e.currentLooseValue=m(e.eventValue,n,r);const i=F(e.currentLooseValue,V),d=F(c,V);return x(e,e.selectionEnd-1+(i-d),e.currentLooseValue,g),e}if(le(e,o))return e.eventValue=r.parseNumber(e.currentLooseValue,n),x(e,e.selectionStart,e.currentLooseValue,g),e;if(ae(e,o))return M(e,n,g,r),e;if(H)return e.eventValue=r.parseNumber(s,n)/100,e.currentLooseValue=m(e.eventValue,n,r),e;if(String(e.currentLooseValue).replace(/[^\d]/g,"").length>te||b!==s&&s&&be&&g.findIndex(([i,d])=>{const _=s.indexOf(i),B=s.indexOf(d),J=_===0,K=B===s.length-d.length,Q=_+i.length!==h&&h!==-1&&s[_+i.length]!==o.decimal,Y=B!==E&&E!==-1&&s[B-1]!==o.decimal;return i&&d?Q||Y?!1:J&&K:i?Q?!1:J:d?Y?!1:K:!1})===-1)return M(e,n,g,r),e;if(b[b.length-1]===o.decimal&&I>0)return e.eventValue=r.parseNumber(s,n),e.currentLooseValue=X,e;if(e.currentLooseValue&&u&&(a+o.decimal+o.group).split("").findIndex(i=>s.split("").filter(d=>d===i).length<c.split("").filter(d=>d===i).length&&s.length+1===c.length?!(i===o.decimal&&$(c.replace(l,""),o.decimal)===0):!1)>-1)return e.eventValue=r.parseNumber(t.prevLooseValue,n),e.currentLooseValue=t.prevLooseValue,e;const L=$(b,o.decimal),A=b[b.length-1]==="0";if(z&&A&&L<R)return e.eventValue=r.parseNumber(e.currentLooseValue,n),e.currentLooseValue=m(e.eventValue,n,r),e;if(L>0){const f=s.substring(0,fe);if(A&&(!f||c.indexOf(f)!==0)){e.eventValue=r.parseNumber(e.currentLooseValue,n);const i=m(e.eventValue,n,r);return x(e,j(s,i,e.selectionEnd,z,l),i,g),e.currentLooseValue=i,e}if(L>I){const i=s.indexOf(o.decimal),d=s.substring(0,i)+s.substring(i,i+1+I)+s.substring(E,String(e.currentLooseValue).length);return e.eventValue=r.parseNumber(d,n),e.currentLooseValue=d,x(e,e.selectionStart,d,g),e}if(R!==I&&L<=I&&A)return e.eventValue=r.parseNumber(e.currentLooseValue,n),e.currentLooseValue=X,e;if(L<R)return e.eventValue=r.parseNumber(e.currentLooseValue,n),e.currentLooseValue=m(e.eventValue,n,r),e}}if(e.eventValue=r.parseNumber(e.currentLooseValue,n),H&&(e.eventValue=e.eventValue/100),typeof e.eventValue=="number"){const p=m(e.eventValue,n,r);s.length===1?x(e,y(p,o),p,g):x(e,j(s,p,e.selectionEnd,z,l),p,g),e.currentLooseValue=p}else e.currentLooseValue=m(r.parseNumber(b),n,r);return e};exports.changeBasedSelection=j;exports.decreaseValue=Pe;exports.formatValue=m;exports.fractionLength=T;exports.getDecimalCount=$;exports.getFirstNumberIndex=F;exports.getFormatPrefixSufix=de;exports.getFormatSymbols=ge;exports.getInitialPosition=y;exports.getLastNumberIndex=N;exports.getMaxCursorPosition=se;exports.getMinCursorPosition=ue;exports.getPrefix=D;exports.getStateOrPropsValue=Ie;exports.getSuffix=O;exports.increaseValue=Ne;exports.isDecimalDuplicated=ae;exports.isMinusSymbolAdded=ce;exports.isMinusSymbolRemoved=le;exports.limitPrecision=oe;exports.rangeSelection=ie;exports.rangeValue=U;exports.reverseString=S;exports.sanitizeNumber=Ce;exports.setInvalid=M;exports.setSelection=x;exports.toFixedPrecision=G;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=11111111111111e-7,he=.31111111111111117,Le=1,ee=1,ne=0,V=/\d/,te=15,Ie=(t,n)=>t!==void 0?t:n,m=(t,n,r)=>t===null&&t===void 0?"":typeof t=="string"?t:r.formatNumber(t,n),$=t=>(String(t).split(".")[1]||"").length,re=(t,n)=>Math.max($(t),$(n)),oe=t=>Math.min(t,te),U=(t,n)=>{const r=oe(n);return parseFloat(t.toFixed(r))},Ne=(t,n,r,e,u,o,a)=>{const s=re(t||0,r||0),c=X(U((t||0)+(r||0),s),e,u);n.eventValue=c,n.currentLooseValue=m(c,o,a),n.selectionStart=n.selectionEnd=N(n.currentLooseValue,V)},Pe=(t,n,r,e,u,o,a)=>{const s=re(t||0,r||0),c=X(U((t||0)-(r||0),s),e,u);n.eventValue=c,n.currentLooseValue=m(c,o,a),n.selectionStart=n.selectionEnd=N(n.currentLooseValue,V)},X=(t,n,r)=>t==null?t:!(t>1||t<1||t===1)||r!==void 0&&n!==void 0&&r<n?null:(r!==void 0&&t>r&&(t=r),n!==void 0&&t<n&&(t=n),t),se=(t,n)=>{const r=n.findIndex(([u,o])=>!!o&&t.indexOf(o)===t.length-o.length);if(r===-1)return-1;const e=n[r][1];return t.length-e.length},ue=(t,n)=>{const r=n.findIndex(([u,o])=>!!u&&t.indexOf(u)===0);return r===-1?-1:n[r][0].length},ie=(t,n,r)=>{const e=se(t,n);if(e!==-1&&r.selectionStart>e){r.selectionStart=r.selectionEnd=e;return}r.selectionStart>t.length&&(r.selectionStart=r.selectionEnd=t.length);const u=ue(t,n);u!==-1&&r.selectionStart<u&&(r.selectionStart=r.selectionEnd=u),r.selectionStart===-1&&(r.selectionStart=r.selectionEnd=0)},x=(t,n,r,e)=>{t.selectionStart=t.selectionEnd=n,ie(r,e,t)},M=(t,n,r,e)=>{t.eventValue=e.parseNumber(t.prevLooseValue,n),t.currentLooseValue=t.prevLooseValue,t.valueIsCorrected=!0,x(t,t.selectionStart,t.currentLooseValue,r)},T=(t,n,r)=>n.split(t).length!==r.split(t).length&&n.length===r.length+t.length,ce=(t,n)=>{const r=String(t.currentLooseValue),e=String(t.prevLooseValue);return T(n.minusSign,r,e)||T("-",r,e)||T("−",r,e)},le=(t,n)=>{const r=String(t.currentLooseValue),e=String(t.prevLooseValue);return r.indexOf(n.minusSign)===-1&&e.indexOf(n.minusSign)!==-1},ae=(t,n)=>String(t.currentLooseValue).split(n.decimal).length>2,de=(t,n)=>{const r=n.formatNumber(S,t),e=n.formatNumber(-S,t),u=n.formatNumber(ne,t),o=n.formatNumber(ee,t),a=D(r),s=D(e),c=D(u),l=D(o),P=O(r),C=O(e),b=O(u),h=O(o);return{positiveInfo:[a,P],negativeInfo:[s,C],zeroInfo:[c,b],oneInfo:[l,h]}},ge=(t,n)=>{const r=n.formatNumber(S,t),e=n.formatNumber(-S,t),u=n.formatNumber(ne,t),o=n.formatNumber(ee,t),a=n.numberSymbols(),s=new RegExp(`[\\d\\${a.decimal}${a.group}]`,"g");return[r,e,u,o].map(l=>l.replace(s,"")).join("").split("").filter((l,P,C)=>C.indexOf(l)===P).join("")},y=(t,n)=>{const r=t.indexOf(n.decimal);return r>-1?r:N(t,V)},z=t=>t.split("").reverse().join(""),N=(t,n)=>t.length-z(t).search(n),D=t=>t.split(t[t.search(V)])[0],O=t=>{const n=z(t);return z(n.split(n[n.search(V)])[0])},F=(t,n)=>t.search(n),j=(t,n)=>{const r=t.indexOf(n);return r>-1?t.length-r-1:0},G=(t,n,r,e,u)=>{const o=t.replace(u,"")[0]==="0",a=n.replace(u,"")[0]==="0";if(o&&!a)return r-1;if(a&&e)return r+1;let s=0;for(let l=0;l<r;l++)V.test(t.charAt(l))&&s++;let c=0;for(;s>0&&n.length>c;)V.test(n.charAt(c))&&s--,c++;return c},Ce=(t,n,r)=>{const e={...t},{prevLooseValue:u}=e,o=r.numberSymbols(),a=ge(n,r),s=String(e.currentLooseValue),c=String(u),l=new RegExp(`[^\\d\\${o.decimal}]`,"g"),P=new RegExp(`[^\\d\\${o.decimal}\\${o.group}]`,"g"),C=new RegExp(`[\\d\\${o.decimal}\\${o.group}]`),b=s.replace(l,""),h=F(s,V),E=h===-1?-1:N(s,V),fe=s.indexOf(o.decimal),Z=(s.substring(0,h)+s.substring(h,E).replace(P,"")+s.substring(E,s.length)).split("").filter(p=>a.indexOf(p)!==-1||p.search(C)!==-1).join(""),W=r.formatNumber(he,n).replace(l,""),k=W.indexOf(o.decimal),I=k>-1?W.length-k-1:0,q=r.formatNumber(Le,n).replace(l,""),H=q.indexOf(o.decimal),R=H>-1?q.length-H-1:0,{positiveInfo:me,negativeInfo:Ve,zeroInfo:pe,oneInfo:xe}=de(n,r),g=[me,Ve,pe,xe],be=g.findIndex(p=>p.findIndex(L=>!!L)!==-1)!==1,A=s.length>0&&s.length<c.length,J=typeof n=="string"&&n[0]==="p"&&s&&s.indexOf(o.percentSign)===-1;if(!e.isPaste){if(s==="")return e.eventValue=null,e.currentLooseValue="",e;if(e.currentLooseValue===o.minusSign&&r.formatNumber(-0,n)!==c)return e.eventValue=-0,e.currentLooseValue=m(e.eventValue,n,r),x(e,y(e.currentLooseValue,o),e.currentLooseValue,g),e;if(e.currentLooseValue===o.decimal){e.eventValue=0;const f=m(e.eventValue,n,r);if(R===0&&I>0){const i=N(f,V);e.currentLooseValue=f.substring(0,i)+o.decimal+f.substring(i)}else e.currentLooseValue=f;return x(e,y(e.currentLooseValue,o)+1,e.currentLooseValue,g),e}if(ce(e,o)){const f=r.parseNumber(u,n);e.eventValue=-(f!==null?f:0),e.currentLooseValue=m(e.eventValue,n,r);const i=F(e.currentLooseValue,V),d=F(c,V);return x(e,e.selectionEnd-1+(i-d),e.currentLooseValue,g),e}if(le(e,o))return e.eventValue=r.parseNumber(e.currentLooseValue,n),x(e,e.selectionStart,e.currentLooseValue,g),e;if(ae(e,o))return M(e,n,g,r),e;if(J)return e.eventValue=r.parseNumber(s,n)/100,e.currentLooseValue=m(e.eventValue,n,r),e;if(String(e.currentLooseValue).replace(/[^\d]/g,"").length>te||b!==s&&s&&be&&g.findIndex(([i,d])=>{const B=s.indexOf(i),v=s.indexOf(d),K=B===0,Q=v===s.length-d.length,Y=B+i.length!==h&&h!==-1&&s[B+i.length]!==o.decimal,w=v!==E&&E!==-1&&s[v-1]!==o.decimal;return i&&d?Y||w?!1:K&&Q:i?Y?!1:K:d?w?!1:Q:!1})===-1)return M(e,n,g,r),e;if(b[b.length-1]===o.decimal&&I>0)return e.eventValue=r.parseNumber(s,n),e.currentLooseValue=Z,e;if(e.currentLooseValue&&u&&(a+o.decimal+o.group).split("").findIndex(i=>s.split("").filter(d=>d===i).length<c.split("").filter(d=>d===i).length&&s.length+1===c.length?!(i===o.decimal&&j(c.replace(l,""),o.decimal)===0):!1)>-1)return e.eventValue=r.parseNumber(t.prevLooseValue,n),e.currentLooseValue=t.prevLooseValue,e;const L=j(b,o.decimal),_=b[b.length-1]==="0";if(A&&_&&L<R)return e.eventValue=r.parseNumber(e.currentLooseValue,n),e.currentLooseValue=m(e.eventValue,n,r),e;if(L>0){const f=s.substring(0,fe);if(_&&(!f||c.indexOf(f)!==0)){e.eventValue=r.parseNumber(e.currentLooseValue,n);const i=m(e.eventValue,n,r);return x(e,G(s,i,e.selectionEnd,A,l),i,g),e.currentLooseValue=i,e}if(L>I){const i=s.indexOf(o.decimal),d=s.substring(0,i)+s.substring(i,i+1+I)+s.substring(E,String(e.currentLooseValue).length);return e.eventValue=r.parseNumber(d,n),e.currentLooseValue=d,x(e,e.selectionStart,d,g),e}if(R!==I&&L<=I&&_)return e.eventValue=r.parseNumber(e.currentLooseValue,n),e.currentLooseValue=Z,e;if(L<R)return e.eventValue=r.parseNumber(e.currentLooseValue,n),e.currentLooseValue=m(e.eventValue,n,r),e}}if(e.eventValue=r.parseNumber(e.currentLooseValue,n),J&&(e.eventValue=e.eventValue/100),typeof e.eventValue=="number"){const p=m(e.eventValue,n,r);s.length===1?x(e,y(p,o),p,g):x(e,G(s,p,e.selectionEnd,A,l),p,g),e.currentLooseValue=p}else e.currentLooseValue=m(r.parseNumber(b),n,r);return e};exports.changeBasedSelection=G;exports.decreaseValue=Pe;exports.formatValue=m;exports.fractionLength=$;exports.getDecimalCount=j;exports.getFirstNumberIndex=F;exports.getFormatPrefixSufix=de;exports.getFormatSymbols=ge;exports.getInitialPosition=y;exports.getLastNumberIndex=N;exports.getMaxCursorPosition=se;exports.getMinCursorPosition=ue;exports.getPrefix=D;exports.getStateOrPropsValue=Ie;exports.getSuffix=O;exports.increaseValue=Ne;exports.isDecimalDuplicated=ae;exports.isMinusSymbolAdded=ce;exports.isMinusSymbolRemoved=le;exports.limitPrecision=oe;exports.rangeSelection=ie;exports.rangeValue=X;exports.reverseString=z;exports.sanitizeNumber=Ce;exports.setInvalid=M;exports.setSelection=x;exports.toFixedPrecision=U;
@@ -5,7 +5,7 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- const Q = 11111111111111e-7, ae = 0.31111111111111117, de = 1, Y = 1, w = 0, m = /\d/, ee = 15, Ne = (t, n) => t !== void 0 ? t : n, p = (t, n, r) => t === null && t === void 0 ? "" : typeof t == "string" ? t : r.formatNumber(t, n), H = (t) => (String(t).split(".")[1] || "").length, ne = (t, n) => Math.max(H(t), H(n)), ge = (t) => Math.min(t, ee), te = (t, n) => {
8
+ const M = 11111111111111e-7, ae = 0.31111111111111117, de = 1, Y = 1, w = 0, m = /\d/, ee = 15, Ne = (t, n) => t !== void 0 ? t : n, p = (t, n, r) => t === null && t === void 0 ? "" : typeof t == "string" ? t : r.formatNumber(t, n), J = (t) => (String(t).split(".")[1] || "").length, ne = (t, n) => Math.max(J(t), J(n)), ge = (t) => Math.min(t, ee), te = (t, n) => {
9
9
  const r = ge(n);
10
10
  return parseFloat(t.toFixed(r));
11
11
  }, Ie = (t, n, r, e, u, o, a) => {
@@ -34,16 +34,16 @@ const Q = 11111111111111e-7, ae = 0.31111111111111117, de = 1, Y = 1, w = 0, m =
34
34
  u !== -1 && r.selectionStart < u && (r.selectionStart = r.selectionEnd = u), r.selectionStart === -1 && (r.selectionStart = r.selectionEnd = 0);
35
35
  }, b = (t, n, r, e) => {
36
36
  t.selectionStart = t.selectionEnd = n, Ve(r, e, t);
37
- }, A = (t, n, r, e) => {
37
+ }, _ = (t, n, r, e) => {
38
38
  t.eventValue = e.parseNumber(t.prevLooseValue, n), t.currentLooseValue = t.prevLooseValue, t.valueIsCorrected = !0, b(t, t.selectionStart, t.currentLooseValue, r);
39
- }, _ = (t, n, r) => n.split(t).length !== r.split(t).length && n.length === r.length + t.length, pe = (t, n) => {
39
+ }, B = (t, n, r) => n.split(t).length !== r.split(t).length && n.length === r.length + t.length, pe = (t, n) => {
40
40
  const r = String(t.currentLooseValue), e = String(t.prevLooseValue);
41
- return _(n.minusSign, r, e) || _("-", r, e) || _("−", r, e);
41
+ return B(n.minusSign, r, e) || B("-", r, e) || B("−", r, e);
42
42
  }, xe = (t, n) => {
43
43
  const r = String(t.currentLooseValue), e = String(t.prevLooseValue);
44
44
  return r.indexOf(n.minusSign) === -1 && e.indexOf(n.minusSign) !== -1;
45
45
  }, be = (t, n) => String(t.currentLooseValue).split(n.decimal).length > 2, he = (t, n) => {
46
- const r = n.formatNumber(Q, t), e = n.formatNumber(-11111111111111e-7, t), u = n.formatNumber(w, t), o = n.formatNumber(Y, t), a = O(r), s = O(e), i = O(u), l = O(o), I = P(r), C = P(e), x = P(u), h = P(o);
46
+ const r = n.formatNumber(M, t), e = n.formatNumber(-M, t), u = n.formatNumber(w, t), o = n.formatNumber(Y, t), a = O(r), s = O(e), i = O(u), l = O(o), I = P(r), C = P(e), x = P(u), h = P(o);
47
47
  return {
48
48
  positiveInfo: [a, I],
49
49
  negativeInfo: [s, C],
@@ -51,18 +51,18 @@ const Q = 11111111111111e-7, ae = 0.31111111111111117, de = 1, Y = 1, w = 0, m =
51
51
  oneInfo: [l, h]
52
52
  };
53
53
  }, Le = (t, n) => {
54
- const r = n.formatNumber(Q, t), e = n.formatNumber(-11111111111111e-7, t), u = n.formatNumber(w, t), o = n.formatNumber(Y, t), a = n.numberSymbols(), s = new RegExp(`[\\d\\${a.decimal}${a.group}]`, "g");
54
+ const r = n.formatNumber(M, t), e = n.formatNumber(-M, t), u = n.formatNumber(w, t), o = n.formatNumber(Y, t), a = n.numberSymbols(), s = new RegExp(`[\\d\\${a.decimal}${a.group}]`, "g");
55
55
  return [r, e, u, o].map((l) => l.replace(s, "")).join("").split("").filter((l, I, C) => C.indexOf(l) === I).join("");
56
- }, B = (t, n) => {
56
+ }, $ = (t, n) => {
57
57
  const r = t.indexOf(n.decimal);
58
58
  return r > -1 ? r : R(t, m);
59
- }, T = (t) => t.split("").reverse().join(""), R = (t, n) => t.length - T(t).search(n), O = (t) => t.split(t[t.search(m)])[0], P = (t) => {
60
- const n = T(t);
61
- return T(n.split(n[n.search(m)])[0]);
62
- }, $ = (t, n) => t.search(n), J = (t, n) => {
59
+ }, G = (t) => t.split("").reverse().join(""), R = (t, n) => t.length - G(t).search(n), O = (t) => t.split(t[t.search(m)])[0], P = (t) => {
60
+ const n = G(t);
61
+ return G(n.split(n[n.search(m)])[0]);
62
+ }, T = (t, n) => t.search(n), K = (t, n) => {
63
63
  const r = t.indexOf(n);
64
64
  return r > -1 ? t.length - r - 1 : 0;
65
- }, K = (t, n, r, e, u) => {
65
+ }, Q = (t, n, r, e, u) => {
66
66
  const o = t.replace(u, "")[0] === "0", a = n.replace(u, "")[0] === "0";
67
67
  if (o && !a)
68
68
  return r - 1;
@@ -80,17 +80,17 @@ const Q = 11111111111111e-7, ae = 0.31111111111111117, de = 1, Y = 1, w = 0, m =
80
80
  ...t
81
81
  }, {
82
82
  prevLooseValue: u
83
- } = e, o = r.numberSymbols(), a = Le(n, r), s = String(e.currentLooseValue), i = String(u), l = new RegExp(`[^\\d\\${o.decimal}]`, "g"), I = new RegExp(`[^\\d\\${o.decimal}\\${o.group}]`, "g"), C = new RegExp(`[\\d\\${o.decimal}\\${o.group}]`), x = s.replace(l, ""), h = $(s, m), E = h === -1 ? -1 : R(s, m), oe = s.indexOf(o.decimal), G = (s.substring(0, h) + s.substring(h, E).replace(I, "") + s.substring(E, s.length)).split("").filter((V) => a.indexOf(V) !== -1 || V.search(C) !== -1).join(""), U = r.formatNumber(ae, n).replace(l, ""), j = U.indexOf(o.decimal), N = j > -1 ? U.length - j - 1 : 0, v = r.formatNumber(de, n).replace(l, ""), X = v.indexOf(o.decimal), D = X > -1 ? v.length - X - 1 : 0, {
83
+ } = e, o = r.numberSymbols(), a = Le(n, r), s = String(e.currentLooseValue), i = String(u), l = new RegExp(`[^\\d\\${o.decimal}]`, "g"), I = new RegExp(`[^\\d\\${o.decimal}\\${o.group}]`, "g"), C = new RegExp(`[\\d\\${o.decimal}\\${o.group}]`), x = s.replace(l, ""), h = T(s, m), E = h === -1 ? -1 : R(s, m), oe = s.indexOf(o.decimal), U = (s.substring(0, h) + s.substring(h, E).replace(I, "") + s.substring(E, s.length)).split("").filter((V) => a.indexOf(V) !== -1 || V.search(C) !== -1).join(""), j = r.formatNumber(ae, n).replace(l, ""), v = j.indexOf(o.decimal), N = v > -1 ? j.length - v - 1 : 0, X = r.formatNumber(de, n).replace(l, ""), Z = X.indexOf(o.decimal), D = Z > -1 ? X.length - Z - 1 : 0, {
84
84
  positiveInfo: se,
85
85
  negativeInfo: ue,
86
86
  zeroInfo: ce,
87
87
  oneInfo: ie
88
- } = he(n, r), g = [se, ue, ce, ie], le = g.findIndex((V) => V.findIndex((L) => !!L) !== -1) !== 1, M = s.length > 0 && s.length < i.length, Z = typeof n == "string" && n[0] === "p" && s && s.indexOf(o.percentSign) === -1;
88
+ } = he(n, r), g = [se, ue, ce, ie], le = g.findIndex((V) => V.findIndex((L) => !!L) !== -1) !== 1, y = s.length > 0 && s.length < i.length, S = typeof n == "string" && n[0] === "p" && s && s.indexOf(o.percentSign) === -1;
89
89
  if (!e.isPaste) {
90
90
  if (s === "")
91
91
  return e.eventValue = null, e.currentLooseValue = "", e;
92
92
  if (e.currentLooseValue === o.minusSign && r.formatNumber(-0, n) !== i)
93
- return e.eventValue = -0, e.currentLooseValue = p(e.eventValue, n, r), b(e, B(e.currentLooseValue, o), e.currentLooseValue, g), e;
93
+ return e.eventValue = -0, e.currentLooseValue = p(e.eventValue, n, r), b(e, $(e.currentLooseValue, o), e.currentLooseValue, g), e;
94
94
  if (e.currentLooseValue === o.decimal) {
95
95
  e.eventValue = 0;
96
96
  const f = p(e.eventValue, n, r);
@@ -99,66 +99,66 @@ const Q = 11111111111111e-7, ae = 0.31111111111111117, de = 1, Y = 1, w = 0, m =
99
99
  e.currentLooseValue = f.substring(0, c) + o.decimal + f.substring(c);
100
100
  } else
101
101
  e.currentLooseValue = f;
102
- return b(e, B(e.currentLooseValue, o) + 1, e.currentLooseValue, g), e;
102
+ return b(e, $(e.currentLooseValue, o) + 1, e.currentLooseValue, g), e;
103
103
  }
104
104
  if (pe(e, o)) {
105
105
  const f = r.parseNumber(u, n);
106
106
  e.eventValue = -(f !== null ? f : 0), e.currentLooseValue = p(e.eventValue, n, r);
107
- const c = $(e.currentLooseValue, m), d = $(i, m);
107
+ const c = T(e.currentLooseValue, m), d = T(i, m);
108
108
  return b(e, e.selectionEnd - 1 + (c - d), e.currentLooseValue, g), e;
109
109
  }
110
110
  if (xe(e, o))
111
111
  return e.eventValue = r.parseNumber(e.currentLooseValue, n), b(e, e.selectionStart, e.currentLooseValue, g), e;
112
112
  if (be(e, o))
113
- return A(e, n, g, r), e;
114
- if (Z)
113
+ return _(e, n, g, r), e;
114
+ if (S)
115
115
  return e.eventValue = r.parseNumber(s, n) / 100, e.currentLooseValue = p(e.eventValue, n, r), e;
116
116
  if (String(e.currentLooseValue).replace(/[^\d]/g, "").length > ee || x !== s && s && le && g.findIndex(([c, d]) => {
117
- const F = s.indexOf(c), z = s.indexOf(d), S = F === 0, W = z === s.length - d.length, k = F + c.length !== h && h !== -1 && s[F + c.length] !== o.decimal, q = z !== E && E !== -1 && s[z - 1] !== o.decimal;
118
- return c && d ? k || q ? !1 : S && W : c ? k ? !1 : S : d ? q ? !1 : W : !1;
117
+ const z = s.indexOf(c), A = s.indexOf(d), W = z === 0, k = A === s.length - d.length, q = z + c.length !== h && h !== -1 && s[z + c.length] !== o.decimal, H = A !== E && E !== -1 && s[A - 1] !== o.decimal;
118
+ return c && d ? q || H ? !1 : W && k : c ? q ? !1 : W : d ? H ? !1 : k : !1;
119
119
  }) === -1)
120
- return A(e, n, g, r), e;
120
+ return _(e, n, g, r), e;
121
121
  if (x[x.length - 1] === o.decimal && N > 0)
122
- return e.eventValue = r.parseNumber(s, n), e.currentLooseValue = G, e;
123
- if (e.currentLooseValue && u && (a + o.decimal + o.group).split("").findIndex((c) => s.split("").filter((d) => d === c).length < i.split("").filter((d) => d === c).length && s.length + 1 === i.length ? !(c === o.decimal && J(i.replace(l, ""), o.decimal) === 0) : !1) > -1)
122
+ return e.eventValue = r.parseNumber(s, n), e.currentLooseValue = U, e;
123
+ if (e.currentLooseValue && u && (a + o.decimal + o.group).split("").findIndex((c) => s.split("").filter((d) => d === c).length < i.split("").filter((d) => d === c).length && s.length + 1 === i.length ? !(c === o.decimal && K(i.replace(l, ""), o.decimal) === 0) : !1) > -1)
124
124
  return e.eventValue = r.parseNumber(t.prevLooseValue, n), e.currentLooseValue = t.prevLooseValue, e;
125
- const L = J(x, o.decimal), y = x[x.length - 1] === "0";
126
- if (M && y && L < D)
125
+ const L = K(x, o.decimal), F = x[x.length - 1] === "0";
126
+ if (y && F && L < D)
127
127
  return e.eventValue = r.parseNumber(e.currentLooseValue, n), e.currentLooseValue = p(e.eventValue, n, r), e;
128
128
  if (L > 0) {
129
129
  const f = s.substring(0, oe);
130
- if (y && (!f || i.indexOf(f) !== 0)) {
130
+ if (F && (!f || i.indexOf(f) !== 0)) {
131
131
  e.eventValue = r.parseNumber(e.currentLooseValue, n);
132
132
  const c = p(e.eventValue, n, r);
133
- return b(e, K(s, c, e.selectionEnd, M, l), c, g), e.currentLooseValue = c, e;
133
+ return b(e, Q(s, c, e.selectionEnd, y, l), c, g), e.currentLooseValue = c, e;
134
134
  }
135
135
  if (L > N) {
136
136
  const c = s.indexOf(o.decimal), d = s.substring(0, c) + s.substring(c, c + 1 + N) + s.substring(E, String(e.currentLooseValue).length);
137
137
  return e.eventValue = r.parseNumber(d, n), e.currentLooseValue = d, b(e, e.selectionStart, d, g), e;
138
138
  }
139
- if (D !== N && L <= N && y)
140
- return e.eventValue = r.parseNumber(e.currentLooseValue, n), e.currentLooseValue = G, e;
139
+ if (D !== N && L <= N && F)
140
+ return e.eventValue = r.parseNumber(e.currentLooseValue, n), e.currentLooseValue = U, e;
141
141
  if (L < D)
142
142
  return e.eventValue = r.parseNumber(e.currentLooseValue, n), e.currentLooseValue = p(e.eventValue, n, r), e;
143
143
  }
144
144
  }
145
- if (e.eventValue = r.parseNumber(e.currentLooseValue, n), Z && (e.eventValue = e.eventValue / 100), typeof e.eventValue == "number") {
145
+ if (e.eventValue = r.parseNumber(e.currentLooseValue, n), S && (e.eventValue = e.eventValue / 100), typeof e.eventValue == "number") {
146
146
  const V = p(e.eventValue, n, r);
147
- s.length === 1 ? b(e, B(V, o), V, g) : b(e, K(s, V, e.selectionEnd, M, l), V, g), e.currentLooseValue = V;
147
+ s.length === 1 ? b(e, $(V, o), V, g) : b(e, Q(s, V, e.selectionEnd, y, l), V, g), e.currentLooseValue = V;
148
148
  } else
149
149
  e.currentLooseValue = p(r.parseNumber(x), n, r);
150
150
  return e;
151
151
  };
152
152
  export {
153
- K as changeBasedSelection,
153
+ Q as changeBasedSelection,
154
154
  Ce as decreaseValue,
155
155
  p as formatValue,
156
- H as fractionLength,
157
- J as getDecimalCount,
158
- $ as getFirstNumberIndex,
156
+ J as fractionLength,
157
+ K as getDecimalCount,
158
+ T as getFirstNumberIndex,
159
159
  he as getFormatPrefixSufix,
160
160
  Le as getFormatSymbols,
161
- B as getInitialPosition,
161
+ $ as getInitialPosition,
162
162
  R as getLastNumberIndex,
163
163
  fe as getMaxCursorPosition,
164
164
  me as getMinCursorPosition,
@@ -172,9 +172,9 @@ export {
172
172
  ge as limitPrecision,
173
173
  Ve as rangeSelection,
174
174
  re as rangeValue,
175
- T as reverseString,
175
+ G as reverseString,
176
176
  Ee as sanitizeNumber,
177
- A as setInvalid,
177
+ _ as setInvalid,
178
178
  b as setSelection,
179
179
  te as toFixedPrecision
180
180
  };
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-inputs",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1763478516,version:"7.0.2",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-inputs",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1766482953,version:"7.1.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "Kendo UI for Vue",
11
11
  productCode: "KENDOUIVUE",
12
12
  productCodes: ["KENDOUIVUE"],
13
- publishDate: 1763478516,
14
- version: "7.0.2",
13
+ publishDate: 1766482953,
14
+ version: "7.1.0-develop.1",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
16
16
  };
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-inputs",
3
- "version": "7.0.2",
3
+ "version": "7.1.0-develop.1",
4
4
  "description": "TODO",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -20,13 +20,13 @@
20
20
  "peerDependencies": {
21
21
  "@progress/kendo-drawing": "^1.21.1",
22
22
  "@progress/kendo-licensing": "^1.7.2",
23
- "@progress/kendo-vue-animation": "7.0.2",
24
- "@progress/kendo-vue-buttons": "7.0.2",
25
- "@progress/kendo-vue-common": "7.0.2",
26
- "@progress/kendo-vue-dialogs": "7.0.2",
27
- "@progress/kendo-vue-intl": "7.0.2",
28
- "@progress/kendo-vue-labels": "7.0.2",
29
- "@progress/kendo-vue-popup": "7.0.2",
23
+ "@progress/kendo-vue-animation": "7.1.0-develop.1",
24
+ "@progress/kendo-vue-buttons": "7.1.0-develop.1",
25
+ "@progress/kendo-vue-common": "7.1.0-develop.1",
26
+ "@progress/kendo-vue-dialogs": "7.1.0-develop.1",
27
+ "@progress/kendo-vue-intl": "7.1.0-develop.1",
28
+ "@progress/kendo-vue-labels": "7.1.0-develop.1",
29
+ "@progress/kendo-vue-popup": "7.1.0-develop.1",
30
30
  "@progress/kendo-svg-icons": "^4.4.0",
31
31
  "vue": "^3.0.2"
32
32
  },
@@ -49,7 +49,7 @@
49
49
  "package": {
50
50
  "productName": "Kendo UI for Vue",
51
51
  "productCode": "KENDOUIVUE",
52
- "publishDate": 1763478516,
52
+ "publishDate": 1766482953,
53
53
  "licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
54
54
  }
55
55
  },