UNPKG

@progress/kendo-vue-pdf

Version:
9 lines (8 loc) 1.23 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 e=require("../common/dom-queries.js"),s="k-grid-header",r="k-grid-footer",a="TABLE",o=e.matchesNodeName(a),i=n=>n?"locked":"wrap";class l{constructor(t){this.element=t,this.list=e.findElement(t,e.matchesClasses("k-grid-container"))}content(t){return e.findElement(this.list,e.matchesClasses(`k-grid-content${t?"-locked":""}`))}header(t){return this.headerWrap=this.headerWrap||e.findElement(this.element,e.matchesClasses(s)),e.findElement(this.headerWrap,e.matchesClasses(`${s}-${i(t)}`))}footer(t){return this.footerWrap=this.footerWrap||e.findElement(this.element,e.matchesClasses(r)),e.findElement(this.footerWrap,e.matchesClasses(`${r}-${i(t)}`))}table(){return e.findElement(this.element,o)}}exports.FOOTER_CLASS=r;exports.GridQuery=l;exports.HEADER_CLASS=s;