@syncfusion/ej2-filemanager 29.1.34 → 29.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-filemanager.min.js +2 -2
- package/dist/ej2-filemanager.umd.min.js +2 -2
- package/dist/ej2-filemanager.umd.min.js.map +1 -1
- package/dist/es6/ej2-filemanager.es2015.js +18 -15
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +18 -15
- package/dist/es6/ej2-filemanager.es5.js.map +1 -1
- package/dist/global/ej2-filemanager.min.js +2 -2
- package/dist/global/ej2-filemanager.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +24 -22
- package/src/file-manager/base/file-manager.js +12 -6
- package/src/file-manager/common/utility.js +6 -9
@@ -1455,7 +1455,7 @@ function getSortedData(parent, items) {
|
|
1455
1455
|
function getObject(parent, key, value) {
|
1456
1456
|
var currFiles = getValue(parent.pathId[parent.pathId.length - 1], parent.feFiles);
|
1457
1457
|
var result = currFiles.filter(function (data) { return data[key].toString() === value; });
|
1458
|
-
return result
|
1458
|
+
return result[0];
|
1459
1459
|
}
|
1460
1460
|
/**
|
1461
1461
|
* Creates empty element
|
@@ -1669,16 +1669,13 @@ function setNextPath(parent, path) {
|
|
1669
1669
|
var eventName = (folders[i + 1] === '') ? finalizeEnd : initialEnd;
|
1670
1670
|
var newPath = (folders[i] === '') ? '/' : (parent.path + folders[i] + '/');
|
1671
1671
|
var data = getObject(parent, key, folders[parseInt(i.toString(), 10)]);
|
1672
|
-
|
1673
|
-
|
1674
|
-
|
1672
|
+
var id = getValue('_fm_id', data);
|
1673
|
+
parent.setProperties({ path: newPath }, true);
|
1674
|
+
if (!isNullOrUndefined(id)) {
|
1675
1675
|
parent.pathId.push(id);
|
1676
|
-
parent.itemData = [data];
|
1677
|
-
parent.pathNames.push(getValue('name', data));
|
1678
|
-
}
|
1679
|
-
else {
|
1680
|
-
parent.originalPath = newPath;
|
1681
1676
|
}
|
1677
|
+
parent.itemData = [data];
|
1678
|
+
parent.pathNames.push(getValue('name', data));
|
1682
1679
|
read(parent, eventName, parent.path);
|
1683
1680
|
break;
|
1684
1681
|
}
|
@@ -8282,21 +8279,24 @@ var FileManager = /** @__PURE__ @class */ (function (_super) {
|
|
8282
8279
|
if (isBind) {
|
8283
8280
|
this.viewElem = this.view === 'LargeIcons' ? this.largeiconsviewModule.element : this.element.querySelector('.e-gridcontent');
|
8284
8281
|
}
|
8285
|
-
if (!this.viewElem) {
|
8286
|
-
return;
|
8287
|
-
}
|
8288
8282
|
if (isBind) {
|
8289
8283
|
if (this.allowMultiSelection) {
|
8290
|
-
EventHandler.add(this.viewElem, 'mousedown', this.onDragStart, this);
|
8291
8284
|
this.on(layoutChange, this.onLayoutChange, this);
|
8292
8285
|
this.on(selectionChanged, this.onLayoutChange, this);
|
8293
8286
|
}
|
8294
8287
|
}
|
8295
8288
|
else {
|
8296
|
-
EventHandler.remove(this.viewElem, 'mousedown', this.onDragStart);
|
8297
8289
|
this.off(layoutChange, this.onLayoutChange);
|
8298
8290
|
this.off(selectionChanged, this.onLayoutChange);
|
8299
8291
|
}
|
8292
|
+
if (this.viewElem) {
|
8293
|
+
if (isBind && this.allowMultiSelection) {
|
8294
|
+
EventHandler.add(this.viewElem, 'mousedown', this.onDragStart, this);
|
8295
|
+
}
|
8296
|
+
else {
|
8297
|
+
EventHandler.remove(this.viewElem, 'mousedown', this.onDragStart);
|
8298
|
+
}
|
8299
|
+
}
|
8300
8300
|
};
|
8301
8301
|
FileManager.prototype.wireEvents = function () {
|
8302
8302
|
if (this.enableRangeSelection) {
|
@@ -8396,7 +8396,9 @@ var FileManager = /** @__PURE__ @class */ (function (_super) {
|
|
8396
8396
|
addClass(selectAll('.e-rowcell', item), ['e-active']);
|
8397
8397
|
this.dragSelectedItems.push(item.querySelector('.e-drag-text').textContent);
|
8398
8398
|
}
|
8399
|
-
|
8399
|
+
if (this.showItemCheckBoxes) {
|
8400
|
+
item.querySelector('.e-frame').classList.add('e-check');
|
8401
|
+
}
|
8400
8402
|
}
|
8401
8403
|
}
|
8402
8404
|
};
|
@@ -8493,6 +8495,7 @@ var FileManager = /** @__PURE__ @class */ (function (_super) {
|
|
8493
8495
|
this.notify(modelChanged, { module: 'navigationpane', newProp: newProp, oldProp: oldProp });
|
8494
8496
|
break;
|
8495
8497
|
case 'path':
|
8498
|
+
this.oldPath = oldProp.path;
|
8496
8499
|
this.setPath();
|
8497
8500
|
break;
|
8498
8501
|
case 'searchSettings':
|