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) • 12 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxbuttons');
require('../../jqwidgets/jqxtabs');
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxtabs",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxtabs={}),t.ng.core)}(this,function(t,e){"use strict";function i(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,s,i=o.call(t),r=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)r.push(n.value)}catch(a){s={error:a}}finally{try{n&&!n.done&&(o=i["return"])&&o.call(i)}finally{if(s)throw s.error}}return r}var o=function(){function t(t){this.autoCreate=!0,this.properties=["animationType","autoHeight","closeButtonSize","collapsible","contentTransitionDuration","disabled","enabledHover","enableScrollAnimation","enableDropAnimation","height","initTabContent","keyboardNavigation","next","previous","position","reorder","rtl","scrollAnimationDuration","selectedItem","selectionTracker","scrollable","scrollPosition","scrollStep","showCloseButtons","toggleMode","theme","width"],this.onAdd=new e.EventEmitter,this.onCollapsed=new e.EventEmitter,this.onDragStart=new e.EventEmitter,this.onDragEnd=new e.EventEmitter,this.onExpanded=new e.EventEmitter,this.onRemoved=new e.EventEmitter,this.onSelecting=new e.EventEmitter,this.onSelected=new e.EventEmitter,this.onTabclick=new e.EventEmitter,this.onUnselecting=new e.EventEmitter,this.onUnselected=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.jqxTabs(this.properties[e]))),n)return!1;this.host.jqxTabs(this.properties[e],this[o]);continue}this[o]!==this.host.jqxTabs(this.properties[e])&&this.host.jqxTabs(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 s(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(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,"jqxTabs",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.jqxTabs("setOptions",t)},t.prototype.animationType=function(t){if(t===undefined)return this.host.jqxTabs("animationType");this.host.jqxTabs("animationType",t)},t.prototype.autoHeight=function(t){if(t===undefined)return this.host.jqxTabs("autoHeight");this.host.jqxTabs("autoHeight",t)},t.prototype.closeButtonSize=function(t){if(t===undefined)return this.host.jqxTabs("closeButtonSize");this.host.jqxTabs("closeButtonSize",t)},t.prototype.collapsible=function(t){if(t===undefined)return this.host.jqxTabs("collapsible");this.host.jqxTabs("collapsible",t)},t.prototype.contentTransitionDuration=function(t){if(t===undefined)return this.host.jqxTabs("contentTransitionDuration");this.host.jqxTabs("contentTransitionDuration",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxTabs("disabled");this.host.jqxTabs("disabled",t)},t.prototype.enabledHover=function(t){if(t===undefined)return this.host.jqxTabs("enabledHover");this.host.jqxTabs("enabledHover",t)},t.prototype.enableScrollAnimation=function(t){if(t===undefined)return this.host.jqxTabs("enableScrollAnimation");this.host.jqxTabs("enableScrollAnimation",t)},t.prototype.enableDropAnimation=function(t){if(t===undefined)return this.host.jqxTabs("enableDropAnimation");this.host.jqxTabs("enableDropAnimation",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxTabs("height");this.host.jqxTabs("height",t)},t.prototype.initTabContent=function(t){if(t===undefined)return this.host.jqxTabs("initTabContent");this.host.jqxTabs("initTabContent",t)},t.prototype.keyboardNavigation=function(t){if(t===undefined)return this.host.jqxTabs("keyboardNavigation");this.host.jqxTabs("keyboardNavigation",t)},t.prototype.next=function(t){if(t===undefined)return this.host.jqxTabs("next");this.host.jqxTabs("next",t)},t.prototype.previous=function(t){if(t===undefined)return this.host.jqxTabs("previous");this.host.jqxTabs("previous",t)},t.prototype.position=function(t){if(t===undefined)return this.host.jqxTabs("position");this.host.jqxTabs("position",t)},t.prototype.reorder=function(t){if(t===undefined)return this.host.jqxTabs("reorder");this.host.jqxTabs("reorder",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxTabs("rtl");this.host.jqxTabs("rtl",t)},t.prototype.scrollAnimationDuration=function(t){if(t===undefined)return this.host.jqxTabs("scrollAnimationDuration");this.host.jqxTabs("scrollAnimationDuration",t)},t.prototype.selectedItem=function(t){if(t===undefined)return this.host.jqxTabs("selectedItem");this.host.jqxTabs("selectedItem",t)},t.prototype.selectionTracker=function(t){if(t===undefined)return this.host.jqxTabs("selectionTracker");this.host.jqxTabs("selectionTracker",t)},t.prototype.scrollable=function(t){if(t===undefined)return this.host.jqxTabs("scrollable");this.host.jqxTabs("scrollable",t)},t.prototype.scrollPosition=function(t){if(t===undefined)return this.host.jqxTabs("scrollPosition");this.host.jqxTabs("scrollPosition",t)},t.prototype.scrollStep=function(t){if(t===undefined)return this.host.jqxTabs("scrollStep");this.host.jqxTabs("scrollStep",t)},t.prototype.showCloseButtons=function(t){if(t===undefined)return this.host.jqxTabs("showCloseButtons");this.host.jqxTabs("showCloseButtons",t)},t.prototype.toggleMode=function(t){if(t===undefined)return this.host.jqxTabs("toggleMode");this.host.jqxTabs("toggleMode",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxTabs("theme");this.host.jqxTabs("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxTabs("width");this.host.jqxTabs("width",t)},t.prototype.addAt=function(t,e,o){this.host.jqxTabs("addAt",t,e,o)},t.prototype.addFirst=function(t,e){this.host.jqxTabs("addFirst",t,e)},t.prototype.addLast=function(t,e){this.host.jqxTabs("addLast",t,e)},t.prototype.collapse=function(){this.host.jqxTabs("collapse")},t.prototype.disable=function(){this.host.jqxTabs("disable")},t.prototype.disableAt=function(t){this.host.jqxTabs("disableAt",t)},t.prototype.destroy=function(){this.host.jqxTabs("destroy")},t.prototype.ensureVisible=function(t){this.host.jqxTabs("ensureVisible",t)},t.prototype.enableAt=function(t){this.host.jqxTabs("enableAt",t)},t.prototype.expand=function(){this.host.jqxTabs("expand")},t.prototype.enable=function(){this.host.jqxTabs("enable")},t.prototype.focus=function(){this.host.jqxTabs("focus")},t.prototype.getTitleAt=function(t){return this.host.jqxTabs("getTitleAt",t)},t.prototype.getContentAt=function(t){return this.host.jqxTabs("getContentAt",t)},t.prototype.getDisabledTabsCount=function(){return this.host.jqxTabs("getDisabledTabsCount")},t.prototype.hideCloseButtonAt=function(t){this.host.jqxTabs("hideCloseButtonAt",t)},t.prototype.hideAllCloseButtons=function(){this.host.jqxTabs("hideAllCloseButtons")},t.prototype.length=function(){return this.host.jqxTabs("length")},t.prototype.removeAt=function(t){this.host.jqxTabs("removeAt",t)},t.prototype.removeFirst=function(){this.host.jqxTabs("removeFirst")},t.prototype.removeLast=function(){this.host.jqxTabs("removeLast")},t.prototype.select=function(t){this.host.jqxTabs("select",t)},t.prototype.setContentAt=function(t,e){this.host.jqxTabs("setContentAt",t,e)},t.prototype.setTitleAt=function(t,e){this.host.jqxTabs("setTitleAt",t,e)},t.prototype.showCloseButtonAt=function(t){this.host.jqxTabs("showCloseButtonAt",t)},t.prototype.showAllCloseButtons=function(){this.host.jqxTabs("showAllCloseButtons")},t.prototype.val=function(t){return t!==undefined?this.host.jqxTabs("val",t):this.host.jqxTabs("val")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("add",function(t){e.onAdd.emit(t)}),this.host.on("collapsed",function(t){e.onCollapsed.emit(t)}),this.host.on("dragStart",function(t){e.onDragStart.emit(t)}),this.host.on("dragEnd",function(t){e.onDragEnd.emit(t)}),this.host.on("expanded",function(t){e.onExpanded.emit(t)}),this.host.on("removed",function(t){e.onRemoved.emit(t)}),this.host.on("selecting",function(t){e.onSelecting.emit(t)}),this.host.on("selected",function(t){e.onSelected.emit(t)}),this.host.on("tabclick",function(t){e.onTabclick.emit(t)}),this.host.on("unselecting",function(t){e.onUnselecting.emit(t)}),this.host.on("unselected",function(t){e.onUnselected.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxTabs",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAnimationType:[{type:e.Input,args:["animationType"]}],attrAutoHeight:[{type:e.Input,args:["autoHeight"]}],attrCloseButtonSize:[{type:e.Input,args:["closeButtonSize"]}],attrCollapsible:[{type:e.Input,args:["collapsible"]}],attrContentTransitionDuration:[{type:e.Input,args:["contentTransitionDuration"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrEnabledHover:[{type:e.Input,args:["enabledHover"]}],attrEnableScrollAnimation:[{type:e.Input,args:["enableScrollAnimation"]}],attrEnableDropAnimation:[{type:e.Input,args:["enableDropAnimation"]}],attrInitTabContent:[{type:e.Input,args:["initTabContent"]}],attrKeyboardNavigation:[{type:e.Input,args:["keyboardNavigation"]}],attrNext:[{type:e.Input,args:["next"]}],attrPrevious:[{type:e.Input,args:["previous"]}],attrPosition:[{type:e.Input,args:["position"]}],attrReorder:[{type:e.Input,args:["reorder"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrScrollAnimationDuration:[{type:e.Input,args:["scrollAnimationDuration"]}],attrSelectedItem:[{type:e.Input,args:["selectedItem"]}],attrSelectionTracker:[{type:e.Input,args:["selectionTracker"]}],attrScrollable:[{type:e.Input,args:["scrollable"]}],attrScrollPosition:[{type:e.Input,args:["scrollPosition"]}],attrScrollStep:[{type:e.Input,args:["scrollStep"]}],attrShowCloseButtons:[{type:e.Input,args:["showCloseButtons"]}],attrToggleMode:[{type:e.Input,args:["toggleMode"]}],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"]}],onAdd:[{type:e.Output}],onCollapsed:[{type:e.Output}],onDragStart:[{type:e.Output}],onDragEnd:[{type:e.Output}],onExpanded:[{type:e.Output}],onRemoved:[{type:e.Output}],onSelecting:[{type:e.Output}],onSelected:[{type:e.Output}],onTabclick:[{type:e.Output}],onUnselecting:[{type:e.Output}],onUnselected:[{type:e.Output}]},t}(),n=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[o],exports:[o]}]}],t}();t.jqxTabsComponent=o,t.jqxTabsModule=n,Object.defineProperty(t,"__esModule",{value:!0})});