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) • 5.96 kB
JavaScript
require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxbuttons');
require('../../jqwidgets/jqxscrollbar');
require('../../jqwidgets/jqxlistbox');
require('../../jqwidgets/jqxdropdownlist');
require('../../jqwidgets/jqxcombobox');
require('../../jqwidgets/jqxinput');
require('../../jqwidgets/jqxtoolbar');
!function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxtoolbar",["exports","@angular/core"],o):o((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxtoolbar={}),t.ng.core)}(this,function(t,o){"use strict";function n(t,o){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var i,r,n=e.call(t),s=[];try{for(;(void 0===o||0<o--)&&!(i=n.next()).done;)s.push(i.value)}catch(h){r={error:h}}finally{try{i&&!i.done&&(e=n["return"])&&e.call(n)}finally{if(r)throw r.error}}return s}var e=function(){function t(t){this.autoCreate=!0,this.properties=["disabled","height","initTools","minimizeWidth","minWidth","maxWidth","rtl","tools","theme","width"],this.onClose=new o.EventEmitter,this.onOpen=new o.EventEmitter,this.elementRef=t}return t.prototype.ngOnInit=function(){this.autoCreate&&this.createComponent()},t.prototype.ngOnChanges=function(t){if(this.host)for(var o=0;o<this.properties.length;o++){var e="attr"+this.properties[o].substring(0,1).toUpperCase()+this.properties[o].substring(1),i=!1;if(this[e]!==undefined){if("object"==typeof this[e]){if(this[e]instanceof Array&&(i=this.arraysEqual(this[e],this.host.jqxToolBar(this.properties[o]))),i)return!1;this.host.jqxToolBar(this.properties[o],this[e]);continue}this[e]!==this.host.jqxToolBar(this.properties[o])&&this.host.jqxToolBar(this.properties[o],this[e])}}},t.prototype.arraysEqual=function(t,o){if(t&&!o||!t&&o)return!1;if(t.length!=o.length)return!1;for(var e=0;e<t.length;e++)if(t[e]!==o[e])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},o=0;o<this.properties.length;o++){var e="attr"+this.properties[o].substring(0,1).toUpperCase()+this.properties[o].substring(1);this[e]!==undefined&&(t[this.properties[o]]=this[e])}return t},t.prototype.moveClasses=function(t,o){var e,i=t.classList;0<i.length&&(e=o.classList).add.apply(e,function r(){for(var t=[],o=0;o<arguments.length;o++)t=t.concat(n(arguments[o]));return t}(i)),t.className=""},t.prototype.moveStyles=function(t,o){var e=t.style.cssText;o.style.cssText=e,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,"jqxToolBar",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.jqxToolBar("setOptions",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxToolBar("disabled");this.host.jqxToolBar("disabled",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxToolBar("height");this.host.jqxToolBar("height",t)},t.prototype.initTools=function(t){if(t===undefined)return this.host.jqxToolBar("initTools");this.host.jqxToolBar("initTools",t)},t.prototype.minimizeWidth=function(t){if(t===undefined)return this.host.jqxToolBar("minimizeWidth");this.host.jqxToolBar("minimizeWidth",t)},t.prototype.minWidth=function(t){if(t===undefined)return this.host.jqxToolBar("minWidth");this.host.jqxToolBar("minWidth",t)},t.prototype.maxWidth=function(t){if(t===undefined)return this.host.jqxToolBar("maxWidth");this.host.jqxToolBar("maxWidth",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxToolBar("rtl");this.host.jqxToolBar("rtl",t)},t.prototype.tools=function(t){if(t===undefined)return this.host.jqxToolBar("tools");this.host.jqxToolBar("tools",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxToolBar("theme");this.host.jqxToolBar("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxToolBar("width");this.host.jqxToolBar("width",t)},t.prototype.addTool=function(t,o,e,i){this.host.jqxToolBar("addTool",t,o,e,i)},t.prototype.disableTool=function(t,o){this.host.jqxToolBar("disableTool",t,o)},t.prototype.destroy=function(){this.host.jqxToolBar("destroy")},t.prototype.destroyTool=function(t){this.host.jqxToolBar("destroyTool",t)},t.prototype.getTools=function(){return this.host.jqxToolBar("getTools")},t.prototype.render=function(){this.host.jqxToolBar("render")},t.prototype.refresh=function(){this.host.jqxToolBar("refresh")},t.prototype.__wireEvents__=function(){var o=this;this.host.on("close",function(t){o.onClose.emit(t)}),this.host.on("open",function(t){o.onOpen.emit(t)})},t.decorators=[{type:o.Component,args:[{selector:"jqxToolbar",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:o.ElementRef}]},t.propDecorators={attrDisabled:[{type:o.Input,args:["disabled"]}],attrInitTools:[{type:o.Input,args:["initTools"]}],attrMinimizeWidth:[{type:o.Input,args:["minimizeWidth"]}],attrMinWidth:[{type:o.Input,args:["minWidth"]}],attrMaxWidth:[{type:o.Input,args:["maxWidth"]}],attrRtl:[{type:o.Input,args:["rtl"]}],attrTools:[{type:o.Input,args:["tools"]}],attrTheme:[{type:o.Input,args:["theme"]}],attrWidth:[{type:o.Input,args:["width"]}],attrHeight:[{type:o.Input,args:["height"]}],autoCreate:[{type:o.Input,args:["auto-create"]}],onClose:[{type:o.Output}],onOpen:[{type:o.Output}]},t}(),i=function(){function t(){}return t.decorators=[{type:o.NgModule,args:[{imports:[],declarations:[e],exports:[e]}]}],t}();t.jqxToolBarComponent=e,t.jqxToolBarModule=i,Object.defineProperty(t,"__esModule",{value:!0})});