UNPKG

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) 8 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxdraw'); require('../../jqwidgets/jqxgauge'); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxgauge",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxgauge={}),t.ng.core)}(this,function(t,e){"use strict";function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,s,o=n.call(t),r=[];try{for(;(void 0===e||0<e--)&&!(i=o.next()).done;)r.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=o["return"])&&n.call(o)}finally{if(s)throw s.error}}return r}var n=function(){function t(t){this.autoCreate=!0,this.properties=["animationDuration","border","caption","cap","colorScheme","disabled","easing","endAngle","height","int64","labels","min","max","pointer","radius","ranges","startAngle","showRanges","styles","ticksMajor","ticksMinor","ticksDistance","value","width"],this.onValueChanging=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 n="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),i=!1;if(this[n]!==undefined){if("object"==typeof this[n]){if(this[n]instanceof Array&&(i=this.arraysEqual(this[n],this.host.jqxGauge(this.properties[e]))),i)return!1;this.host.jqxGauge(this.properties[e],this[n]);continue}this[n]!==this.host.jqxGauge(this.properties[e])&&this.host.jqxGauge(this.properties[e],this[n])}}},t.prototype.arraysEqual=function(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},e=0;e<this.properties.length;e++){var n="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);this[n]!==undefined&&(t[this.properties[e]]=this[n])}return t},t.prototype.moveClasses=function(t,e){var n,i=t.classList;0<i.length&&(n=e.classList).add.apply(n,function s(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t}(i)),t.className=""},t.prototype.moveStyles=function(t,e){var n=t.style.cssText;e.style.cssText=n,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,"jqxGauge",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.jqxGauge("setOptions",t)},t.prototype.animationDuration=function(t){if(t===undefined)return this.host.jqxGauge("animationDuration");this.host.jqxGauge("animationDuration",t)},t.prototype.border=function(t){if(t===undefined)return this.host.jqxGauge("border");this.host.jqxGauge("border",t)},t.prototype.caption=function(t){if(t===undefined)return this.host.jqxGauge("caption");this.host.jqxGauge("caption",t)},t.prototype.cap=function(t){if(t===undefined)return this.host.jqxGauge("cap");this.host.jqxGauge("cap",t)},t.prototype.colorScheme=function(t){if(t===undefined)return this.host.jqxGauge("colorScheme");this.host.jqxGauge("colorScheme",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxGauge("disabled");this.host.jqxGauge("disabled",t)},t.prototype.easing=function(t){if(t===undefined)return this.host.jqxGauge("easing");this.host.jqxGauge("easing",t)},t.prototype.endAngle=function(t){if(t===undefined)return this.host.jqxGauge("endAngle");this.host.jqxGauge("endAngle",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxGauge("height");this.host.jqxGauge("height",t)},t.prototype.int64=function(t){if(t===undefined)return this.host.jqxGauge("int64");this.host.jqxGauge("int64",t)},t.prototype.labels=function(t){if(t===undefined)return this.host.jqxGauge("labels");this.host.jqxGauge("labels",t)},t.prototype.min=function(t){if(t===undefined)return this.host.jqxGauge("min");this.host.jqxGauge("min",t)},t.prototype.max=function(t){if(t===undefined)return this.host.jqxGauge("max");this.host.jqxGauge("max",t)},t.prototype.pointer=function(t){if(t===undefined)return this.host.jqxGauge("pointer");this.host.jqxGauge("pointer",t)},t.prototype.radius=function(t){if(t===undefined)return this.host.jqxGauge("radius");this.host.jqxGauge("radius",t)},t.prototype.ranges=function(t){if(t===undefined)return this.host.jqxGauge("ranges");this.host.jqxGauge("ranges",t)},t.prototype.startAngle=function(t){if(t===undefined)return this.host.jqxGauge("startAngle");this.host.jqxGauge("startAngle",t)},t.prototype.showRanges=function(t){if(t===undefined)return this.host.jqxGauge("showRanges");this.host.jqxGauge("showRanges",t)},t.prototype.styles=function(t){if(t===undefined)return this.host.jqxGauge("styles");this.host.jqxGauge("styles",t)},t.prototype.ticksMajor=function(t){if(t===undefined)return this.host.jqxGauge("ticksMajor");this.host.jqxGauge("ticksMajor",t)},t.prototype.ticksMinor=function(t){if(t===undefined)return this.host.jqxGauge("ticksMinor");this.host.jqxGauge("ticksMinor",t)},t.prototype.ticksDistance=function(t){if(t===undefined)return this.host.jqxGauge("ticksDistance");this.host.jqxGauge("ticksDistance",t)},t.prototype.value=function(t){if(t===undefined)return this.host.jqxGauge("value");this.host.jqxGauge("value",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxGauge("width");this.host.jqxGauge("width",t)},t.prototype.disable=function(){this.host.jqxGauge("disable")},t.prototype.enable=function(){this.host.jqxGauge("enable")},t.prototype.val=function(t){return t!==undefined?this.host.jqxGauge("val",t):this.host.jqxGauge("val")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("valueChanging",function(t){e.onValueChanging.emit(t)}),this.host.on("valueChanged",function(t){e.onValueChanged.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxGauge",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAnimationDuration:[{type:e.Input,args:["animationDuration"]}],attrBorder:[{type:e.Input,args:["border"]}],attrCaption:[{type:e.Input,args:["caption"]}],attrCap:[{type:e.Input,args:["cap"]}],attrColorScheme:[{type:e.Input,args:["colorScheme"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrEasing:[{type:e.Input,args:["easing"]}],attrEndAngle:[{type:e.Input,args:["endAngle"]}],attrInt64:[{type:e.Input,args:["int64"]}],attrLabels:[{type:e.Input,args:["labels"]}],attrMin:[{type:e.Input,args:["min"]}],attrMax:[{type:e.Input,args:["max"]}],attrPointer:[{type:e.Input,args:["pointer"]}],attrRadius:[{type:e.Input,args:["radius"]}],attrRanges:[{type:e.Input,args:["ranges"]}],attrStartAngle:[{type:e.Input,args:["startAngle"]}],attrShowRanges:[{type:e.Input,args:["showRanges"]}],attrStyles:[{type:e.Input,args:["styles"]}],attrTicksMajor:[{type:e.Input,args:["ticksMajor"]}],attrTicksMinor:[{type:e.Input,args:["ticksMinor"]}],attrTicksDistance:[{type:e.Input,args:["ticksDistance"]}],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"]}],onValueChanging:[{type:e.Output}],onValueChanged:[{type:e.Output}]},t}(),i=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[n],exports:[n]}]}],t}();t.jqxGaugeComponent=n,t.jqxGaugeModule=i,Object.defineProperty(t,"__esModule",{value:!0})});