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) • 9.05 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxdata');
require('../../jqwidgets/jqxtooltip');
require('../../jqwidgets/jqxrangeselector');
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxrangeselector",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxrangeselector={}),t.ng.core)}(this,function(t,e){"use strict";function s(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,s=r.call(t),i=[];try{for(;(void 0===e||0<e--)&&!(n=s.next()).done;)i.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=s["return"])&&r.call(s)}finally{if(o)throw o.error}}return i}var r=function(){function t(t){this.autoCreate=!0,this.properties=["disabled","groupLabelsFormatFunction","height","labelsFormat","labelsFormatFunction","labelsOnTicks","markersFormat","markersFormatFunction","majorTicksInterval","minorTicksInterval","max","min","moveOnClick","padding","range","resizable","rtl","showGroupLabels","showMinorTicks","snapToTicks","showMajorLabels","showMarkers","theme","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),n=!1;if(this[r]!==undefined){if("object"==typeof this[r]){if(this[r]instanceof Array&&(n=this.arraysEqual(this[r],this.host.jqxRangeSelector(this.properties[e]))),n)return!1;this.host.jqxRangeSelector(this.properties[e],this[r]);continue}this[r]!==this.host.jqxRangeSelector(this.properties[e])&&this.host.jqxRangeSelector(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,n=t.classList;0<n.length&&(r=e.classList).add.apply(r,function o(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(s(arguments[e]));return t}(n)),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,"jqxRangeSelector",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.jqxRangeSelector("setOptions",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxRangeSelector("disabled");this.host.jqxRangeSelector("disabled",t)},t.prototype.groupLabelsFormatFunction=function(t){if(t===undefined)return this.host.jqxRangeSelector("groupLabelsFormatFunction");this.host.jqxRangeSelector("groupLabelsFormatFunction",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxRangeSelector("height");this.host.jqxRangeSelector("height",t)},t.prototype.labelsFormat=function(t){if(t===undefined)return this.host.jqxRangeSelector("labelsFormat");this.host.jqxRangeSelector("labelsFormat",t)},t.prototype.labelsFormatFunction=function(t){if(t===undefined)return this.host.jqxRangeSelector("labelsFormatFunction");this.host.jqxRangeSelector("labelsFormatFunction",t)},t.prototype.labelsOnTicks=function(t){if(t===undefined)return this.host.jqxRangeSelector("labelsOnTicks");this.host.jqxRangeSelector("labelsOnTicks",t)},t.prototype.markersFormat=function(t){if(t===undefined)return this.host.jqxRangeSelector("markersFormat");this.host.jqxRangeSelector("markersFormat",t)},t.prototype.markersFormatFunction=function(t){if(t===undefined)return this.host.jqxRangeSelector("markersFormatFunction");this.host.jqxRangeSelector("markersFormatFunction",t)},t.prototype.majorTicksInterval=function(t){if(t===undefined)return this.host.jqxRangeSelector("majorTicksInterval");this.host.jqxRangeSelector("majorTicksInterval",t)},t.prototype.minorTicksInterval=function(t){if(t===undefined)return this.host.jqxRangeSelector("minorTicksInterval");this.host.jqxRangeSelector("minorTicksInterval",t)},t.prototype.max=function(t){if(t===undefined)return this.host.jqxRangeSelector("max");this.host.jqxRangeSelector("max",t)},t.prototype.min=function(t){if(t===undefined)return this.host.jqxRangeSelector("min");this.host.jqxRangeSelector("min",t)},t.prototype.moveOnClick=function(t){if(t===undefined)return this.host.jqxRangeSelector("moveOnClick");this.host.jqxRangeSelector("moveOnClick",t)},t.prototype.padding=function(t){if(t===undefined)return this.host.jqxRangeSelector("padding");this.host.jqxRangeSelector("padding",t)},t.prototype.range=function(t){if(t===undefined)return this.host.jqxRangeSelector("range");this.host.jqxRangeSelector("range",t)},t.prototype.resizable=function(t){if(t===undefined)return this.host.jqxRangeSelector("resizable");this.host.jqxRangeSelector("resizable",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxRangeSelector("rtl");this.host.jqxRangeSelector("rtl",t)},t.prototype.showGroupLabels=function(t){if(t===undefined)return this.host.jqxRangeSelector("showGroupLabels");this.host.jqxRangeSelector("showGroupLabels",t)},t.prototype.showMinorTicks=function(t){if(t===undefined)return this.host.jqxRangeSelector("showMinorTicks");this.host.jqxRangeSelector("showMinorTicks",t)},t.prototype.snapToTicks=function(t){if(t===undefined)return this.host.jqxRangeSelector("snapToTicks");this.host.jqxRangeSelector("snapToTicks",t)},t.prototype.showMajorLabels=function(t){if(t===undefined)return this.host.jqxRangeSelector("showMajorLabels");this.host.jqxRangeSelector("showMajorLabels",t)},t.prototype.showMarkers=function(t){if(t===undefined)return this.host.jqxRangeSelector("showMarkers");this.host.jqxRangeSelector("showMarkers",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxRangeSelector("theme");this.host.jqxRangeSelector("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxRangeSelector("width");this.host.jqxRangeSelector("width",t)},t.prototype.destroy=function(){this.host.jqxRangeSelector("destroy")},t.prototype.getRange=function(){return this.host.jqxRangeSelector("getRange")},t.prototype.render=function(){this.host.jqxRangeSelector("render")},t.prototype.refresh=function(){this.host.jqxRangeSelector("refresh")},t.prototype.setRange=function(t,e){this.host.jqxRangeSelector("setRange",t,e)},t.prototype.__wireEvents__=function(){var e=this;this.host.on("change",function(t){e.onChange.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxRangeSelector",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrDisabled:[{type:e.Input,args:["disabled"]}],attrGroupLabelsFormatFunction:[{type:e.Input,args:["groupLabelsFormatFunction"]}],attrLabelsFormat:[{type:e.Input,args:["labelsFormat"]}],attrLabelsFormatFunction:[{type:e.Input,args:["labelsFormatFunction"]}],attrLabelsOnTicks:[{type:e.Input,args:["labelsOnTicks"]}],attrMarkersFormat:[{type:e.Input,args:["markersFormat"]}],attrMarkersFormatFunction:[{type:e.Input,args:["markersFormatFunction"]}],attrMajorTicksInterval:[{type:e.Input,args:["majorTicksInterval"]}],attrMinorTicksInterval:[{type:e.Input,args:["minorTicksInterval"]}],attrMax:[{type:e.Input,args:["max"]}],attrMin:[{type:e.Input,args:["min"]}],attrMoveOnClick:[{type:e.Input,args:["moveOnClick"]}],attrPadding:[{type:e.Input,args:["padding"]}],attrRange:[{type:e.Input,args:["range"]}],attrResizable:[{type:e.Input,args:["resizable"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrShowGroupLabels:[{type:e.Input,args:["showGroupLabels"]}],attrShowMinorTicks:[{type:e.Input,args:["showMinorTicks"]}],attrSnapToTicks:[{type:e.Input,args:["snapToTicks"]}],attrShowMajorLabels:[{type:e.Input,args:["showMajorLabels"]}],attrShowMarkers:[{type:e.Input,args:["showMarkers"]}],attrTheme:[{type:e.Input,args:["theme"]}],attrWidth:[{type:e.Input,args:["width"]}],attrHeight:[{type:e.Input,args:["height"]}],autoCreate:[{type:e.Input,args:["auto-create"]}],onChange:[{type:e.Output}]},t}(),n=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[r],exports:[r]}]}],t}();t.jqxRangeSelectorComponent=r,t.jqxRangeSelectorModule=n,Object.defineProperty(t,"__esModule",{value:!0})});