devextreme-angular
Version:
Angular UI and visualization components based on DevExtreme widgets
30 lines (28 loc) • 15.8 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/ui/slide_out"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/slide-out",["exports","@angular/platform-browser","@angular/core","devextreme/ui/slide_out","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["slide-out"]={}),e.ng.platformBrowser,e.ng.core,e.DxSlideOut,e["devextreme-angular"].core,e["devextreme-angular"].ui.nested)}(this,(function(e,t,n,o,i,p){"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 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 u(e,t,n,o){var i,p=arguments.length,r=p<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,n,o);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(r=(p<3?i(r):p>3?i(t,n,r):i(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 s=function(e){function s(t,n,o,i,p,r,u,a){var s=e.call(this,t,n,o,i,u,a)||this;return s._watcherHelper=i,s._idh=p,s._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"itemContextMenu",emit:"onItemContextMenu"},{subscribe:"itemHold",emit:"onItemHold"},{subscribe:"itemRendered",emit:"onItemRendered"},{subscribe:"menuGroupRendered",emit:"onMenuGroupRendered"},{subscribe:"menuItemRendered",emit:"onMenuItemRendered"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"activeStateEnabledChange"},{emit:"contentTemplateChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"itemHoldTimeoutChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"menuGroupedChange"},{emit:"menuGroupTemplateChange"},{emit:"menuItemTemplateChange"},{emit:"menuPositionChange"},{emit:"menuVisibleChange"},{emit:"noDataTextChange"},{emit:"rtlEnabledChange"},{emit:"selectedIndexChange"},{emit:"selectedItemChange"},{emit:"swipeEnabledChange"},{emit:"visibleChange"},{emit:"widthChange"}]),s._idh.setHost(s),r.setHost(s),s}var d,l;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)}(s,e),Object.defineProperty(s.prototype,"activeStateEnabled",{get:function(){return this._getOption("activeStateEnabled")},set:function(e){this._setOption("activeStateEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"contentTemplate",{get:function(){return this._getOption("contentTemplate")},set:function(e){this._setOption("contentTemplate",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"dataSource",{get:function(){return this._getOption("dataSource")},set:function(e){this._setOption("dataSource",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"disabled",{get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"elementAttr",{get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"height",{get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hint",{get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"hoverStateEnabled",{get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"itemHoldTimeout",{get:function(){return this._getOption("itemHoldTimeout")},set:function(e){this._setOption("itemHoldTimeout",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"items",{get:function(){return this._getOption("items")},set:function(e){this._setOption("items",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"itemTemplate",{get:function(){return this._getOption("itemTemplate")},set:function(e){this._setOption("itemTemplate",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"menuGrouped",{get:function(){return this._getOption("menuGrouped")},set:function(e){this._setOption("menuGrouped",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"menuGroupTemplate",{get:function(){return this._getOption("menuGroupTemplate")},set:function(e){this._setOption("menuGroupTemplate",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"menuItemTemplate",{get:function(){return this._getOption("menuItemTemplate")},set:function(e){this._setOption("menuItemTemplate",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"menuPosition",{get:function(){return this._getOption("menuPosition")},set:function(e){this._setOption("menuPosition",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"menuVisible",{get:function(){return this._getOption("menuVisible")},set:function(e){this._setOption("menuVisible",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"noDataText",{get:function(){return this._getOption("noDataText")},set:function(e){this._setOption("noDataText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"rtlEnabled",{get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"selectedIndex",{get:function(){return this._getOption("selectedIndex")},set:function(e){this._setOption("selectedIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"selectedItem",{get:function(){return this._getOption("selectedItem")},set:function(e){this._setOption("selectedItem",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"swipeEnabled",{get:function(){return this._getOption("swipeEnabled")},set:function(e){this._setOption("swipeEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"visible",{get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"width",{get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"itemsChildren",{get:function(){return this._getOption("items")},set:function(e){this.setChildren("items",e)},enumerable:!0,configurable:!0}),s.prototype._createInstance=function(e,t){return new o(e,t)},s.prototype.ngOnDestroy=function(){this._destroyWidget()},s.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.setupChanges("dataSource",t),this.setupChanges("items",t)},s.prototype.setupChanges=function(e,t){e in this._optionsToUpdate||this._idh.setup(e,t)},s.prototype.ngDoCheck=function(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),e.prototype.ngDoCheck.call(this),e.prototype.clearChangedOptions.call(this)},s.prototype._setOption=function(t,n){var o=this._idh.setupSingle(t,n),i=null!==this._idh.getChanges(t,n);(o||i)&&e.prototype._setOption.call(this,t,n)},s.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone},{type:i.DxTemplateHost},{type:i.WatcherHelper},{type:i.IterableDifferHelper},{type:i.NestedOptionHost},{type:t.TransferState},{type:void 0,decorators:[{type:n.Inject,args:[n.PLATFORM_ID]}]}]},u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],s.prototype,"activeStateEnabled",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],s.prototype,"contentTemplate",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],s.prototype,"dataSource",null),u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],s.prototype,"disabled",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],s.prototype,"elementAttr",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],s.prototype,"height",null),u([n.Input(),a("design:type",String),a("design:paramtypes",[String])],s.prototype,"hint",null),u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],s.prototype,"hoverStateEnabled",null),u([n.Input(),a("design:type",Number),a("design:paramtypes",[Number])],s.prototype,"itemHoldTimeout",null),u([n.Input(),a("design:type",Array),a("design:paramtypes",[Array])],s.prototype,"items",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],s.prototype,"itemTemplate",null),u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],s.prototype,"menuGrouped",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],s.prototype,"menuGroupTemplate",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],s.prototype,"menuItemTemplate",null),u([n.Input(),a("design:type",String),a("design:paramtypes",[String])],s.prototype,"menuPosition",null),u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],s.prototype,"menuVisible",null),u([n.Input(),a("design:type",String),a("design:paramtypes",[String])],s.prototype,"noDataText",null),u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],s.prototype,"rtlEnabled",null),u([n.Input(),a("design:type",Number),a("design:paramtypes",[Number])],s.prototype,"selectedIndex",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],s.prototype,"selectedItem",null),u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],s.prototype,"swipeEnabled",null),u([n.Input(),a("design:type",Boolean),a("design:paramtypes",[Boolean])],s.prototype,"visible",null),u([n.Input(),a("design:type",Object),a("design:paramtypes",[Object])],s.prototype,"width",null),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"onContentReady",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"onDisposing",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"onInitialized",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"onItemClick",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"onItemContextMenu",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"onItemHold",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"onItemRendered",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"onMenuGroupRendered",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"onMenuItemRendered",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"onOptionChanged",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"onSelectionChanged",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"activeStateEnabledChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"contentTemplateChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"dataSourceChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"disabledChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"elementAttrChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"heightChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"hintChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"hoverStateEnabledChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"itemHoldTimeoutChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"itemsChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"itemTemplateChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"menuGroupedChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"menuGroupTemplateChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"menuItemTemplateChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"menuPositionChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"menuVisibleChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"noDataTextChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"rtlEnabledChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"selectedIndexChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"selectedItemChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"swipeEnabledChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"visibleChange",void 0),u([n.Output(),a("design:type",n.EventEmitter)],s.prototype,"widthChange",void 0),u([n.ContentChildren(p.DxiItemComponent),a("design:type",n.QueryList),a("design:paramtypes",[Object])],s.prototype,"itemsChildren",null),s=u([n.Component({selector:"dx-slide-out",template:"",providers:[i.DxTemplateHost,i.WatcherHelper,i.NestedOptionHost,i.IterableDifferHelper]}),(d=7,l=n.Inject(n.PLATFORM_ID),function(e,t){l(e,t,d)}),a("design:paramtypes",[n.ElementRef,n.NgZone,i.DxTemplateHost,i.WatcherHelper,i.IterableDifferHelper,i.NestedOptionHost,t.TransferState,Object])],s)}(i.DxComponent),d=function(){function e(){}return e=u([n.NgModule({imports:[p.DxiItemModule,i.DxIntegrationModule,i.DxTemplateModule,t.BrowserTransferStateModule],declarations:[s],exports:[s,p.DxiItemModule,i.DxTemplateModule]})],e)}();e.DxSlideOutComponent=s,e.DxSlideOutModule=d,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=devextreme-angular-ui-slide-out.umd.min.js.map