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) 6.16 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxbuttons'); require('../../jqwidgets/jqxscrollview'); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxscrollview",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxscrollview={}),t.ng.core)}(this,function(t,e){"use strict";function n(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,r,n=o.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(i=n.next()).done;)s.push(i.value)}catch(h){r={error:h}}finally{try{i&&!i.done&&(o=n["return"])&&o.call(n)}finally{if(r)throw r.error}}return s}var o=function(){function t(t){this.autoCreate=!0,this.properties=["animationDuration","bounceEnabled","buttonsOffset","currentPage","disabled","height","moveThreshold","showButtons","slideShow","slideDuration","theme","width"],this.onPageChanged=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 o="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),i=!1;if(this[o]!==undefined){if("object"==typeof this[o]){if(this[o]instanceof Array&&(i=this.arraysEqual(this[o],this.host.jqxScrollView(this.properties[e]))),i)return!1;this.host.jqxScrollView(this.properties[e],this[o]);continue}this[o]!==this.host.jqxScrollView(this.properties[e])&&this.host.jqxScrollView(this.properties[e],this[o])}}},t.prototype.arraysEqual=function(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(var o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},e=0;e<this.properties.length;e++){var o="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);this[o]!==undefined&&(t[this.properties[e]]=this[o])}return t},t.prototype.moveClasses=function(t,e){var o,i=t.classList;0<i.length&&(o=e.classList).add.apply(o,function r(){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 o=t.style.cssText;e.style.cssText=o,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,"jqxScrollView",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.jqxScrollView("setOptions",t)},t.prototype.animationDuration=function(t){if(t===undefined)return this.host.jqxScrollView("animationDuration");this.host.jqxScrollView("animationDuration",t)},t.prototype.bounceEnabled=function(t){if(t===undefined)return this.host.jqxScrollView("bounceEnabled");this.host.jqxScrollView("bounceEnabled",t)},t.prototype.buttonsOffset=function(t){if(t===undefined)return this.host.jqxScrollView("buttonsOffset");this.host.jqxScrollView("buttonsOffset",t)},t.prototype.currentPage=function(t){if(t===undefined)return this.host.jqxScrollView("currentPage");this.host.jqxScrollView("currentPage",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxScrollView("disabled");this.host.jqxScrollView("disabled",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxScrollView("height");this.host.jqxScrollView("height",t)},t.prototype.moveThreshold=function(t){if(t===undefined)return this.host.jqxScrollView("moveThreshold");this.host.jqxScrollView("moveThreshold",t)},t.prototype.showButtons=function(t){if(t===undefined)return this.host.jqxScrollView("showButtons");this.host.jqxScrollView("showButtons",t)},t.prototype.slideShow=function(t){if(t===undefined)return this.host.jqxScrollView("slideShow");this.host.jqxScrollView("slideShow",t)},t.prototype.slideDuration=function(t){if(t===undefined)return this.host.jqxScrollView("slideDuration");this.host.jqxScrollView("slideDuration",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxScrollView("theme");this.host.jqxScrollView("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxScrollView("width");this.host.jqxScrollView("width",t)},t.prototype.back=function(){this.host.jqxScrollView("back")},t.prototype.changePage=function(t){this.host.jqxScrollView("changePage",t)},t.prototype.forward=function(){this.host.jqxScrollView("forward")},t.prototype.refresh=function(){this.host.jqxScrollView("refresh")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("pageChanged",function(t){e.onPageChanged.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxScrollView",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAnimationDuration:[{type:e.Input,args:["animationDuration"]}],attrBounceEnabled:[{type:e.Input,args:["bounceEnabled"]}],attrButtonsOffset:[{type:e.Input,args:["buttonsOffset"]}],attrCurrentPage:[{type:e.Input,args:["currentPage"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrMoveThreshold:[{type:e.Input,args:["moveThreshold"]}],attrShowButtons:[{type:e.Input,args:["showButtons"]}],attrSlideShow:[{type:e.Input,args:["slideShow"]}],attrSlideDuration:[{type:e.Input,args:["slideDuration"]}],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"]}],onPageChanged:[{type:e.Output}]},t}(),i=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[o],exports:[o]}]}],t}();t.jqxScrollViewComponent=o,t.jqxScrollViewModule=i,Object.defineProperty(t,"__esModule",{value:!0})});