UNPKG

@progress/kendo-react-dialogs

Version:

React Dialogs provide modal and non-modal windows for showing additional information to the user. KendoReact Dialogs package

9 lines (8 loc) 825 B
/** * @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 l=require("./constants.js"),r=(s,t,o)=>{let e=s;if(t&&t.defaultView){const i=t.querySelectorAll(l.DIALOGS_SELECTOR);let a=!1;return i.forEach(d=>{const n=t.defaultView.getComputedStyle(d,null);if(d.getAttribute(l.DATA_DIALOGS_ID)!==o&&n.zIndex!==null){const I=parseInt(n.zIndex,10);I>=e&&(e=I,a=!0)}}),a?e+l.ZINDEX_DIALOGS_STEP:e}return e};exports.getMaxZIndex=r;