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.54 kB
JavaScript
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/jqxlineargauge",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxlineargauge={}),t.ng.core)}(this,function(t,e){"use strict";function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,a=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(i=a.next()).done;)s.push(i.value)}catch(o){r={error:o}}finally{try{i&&!i.done&&(n=a["return"])&&n.call(a)}finally{if(r)throw r.error}}return s}var n=function(){function t(t){this.autoCreate=!0,this.properties=["animationDuration","background","colorScheme","disabled","easing","height","int64","labels","min","max","orientation","pointer","rangesOffset","rangeSize","ranges","showRanges","scaleStyle","scaleLength","ticksOffset","ticksPosition","ticksMinor","ticksMajor","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.jqxLinearGauge(this.properties[e]))),i)return!1;this.host.jqxLinearGauge(this.properties[e],this[n]);continue}this[n]!==this.host.jqxLinearGauge(this.properties[e])&&this.host.jqxLinearGauge(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 r(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(a(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,"jqxLinearGauge",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.jqxLinearGauge("setOptions",t)},t.prototype.animationDuration=function(t){if(t===undefined)return this.host.jqxLinearGauge("animationDuration");this.host.jqxLinearGauge("animationDuration",t)},t.prototype.background=function(t){if(t===undefined)return this.host.jqxLinearGauge("background");this.host.jqxLinearGauge("background",t)},t.prototype.colorScheme=function(t){if(t===undefined)return this.host.jqxLinearGauge("colorScheme");this.host.jqxLinearGauge("colorScheme",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxLinearGauge("disabled");this.host.jqxLinearGauge("disabled",t)},t.prototype.easing=function(t){if(t===undefined)return this.host.jqxLinearGauge("easing");this.host.jqxLinearGauge("easing",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxLinearGauge("height");this.host.jqxLinearGauge("height",t)},t.prototype.int64=function(t){if(t===undefined)return this.host.jqxLinearGauge("int64");this.host.jqxLinearGauge("int64",t)},t.prototype.labels=function(t){if(t===undefined)return this.host.jqxLinearGauge("labels");this.host.jqxLinearGauge("labels",t)},t.prototype.min=function(t){if(t===undefined)return this.host.jqxLinearGauge("min");this.host.jqxLinearGauge("min",t)},t.prototype.max=function(t){if(t===undefined)return this.host.jqxLinearGauge("max");this.host.jqxLinearGauge("max",t)},t.prototype.orientation=function(t){if(t===undefined)return this.host.jqxLinearGauge("orientation");this.host.jqxLinearGauge("orientation",t)},t.prototype.pointer=function(t){if(t===undefined)return this.host.jqxLinearGauge("pointer");this.host.jqxLinearGauge("pointer",t)},t.prototype.rangesOffset=function(t){if(t===undefined)return this.host.jqxLinearGauge("rangesOffset");this.host.jqxLinearGauge("rangesOffset",t)},t.prototype.rangeSize=function(t){if(t===undefined)return this.host.jqxLinearGauge("rangeSize");this.host.jqxLinearGauge("rangeSize",t)},t.prototype.ranges=function(t){if(t===undefined)return this.host.jqxLinearGauge("ranges");this.host.jqxLinearGauge("ranges",t)},t.prototype.showRanges=function(t){if(t===undefined)return this.host.jqxLinearGauge("showRanges");this.host.jqxLinearGauge("showRanges",t)},t.prototype.scaleStyle=function(t){if(t===undefined)return this.host.jqxLinearGauge("scaleStyle");this.host.jqxLinearGauge("scaleStyle",t)},t.prototype.scaleLength=function(t){if(t===undefined)return this.host.jqxLinearGauge("scaleLength");this.host.jqxLinearGauge("scaleLength",t)},t.prototype.ticksOffset=function(t){if(t===undefined)return this.host.jqxLinearGauge("ticksOffset");this.host.jqxLinearGauge("ticksOffset",t)},t.prototype.ticksPosition=function(t){if(t===undefined)return this.host.jqxLinearGauge("ticksPosition");this.host.jqxLinearGauge("ticksPosition",t)},t.prototype.ticksMinor=function(t){if(t===undefined)return this.host.jqxLinearGauge("ticksMinor");this.host.jqxLinearGauge("ticksMinor",t)},t.prototype.ticksMajor=function(t){if(t===undefined)return this.host.jqxLinearGauge("ticksMajor");this.host.jqxLinearGauge("ticksMajor",t)},t.prototype.value=function(t){if(t===undefined)return this.host.jqxLinearGauge("value");this.host.jqxLinearGauge("value",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxLinearGauge("width");this.host.jqxLinearGauge("width",t)},t.prototype.disable=function(){this.host.jqxLinearGauge("disable")},t.prototype.enable=function(){this.host.jqxLinearGauge("enable")},t.prototype.val=function(t){return t!==undefined?this.host.jqxLinearGauge("val",t):this.host.jqxLinearGauge("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:"jqxLinearGauge",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAnimationDuration:[{type:e.Input,args:["animationDuration"]}],attrBackground:[{type:e.Input,args:["background"]}],attrColorScheme:[{type:e.Input,args:["colorScheme"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrEasing:[{type:e.Input,args:["easing"]}],attrInt64:[{type:e.Input,args:["int64"]}],attrLabels:[{type:e.Input,args:["labels"]}],attrMin:[{type:e.Input,args:["min"]}],attrMax:[{type:e.Input,args:["max"]}],attrOrientation:[{type:e.Input,args:["orientation"]}],attrPointer:[{type:e.Input,args:["pointer"]}],attrRangesOffset:[{type:e.Input,args:["rangesOffset"]}],attrRangeSize:[{type:e.Input,args:["rangeSize"]}],attrRanges:[{type:e.Input,args:["ranges"]}],attrShowRanges:[{type:e.Input,args:["showRanges"]}],attrScaleStyle:[{type:e.Input,args:["scaleStyle"]}],attrScaleLength:[{type:e.Input,args:["scaleLength"]}],attrTicksOffset:[{type:e.Input,args:["ticksOffset"]}],attrTicksPosition:[{type:e.Input,args:["ticksPosition"]}],attrTicksMinor:[{type:e.Input,args:["ticksMinor"]}],attrTicksMajor:[{type:e.Input,args:["ticksMajor"]}],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.jqxLinearGaugeComponent=n,t.jqxLinearGaugeModule=i,Object.defineProperty(t,"__esModule",{value:!0})});