@syncfusion/ej2-filemanager
Advanced tools
Comparing version 17.4.50 to 17.4.51
@@ -7,2 +7,10 @@ # Changelog | ||
#### New Features | ||
- `#263021` - Support has been provided to auto close the upload dialog after uploading all the selected files. | ||
## 17.4.50 (2020-02-18) | ||
### File Manager | ||
#### Bug Fixes | ||
@@ -9,0 +17,0 @@ |
/*! | ||
* filename: index.d.ts | ||
* version : 17.4.50 | ||
* version : 17.4.51 | ||
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-filemanager@*", | ||
"_id": "@syncfusion/ej2-filemanager@17.4.47", | ||
"_id": "@syncfusion/ej2-filemanager@17.4.50", | ||
"_inBundle": false, | ||
"_integrity": "sha512-y2v6MDMINaDXkJXTDkp1fmte8vdvwp+zhtVnHFUUr9ZYtGpBIrPXOWvnFJO0QRyeB5rL6dlYVdxxehdr/BNiBw==", | ||
"_integrity": "sha512-yyaszchqUEp/jJiVmiAiueytl+8fu7nnLSFznTwhR0+9CFBBe14dvOinjo8+bJPr8QTNNxrnwaPAIVGZweyy3Q==", | ||
"_location": "/@syncfusion/ej2-filemanager", | ||
@@ -26,4 +26,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-filemanager/-/ej2-filemanager-17.4.47.tgz", | ||
"_shasum": "4e5a851a0c6c73050e281fbefb4583590cbef9d5", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-filemanager/-/ej2-filemanager-17.4.50.tgz", | ||
"_shasum": "363c63ceb2cd00fea187fe356017a451d0fb3cf9", | ||
"_spec": "@syncfusion/ej2-filemanager@*", | ||
@@ -35,8 +35,8 @@ "_where": "/jenkins/workspace/ation_hotfix_17.2.0.34_Vol2-DDPJ6C2YEWTWLLKKNA7AG2JBE6DYTCTNGMHGORWGAYAVCL6L7OLQ/packages/included", | ||
"bugs": { | ||
"url": "https://github.com/syncfusion/ej2-filemanager/issues" | ||
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues" | ||
}, | ||
"bundleDependencies": false, | ||
"dependencies": { | ||
"@syncfusion/ej2-grids": "~17.4.50", | ||
"@syncfusion/ej2-layouts": "~17.4.50", | ||
"@syncfusion/ej2-grids": "~17.4.51", | ||
"@syncfusion/ej2-layouts": "~17.4.51", | ||
"selenium-webdriver": "^4.0.0-alpha.1" | ||
@@ -48,3 +48,3 @@ }, | ||
"es2015": "./dist/es6/ej2-filemanager.es2015.js", | ||
"homepage": "https://github.com/syncfusion/ej2-filemanager#readme", | ||
"homepage": "https://github.com/syncfusion/ej2-javascript-ui-controls#readme", | ||
"keywords": [ | ||
@@ -61,7 +61,7 @@ "ej2", | ||
"type": "git", | ||
"url": "git+https://github.com/syncfusion/ej2-filemanager.git" | ||
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git" | ||
}, | ||
"typings": "index.d.ts", | ||
"version": "17.4.50", | ||
"version": "17.4.51", | ||
"sideEffects": false | ||
} |
@@ -25,7 +25,19 @@ # ej2-filemanager | ||
* [Getting Started](https://ej2.syncfusion.com/documentation/file-manager/getting-started.html?lang=typescript&utm_source=npm&utm_campaign=treeview) | ||
* [View Online Demos](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=file-manager#/material/file-manager/default.html) | ||
* [Product Page](https://www.syncfusion.com/products/javascript/file-manager) | ||
* [Getting Started](https://ej2.syncfusion.com/documentation/file-manager/getting-started/?lang=typescript&utm_source=npm&utm_campaign=filemanager) | ||
* [API References]( https://ej2.syncfusion.com/documentation/api/file-manager?lang=typescript&utm_source=npm&utm_campaign=filemanager) | ||
* [View Online Demos](https://ej2.syncfusion.com/demos/?utm_source=npm&utm_campaign=filemanager#/material/file-manager/overview.html) | ||
* [Product Page](https://www.syncfusion.com/javascript-ui-controls/js-file-manager) | ||
## Supported Frameworks | ||
`File Manager` component is also offered in following list of frameworks, | ||
1. [Angular](https://github.com/syncfusion/ej2-angular-ui-components/tree/master/components/filemanager?utm_source=npm&utm_campaign=filemanager) | ||
2. [React](https://github.com/syncfusion/ej2-react-ui-components/tree/master/components/filemanager?utm_source=npm&utm_campaign=filemanager) | ||
3. [VueJS](https://github.com/syncfusion/ej2-vue-ui-components/tree/master/components/filemanager?utm_source=npm&utm_campaign=filemanager) | ||
4. [ASP.NET Core](https://www.syncfusion.com/aspnet-core-ui-controls/file-manager) | ||
5. [ASP.NET MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls/file-manager) | ||
6. [JavaScript (ES5)](https://www.syncfusion.com/javascript-ui-controls/js-file-manager) | ||
## Key Features | ||
@@ -47,3 +59,3 @@ | ||
* Creating incident in Syncfusion [Direct-trac](https://www.syncfusion.com/support/directtrac/incidents?utm_source=npm&utm_campaign=filemanager) support system or [Community forum](https://www.syncfusion.com/forums/essential-js2?utm_source=npm&utm_campaign=filemanager). | ||
* New [GitHub issue](https://github.com/syncfusion/ej2-filemanager/issues/new). | ||
* New [GitHub issue](https://github.com/syncfusion/ej2-javascript-ui-controls/issues/new). | ||
* Ask your query in [Stack Overflow](https://stackoverflow.com/?utm_source=npm&utm_campaign=filemanager) with tag `syncfusion` and `ej2`. | ||
@@ -53,8 +65,8 @@ | ||
Check the license detail [here](https://github.com/syncfusion/ej2-filemanager/blob/master/license?utm_source=npm&utm_campaign=filemanager). | ||
Check the license detail [here](https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/license?utm_source=npm&utm_campaign=filemanager). | ||
## Changelog | ||
Check the changelog [here](https://github.com/syncfusion/ej2-filemanager/blob/master/CHANGELOG.md?utm_source=npm&utm_campaign=filemanager) | ||
Check the changelog [here]( https://github.com/syncfusion/ej2-javascript-ui-controls/blob/master/controls/filemanager/CHANGELOG.md?utm_source=npm&utm_campaign=filemanager) | ||
© Copyright 2019 Syncfusion, Inc. All Rights Reserved. The Syncfusion Essential Studio license and copyright applies to this distribution. |
@@ -42,2 +42,4 @@ /** | ||
/** @hidden */ | ||
export declare const skipUpload: string; | ||
/** @hidden */ | ||
export declare const afterRequest: string; | ||
@@ -44,0 +46,0 @@ /** @hidden */ |
@@ -42,2 +42,4 @@ /** | ||
/** @hidden */ | ||
export var skipUpload = 'skip-upload'; | ||
/** @hidden */ | ||
export var afterRequest = 'after-request'; | ||
@@ -44,0 +46,0 @@ /** @hidden */ |
@@ -164,3 +164,4 @@ import { Component, EmitType, ModuleDeclaration, isNullOrUndefined, L10n, closest, isBlazor } from '@syncfusion/ej2-base';import { Property, INotifyPropertyChanged, NotifyPropertyChanges, Complex, select } from '@syncfusion/ej2-base';import { createElement, addClass, removeClass, setStyleAttribute as setAttr } from '@syncfusion/ej2-base';import { isNullOrUndefined as isNOU, formatUnit, Browser, KeyboardEvents, KeyboardEventArgs } from '@syncfusion/ej2-base';import { Event, EventHandler, getValue, setValue } from '@syncfusion/ej2-base';import { Splitter, PanePropertiesModel } from '@syncfusion/ej2-layouts';import { Dialog, createSpinner, hideSpinner, showSpinner, BeforeOpenEventArgs, BeforeCloseEventArgs } from '@syncfusion/ej2-popups';import { createDialog, createExtDialog } from '../pop-up/dialog';import { ToolbarSettings, ToolbarSettingsModel, AjaxSettings, NavigationPaneSettings, DetailsViewSettings } from '../models/index';import { NavigationPaneSettingsModel, DetailsViewSettingsModel } from '../models/index';import { AjaxSettingsModel, SearchSettings, SearchSettingsModel } from '../models/index';import { Toolbar } from '../actions/toolbar';import { DetailsView } from '../layout/details-view';import { LargeIconsView } from '../layout/large-icons-view';import { Uploader, UploadingEventArgs, SelectedEventArgs, FileInfo } from '@syncfusion/ej2-inputs';import { UploadSettingsModel } from '../models/upload-settings-model';import { UploadSettings } from '../models/upload-settings';import * as events from './constant';import * as CLS from './classes';import { read, filter, createFolder } from '../common/operations';import { ITreeView, IContextMenu, ViewType, SortOrder, FileDragEventArgs, RetryArgs, ReadArgs, FileSelectionEventArgs } from './interface';import { BeforeSendEventArgs, SuccessEventArgs, FailureEventArgs, FileLoadEventArgs } from './interface';import { FileOpenEventArgs, FileSelectEventArgs, MenuClickEventArgs, MenuOpenEventArgs } from './interface';import { ToolbarClickEventArgs, ToolbarCreateEventArgs, UploadListCreateArgs } from './interface';import { PopupOpenCloseEventArgs, BeforePopupOpenCloseEventArgs, BeforeDownloadEventArgs, BeforeImageLoadEventArgs } from './interface';import { refresh, getPathObject, getLocaleText, setNextPath, createDeniedDialog } from '../common/utility';import { hasContentAccess, hasUploadAccess, updateLayout, createNewFolder, uploadItem } from '../common/utility';import { TreeView as BaseTreeView } from '@syncfusion/ej2-navigations';import { ContextMenuSettingsModel } from '../models/contextMenu-settings-model';import { ContextMenuSettings } from '../models/contextMenu-settings';import { BreadCrumbBar } from '../actions/breadcrumb-bar';import { ContextMenu } from '../pop-up/context-menu';import { defaultLocale } from '../models/default-locale';import { PositionModel } from '@syncfusion/ej2-base/src/draggable-model'; | ||
* maxFileSize: 30000000, | ||
* allowedExtensions: '' | ||
* allowedExtensions: '', | ||
* autoClose: false | ||
* } | ||
@@ -167,0 +168,0 @@ */ |
@@ -142,2 +142,4 @@ import { Component, EmitType, ModuleDeclaration, L10n } from '@syncfusion/ej2-base'; | ||
destinationPath: string; | ||
uploadingCount: number; | ||
uploadedCount: number; | ||
/** | ||
@@ -279,3 +281,4 @@ * Specifies the AJAX settings of the file manager. | ||
* maxFileSize: 30000000, | ||
* allowedExtensions: '' | ||
* allowedExtensions: '', | ||
* autoClose: false | ||
* } | ||
@@ -484,2 +487,3 @@ */ | ||
private onSelected; | ||
private onFileUploadSuccess; | ||
private onUploadSuccess; | ||
@@ -486,0 +490,0 @@ private onUploadFailure; |
@@ -97,2 +97,4 @@ var __extends = (this && this.__extends) || (function () { | ||
_this.droppedObjects = []; | ||
_this.uploadingCount = 0; | ||
_this.uploadedCount = 0; | ||
FileManager_1.Inject(BreadCrumbBar, LargeIconsView, ContextMenu); | ||
@@ -506,2 +508,3 @@ return _this; | ||
FileManager.prototype.onRemoving = function () { | ||
this.onFileUploadSuccess({ count: 1 }); | ||
if (this.uploadObj.getFilesData().length === 1) { | ||
@@ -522,2 +525,4 @@ this.uploadDialogObj.hide(); | ||
} | ||
this.uploadingCount = args.filesData.length; | ||
this.uploadedCount = 0; | ||
var details = getPathObject(this); | ||
@@ -531,2 +536,8 @@ if (!hasUploadAccess(details)) { | ||
}; | ||
FileManager.prototype.onFileUploadSuccess = function (args) { | ||
this.uploadedCount = this.uploadedCount + args.count; | ||
if (this.uploadSettings.autoClose && (this.uploadingCount === this.uploadedCount)) { | ||
this.uploadDialogObj.hide(); | ||
} | ||
}; | ||
/* istanbul ignore next */ | ||
@@ -538,2 +549,3 @@ FileManager.prototype.onUploadSuccess = function (files) { | ||
read(this, events.pathChanged, this.path); | ||
this.onFileUploadSuccess({ count: 1 }); | ||
if (typeof getValue('onSuccess', this.uploadEventArgs.ajaxSettings) === 'function') { | ||
@@ -570,2 +582,3 @@ getValue('onSuccess', this.uploadEventArgs.ajaxSettings)(); | ||
this.on(events.detailsInit, this.onDetailsInit, this); | ||
this.on(events.skipUpload, this.onFileUploadSuccess, this); | ||
EventHandler.add(this.element, 'contextmenu', this.onContextMenu, this); | ||
@@ -581,2 +594,3 @@ }; | ||
this.off(events.detailsInit, this.onDetailsInit); | ||
this.off(events.skipUpload, this.onFileUploadSuccess); | ||
EventHandler.remove(this.element, 'contextmenu', this.onContextMenu); | ||
@@ -583,0 +597,0 @@ }; |
@@ -24,2 +24,8 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base'; | ||
/** | ||
* Defines whether to close the upload dialog after uploading all the files. | ||
* @default false | ||
*/ | ||
autoClose?: boolean; | ||
/** | ||
* Specifies the minimum file size to be uploaded in bytes. | ||
@@ -26,0 +32,0 @@ * The property is used to make sure that you cannot upload empty files and small files. |
@@ -20,2 +20,7 @@ import { ChildProperty } from '@syncfusion/ej2-base'; | ||
/** | ||
* Defines whether to close the upload dialog after uploading all the files. | ||
* @default false | ||
*/ | ||
autoClose: boolean; | ||
/** | ||
* Specifies the minimum file size to be uploaded in bytes. | ||
@@ -22,0 +27,0 @@ * The property is used to make sure that you cannot upload empty files and small files. |
@@ -36,2 +36,5 @@ var __extends = (this && this.__extends) || (function () { | ||
__decorate([ | ||
Property(false) | ||
], UploadSettings.prototype, "autoClose", void 0); | ||
__decorate([ | ||
Property(0) | ||
@@ -38,0 +41,0 @@ ], UploadSettings.prototype, "minFileSize", void 0); |
@@ -252,3 +252,5 @@ import { Dialog } from '@syncfusion/ej2-popups'; | ||
click: function () { | ||
var count = 0; | ||
if (parent.isApplySame) { | ||
count = parent.retryFiles.length; | ||
parent.retryFiles = []; | ||
@@ -258,5 +260,7 @@ retryDlgClose(parent); | ||
else { | ||
count = 1; | ||
parent.retryFiles.splice(0, 1); | ||
(parent.retryFiles.length !== 0) ? createExtDialog(parent, 'UploadRetry') : retryDlgClose(parent); | ||
} | ||
parent.notify(events.skipUpload, { count: count }); | ||
} | ||
@@ -263,0 +267,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
8690074
69273
0
1
69