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

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 e={name:"@progress/kendo-vue-inputs",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1764664423,version:"7.0.3-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;
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: 1766490871,version:"7.1.0-develop.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;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "Kendo UI for Vue",
11
11
  productCode: "KENDOUIVUE",
12
12
  productCodes: ["KENDOUIVUE"],
13
- publishDate: 1764664423,
14
- version: "7.0.3-develop.1",
13
+ publishDate: 1766490871,
14
+ version: "7.1.0-develop.2",
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.3-develop.1",
3
+ "version": "7.1.0-develop.2",
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.3-develop.1",
24
- "@progress/kendo-vue-buttons": "7.0.3-develop.1",
25
- "@progress/kendo-vue-common": "7.0.3-develop.1",
26
- "@progress/kendo-vue-dialogs": "7.0.3-develop.1",
27
- "@progress/kendo-vue-intl": "7.0.3-develop.1",
28
- "@progress/kendo-vue-labels": "7.0.3-develop.1",
29
- "@progress/kendo-vue-popup": "7.0.3-develop.1",
23
+ "@progress/kendo-vue-animation": "7.1.0-develop.2",
24
+ "@progress/kendo-vue-buttons": "7.1.0-develop.2",
25
+ "@progress/kendo-vue-common": "7.1.0-develop.2",
26
+ "@progress/kendo-vue-dialogs": "7.1.0-develop.2",
27
+ "@progress/kendo-vue-intl": "7.1.0-develop.2",
28
+ "@progress/kendo-vue-labels": "7.1.0-develop.2",
29
+ "@progress/kendo-vue-popup": "7.1.0-develop.2",
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": 1764664423,
52
+ "publishDate": 1766490871,
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
  },
