@syncfusion/ej2-filemanager 24.1.41 → 24.1.43
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/CHANGELOG.md +10 -0
- 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 +35 -4
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +35 -4
- 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 +7 -7
- package/src/file-manager/common/utility.d.ts +12 -0
- package/src/file-manager/common/utility.js +31 -0
- package/src/file-manager/layout/details-view.js +1 -1
- package/src/file-manager/layout/large-icons-view.js +1 -1
- package/src/file-manager/layout/navigation-pane.js +2 -2
package/dist/global/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/*!
|
2
2
|
* filename: index.d.ts
|
3
|
-
* version : 24.1.
|
3
|
+
* version : 24.1.43
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
5
5
|
* Use of this code is subject to the terms of our license.
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"_from": "@syncfusion/ej2-filemanager@*",
|
3
|
-
"_id": "@syncfusion/ej2-filemanager@
|
3
|
+
"_id": "@syncfusion/ej2-filemanager@24.1.41",
|
4
4
|
"_inBundle": false,
|
5
|
-
"_integrity": "sha512-
|
5
|
+
"_integrity": "sha512-di+YVOOiojWmVe543dHKeovbNq1JX9S/tabfy0KxWAO65XcY+NYA7ydnzCOkaPCG6+coah+Ook+jlzsSzfpz/g==",
|
6
6
|
"_location": "/@syncfusion/ej2-filemanager",
|
7
7
|
"_phantomChildren": {},
|
8
8
|
"_requested": {
|
@@ -24,8 +24,8 @@
|
|
24
24
|
"/@syncfusion/ej2-richtexteditor",
|
25
25
|
"/@syncfusion/ej2-vue-filemanager"
|
26
26
|
],
|
27
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-
|
28
|
-
"_shasum": "
|
27
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-24.1.41.tgz",
|
28
|
+
"_shasum": "f3dadf5704a065fa74c26fd39d1a61a6ae83c619",
|
29
29
|
"_spec": "@syncfusion/ej2-filemanager@*",
|
30
30
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
31
31
|
"author": {
|
@@ -36,10 +36,10 @@
|
|
36
36
|
},
|
37
37
|
"bundleDependencies": false,
|
38
38
|
"dependencies": {
|
39
|
-
"@syncfusion/ej2-base": "~24.1.
|
39
|
+
"@syncfusion/ej2-base": "~24.1.42",
|
40
40
|
"@syncfusion/ej2-buttons": "~24.1.41",
|
41
41
|
"@syncfusion/ej2-data": "~24.1.41",
|
42
|
-
"@syncfusion/ej2-grids": "~24.1.
|
42
|
+
"@syncfusion/ej2-grids": "~24.1.43",
|
43
43
|
"@syncfusion/ej2-inputs": "~24.1.41",
|
44
44
|
"@syncfusion/ej2-layouts": "~24.1.41",
|
45
45
|
"@syncfusion/ej2-lists": "~24.1.41",
|
@@ -75,6 +75,6 @@
|
|
75
75
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
76
76
|
},
|
77
77
|
"typings": "index.d.ts",
|
78
|
-
"version": "24.1.
|
78
|
+
"version": "24.1.43",
|
79
79
|
"sideEffects": false
|
80
80
|
}
|
@@ -437,6 +437,18 @@ export declare function removeDropTarget(parent: IFileManager): void;
|
|
437
437
|
* @private
|
438
438
|
*/
|
439
439
|
export declare function removeItemClass(parent: IFileManager, value: string): void;
|
440
|
+
/**
|
441
|
+
* Remove item class handler
|
442
|
+
*
|
443
|
+
* @param {Element} scrollParent - specifies the scrolling target.
|
444
|
+
* @param {IFileManager} parent - specifies the parent.
|
445
|
+
* @param {string} nodeClass - specifies the node class.
|
446
|
+
* @param {number} screenY - specifies the vertical (Y) coordinate of the mouse cursor position relative to the entire screen.
|
447
|
+
* @param {number} clientY - specifies the vertical (Y) coordinate of the mouse cursor position relative to the target element.
|
448
|
+
* @returns {void}
|
449
|
+
* @private
|
450
|
+
*/
|
451
|
+
export declare function scrollHandler(scrollParent: Element, parent: IFileManager, nodeClass: string, screenY: number, clientY: number): void;
|
440
452
|
/**
|
441
453
|
* Dragging handler
|
442
454
|
*
|
@@ -1233,6 +1233,30 @@ export function removeItemClass(parent, value) {
|
|
1233
1233
|
ele[i].classList.remove(value);
|
1234
1234
|
}
|
1235
1235
|
}
|
1236
|
+
/**
|
1237
|
+
* Remove item class handler
|
1238
|
+
*
|
1239
|
+
* @param {Element} scrollParent - specifies the scrolling target.
|
1240
|
+
* @param {IFileManager} parent - specifies the parent.
|
1241
|
+
* @param {string} nodeClass - specifies the node class.
|
1242
|
+
* @param {number} screenY - specifies the vertical (Y) coordinate of the mouse cursor position relative to the entire screen.
|
1243
|
+
* @param {number} clientY - specifies the vertical (Y) coordinate of the mouse cursor position relative to the target element.
|
1244
|
+
* @returns {void}
|
1245
|
+
* @private
|
1246
|
+
*/
|
1247
|
+
export function scrollHandler(scrollParent, parent, nodeClass, screenY, clientY) {
|
1248
|
+
var position;
|
1249
|
+
var elementData = scrollParent.getBoundingClientRect();
|
1250
|
+
var node = select("." + nodeClass, scrollParent);
|
1251
|
+
if ((screenY >= (elementData.top + scrollParent.clientHeight - 30)) && !isNullOrUndefined(node)) {
|
1252
|
+
position = (parent.targetModule === 'navigationpane' || parent.targetModule === 'detailsview') ? node.offsetHeight / 2.5 : node.offsetHeight / 4.5;
|
1253
|
+
scrollParent.scrollBy(0, position);
|
1254
|
+
}
|
1255
|
+
if (!isNullOrUndefined(node) && (clientY <= (elementData.top + 30))) {
|
1256
|
+
position = (parent.targetModule === 'navigationpane' || parent.targetModule === 'detailsview') ? node.offsetHeight / 2.5 : node.offsetHeight / 4.5;
|
1257
|
+
scrollParent.scrollBy(0, -position);
|
1258
|
+
}
|
1259
|
+
}
|
1236
1260
|
/**
|
1237
1261
|
* Dragging handler
|
1238
1262
|
*
|
@@ -1253,12 +1277,15 @@ export function draggingHandler(parent, args) {
|
|
1253
1277
|
}
|
1254
1278
|
removeBlur(parent, 'hover');
|
1255
1279
|
var node = null;
|
1280
|
+
var scrollParent;
|
1256
1281
|
if (parent.targetModule === 'navigationpane') {
|
1257
1282
|
node = closest(args.target, 'li');
|
1258
1283
|
node.classList.add(CLS.HOVER, CLS.DROP_FOLDER);
|
1259
1284
|
canDrop = true;
|
1260
1285
|
/* istanbul ignore next */
|
1261
1286
|
parent.treeExpandTimer = window.setTimeout(function () { parent.notify(events.dragging, args); }, 800);
|
1287
|
+
scrollParent = parent.navigationpaneModule.treeObj.element.parentElement;
|
1288
|
+
scrollHandler(scrollParent, parent, 'e-level-2', args.event.screenY, args.event.y);
|
1262
1289
|
}
|
1263
1290
|
else if (parent.targetModule === 'detailsview') {
|
1264
1291
|
node = closest(args.target, 'tr');
|
@@ -1269,6 +1296,8 @@ export function draggingHandler(parent, args) {
|
|
1269
1296
|
node.classList.add(CLS.DROP_FILE);
|
1270
1297
|
}
|
1271
1298
|
canDrop = true;
|
1299
|
+
scrollParent = parent.detailsviewModule.gridObj.element.querySelector('.e-content');
|
1300
|
+
scrollHandler(scrollParent, parent, 'e-row', args.event.screenY, args.event.y);
|
1272
1301
|
}
|
1273
1302
|
else if (parent.targetModule === 'largeiconsview') {
|
1274
1303
|
node = closest(args.target, 'li');
|
@@ -1276,6 +1305,8 @@ export function draggingHandler(parent, args) {
|
|
1276
1305
|
node.classList.add(CLS.HOVER, CLS.DROP_FOLDER);
|
1277
1306
|
}
|
1278
1307
|
canDrop = true;
|
1308
|
+
scrollParent = parent.largeiconsviewModule.element.firstElementChild;
|
1309
|
+
scrollHandler(scrollParent, parent, 'e-large-icon', args.event.screenY, args.event.y);
|
1279
1310
|
/* istanbul ignore next */
|
1280
1311
|
}
|
1281
1312
|
else if (parent.targetModule === 'breadcrumbbar') {
|
@@ -1047,7 +1047,7 @@ var DetailsView = /** @class */ (function () {
|
|
1047
1047
|
dragStartHandler(_this.parent, args, _this.dragObj);
|
1048
1048
|
},
|
1049
1049
|
dragStop: dragStopHandler.bind(this, this.parent),
|
1050
|
-
enableAutoScroll:
|
1050
|
+
enableAutoScroll: false,
|
1051
1051
|
helper: this.dragHelper.bind(this)
|
1052
1052
|
});
|
1053
1053
|
}
|
@@ -192,7 +192,7 @@ var LargeIconsView = /** @class */ (function () {
|
|
192
192
|
this.dragObj = new Draggable(this.listElements, {
|
193
193
|
enableTailMode: true,
|
194
194
|
distance: 5,
|
195
|
-
enableAutoScroll:
|
195
|
+
enableAutoScroll: false,
|
196
196
|
dragTarget: '.' + CLS.LARGE_ICON,
|
197
197
|
helper: this.dragHelper.bind(this),
|
198
198
|
cursorAt: this.parent.dragCursorPosition,
|
@@ -110,7 +110,7 @@ var NavigationPane = /** @class */ (function () {
|
|
110
110
|
},
|
111
111
|
dragStop: dragStopHandler.bind(this, this.parent),
|
112
112
|
enableTailMode: true,
|
113
|
-
enableAutoScroll:
|
113
|
+
enableAutoScroll: false,
|
114
114
|
helper: this.dragHelper.bind(this)
|
115
115
|
});
|
116
116
|
}
|
@@ -264,7 +264,7 @@ var NavigationPane = /** @class */ (function () {
|
|
264
264
|
this.parent.itemData = nodeData;
|
265
265
|
var previousPath = this.parent.path;
|
266
266
|
var sNode = select('[data-uid="' + this.treeObj.selectedNodes[0] + '"]', this.treeObj.element);
|
267
|
-
if (!this.isRightClick && this.isSameNodeClicked
|
267
|
+
if (!this.isRightClick && this.isSameNodeClicked) {
|
268
268
|
updatePath(args.node, this.parent.itemData[0], this.parent);
|
269
269
|
}
|
270
270
|
else {
|