UNPKG

jqwidgets-scripts-custom

Version:

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

4 lines (3 loc) 8.24 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxtooltip'); !function(t,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxtooltip",["exports","@angular/core"],o):o((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxtooltip={}),t.ng.core)}(this,function(t,o){"use strict";function s(t,o){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var i,n,s=e.call(t),r=[];try{for(;(void 0===o||0<o--)&&!(i=s.next()).done;)r.push(i.value)}catch(p){n={error:p}}finally{try{i&&!i.done&&(e=s["return"])&&e.call(s)}finally{if(n)throw n.error}}return r}var e=function(){function t(t){this.autoCreate=!0,this.properties=["absolutePositionX","absolutePositionY","autoHide","autoHideDelay","animationShowDelay","animationHideDelay","content","closeOnClick","disabled","enableBrowserBoundsDetection","height","left","name","opacity","position","rtl","showDelay","showArrow","top","trigger","theme","width"],this.onClose=new o.EventEmitter,this.onClosing=new o.EventEmitter,this.onOpen=new o.EventEmitter,this.onOpening=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.jqxTooltip(this.properties[o]))),i)return!1;this.host.jqxTooltip(this.properties[o],this[e]);continue}this[e]!==this.host.jqxTooltip(this.properties[o])&&this.host.jqxTooltip(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 n(){for(var t=[],o=0;o<arguments.length;o++)t=t.concat(s(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,"jqxTooltip",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.jqxTooltip("setOptions",t)},t.prototype.absolutePositionX=function(t){if(t===undefined)return this.host.jqxTooltip("absolutePositionX");this.host.jqxTooltip("absolutePositionX",t)},t.prototype.absolutePositionY=function(t){if(t===undefined)return this.host.jqxTooltip("absolutePositionY");this.host.jqxTooltip("absolutePositionY",t)},t.prototype.autoHide=function(t){if(t===undefined)return this.host.jqxTooltip("autoHide");this.host.jqxTooltip("autoHide",t)},t.prototype.autoHideDelay=function(t){if(t===undefined)return this.host.jqxTooltip("autoHideDelay");this.host.jqxTooltip("autoHideDelay",t)},t.prototype.animationShowDelay=function(t){if(t===undefined)return this.host.jqxTooltip("animationShowDelay");this.host.jqxTooltip("animationShowDelay",t)},t.prototype.animationHideDelay=function(t){if(t===undefined)return this.host.jqxTooltip("animationHideDelay");this.host.jqxTooltip("animationHideDelay",t)},t.prototype.content=function(t){if(t===undefined)return this.host.jqxTooltip("content");this.host.jqxTooltip("content",t)},t.prototype.closeOnClick=function(t){if(t===undefined)return this.host.jqxTooltip("closeOnClick");this.host.jqxTooltip("closeOnClick",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxTooltip("disabled");this.host.jqxTooltip("disabled",t)},t.prototype.enableBrowserBoundsDetection=function(t){if(t===undefined)return this.host.jqxTooltip("enableBrowserBoundsDetection");this.host.jqxTooltip("enableBrowserBoundsDetection",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxTooltip("height");this.host.jqxTooltip("height",t)},t.prototype.left=function(t){if(t===undefined)return this.host.jqxTooltip("left");this.host.jqxTooltip("left",t)},t.prototype.name=function(t){if(t===undefined)return this.host.jqxTooltip("name");this.host.jqxTooltip("name",t)},t.prototype.opacity=function(t){if(t===undefined)return this.host.jqxTooltip("opacity");this.host.jqxTooltip("opacity",t)},t.prototype.position=function(t){if(t===undefined)return this.host.jqxTooltip("position");this.host.jqxTooltip("position",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxTooltip("rtl");this.host.jqxTooltip("rtl",t)},t.prototype.showDelay=function(t){if(t===undefined)return this.host.jqxTooltip("showDelay");this.host.jqxTooltip("showDelay",t)},t.prototype.showArrow=function(t){if(t===undefined)return this.host.jqxTooltip("showArrow");this.host.jqxTooltip("showArrow",t)},t.prototype.top=function(t){if(t===undefined)return this.host.jqxTooltip("top");this.host.jqxTooltip("top",t)},t.prototype.trigger=function(t){if(t===undefined)return this.host.jqxTooltip("trigger");this.host.jqxTooltip("trigger",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxTooltip("theme");this.host.jqxTooltip("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxTooltip("width");this.host.jqxTooltip("width",t)},t.prototype.close=function(t){this.host.jqxTooltip("close",t)},t.prototype.destroy=function(){this.host.jqxTooltip("destroy")},t.prototype.open=function(t,o){this.host.jqxTooltip("open",t,o)},t.prototype.refresh=function(){this.host.jqxTooltip("refresh")},t.prototype.__wireEvents__=function(){var o=this;this.host.on("close",function(t){o.onClose.emit(t)}),this.host.on("closing",function(t){o.onClosing.emit(t)}),this.host.on("open",function(t){o.onOpen.emit(t)}),this.host.on("opening",function(t){o.onOpening.emit(t)})},t.decorators=[{type:o.Component,args:[{selector:"jqxTooltip",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:o.ElementRef}]},t.propDecorators={attrAbsolutePositionX:[{type:o.Input,args:["absolutePositionX"]}],attrAbsolutePositionY:[{type:o.Input,args:["absolutePositionY"]}],attrAutoHide:[{type:o.Input,args:["autoHide"]}],attrAutoHideDelay:[{type:o.Input,args:["autoHideDelay"]}],attrAnimationShowDelay:[{type:o.Input,args:["animationShowDelay"]}],attrAnimationHideDelay:[{type:o.Input,args:["animationHideDelay"]}],attrContent:[{type:o.Input,args:["content"]}],attrCloseOnClick:[{type:o.Input,args:["closeOnClick"]}],attrDisabled:[{type:o.Input,args:["disabled"]}],attrEnableBrowserBoundsDetection:[{type:o.Input,args:["enableBrowserBoundsDetection"]}],attrLeft:[{type:o.Input,args:["left"]}],attrName:[{type:o.Input,args:["name"]}],attrOpacity:[{type:o.Input,args:["opacity"]}],attrPosition:[{type:o.Input,args:["position"]}],attrRtl:[{type:o.Input,args:["rtl"]}],attrShowDelay:[{type:o.Input,args:["showDelay"]}],attrShowArrow:[{type:o.Input,args:["showArrow"]}],attrTop:[{type:o.Input,args:["top"]}],attrTrigger:[{type:o.Input,args:["trigger"]}],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}],onClosing:[{type:o.Output}],onOpen:[{type:o.Output}],onOpening:[{type:o.Output}]},t}(),i=function(){function t(){}return t.decorators=[{type:o.NgModule,args:[{imports:[],declarations:[e],exports:[e]}]}],t}();t.jqxTooltipComponent=e,t.jqxTooltipModule=i,Object.defineProperty(t,"__esModule",{value:!0})});