Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ax5ui-docker

Package Overview
Dependencies
Maintainers
1
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ax5ui-docker - npm Package Compare versions

Comparing version 1.3.110 to 1.3.111

2

bower.json
{
"name": "ax5ui-docker",
"version": "1.3.110",
"version": "1.3.111",
"description": "A dashboard plugin that works with Bootstrap & jQuery",

@@ -5,0 +5,0 @@ "authors": [

@@ -1,1 +0,1 @@

"use strict";!function(){var e=ax5.ui,a=ax5.util,n=void 0;e.addClass({className:"docker",version:"1.3.110"},function(){var t=function(){var t=this,r=this,l=void 0;this.instanceId=ax5.getGuid(),this.config={theme:"default",animateTime:250,columnKeys:{},control:{},icons:{close:"X",more:"..."},disableClosePanel:!1,disableDragPanel:!1,resizeDebounceTime:100,panelDebounceTime:300},this.xvar={},this.menu=null,this.onResize=null,this.panels=[],this.panelId=0,this.modules={},l=this.config;var o={resizeDebounceFn:ax5.util.debounce(function(e){e()},l.resizeDebounceTime),panelDebounceFn:ax5.util.debounce(function(e){e()},l.panelDebounceTime)},i=function(e){var a={resize:function(e){this.onResize&&o.resizeDebounceFn(function(){var a={self:this,resizer:e.target,resizedDom:[e.target.prev(),e.target.next()]};this.onResize.call(a,a)}.bind(this))}};return e.eventName in a&&a[e.eventName].call(t,e),t},s=function(){return t.panelId++},d={init:function(e,a){e.$element.html(a.name)},active:function(e,a){},deactive:function(e,a){},destroy:function(e,a){}},c=function(e,a){var n=[];return e&&"undefined"!=typeof e.panelPath&&n.push(e.panelPath),n.push("panels["+(a||0)+"]"),n.join(".")},p=function(e){var n=[],r=a.isArray(e)?[].concat(e):[].concat(e.split(/[\.\[\]]/g));r.forEach(function(e){""!==e&&n.push('["'+e.replace(/['\"]/g,"")+'"]')});try{return Function("","return this"+n.join("")+";").call(t)}catch(l){return}},u=function(e){try{var a=e.panelPath.substr(0,e.panelPath.lastIndexOf("."));return Function("","return this."+a+";").call(t)}catch(n){return}},h=function(e,n){var r=[],l=a.isArray(e)?[].concat(e):[].concat(e.split(/[\.\[\]]/g));return l.forEach(function(e){""!==e&&r.push('["'+e.replace(/['\"]/g,"")+'"]')}),Function("val","return this"+r.join("")+" = val;").call(t,n)},f=function(e){var a=void 0,n=e.originalEvent?e.originalEvent:e;return a="changedTouches"in n?n.changedTouches[0]:n,{clientX:a.pageX,clientY:a.pageY}},v=function(e,n){var r=jQuery.extend(e.moduleState,{name:e.name}),o={$element:e.$item},i=void 0,s={init:function(){e.builded=!0,i=e.moduleName in t.modules&&"init"in t.modules[e.moduleName]?t.modules[e.moduleName]:d,i.init(o,r)},active:function(){e.active=!0,e.$label.addClass("active"),e.$item.addClass("active");var a=e.$label.parent();a.get(0)&&a.get(0).clientWidth!==a.get(0).scrollWidth&&a.animate({scrollLeft:e.$label.position().left},300),i=e.moduleName in t.modules&&"active"in t.modules[e.moduleName]?t.modules[e.moduleName]:d,i.active(o,r),a=null},deactive:function(){e.active=!1,e.$label.removeClass("active"),e.$item.removeClass("active"),i=e.moduleName in t.modules&&"deactive"in t.modules[e.moduleName]?t.modules[e.moduleName]:d,i.deactive(o,r)},destroy:function(){i=e.moduleName in t.modules&&"destroy"in t.modules[e.moduleName]?t.modules[e.moduleName]:d,i.destroy(o,r),h(e.panelPath,null),P()},remove:function(){i=e.moduleName in t.modules&&"destroy"in t.modules[e.moduleName]?t.modules[e.moduleName]:d,i.destroy(o,r),h(e.panelPath,null),P()}},c={panel:e,controlType:n},p=function(){s[n](),i=null,a.isFunction(l.control.after)&&l.control.after.call(c,c)};s[n]&&(a.isFunction(l.control.before)?l.control.before.call(c,c,function(){p()}):p())},m=function(){var e={stack:function(t,r,o,i){var s=void 0,d=-1;o.panelPath=c(r,i),s=jQuery(n.tmpl.get.call(this,"stack-panel",{name:o.name,panelPath:o.panelPath,icons:l.icons,disableClosePanel:l.disableClosePanel,disableDragPanel:l.disableDragPanel},{})),t.append(s),a.isArray(o.panels)&&(o.panels.forEach(function(e,a){e.active&&(d=a)}),d===-1&&(d=0),o.panels[d].active=!0,o.panels.forEach(function(a,n){a.panelIndex=n,e[a.type](s,o,a,n)})),s=null,d=null},panel:function(e,a,t,r){var o=void 0;t.panelPath=c(a,r),t.$label=jQuery(n.tmpl.get.call(this,"panel-label",{pIndex:r,name:t.name,panelPath:t.panelPath,icons:l.icons,disableClosePanel:l.disableClosePanel,disableDragPanel:l.disableDragPanel},{})),t.$item?(t.$item.attr("data-ax5docker-path",t.panelPath),t.$item.attr("data-ax5docker-pane-item",r)):t.$item=jQuery('<div data-ax5docker-pane-item="'+r+'" data-ax5docker-pane-id="'+s()+'" data-ax5docker-path="'+t.panelPath+'"></div>'),a&&"stack"==a.type?(t.active&&(t.builded||v(t,"init"),v(t,"active")),e.find("[data-ax5docker-pane-tabs]").append(t.$label),e.find("[data-ax5docker-pane-item-views]").append(t.$item)):(o=jQuery(n.tmpl.get.call(this,"stack-panel",{name:t.name,panelPath:t.panelPath,flexGrow:t.flexGrow,icons:l.icons,disableClosePanel:l.disableClosePanel,disableDragPanel:l.disableDragPanel},{})),t.builded||v(t,"init"),v(t,"active"),o.find("[data-ax5docker-pane-tabs]").append(t.$label),o.find("[data-ax5docker-pane-item-views]").append(t.$item),e.append(o)),o=null},resizeHandle:function(e,a,n,t){var r=jQuery('<div data-ax5docker-resize-handle="'+a.type+"/"+a.panelPath+"/"+t+'"></div>');e.append(r),r=null},row:function(n,t,r,l){var o=void 0;if(r.panelPath=c(t,l),t&&"stack"==t.type)throw"The 'stack' type child nodes are allowed only for the 'panel' type.";o=jQuery('<div data-ax5docker-pane-axis="row" data-ax5docker-path="'+r.panelPath+'" style="flex-grow: '+(r.flexGrow||1)+';"></div>'),n.append(o),a.isArray(r.panels)&&r.panels.forEach(function(a,n){n>0&&e.resizeHandle(o,r,a,n),a.panelIndex=n,e[a.type](o,r,a,n)}),o=null},column:function(n,t,r,l){var o=void 0;if(r.panelPath=c(t,l),t&&"stack"==t.type)throw"The 'stack' type child nodes are allowed only for the 'panel' type.";o=jQuery('<div data-ax5docker-pane-axis="column" data-ax5docker-path="'+r.panelPath+'" style="flex-grow: '+(r.flexGrow||1)+';"></div>'),n.append(o),a.isArray(r.panels)&&r.panels.forEach(function(a,n){n>0&&e.resizeHandle(o,r,a,n),a.panelIndex=n,e[a.type](o,r,a,n)}),o=null}},o=jQuery('<div data-ax5docker-panes=""></div>');t.panels[0]&&e[t.panels[0].type](o,null,t.panels[0],0),t.$target.html(o),t.$target.off("click.ax5docker-pane").on("click.ax5docker-pane","[data-ax5docker-pane-tab] .close-icon",function(e){r.removePanel($(this).parents("[data-ax5docker-pane-tab]").attr("data-ax5docker-path")),a.stopEvent(e)}).on("click.ax5docker-pane","[data-ax5docker-pane-tab]",function(e){var n=jQuery(this),t=p(n.parents("[data-ax5docker-pane]").attr("data-ax5docker-path")),r=n.attr("data-ax5docker-pane-tab");n.hasClass("active")||x(t,r),n=null,t=null,r=null,a.stopEvent(e)}).on("click.ax5docker-pane","[data-ax5docker-pane-tabs-more]",function(e){g($(this).parents("[data-ax5docker-pane]"),e),a.stopEvent(e)}),t.$target.off("mousedown.ax5docker-pane-resize").off("dragstart.ax5docker-pane-resize").on("dragstart.ax5docker-pane-resize","[data-ax5docker-pane-tab]",function(e){l.disableDragPanel||y.on(this)}).on("mousedown.ax5docker-pane-resize","[data-ax5docker-resize-handle]",function(e){var n=this.getAttribute("data-ax5docker-resize-handle").split(/\//g);r.xvar.mousePosition=f(e),r.xvar.resizerType=n[0],r.xvar.resizerPath=n[1],r.xvar.resizerIndex=n[2],r.xvar.resizer$dom=$(this),r.xvar.resizerParent$dom=r.xvar.resizer$dom.parent(),r.xvar.resizerPrevGrow=a.number(r.xvar.resizer$dom.prev().css("flex-grow")),r.xvar.resizerNextGrow=a.number(r.xvar.resizer$dom.next().css("flex-grow")),"row"==r.xvar.resizerType?r.xvar.resizerCanvasWidth=r.xvar.resizer$dom.prev().innerWidth()+r.xvar.resizer$dom.next().innerWidth()+r.xvar.resizer$dom.width():r.xvar.resizerCanvasHeight=r.xvar.resizer$dom.prev().innerHeight()+r.xvar.resizer$dom.next().innerHeight()+r.xvar.resizer$dom.height(),k.on(this),a.stopEvent(e)}).on("dragstart.ax5docker-pane-resize","[data-ax5docker-resize-handle]",function(e){return a.stopEvent(e),!1}),b(),o=null},x=function(e,a){for(var n=e.panels[a],r=0,l=e.panels.length;r<l;r++)e.panels[r].active&&v(e.panels[r],"deactive");return n.builded||v(n,"init"),v(n,"active"),e=null,a=null,n=null,t},g=function(e,n){var r=jQuery(e),l=r.attr("data-ax5docker-path"),o=p(l);if(!t.menu)throw console.log(o.panels),"'ax5ui-menu' is required to implement the function.";var i=a.map(o.panels,function(e){return{label:this.name,index:e,panePath:l}});return t.menu.setConfig({items:i,onClick:function(){x(p(this.panePath),this.index)}}),t.menu.popup(n),r=null,l=null,o=null,t},k={on:function(e){jQuery(document.body).on("mousemove.ax5docker-"+t.instanceId,function(e){var n=f(e),t=void 0;r.xvar.resizerLived?("row"==r.xvar.resizerType?(r.xvar.__da=n.clientX-r.xvar.mousePosition.clientX,t=a.number(2*r.xvar.__da/r.xvar.resizerCanvasWidth,{round:6}),r.xvar.resizer$dom.prev().css({"flex-grow":r.xvar.resizerPrevGrow+t}),r.xvar.resizer$dom.next().css({"flex-grow":r.xvar.resizerNextGrow-t})):(r.xvar.__da=n.clientY-r.xvar.mousePosition.clientY,t=a.number(2*r.xvar.__da/r.xvar.resizerCanvasHeight,{round:6}),r.xvar.resizer$dom.prev().css({"flex-grow":r.xvar.resizerPrevGrow+t}),r.xvar.resizer$dom.next().css({"flex-grow":r.xvar.resizerNextGrow-t})),i({eventName:"resize",target:r.xvar.resizer$dom})):r.xvar.resizerLived=!0,n=null,t=null}).on("mouseup.ax5docker-"+t.instanceId,function(e){k.off(),a.stopEvent(e)}).on("mouseleave.ax5docker-"+t.instanceId,function(e){k.off(),a.stopEvent(e)}),jQuery(document.body).attr("unselectable","on").css("user-select","none").on("selectstart",!1)},off:function(){if(r.xvar.resizerLived=!1,"undefined"==typeof t.xvar.__da);else{var e=r.xvar.resizer$dom.prev(),n=r.xvar.resizer$dom.next(),l=p(e.attr("data-ax5docker-path")),o=p(n.attr("data-ax5docker-path"));l.flexGrow=a.number(e.css("flex-grow")),o.flexGrow=a.number(n.css("flex-grow")),e=null,n=null,l=null,o=null}jQuery(document.body).off("mousemove.ax5docker-"+t.instanceId).off("mouseup.ax5docker-"+t.instanceId).off("mouseleave.ax5docker-"+t.instanceId),jQuery(document.body).removeAttr("unselectable").css("user-select","auto").off("selectstart")}},y={on:function(e){t.panels[0]&&t.panels[0].panels&&t.panels[0].panels.length&&(t.xvar.dragger={dragPanel:e,target:null,dragOverVertical:null,dragOverHorizontal:null},t.$target.on("dragover.ax5docker-"+t.instanceId,"[data-ax5docker-path]",function(e){y.dragover(this,e),a.stopEvent(e)}).on("drop.ax5docker-"+t.instanceId,function(e){y.off("drop"),a.stopEvent(e)}).on("dragend.ax5docker-"+t.instanceId,function(e){y.off(),a.stopEvent(e)}))},dragover:function(e,a){var n=jQuery(e);null!=t.xvar.dragger.target&&t.xvar.dragger.target.get(0)==n.get(0)||(t.xvar.dragger.target&&t.xvar.dragger.target.removeAttr("data-dropper"),t.xvar.dragger.target=n,t.xvar.dragger.dragOverVertical=null,t.xvar.dragger.dragOverHorizontal=null);var r={};r=n.offset(),r.width=n.width(),r.height=n.height();var l=f(a),o=void 0,i=void 0;if(n.attr("data-ax5docker-pane-tab")){var s=r.width/2;if(r.left<=l.clientX&&r.left+s>=l.clientX?i="left":r.left+s<=l.clientX&&r.left+2*s>=l.clientX&&(i="right"),t.xvar.dragger.dragOverHorizontal!=i&&"undefined"!=typeof i){t.xvar.dragger.dragOverHorizontal=i;var d={left:function(e){e.attr("data-dropper","left")},right:function(e){e.attr("data-dropper","right")}};t.xvar.dragger.dragOverHorizontal in d&&d[t.xvar.dragger.dragOverHorizontal](t.xvar.dragger.target)}}else if(n.attr("data-ax5docker-pane-item")){var c=r.height/3,p=r.width/3;if(r.top<=l.clientY&&r.top+c>=l.clientY?o="top":r.top+c<=l.clientY&&r.top+2*c>=l.clientY?o="middle":r.top+2*c<=l.clientY&&r.top+3*c>=l.clientY&&(o="bottom"),r.left<=l.clientX&&r.left+p>=l.clientX?i="left":r.left+p<=l.clientX&&r.left+2*p>=l.clientX?i="center":r.left+2*p<=l.clientX&&r.left+3*p>=l.clientX&&(i="right"),t.xvar.dragger.dragOverVertical!=o||t.xvar.dragger.dragOverHorizontal!=i){t.xvar.dragger.dragOverVertical=o,t.xvar.dragger.dragOverHorizontal=i;var d={"left-top":function(e){e.attr("data-dropper","left")},"right-top":function(e){e.attr("data-dropper","right")},"center-top":function(e){e.attr("data-dropper","top")},"left-middle":function(e){e.attr("data-dropper","left")},"right-middle":function(e){e.attr("data-dropper","right")},"center-middle":function(e){e.attr("data-dropper","center")},"left-bottom":function(e){e.attr("data-dropper","left")},"right-bottom":function(e){e.attr("data-dropper","right")},"center-bottom":function(e){e.attr("data-dropper","bottom")}};t.xvar.dragger.dragOverHorizontal+"-"+t.xvar.dragger.dragOverVertical in d&&d[t.xvar.dragger.dragOverHorizontal+"-"+t.xvar.dragger.dragOverVertical](t.xvar.dragger.target)}}},off:function(e){if(e){var a=p(t.xvar.dragger.dragPanel.getAttribute("data-ax5docker-path")),n=[];t.xvar.dragger.dragOverHorizontal&&n.push(t.xvar.dragger.dragOverHorizontal),t.xvar.dragger.dragOverVertical&&n.push(t.xvar.dragger.dragOverVertical),t.appendPanel(a,t.xvar.dragger.target.attr("data-ax5docker-path"),n),a=null}t.$target.off("dragover.ax5docker-"+t.instanceId).off("drop.ax5docker-"+t.instanceId).off("dragend.ax5docker-"+t.instanceId),t.xvar.dragger.target.removeAttr("data-dropper")}},b=function(){o.panelDebounceFn(function(){this.$target.find("[data-ax5docker-pane-tabs]").each(function(){var e=jQuery(this).parent();this.scrollWidth>this.clientWidth?e.addClass("tabs-scrolled"):e.removeClass("tabs-scrolled"),e=null})}.bind(t))},P=function(){var e={stack:function(n){if(!a.isArray(n.panels))return!1;var t={type:"stack",panels:[]};return n.panels.forEach(function(a,n){if(a){var r=e[a.type](a);r&&t.panels.push(r),r=null}}),0==t.panels.length?null:(t.panels.length<2&&(t=t.panels[0]),t)},panel:function(e){return e},row:function(n){if(!a.isArray(n.panels))return!1;var t={type:"row",panels:[]};return n.panels.forEach(function(a,n){if(a){var r=e[a.type](a);r&&t.panels.push(r),r=null}}),0==t.panels.length?null:(t.panels.length<2&&(t=t.panels[0]),t)},column:function(n){if(!a.isArray(n.panels))return!1;var t={type:"column",panels:[]};return n.panels.forEach(function(a,n){if(a){var r=e[a.type](a);r&&t.panels.push(r),r=null}}),0==t.panels.length?null:(t.panels.length<2&&(t=t.panels[0]),t)}};t.panels[0]?t.panels[0]=e[t.panels[0].type](t.panels[0]):t.panels=[],m()};this.init=function(e){return l=jQuery.extend(!0,{},l,e),l.target?(this.onResize=l.onResize,this.$target=jQuery(l.target),this.panels=l.panels||[],this.onStateChanged=l.onStateChanged,this.onClick=l.onClick,this.onLoad=l.onLoad,this.onDataChanged=l.onDataChanged,ax5.ui.menu&&(this.menu=new ax5.ui.menu({theme:"default",position:"absolute",icons:{arrow:"▸"}})),void jQuery(window).bind("resize.ax5docker-"+this.id,function(){b()})):(console.log(ax5.info.getError("ax5docker","401","init")),this)},this.setPanels=function(e){return this.panels=e||[],m(),this},this.addModule=function(e){return a.isObject(e)&&jQuery.extend(!0,this.modules,e),this},this.repaint=function(){return m(),this},this.addPanel=function(e,n,t,r){var l="",o=void 0,i=void 0;if(0===this.panels.length||!this.panels[0])return this.setPanels([{type:"stack",panels:[t]}]);console.log("here"),l="undefined"==e?"0":e.replace(/[a-zA-Z\[\]]+/g,"").replace(/(\d+)/g,function(e,a){return"panels["+e+"]"}),o=p(l),i=u(o),i&&"stack"==i.type&&(o=i,l=o.panelPath);var s={stack:function(e,n,t,r){var o=jQuery.extend({},e),i={stack:function(e,a){e.panels.push(a),P()},"stack-left":function(e,a){e.panels.splice(r,0,a),P()},"stack-right":function(e,a){e.panels.splice(Number(r)+1,0,a),P()},"row-left":function(e,t){var r=a.left(l,"."),i=p(r);i&&"row"==i.type?this.addPanel(i.panelPath,n,t,e.panelIndex):(e=h(l,{type:"row",panels:[]}),e.panels.push(t),e.panels.push(o),P())},"row-right":function(e,t){var r=a.left(l,"."),i=p(r);i&&"row"==i.type?this.addPanel(i.panelPath,n,t,e.panelIndex):(e=h(l,{type:"row",panels:[]}),e.panels.push(o),e.panels.push(t),P())},"column-top":function(e,t){var r=a.left(l,"."),i=p(r);i&&"column"==i.type?this.addPanel(i.panelPath,n,t,e.panelIndex):(e=h(l,{type:"column",panels:[]}),e.panels.push(t),e.panels.push(o),P())},"column-bottom":function(e,t){var r=a.left(l,"."),i=p(r);i&&"column"==i.type?this.addPanel(i.panelPath,n,t,e.panelIndex):(e=h(l,{type:"column",panels:[]}),e.panels.push(o),e.panels.push(t),P())}};n in i&&i[n].call(this,e,t),o=null,i=null},row:function(e,n,t,r){var o=jQuery.extend({},e),i={stack:function(e,a){e.panels[0]&&e.panels[0].panelPath&&this.addPanel(e.panels[0].panelPath,n,a)},"row-left":function(e,n,t){var r=a.left(l,"."),i=p(r);i&&"row"==i.type?(e.panels.splice(t,0,n),P()):(e=h(l,{type:"row",panels:[]}),e.panels.push(n),e.panels.push(o),P())},"row-right":function(e,n,t){var r=a.left(l,"."),i=p(r);i&&"row"==i.type?(e.panels.splice(t+1,0,n),P()):(e=h(l,{type:"row",panels:[]}),e.panels.push(o),e.panels.push(n),P())},"column-top":function(e,t,r){var i=a.left(l,"."),s=p(i);s&&"column"==s.type?this.addPanel(s.panelPath,n,t,e.panelIndex):(e=h(l,{type:"column",panels:[]}),e.panels.push(t),e.panels.push(o),P())},"column-bottom":function(e,t,r){var i=a.left(l,"."),s=p(i);s&&"column"==s.type?this.addPanel(s.panelPath,n,t,e.panelIndex):(e=h(l,{type:"column",panels:[]}),e.panels.push(o),e.panels.push(t),P())}};n in i&&i[n].call(this,e,t,r),i=null,o=null},column:function(e,n,t,r){var o=jQuery.extend({},e),i={stack:function(e,a){e.panels[0]&&e.panels[0].panelPath&&this.addPanel(e.panels[0].panelPath,n,a)},"row-left":function(e,t){var r=a.left(l,"."),i=p(r);i&&"row"==i.type?this.addPanel(i.panelPath,n,t,e.panelIndex):(e=h(l,{type:"row",panels:[]}),e.panels.push(t),e.panels.push(o),P())},"row-right":function(e,t){var r=a.left(l,"."),i=p(r);i&&"row"==i.type?this.addPanel(i.panelPath,n,t,e.panelIndex):(e=h(l,{type:"row",panels:[]}),e.panels.push(o),e.panels.push(t),P())},"column-top":function(e,a){e.panels.splice(r,0,a),P()},"column-bottom":function(e,a){e.panels.splice(r+1,0,a),P()}};n in i&&i[n].call(this,e,t),i=null,o=null},panel:function(e,n,t){var r=jQuery.extend({},e),o={stack:function(e,a){e=h(l,{type:"stack",panels:[]}),e.panels.push(r),e.panels.push(a),P()},"stack-left":function(e,a){e=h(l,{type:"stack",panels:[]}),e.panels.push(a),e.panels.push(r),P()},"stack-right":function(e,a){e=h(l,{type:"stack",panels:[]}),e.panels.push(r),e.panels.push(a),P()},"row-left":function(e,t){var o=a.left(l,"."),i=p(o);i&&"row"==i.type?this.addPanel(i.panelPath,n,t,e.panelIndex):(e=h(l,{type:"row",panels:[]}),e.panels.push(t),e.panels.push(r),P())},"row-right":function(e,t){var o=a.left(l,"."),i=p(o);i&&"row"==i.type?this.addPanel(i.panelPath,n,t,e.panelIndex):(e=h(l,{type:"row",panels:[]}),e.panels.push(r),e.panels.push(t),P())},"column-top":function(e,t){var o=a.left(l,"."),i=p(o);i&&"column"==i.type?this.addPanel(i.panelPath,n,t,e.panelIndex):(e=h(l,{type:"column",panels:[]}),e.panels.push(t),e.panels.push(r),P())},"column-bottom":function(e,t){var o=a.left(l,"."),i=p(o);i&&"column"==i.type?this.addPanel(i.panelPath,n,t,e.panelIndex):(e=h(l,{type:"column",panels:[]}),e.panels.push(r),e.panels.push(t),P())}};n in o&&o[n].call(this,e,t),r=null,o=null}};return s[o?o.type:"stack"].call(this,o,n,t,r),this},this.removePanel=function(e){var a=p(e);return v(a,"destroy"),a=null,this},this.appendPanel=function(e,n,t){var r=$.extend({},e,{panelPath:""}),l=void 0,o=e.panelPath,i=a.right(n,".").replace(/\D/g,"");if(1==t.length)l="stack-"+t[0],r.active=!1,r.$item.removeClass("active"),v(r,"deactive");else switch(t[0]+"-"+t[1]){case"left-top":l="row-left";break;case"left-middle":l="row-left";break;case"left-bottom":l="row-left";break;case"center-top":l="column-top";break;case"center-middle":l="stack",r.active=!1,r.$item.removeClass("active"),i=void 0,v(r,"deactive");break;case"center-bottom":l="column-bottom";break;case"right-top":l="row-right";break;case"right-middle":l="row-right";break;case"right-bottom":l="row-right"}return e.panelPath===n&&(n=a.left(n,".")),h(o,null),this.addPanel(n,l,r,i),r=null,this},this.main=function(){e.docker_instance=e.docker_instance||[],e.docker_instance.push(this),arguments&&a.isObject(arguments[0])&&this.setConfig(arguments[0])}.apply(this,arguments)};return t}()),n=ax5.ui.docker}(),function(){var e=ax5.ui.docker,a=function(){return'<div data-ax5docker-pane="" data-ax5docker-path="{{panelPath}}" style="flex-grow: {{#flexGrow}}{{.}}{{/flexGrow}}{{^flexGrow}}1{{/flexGrow}};">\n <ul data-ax5docker-pane-tabs=""></ul>\n <div data-ax5docker-pane-tabs-more="">{{{icons.more}}}</div>\n <div data-ax5docker-pane-item-views=""></div>\n</div>'},n=function(){return'<li data-ax5docker-pane-tab="{{pIndex}}" data-ax5docker-path="{{panelPath}}">\n <div class="title">{{{name}}}</div>\n {{^disableClosePanel}}<div class="close-icon">{{{icons.close}}}</div>{{/disableClosePanel}}\n</li>'};e.tmpl={"stack-panel":a,"panel-label":n,get:function(a,n,t){return ax5.mustache.render(e.tmpl[a].call(this,t),n)}}}();
"use strict";!function(){var e=ax5.ui,a=ax5.util,n=void 0;e.addClass({className:"docker",version:"1.3.111"},function(){var t=function(){var t=this,r=this,l=void 0;this.instanceId=ax5.getGuid(),this.config={theme:"default",animateTime:250,columnKeys:{},control:{},icons:{close:"X",more:"..."},disableClosePanel:!1,disableDragPanel:!1,resizeDebounceTime:100,panelDebounceTime:300},this.xvar={},this.menu=null,this.onResize=null,this.panels=[],this.panelId=0,this.modules={},l=this.config;var i={resizeDebounceFn:ax5.util.debounce(function(e){e()},l.resizeDebounceTime),panelDebounceFn:ax5.util.debounce(function(e){e()},l.panelDebounceTime)},o=function(e){var a={resize:function(e){this.onResize&&i.resizeDebounceFn(function(){var a={self:this,resizer:e.target,resizedDom:[e.target.prev(),e.target.next()]};this.onResize.call(a,a)}.bind(this))}};return e.eventName in a&&a[e.eventName].call(t,e),t},s=function(){return t.panelId++},d={init:function(e,a){e.$element.html(a.name)},active:function(e,a){},deactive:function(e,a){},destroy:function(e,a){}},c=function(e,a){var n=[];return e&&"undefined"!=typeof e.panelPath&&n.push(e.panelPath),n.push("panels["+(a||0)+"]"),n.join(".")},p=function(e){var n=[],r=a.isArray(e)?[].concat(e):[].concat(e.split(/[\.\[\]]/g));r.forEach(function(e){""!==e&&n.push('["'+e.replace(/['\"]/g,"")+'"]')});try{return Function("","return this"+n.join("")+";").call(t)}catch(l){return}},u=function(e){try{var a=e.panelPath.substr(0,e.panelPath.lastIndexOf("."));return Function("","return this."+a+";").call(t)}catch(n){return}},h=function(e,n){var r=[],l=a.isArray(e)?[].concat(e):[].concat(e.split(/[\.\[\]]/g));return l.forEach(function(e){""!==e&&r.push('["'+e.replace(/['\"]/g,"")+'"]')}),Function("val","return this"+r.join("")+" = val;").call(t,n)},v=function(e){var a=void 0,n=e.originalEvent?e.originalEvent:e;return a="changedTouches"in n?n.changedTouches[0]:n,{clientX:a.pageX,clientY:a.pageY}},f=function(e,n){var r=jQuery.extend(e.moduleState,{name:e.name}),i={$element:e.$item},o=void 0,s={init:function(){e.builded=!0,o=e.moduleName in t.modules&&"init"in t.modules[e.moduleName]?t.modules[e.moduleName]:d,o.init(i,r)},active:function(){e.active=!0,e.$label.addClass("active"),e.$item.addClass("active");var a=e.$label.parent();a.get(0)&&a.get(0).clientWidth!==a.get(0).scrollWidth&&a.animate({scrollLeft:e.$label.position().left},300),o=e.moduleName in t.modules&&"active"in t.modules[e.moduleName]?t.modules[e.moduleName]:d,o.active(i,r),a=null},deactive:function(){e.active=!1,e.$label.removeClass("active"),e.$item.removeClass("active"),o=e.moduleName in t.modules&&"deactive"in t.modules[e.moduleName]?t.modules[e.moduleName]:d,o.deactive(i,r)},destroy:function(){o=e.moduleName in t.modules&&"destroy"in t.modules[e.moduleName]?t.modules[e.moduleName]:d,o.destroy(i,r),h(e.panelPath,null),w()},remove:function(){o=e.moduleName in t.modules&&"destroy"in t.modules[e.moduleName]?t.modules[e.moduleName]:d,o.destroy(i,r),h(e.panelPath,null),w()}},c={panel:e,controlType:n},p=function(){s[n](),o=null,a.isFunction(l.control.after)&&l.control.after.call(c,c)};s[n]&&(a.isFunction(l.control.before)?l.control.before.call(c,c,function(){p()}):p())},m=function(){var e={stack:function(t,r,i,o){var s=void 0,d=-1;i.panelPath=c(r,o),s=jQuery(n.tmpl.get.call(this,"stack-panel",{name:i.name,panelPath:i.panelPath,icons:l.icons,disableClosePanel:l.disableClosePanel,disableDragPanel:l.disableDragPanel},{})),t.append(s),a.isArray(i.panels)&&(i.panels.forEach(function(e,a){e.active&&(d=a)}),d===-1&&(d=0),i.panels[d].active=!0,i.panels.forEach(function(a,n){a.panelIndex=n,e[a.type](s,i,a,n)})),s=null,d=null},panel:function(e,a,t,r){var i=void 0;t.panelPath=c(a,r),t.$label=jQuery(n.tmpl.get.call(this,"panel-label",{pIndex:r,name:t.name,panelPath:t.panelPath,icons:l.icons,disableClosePanel:l.disableClosePanel,disableDragPanel:l.disableDragPanel},{})),t.$item?(t.$item.attr("data-ax5docker-path",t.panelPath),t.$item.attr("data-ax5docker-pane-item",r)):t.$item=jQuery('<div data-ax5docker-pane-item="'+r+'" data-ax5docker-pane-id="'+s()+'" data-ax5docker-path="'+t.panelPath+'"></div>'),a&&"stack"==a.type?(t.active&&(t.builded||f(t,"init"),f(t,"active")),e.find("[data-ax5docker-pane-tabs]").append(t.$label),e.find("[data-ax5docker-pane-item-views]").append(t.$item)):(i=jQuery(n.tmpl.get.call(this,"stack-panel",{name:t.name,panelPath:t.panelPath,flexGrow:t.flexGrow,icons:l.icons,disableClosePanel:l.disableClosePanel,disableDragPanel:l.disableDragPanel},{})),t.builded||f(t,"init"),f(t,"active"),i.find("[data-ax5docker-pane-tabs]").append(t.$label),i.find("[data-ax5docker-pane-item-views]").append(t.$item),e.append(i)),i=null},resizeHandle:function(e,a,n,t){var r=jQuery('<div data-ax5docker-resize-handle="'+a.type+"/"+a.panelPath+"/"+t+'"></div>');e.append(r),r=null},row:function(n,t,r,l){var i=void 0;if(r.panelPath=c(t,l),t&&"stack"==t.type)throw"The 'stack' type child nodes are allowed only for the 'panel' type.";i=jQuery('<div data-ax5docker-pane-axis="row" data-ax5docker-path="'+r.panelPath+'" style="flex-grow: '+(r.flexGrow||1)+';"></div>'),n.append(i),a.isArray(r.panels)&&r.panels.forEach(function(a,n){n>0&&e.resizeHandle(i,r,a,n),a.panelIndex=n,e[a.type](i,r,a,n)}),i=null},column:function(n,t,r,l){var i=void 0;if(r.panelPath=c(t,l),t&&"stack"==t.type)throw"The 'stack' type child nodes are allowed only for the 'panel' type.";i=jQuery('<div data-ax5docker-pane-axis="column" data-ax5docker-path="'+r.panelPath+'" style="flex-grow: '+(r.flexGrow||1)+';"></div>'),n.append(i),a.isArray(r.panels)&&r.panels.forEach(function(a,n){n>0&&e.resizeHandle(i,r,a,n),a.panelIndex=n,e[a.type](i,r,a,n)}),i=null}},i=jQuery('<div data-ax5docker-panes=""></div>');t.panels[0]&&e[t.panels[0].type](i,null,t.panels[0],0),t.$target.html(i),t.$target.off("click.ax5docker-pane").on("click.ax5docker-pane","[data-ax5docker-pane-tab] .close-icon",function(e){r.removePanel($(this).parents("[data-ax5docker-pane-tab]").attr("data-ax5docker-path")),a.stopEvent(e)}).on("click.ax5docker-pane","[data-ax5docker-pane-tab]",function(e){var n=jQuery(this),t=p(n.parents("[data-ax5docker-pane]").attr("data-ax5docker-path")),r=n.attr("data-ax5docker-pane-tab");n.hasClass("active")||x(t,r),n=null,t=null,r=null,a.stopEvent(e)}).on("click.ax5docker-pane","[data-ax5docker-pane-tabs-more]",function(e){g($(this).parents("[data-ax5docker-pane]"),e),a.stopEvent(e)}),t.$target.off("mousedown.ax5docker-pane-resize").off("dragstart.ax5docker-pane-resize").on("dragstart.ax5docker-pane-resize","[data-ax5docker-pane-tab]",function(e){l.disableDragPanel||y.on(this)}).on("mousedown.ax5docker-pane-resize","[data-ax5docker-resize-handle]",function(e){var n=this.getAttribute("data-ax5docker-resize-handle").split(/\//g);r.xvar.mousePosition=v(e),r.xvar.resizerType=n[0],r.xvar.resizerPath=n[1],r.xvar.resizerIndex=n[2],r.xvar.resizer$dom=$(this),r.xvar.resizerParent$dom=r.xvar.resizer$dom.parent(),r.xvar.resizerPrevGrow=a.number(r.xvar.resizer$dom.prev().css("flex-grow")),r.xvar.resizerNextGrow=a.number(r.xvar.resizer$dom.next().css("flex-grow")),"row"==r.xvar.resizerType?r.xvar.resizerCanvasWidth=r.xvar.resizer$dom.prev().innerWidth()+r.xvar.resizer$dom.next().innerWidth()+r.xvar.resizer$dom.width():r.xvar.resizerCanvasHeight=r.xvar.resizer$dom.prev().innerHeight()+r.xvar.resizer$dom.next().innerHeight()+r.xvar.resizer$dom.height(),k.on(this),a.stopEvent(e)}).on("dragstart.ax5docker-pane-resize","[data-ax5docker-resize-handle]",function(e){return a.stopEvent(e),!1}),b(),i=null},x=function(e,a){for(var n=e.panels[a],r=0,l=e.panels.length;r<l;r++)e.panels[r].active&&f(e.panels[r],"deactive");return n.builded||f(n,"init"),f(n,"active"),e=null,a=null,n=null,t},g=function(e,n){var r=jQuery(e),l=r.attr("data-ax5docker-path"),i=p(l);if(!t.menu)throw console.log(i.panels),"'ax5ui-menu' is required to implement the function.";var o=a.map(i.panels,function(e){return{label:this.name,index:e,panePath:l}});return t.menu.setConfig({items:o,onClick:function(){x(p(this.panePath),this.index)}}),t.menu.popup(n),r=null,l=null,i=null,t},k={on:function(e){jQuery(document.body).on("mousemove.ax5docker-"+t.instanceId,function(e){var n=v(e),t=void 0;r.xvar.resizerLived?("row"==r.xvar.resizerType?(r.xvar.__da=n.clientX-r.xvar.mousePosition.clientX,t=a.number(2*r.xvar.__da/r.xvar.resizerCanvasWidth,{round:6}),r.xvar.resizer$dom.prev().css({"flex-grow":r.xvar.resizerPrevGrow+t}),r.xvar.resizer$dom.next().css({"flex-grow":r.xvar.resizerNextGrow-t})):(r.xvar.__da=n.clientY-r.xvar.mousePosition.clientY,t=a.number(2*r.xvar.__da/r.xvar.resizerCanvasHeight,{round:6}),r.xvar.resizer$dom.prev().css({"flex-grow":r.xvar.resizerPrevGrow+t}),r.xvar.resizer$dom.next().css({"flex-grow":r.xvar.resizerNextGrow-t})),o({eventName:"resize",target:r.xvar.resizer$dom})):r.xvar.resizerLived=!0,n=null,t=null}).on("mouseup.ax5docker-"+t.instanceId,function(e){k.off(),a.stopEvent(e)}).on("mouseleave.ax5docker-"+t.instanceId,function(e){k.off(),a.stopEvent(e)}),jQuery(document.body).attr("unselectable","on").css("user-select","none").on("selectstart",!1)},off:function(){if(r.xvar.resizerLived=!1,"undefined"==typeof t.xvar.__da);else{var e=r.xvar.resizer$dom.prev(),n=r.xvar.resizer$dom.next(),l=p(e.attr("data-ax5docker-path")),i=p(n.attr("data-ax5docker-path"));l.flexGrow=a.number(e.css("flex-grow")),i.flexGrow=a.number(n.css("flex-grow")),e=null,n=null,l=null,i=null}jQuery(document.body).off("mousemove.ax5docker-"+t.instanceId).off("mouseup.ax5docker-"+t.instanceId).off("mouseleave.ax5docker-"+t.instanceId),jQuery(document.body).removeAttr("unselectable").css("user-select","auto").off("selectstart")}},y={on:function(e){t.panels[0]&&t.panels[0].panels&&t.panels[0].panels.length&&(t.xvar.dragger={dragPanel:e,target:null,dragOverVertical:null,dragOverHorizontal:null},t.$target.on("dragover.ax5docker-"+t.instanceId,"[data-ax5docker-path]",function(e){y.dragover(this,e),a.stopEvent(e)}).on("drop.ax5docker-"+t.instanceId,function(e){y.off("drop"),a.stopEvent(e)}).on("dragend.ax5docker-"+t.instanceId,function(e){y.off(),a.stopEvent(e)}))},dragover:function(e,a){var n=jQuery(e);null!=t.xvar.dragger.target&&t.xvar.dragger.target.get(0)==n.get(0)||(t.xvar.dragger.target&&t.xvar.dragger.target.removeAttr("data-dropper"),t.xvar.dragger.target=n,t.xvar.dragger.dragOverVertical=null,t.xvar.dragger.dragOverHorizontal=null);var r={};r=n.offset(),r.width=n.width(),r.height=n.height();var l=v(a),i=void 0,o=void 0;if(n.attr("data-ax5docker-pane-tab")){var s=r.width/2;if(r.left<=l.clientX&&r.left+s>=l.clientX?o="left":r.left+s<=l.clientX&&r.left+2*s>=l.clientX&&(o="right"),t.xvar.dragger.dragOverHorizontal!=o&&"undefined"!=typeof o){t.xvar.dragger.dragOverHorizontal=o;var d={left:function(e){e.attr("data-dropper","left")},right:function(e){e.attr("data-dropper","right")}};t.xvar.dragger.dragOverHorizontal in d&&d[t.xvar.dragger.dragOverHorizontal](t.xvar.dragger.target)}}else if(n.attr("data-ax5docker-pane-item")){var c=r.height/3,p=r.width/3;if(r.top<=l.clientY&&r.top+c>=l.clientY?i="top":r.top+c<=l.clientY&&r.top+2*c>=l.clientY?i="middle":r.top+2*c<=l.clientY&&r.top+3*c>=l.clientY&&(i="bottom"),r.left<=l.clientX&&r.left+p>=l.clientX?o="left":r.left+p<=l.clientX&&r.left+2*p>=l.clientX?o="center":r.left+2*p<=l.clientX&&r.left+3*p>=l.clientX&&(o="right"),t.xvar.dragger.dragOverVertical!=i||t.xvar.dragger.dragOverHorizontal!=o){t.xvar.dragger.dragOverVertical=i,t.xvar.dragger.dragOverHorizontal=o;var d={"left-top":function(e){e.attr("data-dropper","left")},"right-top":function(e){e.attr("data-dropper","right")},"center-top":function(e){e.attr("data-dropper","top")},"left-middle":function(e){e.attr("data-dropper","left")},"right-middle":function(e){e.attr("data-dropper","right")},"center-middle":function(e){e.attr("data-dropper","center")},"left-bottom":function(e){e.attr("data-dropper","left")},"right-bottom":function(e){e.attr("data-dropper","right")},"center-bottom":function(e){e.attr("data-dropper","bottom")}};t.xvar.dragger.dragOverHorizontal+"-"+t.xvar.dragger.dragOverVertical in d&&d[t.xvar.dragger.dragOverHorizontal+"-"+t.xvar.dragger.dragOverVertical](t.xvar.dragger.target)}}},off:function(e){if(e){var a=p(t.xvar.dragger.dragPanel.getAttribute("data-ax5docker-path")),n=[];t.xvar.dragger.dragOverHorizontal&&n.push(t.xvar.dragger.dragOverHorizontal),t.xvar.dragger.dragOverVertical&&n.push(t.xvar.dragger.dragOverVertical),t.appendPanel(a,t.xvar.dragger.target.attr("data-ax5docker-path"),n),a=null}t.$target.off("dragover.ax5docker-"+t.instanceId).off("drop.ax5docker-"+t.instanceId).off("dragend.ax5docker-"+t.instanceId),t.xvar.dragger.target.removeAttr("data-dropper")}},b=function(){i.panelDebounceFn(function(){this.$target.find("[data-ax5docker-pane-tabs]").each(function(){var e=jQuery(this).parent();this.scrollWidth>this.clientWidth?e.addClass("tabs-scrolled"):e.removeClass("tabs-scrolled"),e=null})}.bind(t))},P=function(e){a.isArray(e)?e.forEach(function(e){f(e,"deactive")}):f(e,"deactive")},w=function(){var e={stack:function(n){if(!a.isArray(n.panels))return!1;var t={type:"stack",panels:[]};return n.panels.forEach(function(a,n){if(a){var r=e[a.type](a);r&&t.panels.push(r),r=null}}),0==t.panels.length?null:(t.panels.length<2&&(t=t.panels[0]),t)},panel:function(e){return e},row:function(n){if(!a.isArray(n.panels))return!1;var t={type:"row",panels:[]};return n.panels.forEach(function(a,n){if(a){var r=e[a.type](a);r&&t.panels.push(r),r=null}}),0==t.panels.length?null:(t.panels.length<2&&(t=t.panels[0]),t)},column:function(n){if(!a.isArray(n.panels))return!1;var t={type:"column",panels:[]};return n.panels.forEach(function(a,n){if(a){var r=e[a.type](a);r&&t.panels.push(r),r=null}}),0==t.panels.length?null:(t.panels.length<2&&(t=t.panels[0]),t)}};t.panels[0]?t.panels[0]=e[t.panels[0].type](t.panels[0]):t.panels=[],m()};this.init=function(e){return l=jQuery.extend(!0,{},l,e),l.target?(this.onResize=l.onResize,this.$target=jQuery(l.target),this.panels=l.panels||[],this.onStateChanged=l.onStateChanged,this.onClick=l.onClick,this.onLoad=l.onLoad,this.onDataChanged=l.onDataChanged,ax5.ui.menu&&(this.menu=new ax5.ui.menu({theme:"default",position:"absolute",icons:{arrow:"▸"}})),void jQuery(window).bind("resize.ax5docker-"+this.id,function(){b()})):(console.log(ax5.info.getError("ax5docker","401","init")),this)},this.setPanels=function(e){return this.panels=e||[],m(),this},this.addModule=function(e){return a.isObject(e)&&jQuery.extend(!0,this.modules,e),this},this.repaint=function(){return m(),this},this.addPanel=function(e,n,t,r){var l="",i=void 0,o=void 0;if(0===this.panels.length||!this.panels[0])return this.setPanels([{type:"stack",panels:[t]}]);l="undefined"==e?"0":e.replace(/[a-zA-Z\[\]]+/g,"").replace(/(\d+)/g,function(e,a){return"panels["+e+"]"}),i=p(l),o=u(i),o&&"stack"==o.type&&(i=o,l=i.panelPath);var s={stack:function(e,n,t,r){var i=jQuery.extend({},e),o={stack:function(e,a){a.active&&P(e.panels),e.panels.push(a),w()},"stack-left":function(e,a){a.active&&P(e.panels),e.panels.splice(r,0,a),w()},"stack-right":function(e,a){a.active&&P(e.panels),e.panels.splice(Number(r)+1,0,a),w()},"row-left":function(e,t){var r=a.left(l,"."),o=p(r);o&&"row"==o.type?this.addPanel(o.panelPath,n,t,e.panelIndex):(e=h(l,{type:"row",panels:[]}),e.panels.push(t),e.panels.push(i),w())},"row-right":function(e,t){var r=a.left(l,"."),o=p(r);o&&"row"==o.type?this.addPanel(o.panelPath,n,t,e.panelIndex):(e=h(l,{type:"row",panels:[]}),e.panels.push(i),e.panels.push(t),w())},"column-top":function(e,t){var r=a.left(l,"."),o=p(r);o&&"column"==o.type?this.addPanel(o.panelPath,n,t,e.panelIndex):(e=h(l,{type:"column",panels:[]}),e.panels.push(t),e.panels.push(i),w())},"column-bottom":function(e,t){var r=a.left(l,"."),o=p(r);o&&"column"==o.type?this.addPanel(o.panelPath,n,t,e.panelIndex):(e=h(l,{type:"column",panels:[]}),e.panels.push(i),e.panels.push(t),w())}};n in o&&o[n].call(this,e,t),i=null,o=null},row:function(e,n,t,r){var i=jQuery.extend({},e),o={stack:function(e,a){e.panels[0]&&e.panels[0].panelPath&&this.addPanel(e.panels[0].panelPath,n,a)},"row-left":function(e,n,t){var r=a.left(l,"."),o=p(r);o&&"row"==o.type?(e.panels.splice(t,0,n),w()):(e=h(l,{type:"row",panels:[]}),e.panels.push(n),e.panels.push(i),w())},"row-right":function(e,n,t){var r=a.left(l,"."),o=p(r);o&&"row"==o.type?(e.panels.splice(t+1,0,n),w()):(e=h(l,{type:"row",panels:[]}),e.panels.push(i),e.panels.push(n),w())},"column-top":function(e,t,r){var o=a.left(l,"."),s=p(o);s&&"column"==s.type?this.addPanel(s.panelPath,n,t,e.panelIndex):(e=h(l,{type:"column",panels:[]}),e.panels.push(t),e.panels.push(i),w())},"column-bottom":function(e,t,r){var o=a.left(l,"."),s=p(o);s&&"column"==s.type?this.addPanel(s.panelPath,n,t,e.panelIndex):(e=h(l,{type:"column",panels:[]}),e.panels.push(i),e.panels.push(t),w())}};n in o&&o[n].call(this,e,t,r),o=null,i=null},column:function(e,n,t,r){var i=jQuery.extend({},e),o={stack:function(e,a){e.panels[0]&&e.panels[0].panelPath&&this.addPanel(e.panels[0].panelPath,n,a)},"row-left":function(e,t){var r=a.left(l,"."),o=p(r);o&&"row"==o.type?this.addPanel(o.panelPath,n,t,e.panelIndex):(e=h(l,{type:"row",panels:[]}),e.panels.push(t),e.panels.push(i),w())},"row-right":function(e,t){var r=a.left(l,"."),o=p(r);o&&"row"==o.type?this.addPanel(o.panelPath,n,t,e.panelIndex):(e=h(l,{type:"row",panels:[]}),e.panels.push(i),e.panels.push(t),w())},"column-top":function(e,a){e.panels.splice(r,0,a),w()},"column-bottom":function(e,a){e.panels.splice(r+1,0,a),w()}};n in o&&o[n].call(this,e,t),o=null,i=null},panel:function(e,n,t){var r=jQuery.extend({},e),i={stack:function(e,a){e=h(l,{type:"stack",panels:[]}),a.active&&P(r),e.panels.push(r),e.panels.push(a),w()},"stack-left":function(e,a){e=h(l,{type:"stack",panels:[]}),a.active&&P(r),e.panels.push(a),e.panels.push(r),w()},"stack-right":function(e,a){e=h(l,{type:"stack",panels:[]}),a.active&&P(r),e.panels.push(r),e.panels.push(a),w()},"row-left":function(e,t){var i=a.left(l,"."),o=p(i);o&&"row"==o.type?this.addPanel(o.panelPath,n,t,e.panelIndex):(e=h(l,{type:"row",panels:[]}),e.panels.push(t),e.panels.push(r),w())},"row-right":function(e,t){var i=a.left(l,"."),o=p(i);o&&"row"==o.type?this.addPanel(o.panelPath,n,t,e.panelIndex):(e=h(l,{type:"row",panels:[]}),e.panels.push(r),e.panels.push(t),w())},"column-top":function(e,t){var i=a.left(l,"."),o=p(i);o&&"column"==o.type?this.addPanel(o.panelPath,n,t,e.panelIndex):(e=h(l,{type:"column",panels:[]}),e.panels.push(t),e.panels.push(r),w())},"column-bottom":function(e,t){var i=a.left(l,"."),o=p(i);o&&"column"==o.type?this.addPanel(o.panelPath,n,t,e.panelIndex):(e=h(l,{type:"column",panels:[]}),e.panels.push(r),e.panels.push(t),w())}};n in i&&i[n].call(this,e,t),r=null,i=null}};return s[i?i.type:"stack"].call(this,i,n,t,r),this},this.removePanel=function(e){var a=p(e);return f(a,"destroy"),a=null,this},this.appendPanel=function(e,n,t){var r=$.extend({},e,{panelPath:""}),l=void 0,i=e.panelPath,o=a.right(n,".").replace(/\D/g,"");if(1==t.length)l="stack-"+t[0],r.active=!1,r.$item.removeClass("active"),f(r,"deactive");else switch(t[0]+"-"+t[1]){case"left-top":l="row-left";break;case"left-middle":l="row-left";break;case"left-bottom":l="row-left";break;case"center-top":l="column-top";break;case"center-middle":l="stack",r.active=!1,r.$item.removeClass("active"),o=void 0,f(r,"deactive");break;case"center-bottom":l="column-bottom";break;case"right-top":l="row-right";break;case"right-middle":l="row-right";break;case"right-bottom":l="row-right"}return e.panelPath===n&&(n=a.left(n,".")),h(i,null),this.addPanel(n,l,r,o),r=null,this},this.main=function(){e.docker_instance=e.docker_instance||[],e.docker_instance.push(this),arguments&&a.isObject(arguments[0])&&this.setConfig(arguments[0])}.apply(this,arguments)};return t}()),n=ax5.ui.docker}(),function(){var e=ax5.ui.docker,a=function(){return'<div data-ax5docker-pane="" data-ax5docker-path="{{panelPath}}" style="flex-grow: {{#flexGrow}}{{.}}{{/flexGrow}}{{^flexGrow}}1{{/flexGrow}};">\n <ul data-ax5docker-pane-tabs=""></ul>\n <div data-ax5docker-pane-tabs-more="">{{{icons.more}}}</div>\n <div data-ax5docker-pane-item-views=""></div>\n</div>'},n=function(){return'<li data-ax5docker-pane-tab="{{pIndex}}" data-ax5docker-path="{{panelPath}}">\n <div class="title">{{{name}}}</div>\n {{^disableClosePanel}}<div class="close-icon">{{{icons.close}}}</div>{{/disableClosePanel}}\n</li>'};e.tmpl={"stack-panel":a,"panel-label":n,get:function(a,n,t){return ax5.mustache.render(e.tmpl[a].call(this,t),n)}}}();
{
"name": "ax5ui-docker",
"version": "1.3.110",
"version": "1.3.111",
"description": "A dashboard plugin that works with Bootstrap & jQuery",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc