UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

6 lines (5 loc) 7.21 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxdata'); require('../../jqwidgets/jqxtooltip'); require('../../jqwidgets/jqxbulletchart'); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxbulletchart",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxbulletchart={}),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 i,o,n=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n["return"])&&r.call(n)}finally{if(o)throw o.error}}return s}var r=function(){function t(t){this.autoCreate=!0,this.properties=["animationDuration","barSize","description","disabled","height","labelsFormat","labelsFormatFunction","orientation","pointer","rtl","ranges","showTooltip","target","ticks","title","tooltipFormatFunction","width"],this.onChange=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),i=!1;if(this[r]!==undefined){if("object"==typeof this[r]){if(this[r]instanceof Array&&(i=this.arraysEqual(this[r],this.host.jqxBulletChart(this.properties[e]))),i)return!1;this.host.jqxBulletChart(this.properties[e],this[r]);continue}this[r]!==this.host.jqxBulletChart(this.properties[e])&&this.host.jqxBulletChart(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,i=t.classList;0<i.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}(i)),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,"jqxBulletChart",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.jqxBulletChart("setOptions",t)},t.prototype.animationDuration=function(t){if(t===undefined)return this.host.jqxBulletChart("animationDuration");this.host.jqxBulletChart("animationDuration",t)},t.prototype.barSize=function(t){if(t===undefined)return this.host.jqxBulletChart("barSize");this.host.jqxBulletChart("barSize",t)},t.prototype.description=function(t){if(t===undefined)return this.host.jqxBulletChart("description");this.host.jqxBulletChart("description",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxBulletChart("disabled");this.host.jqxBulletChart("disabled",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxBulletChart("height");this.host.jqxBulletChart("height",t)},t.prototype.labelsFormat=function(t){if(t===undefined)return this.host.jqxBulletChart("labelsFormat");this.host.jqxBulletChart("labelsFormat",t)},t.prototype.labelsFormatFunction=function(t){if(t===undefined)return this.host.jqxBulletChart("labelsFormatFunction");this.host.jqxBulletChart("labelsFormatFunction",t)},t.prototype.orientation=function(t){if(t===undefined)return this.host.jqxBulletChart("orientation");this.host.jqxBulletChart("orientation",t)},t.prototype.pointer=function(t){if(t===undefined)return this.host.jqxBulletChart("pointer");this.host.jqxBulletChart("pointer",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxBulletChart("rtl");this.host.jqxBulletChart("rtl",t)},t.prototype.ranges=function(t){if(t===undefined)return this.host.jqxBulletChart("ranges");this.host.jqxBulletChart("ranges",t)},t.prototype.showTooltip=function(t){if(t===undefined)return this.host.jqxBulletChart("showTooltip");this.host.jqxBulletChart("showTooltip",t)},t.prototype.target=function(t){if(t===undefined)return this.host.jqxBulletChart("target");this.host.jqxBulletChart("target",t)},t.prototype.ticks=function(t){if(t===undefined)return this.host.jqxBulletChart("ticks");this.host.jqxBulletChart("ticks",t)},t.prototype.title=function(t){if(t===undefined)return this.host.jqxBulletChart("title");this.host.jqxBulletChart("title",t)},t.prototype.tooltipFormatFunction=function(t){if(t===undefined)return this.host.jqxBulletChart("tooltipFormatFunction");this.host.jqxBulletChart("tooltipFormatFunction",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxBulletChart("width");this.host.jqxBulletChart("width",t)},t.prototype.destroy=function(){this.host.jqxBulletChart("destroy")},t.prototype.render=function(){this.host.jqxBulletChart("render")},t.prototype.refresh=function(){this.host.jqxBulletChart("refresh")},t.prototype.val=function(t){return t!==undefined?this.host.jqxBulletChart("val",t):this.host.jqxBulletChart("val")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("change",function(t){e.onChange.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxBulletChart",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAnimationDuration:[{type:e.Input,args:["animationDuration"]}],attrBarSize:[{type:e.Input,args:["barSize"]}],attrDescription:[{type:e.Input,args:["description"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrLabelsFormat:[{type:e.Input,args:["labelsFormat"]}],attrLabelsFormatFunction:[{type:e.Input,args:["labelsFormatFunction"]}],attrOrientation:[{type:e.Input,args:["orientation"]}],attrPointer:[{type:e.Input,args:["pointer"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrRanges:[{type:e.Input,args:["ranges"]}],attrShowTooltip:[{type:e.Input,args:["showTooltip"]}],attrTarget:[{type:e.Input,args:["target"]}],attrTicks:[{type:e.Input,args:["ticks"]}],attrTitle:[{type:e.Input,args:["title"]}],attrTooltipFormatFunction:[{type:e.Input,args:["tooltipFormatFunction"]}],attrWidth:[{type:e.Input,args:["width"]}],attrHeight:[{type:e.Input,args:["height"]}],autoCreate:[{type:e.Input,args:["auto-create"]}],onChange:[{type:e.Output}]},t}(),i=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[r],exports:[r]}]}],t}();t.jqxBulletChartComponent=r,t.jqxBulletChartModule=i,Object.defineProperty(t,"__esModule",{value:!0})});