UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

6 lines (5 loc) 5.48 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxbuttons'); require('../../jqwidgets/jqxscrollbar'); require('../../jqwidgets/jqxpanel'); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxpanel",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxpanel={}),t.ng.core)}(this,function(t,e){"use strict";function r(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=r.next()).done;)s.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(o=r["return"])&&o.call(r)}finally{if(i)throw i.error}}return s}var o=function(){function t(t){this.autoCreate=!0,this.properties=["autoUpdate","disabled","height","rtl","sizeMode","scrollBarSize","theme","width"],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 o="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),n=!1;if(this[o]!==undefined){if("object"==typeof this[o]){if(this[o]instanceof Array&&(n=this.arraysEqual(this[o],this.host.jqxPanel(this.properties[e]))),n)return!1;this.host.jqxPanel(this.properties[e],this[o]);continue}this[o]!==this.host.jqxPanel(this.properties[e])&&this.host.jqxPanel(this.properties[e],this[o])}}},t.prototype.arraysEqual=function(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(var o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},e=0;e<this.properties.length;e++){var o="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);this[o]!==undefined&&(t[this.properties[e]]=this[o])}return t},t.prototype.moveClasses=function(t,e){var o,n=t.classList;0<n.length&&(o=e.classList).add.apply(o,function i(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(r(arguments[e]));return t}(n)),t.className=""},t.prototype.moveStyles=function(t,e){var o=t.style.cssText;e.style.cssText=o,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,"jqxPanel",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.jqxPanel("setOptions",t)},t.prototype.autoUpdate=function(t){if(t===undefined)return this.host.jqxPanel("autoUpdate");this.host.jqxPanel("autoUpdate",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxPanel("disabled");this.host.jqxPanel("disabled",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxPanel("height");this.host.jqxPanel("height",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxPanel("rtl");this.host.jqxPanel("rtl",t)},t.prototype.sizeMode=function(t){if(t===undefined)return this.host.jqxPanel("sizeMode");this.host.jqxPanel("sizeMode",t)},t.prototype.scrollBarSize=function(t){if(t===undefined)return this.host.jqxPanel("scrollBarSize");this.host.jqxPanel("scrollBarSize",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxPanel("theme");this.host.jqxPanel("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxPanel("width");this.host.jqxPanel("width",t)},t.prototype.append=function(t){this.host.jqxPanel("append",t)},t.prototype.clearcontent=function(){this.host.jqxPanel("clearcontent")},t.prototype.destroy=function(){this.host.jqxPanel("destroy")},t.prototype.focus=function(){this.host.jqxPanel("focus")},t.prototype.getScrollHeight=function(){return this.host.jqxPanel("getScrollHeight")},t.prototype.getVScrollPosition=function(){return this.host.jqxPanel("getVScrollPosition")},t.prototype.getScrollWidth=function(){return this.host.jqxPanel("getScrollWidth")},t.prototype.getHScrollPosition=function(){return this.host.jqxPanel("getHScrollPosition")},t.prototype.prepend=function(t){this.host.jqxPanel("prepend",t)},t.prototype.remove=function(t){this.host.jqxPanel("remove",t)},t.prototype.scrollTo=function(t,e){this.host.jqxPanel("scrollTo",t,e)},t.prototype.__wireEvents__=function(){},t.decorators=[{type:e.Component,args:[{selector:"jqxPanel",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAutoUpdate:[{type:e.Input,args:["autoUpdate"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrSizeMode:[{type:e.Input,args:["sizeMode"]}],attrScrollBarSize:[{type:e.Input,args:["scrollBarSize"]}],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"]}]},t}(),n=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[o],exports:[o]}]}],t}();t.jqxPanelComponent=o,t.jqxPanelModule=n,Object.defineProperty(t,"__esModule",{value:!0})});