@@ -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 i=require("vue"),a=require("@progress/kendo-vue-common"),V=require("../package-metadata.js"),k=require("@progress/kendo-vue-labels"),o=require("@progress/kendo-svg-icons");function b(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i.isVNode(t)}const S=i.defineComponent({model:{event:"changemodel"},inheritAttrs:!1,emits:{input:t=>!0,change:t=>!0,changemodel:t=>!0,"update:modelValue":t=>!0,focus:t=>!0,blur:t=>!0,keyup:t=>!0,keydown:t=>!0,keypress:t=>!0},props:{modelValue:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:void 0},defaultValue:{type:[String,Number],default:""},value:{type:[String,Number]},label:{type:String},placeholder:{type:String},required:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:function(t){return[null,"small","medium","large"].includes(t)}},rounded:{type:String,default:"medium",validator:function(t){return[null,"small","medium","large","full"].includes(t)}},fillMode:{type:String,default:"solid",validator:function(t){return[null,"solid","flat","outline"].includes(t)}},dir:{type:String},id:String,valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String},validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:[String,Function],inputSuffix:[String,Function],showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String,tabIndex:Number,role:String,title:String,ariaLabel:String,inputAttributes:Object},data:function(){return{hasMounted:!1,autofill:!1,currentValue:"",valueDuringOnChange:"",focused:!1}},created(){a.validatePackage(V.packageMetadata),this._input=void 0,this._inputId=a.guid(),this.$data.valueDuringOnChange=void 0,this.$data.currentValue=this.$props.defaultValue},mounted(){this._input=this.inputRef,this.wrapper=this.wrapperRef,this.$data.hasMounted=!0,this.setValidity()},updated(){this.setValidity(),this.updateValidClass()},setup(){return{inputRef:i.ref(null)}},render(){const t=!this.$props.validityStyles||this.validity().valid,{label:e,id:n,required:l,iconName:r,showValidationIcon:d,showLoadingIcon:h,showClearButton:c,inputAttributes:f}=this.$props,p=n||this._inputId,m=i.h("input",{...this.$attrs,...f,"aria-label":this.$props.ariaLabel,role:this.$props.role,title:this.$props.title,tabindex:this.$props.tabIndex,placeholder:this.$props.placeholder,id:p,required:l,disabled:this.$props.disabled,value:this.computedValue,class:this.inputInnerClass,ref:u=>{this.inputRef=u},onKeydown:this.handleKeydown,onKeyup:this.handleKeyup,onKeypress:this.handleKeypress,onChange:this.handleChange,onFocus:this.emitFocus,onBlur:this.emitBlur,onInput:this.handleInput,onAnimationstart:this.handleAutoFill,onAnimationend:this.handleAutoFillEnd}),g=a.templateRendering.call(this,this.$props.inputPrefix,a.getListeners.call(this)),v=a.templateRendering.call(this,this.$props.inputSuffix,a.getListeners.call(this)),y=a.getTemplate.call(this,{h:i.h,template:g,additionalProps:{value:this.computedValue,valid:t}}),$=a.getTemplate.call(this,{h:i.h,template:v,additionalProps:{value:this.computedValue,valid:t}}),s=i.createVNode("span",{class:this.inputWrapperClass(),ref:u=>{this.wrapperRef=u}},[r&&i.createVNode(a.Icon,{name:r,class:"k-input-icon"},null),this.$props.inputPrefix&&i.createVNode("span",{class:"k-input-prefix"},[y]),m,this.$props.inputSuffix&&i.createVNode("span",{class:"k-input-suffix"},[$]),d&&t&&i.createVNode(a.Icon,{name:"check",icon:o.checkIcon,class:"k-input-validation-icon"},null),d&&!t&&i.createVNode(a.Icon,{name:"exclamation-circle",icon:o.exclamationCircleIcon,class:"k-input-validation-icon"},null),h&&i.createVNode(a.Icon,{name:"loading",class:"k-input-loading-icon"},null),c&&this.computedValue&&i.createVNode("span",{onClick:this.clearClick,class:"k-clear-value"},[i.createVNode(a.Icon,{name:"x",icon:o.xIcon},null)])]);return e?i.createVNode(k.FloatingLabel,{label:e,editorId:p,editorValue:this.computedValue,editorValid:t,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},b(s)?s:{default:()=>[s]}):s},methods:{updateValidClass(){this.wrapper.classList.toggle("k-invalid",!this.validity().valid)},emitFocus(t){this.$emit("focus",{event:t}),this.$data.focused=!0},emitBlur(t){this.$emit("blur",{event:t}),this.$data.focused=!1},handleKeydown(t){this.$emit("keydown",t)},handleKeyup(t){this.$emit("keyup",t)},handleKeypress(t){this.$emit("keypress",t)},clearClick(t){this.emitUpdate(t,"change","")},focus(){this._input&&this._input.focus()},validity(){const t={badTextBox:this._input?this._input.validity.badTextBox:!1,patternMismatch:this._input?this._input.validity.patternMismatch:!1,rangeOverflow:this._input?this._input.validity.rangeOverflow:!1,rangeUnderflow:this._input?this._input.validity.rangeUnderflow:!1,stepMismatch:this._input?this._input.validity.stepMismatch:!1,tooLong:this._input?this._input.validity.tooLong:!1,tooShort:this._input?this._input.validity.tooShort:!1,typeMismatch:this._input?this._input.validity.typeMismatch:!1,valueMissing:this._input?this._input.validity.valueMissing:!1};return{...t,customError:this.$props.validationMessage!==void 0,valid:this.$props.valid!==void 0?this.$props.valid:this._input?!this.isInvalid(t):!0}},isInvalid(t){let e=!1;for(const n in t)t.hasOwnProperty(n)&&(e=e||t[n]);return e},setValidity(){this._input&&this._input.setCustomValidity&&this._input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"")},handleInput(t){this.emitUpdate(t,"input",t.target.value)},handleChange(t){this.emitUpdate(t,"change",t.target.value)},emitUpdate(t,e,n){this.disabled||(this.$data.currentValue=n,this.$data.valueDuringOnChange=n,this.$nextTick(()=>{this.$emit("changemodel",n),this.$emit("update:modelValue",n),this.$emit(e,{event:t,value:n,component:this,target:t.target,validity:this.validity()}),this.$data.valueDuringOnChange=void 0}))},handleAutoFill(t){if(t.animationName==="autoFillStart"){const e=t.target.parentNode;e&&e.classList.contains("k-empty")&&(this.$data.autofill=!0,e.classList.remove("k-empty"))}},handleAutoFillEnd(t){t.animationName==="autoFillEnd"&&t.target.parentNode&&(this.$data.autofill=!1)},name:function(){return this.$props.name},inputWrapperClass(){const{size:t,fillMode:e,rounded:n}=this.$props,l=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-textbox":!0,"k-input":!0,[`k-input-${a.kendoThemeMaps.sizeMap[t]||t}`]:t,[`k-input-${e}`]:e,[`k-rounded-${a.kendoThemeMaps.roundedMap[n]||n}`]:n,"k-invalid":!l,"k-required":this.required,"k-disabled":this.$props.disabled,[this.wrapperClass]:this.wrapperClass}}},computed:{spanClassNames(){const t=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.$data.focused,"k-empty":!(this.computedValue===0||this.computedValue||this.$props.placeholder||this.$data.autofill),"k-autofill":this.$data.autofill,"k-invalid":!t&&t!==void 0,"k-rtl":this.$props.dir==="rtl"}},inputInnerClass(){return{"k-input-inner":!0,[this.inputClass]:this.inputClass}},computedValue(){return this.$data.valueDuringOnChange!==void 0?this.$data.valueDuringOnChange:this.$props.value!==void 0?this.$props.value:this.$props.modelValue!==void 0?this.$props.modelValue:this.$data.currentValue}}});exports.TextBox=S;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),a=require("@progress/kendo-vue-common"),V=require("../package-metadata.js"),k=require("@progress/kendo-vue-labels"),o=require("@progress/kendo-svg-icons");function b(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!i.isVNode(t)}const x=i.defineComponent({model:{event:"changemodel"},inheritAttrs:!1,emits:{input:t=>!0,change:t=>!0,changemodel:t=>!0,"update:modelValue":t=>!0,focus:t=>!0,blur:t=>!0,keyup:t=>!0,keydown:t=>!0,keypress:t=>!0},props:{modelValue:{type:[String,Number],default:void 0},disabled:{type:Boolean,default:void 0},defaultValue:{type:[String,Number],default:""},value:{type:[String,Number]},label:{type:String},placeholder:{type:String},required:{type:Boolean,default:!1},size:{type:String,default:"medium",validator:function(t){return[null,"small","medium","large"].includes(t)}},rounded:{type:String,default:"medium",validator:function(t){return[null,"small","medium","large","full"].includes(t)}},fillMode:{type:String,default:"solid",validator:function(t){return[null,"solid","flat","outline"].includes(t)}},dir:{type:String},id:String,valid:{type:Boolean,default:void 0},validate:{type:Boolean},validationMessage:{type:String},validityStyles:{type:Boolean,default:!0},iconName:String,inputPrefix:[String,Function],prefix:[String,Function],inputSuffix:[String,Function],suffix:[String,Function],showValidationIcon:Boolean,showLoadingIcon:Boolean,showClearButton:Boolean,inputClass:String,wrapperClass:String,tabIndex:Number,role:String,title:String,ariaLabel:String,inputAttributes:Object},data:function(){return{hasMounted:!1,autofill:!1,currentValue:"",valueDuringOnChange:"",focused:!1}},created(){a.validatePackage(V.packageMetadata),this._input=void 0,this._inputId=a.guid(),this.$data.valueDuringOnChange=void 0,this.$data.currentValue=this.$props.defaultValue},mounted(){this._input=this.inputRef,this.wrapper=this.wrapperRef,this.$data.hasMounted=!0,this.setValidity()},updated(){this.setValidity(),this.updateValidClass()},setup(){return{inputRef:i.ref(null)}},render(){const t=!this.$props.validityStyles||this.validity().valid,{label:e,id:n,required:l,iconName:r,showValidationIcon:d,showLoadingIcon:h,showClearButton:c,inputAttributes:f}=this.$props,p=n||this._inputId,m=i.h("input",{...this.$attrs,...f,"aria-label":this.$props.ariaLabel,role:this.$props.role,title:this.$props.title,tabindex:this.$props.tabIndex,placeholder:this.$props.placeholder,id:p,required:l,disabled:this.$props.disabled,value:this.computedValue,class:this.inputInnerClass,ref:u=>{this.inputRef=u},onKeydown:this.handleKeydown,onKeyup:this.handleKeyup,onKeypress:this.handleKeypress,onChange:this.handleChange,onFocus:this.emitFocus,onBlur:this.emitBlur,onInput:this.handleInput,onAnimationstart:this.handleAutoFill,onAnimationend:this.handleAutoFillEnd}),g=a.templateRendering.call(this,this.$props.prefix||this.$props.inputPrefix,a.getListeners.call(this)),v=a.templateRendering.call(this,this.$props.suffix||this.$props.inputSuffix,a.getListeners.call(this)),y=a.getTemplate.call(this,{h:i.h,template:g,additionalProps:{value:this.computedValue,valid:t}}),$=a.getTemplate.call(this,{h:i.h,template:v,additionalProps:{value:this.computedValue,valid:t}}),s=i.createVNode("span",{class:this.inputWrapperClass(),ref:u=>{this.wrapperRef=u}},[r&&i.createVNode(a.Icon,{name:r,class:"k-input-icon"},null),(this.$props.prefix||this.$props.inputPrefix)&&i.createVNode("span",{class:"k-input-prefix"},[y]),m,(this.$props.suffix||this.$props.inputSuffix)&&i.createVNode("span",{class:"k-input-suffix"},[$]),d&&t&&i.createVNode(a.Icon,{name:"check",icon:o.checkIcon,class:"k-input-validation-icon"},null),d&&!t&&i.createVNode(a.Icon,{name:"exclamation-circle",icon:o.exclamationCircleIcon,class:"k-input-validation-icon"},null),h&&i.createVNode(a.Icon,{name:"loading",class:"k-input-loading-icon"},null),c&&this.computedValue&&i.createVNode("span",{onClick:this.clearClick,class:"k-clear-value"},[i.createVNode(a.Icon,{name:"x",icon:o.xIcon},null)])]);return e?i.createVNode(k.FloatingLabel,{label:e,editorId:p,editorValue:this.computedValue,editorValid:t,editorDisabled:this.$props.disabled,editorPlaceholder:this.$data.focused?this.$props.placeholder:"",dir:this.$props.dir},b(s)?s:{default:()=>[s]}):s},methods:{updateValidClass(){this.wrapper.classList.toggle("k-invalid",!this.validity().valid)},emitFocus(t){this.$emit("focus",{event:t}),this.$data.focused=!0},emitBlur(t){this.$emit("blur",{event:t}),this.$data.focused=!1},handleKeydown(t){this.$emit("keydown",t)},handleKeyup(t){this.$emit("keyup",t)},handleKeypress(t){this.$emit("keypress",t)},clearClick(t){this.emitUpdate(t,"change","")},focus(){this._input&&this._input.focus()},validity(){const t={badTextBox:this._input?this._input.validity.badTextBox:!1,patternMismatch:this._input?this._input.validity.patternMismatch:!1,rangeOverflow:this._input?this._input.validity.rangeOverflow:!1,rangeUnderflow:this._input?this._input.validity.rangeUnderflow:!1,stepMismatch:this._input?this._input.validity.stepMismatch:!1,tooLong:this._input?this._input.validity.tooLong:!1,tooShort:this._input?this._input.validity.tooShort:!1,typeMismatch:this._input?this._input.validity.typeMismatch:!1,valueMissing:this._input?this._input.validity.valueMissing:!1};return{...t,customError:this.$props.validationMessage!==void 0,valid:this.$props.valid!==void 0?this.$props.valid:this._input?!this.isInvalid(t):!0}},isInvalid(t){let e=!1;for(const n in t)t.hasOwnProperty(n)&&(e=e||t[n]);return e},setValidity(){this._input&&this._input.setCustomValidity&&this._input.setCustomValidity(this.validity().valid?"":this.$props.validationMessage||"")},handleInput(t){this.emitUpdate(t,"input",t.target.value)},handleChange(t){this.emitUpdate(t,"change",t.target.value)},emitUpdate(t,e,n){this.disabled||(this.$data.currentValue=n,this.$data.valueDuringOnChange=n,this.$nextTick(()=>{this.$emit("changemodel",n),this.$emit("update:modelValue",n),this.$emit(e,{event:t,value:n,component:this,target:t.target,validity:this.validity()}),this.$data.valueDuringOnChange=void 0}))},handleAutoFill(t){if(t.animationName==="autoFillStart"){const e=t.target.parentNode;e&&e.classList.contains("k-empty")&&(this.$data.autofill=!0,e.classList.remove("k-empty"))}},handleAutoFillEnd(t){t.animationName==="autoFillEnd"&&t.target.parentNode&&(this.$data.autofill=!1)},name:function(){return this.$props.name},inputWrapperClass(){const{size:t,fillMode:e,rounded:n}=this.$props,l=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-textbox":!0,"k-input":!0,[`k-input-${a.kendoThemeMaps.sizeMap[t]||t}`]:t,[`k-input-${e}`]:e,[`k-rounded-${a.kendoThemeMaps.roundedMap[n]||n}`]:n,"k-invalid":!l,"k-required":this.required,"k-disabled":this.$props.disabled,[this.wrapperClass]:this.wrapperClass}}},computed:{spanClassNames(){const t=!this.$data.hasMounted||!this.$props.validityStyles||this.validity().valid;return{"k-floating-label-container":!0,"k-focus":this.$data.focused,"k-empty":!(this.computedValue===0||this.computedValue||this.$props.placeholder||this.$data.autofill),"k-autofill":this.$data.autofill,"k-invalid":!t&&t!==void 0,"k-rtl":this.$props.dir==="rtl"}},inputInnerClass(){return{"k-input-inner":!0,[this.inputClass]:this.inputClass}},computedValue(){return this.$data.valueDuringOnChange!==void 0?this.$data.valueDuringOnChange:this.$props.value!==void 0?this.$props.value:this.$props.modelValue!==void 0?this.$props.modelValue:this.$data.currentValue}}});exports.TextBox=x;
@@ -5,15 +5,15 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as x, h as o, createVNode as a, ref as C, isVNode as _ } from "vue";
9
- import { kendoThemeMaps as h, templateRendering as c, getListeners as f, getTemplate as m, Icon as n, validatePackage as w, guid as I } from "@progress/kendo-vue-common";
8
+ import { defineComponent as V, h as r, createVNode as a, ref as C, isVNode as _ } from "vue";
9
+ import { kendoThemeMaps as h, templateRendering as c, getListeners as f, getTemplate as m, Icon as s, validatePackage as w, guid as I } from "@progress/kendo-vue-common";
10
10
  import { packageMetadata as M } from "../package-metadata.mjs";
