| 12345678910 |
- /*
- @license
- dhtmlxGantt v.6.0.2 Professional
- This software is covered by DHTMLX Commercial License. Usage without proper license is prohibited.
- (c) Dinamenta, UAB.
- */!function(e){var t={};function n(l){if(t[l])return t[l].exports;var o=t[l]={i:l,l:!1,exports:{}};return e[l].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,l){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(n.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(l,o,function(t){return e[t]}.bind(null,o));return l},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/codebase/",n(n.s=215)}({215:function(e,t){!function(){gantt._fs_change=[];var e=gantt.getState;gantt.getState=function(){var t=e.apply(this,arguments);return t.fullscreen=!!this._expanded,t},gantt._onFullScreenChange=function(){if(gantt.$container){gantt.getState().fullscreen&&(gantt._isFullScreenActive()||gantt.collapse());var e=gantt._fs_change.length?gantt._fs_change.pop():null;if(gantt._expanded=!gantt._expanded,e)if(e.condition())e.callback();else{var t=setInterval(function(){e.condition()&&(clearInterval(t),t=null,e.callback())},10);setTimeout(function(){t&&(clearInterval(t),e.callback())},100)}else gantt.render()}},gantt._isFullScreenActive=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},gantt._isFullScreenAvailable=function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled},gantt.event(document,"webkitfullscreenchange",gantt._onFullScreenChange),gantt.event(document,"mozfullscreenchange",gantt._onFullScreenChange),gantt.event(document,"MSFullscreenChange",gantt._onFullScreenChange),gantt.event(document,"fullscreenChange",gantt._onFullScreenChange),gantt.event(document,"fullscreenchange",gantt._onFullScreenChange),gantt.expand=function(){if(gantt.callEvent("onBeforeExpand",[])){gantt._toggleFullScreen(!0);var e=gantt.$root;do{e._position=e.style.position||"",e.style.position="static"}while((e=e.parentNode)&&e.style);(e=gantt.$root).style.position="absolute",e._width=e.style.width,e._height=e.style.height,e.style.width=e.style.height="100%",e.style.top=e.style.left="0px";var t=document.body;t.scrollTop=0,(t=t.parentNode)&&(t.scrollTop=0),document.body._overflow=document.body.style.overflow||"",document.body.style.overflow="hidden",document.body._width=document.body.style.width,document.body._height=document.body.style.height;var n=function(){document.documentElement.msRequestFullscreen&&gantt.$root&&(gantt.$root.style.width=document.body.style.width=window.outerWidth+"px",gantt.$root.style.height=document.body.style.height=window.outerHeight+"px"),gantt.render(),gantt.callEvent("onExpand",[])};if(gantt._isFullScreenAvailable()){var l=window.outerHeight,o=window.outerWidth;gantt._fs_change.push({condition:function(){return l<window.outerHeight&&o<=window.outerWidth},callback:n})}else gantt._expanded=!gantt._expanded,n()}},gantt.collapse=function(){if(gantt.callEvent("onBeforeCollapse",[])){var e=gantt.$root;do{e.style.position=e._position}while((e=e.parentNode)&&e.style);(e=gantt.$root).style.width=e._width,e.style.height=e._height,document.body.style.overflow=document.body._overflow,document.body.style.width=document.body._width,document.body.style.height=document.body._height,gantt._toggleFullScreen(!1);var t=function(){gantt.render(),gantt.callEvent("onCollapse",[])};if(gantt._isFullScreenAvailable()){var n=window.outerHeight,l=window.outerWidth;gantt._fs_change.push({condition:function(){return n>window.outerHeight&&l>=window.outerWidth},callback:t})}else gantt._expanded=!gantt._expanded,t()}},gantt._toggleFullScreen=function(e){!e&&(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)?document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen():document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.msRequestFullscreen?document.documentElement.msRequestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}}()}});
- //# sourceMappingURL=dhtmlxgantt_fullscreen.js.map
|