UNPKG

devextreme-angular

Version:

Angular UI and visualization components based on DevExtreme widgets

30 lines (28 loc) • 17.9 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/ui/gallery"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/gallery",["exports","@angular/platform-browser","@angular/core","devextreme/ui/gallery","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.gallery={}),e.ng.platformBrowser,e.ng.core,e.DxGallery,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 a(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 a=e.length-1;a>=0;a--)(i=e[a])&&(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 s(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 u(t,n,o,i,r,p,a,s){var u=e.call(this,t,n,o,i,a,s)||this;return u._watcherHelper=i,u._idh=r,u._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:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"accessKeyChange"},{emit:"animationDurationChange"},{emit:"animationEnabledChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"indicatorEnabledChange"},{emit:"initialItemWidthChange"},{emit:"itemHoldTimeoutChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"loopChange"},{emit:"noDataTextChange"},{emit:"rtlEnabledChange"},{emit:"selectedIndexChange"},{emit:"selectedItemChange"},{emit:"showIndicatorChange"},{emit:"showNavButtonsChange"},{emit:"slideshowDelayChange"},{emit:"stretchImagesChange"},{emit:"swipeEnabledChange"},{emit:"tabIndexChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapAroundChange"}]),u._idh.setHost(u),p.setHost(u),u}var d,l;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)}(u,e),Object.defineProperty(u.prototype,"accessKey",{get:function(){return this._getOption("accessKey")},set:function(e){this._setOption("accessKey",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"animationDuration",{get:function(){return this._getOption("animationDuration")},set:function(e){this._setOption("animationDuration",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"animationEnabled",{get:function(){return this._getOption("animationEnabled")},set:function(e){this._setOption("animationEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"dataSource",{get:function(){return this._getOption("dataSource")},set:function(e){this._setOption("dataSource",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"disabled",{get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"elementAttr",{get:function(){return this._getOption("elementAttr")},set:function(e){this._setOption("elementAttr",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"focusStateEnabled",{get:function(){return this._getOption("focusStateEnabled")},set:function(e){this._setOption("focusStateEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"height",{get:function(){return this._getOption("height")},set:function(e){this._setOption("height",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hint",{get:function(){return this._getOption("hint")},set:function(e){this._setOption("hint",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"hoverStateEnabled",{get:function(){return this._getOption("hoverStateEnabled")},set:function(e){this._setOption("hoverStateEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"indicatorEnabled",{get:function(){return this._getOption("indicatorEnabled")},set:function(e){this._setOption("indicatorEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"initialItemWidth",{get:function(){return this._getOption("initialItemWidth")},set:function(e){this._setOption("initialItemWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"itemHoldTimeout",{get:function(){return this._getOption("itemHoldTimeout")},set:function(e){this._setOption("itemHoldTimeout",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"items",{get:function(){return this._getOption("items")},set:function(e){this._setOption("items",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"itemTemplate",{get:function(){return this._getOption("itemTemplate")},set:function(e){this._setOption("itemTemplate",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"loop",{get:function(){return this._getOption("loop")},set:function(e){this._setOption("loop",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"noDataText",{get:function(){return this._getOption("noDataText")},set:function(e){this._setOption("noDataText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"rtlEnabled",{get:function(){return this._getOption("rtlEnabled")},set:function(e){this._setOption("rtlEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"selectedIndex",{get:function(){return this._getOption("selectedIndex")},set:function(e){this._setOption("selectedIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"selectedItem",{get:function(){return this._getOption("selectedItem")},set:function(e){this._setOption("selectedItem",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"showIndicator",{get:function(){return this._getOption("showIndicator")},set:function(e){this._setOption("showIndicator",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"showNavButtons",{get:function(){return this._getOption("showNavButtons")},set:function(e){this._setOption("showNavButtons",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"slideshowDelay",{get:function(){return this._getOption("slideshowDelay")},set:function(e){this._setOption("slideshowDelay",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"stretchImages",{get:function(){return this._getOption("stretchImages")},set:function(e){this._setOption("stretchImages",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"swipeEnabled",{get:function(){return this._getOption("swipeEnabled")},set:function(e){this._setOption("swipeEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"tabIndex",{get:function(){return this._getOption("tabIndex")},set:function(e){this._setOption("tabIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"visible",{get:function(){return this._getOption("visible")},set:function(e){this._setOption("visible",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"width",{get:function(){return this._getOption("width")},set:function(e){this._setOption("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"wrapAround",{get:function(){return this._getOption("wrapAround")},set:function(e){this._setOption("wrapAround",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"itemsChildren",{get:function(){return this._getOption("items")},set:function(e){this.setChildren("items",e)},enumerable:!0,configurable:!0}),u.prototype._createInstance=function(e,t){return new o(e,t)},u.prototype.ngOnDestroy=function(){this._destroyWidget()},u.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.setupChanges("dataSource",t),this.setupChanges("items",t)},u.prototype.setupChanges=function(e,t){e in this._optionsToUpdate||this._idh.setup(e,t)},u.prototype.ngDoCheck=function(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),e.prototype.ngDoCheck.call(this),e.prototype.clearChangedOptions.call(this)},u.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)},u.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]}]}]},a([n.Input(),s("design:type",String),s("design:paramtypes",[String])],u.prototype,"accessKey",null),a([n.Input(),s("design:type",Number),s("design:paramtypes",[Number])],u.prototype,"animationDuration",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"animationEnabled",null),a([n.Input(),s("design:type",Object),s("design:paramtypes",[Object])],u.prototype,"dataSource",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"disabled",null),a([n.Input(),s("design:type",Object),s("design:paramtypes",[Object])],u.prototype,"elementAttr",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"focusStateEnabled",null),a([n.Input(),s("design:type",Object),s("design:paramtypes",[Object])],u.prototype,"height",null),a([n.Input(),s("design:type",String),s("design:paramtypes",[String])],u.prototype,"hint",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"hoverStateEnabled",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"indicatorEnabled",null),a([n.Input(),s("design:type",Number),s("design:paramtypes",[Number])],u.prototype,"initialItemWidth",null),a([n.Input(),s("design:type",Number),s("design:paramtypes",[Number])],u.prototype,"itemHoldTimeout",null),a([n.Input(),s("design:type",Array),s("design:paramtypes",[Array])],u.prototype,"items",null),a([n.Input(),s("design:type",Object),s("design:paramtypes",[Object])],u.prototype,"itemTemplate",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"loop",null),a([n.Input(),s("design:type",String),s("design:paramtypes",[String])],u.prototype,"noDataText",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"rtlEnabled",null),a([n.Input(),s("design:type",Number),s("design:paramtypes",[Number])],u.prototype,"selectedIndex",null),a([n.Input(),s("design:type",Object),s("design:paramtypes",[Object])],u.prototype,"selectedItem",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"showIndicator",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"showNavButtons",null),a([n.Input(),s("design:type",Number),s("design:paramtypes",[Number])],u.prototype,"slideshowDelay",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"stretchImages",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"swipeEnabled",null),a([n.Input(),s("design:type",Number),s("design:paramtypes",[Number])],u.prototype,"tabIndex",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"visible",null),a([n.Input(),s("design:type",Object),s("design:paramtypes",[Object])],u.prototype,"width",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"wrapAround",null),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"onContentReady",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"onDisposing",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"onInitialized",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"onItemClick",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"onItemContextMenu",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"onItemHold",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"onItemRendered",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"onOptionChanged",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"onSelectionChanged",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"accessKeyChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"animationDurationChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"animationEnabledChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"dataSourceChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"disabledChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"elementAttrChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"focusStateEnabledChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"heightChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"hintChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"hoverStateEnabledChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"indicatorEnabledChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"initialItemWidthChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"itemHoldTimeoutChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"itemsChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"itemTemplateChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"loopChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"noDataTextChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"rtlEnabledChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"selectedIndexChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"selectedItemChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"showIndicatorChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"showNavButtonsChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"slideshowDelayChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"stretchImagesChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"swipeEnabledChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"tabIndexChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"visibleChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"widthChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"wrapAroundChange",void 0),a([n.ContentChildren(r.DxiItemComponent),s("design:type",n.QueryList),s("design:paramtypes",[Object])],u.prototype,"itemsChildren",null),u=a([n.Component({selector:"dx-gallery",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)}),s("design:paramtypes",[n.ElementRef,n.NgZone,i.DxTemplateHost,i.WatcherHelper,i.IterableDifferHelper,i.NestedOptionHost,t.TransferState,Object])],u)}(i.DxComponent),d=function(){function e(){}return e=a([n.NgModule({imports:[r.DxiItemModule,i.DxIntegrationModule,i.DxTemplateModule,t.BrowserTransferStateModule],declarations:[u],exports:[u,r.DxiItemModule,i.DxTemplateModule]})],e)}();e.DxGalleryComponent=u,e.DxGalleryModule=d,Object.defineProperty(e,"__esModule",{value:!0})})); //# sourceMappingURL=devextreme-angular-ui-gallery.umd.min.js.map