devextreme-angular
Version:
Angular UI and visualization components based on DevExtreme widgets
30 lines (28 loc) • 13.7 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/bundles/dx.all"),require("devextreme/ui/pivot_grid_field_chooser"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/pivot-grid-field-chooser",["exports","@angular/platform-browser","@angular/core","devextreme/bundles/dx.all","devextreme/ui/pivot_grid_field_chooser","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["pivot-grid-field-chooser"]={}),e.ng.platformBrowser,e.ng.core,e.DevExpress,e.DxPivotGridFieldChooser,e["devextreme-angular"].core,e["devextreme-angular"].ui.nested)}(this,(function(e,t,n,o,i,r,p){"use strict";o=o&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o,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 a=function(e,t){return(a=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,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 u(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 d=function(e){function p(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:"contextMenuPreparing",emit:"onContextMenuPreparing"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowSearchChange"},{emit:"applyChangesModeChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"headerFilterChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"layoutChange"},{emit:"rtlEnabledChange"},{emit:"searchTimeoutChange"},{emit:"stateChange"},{emit:"tabIndexChange"},{emit:"textsChange"},{emit:"visibleChange"},{emit:"widthChange"}]),u._idh.setHost(u),p.setHost(u),u}var d,l;return function(e,t){function n(){this.constructor=e}a(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,"activeStateEnabled",{get:function(){return this._getOption("activeStateEnabled")},set:function(e){this._setOption("activeStateEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"allowSearch",{get:function(){return this._getOption("allowSearch")},set:function(e){this._setOption("allowSearch",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"applyChangesMode",{get:function(){return this._getOption("applyChangesMode")},set:function(e){this._setOption("applyChangesMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"dataSource",{get:function(){return this._getOption("dataSource")},set:function(e){this._setOption("dataSource",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"disabled",{get:function(){return this._getOption("disabled")},set:function(e){this._setOption("disabled",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,"headerFilter",{get:function(){return this._getOption("headerFilter")},set:function(e){this._setOption("headerFilter",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,"layout",{get:function(){return this._getOption("layout")},set:function(e){this._setOption("layout",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,"searchTimeout",{get:function(){return this._getOption("searchTimeout")},set:function(e){this._setOption("searchTimeout",e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"state",{get:function(){return this._getOption("state")},set:function(e){this._setOption("state",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,"texts",{get:function(){return this._getOption("texts")},set:function(e){this._setOption("texts",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.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.setupChanges("dataSource",t)},p.prototype.setupChanges=function(e,t){e in this._optionsToUpdate||this._idh.setup(e,t)},p.prototype.ngDoCheck=function(){this._idh.doCheck("dataSource"),this._watcherHelper.checkWatchers(),e.prototype.ngDoCheck.call(this),e.prototype.clearChangedOptions.call(this)},p.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)},p.ctorParameters=function(){return[{type:n.ElementRef},{type:n.NgZone},{type:r.DxTemplateHost},{type:r.WatcherHelper},{type:r.IterableDifferHelper},{type:r.NestedOptionHost},{type:t.TransferState},{type:void 0,decorators:[{type:n.Inject,args:[n.PLATFORM_ID]}]}]},s([n.Input(),u("design:type",String),u("design:paramtypes",[String])],p.prototype,"accessKey",null),s([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],p.prototype,"activeStateEnabled",null),s([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],p.prototype,"allowSearch",null),s([n.Input(),u("design:type",String),u("design:paramtypes",[String])],p.prototype,"applyChangesMode",null),s([n.Input(),u("design:type",o.data.PivotGridDataSource),u("design:paramtypes",[o.data.PivotGridDataSource])],p.prototype,"dataSource",null),s([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],p.prototype,"disabled",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"elementAttr",null),s([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],p.prototype,"focusStateEnabled",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"headerFilter",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"height",null),s([n.Input(),u("design:type",String),u("design:paramtypes",[String])],p.prototype,"hint",null),s([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],p.prototype,"hoverStateEnabled",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"layout",null),s([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],p.prototype,"rtlEnabled",null),s([n.Input(),u("design:type",Number),u("design:paramtypes",[Number])],p.prototype,"searchTimeout",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"state",null),s([n.Input(),u("design:type",Number),u("design:paramtypes",[Number])],p.prototype,"tabIndex",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"texts",null),s([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],p.prototype,"visible",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],p.prototype,"width",null),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"onContentReady",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"onContextMenuPreparing",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"onDisposing",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"onInitialized",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"onOptionChanged",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"accessKeyChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"activeStateEnabledChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"allowSearchChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"applyChangesModeChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"dataSourceChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"disabledChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"elementAttrChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"focusStateEnabledChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"headerFilterChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"heightChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"hintChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"hoverStateEnabledChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"layoutChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"rtlEnabledChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"searchTimeoutChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"stateChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"tabIndexChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"textsChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"visibleChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],p.prototype,"widthChange",void 0),p=s([n.Component({selector:"dx-pivot-grid-field-chooser",template:"",providers:[r.DxTemplateHost,r.WatcherHelper,r.NestedOptionHost,r.IterableDifferHelper]}),(d=7,l=n.Inject(n.PLATFORM_ID),function(e,t){l(e,t,d)}),u("design:paramtypes",[n.ElementRef,n.NgZone,r.DxTemplateHost,r.WatcherHelper,r.IterableDifferHelper,r.NestedOptionHost,t.TransferState,Object])],p)}(r.DxComponent),l=function(){function e(){}return e=s([n.NgModule({imports:[p.DxoHeaderFilterModule,p.DxoTextsModule,r.DxIntegrationModule,r.DxTemplateModule,t.BrowserTransferStateModule],declarations:[d],exports:[d,p.DxoHeaderFilterModule,p.DxoTextsModule,r.DxTemplateModule]})],e)}();e.DxPivotGridFieldChooserComponent=d,e.DxPivotGridFieldChooserModule=l,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=devextreme-angular-ui-pivot-grid-field-chooser.umd.min.js.map