devextreme-angular
Version:
Angular UI and visualization components based on DevExtreme widgets
30 lines (28 loc) • 17.8 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/platform-browser"),require("@angular/core"),require("devextreme/ui/file_manager"),require("devextreme-angular/core"),require("devextreme-angular/ui/nested")):"function"==typeof define&&define.amd?define("devextreme-angular/ui/file-manager",["exports","@angular/platform-browser","@angular/core","devextreme/ui/file_manager","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["file-manager"]={}),e.ng.platformBrowser,e.ng.core,e.DxFileManager,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 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 s=e.length-1;s>=0;s--)(i=e[s])&&(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 a=function(e){function r(t,n,o,i,r,p,s,u){var a=e.call(this,t,n,o,i,s,u)||this;return a._watcherHelper=i,a._idh=r,a._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"contextMenuItemClick",emit:"onContextMenuItemClick"},{subscribe:"currentDirectoryChanged",emit:"onCurrentDirectoryChanged"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"errorOccurred",emit:"onErrorOccurred"},{subscribe:"focusedItemChanged",emit:"onFocusedItemChanged"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectedFileOpened",emit:"onSelectedFileOpened"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"toolbarItemClick",emit:"onToolbarItemClick"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowedFileExtensionsChange"},{emit:"contextMenuChange"},{emit:"currentPathChange"},{emit:"currentPathKeysChange"},{emit:"customizeDetailColumnsChange"},{emit:"customizeThumbnailChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"fileSystemProviderChange"},{emit:"focusedItemKeyChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"itemViewChange"},{emit:"permissionsChange"},{emit:"rootFolderNameChange"},{emit:"rtlEnabledChange"},{emit:"selectedItemKeysChange"},{emit:"selectionModeChange"},{emit:"tabIndexChange"},{emit:"toolbarChange"},{emit:"uploadChange"},{emit:"visibleChange"},{emit:"widthChange"}]),a._idh.setHost(a),p.setHost(a),a}var a,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)}(r,e),Object.defineProperty(r.prototype,"accessKey",{get:function(){return this._getOption("accessKey")},set:function(e){this._setOption("accessKey",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"activeStateEnabled",{get:function(){return this._getOption("activeStateEnabled")},set:function(e){this._setOption("activeStateEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"allowedFileExtensions",{get:function(){return this._getOption("allowedFileExtensions")},set:function(e){this._setOption("allowedFileExtensions",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"contextMenu",{get:function(){return this._getOption("contextMenu")},set:function(e){this._setOption("contextMenu",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"currentPath",{get:function(){return this._getOption("currentPath")},set:function(e){this._setOption("currentPath",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"currentPathKeys",{get:function(){return this._getOption("currentPathKeys")},set:function(e){this._setOption("currentPathKeys",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"customizeDetailColumns",{get:function(){return this._getOption("customizeDetailColumns")},set:function(e){this._setOption("customizeDetailColumns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"customizeThumbnail",{get:function(){return this._getOption("customizeThumbnail")},set:function(e){this._setOption("customizeThumbnail",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,"fileSystemProvider",{get:function(){return this._getOption("fileSystemProvider")},set:function(e){this._setOption("fileSystemProvider",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"focusedItemKey",{get:function(){return this._getOption("focusedItemKey")},set:function(e){this._setOption("focusedItemKey",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"focusStateEnabled",{get:function(){return this._getOption("focusStateEnabled")},set:function(e){this._setOption("focusStateEnabled",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,"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,"itemView",{get:function(){return this._getOption("itemView")},set:function(e){this._setOption("itemView",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"permissions",{get:function(){return this._getOption("permissions")},set:function(e){this._setOption("permissions",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rootFolderName",{get:function(){return this._getOption("rootFolderName")},set:function(e){this._setOption("rootFolderName",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,"selectedItemKeys",{get:function(){return this._getOption("selectedItemKeys")},set:function(e){this._setOption("selectedItemKeys",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"selectionMode",{get:function(){return this._getOption("selectionMode")},set:function(e){this._setOption("selectionMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tabIndex",{get:function(){return this._getOption("tabIndex")},set:function(e){this._setOption("tabIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"toolbar",{get:function(){return this._getOption("toolbar")},set:function(e){this._setOption("toolbar",e)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"upload",{get:function(){return this._getOption("upload")},set:function(e){this._setOption("upload",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.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.setupChanges("allowedFileExtensions",t),this.setupChanges("currentPathKeys",t),this.setupChanges("selectedItemKeys",t)},r.prototype.setupChanges=function(e,t){e in this._optionsToUpdate||this._idh.setup(e,t)},r.prototype.ngDoCheck=function(){this._idh.doCheck("allowedFileExtensions"),this._idh.doCheck("currentPathKeys"),this._idh.doCheck("selectedItemKeys"),this._watcherHelper.checkWatchers(),e.prototype.ngDoCheck.call(this),e.prototype.clearChangedOptions.call(this)},r.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)},r.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]}]}]},s([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"accessKey",null),s([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"activeStateEnabled",null),s([n.Input(),u("design:type",Array),u("design:paramtypes",[Array])],r.prototype,"allowedFileExtensions",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"contextMenu",null),s([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"currentPath",null),s([n.Input(),u("design:type",Array),u("design:paramtypes",[Array])],r.prototype,"currentPathKeys",null),s([n.Input(),u("design:type",Function),u("design:paramtypes",[Function])],r.prototype,"customizeDetailColumns",null),s([n.Input(),u("design:type",Function),u("design:paramtypes",[Function])],r.prototype,"customizeThumbnail",null),s([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"disabled",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"elementAttr",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"fileSystemProvider",null),s([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"focusedItemKey",null),s([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"focusStateEnabled",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"height",null),s([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"hint",null),s([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"hoverStateEnabled",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"itemView",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"permissions",null),s([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"rootFolderName",null),s([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"rtlEnabled",null),s([n.Input(),u("design:type",Array),u("design:paramtypes",[Array])],r.prototype,"selectedItemKeys",null),s([n.Input(),u("design:type",String),u("design:paramtypes",[String])],r.prototype,"selectionMode",null),s([n.Input(),u("design:type",Number),u("design:paramtypes",[Number])],r.prototype,"tabIndex",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"toolbar",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"upload",null),s([n.Input(),u("design:type",Boolean),u("design:paramtypes",[Boolean])],r.prototype,"visible",null),s([n.Input(),u("design:type",Object),u("design:paramtypes",[Object])],r.prototype,"width",null),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onContentReady",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onContextMenuItemClick",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onCurrentDirectoryChanged",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onDisposing",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onErrorOccurred",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onFocusedItemChanged",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onInitialized",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onOptionChanged",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onSelectedFileOpened",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onSelectionChanged",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"onToolbarItemClick",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"accessKeyChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"activeStateEnabledChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"allowedFileExtensionsChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"contextMenuChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"currentPathChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"currentPathKeysChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"customizeDetailColumnsChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"customizeThumbnailChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"disabledChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"elementAttrChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"fileSystemProviderChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"focusedItemKeyChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"focusStateEnabledChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"heightChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"hintChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"hoverStateEnabledChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"itemViewChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"permissionsChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"rootFolderNameChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"rtlEnabledChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"selectedItemKeysChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"selectionModeChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"tabIndexChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"toolbarChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"uploadChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"visibleChange",void 0),s([n.Output(),u("design:type",n.EventEmitter)],r.prototype,"widthChange",void 0),r=s([n.Component({selector:"dx-file-manager",template:"",providers:[i.DxTemplateHost,i.WatcherHelper,i.NestedOptionHost,i.IterableDifferHelper]}),(a=7,l=n.Inject(n.PLATFORM_ID),function(e,t){l(e,t,a)}),u("design:paramtypes",[n.ElementRef,n.NgZone,i.DxTemplateHost,i.WatcherHelper,i.IterableDifferHelper,i.NestedOptionHost,t.TransferState,Object])],r)}(i.DxComponent),l=function(){function e(){}return e=s([n.NgModule({imports:[r.DxoContextMenuModule,r.DxiItemModule,r.DxoItemViewModule,r.DxoDetailsModule,r.DxiColumnModule,r.DxoPermissionsModule,r.DxoToolbarModule,r.DxiFileSelectionItemModule,r.DxoUploadModule,i.DxIntegrationModule,i.DxTemplateModule,t.BrowserTransferStateModule],declarations:[a],exports:[a,r.DxoContextMenuModule,r.DxiItemModule,r.DxoItemViewModule,r.DxoDetailsModule,r.DxiColumnModule,r.DxoPermissionsModule,r.DxoToolbarModule,r.DxiFileSelectionItemModule,r.DxoUploadModule,i.DxTemplateModule]})],e)}();e.DxFileManagerComponent=a,e.DxFileManagerModule=l,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=devextreme-angular-ui-file-manager.umd.min.js.map