UNPKG

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) 9.15 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxdata'); require('../../jqwidgets/jqxbuttons'); require('../../jqwidgets/jqxtagcloud'); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxtagcloud",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxtagcloud={}),t.ng.core)}(this,function(t,e){"use strict";function n(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var i,r,n=o.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(i=n.next()).done;)s.push(i.value)}catch(a){r={error:a}}finally{try{i&&!i.done&&(o=n["return"])&&o.call(n)}finally{if(r)throw r.error}}return s}var o=function(){function t(t){this.autoCreate=!0,this.properties=["alterTextCase","disabled","displayLimit","displayMember","displayValue","fontSizeUnit","height","maxColor","maxFontSize","maxValueToDisplay","minColor","minFontSize","minValueToDisplay","rtl","sortBy","sortOrder","source","tagRenderer","takeTopWeightedItems","textColor","urlBase","urlMember","valueMember","width"],this.onBindingComplete=new e.EventEmitter,this.onItemClick=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),i=!1;if(this[o]!==undefined){if("object"==typeof this[o]){if(this[o]instanceof Array&&(i=this.arraysEqual(this[o],this.host.jqxTagCloud(this.properties[e]))),i)return!1;this.host.jqxTagCloud(this.properties[e],this[o]);continue}this[o]!==this.host.jqxTagCloud(this.properties[e])&&this.host.jqxTagCloud(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,i=t.classList;0<i.length&&(o=e.classList).add.apply(o,function r(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(n(arguments[e]));return t}(i)),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,"jqxTagCloud",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.jqxTagCloud("setOptions",t)},t.prototype.alterTextCase=function(t){if(t===undefined)return this.host.jqxTagCloud("alterTextCase");this.host.jqxTagCloud("alterTextCase",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxTagCloud("disabled");this.host.jqxTagCloud("disabled",t)},t.prototype.displayLimit=function(t){if(t===undefined)return this.host.jqxTagCloud("displayLimit");this.host.jqxTagCloud("displayLimit",t)},t.prototype.displayMember=function(t){if(t===undefined)return this.host.jqxTagCloud("displayMember");this.host.jqxTagCloud("displayMember",t)},t.prototype.displayValue=function(t){if(t===undefined)return this.host.jqxTagCloud("displayValue");this.host.jqxTagCloud("displayValue",t)},t.prototype.fontSizeUnit=function(t){if(t===undefined)return this.host.jqxTagCloud("fontSizeUnit");this.host.jqxTagCloud("fontSizeUnit",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxTagCloud("height");this.host.jqxTagCloud("height",t)},t.prototype.maxColor=function(t){if(t===undefined)return this.host.jqxTagCloud("maxColor");this.host.jqxTagCloud("maxColor",t)},t.prototype.maxFontSize=function(t){if(t===undefined)return this.host.jqxTagCloud("maxFontSize");this.host.jqxTagCloud("maxFontSize",t)},t.prototype.maxValueToDisplay=function(t){if(t===undefined)return this.host.jqxTagCloud("maxValueToDisplay");this.host.jqxTagCloud("maxValueToDisplay",t)},t.prototype.minColor=function(t){if(t===undefined)return this.host.jqxTagCloud("minColor");this.host.jqxTagCloud("minColor",t)},t.prototype.minFontSize=function(t){if(t===undefined)return this.host.jqxTagCloud("minFontSize");this.host.jqxTagCloud("minFontSize",t)},t.prototype.minValueToDisplay=function(t){if(t===undefined)return this.host.jqxTagCloud("minValueToDisplay");this.host.jqxTagCloud("minValueToDisplay",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxTagCloud("rtl");this.host.jqxTagCloud("rtl",t)},t.prototype.sortBy=function(t){if(t===undefined)return this.host.jqxTagCloud("sortBy");this.host.jqxTagCloud("sortBy",t)},t.prototype.sortOrder=function(t){if(t===undefined)return this.host.jqxTagCloud("sortOrder");this.host.jqxTagCloud("sortOrder",t)},t.prototype.source=function(t){if(t===undefined)return this.host.jqxTagCloud("source");this.host.jqxTagCloud("source",t)},t.prototype.tagRenderer=function(t){if(t===undefined)return this.host.jqxTagCloud("tagRenderer");this.host.jqxTagCloud("tagRenderer",t)},t.prototype.takeTopWeightedItems=function(t){if(t===undefined)return this.host.jqxTagCloud("takeTopWeightedItems");this.host.jqxTagCloud("takeTopWeightedItems",t)},t.prototype.textColor=function(t){if(t===undefined)return this.host.jqxTagCloud("textColor");this.host.jqxTagCloud("textColor",t)},t.prototype.urlBase=function(t){if(t===undefined)return this.host.jqxTagCloud("urlBase");this.host.jqxTagCloud("urlBase",t)},t.prototype.urlMember=function(t){if(t===undefined)return this.host.jqxTagCloud("urlMember");this.host.jqxTagCloud("urlMember",t)},t.prototype.valueMember=function(t){if(t===undefined)return this.host.jqxTagCloud("valueMember");this.host.jqxTagCloud("valueMember",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxTagCloud("width");this.host.jqxTagCloud("width",t)},t.prototype.destroy=function(){this.host.jqxTagCloud("destroy")},t.prototype.findTagIndex=function(t){return this.host.jqxTagCloud("findTagIndex",t)},t.prototype.getHiddenTagsList=function(){return this.host.jqxTagCloud("getHiddenTagsList")},t.prototype.getRenderedTags=function(){return this.host.jqxTagCloud("getRenderedTags")},t.prototype.getTagsList=function(){return this.host.jqxTagCloud("getTagsList")},t.prototype.hideItem=function(t){this.host.jqxTagCloud("hideItem",t)},t.prototype.insertAt=function(t,e){this.host.jqxTagCloud("insertAt",t,e)},t.prototype.removeAt=function(t){this.host.jqxTagCloud("removeAt",t)},t.prototype.updateAt=function(t,e){this.host.jqxTagCloud("updateAt",t,e)},t.prototype.showItem=function(t){this.host.jqxTagCloud("showItem",t)},t.prototype.__wireEvents__=function(){var e=this;this.host.on("bindingComplete",function(t){e.onBindingComplete.emit(t)}),this.host.on("itemClick",function(t){e.onItemClick.emit(t)})},t.decorators=[{type:e.Component,args:[{selector:"jqxTagCloud",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrAlterTextCase:[{type:e.Input,args:["alterTextCase"]}],attrDisabled:[{type:e.Input,args:["disabled"]}],attrDisplayLimit:[{type:e.Input,args:["displayLimit"]}],attrDisplayMember:[{type:e.Input,args:["displayMember"]}],attrDisplayValue:[{type:e.Input,args:["displayValue"]}],attrFontSizeUnit:[{type:e.Input,args:["fontSizeUnit"]}],attrMaxColor:[{type:e.Input,args:["maxColor"]}],attrMaxFontSize:[{type:e.Input,args:["maxFontSize"]}],attrMaxValueToDisplay:[{type:e.Input,args:["maxValueToDisplay"]}],attrMinColor:[{type:e.Input,args:["minColor"]}],attrMinFontSize:[{type:e.Input,args:["minFontSize"]}],attrMinValueToDisplay:[{type:e.Input,args:["minValueToDisplay"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrSortBy:[{type:e.Input,args:["sortBy"]}],attrSortOrder:[{type:e.Input,args:["sortOrder"]}],attrSource:[{type:e.Input,args:["source"]}],attrTagRenderer:[{type:e.Input,args:["tagRenderer"]}],attrTakeTopWeightedItems:[{type:e.Input,args:["takeTopWeightedItems"]}],attrTextColor:[{type:e.Input,args:["textColor"]}],attrUrlBase:[{type:e.Input,args:["urlBase"]}],attrUrlMember:[{type:e.Input,args:["urlMember"]}],attrValueMember:[{type:e.Input,args:["valueMember"]}],attrWidth:[{type:e.Input,args:["width"]}],attrHeight:[{type:e.Input,args:["height"]}],autoCreate:[{type:e.Input,args:["auto-create"]}],onBindingComplete:[{type:e.Output}],onItemClick:[{type:e.Output}]},t}(),i=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[o],exports:[o]}]}],t}();t.jqxTagCloudComponent=o,t.jqxTagCloudModule=i,Object.defineProperty(t,"__esModule",{value:!0})});