@progress/kendo-vue-pdf
Version:
9 lines (8 loc) • 956 B
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 a=require("../common/table-query.js"),l=require("../common/utils.js"),y=s=>{const t=new a.GridQuery(s),r=t.content();let n,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")],u=[e],i=[r.querySelector("tbody")],c=t.footer(),d=c?[c.querySelector("tfoot")]:[];n=l.createTable(o,u,i,d)}else n=l.wrapTable(t.table().cloneNode(!0));return n};exports.exportElement=y;