@progress/kendo-vue-data-tools
Version:
9 lines (8 loc) • 1.11 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
;Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),n=require("@progress/kendo-vue-dropdowns"),s=require("../filterCommon.js"),a=t.defineComponent({props:{filterType:String,operator:String,operators:Array},emits:{change:null},methods:{triggerChange(e){this.$emit("change",e)},operatorChange(e,r){const o=s.cellOperatorChange(e.value.operator,r,this.$props.value);this.triggerChange(o)}},render(){const e=this.$props.operators.find(r=>r.operator===this.$props.operator)||null;return this.$props.filterType!=="boolean"?t.createVNode(n.DropDownList,{onChange:this.operatorChange,value:e,"data-items":this.$props.operators,textField:"text"},null):null}});exports.ColumnMenuFilterOperators=a;