@progress/kendo-vue-inputs
Version:
9 lines (8 loc) • 2.06 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
*-------------------------------------------------------------------------------------------
*/
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),C=require("@progress/kendo-vue-layout"),l=require("@progress/kendo-vue-buttons"),h=require("@progress/kendo-svg-icons");function a(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!e.isVNode(t)}const m=e.defineComponent({name:"KendoActionSheet",props:{expand:Boolean,animationStyles:Object,classNameAdaptive:String,title:String,componentToRender:Object,applyText:String,cancelText:String},emits:["actionSheetClose","cancelBtnClick","applyBtnClick"],methods:{onClose(){this.$emit("actionSheetClose")},onCancel(){this.$emit("cancelBtnClick")},onApply(t){this.$emit("applyBtnClick",t)}},render(){const{title:t,componentToRender:i,expand:c,applyText:o,cancelText:n,animationStyles:r,classNameAdaptive:s}=this.$props,d=function(){return e.h(e.createVNode(l.Button,{tabIndex:0,size:"large","aria-label":"Cancel","aria-disabled":"false",type:"button",fillMode:"flat",icon:"x",svgIcon:h.xIcon,onClick:this.onClose},null))}.call(this),p=()=>e.h(e.createVNode(e.Fragment,null,[e.createVNode(l.Button,{size:"large",class:"k-coloreditor-cancel","aria-label":n,onClick:this.onCancel},a(n)?n:{default:()=>[n]}),e.createVNode(l.Button,{themeColor:"primary",size:"large",class:"k-coloreditor-apply","aria-label":o,onClick:this.onApply},a(o)?o:{default:()=>[o]})])),u=()=>e.h(i);return e.createVNode(C.ActionSheet,{onClose:this.onClose,animationStyles:r,className:s,contentClassName:"!k-overflow-hidden",footerClassName:"k-actions k-actions-stretched k-actions-horizontal",title:t,content:u,footer:p,expand:c,actions:d},null)}});exports.ColorsAdaptiveMode=m;