UNPKG

devextreme-angular

Version:

Angular UI and visualization components based on DevExtreme widgets

30 lines (28 loc) • 14.5 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/ui/tooltip"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/tooltip",["exports","@angular/platform-browser","@angular/core","devextreme/ui/tooltip","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.tooltip={}),e.ng.platformBrowser,e.ng.core,e.DxTooltip,e["devextreme-angular"].core,e["devextreme-angular"].ui.nested)}(this,(function(e,t,n,o,i,r){"use strict";o=o&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o; /*! ***************************************************************************** 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 p=function(e,t){return(p=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 u(e,t,n,o){var i,r=arguments.length,p=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(e,t,n,o);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(p=(r<3?i(p):r>3?i(t,n,p):i(t,n))||p);return r>3&&p&&Object.defineProperty(t,n,p),p}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 s=function(e){function r(t,n,o,i,r,p,u){var a=e.call(this,t,n,o,i,p,u)||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:"animationChange"},{emit:"closeOnOutsideClickChange"},{emit:"containerChange"},{emit:"contentTemplateChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"hideEventChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"maxHeightChange"},{emit:"maxWidthChange"},{emit:"minHeightChange"},{emit:"minWidthChange"},{emit:"positionChange"},{emit:"rtlEnabledChange"},{emit:"shadingChange"},{emit:"shadingColorChange"},{emit:"showEventChange"},{emit:"targetChange"},{emit:"visibleChange"},{emit:"widthChange"}]),r.setHost(a),a}var s,d;return function(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(r,e),Object.defineProperty(r.prototype,"animation",{get:function(){return this._getOption("animation")},set:function(e){this._setOption("animation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"closeOnOutsideClick",{get:function(){return this._getOption("closeOnOutsideClick")},set:function(e){this._setOption("closeOnOutsideClick",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"container",{get:function(){return this._getOption("container")},set:function(e){this._setOption("container",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"contentTemplate",{get:function(){return this._getOption("contentTemplate")},set:function(e){this._setOption("contentTemplate",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"deferRendering",{get:function(){return this._getOption("deferRendering")},set:function(e){this._setOption("deferRendering",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"disabled",{get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"elementAttr",{get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hideEvent",{get:function(){return this._getOption("hideEvent")},set:function(e){this._setOption("hideEvent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hint",{get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"hoverStateEnabled",{get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"maxHeight",{get:function(){return this._getOption("maxHeight")},set:function(e){this._setOption("maxHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"maxWidth",{get:function(){return this._getOption("maxWidth")},set:function(e){this._setOption("maxWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"minHeight",{get:function(){return this._getOption("minHeight")},set:function(e){this._setOption("minHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"minWidth",{get:function(){return this._getOption("minWidth")},set:function(e){this._setOption("minWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"position",{get:function(){return this._getOption("position")},set:function(e){this._setOption("position",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rtlEnabled",{get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"shading",{get:function(){return this._getOption("shading")},set:function(e){this._setOption("shading",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"shadingColor",{get:function(){return this._getOption("shadingColor")},set:function(e){this._setOption("shadingColor",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"showEvent",{get:function(){return this._getOption("showEvent")},set:function(e){this._setOption("showEvent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"target",{get:function(){return this._getOption("target")},set:function(e){this._setOption("target",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"visible",{get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"width",{get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)},enumerable:!0,configurable:!0}),r.prototype._createInstance=function(e,t){return new o(e,t)},r.prototype.ngOnDestroy=function(){this._destroyWidget()},r.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone},{type:i.DxTemplateHost},{type:i.WatcherHelper},{type:i.NestedOptionHost},{type:t.TransferState},{type:void 0,decorators:[{type:n.Inject,args:[n.PLATFORM_ID]}]}]},u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"animation",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"closeOnOutsideClick",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"container",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"contentTemplate",null),u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],r.prototype,"deferRendering",null),u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],r.prototype,"disabled",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"elementAttr",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"height",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"hideEvent",null),u([n.Input(),a("design:type",String),a("design:paramtypes",[String])],r.prototype,"hint",null),u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],r.prototype,"hoverStateEnabled",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"maxHeight",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"maxWidth",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"minHeight",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"minWidth",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"position",null),u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],r.prototype,"rtlEnabled",null),u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],r.prototype,"shading",null),u([n.Input(),a("design:type",String),a("design:paramtypes",[String])],r.prototype,"shadingColor",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"showEvent",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"target",null),u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],r.prototype,"visible",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],r.prototype,"width",null),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"onContentReady",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"onDisposing",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"onHidden",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"onHiding",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"onInitialized",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"onOptionChanged",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"onShowing",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"onShown",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"animationChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"closeOnOutsideClickChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"containerChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"contentTemplateChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"deferRenderingChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"disabledChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"elementAttrChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"heightChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"hideEventChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"hintChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"hoverStateEnabledChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"maxHeightChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"maxWidthChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"minHeightChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"minWidthChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"positionChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"rtlEnabledChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"shadingChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"shadingColorChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"showEventChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"targetChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"visibleChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],r.prototype,"widthChange",void 0),r=u([n.Component({selector:"dx-tooltip",template:"<ng-content></ng-content>",providers:[i.DxTemplateHost,i.WatcherHelper,i.NestedOptionHost]}),(s=6,d=n.Inject(n.PLATFORM_ID),function(e,t){d(e,t,s)}),a("design:paramtypes",[n.ElementRef,n.NgZone,i.DxTemplateHost,i.WatcherHelper,i.NestedOptionHost,t.TransferState,Object])],r)}(i.DxComponent),d=function(){function e(){}return e=u([n.NgModule({imports:[r.DxoAnimationModule,r.DxoHideModule,r.DxoShowModule,r.DxoHideEventModule,r.DxoPositionModule,r.DxoAtModule,r.DxoBoundaryOffsetModule,r.DxoCollisionModule,r.DxoMyModule,r.DxoOffsetModule,r.DxoShowEventModule,i.DxIntegrationModule,i.DxTemplateModule,t.BrowserTransferStateModule],declarations:[s],exports:[s,r.DxoAnimationModule,r.DxoHideModule,r.DxoShowModule,r.DxoHideEventModule,r.DxoPositionModule,r.DxoAtModule,r.DxoBoundaryOffsetModule,r.DxoCollisionModule,r.DxoMyModule,r.DxoOffsetModule,r.DxoShowEventModule,i.DxTemplateModule]})],e)}();e.DxTooltipComponent=s,e.DxTooltipModule=d,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=devextreme-angular-ui-tooltip.umd.min.js.map