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) • 8.01 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxdata');
require('../../jqwidgets/jqxbuttons');
require('../../jqwidgets/jqxribbon');
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxribbon",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxribbon={}),t.ng.core)}(this,function(t,e){"use strict";function s(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,s=o.call(t),r=[];try{for(;(void 0===e||0<e--)&&!(n=s.next()).done;)r.push(n.value)}catch(h){i={error:h}}finally{try{n&&!n.done&&(o=s["return"])&&o.call(s)}finally{if(i)throw i.error}}return r}var o=function(){function t(t){this.autoCreate=!0,this.properties=["animationType","animationDelay","disabled","height","initContent","mode","popupCloseMode","position","reorder","rtl","selectedIndex","selectionMode","scrollPosition","scrollStep","scrollDelay","theme","width"],this.onChange=new e.EventEmitter,this.onReorder=new e.EventEmitter,this.onSelect=new e.EventEmitter,this.onUnselect=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),n=!1;if(this[o]!==undefined){if("object"==typeof this[o]){if(this[o]instanceof Array&&(n=this.arraysEqual(this[o],this.host.jqxRibbon(this.properties[e]))),n)return!1;this.host.jqxRibbon(this.properties[e],this[o]);continue}this[o]!==this.host.jqxRibbon(this.properties[e])&&this.host.jqxRibbon(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,n=t.classList;0<n.length&&(o=e.classList).add.apply(o,function i(){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 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,"jqxRibbon",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.jqxRibbon("setOptions",t)},t.prototype.animationType=function(t){if(t===undefined)return this.host.jqxRibbon("animationType");this.host.jqxRibbon("animationType",t)},t.prototype.animationDelay=function(t){if(t===undefined)return this.host.jqxRibbon("animationDelay");this.host.jqxRibbon("animationDelay",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxRibbon("disabled");this.host.jqxRibbon("disabled",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxRibbon("height");this.host.jqxRibbon("height",t)},t.prototype.initContent=function(t){if(t===undefined)return this.host.jqxRibbon("initContent");this.host.jqxRibbon("initContent",t)},t.prototype.mode=function(t){if(t===undefined)return this.host.jqxRibbon("mode");this.host.jqxRibbon("mode",t)},t.prototype.popupCloseMode=function(t){if(t===undefined)return this.host.jqxRibbon("popupCloseMode");this.host.jqxRibbon("popupCloseMode",t)},t.prototype.position=function(t){if(t===undefined)return this.host.jqxRibbon("position");this.host.jqxRibbon("position",t)},t.prototype.reorder=function(t){if(t===undefined)return this.host.jqxRibbon("reorder");this.host.jqxRibbon("reorder",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxRibbon("rtl");this.host.jqxRibbon("rtl",t)},t.prototype.selectedIndex=function(t){if(t===undefined)return this.host.jqxRibbon("selectedIndex");this.host.jqxRibbon("selectedIndex",t)},t.prototype.selectionMode=function(t){if(t===undefined)return this.host.jqxRibbon("selectionMode");this.host.jqxRibbon("selectionMode",t)},t.prototype.scrollPosition=function(t){if(t===undefined)return this.host.jqxRibbon("scrollPosition");this.host.jqxRibbon("scrollPosition",t)},t.prototype.scrollStep=function(t){if(t===undefined)return this.host.jqxRibbon("scrollStep");this.host.jqxRibbon("scrollStep",t)},t.prototype.scrollDelay=function(t){if(t===undefined)return this.host.jqxRibbon("scrollDelay");this.host.jqxRibbon("scrollDelay",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxRibbon("theme");this.host.jqxRibbon("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxRibbon("width");this.host.jqxRibbon("width",t)},t.prototype.addAt=function(t,e){this.host.jqxRibbon("addAt",t,e)},t.prototype.clearSelection=function(){this.host.jqxRibbon("clearSelection")},t.prototype.disableAt=function(t){this.host.jqxRibbon("disableAt",t)},t.prototype.destroy=function(){this.host.jqxRibbon("destroy")},t.prototype.enableAt=function(t){this.host.jqxRibbon("enableAt",t)},t.prototype.hideAt=function(t){this.host.jqxRibbon("hideAt",t)},t.prototype.removeAt=function(t){this.host.jqxRibbon("removeAt",t)},t.prototype.render=function(){this.host.jqxRibbon("render")},t.prototype.refresh=function(){this.host.jqxRibbon("refresh")},t.prototype.selectAt=function(t){this.host.jqxRibbon("selectAt",t)},t.prototype.showAt=function(t){this.host.jqxRibbon("showAt",t)},t.prototype.setPopupLayout=function(t,e,o,n){this.host.jqxRibbon("setPopupLayout",t,e,o,n)},t.prototype.updateAt=function(t,e){this.host.jqxRibbon("updateAt",t,e)},t.prototype.val=function(t){return t!==undefined?this.host.jqxRibbon("val",t):this.host.jqxRibbon("val")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("change",function(t){e.onChange.emit(t)}),this.host.on("reorder",function(t){e.onReorder.emit(t)}),this.host.on("select",function(t){e.onSelect.emit(t)}),this.host.on("unselect",function(t){e.onUnselect.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxRibbon",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAnimationType:[{type:e.Input,args:["animationType"]}],attrAnimationDelay:[{type:e.Input,args:["animationDelay"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrInitContent:[{type:e.Input,args:["initContent"]}],attrMode:[{type:e.Input,args:["mode"]}],attrPopupCloseMode:[{type:e.Input,args:["popupCloseMode"]}],attrPosition:[{type:e.Input,args:["position"]}],attrReorder:[{type:e.Input,args:["reorder"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrSelectedIndex:[{type:e.Input,args:["selectedIndex"]}],attrSelectionMode:[{type:e.Input,args:["selectionMode"]}],attrScrollPosition:[{type:e.Input,args:["scrollPosition"]}],attrScrollStep:[{type:e.Input,args:["scrollStep"]}],attrScrollDelay:[{type:e.Input,args:["scrollDelay"]}],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}],onReorder:[{type:e.Output}],onSelect:[{type:e.Output}],onUnselect:[{type:e.Output}]},t}(),n=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[o],exports:[o]}]}],t}();t.jqxRibbonComponent=o,t.jqxRibbonModule=n,Object.defineProperty(t,"__esModule",{value:!0})});