@syncfusion/ej2-filemanager 25.1.39 → 25.2.3

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 : 25.1.39
3
+ * version : 25.2.3
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@25.1.38",
3
+ "_id": "@syncfusion/ej2-filemanager@25.1.40",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-S/wBZ4ksnyUS3R/E9PjNk+i2KZo3uNPOMgJBeaeVedW4cggmMGGYp+ruHeVqMG+NKvBnQ68cGKTkm8Uaa5+DLw==",
5
+ "_integrity": "sha512-OCcfurULSz5NDjGoz5ozvQIlhAexIYRj5FlX3/9IrCBeRudRq36EigQOvhL+k4va/VEmcgJUckxqySehdoLP2A==",
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-25.1.38.tgz",
28
- "_shasum": "1005ff10885cd23c419a2a2746a9c90cb44f4b0a",
27
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-filemanager/-/ej2-filemanager-25.1.40.tgz",
28
+ "_shasum": "b8bde59ae376c6051accec86c192025980398248",
29
29
  "_spec": "@syncfusion/ej2-filemanager@*",
30
30
  "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
31
31
  "author": {
@@ -36,16 +36,16 @@
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-base": "~25.1.35",
40
- "@syncfusion/ej2-buttons": "~25.1.39",
41
- "@syncfusion/ej2-data": "~25.1.35",
42
- "@syncfusion/ej2-grids": "~25.1.39",
43
- "@syncfusion/ej2-inputs": "~25.1.38",
44
- "@syncfusion/ej2-layouts": "~25.1.37",
45
- "@syncfusion/ej2-lists": "~25.1.39",
46
- "@syncfusion/ej2-navigations": "~25.1.39",
47
- "@syncfusion/ej2-popups": "~25.1.39",
48
- "@syncfusion/ej2-splitbuttons": "~25.1.38"
39
+ "@syncfusion/ej2-base": "~25.2.3",
40
+ "@syncfusion/ej2-buttons": "~25.2.3",
41
+ "@syncfusion/ej2-data": "~25.2.3",
42
+ "@syncfusion/ej2-grids": "~25.2.3",
43
+ "@syncfusion/ej2-inputs": "~25.2.3",
44
+ "@syncfusion/ej2-layouts": "~25.2.3",
45
+ "@syncfusion/ej2-lists": "~25.2.3",
46
+ "@syncfusion/ej2-navigations": "~25.2.3",
47
+ "@syncfusion/ej2-popups": "~25.2.3",
48
+ "@syncfusion/ej2-splitbuttons": "~25.2.3"
49
49
  },
50
50
  "deprecated": false,
51
51
  "description": "Essential JS 2 FileManager Component",
@@ -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": "25.1.39",
78
+ "version": "25.2.3",
79
79
  "sideEffects": false
80
80
  }
@@ -66,8 +66,8 @@ export function updatePath(node, data, instance) {
66
66
  */
67
67
  export function getPath(element, text, hasId) {
68
68
  var matched = getParents(element, text, false, hasId);
69
- var path = hasId ? '' : '/';
70
- var len = matched.length - (hasId ? 1 : 2);
69
+ var path = '/';
70
+ var len = matched.length - (2);
71
71
  for (var i = len; i >= 0; i--) {
72
72
  path += matched[i] + '/';
73
73
  }
@@ -139,8 +139,8 @@ export function getParents(element, text, isId, hasId) {
139
139
  */
140
140
  export function generatePath(parent) {
141
141
  var key = parent.hasId ? 'id' : 'name';
142
- var newPath = parent.hasId ? '' : '/';
143
- var i = parent.hasId ? 0 : 1;
142
+ var newPath = '/';
143
+ var i = 1;
144
144
  for (i; i < parent.pathId.length; i++) {
145
145
  // eslint-disable-next-line
146
146
  var data = getValue(parent.pathId[i], parent.feParent);
@@ -110,8 +110,7 @@ var DetailsView = /** @class */ (function () {
110
110
  allowResizing: this.parent.detailsViewSettings.columnResizing,
111
111
  selectionSettings: {
112
112
  type: this.parent.allowMultiSelection ? 'Multiple' : 'Single',
113
- checkboxMode: 'ResetOnRowClick',
114
- persistSelection: (this.parent.enableVirtualization) ? true : false
113
+ checkboxMode: 'ResetOnRowClick'
115
114
  },
116
115
  enableRtl: this.parent.enableRtl,
117
116
  pageSettings: { pageSize: 20 },
@@ -149,6 +149,7 @@ export interface ColumnModel {
149
149
  /**
150
150
  * If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
151
151
  *
152
+
152
153
  * @default false
153
154
  */
154
155
  isPrimaryKey?: boolean;
@@ -172,6 +172,7 @@ export declare class Column extends ChildProperty<Column> {
172
172
  /**
173
173
  * If `isPrimaryKey` is set to true, considers this column as the primary key constraint.
174
174
  *
175
+
175
176
  * @default false
176
177
  */
177
178
  isPrimaryKey: boolean;
@@ -23,7 +23,7 @@ import { Property, ChildProperty, initializeCSPTemplate } from '@syncfusion/ej2-
23
23
  */
24
24
  export var columnArray = [
25
25
  {
26
- field: 'name', headerText: 'Name', minWidth: 120, isPrimaryKey: true,
26
+ field: 'name', headerText: 'Name', minWidth: 120,
27
27
  template: '<span class=\"e-fe-text\">${name}</span>',
28
28
  customAttributes: { class: 'e-fe-grid-name' }
29
29
  },
@@ -173,7 +173,15 @@ var ContextMenu = /** @class */ (function () {
173
173
  var pasteEle = select('#' + this.getMenuId('Paste'), this.contextMenu.element);
174
174
  if (!args.cancel && !this.parent.enablePaste &&
175
175
  pasteEle && !pasteEle.classList.contains('e-disabled')) {
176
- this.disabledItems.push('Paste');
176
+ if (this.disabledItems.indexOf('Paste') === -1) {
177
+ this.disabledItems.push('Paste');
178
+ }
179
+ }
180
+ else {
181
+ var pasteIndex = this.disabledItems.indexOf('Paste');
182
+ if (pasteIndex !== -1) {
183
+ this.disabledItems.splice(pasteIndex, 1);
184
+ }
177
185
  }
178
186
  if (args.cancel) {
179
187
  this.menuTarget = this.currentElement = null;
@@ -286,8 +294,13 @@ var ContextMenu = /** @class */ (function () {
286
294
  (closest(target, '#' + this.parent.element.id + CLS.GRID_ID).getElementsByClassName(CLS.EMPTY).length !== 0)))) {
287
295
  this.disabledItems.push('SelectAll');
288
296
  }
297
+ else {
298
+ this.disabledItems = this.disabledItems.filter(function (item) { return item !== 'SelectAll'; });
299
+ }
289
300
  if (this.parent.selectedNodes.length === 0) {
290
- this.disabledItems.push('Paste');
301
+ if (this.disabledItems.indexOf('Paste') === -1) {
302
+ this.disabledItems.push('Paste');
303
+ }
291
304
  }
292
305
  this.contextMenu.dataBind();
293
306
  };