jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
10 lines (9 loc) • 10.7 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxdata');
require('../../jqwidgets/jqxbuttons');
require('../../jqwidgets/jqxscrollbar');
require('../../jqwidgets/jqxpanel');
require('../../jqwidgets/jqxdragdrop');
require('../../jqwidgets/jqxtree');
require('../../jqwidgets/jqxcheckbox');
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxtree",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxtree={}),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 r,n,i=o.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(r=i.next()).done;)s.push(r.value)}catch(h){n={error:h}}finally{try{r&&!r.done&&(o=i["return"])&&o.call(i)}finally{if(n)throw n.error}}return s}var o=function(){function t(t){this.autoCreate=!0,this.properties=["animationShowDuration","animationHideDuration","allowDrag","allowDrop","checkboxes","dragStart","dragEnd","disabled","easing","enableHover","height","hasThreeStates","incrementalSearch","keyboardNavigation","rtl","source","toggleIndicatorSize","toggleMode","theme","width"],this.onAdded=new e.EventEmitter,this.onCheckChange=new e.EventEmitter,this.onCollapse=new e.EventEmitter,this.onDragStart=new e.EventEmitter,this.onDragEnd=new e.EventEmitter,this.onExpand=new e.EventEmitter,this.onItemClick=new e.EventEmitter,this.onRemoved=new e.EventEmitter,this.onSelect=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),r=!1;if(this[o]!==undefined){if("object"==typeof this[o]){if(this[o]instanceof Array&&(r=this.arraysEqual(this[o],this.host.jqxTree(this.properties[e]))),r)return!1;this.host.jqxTree(this.properties[e],this[o]);continue}this[o]!==this.host.jqxTree(this.properties[e])&&this.host.jqxTree(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,r=t.classList;0<r.length&&(o=e.classList).add.apply(o,function n(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t}(r)),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,"jqxTree",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.jqxTree("setOptions",t)},t.prototype.animationShowDuration=function(t){if(t===undefined)return this.host.jqxTree("animationShowDuration");this.host.jqxTree("animationShowDuration",t)},t.prototype.animationHideDuration=function(t){if(t===undefined)return this.host.jqxTree("animationHideDuration");this.host.jqxTree("animationHideDuration",t)},t.prototype.allowDrag=function(t){if(t===undefined)return this.host.jqxTree("allowDrag");this.host.jqxTree("allowDrag",t)},t.prototype.allowDrop=function(t){if(t===undefined)return this.host.jqxTree("allowDrop");this.host.jqxTree("allowDrop",t)},t.prototype.checkboxes=function(t){if(t===undefined)return this.host.jqxTree("checkboxes");this.host.jqxTree("checkboxes",t)},t.prototype.dragStart=function(t){if(t===undefined)return this.host.jqxTree("dragStart");this.host.jqxTree("dragStart",t)},t.prototype.dragEnd=function(t){if(t===undefined)return this.host.jqxTree("dragEnd");this.host.jqxTree("dragEnd",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxTree("disabled");this.host.jqxTree("disabled",t)},t.prototype.easing=function(t){if(t===undefined)return this.host.jqxTree("easing");this.host.jqxTree("easing",t)},t.prototype.enableHover=function(t){if(t===undefined)return this.host.jqxTree("enableHover");this.host.jqxTree("enableHover",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxTree("height");this.host.jqxTree("height",t)},t.prototype.hasThreeStates=function(t){if(t===undefined)return this.host.jqxTree("hasThreeStates");this.host.jqxTree("hasThreeStates",t)},t.prototype.incrementalSearch=function(t){if(t===undefined)return this.host.jqxTree("incrementalSearch");this.host.jqxTree("incrementalSearch",t)},t.prototype.keyboardNavigation=function(t){if(t===undefined)return this.host.jqxTree("keyboardNavigation");this.host.jqxTree("keyboardNavigation",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxTree("rtl");this.host.jqxTree("rtl",t)},t.prototype.source=function(t){if(t===undefined)return this.host.jqxTree("source");this.host.jqxTree("source",t)},t.prototype.toggleIndicatorSize=function(t){if(t===undefined)return this.host.jqxTree("toggleIndicatorSize");this.host.jqxTree("toggleIndicatorSize",t)},t.prototype.toggleMode=function(t){if(t===undefined)return this.host.jqxTree("toggleMode");this.host.jqxTree("toggleMode",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxTree("theme");this.host.jqxTree("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxTree("width");this.host.jqxTree("width",t)},t.prototype.addBefore=function(t,e){this.host.jqxTree("addBefore",t,e)},t.prototype.addAfter=function(t,e){this.host.jqxTree("addAfter",t,e)},t.prototype.addTo=function(t,e){this.host.jqxTree("addTo",t,e)},t.prototype.clear=function(){this.host.jqxTree("clear")},t.prototype.checkAll=function(){this.host.jqxTree("checkAll")},t.prototype.checkItem=function(t,e){this.host.jqxTree("checkItem",t,e)},t.prototype.collapseAll=function(){this.host.jqxTree("collapseAll")},t.prototype.collapseItem=function(t){this.host.jqxTree("collapseItem",t)},t.prototype.destroy=function(){this.host.jqxTree("destroy")},t.prototype.disableItem=function(t){this.host.jqxTree("disableItem",t)},t.prototype.ensureVisible=function(t){this.host.jqxTree("ensureVisible",t)},t.prototype.enableItem=function(t){this.host.jqxTree("enableItem",t)},t.prototype.enableAll=function(){this.host.jqxTree("enableAll")},t.prototype.expandAll=function(){this.host.jqxTree("expandAll")},t.prototype.expandItem=function(t){this.host.jqxTree("expandItem",t)},t.prototype.focus=function(){this.host.jqxTree("focus")},t.prototype.getCheckedItems=function(){return this.host.jqxTree("getCheckedItems")},t.prototype.getUncheckedItems=function(){return this.host.jqxTree("getUncheckedItems")},t.prototype.getItems=function(){return this.host.jqxTree("getItems")},t.prototype.getItem=function(t){return this.host.jqxTree("getItem",t)},t.prototype.getSelectedItem=function(){return this.host.jqxTree("getSelectedItem")},t.prototype.getPrevItem=function(t){return this.host.jqxTree("getPrevItem",t)},t.prototype.getNextItem=function(t){return this.host.jqxTree("getNextItem",t)},t.prototype.hitTest=function(t,e){return this.host.jqxTree("hitTest",t,e)},t.prototype.removeItem=function(t){this.host.jqxTree("removeItem",t)},t.prototype.render=function(){this.host.jqxTree("render")},t.prototype.refresh=function(){this.host.jqxTree("refresh")},t.prototype.selectItem=function(t){this.host.jqxTree("selectItem",t)},t.prototype.uncheckAll=function(){this.host.jqxTree("uncheckAll")},t.prototype.uncheckItem=function(t){this.host.jqxTree("uncheckItem",t)},t.prototype.updateItem=function(t,e){this.host.jqxTree("updateItem",t,e)},t.prototype.val=function(t){return t!==undefined?this.host.jqxTree("val",t):this.host.jqxTree("val")},t.prototype.__wireEvents__=function(){var e=this;this.host.on("added",function(t){e.onAdded.emit(t)}),this.host.on("checkChange",function(t){e.onCheckChange.emit(t)}),this.host.on("collapse",function(t){e.onCollapse.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("expand",function(t){e.onExpand.emit(t)}),this.host.on("itemClick",function(t){e.onItemClick.emit(t)}),this.host.on("removed",function(t){e.onRemoved.emit(t)}),this.host.on("select",function(t){e.onSelect.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxTree",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAnimationShowDuration:[{type:e.Input,args:["animationShowDuration"]}],attrAnimationHideDuration:[{type:e.Input,args:["animationHideDuration"]}],attrAllowDrag:[{type:e.Input,args:["allowDrag"]}],attrAllowDrop:[{type:e.Input,args:["allowDrop"]}],attrCheckboxes:[{type:e.Input,args:["checkboxes"]}],attrDragStart:[{type:e.Input,args:["dragStart"]}],attrDragEnd:[{type:e.Input,args:["dragEnd"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrEasing:[{type:e.Input,args:["easing"]}],attrEnableHover:[{type:e.Input,args:["enableHover"]}],attrHasThreeStates:[{type:e.Input,args:["hasThreeStates"]}],attrIncrementalSearch:[{type:e.Input,args:["incrementalSearch"]}],attrKeyboardNavigation:[{type:e.Input,args:["keyboardNavigation"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrSource:[{type:e.Input,args:["source"]}],attrToggleIndicatorSize:[{type:e.Input,args:["toggleIndicatorSize"]}],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"]}],onAdded:[{type:e.Output}],onCheckChange:[{type:e.Output}],onCollapse:[{type:e.Output}],onDragStart:[{type:e.Output}],onDragEnd:[{type:e.Output}],onExpand:[{type:e.Output}],onItemClick:[{type:e.Output}],onRemoved:[{type:e.Output}],onSelect:[{type:e.Output}]},t}(),r=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[o],exports:[o]}]}],t}();t.jqxTreeComponent=o,t.jqxTreeModule=r,Object.defineProperty(t,"__esModule",{value:!0})});