11
11
  import { FloatingLabel as B } from "@progress/kendo-vue-labels";
12
- import { checkIcon as N, exclamationCircleIcon as F, xIcon as O } from "@progress/kendo-svg-icons";
12
+ import { checkIcon as F, exclamationCircleIcon as N, xIcon as O } from "@progress/kendo-svg-icons";
13
13
  function L(t) {
14
14
  return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !_(t);
15
15
  }
16
- const R = /* @__PURE__ */ x({
16
+ const R = /* @__PURE__ */ V({
17
17
  model: {
18
18
  event: "changemodel"
19
19
  },
@@ -96,7 +96,9 @@ const R = /* @__PURE__ */ x({
96
96
  },
97
97
  iconName: String,
98
98
  inputPrefix: [String, Function],
99
+ prefix: [String, Function],
99
100
  inputSuffix: [String, Function],
101
+ suffix: [String, Function],
100
102
  showValidationIcon: Boolean,
101
103
  showLoadingIcon: Boolean,
102
104
  showClearButton: Boolean,
@@ -136,12 +138,12 @@ const R = /* @__PURE__ */ x({
136
138
  label: i,
137
139
  id: e,
138
140
  required: l,
139
- iconName: r,
141
+ iconName: o,
140
142
  showValidationIcon: d,
141
143
  showLoadingIcon: g,
142
144
  showClearButton: v,
143
145
  inputAttributes: y
144
- } = this.$props, p = e || this._inputId, $ = o("input", {
146
+ } = this.$props, p = e || this._inputId, $ = r("input", {
145
147
  ...this.$attrs,
146
148
  ...y,
147
149
  "aria-label": this.$props.ariaLabel,
@@ -166,47 +168,47 @@ const R = /* @__PURE__ */ x({
166
168
  onInput: this.handleInput,
167
169
  onAnimationstart: this.handleAutoFill,
168
170
  onAnimationend: this.handleAutoFillEnd
169
- }), k = c.call(this, this.$props.inputPrefix, f.call(this)), b = c.call(this, this.$props.inputSuffix, f.call(this)), V = m.call(this, {
170
- h: o,
171
+ }), k = c.call(this, this.$props.prefix || this.$props.inputPrefix, f.call(this)), x = c.call(this, this.$props.suffix || this.$props.inputSuffix, f.call(this)), b = m.call(this, {
172
+ h: r,
171
173
  template: k,
172
174
  additionalProps: {
173
175
  value: this.computedValue,
174
176
  valid: t
175
177
  }
176
178
  }), S = m.call(this, {
177
- h: o,
178
- template: b,
179
+ h: r,
180
+ template: x,
179
181
  additionalProps: {
180
182
  value: this.computedValue,
181
183
  valid: t
182
184
  }
183
- }), s = a("span", {
185
+ }), n = a("span", {
184
186
  class: this.inputWrapperClass(),
185
187
  ref: (u) => {
186
188
  this.wrapperRef = u;
187
189
  }
188
- }, [r && a(n, {
189
- name: r,
190
+ }, [o && a(s, {
191
+ name: o,
190
192
  class: "k-input-icon"
191
- }, null), this.$props.inputPrefix && a("span", {
193
+ }, null), (this.$props.prefix || this.$props.inputPrefix) && a("span", {
192
194
  class: "k-input-prefix"
193
- }, [V]), $, this.$props.inputSuffix && a("span", {
195
+ }, [b]), $, (this.$props.suffix || this.$props.inputSuffix) && a("span", {
194
196
  class: "k-input-suffix"
195
- }, [S]), d && t && a(n, {
197
+ }, [S]), d && t && a(s, {
196
198
  name: "check",
197
- icon: N,
199
+ icon: F,
198
200
  class: "k-input-validation-icon"
199
- }, null), d && !t && a(n, {
201
+ }, null), d && !t && a(s, {
200
202
  name: "exclamation-circle",
201
- icon: F,
203
+ icon: N,
202
204
  class: "k-input-validation-icon"
203
- }, null), g && a(n, {
205
+ }, null), g && a(s, {
204
206
  name: "loading",
205
207
  class: "k-input-loading-icon"
206
208
  }, null), v && this.computedValue && a("span", {
207
209
  onClick: this.clearClick,
208
210
  class: "k-clear-value"
209
- }, [a(n, {
211
+ }, [a(s, {
210
212
  name: "x",
211
213
  icon: O
212
214
  }, null)])]);
@@ -218,9 +220,9 @@ const R = /* @__PURE__ */ x({
218
220
  editorDisabled: this.$props.disabled,
219
221
  editorPlaceholder: this.$data.focused ? this.$props.placeholder : "",
220
222
  dir: this.$props.dir
221
- }, L(s) ? s : {
222
- default: () => [s]
223
- }) : s;
223
+ }, L(n) ? n : {
224
+ default: () => [n]
225
+ }) : n;
224
226
  },
225
227
  methods: {
226
228
  updateValidClass() {