UNPKG

@progress/kendo-vue-common

Version:

Kendo UI for Vue Common Utilities package

9 lines (8 loc) 1.24 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 o=require("vue"),r=require("./constants.js"),l=o.defineComponent({name:"KendoFontIcon",emits:{click:null},props:{name:String,themeColor:{type:String},size:{type:String},flip:{type:String},id:String,ariaLabel:String,title:String,tabIndex:Number},computed:{fontClassNames(){const{name:t,flip:e,size:n,themeColor:i}=this.$props;return{"k-icon":!0,"k-font-icon":!0,["k-i-"+t]:t,["k-color-"+i]:i,"k-flip-h":e==="horizontal"||e==="both","k-flip-v":e==="vertical"||e==="both",[r.SIZE_CLASSES[n]]:n}}},render(){const{id:t,title:e,tabIndex:n,ariaLabel:i}=this.$props;return o.createVNode("span",{class:this.fontClassNames,id:t,title:e,"aria-label":i,tabindex:n,role:"presentation",onClick:this.handleClick},null)},methods:{handleClick(t){this.$emit("click",t)}}});exports.FontIcon=l;