UNPKG

@progress/kendo-vue-pdf

Version:
26 lines (25 loc) 1.01 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { GridQuery as d } from "../common/table-query.mjs"; import { createTable as f, wrapTable as h } from "../common/utils.mjs"; const y = (l) => { const t = new d(l), r = t.content(); let c, e = t.header(); if (e.children.length > 1 && e.removeChild(e.children[1]), e.children[0].childNodes.forEach(function(o) { if (o.style) return o.style.top = 0; }), r) { const o = [r.querySelector("colgroup")], s = [e], i = [r.querySelector("tbody")], n = t.footer(), u = n ? [n.querySelector("tfoot")] : []; c = f(o, s, i, u); } else c = h(t.table().cloneNode(!0)); return c; }; export { y as exportElement };