@syncfusion/ej2-filemanager 28.2.6 → 28.2.9

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 28.2.6
3
+ * version : 28.2.9
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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@28.2.5",
3
+ "_id": "@syncfusion/ej2-filemanager@28.2.6",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-31cRdeawK1a8TD8lLVSAMNWhPm1yOz7alMKzudpvfPkzvOLMJTQGpQtH3Yy1XAcdM0uQ3U3YoMls8AIHZU9BYg==",
5
+ "_integrity": "sha512-Vj/ANSTSJsO0hvFeltMV8i+3aC4HHQ7K4cAZoVxWFsdVPqy3Kqn/nL1x4gtsAIz+MUNwcv+hXYqYpF8FOmTa7A==",
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.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-28.2.5.tgz",
28
- "_shasum": "86a8dd9c862824b014222f54d5aa09484afcc1e6",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-28.2.6.tgz",
28
+ "_shasum": "7fe1c94778e26d74003e80758a8512b39ae1e131",
29
29
  "_spec": "@syncfusion/ej2-filemanager@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
31
31
  "author": {
@@ -36,15 +36,15 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~28.2.5",
40
- "@syncfusion/ej2-buttons": "~28.2.6",
39
+ "@syncfusion/ej2-base": "~28.2.9",
40
+ "@syncfusion/ej2-buttons": "~28.2.7",
41
41
  "@syncfusion/ej2-data": "~28.2.3",
42
- "@syncfusion/ej2-grids": "~28.2.6",
43
- "@syncfusion/ej2-inputs": "~28.2.3",
42
+ "@syncfusion/ej2-grids": "~28.2.9",
43
+ "@syncfusion/ej2-inputs": "~28.2.9",
44
44
  "@syncfusion/ej2-layouts": "~28.2.5",
45
45
  "@syncfusion/ej2-lists": "~28.2.3",
46
46
  "@syncfusion/ej2-navigations": "~28.2.6",
47
- "@syncfusion/ej2-popups": "~28.2.6",
47
+ "@syncfusion/ej2-popups": "~28.2.9",
48
48
  "@syncfusion/ej2-splitbuttons": "~28.2.3"
49
49
  },
50
50
  "deprecated": false,
@@ -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": "28.2.6",
78
+ "version": "28.2.9",
79
79
  "sideEffects": false
80
80
  }
@@ -680,6 +680,7 @@ export declare class FileManager extends Component<HTMLElement> implements INoti
680
680
  private wireSelectOnDragEvent;
681
681
  private wireEvents;
682
682
  private unWireEvents;
683
+ private onScrollHandler;
683
684
  private onDragStart;
684
685
  private onDrag;
685
686
  private onDragStop;
