UNPKG

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) 6.76 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxprogressbar'); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxprogressbar",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxprogressbar={}),t.ng.core)}(this,function(t,e){"use strict";function n(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var s,o,n=r.call(t),i=[];try{for(;(void 0===e||0<e--)&&!(s=n.next()).done;)i.push(s.value)}catch(a){o={error:a}}finally{try{s&&!s.done&&(r=n["return"])&&r.call(n)}finally{if(o)throw o.error}}return i}var r=function(){function t(t){this.autoCreate=!0,this.properties=["animationDuration","colorRanges","disabled","height","layout","max","min","orientation","rtl","renderText","showText","template","theme","value","width"],this.onComplete=new e.EventEmitter,this.onInvalidValue=new e.EventEmitter,this.onValueChanged=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 r="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),s=!1;if(this[r]!==undefined){if("object"==typeof this[r]){if(this[r]instanceof Array&&(s=this.arraysEqual(this[r],this.host.jqxProgressBar(this.properties[e]))),s)return!1;this.host.jqxProgressBar(this.properties[e],this[r]);continue}this[r]!==this.host.jqxProgressBar(this.properties[e])&&this.host.jqxProgressBar(this.properties[e],this[r])}}},t.prototype.arraysEqual=function(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},e=0;e<this.properties.length;e++){var r="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);this[r]!==undefined&&(t[this.properties[e]]=this[r])}return t},t.prototype.moveClasses=function(t,e){var r,s=t.classList;0<s.length&&(r=e.classList).add.apply(r,function o(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(n(arguments[e]));return t}(s)),t.className=""},t.prototype.moveStyles=function(t,e){var r=t.style.cssText;e.style.cssText=r,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,"jqxProgressBar",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.jqxProgressBar("setOptions",t)},t.prototype.animationDuration=function(t){if(t===undefined)return this.host.jqxProgressBar("animationDuration");this.host.jqxProgressBar("animationDuration",t)},t.prototype.colorRanges=function(t){if(t===undefined)return this.host.jqxProgressBar("colorRanges");this.host.jqxProgressBar("colorRanges",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxProgressBar("disabled");this.host.jqxProgressBar("disabled",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxProgressBar("height");this.host.jqxProgressBar("height",t)},t.prototype.layout=function(t){if(t===undefined)return this.host.jqxProgressBar("layout");this.host.jqxProgressBar("layout",t)},t.prototype.max=function(t){if(t===undefined)return this.host.jqxProgressBar("max");this.host.jqxProgressBar("max",t)},t.prototype.min=function(t){if(t===undefined)return this.host.jqxProgressBar("min");this.host.jqxProgressBar("min",t)},t.prototype.orientation=function(t){if(t===undefined)return this.host.jqxProgressBar("orientation");this.host.jqxProgressBar("orientation",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxProgressBar("rtl");this.host.jqxProgressBar("rtl",t)},t.prototype.renderText=function(t){if(t===undefined)return this.host.jqxProgressBar("renderText");this.host.jqxProgressBar("renderText",t)},t.prototype.showText=function(t){if(t===undefined)return this.host.jqxProgressBar("showText");this.host.jqxProgressBar("showText",t)},t.prototype.template=function(t){if(t===undefined)return this.host.jqxProgressBar("template");this.host.jqxProgressBar("template",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxProgressBar("theme");this.host.jqxProgressBar("theme",t)},t.prototype.value=function(t){if(t===undefined)return this.host.jqxProgressBar("value");this.host.jqxProgressBar("value",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxProgressBar("width");this.host.jqxProgressBar("width",t)},t.prototype.actualValue=function(t){this.host.jqxProgressBar("actualValue",t)},t.prototype.destroy=function(){this.host.jqxProgressBar("destroy")},t.prototype.val=function(t){return t!==undefined?this.host.jqxProgressBar("val",t):this.host.jqxProgressBar("val")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("complete",function(t){e.onComplete.emit(t)}),this.host.on("invalidValue",function(t){e.onInvalidValue.emit(t)}),this.host.on("valueChanged",function(t){e.onValueChanged.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxProgressBar",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAnimationDuration:[{type:e.Input,args:["animationDuration"]}],attrColorRanges:[{type:e.Input,args:["colorRanges"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrLayout:[{type:e.Input,args:["layout"]}],attrMax:[{type:e.Input,args:["max"]}],attrMin:[{type:e.Input,args:["min"]}],attrOrientation:[{type:e.Input,args:["orientation"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrRenderText:[{type:e.Input,args:["renderText"]}],attrShowText:[{type:e.Input,args:["showText"]}],attrTemplate:[{type:e.Input,args:["template"]}],attrTheme:[{type:e.Input,args:["theme"]}],attrValue:[{type:e.Input,args:["value"]}],attrWidth:[{type:e.Input,args:["width"]}],attrHeight:[{type:e.Input,args:["height"]}],autoCreate:[{type:e.Input,args:["auto-create"]}],onComplete:[{type:e.Output}],onInvalidValue:[{type:e.Output}],onValueChanged:[{type:e.Output}]},t}(),s=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[r],exports:[r]}]}],t}();t.jqxProgressBarComponent=r,t.jqxProgressBarModule=s,Object.defineProperty(t,"__esModule",{value:!0})});