@progress/kendo-vue-inputs
Version:
9 lines (8 loc) • 1.54 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"),s=require("@progress/kendo-vue-popup"),e=require("@progress/kendo-vue-common");function l(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Object]"&&!t.isVNode(o)}const a="bottom",c="top",h=t.defineComponent({name:"KendoPicker",props:{popupSettings:Object,dir:String,open:Boolean,popupAnchor:String,id:String,onOpen:Function},computed:{horizontalAlign(){return this.$props.dir==="rtl"?"right":"left"},anchorAlign(){return{horizontal:this.horizontalAlign,vertical:a}},popupAlign(){return{horizontal:this.horizontalAlign,vertical:c}}},render(){const o=e.getDefaultSlots(this),{popupClass:n,appendTo:i,animate:p,className:r}=this.$props.popupSettings;return t.createVNode(s.Popup,{id:this.id,anchor:this.$props.popupAnchor,anchorAlign:this.anchorAlign,popupAlign:this.popupAlign,show:this.$props.open,onOpen:this.handleOpen,onClose:this.handleClose,appendTo:i,animate:p,popupClass:n,class:e.classNames("k-reset",r)},l(o)?o:{default:()=>[o]})},methods:{handleOpen(){this.$emit("open")},handleClose(){this.$emit("close")}}});exports.Picker=h;