@progress/kendo-vue-dateinputs
Version:
9 lines (8 loc) • 1.22 kB
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 e=require("../../utils.js"),d=require("@progress/kendo-vue-common");class h{constructor(){this.didCalculate=!1}ensureHeights(){this.timeListHeight===void 0&&this.calculateHeights()}calculateHeights(i){if(!d.canUseDOM)return;const t=e.domContainerFactory("div"),n=e.domContainerFactory("ul"),c=e.domContainerFactory("li"),l=()=>c("<span>02</span>","k-item"),a=()=>n([l()],"k-reset"),u=()=>t([a()],"k-time-container k-content k-scrollable"),m=t([t([u()],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}),s=i&&i.querySelector(".k-time-container"),o=s||document.body,r=o.appendChild(m);this.timeListHeight=s.offsetHeight,this.itemHeight=r.querySelector("li").offsetHeight,o.removeChild(r),this.didCalculate=!0}}exports.DOMService=h;