@@ -102,6 +102,11 @@ var FileManager = /** @class */ (function (_super) {
102
102
  //Specifies whether the operating system is MAC or not
103
103
  _this.isMac = false;
104
104
  _this.dragSelectedItems = [];
105
+ _this.onScrollHandler = function () {
106
+ if (!isNOU(_this.contextmenuModule) && !isNOU(_this.contextmenuModule.contextMenu)) {
107
+ _this.contextmenuModule.contextMenu.close();
108
+ }
109
+ };
105
110
  FileManager_1.Inject(BreadCrumbBar, LargeIconsView, ContextMenu);
106
111
  return _this;
107
112
  }
@@ -728,6 +733,9 @@ var FileManager = /** @class */ (function (_super) {
728
733
  this.wireSelectOnDragEvent(true);
729
734
  }
730
735
  EventHandler.add(window, 'resize', this.resizeHandler, this);
736
+ if (this.contextMenuSettings.visible) {
737
+ this.element.addEventListener('scroll', this.onScrollHandler, true);
738
+ }
731
739
  this.keyboardModule = new KeyboardEvents(this.element, {
732
740
  keyAction: this.keyActionHandler.bind(this),
733
741
  keyConfigs: this.keyConfigs,
@@ -737,6 +745,9 @@ var FileManager = /** @class */ (function (_super) {
737
745
  FileManager.prototype.unWireEvents = function () {
738
746
  this.wireSelectOnDragEvent(false);
739
747
  EventHandler.remove(window, 'resize', this.resizeHandler);
748
+ if (this.contextMenuSettings.visible) {
749
+ this.element.removeEventListener('scroll', this.onScrollHandler, true);
750
+ }
740
751
  this.keyboardModule.destroy();
741
752
  };
742
753
  FileManager.prototype.onDragStart = function (event) {
@@ -413,9 +413,7 @@ var DetailsView = /** @class */ (function () {
413
413
  /* istanbul ignore next */
414
414
  DetailsView.prototype.onDataBound = function () {
415
415
  this.createDragObj();
416
- if ((this.parent.selectedItems.length !== 0 && !this.parent.enableVirtualization) ||
417
- ((this.parent.selectedItems.length !== 0 && this.parent.enableVirtualization &&
418
- this.element.querySelector('.e-content').scrollTop === 0))) {
416
+ if ((this.parent.selectedItems.length !== 0 && !this.parent.enableVirtualization)) {
419
417
  this.selectRecords(this.parent.selectedItems);
420
418
  }
421
419
  if (this.isPasteOperation === true && (!isNullOrUndefined(this.gridObj.getDataRows()) && this.gridObj.getDataRows().length > 0)) {
@@ -1178,7 +1176,9 @@ var DetailsView = /** @class */ (function () {
1178
1176
  if (this.gridObj.getSelectedRowIndexes().length !== 1) {
1179
1177
  var lastItemIndex = this.gridObj.getSelectedRowIndexes()[this.gridObj.getSelectedRowIndexes().length - 2];
1180
1178
  var lastItem = this.gridObj.getRowByIndex(lastItemIndex);
1181
- lastItem.querySelector('.e-checkselect').setAttribute('tabindex', '-1');
1179
+ if (!isNOU(lastItem)) {
1180
+ lastItem.querySelector('.e-checkselect').setAttribute('tabindex', '-1');
1181
+ }
1182
1182
  }
1183
1183
  item.querySelector('.e-rowcell.e-fe-checkbox').removeAttribute('tabindex');
1184
1184
  }
@@ -1243,11 +1243,17 @@ var DetailsView = /** @class */ (function () {
1243
1243
  DetailsView.prototype.onDeSelection = function (args) {
1244
1244
  /* istanbul ignore next */
1245
1245
  if (!this.parent.allowMultiSelection && isNOU(args.data)) {
1246
- this.gridObj.getRowByIndex(args.rowIndex).removeAttribute('tabindex');
1246
+ var item = this.gridObj.getRowByIndex(args.rowIndex);
1247
+ if (!isNOU(item)) {
1248
+ item.removeAttribute('tabindex');
1249
+ }
1247
1250
  }
1248
1251
  else if (this.gridObj.getSelectedRowIndexes().length > 1) {
1249
1252
  var lastItemIndex = this.gridObj.getSelectedRowIndexes()[this.gridObj.getSelectedRowIndexes().length - 2];
1250
- this.gridObj.getRowByIndex(lastItemIndex).querySelector('.e-checkselect').removeAttribute('tabindex');
1253
+ var lastItem = this.gridObj.getRowByIndex(lastItemIndex);
1254
+ if (!isNOU(lastItem)) {
1255
+ lastItem.querySelector('.e-checkselect').removeAttribute('tabindex');
1256
+ }
1251
1257
  }
1252
1258
  if (this.gridObj.selectedRowIndex === -1) {
1253
1259
  this.gridObj.element.setAttribute('tabindex', '0');
@@ -119,7 +119,7 @@ var LargeIconsView = /** @class */ (function () {
119
119
  this.items = this.allItems = getSortedData(this.parent, this.items);
120
120
  }
121
121
  iconsView.classList.remove(CLS.DISPLAY_NONE);
122
- if (this.parent.enableVirtualization && this.allItems.length > 0) {
122
+ if (this.parent.enableVirtualization && this.allItems.length > 0 && !isNOU(this.parent.virtualizationModule)) {
123
123
  this.parent.virtualizationModule.setUIVirtualization();
124
124
  }
125
125
  this.listElements = ListBase.createListFromJson(createElement, this.items, this.listObj);
@@ -161,7 +161,7 @@ var LargeIconsView = /** @class */ (function () {
161
161
  this.getItemCount();
162
162
  this.addEventListener();
163
163
  this.wireEvents();
164
- if (this.parent.enableVirtualization && this.allItems.length > 0) {
164
+ if (this.parent.enableVirtualization && this.allItems.length > 0 && !isNOU(this.parent.virtualizationModule)) {
165
165
  this.parent.virtualizationModule.setUlElementHeight();
166
166
  this.parent.virtualizationModule.wireScrollEvent(false);
167
167
  }