Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@syncfusion/ej2-filemanager

Package Overview
Dependencies
Maintainers
4
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-filemanager - npm Package Compare versions

Comparing version 17.2.36 to 17.2.40

8

CHANGELOG.md

@@ -7,2 +7,10 @@ # Changelog

#### New Features
- The `ID` based support has been provided to the `selectedItems` property to manage the files with duplicate names.
## 17.2.36 (2019-07-24)
### File Manager
#### Bug Fixes

@@ -9,0 +17,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 17.2.36
* version : 17.2.40
* 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.2.35",
"_id": "@syncfusion/ej2-filemanager@17.2.36",
"_inBundle": false,
"_integrity": "sha512-yaKlYERRi4dZbZULZm0fFVEPwdkF7BBhw+3J1MN24z6jrfsh8wMkGO2USSnP2AFjDf7btD+FgnQf3mnFUmnS/Q==",
"_integrity": "sha512-UCIFjxjNAWKsfMLPSlsus9qemEotLT0J/AJeC1dzIgdAQt74IXrWhCKiPnlkv+5KdXKxNsDOc1Q9TGtm5qdz8A==",
"_location": "/@syncfusion/ej2-filemanager",

@@ -26,4 +26,4 @@ "_phantomChildren": {},

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-filemanager/-/ej2-filemanager-17.2.35.tgz",
"_shasum": "6647973a758a1d38681729f0288011a917835ade",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-filemanager/-/ej2-filemanager-17.2.36.tgz",
"_shasum": "f53e0d9509a0a052ae49d6e1d93a10543f8932f6",
"_spec": "@syncfusion/ej2-filemanager@*",

@@ -39,4 +39,4 @@ "_where": "/jenkins/workspace/ation_hotfix_16.4.0.42_Vol4-CJVRBFC7Z7RSISPRJNEMNQSRMCB6XTG67IJD6R2DVNXFIKQEITTQ/packages/included",

"dependencies": {
"@syncfusion/ej2-grids": "~17.2.36",
"@syncfusion/ej2-layouts": "~17.2.36",
"@syncfusion/ej2-grids": "~17.2.40",
"@syncfusion/ej2-layouts": "~17.2.40",
"selenium-webdriver": "^4.0.0-alpha.1"

@@ -63,4 +63,4 @@ },

"typings": "index.d.ts",
"version": "17.2.36",
"version": "17.2.40",
"sideEffects": false
}

@@ -15,2 +15,3 @@ import { TextBox } from '@syncfusion/ej2-inputs';

private keyConfigs;
private searchWrapWidth;
/**

@@ -17,0 +18,0 @@ * constructor for addressbar module

@@ -21,2 +21,3 @@ import { EventHandler, closest, isNullOrUndefined, KeyboardEvents } from '@syncfusion/ej2-base';

this.searchTimer = null;
this.searchWrapWidth = null;
this.parent = parent;

@@ -144,3 +145,3 @@ this.keyConfigs = {

var searchWrap = this.parent.breadCrumbBarNavigation.querySelector('.e-search-wrap');
breadCrumbBarWidth = breadCrumbBarWidth - searchWrap.offsetWidth;
breadCrumbBarWidth = breadCrumbBarWidth - (this.searchWrapWidth ? this.searchWrapWidth : searchWrap.offsetWidth);
if (liElementsWidth > breadCrumbBarWidth) {

@@ -251,4 +252,7 @@ var i = liElements.length;

removeClass([this.parent.element], CLS.FILTER);
this.searchWrapWidth = null;
}
else {
var searchWrap = this.parent.breadCrumbBarNavigation.querySelector('.e-search-wrap');
this.searchWrapWidth = searchWrap.offsetWidth;
addClass([this.parent.element], CLS.FILTER);

@@ -293,3 +297,3 @@ this.searchObj.element.focus();

BreadCrumbBar.prototype.removeSearchValue = function () {
if (this.searchObj.value !== '' || this.searchObj.element.value !== '') {
if (this.searchObj && (this.searchObj.value !== '' || this.searchObj.element.value !== '')) {
this.searchObj.value = '';

@@ -296,0 +300,0 @@ this.searchObj.element.value = '';

@@ -9,2 +9,4 @@ /**

/** @hidden */
export declare const NAVIGATION_ID: string;
/** @hidden */
export declare const TREE_ID: string;

@@ -65,2 +67,4 @@ /** @hidden */

/** @hidden */
export declare const NAVIGATION: string;
/** @hidden */
export declare const LAYOUT_CONTENT: string;

@@ -67,0 +71,0 @@ /** @hidden */

@@ -9,2 +9,4 @@ /**

/** @hidden */
export var NAVIGATION_ID = '_navigation';
/** @hidden */
export var TREE_ID = '_tree';

@@ -65,2 +67,4 @@ /** @hidden */

