UNPKG

@progress/kendo-vue-pdf

Version:
9 lines (8 loc) 1.67 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"),s=require("../savePDF.js"),a=require("./provideSaveTreeListPDF.js"),n=require("@progress/kendo-vue-common"),p=o.defineComponent({name:"treelist-pdf-export",props:{author:String,avoidLinks:[Boolean,String],forcePageBreak:String,keepTogether:String,creator:String,date:Date,imageResolution:Number,fileName:String,forceProxy:Boolean,keywords:String,landscape:Boolean,margin:[String,Object],pageTemplate:[Object,Function],paperSize:[String,Object],repeatHeaders:Boolean,scale:Number,proxyData:Object,proxyURL:String,proxyTarget:String,producer:String,subject:String,title:String},created(){this.saveTreeListPDF=a.provideSaveTreeListPDF(this.getSavePDF())},methods:{save(t,i){const r=n.getDefaultSlots(this).filter(e=>e&&e.tag&&e.tag.toLowerCase().indexOf("treelist")!==-1||e.componentOptions&&e.componentOptions.tag&&e.componentOptions.tag.toLowerCase().indexOf("treelist")!==-1||e.type&&e.type.name&&e.type.name.toLowerCase().indexOf("treelist")!==-1);r.length&&(this.treeListComponent=r[0],this.saveTreeListPDF(this.treeListComponent,this.$props,i,t,!0))},getSavePDF(){return s.savePDF}},render(){const t=n.getDefaultSlots(this);return o.createVNode("div",null,[t])}});exports.TreeListPDFExport=p;