UNPKG

devextreme-angular

Version:

Angular UI and visualization components based on DevExtreme widgets

30 lines (28 loc) • 15.6 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/ui/toast"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/toast",["exports","@angular/platform-browser","@angular/core","devextreme/ui/toast","devextreme-angular/core","devextreme-angular/ui/nested"],t):t(((e=e||self)["devextreme-angular"]=e["devextreme-angular"]||{},e["devextreme-angular"].ui=e["devextreme-angular"].ui||{},e["devextreme-angular"].ui.toast={}),e.ng.platformBrowser,e.ng.core,e.DxToast,e["devextreme-angular"].core,e["devextreme-angular"].ui.nested)}(this,(function(e,t,n,i,o,p){"use strict";i=i&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function s(e,t,n,i){var o,p=arguments.length,r=p<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(r=(p<3?o(r):p>3?o(t,n,r):o(t,n))||r);return p>3&&r&&Object.defineProperty(t,n,r),r}function a(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)} /*! * devextreme-angular * Version: 20.2.5 * Build date: Fri Jan 15 2021 * * Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/devextreme-angular */ var u=function(e){function p(t,n,i,o,p,r,s){var a=e.call(this,t,n,i,o,r,s)||this;return a._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"hidden",emit:"onHidden"},{subscribe:"hiding",emit:"onHiding"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"showing",emit:"onShowing"},{subscribe:"shown",emit:"onShown"},{emit:"accessKeyChange"},{emit:"animationChange"},{emit:"closeOnClickChange"},{emit:"closeOnOutsideClickChange"},{emit:"closeOnSwipeChange"},{emit:"contentTemplateChange"},{emit:"deferRenderingChange"},{emit:"displayTimeChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"maxHeightChange"},{emit:"maxWidthChange"},{emit:"messageChange"},{emit:"minHeightChange"},{emit:"minWidthChange"},{emit:"positionChange"},{emit:"rtlEnabledChange"},{emit:"shadingChange"},{emit:"shadingColorChange"},{emit:"tabIndexChange"},{emit:"typeChange"},{emit:"visibleChange"},{emit:"widthChange"}]),p.setHost(a),a}var u,d;return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(p,e),Object.defineProperty(p.prototype,"accessKey",{get:function(){return this._getOption("accessKey")},set:function(e){this._setOption("accessKey",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"animation",{get:function(){return this._getOption("animation")},set:function(e){this._setOption("animation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"closeOnClick",{get:function(){return this._getOption("closeOnClick")},set:function(e){this._setOption("closeOnClick",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"closeOnOutsideClick",{get:function(){return this._getOption("closeOnOutsideClick")},set:function(e){this._setOption("closeOnOutsideClick",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"closeOnSwipe",{get:function(){return this._getOption("closeOnSwipe")},set:function(e){this._setOption("closeOnSwipe",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"contentTemplate",{get:function(){return this._getOption("contentTemplate")},set:function(e){this._setOption("contentTemplate",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"deferRendering",{get:function(){return this._getOption("deferRendering")},set:function(e){this._setOption("deferRendering",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"displayTime",{get:function(){return this._getOption("displayTime")},set:function(e){this._setOption("displayTime",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"elementAttr",{get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"focusStateEnabled",{get:function(){return this._getOption("focusStateEnabled")},set:function(e){this._setOption("focusStateEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"height",{get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hint",{get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"hoverStateEnabled",{get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"maxHeight",{get:function(){return this._getOption("maxHeight")},set:function(e){this._setOption("maxHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"maxWidth",{get:function(){return this._getOption("maxWidth")},set:function(e){this._setOption("maxWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"message",{get:function(){return this._getOption("message")},set:function(e){this._setOption("message",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"minHeight",{get:function(){return this._getOption("minHeight")},set:function(e){this._setOption("minHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"minWidth",{get:function(){return this._getOption("minWidth")},set:function(e){this._setOption("minWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"position",{get:function(){return this._getOption("position")},set:function(e){this._setOption("position",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"rtlEnabled",{get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"shading",{get:function(){return this._getOption("shading")},set:function(e){this._setOption("shading",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"shadingColor",{get:function(){return this._getOption("shadingColor")},set:function(e){this._setOption("shadingColor",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"tabIndex",{get:function(){return this._getOption("tabIndex")},set:function(e){this._setOption("tabIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"type",{get:function(){return this._getOption("type")},set:function(e){this._setOption("type",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"visible",{get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"width",{get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)},enumerable:!0,configurable:!0}),p.prototype._createInstance=function(e,t){return new i(e,t)},p.prototype.ngOnDestroy=function(){this._destroyWidget()},p.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone},{type:o.DxTemplateHost},{type:o.WatcherHelper},{type:o.NestedOptionHost},{type:t.TransferState},{type:void 0,decorators:[{type:n.Inject,args:[n.PLATFORM_ID]}]}]},s([n.Input(),a("design:type",String),a("design:paramtypes",[String])],p.prototype,"accessKey",null),s([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],p.prototype,"animation",null),s([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],p.prototype,"closeOnClick",null),s([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],p.prototype,"closeOnOutsideClick",null),s([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],p.prototype,"closeOnSwipe",null),s([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],p.prototype,"contentTemplate",null),s([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],p.prototype,"deferRendering",null),s([n.Input(),a("design:type",Number),a("design:paramtypes",[Number])],p.prototype,"displayTime",null),s([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],p.prototype,"elementAttr",null),s([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],p.prototype,"focusStateEnabled",null),s([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],p.prototype,"height",null),s([n.Input(),a("design:type",String),a("design:paramtypes",[String])],p.prototype,"hint",null),s([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],p.prototype,"hoverStateEnabled",null),s([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],p.prototype,"maxHeight",null),s([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],p.prototype,"maxWidth",null),s([n.Input(),a("design:type",String),a("design:paramtypes",[String])],p.prototype,"message",null),s([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],p.prototype,"minHeight",null),s([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],p.prototype,"minWidth",null),s([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],p.prototype,"position",null),s([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],p.prototype,"rtlEnabled",null),s([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],p.prototype,"shading",null),s([n.Input(),a("design:type",String),a("design:paramtypes",[String])],p.prototype,"shadingColor",null),s([n.Input(),a("design:type",Number),a("design:paramtypes",[Number])],p.prototype,"tabIndex",null),s([n.Input(),a("design:type",String),a("design:paramtypes",[String])],p.prototype,"type",null),s([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],p.prototype,"visible",null),s([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],p.prototype,"width",null),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"onContentReady",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"onDisposing",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"onHidden",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"onHiding",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"onInitialized",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"onOptionChanged",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"onShowing",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"onShown",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"accessKeyChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"animationChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"closeOnClickChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"closeOnOutsideClickChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"closeOnSwipeChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"contentTemplateChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"deferRenderingChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"displayTimeChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"elementAttrChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"focusStateEnabledChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"heightChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"hintChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"hoverStateEnabledChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"maxHeightChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"maxWidthChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"messageChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"minHeightChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"minWidthChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"positionChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"rtlEnabledChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"shadingChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"shadingColorChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"tabIndexChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"typeChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"visibleChange",void 0),s([n.Output(),a("design:type",n.EventEmitter)],p.prototype,"widthChange",void 0),p=s([n.Component({selector:"dx-toast",template:"",providers:[o.DxTemplateHost,o.WatcherHelper,o.NestedOptionHost]}),(u=6,d=n.Inject(n.PLATFORM_ID),function(e,t){d(e,t,u)}),a("design:paramtypes",[n.ElementRef,n.NgZone,o.DxTemplateHost,o.WatcherHelper,o.NestedOptionHost,t.TransferState,Object])],p)}(o.DxComponent),d=function(){function e(){}return e=s([n.NgModule({imports:[p.DxoAnimationModule,p.DxoHideModule,p.DxoShowModule,p.DxoPositionModule,p.DxoAtModule,p.DxoBoundaryOffsetModule,p.DxoCollisionModule,p.DxoMyModule,p.DxoOffsetModule,o.DxIntegrationModule,o.DxTemplateModule,t.BrowserTransferStateModule],declarations:[u],exports:[u,p.DxoAnimationModule,p.DxoHideModule,p.DxoShowModule,p.DxoPositionModule,p.DxoAtModule,p.DxoBoundaryOffsetModule,p.DxoCollisionModule,p.DxoMyModule,p.DxoOffsetModule,o.DxTemplateModule]})],e)}();e.DxToastComponent=u,e.DxToastModule=d,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=devextreme-angular-ui-toast.umd.min.js.map