UNPKG

jqwidgets-scripts-custom

Version:

jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.

7 lines (6 loc) 7.37 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxsortable'); require('../../jqwidgets/jqxsplitter'); require('../../jqwidgets/jqxdata'); require('../../jqwidgets/jqxkanban'); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxkanban",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxkanban={}),t.ng.core)}(this,function(t,e){"use strict";function i(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(o=i.next()).done;)s.push(o.value)}catch(a){r={error:a}}finally{try{o&&!o.done&&(n=i["return"])&&n.call(i)}finally{if(r)throw r.error}}return s}var n=function(){function t(t){this.autoCreate=!0,this.properties=["columnRenderer","columns","connectWith","headerHeight","headerWidth","height","itemRenderer","ready","rtl","source","resources","template","templateContent","theme","width"],this.onColumnAttrClicked=new e.EventEmitter,this.onColumnCollapsed=new e.EventEmitter,this.onColumnExpanded=new e.EventEmitter,this.onItemAttrClicked=new e.EventEmitter,this.onItemMoved=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 n="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1),o=!1;if(this[n]!==undefined){if("object"==typeof this[n]){if(this[n]instanceof Array&&(o=this.arraysEqual(this[n],this.host.jqxKanban(this.properties[e]))),o)return!1;this.host.jqxKanban(this.properties[e],this[n]);continue}this[n]!==this.host.jqxKanban(this.properties[e])&&this.host.jqxKanban(this.properties[e],this[n])}}},t.prototype.arraysEqual=function(t,e){if(t&&!e||!t&&e)return!1;if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},e=0;e<this.properties.length;e++){var n="attr"+this.properties[e].substring(0,1).toUpperCase()+this.properties[e].substring(1);this[n]!==undefined&&(t[this.properties[e]]=this[n])}return t},t.prototype.moveClasses=function(t,e){var n,o=t.classList;0<o.length&&(n=e.classList).add.apply(n,function r(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t}(o)),t.className=""},t.prototype.moveStyles=function(t,e){var n=t.style.cssText;e.style.cssText=n,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,"jqxKanban",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.jqxKanban("setOptions",t)},t.prototype.columnRenderer=function(t){if(t===undefined)return this.host.jqxKanban("columnRenderer");this.host.jqxKanban("columnRenderer",t)},t.prototype.columns=function(t){if(t===undefined)return this.host.jqxKanban("columns");this.host.jqxKanban("columns",t)},t.prototype.connectWith=function(t){if(t===undefined)return this.host.jqxKanban("connectWith");this.host.jqxKanban("connectWith",t)},t.prototype.headerHeight=function(t){if(t===undefined)return this.host.jqxKanban("headerHeight");this.host.jqxKanban("headerHeight",t)},t.prototype.headerWidth=function(t){if(t===undefined)return this.host.jqxKanban("headerWidth");this.host.jqxKanban("headerWidth",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxKanban("height");this.host.jqxKanban("height",t)},t.prototype.itemRenderer=function(t){if(t===undefined)return this.host.jqxKanban("itemRenderer");this.host.jqxKanban("itemRenderer",t)},t.prototype.ready=function(t){if(t===undefined)return this.host.jqxKanban("ready");this.host.jqxKanban("ready",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxKanban("rtl");this.host.jqxKanban("rtl",t)},t.prototype.source=function(t){if(t===undefined)return this.host.jqxKanban("source");this.host.jqxKanban("source",t)},t.prototype.resources=function(t){if(t===undefined)return this.host.jqxKanban("resources");this.host.jqxKanban("resources",t)},t.prototype.template=function(t){if(t===undefined)return this.host.jqxKanban("template");this.host.jqxKanban("template",t)},t.prototype.templateContent=function(t){if(t===undefined)return this.host.jqxKanban("templateContent");this.host.jqxKanban("templateContent",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxKanban("theme");this.host.jqxKanban("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxKanban("width");this.host.jqxKanban("width",t)},t.prototype.addItem=function(t){this.host.jqxKanban("addItem",t)},t.prototype.destroy=function(){this.host.jqxKanban("destroy")},t.prototype.getColumn=function(t){return this.host.jqxKanban("getColumn",t)},t.prototype.getColumnItems=function(t){return this.host.jqxKanban("getColumnItems",t)},t.prototype.getItems=function(){return this.host.jqxKanban("getItems")},t.prototype.removeItem=function(t){this.host.jqxKanban("removeItem",t)},t.prototype.updateItem=function(t,e){this.host.jqxKanban("updateItem",t,e)},t.prototype.__wireEvents__=function(){var e=this;this.host.on("columnAttrClicked",function(t){e.onColumnAttrClicked.emit(t)}),this.host.on("columnCollapsed",function(t){e.onColumnCollapsed.emit(t)}),this.host.on("columnExpanded",function(t){e.onColumnExpanded.emit(t)}),this.host.on("itemAttrClicked",function(t){e.onItemAttrClicked.emit(t)}),this.host.on("itemMoved",function(t){e.onItemMoved.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxKanban",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrColumnRenderer:[{type:e.Input,args:["columnRenderer"]}],attrColumns:[{type:e.Input,args:["columns"]}],attrConnectWith:[{type:e.Input,args:["connectWith"]}],attrHeaderHeight:[{type:e.Input,args:["headerHeight"]}],attrHeaderWidth:[{type:e.Input,args:["headerWidth"]}],attrItemRenderer:[{type:e.Input,args:["itemRenderer"]}],attrReady:[{type:e.Input,args:["ready"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrSource:[{type:e.Input,args:["source"]}],attrResources:[{type:e.Input,args:["resources"]}],attrTemplate:[{type:e.Input,args:["template"]}],attrTemplateContent:[{type:e.Input,args:["templateContent"]}],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"]}],onColumnAttrClicked:[{type:e.Output}],onColumnCollapsed:[{type:e.Output}],onColumnExpanded:[{type:e.Output}],onItemAttrClicked:[{type:e.Output}],onItemMoved:[{type:e.Output}]},t}(),o=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[n],exports:[n]}]}],t}();t.jqxKanbanComponent=n,t.jqxKanbanModule=o,Object.defineProperty(t,"__esModule",{value:!0})});