UNPKG

@progress/kendo-vue-data-tools

Version:
9 lines (8 loc) 1.17 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("vue"),n=require("@progress/kendo-vue-inputs"),o=require("@progress/kendo-vue-intl"),t=require("../../messages/main.js"),a=r.defineComponent({name:"kendoTextFilter",props:{filter:{type:Object,required:!0},ariaLabel:String,onFilterchange:Function},inject:{kendoLocalizationService:{default:null}},render(){const e=o.provideLocalizationService(this),{ariaLabel:i=e.toLanguageString(t.filterTextFilterAriaLabel,t.messages[t.filterTextFilterAriaLabel])}=this.$props;return r.createVNode(n.TextBox,{value:this.$props.filter.value||"",onInput:this.onChange,ariaLabel:i},null)},methods:{onChange(e){this.$emit("filterchange",{nextFilter:{...this.$props.filter,value:e.value}})}}});exports.TextFilter=a;