/** @hidden */
export var NAVIGATION = 'e-navigation';
/** @hidden */
export var LAYOUT_CONTENT = 'e-layout-content';

@@ -67,0 +71,0 @@ /** @hidden */

@@ -115,1 +115,3 @@ /**

export declare const dragging: string;
/** @hidden */
export declare const updateSelectionData: string;

@@ -115,1 +115,3 @@ /**

export var dragging = 'dragging';
/** @hidden */
export var updateSelectionData = 'update-selection-data';

@@ -463,2 +463,7 @@ import { Component, EmitType, ModuleDeclaration, L10n } from '@syncfusion/ej2-base';

/**
* Gets the details of the selected files in the file manager.
* @returns void
*/
getSelectedFiles(): Object[];
/**
* Refreshes the folder files of the file manager.

@@ -465,0 +470,0 @@ * @returns void

@@ -234,5 +234,9 @@ var __extends = (this && this.__extends) || (function () {

this.element.appendChild(layoutWrap);
var navigationWrap = this.createElement('div', {
id: this.element.id + CLS.NAVIGATION_ID, className: CLS.NAVIGATION
});
var treeWrap = this.createElement('div', {
id: this.element.id + CLS.TREE_ID
});
navigationWrap.appendChild(treeWrap);
var contentWrap = this.createElement('div', {

@@ -259,3 +263,3 @@ id: this.element.id + CLS.CONTENT_ID, className: CLS.LAYOUT_CONTENT

if (!this.enableRtl) {
layoutWrap.appendChild(treeWrap);
layoutWrap.appendChild(navigationWrap);
layoutWrap.appendChild(contentWrap);

@@ -272,3 +276,3 @@ paneSettings = [

layoutWrap.appendChild(contentWrap);
layoutWrap.appendChild(treeWrap);
layoutWrap.appendChild(navigationWrap);
paneSettings = [

@@ -555,2 +559,3 @@ { size: '75%', min: '270px' },

this.setProperties({ view: 'Details' }, true);
showSpinner(this.element);
updateLayout(this, 'Details');

@@ -563,2 +568,3 @@ break;

this.setProperties({ view: 'LargeIcons' }, true);
showSpinner(this.element);
updateLayout(this, 'LargeIcons');

@@ -782,2 +788,10 @@ break;

/**
* Gets the details of the selected files in the file manager.
* @returns void
*/
FileManager.prototype.getSelectedFiles = function () {
this.notify(events.updateSelectionData, {});
return this.itemData;
};
/**
* Refreshes the folder files of the file manager.

@@ -784,0 +798,0 @@ * @returns void

@@ -18,2 +18,4 @@ import { Component, EmitType, L10n } from '@syncfusion/ej2-base';

export declare type SortOrder = 'Ascending' | 'Descending';
export declare type ToolBarItems = 'NewFolder' | 'Upload' | 'Cut' | 'Copy' | 'Paste' | 'Delete' | 'Download' | 'Rename' | 'SortBy' | 'Refresh' | 'Selection' | 'View' | 'Details';
export declare type MenuItems = 'NewFolder' | 'Upload' | 'Cut' | 'Copy' | 'Paste' | 'Delete' | 'Download' | 'Rename' | 'SortBy' | 'Refresh' | 'SelectAll' | 'View' | 'Details' | 'Open';
/**

@@ -20,0 +22,0 @@ * Interfaces for File Manager

@@ -214,2 +214,3 @@ import * as CLS from '../base/classes';

}
/* istanbul ignore next */
export function refresh(parent) {

@@ -564,3 +565,3 @@ parent.itemData = [getPathObject(parent)];

for (var count = 0; (count < result.files.length) && !flag; count++) {
parent.pasteNodes.push(result.files[count].name);
parent.pasteNodes.push(result.files[count][parent.hasId ? 'id' : 'name']);
if (parent.isDragDrop) {

@@ -567,0 +568,0 @@ parent.droppedObjects.push(result.files[count]);

@@ -71,2 +71,3 @@ import { Grid } from '@syncfusion/ej2-grids';

private onAfterRequest;
private onUpdateSelectionData;
private addEventListener;

@@ -73,0 +74,0 @@ private removeEventListener;

@@ -69,2 +69,3 @@ import { ListBaseOptions } from '@syncfusion/ej2-lists';

private onLayoutRefresh;
private onUpdateSelectionData;
private removeEventListener;

@@ -71,0 +72,0 @@ private addEventListener;

@@ -6,2 +6,3 @@ import { ListBase } from '@syncfusion/ej2-lists';

import { DataManager, Query } from '@syncfusion/ej2-data';
import { hideSpinner, showSpinner } from '@syncfusion/ej2-popups';
import * as events from '../base/constant';

@@ -82,2 +83,3 @@ import * as CLS from '../base/classes';

this.startItem = null;
showSpinner(this.parent.element);
if (this.parent.view === 'LargeIcons') {

@@ -150,2 +152,3 @@ this.resetMultiSelect();

this.isRendered = true;
hideSpinner(this.parent.element);
if (this.parent.selectedItems.length) {

@@ -307,5 +310,6 @@ this.checkItem();

var name_1 = getValue('name', items[i]);
/* istanbul ignore next */
var id = getValue('id', items[i]);
var selected = this.parent.hasId ? id : getName(this.parent, items[i]);
var className = ((this.parent.selectedItems &&
this.parent.selectedItems.indexOf(getName(this.parent, args.files[i])) !== -1)) ?
this.parent.selectedItems.indexOf(selected) !== -1)) ?
CLS.LARGE_ICON + ' e-active' : CLS.LARGE_ICON;

@@ -337,3 +341,3 @@ if (!hasEditAccess(items[i])) {

this.clearSelect();
this.selectItems([getValue('name', this.parent.createdItem)]);
this.selectItems([getValue(this.parent.hasId ? 'id' : 'name', this.parent.createdItem)]);
this.parent.createdItem = null;

@@ -438,2 +442,8 @@ this.parent.largeiconsviewModule.element.focus();

};
LargeIconsView.prototype.onUpdateSelectionData = function () {
if (this.parent.view !== 'LargeIcons') {
return;
}
this.updateSelectedData();
};
LargeIconsView.prototype.removeEventListener = function () {

@@ -472,2 +482,3 @@ if (this.parent.isDestroyed) {

this.parent.off(events.dropPath, this.onDropPath);
this.parent.off(events.updateSelectionData, this.onUpdateSelectionData);
};

@@ -504,2 +515,3 @@ LargeIconsView.prototype.addEventListener = function () {

this.parent.on(events.dropPath, this.onDropPath, this);
this.parent.on(events.updateSelectionData, this.onUpdateSelectionData, this);
};

@@ -1007,3 +1019,3 @@ LargeIconsView.prototype.onMenuItemData = function (args) {

var item = this.parent.selectedItems[this.parent.selectedItems.length - 1];
var indexes = this.getIndexes([item]);
var indexes = this.getIndexes([item], this.parent.hasId);
return this.itemList[indexes[0]];

@@ -1168,2 +1180,5 @@ };

var data = this.getItemObject(item);
if (this.parent.hasId) {
return getValue('id', data);
}
return getName(this.parent, data);

@@ -1232,4 +1247,4 @@ };

};
LargeIconsView.prototype.selectItems = function (items, byId) {
var indexes = this.getIndexes(items, byId);
LargeIconsView.prototype.selectItems = function (items) {
var indexes = this.getIndexes(items, this.parent.hasId);
for (var j = 0, len = indexes.length; j < len; j++) {

@@ -1242,3 +1257,3 @@ var eveArgs = { ctrlKey: true, shiftKey: false };

var indexes = [];
var filter = byId ? '_fm_id' : 'name';
var filter = byId ? 'id' : 'name';
for (var i = 0, len = this.items.length; i < len; i++) {

@@ -1245,0 +1260,0 @@ if (items.indexOf(getValue(filter, this.items[i])) !== -1) {

@@ -76,3 +76,2 @@ import { TreeView as BaseTreeView } from '@syncfusion/ej2-navigations';

this.treeObj.appendTo('#' + this.parent.element.id + CLS.TREE_ID);
this.treeObj.element.style.width = '25%';
this.wireEvents();

@@ -79,0 +78,0 @@ };

@@ -43,2 +43,3 @@ import { Dialog } from '@syncfusion/ej2-popups';

parent.extDialogObj = new Dialog({
beforeOpen: beforeExtOpen.bind(this, parent),
content: extOptions.content,

@@ -466,4 +467,10 @@ header: extOptions.header,

var btnElement = selectAll('.e-btn', parent.dialogObj.element);
preventKeydown(btnElement);
}
function beforeExtOpen(parent) {
var btnElement = selectAll('.e-btn', parent.extDialogObj.element);
preventKeydown(btnElement);
}
function preventKeydown(btnElement) {
var _loop_1 = function (btnCount) {
/* istanbul ignore next */
btnElement[btnCount].onkeydown = function (e) {

@@ -474,3 +481,2 @@ if (e.keyCode === 13) {

};
/* istanbul ignore next */
btnElement[btnCount].onkeyup = function (e) {

@@ -533,2 +539,3 @@ if (e.keyCode === 13) {

var newPath = (parent.activeModule === 'navigationpane') ? getParentPath(parent.path) : parent.path;
parent.renamedId = getValue('id', parent.itemData[0]);
if (parent.isFile) {

@@ -545,3 +552,2 @@ var oldExtension = parent.currentItemText.substr(parent.currentItemText.lastIndexOf('.'));

else {
parent.renamedId = getValue('id', parent.itemData[0]);
rename(parent, newPath, text);

@@ -548,0 +554,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

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc