@progress/kendo-vue-pdf
Version:
61 lines (60 loc) • 2.01 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { defineComponent as p, createVNode as g } from "vue";
import { savePDF as l } from "../savePDF.mjs";
import { provideSaveTreeListPDF as S } from "./provideSaveTreeListPDF.mjs";
import { getDefaultSlots as a } from "@progress/kendo-vue-common";
const L = /* @__PURE__ */ p({
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 = S(this.getSavePDF());
},
methods: {
save(t, s) {
const r = a(this).filter((e) => {
var o, i, n;
return e.tag && e.tag.toLowerCase().indexOf("treelist") !== -1 || e.componentOptions && ((o = e.componentOptions.tag) == null ? void 0 : o.toLowerCase().indexOf("treelist")) !== -1 || ((n = (i = e.type) == null ? void 0 : i.name) == null ? void 0 : n.toLowerCase().indexOf("treelist")) !== -1;
});
r.length && (this.treeListComponent = r[0], this.saveTreeListPDF(this.treeListComponent, this.$props, s, t, !0));
},
getSavePDF() {
return l;
}
},
render() {
const t = a(this);
return g("div", null, [t]);
}
});
export {
L as TreeListPDFExport
};