jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
4 lines (3 loc) • 5.07 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxloader');
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxloader",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxloader={}),t.ng.core)}(this,function(t,e){"use strict";function s(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,r,s=o.call(t),n=[];try{for(;(void 0===e||0<e--)&&!(i=s.next()).done;)n.push(i.value)}catch(h){r={error:h}}finally{try{i&&!i.done&&(o=s["return"])&&o.call(s)}finally{if(r)throw r.error}}return n}var o=function(){function t(t){this.autoCreate=!0,this.properties=["autoOpen","height","html","isModal","imagePosition","rtl","text","textPosition","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),i=!1;if(this[o]!==undefined){if("object"==typeof this[o]){if(this[o]instanceof Array&&(i=this.arraysEqual(this[o],this.host.jqxLoader(this.properties[e]))),i)return!1;this.host.jqxLoader(this.properties[e],this[o]);continue}this[o]!==this.host.jqxLoader(this.properties[e])&&this.host.jqxLoader(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,i=t.classList;0<i.length&&(o=e.classList).add.apply(o,function r(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}(i)),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,"jqxLoader",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.jqxLoader("setOptions",t)},t.prototype.autoOpen=function(t){if(t===undefined)return this.host.jqxLoader("autoOpen");this.host.jqxLoader("autoOpen",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxLoader("height");this.host.jqxLoader("height",t)},t.prototype.html=function(t){if(t===undefined)return this.host.jqxLoader("html");this.host.jqxLoader("html",t)},t.prototype.isModal=function(t){if(t===undefined)return this.host.jqxLoader("isModal");this.host.jqxLoader("isModal",t)},t.prototype.imagePosition=function(t){if(t===undefined)return this.host.jqxLoader("imagePosition");this.host.jqxLoader("imagePosition",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxLoader("rtl");this.host.jqxLoader("rtl",t)},t.prototype.text=function(t){if(t===undefined)return this.host.jqxLoader("text");this.host.jqxLoader("text",t)},t.prototype.textPosition=function(t){if(t===undefined)return this.host.jqxLoader("textPosition");this.host.jqxLoader("textPosition",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxLoader("theme");this.host.jqxLoader("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxLoader("width");this.host.jqxLoader("width",t)},t.prototype.close=function(){this.host.jqxLoader("close")},t.prototype.open=function(t,e){this.host.jqxLoader("open",t,e)},t.prototype.__wireEvents__=function(){},t.decorators=[{type:e.Component,args:[{selector:"jqxLoader",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAutoOpen:[{type:e.Input,args:["autoOpen"]}],attrHtml:[{type:e.Input,args:["html"]}],attrIsModal:[{type:e.Input,args:["isModal"]}],attrImagePosition:[{type:e.Input,args:["imagePosition"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrText:[{type:e.Input,args:["text"]}],attrTextPosition:[{type:e.Input,args:["textPosition"]}],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}(),i=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[o],exports:[o]}]}],t}();t.jqxLoaderComponent=o,t.jqxLoaderModule=i,Object.defineProperty(t,"__esModule",{value:!0})});