jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
5 lines (4 loc) • 5.92 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxbuttons');
require('../../jqwidgets/jqxsplitter');
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxsplitter",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxsplitter={}),t.ng.core)}(this,function(t,e){"use strict";function n(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,s,n=i.call(t),o=[];try{for(;(void 0===e||0<e--)&&!(r=n.next()).done;)o.push(r.value)}catch(p){s={error:p}}finally{try{r&&!r.done&&(i=n["return"])&&i.call(n)}finally{if(s)throw s.error}}return o}var i=function(){function t(t){this.autoCreate=!0,this.properties=["disabled","height","orientation","panels","resizable","splitBarSize","showSplitBar","theme","width"],this.onCollapsed=new e.EventEmitter,this.onExpanded=new e.EventEmitter,this.onResize=new e.EventEmitter,this.onResizeStart=new e.EventEmitter,this.elementRef=t}return t.prototype.ngOnInit=function(){this.autoCreate&&this.createComponent()},t.prototype.ngOnChanges=function(t){if(this.host)for(var e=0;e<this.properties.length;e++){var i="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),r=!1;if(this[i]!==undefined){if("object"==typeof this[i]){if(this[i]instanceof Array&&(r=this.arraysEqual(this[i],this.host.jqxSplitter(this.properties[e]))),r)return!1;this.host.jqxSplitter(this.properties[e],this[i]);continue}this[i]!==this.host.jqxSplitter(this.properties[e])&&this.host.jqxSplitter(this.properties[e],this[i])}}},t.prototype.arraysEqual=function(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},e=0;e<this.properties.length;e++){var i="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);this[i]!==undefined&&(t[this.properties[e]]=this[i])}return t},t.prototype.moveClasses=function(t,e){var i,r=t.classList;0<r.length&&(i=e.classList).add.apply(i,function s(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(n(arguments[e]));return t}(r)),t.className=""},t.prototype.moveStyles=function(t,e){var i=t.style.cssText;e.style.cssText=i,t.style.cssText=""},t.prototype.createComponent=function(t){this.host||(t?JQXLite.extend(t,this.manageAttributes()):t=this.manageAttributes(),this.host=JQXLite(this.elementRef.nativeElement.firstChild),this.moveClasses(this.elementRef.nativeElement,this.host[0]),this.moveStyles(this.elementRef.nativeElement,this.host[0]),this.__wireEvents__(),this.widgetObject=jqwidgets.createInstance(this.host,"jqxSplitter",t))},t.prototype.createWidget=function(t){this.createComponent(t)},t.prototype.__updateRect__=function(){this.host&&this.host.css({width:this.attrWidth,height:this.attrHeight})},t.prototype.setOptions=function(t){this.host.jqxSplitter("setOptions",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxSplitter("disabled");this.host.jqxSplitter("disabled",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxSplitter("height");this.host.jqxSplitter("height",t)},t.prototype.orientation=function(t){if(t===undefined)return this.host.jqxSplitter("orientation");this.host.jqxSplitter("orientation",t)},t.prototype.panels=function(t){if(t===undefined)return this.host.jqxSplitter("panels");this.host.jqxSplitter("panels",t)},t.prototype.resizable=function(t){if(t===undefined)return this.host.jqxSplitter("resizable");this.host.jqxSplitter("resizable",t)},t.prototype.splitBarSize=function(t){if(t===undefined)return this.host.jqxSplitter("splitBarSize");this.host.jqxSplitter("splitBarSize",t)},t.prototype.showSplitBar=function(t){if(t===undefined)return this.host.jqxSplitter("showSplitBar");this.host.jqxSplitter("showSplitBar",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxSplitter("theme");this.host.jqxSplitter("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxSplitter("width");this.host.jqxSplitter("width",t)},t.prototype.collapse=function(){this.host.jqxSplitter("collapse")},t.prototype.destroy=function(){this.host.jqxSplitter("destroy")},t.prototype.disable=function(){this.host.jqxSplitter("disable")},t.prototype.enable=function(){this.host.jqxSplitter("enable")},t.prototype.expand=function(){this.host.jqxSplitter("expand")},t.prototype.render=function(){this.host.jqxSplitter("render")},t.prototype.refresh=function(){this.host.jqxSplitter("refresh")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("collapsed",function(t){e.onCollapsed.emit(t)}),this.host.on("expanded",function(t){e.onExpanded.emit(t)}),this.host.on("resize",function(t){e.onResize.emit(t)}),this.host.on("resizeStart",function(t){e.onResizeStart.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxSplitter",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrDisabled:[{type:e.Input,args:["disabled"]}],attrOrientation:[{type:e.Input,args:["orientation"]}],attrPanels:[{type:e.Input,args:["panels"]}],attrResizable:[{type:e.Input,args:["resizable"]}],attrSplitBarSize:[{type:e.Input,args:["splitBarSize"]}],attrShowSplitBar:[{type:e.Input,args:["showSplitBar"]}],attrTheme:[{type:e.Input,args:["theme"]}],attrWidth:[{type:e.Input,args:["width"]}],attrHeight:[{type:e.Input,args:["height"]}],autoCreate:[{type:e.Input,args:["auto-create"]}],onCollapsed:[{type:e.Output}],onExpanded:[{type:e.Output}],onResize:[{type:e.Output}],onResizeStart:[{type:e.Output}]},t}(),r=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[i],exports:[i]}]}],t}();t.jqxSplitterComponent=i,t.jqxSplitterModule=r,Object.defineProperty(t,"__esModule",{value:!0})});