UNPKG

jqwidgets-scripts-custom

Version:

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

5 lines (4 loc) 8.46 kB
require('../../jqwidgets/jqxcore'); require('../../jqwidgets/jqxbuttons'); require('../../jqwidgets/jqxnotification'); !function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("@angular/core")):"function"==typeof define&&define.amd?define("jqwidgets-ng/jqxnotification",["exports","@angular/core"],i):i((t["jqwidgets-ng"]=t["jqwidgets-ng"]||{},t["jqwidgets-ng"].jqxnotification={}),t.ng.core)}(this,function(t,i){"use strict";function s(t,i){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var e,n,s=o.call(t),r=[];try{for(;(void 0===i||0<i--)&&!(e=s.next()).done;)r.push(e.value)}catch(a){n={error:a}}finally{try{e&&!e.done&&(o=s["return"])&&o.call(s)}finally{if(n)throw n.error}}return r}var o=function(){function t(t){this.autoCreate=!0,this.properties=["appendContainer","autoOpen","animationOpenDelay","animationCloseDelay","autoClose","autoCloseDelay","blink","browserBoundsOffset","closeOnClick","disabled","height","hoverOpacity","icon","notificationOffset","opacity","position","rtl","showCloseButton","template","theme","width"],this.onClose=new i.EventEmitter,this.onClick=new i.EventEmitter,this.onOpen=new i.EventEmitter,this.elementRef=t}return t.prototype.ngOnInit=function(){this.autoCreate&&this.createComponent()},t.prototype.ngOnChanges=function(t){if(this.host)for(var i=0;i<this.properties.length;i++){var o="attr"+this.properties[i].substring(0,1).toUpperCase()+this.properties[i].substring(1),e=!1;if(this[o]!==undefined){if("object"==typeof this[o]){if(this[o]instanceof Array&&(e=this.arraysEqual(this[o],this.host.jqxNotification(this.properties[i]))),e)return!1;this.host.jqxNotification(this.properties[i],this[o]);continue}this[o]!==this.host.jqxNotification(this.properties[i])&&this.host.jqxNotification(this.properties[i],this[o])}}},t.prototype.arraysEqual=function(t,i){if(t&&!i||!t&&i)return!1;if(t.length!=i.length)return!1;for(var o=0;o<t.length;o++)if(t[o]!==i[o])return!1;return!0},t.prototype.manageAttributes=function(){for(var t={},i=0;i<this.properties.length;i++){var o="attr"+this.properties[i].substring(0,1).toUpperCase()+this.properties[i].substring(1);this[o]!==undefined&&(t[this.properties[i]]=this[o])}return t},t.prototype.moveClasses=function(t,i){var o,e=t.classList;0<e.length&&(o=i.classList).add.apply(o,function n(){for(var t=[],i=0;i<arguments.length;i++)t=t.concat(s(arguments[i]));return t}(e)),t.className=""},t.prototype.moveStyles=function(t,i){var o=t.style.cssText;i.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,"jqxNotification",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.jqxNotification("setOptions",t)},t.prototype.appendContainer=function(t){if(t===undefined)return this.host.jqxNotification("appendContainer");this.host.jqxNotification("appendContainer",t)},t.prototype.autoOpen=function(t){if(t===undefined)return this.host.jqxNotification("autoOpen");this.host.jqxNotification("autoOpen",t)},t.prototype.animationOpenDelay=function(t){if(t===undefined)return this.host.jqxNotification("animationOpenDelay");this.host.jqxNotification("animationOpenDelay",t)},t.prototype.animationCloseDelay=function(t){if(t===undefined)return this.host.jqxNotification("animationCloseDelay");this.host.jqxNotification("animationCloseDelay",t)},t.prototype.autoClose=function(t){if(t===undefined)return this.host.jqxNotification("autoClose");this.host.jqxNotification("autoClose",t)},t.prototype.autoCloseDelay=function(t){if(t===undefined)return this.host.jqxNotification("autoCloseDelay");this.host.jqxNotification("autoCloseDelay",t)},t.prototype.blink=function(t){if(t===undefined)return this.host.jqxNotification("blink");this.host.jqxNotification("blink",t)},t.prototype.browserBoundsOffset=function(t){if(t===undefined)return this.host.jqxNotification("browserBoundsOffset");this.host.jqxNotification("browserBoundsOffset",t)},t.prototype.closeOnClick=function(t){if(t===undefined)return this.host.jqxNotification("closeOnClick");this.host.jqxNotification("closeOnClick",t)},t.prototype.disabled=function(t){if(t===undefined)return this.host.jqxNotification("disabled");this.host.jqxNotification("disabled",t)},t.prototype.height=function(t){if(t===undefined)return this.host.jqxNotification("height");this.host.jqxNotification("height",t)},t.prototype.hoverOpacity=function(t){if(t===undefined)return this.host.jqxNotification("hoverOpacity");this.host.jqxNotification("hoverOpacity",t)},t.prototype.icon=function(t){if(t===undefined)return this.host.jqxNotification("icon");this.host.jqxNotification("icon",t)},t.prototype.notificationOffset=function(t){if(t===undefined)return this.host.jqxNotification("notificationOffset");this.host.jqxNotification("notificationOffset",t)},t.prototype.opacity=function(t){if(t===undefined)return this.host.jqxNotification("opacity");this.host.jqxNotification("opacity",t)},t.prototype.position=function(t){if(t===undefined)return this.host.jqxNotification("position");this.host.jqxNotification("position",t)},t.prototype.rtl=function(t){if(t===undefined)return this.host.jqxNotification("rtl");this.host.jqxNotification("rtl",t)},t.prototype.showCloseButton=function(t){if(t===undefined)return this.host.jqxNotification("showCloseButton");this.host.jqxNotification("showCloseButton",t)},t.prototype.template=function(t){if(t===undefined)return this.host.jqxNotification("template");this.host.jqxNotification("template",t)},t.prototype.theme=function(t){if(t===undefined)return this.host.jqxNotification("theme");this.host.jqxNotification("theme",t)},t.prototype.width=function(t){if(t===undefined)return this.host.jqxNotification("width");this.host.jqxNotification("width",t)},t.prototype.closeAll=function(){this.host.jqxNotification("closeAll")},t.prototype.closeLast=function(){this.host.jqxNotification("closeLast")},t.prototype.destroy=function(){this.host.jqxNotification("destroy")},t.prototype.open=function(){this.host.jqxNotification("open")},t.prototype.refresh=function(){this.host.jqxNotification("refresh")},t.prototype.render=function(){this.host.jqxNotification("render")},t.prototype.__wireEvents__=function(){var i=this;this.host.on("close",function(t){i.onClose.emit(t)}),this.host.on("click",function(t){i.onClick.emit(t)}),this.host.on("open",function(t){i.onOpen.emit(t)})},t.decorators=[{type:i.Component,args:[{selector:"jqxNotification",template:"<div><ng-content></ng-content></div>"}]}],t.ctorParameters=function(){return[{type:i.ElementRef}]},t.propDecorators={attrAppendContainer:[{type:i.Input,args:["appendContainer"]}],attrAutoOpen:[{type:i.Input,args:["autoOpen"]}],attrAnimationOpenDelay:[{type:i.Input,args:["animationOpenDelay"]}],attrAnimationCloseDelay:[{type:i.Input,args:["animationCloseDelay"]}],attrAutoClose:[{type:i.Input,args:["autoClose"]}],attrAutoCloseDelay:[{type:i.Input,args:["autoCloseDelay"]}],attrBlink:[{type:i.Input,args:["blink"]}],attrBrowserBoundsOffset:[{type:i.Input,args:["browserBoundsOffset"]}],attrCloseOnClick:[{type:i.Input,args:["closeOnClick"]}],attrDisabled:[{type:i.Input,args:["disabled"]}],attrHoverOpacity:[{type:i.Input,args:["hoverOpacity"]}],attrIcon:[{type:i.Input,args:["icon"]}],attrNotificationOffset:[{type:i.Input,args:["notificationOffset"]}],attrOpacity:[{type:i.Input,args:["opacity"]}],attrPosition:[{type:i.Input,args:["position"]}],attrRtl:[{type:i.Input,args:["rtl"]}],attrShowCloseButton:[{type:i.Input,args:["showCloseButton"]}],attrTemplate:[{type:i.Input,args:["template"]}],attrTheme:[{type:i.Input,args:["theme"]}],attrWidth:[{type:i.Input,args:["width"]}],attrHeight:[{type:i.Input,args:["height"]}],autoCreate:[{type:i.Input,args:["auto-create"]}],onClose:[{type:i.Output}],onClick:[{type:i.Output}],onOpen:[{type:i.Output}]},t}(),e=function(){function t(){}return t.decorators=[{type:i.NgModule,args:[{imports:[],declarations:[o],exports:[o]}]}],t}();t.jqxNotificationComponent=o,t.jqxNotificationModule=e,Object.defineProperty(t,"__esModule",{value:!0})});