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.3 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxdraw');
require('../../jqwidgets/jqxknob');
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxknob",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxknob={}),t.ng.core)}(this,function(t,n){"use strict";function i(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i["return"])&&n.call(i)}finally{if(r)throw r.error}}return s}var e=function(){function t(t){var e=this;this.autoCreate=!0,this.properties=["allowValueChangeOnClick","allowValueChangeOnDrag","allowValueChangeOnMouseWheel","changing","dragEndAngle","dragStartAngle","disabled","dial","endAngle","height","labels","marks","min","max","progressBar","pointer","pointerGrabAction","rotation","startAngle","spinner","styles","step","snapToStep","value","width"],this.onChange=new n.EventEmitter,this.elementRef=t,JQXLite(window).resize(function(){e.__updateRect__()})}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),o=!1;if(this[n]!==undefined){if("object"==typeof this[n]){if(this[n]instanceof Array&&(o=this.arraysEqual(this[n],this.host.jqxKnob(this.properties[e]))),o)return!1;this.host.jqxKnob(this.properties[e],this[n]);continue}this[n]!==this.host.jqxKnob(this.properties[e])&&this.host.jqxKnob(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,o=t.classList;0<o.length&&(n=e.classList).add.apply(n,function r(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t}(o)),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,"jqxKnob",t),this.__updateRect__())},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.jqxKnob("setOptions",t)},t.prototype.allowValueChangeOnClick=function(t){if(t===undefined)return this.host.jqxKnob("allowValueChangeOnClick");this.host.jqxKnob("allowValueChangeOnClick",t)},t.prototype.allowValueChangeOnDrag=function(t){if(t===undefined)return this.host.jqxKnob("allowValueChangeOnDrag");this.host.jqxKnob("allowValueChangeOnDrag",t)},t.prototype.allowValueChangeOnMouseWheel=function(t){if(t===undefined)return this.host.jqxKnob("allowValueChangeOnMouseWheel");this.host.jqxKnob("allowValueChangeOnMouseWheel",t)},t.prototype.changing=function(t){if(t===undefined)return this.host.jqxKnob("changing");this.host.jqxKnob("changing",t)},t.prototype.dragEndAngle=function(t){if(t===undefined)return this.host.jqxKnob("dragEndAngle");this.host.jqxKnob("dragEndAngle",t)},t.prototype.dragStartAngle=function(t){if(t===undefined)return this.host.jqxKnob("dragStartAngle");this.host.jqxKnob("dragStartAngle",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxKnob("disabled");this.host.jqxKnob("disabled",t)},t.prototype.dial=function(t){if(t===undefined)return this.host.jqxKnob("dial");this.host.jqxKnob("dial",t)},t.prototype.endAngle=function(t){if(t===undefined)return this.host.jqxKnob("endAngle");this.host.jqxKnob("endAngle",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxKnob("height");this.host.jqxKnob("height",t)},t.prototype.labels=function(t){if(t===undefined)return this.host.jqxKnob("labels");this.host.jqxKnob("labels",t)},t.prototype.marks=function(t){if(t===undefined)return this.host.jqxKnob("marks");this.host.jqxKnob("marks",t)},t.prototype.min=function(t){if(t===undefined)return this.host.jqxKnob("min");this.host.jqxKnob("min",t)},t.prototype.max=function(t){if(t===undefined)return this.host.jqxKnob("max");this.host.jqxKnob("max",t)},t.prototype.progressBar=function(t){if(t===undefined)return this.host.jqxKnob("progressBar");this.host.jqxKnob("progressBar",t)},t.prototype.pointer=function(t){if(t===undefined)return this.host.jqxKnob("pointer");this.host.jqxKnob("pointer",t)},t.prototype.pointerGrabAction=function(t){if(t===undefined)return this.host.jqxKnob("pointerGrabAction");this.host.jqxKnob("pointerGrabAction",t)},t.prototype.rotation=function(t){if(t===undefined)return this.host.jqxKnob("rotation");this.host.jqxKnob("rotation",t)},t.prototype.startAngle=function(t){if(t===undefined)return this.host.jqxKnob("startAngle");this.host.jqxKnob("startAngle",t)},t.prototype.spinner=function(t){if(t===undefined)return this.host.jqxKnob("spinner");this.host.jqxKnob("spinner",t)},t.prototype.styles=function(t){if(t===undefined)return this.host.jqxKnob("styles");this.host.jqxKnob("styles",t)},t.prototype.step=function(t){if(t===undefined)return this.host.jqxKnob("step");this.host.jqxKnob("step",t)},t.prototype.snapToStep=function(t){if(t===undefined)return this.host.jqxKnob("snapToStep");this.host.jqxKnob("snapToStep",t)},t.prototype.value=function(t){if(t===undefined)return this.host.jqxKnob("value");this.host.jqxKnob("value",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxKnob("width");this.host.jqxKnob("width",t)},t.prototype.destroy=function(){this.host.jqxKnob("destroy")},t.prototype.val=function(t){return t!==undefined?this.host.jqxKnob("val",t):this.host.jqxKnob("val")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("change",function(t){e.onChange.emit(t)})},t.decorators=[{type:n.Component,args:[{selector:"jqxKnob",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:n.ElementRef}]},t.propDecorators={attrAllowValueChangeOnClick:[{type:n.Input,args:["allowValueChangeOnClick"]}],attrAllowValueChangeOnDrag:[{type:n.Input,args:["allowValueChangeOnDrag"]}],attrAllowValueChangeOnMouseWheel:[{type:n.Input,args:["allowValueChangeOnMouseWheel"]}],attrChanging:[{type:n.Input,args:["changing"]}],attrDragEndAngle:[{type:n.Input,args:["dragEndAngle"]}],attrDragStartAngle:[{type:n.Input,args:["dragStartAngle"]}],attrDisabled:[{type:n.Input,args:["disabled"]}],attrDial:[{type:n.Input,args:["dial"]}],attrEndAngle:[{type:n.Input,args:["endAngle"]}],attrLabels:[{type:n.Input,args:["labels"]}],attrMarks:[{type:n.Input,args:["marks"]}],attrMin:[{type:n.Input,args:["min"]}],attrMax:[{type:n.Input,args:["max"]}],attrProgressBar:[{type:n.Input,args:["progressBar"]}],attrPointer:[{type:n.Input,args:["pointer"]}],attrPointerGrabAction:[{type:n.Input,args:["pointerGrabAction"]}],attrRotation:[{type:n.Input,args:["rotation"]}],attrStartAngle:[{type:n.Input,args:["startAngle"]}],attrSpinner:[{type:n.Input,args:["spinner"]}],attrStyles:[{type:n.Input,args:["styles"]}],attrStep:[{type:n.Input,args:["step"]}],attrSnapToStep:[{type:n.Input,args:["snapToStep"]}],attrValue:[{type:n.Input,args:["value"]}],attrWidth:[{type:n.Input,args:["width"]}],attrHeight:[{type:n.Input,args:["height"]}],autoCreate:[{type:n.Input,args:["auto-create"]}],onChange:[{type:n.Output}]},t}(),o=function(){function t(){}return t.decorators=[{type:n.NgModule,args:[{imports:[],declarations:[e],exports:[e]}]}],t}();t.jqxKnobComponent=e,t.jqxKnobModule=o,Object.defineProperty(t,"__esModule",{value:!0})});