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) 6.98 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxpopover'); !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxpopover",["exports","@angular/core"],e):e((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxpopover={}),t.ng.core)}(this,function(t,e){"use strict";function r(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=r.next()).done;)s.push(n.value)}catch(p){i={error:p}}finally{try{n&&!n.done&&(o=r["return"])&&o.call(r)}finally{if(i)throw i.error}}return s}var o=function(){function t(t){this.autoCreate=!0,this.properties=["arrowOffsetValue","animationOpenDelay","animationCloseDelay","autoClose","animationType","height","initContent","isModal","offset","position","rtl","selector","showArrow","showCloseButton","width","title","theme"],this.onClose=new e.EventEmitter,this.onOpen=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),n=!1;if(this[o]!==undefined){if("object"==typeof this[o]){if(this[o]instanceof Array&&(n=this.arraysEqual(this[o],this.host.jqxPopover(this.properties[e]))),n)return!1;this.host.jqxPopover(this.properties[e],this[o]);continue}this[o]!==this.host.jqxPopover(this.properties[e])&&this.host.jqxPopover(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,n=t.classList;0<n.length&&(o=e.classList).add.apply(o,function i(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(r(arguments[e]));return t}(n)),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.widgetObject=jqwidgets.createInstance(this.host,"jqxPopover",t),this.host=this.widgetObject.host,this.__wireEvents__())},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.jqxPopover("setOptions",t)},t.prototype.arrowOffsetValue=function(t){if(t===undefined)return this.host.jqxPopover("arrowOffsetValue");this.host.jqxPopover("arrowOffsetValue",t)},t.prototype.animationOpenDelay=function(t){if(t===undefined)return this.host.jqxPopover("animationOpenDelay");this.host.jqxPopover("animationOpenDelay",t)},t.prototype.animationCloseDelay=function(t){if(t===undefined)return this.host.jqxPopover("animationCloseDelay");this.host.jqxPopover("animationCloseDelay",t)},t.prototype.autoClose=function(t){if(t===undefined)return this.host.jqxPopover("autoClose");this.host.jqxPopover("autoClose",t)},t.prototype.animationType=function(t){if(t===undefined)return this.host.jqxPopover("animationType");this.host.jqxPopover("animationType",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxPopover("height");this.host.jqxPopover("height",t)},t.prototype.initContent=function(t){if(t===undefined)return this.host.jqxPopover("initContent");this.host.jqxPopover("initContent",t)},t.prototype.isModal=function(t){if(t===undefined)return this.host.jqxPopover("isModal");this.host.jqxPopover("isModal",t)},t.prototype.offset=function(t){if(t===undefined)return this.host.jqxPopover("offset");this.host.jqxPopover("offset",t)},t.prototype.position=function(t){if(t===undefined)return this.host.jqxPopover("position");this.host.jqxPopover("position",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxPopover("rtl");this.host.jqxPopover("rtl",t)},t.prototype.selector=function(t){if(t===undefined)return this.host.jqxPopover("selector");this.host.jqxPopover("selector",t)},t.prototype.showArrow=function(t){if(t===undefined)return this.host.jqxPopover("showArrow");this.host.jqxPopover("showArrow",t)},t.prototype.showCloseButton=function(t){if(t===undefined)return this.host.jqxPopover("showCloseButton");this.host.jqxPopover("showCloseButton",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxPopover("width");this.host.jqxPopover("width",t)},t.prototype.title=function(t){if(t===undefined)return this.host.jqxPopover("title");this.host.jqxPopover("title",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxPopover("theme");this.host.jqxPopover("theme",t)},t.prototype.close=function(){this.host.jqxPopover("close")},t.prototype.destroy=function(){this.host.jqxPopover("destroy")},t.prototype.open=function(){this.host.jqxPopover("open")},t.prototype.__wireEvents__=function(){var e=this;setTimeout(function(){e.host.on("close",function(t){e.onClose.emit(t)}),e.host.on("open",function(t){e.onOpen.emit(t)})})},t.decorators=[{type:e.Component,args:[{selector:"jqxPopover",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t.propDecorators={attrArrowOffsetValue:[{type:e.Input,args:["arrowOffsetValue"]}],attrAnimationOpenDelay:[{type:e.Input,args:["animationOpenDelay"]}],attrAnimationCloseDelay:[{type:e.Input,args:["animationCloseDelay"]}],attrAutoClose:[{type:e.Input,args:["autoClose"]}],attrAnimationType:[{type:e.Input,args:["animationType"]}],attrInitContent:[{type:e.Input,args:["initContent"]}],attrIsModal:[{type:e.Input,args:["isModal"]}],attrOffset:[{type:e.Input,args:["offset"]}],attrPosition:[{type:e.Input,args:["position"]}],attrRtl:[{type:e.Input,args:["rtl"]}],attrSelector:[{type:e.Input,args:["selector"]}],attrShowArrow:[{type:e.Input,args:["showArrow"]}],attrShowCloseButton:[{type:e.Input,args:["showCloseButton"]}],attrTitle:[{type:e.Input,args:["title"]}],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"]}],onClose:[{type:e.Output}],onOpen:[{type:e.Output}]},t}(),n=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[],declarations:[o],exports:[o]}]}],t}();t.jqxPopoverComponent=o,t.jqxPopoverModule=n,Object.defineProperty(t,"__esModule",{value:!0})});