devextreme-angular
Version:
Angular UI and visualization components based on DevExtreme widgets
30 lines (28 loc) • 17.9 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/ui/accordion"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/accordion",["exports","@angular/platform-browser","@angular/core","devextreme/ui/accordion","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.accordion={}),e.ng.platformBrowser,e.ng.core,e.DxAccordion,e["devextreme-angular"].core,e["devextreme-angular"].ui.nested)}(this,(function(e,t,n,i,o,r){"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 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,i){var o,r=arguments.length,p=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(p=(r<3?o(p):r>3?o(t,n,p):o(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,i,o,r,p,a,s){var u=e.call(this,t,n,i,o,a,s)||this;return u._watcherHelper=o,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:"itemTitleClick",emit:"onItemTitleClick"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"animationDurationChange"},{emit:"collapsibleChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"itemHoldTimeoutChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"itemTitleTemplateChange"},{emit:"keyExprChange"},{emit:"multipleChange"},{emit:"noDataTextChange"},{emit:"repaintChangesOnlyChange"},{emit:"rtlEnabledChange"},{emit:"selectedIndexChange"},{emit:"selectedItemChange"},{emit:"selectedItemKeysChange"},{emit:"selectedItemsChange"},{emit:"tabIndexChange"},{emit:"visibleChange"},{emit:"widthChange"}]),u._idh.setHost(u),p.setHost(u),u}var l,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)}(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,"activeStateEnabled",{get:function(){return this._getOption("activeStateEnabled")},set:function(e){this._setOption("activeStateEnabled",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,"collapsible",{get:function(){return this._getOption("collapsible")},set:function(e){this._setOption("collapsible",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,"deferRendering",{get:function(){return this._getOption("deferRendering")},set:function(e){this._setOption("deferRendering",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,"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,"itemTitleTemplate",{get:function(){return this._getOption("itemTitleTemplate")},set:function(e){this._setOption("itemTitleTemplate",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"keyExpr",{get:function(){return this._getOption("keyExpr")},set:function(e){this._setOption("keyExpr",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"multiple",{get:function(){return this._getOption("multiple")},set:function(e){this._setOption("multiple",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,"repaintChangesOnly",{get:function(){return this._getOption("repaintChangesOnly")},set:function(e){this._setOption("repaintChangesOnly",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,"selectedItemKeys",{get:function(){return this._getOption("selectedItemKeys")},set:function(e){this._setOption("selectedItemKeys",e)},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"selectedItems",{get:function(){return this._getOption("selectedItems")},set:function(e){this._setOption("selectedItems",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,"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 i(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),this.setupChanges("selectedItemKeys",t),this.setupChanges("selectedItems",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._idh.doCheck("selectedItemKeys"),this._idh.doCheck("selectedItems"),this._watcherHelper.checkWatchers(),e.prototype.ngDoCheck.call(this),e.prototype.clearChangedOptions.call(this)},u.prototype._setOption=function(t,n){var i=this._idh.setupSingle(t,n),o=null!==this._idh.getChanges(t,n);(i||o)&&e.prototype._setOption.call(this,t,n)},u.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone},{type:o.DxTemplateHost},{type:o.WatcherHelper},{type:o.IterableDifferHelper},{type:o.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",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"activeStateEnabled",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,"collapsible",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,"deferRendering",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",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",Object),s("design:paramtypes",[Object])],u.prototype,"itemTitleTemplate",null),a([n.Input(),s("design:type",Object),s("design:paramtypes",[Object])],u.prototype,"keyExpr",null),a([n.Input(),s("design:type",Boolean),s("design:paramtypes",[Boolean])],u.prototype,"multiple",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,"repaintChangesOnly",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",Array),s("design:paramtypes",[Array])],u.prototype,"selectedItemKeys",null),a([n.Input(),s("design:type",Array),s("design:paramtypes",[Array])],u.prototype,"selectedItems",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.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,"onItemTitleClick",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,"activeStateEnabledChange",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,"collapsibleChange",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,"deferRenderingChange",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,"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,"itemTitleTemplateChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"keyExprChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"multipleChange",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,"repaintChangesOnlyChange",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,"selectedItemKeysChange",void 0),a([n.Output(),s("design:type",n.EventEmitter)],u.prototype,"selectedItemsChange",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.ContentChildren(r.DxiItemComponent),s("design:type",n.QueryList),s("design:paramtypes",[Object])],u.prototype,"itemsChildren",null),u=a([n.Component({selector:"dx-accordion",template:"",providers:[o.DxTemplateHost,o.WatcherHelper,o.NestedOptionHost,o.IterableDifferHelper]}),(l=7,d=n.Inject(n.PLATFORM_ID),function(e,t){d(e,t,l)}),s("design:paramtypes",[n.ElementRef,n.NgZone,o.DxTemplateHost,o.WatcherHelper,o.IterableDifferHelper,o.NestedOptionHost,t.TransferState,Object])],u)}(o.DxComponent),l=function(){function e(){}return e=a([n.NgModule({imports:[r.DxiItemModule,o.DxIntegrationModule,o.DxTemplateModule,t.BrowserTransferStateModule],declarations:[u],exports:[u,r.DxiItemModule,o.DxTemplateModule]})],e)}();e.DxAccordionComponent=u,e.DxAccordionModule=l,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=devextreme-angular-ui-accordion.umd.min.js.map