@syncfusion/ej2-filemanager 20.3.49 → 20.4.38
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/.eslintrc.json +16 -1
- package/CHANGELOG.md +0 -8
- package/README.md +53 -42
- 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 +313 -90
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +343 -99
- 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 +26 -17
- package/src/file-manager/actions/breadcrumb-bar.js +1 -1
- package/src/file-manager/actions/index.d.ts +1 -0
- package/src/file-manager/actions/index.js +1 -0
- package/src/file-manager/actions/virtualization.d.ts +38 -0
- package/src/file-manager/actions/virtualization.js +179 -0
- package/src/file-manager/base/file-manager-model.d.ts +14 -1
- package/src/file-manager/base/file-manager.d.ts +15 -0
- package/src/file-manager/base/file-manager.js +10 -1
- package/src/file-manager/base/interface.d.ts +2 -1
- package/src/file-manager/common/utility.js +5 -4
- package/src/file-manager/layout/details-view.js +13 -0
- package/src/file-manager/layout/large-icons-view.d.ts +2 -1
- package/src/file-manager/layout/large-icons-view.js +8 -1
- package/src/file-manager/models/index.d.ts +2 -0
- package/src/file-manager/models/index.js +1 -0
- package/src/file-manager/models/virtualization-settings-model.d.ts +29 -0
- package/src/file-manager/models/virtualization-settings.d.ts +24 -0
- package/src/file-manager/models/virtualization-settings.js +40 -0
- package/src/global.js +1 -1
- package/styles/bootstrap-dark.css +2 -12
- package/styles/bootstrap.css +2 -12
- package/styles/bootstrap4.css +2 -12
- package/styles/bootstrap5-dark.css +2 -12
- package/styles/bootstrap5.css +2 -12
- package/styles/fabric-dark.css +2 -12
- package/styles/fabric.css +2 -12
- package/styles/file-manager/_layout.scss +9 -19
- package/styles/file-manager/bootstrap-dark.css +2 -12
- package/styles/file-manager/bootstrap.css +2 -12
- package/styles/file-manager/bootstrap4.css +2 -12
- package/styles/file-manager/bootstrap5-dark.css +2 -12
- package/styles/file-manager/bootstrap5.css +2 -12
- package/styles/file-manager/fabric-dark.css +2 -12
- package/styles/file-manager/fabric.css +2 -12
- package/styles/file-manager/fluent-dark.css +8 -12
- package/styles/file-manager/fluent.css +8 -12
- package/styles/file-manager/highcontrast-light.css +2 -12
- package/styles/file-manager/highcontrast.css +2 -12
- package/styles/file-manager/material-dark.css +2 -12
- package/styles/file-manager/material.css +2 -15
- package/styles/file-manager/tailwind-dark.css +2 -12
- package/styles/file-manager/tailwind.css +2 -12
- package/styles/fluent-dark.css +8 -12
- package/styles/fluent.css +8 -12
- package/styles/highcontrast-light.css +2 -12
- package/styles/highcontrast.css +2 -12
- package/styles/material-dark.css +2 -12
- package/styles/material.css +2 -15
- package/styles/tailwind-dark.css +2 -12
- package/styles/tailwind.css +2 -12
@@ -202,6 +202,45 @@ var __decorate$4 = (undefined && undefined.__decorate) || function (decorators,
|
|
202
202
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
203
203
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
204
204
|
};
|
205
|
+
/**
|
206
|
+
* Specifies the virtualization settings of the File Manager.
|
207
|
+
*/
|
208
|
+
var VirtualizationSettings = /** @__PURE__ @class */ (function (_super) {
|
209
|
+
__extends$4(VirtualizationSettings, _super);
|
210
|
+
function VirtualizationSettings() {
|
211
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
212
|
+
}
|
213
|
+
__decorate$4([
|
214
|
+
Property(false)
|
215
|
+
], VirtualizationSettings.prototype, "enable", void 0);
|
216
|
+
__decorate$4([
|
217
|
+
Property(20)
|
218
|
+
], VirtualizationSettings.prototype, "detailsViewItemsCount", void 0);
|
219
|
+
__decorate$4([
|
220
|
+
Property(40)
|
221
|
+
], VirtualizationSettings.prototype, "largeIconsViewItemsCount", void 0);
|
222
|
+
return VirtualizationSettings;
|
223
|
+
}(ChildProperty));
|
224
|
+
|
225
|
+
var __extends$5 = (undefined && undefined.__extends) || (function () {
|
226
|
+
var extendStatics = function (d, b) {
|
227
|
+
extendStatics = Object.setPrototypeOf ||
|
228
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
229
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
230
|
+
return extendStatics(d, b);
|
231
|
+
};
|
232
|
+
return function (d, b) {
|
233
|
+
extendStatics(d, b);
|
234
|
+
function __() { this.constructor = d; }
|
235
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
236
|
+
};
|
237
|
+
})();
|
238
|
+
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
239
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
240
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
241
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
242
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
243
|
+
};
|
205
244
|
var fileItems = ['Open', '|', 'Cut', 'Copy', '|', 'Delete', 'Download', 'Rename', '|', 'Details'];
|
206
245
|
var folderItems = ['Open', '|', 'Cut', 'Copy', 'Paste', '|', 'Delete', 'Rename', 'Download', '|', 'Details'];
|
207
246
|
var layoutItems = [
|
@@ -211,26 +250,26 @@ var layoutItems = [
|
|
211
250
|
* Specifies the ContextMenu settings of the File Manager.
|
212
251
|
*/
|
213
252
|
var ContextMenuSettings = /** @__PURE__ @class */ (function (_super) {
|
214
|
-
__extends$
|
253
|
+
__extends$5(ContextMenuSettings, _super);
|
215
254
|
function ContextMenuSettings() {
|
216
255
|
return _super !== null && _super.apply(this, arguments) || this;
|
217
256
|
}
|
218
|
-
__decorate$
|
257
|
+
__decorate$5([
|
219
258
|
Property(fileItems)
|
220
259
|
], ContextMenuSettings.prototype, "file", void 0);
|
221
|
-
__decorate$
|
260
|
+
__decorate$5([
|
222
261
|
Property(folderItems)
|
223
262
|
], ContextMenuSettings.prototype, "folder", void 0);
|
224
|
-
__decorate$
|
263
|
+
__decorate$5([
|
225
264
|
Property(layoutItems)
|
226
265
|
], ContextMenuSettings.prototype, "layout", void 0);
|
227
|
-
__decorate$
|
266
|
+
__decorate$5([
|
228
267
|
Property(true)
|
229
268
|
], ContextMenuSettings.prototype, "visible", void 0);
|
230
269
|
return ContextMenuSettings;
|
231
270
|
}(ChildProperty));
|
232
271
|
|
233
|
-
var __extends$
|
272
|
+
var __extends$6 = (undefined && undefined.__extends) || (function () {
|
234
273
|
var extendStatics = function (d, b) {
|
235
274
|
extendStatics = Object.setPrototypeOf ||
|
236
275
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
@@ -243,7 +282,7 @@ var __extends$5 = (undefined && undefined.__extends) || (function () {
|
|
243
282
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
244
283
|
};
|
245
284
|
})();
|
246
|
-
var __decorate$
|
285
|
+
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
247
286
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
248
287
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
249
288
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
@@ -253,26 +292,26 @@ var __decorate$5 = (undefined && undefined.__decorate) || function (decorators,
|
|
253
292
|
* Specifies the navigationpane settings of the File Manager.
|
254
293
|
*/
|
255
294
|
var NavigationPaneSettings = /** @__PURE__ @class */ (function (_super) {
|
256
|
-
__extends$
|
295
|
+
__extends$6(NavigationPaneSettings, _super);
|
257
296
|
function NavigationPaneSettings() {
|
258
297
|
return _super !== null && _super.apply(this, arguments) || this;
|
259
298
|
}
|
260
|
-
__decorate$
|
299
|
+
__decorate$6([
|
261
300
|
Property('650px')
|
262
301
|
], NavigationPaneSettings.prototype, "maxWidth", void 0);
|
263
|
-
__decorate$
|
302
|
+
__decorate$6([
|
264
303
|
Property('240px')
|
265
304
|
], NavigationPaneSettings.prototype, "minWidth", void 0);
|
266
|
-
__decorate$
|
305
|
+
__decorate$6([
|
267
306
|
Property(true)
|
268
307
|
], NavigationPaneSettings.prototype, "visible", void 0);
|
269
|
-
__decorate$
|
308
|
+
__decorate$6([
|
270
309
|
Property('None')
|
271
310
|
], NavigationPaneSettings.prototype, "sortOrder", void 0);
|
272
311
|
return NavigationPaneSettings;
|
273
312
|
}(ChildProperty));
|
274
313
|
|
275
|
-
var __extends$
|
314
|
+
var __extends$7 = (undefined && undefined.__extends) || (function () {
|
276
315
|
var extendStatics = function (d, b) {
|
277
316
|
extendStatics = Object.setPrototypeOf ||
|
278
317
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
@@ -285,7 +324,7 @@ var __extends$6 = (undefined && undefined.__extends) || (function () {
|
|
285
324
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
286
325
|
};
|
287
326
|
})();
|
288
|
-
var __decorate$
|
327
|
+
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
289
328
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
290
329
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
291
330
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
@@ -295,32 +334,32 @@ var __decorate$6 = (undefined && undefined.__decorate) || function (decorators,
|
|
295
334
|
* Specifies the Ajax settings of the File Manager.
|
296
335
|
*/
|
297
336
|
var UploadSettings = /** @__PURE__ @class */ (function (_super) {
|
298
|
-
__extends$
|
337
|
+
__extends$7(UploadSettings, _super);
|
299
338
|
function UploadSettings() {
|
300
339
|
return _super !== null && _super.apply(this, arguments) || this;
|
301
340
|
}
|
302
|
-
__decorate$
|
341
|
+
__decorate$7([
|
303
342
|
Property('')
|
304
343
|
], UploadSettings.prototype, "allowedExtensions", void 0);
|
305
|
-
__decorate$
|
344
|
+
__decorate$7([
|
306
345
|
Property(true)
|
307
346
|
], UploadSettings.prototype, "autoUpload", void 0);
|
308
|
-
__decorate$
|
347
|
+
__decorate$7([
|
309
348
|
Property(false)
|
310
349
|
], UploadSettings.prototype, "autoClose", void 0);
|
311
|
-
__decorate$
|
350
|
+
__decorate$7([
|
312
351
|
Property(false)
|
313
352
|
], UploadSettings.prototype, "directoryUpload", void 0);
|
314
|
-
__decorate$
|
353
|
+
__decorate$7([
|
315
354
|
Property(0)
|
316
355
|
], UploadSettings.prototype, "minFileSize", void 0);
|
317
|
-
__decorate$
|
356
|
+
__decorate$7([
|
318
357
|
Property(30000000)
|
319
358
|
], UploadSettings.prototype, "maxFileSize", void 0);
|
320
359
|
return UploadSettings;
|
321
360
|
}(ChildProperty));
|
322
361
|
|
323
|
-
var __extends$
|
362
|
+
var __extends$8 = (undefined && undefined.__extends) || (function () {
|
324
363
|
var extendStatics = function (d, b) {
|
325
364
|
extendStatics = Object.setPrototypeOf ||
|
326
365
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
@@ -333,7 +372,7 @@ var __extends$7 = (undefined && undefined.__extends) || (function () {
|
|
333
372
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
334
373
|
};
|
335
374
|
})();
|
336
|
-
var __decorate$
|
375
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
337
376
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
338
377
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
339
378
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
@@ -344,56 +383,56 @@ var __decorate$7 = (undefined && undefined.__decorate) || function (decorators,
|
|
344
383
|
*/
|
345
384
|
/* istanbul ignore next */
|
346
385
|
var Column = /** @__PURE__ @class */ (function (_super) {
|
347
|
-
__extends$
|
386
|
+
__extends$8(Column, _super);
|
348
387
|
function Column() {
|
349
388
|
return _super !== null && _super.apply(this, arguments) || this;
|
350
389
|
}
|
351
|
-
__decorate$
|
390
|
+
__decorate$8([
|
352
391
|
Property('')
|
353
392
|
], Column.prototype, "field", void 0);
|
354
|
-
__decorate$
|
393
|
+
__decorate$8([
|
355
394
|
Property('')
|
356
395
|
], Column.prototype, "headerText", void 0);
|
357
|
-
__decorate$
|
396
|
+
__decorate$8([
|
358
397
|
Property('')
|
359
398
|
], Column.prototype, "width", void 0);
|
360
|
-
__decorate$
|
399
|
+
__decorate$8([
|
361
400
|
Property('')
|
362
401
|
], Column.prototype, "minWidth", void 0);
|
363
|
-
__decorate$
|
402
|
+
__decorate$8([
|
364
403
|
Property('')
|
365
404
|
], Column.prototype, "maxWidth", void 0);
|
366
|
-
__decorate$
|
405
|
+
__decorate$8([
|
367
406
|
Property('Left')
|
368
407
|
], Column.prototype, "textAlign", void 0);
|
369
|
-
__decorate$
|
408
|
+
__decorate$8([
|
370
409
|
Property(null)
|
371
410
|
], Column.prototype, "headerTextAlign", void 0);
|
372
|
-
__decorate$
|
411
|
+
__decorate$8([
|
373
412
|
Property(null)
|
374
413
|
], Column.prototype, "type", void 0);
|
375
|
-
__decorate$
|
414
|
+
__decorate$8([
|
376
415
|
Property(null)
|
377
416
|
], Column.prototype, "format", void 0);
|
378
|
-
__decorate$
|
417
|
+
__decorate$8([
|
379
418
|
Property(null)
|
380
419
|
], Column.prototype, "template", void 0);
|
381
|
-
__decorate$
|
420
|
+
__decorate$8([
|
382
421
|
Property(null)
|
383
422
|
], Column.prototype, "headerTemplate", void 0);
|
384
|
-
__decorate$
|
423
|
+
__decorate$8([
|
385
424
|
Property(true)
|
386
425
|
], Column.prototype, "allowSorting", void 0);
|
387
|
-
__decorate$
|
426
|
+
__decorate$8([
|
388
427
|
Property(true)
|
389
428
|
], Column.prototype, "allowResizing", void 0);
|
390
|
-
__decorate$
|
429
|
+
__decorate$8([
|
391
430
|
Property(null)
|
392
431
|
], Column.prototype, "customAttributes", void 0);
|
393
|
-
__decorate$
|
432
|
+
__decorate$8([
|
394
433
|
Property('')
|
395
434
|
], Column.prototype, "hideAtMedia", void 0);
|
396
|
-
__decorate$
|
435
|
+
__decorate$8([
|
397
436
|
Property(null)
|
398
437
|
], Column.prototype, "customFormat", void 0);
|
399
438
|
return Column;
|
@@ -1028,7 +1067,7 @@ function searchWordHandler(parent, value, isLayoutChange) {
|
|
1028
1067
|
else {
|
1029
1068
|
if (!parent.isFiltered) {
|
1030
1069
|
if (parent.isSortByClicked) {
|
1031
|
-
parent.notify(layoutChange, { files: (parent.oldView === 'Details') ? parent.detailsviewModule.gridObj.dataSource : parent.largeiconsviewModule.
|
1070
|
+
parent.notify(layoutChange, { files: (parent.oldView === 'Details') ? parent.detailsviewModule.gridObj.dataSource : parent.largeiconsviewModule.allItems });
|
1032
1071
|
parent.isSortByClicked = false;
|
1033
1072
|
}
|
1034
1073
|
else {
|
@@ -1214,18 +1253,19 @@ function fileType(file) {
|
|
1214
1253
|
// eslint-disable-next-line
|
1215
1254
|
function getImageUrl(parent, item) {
|
1216
1255
|
var baseUrl = parent.ajaxSettings.getImageUrl ? parent.ajaxSettings.getImageUrl : parent.ajaxSettings.url;
|
1256
|
+
var pathUrl = (baseUrl.indexOf('?') !== -1) ? '&path=' : '?path=';
|
1217
1257
|
var imgUrl;
|
1218
1258
|
var fileName = encodeURIComponent(getValue('name', item));
|
1219
1259
|
var fPath = getValue('filterPath', item);
|
1220
1260
|
if (parent.hasId) {
|
1221
1261
|
var imgId = getValue('id', item);
|
1222
|
-
imgUrl = baseUrl +
|
1262
|
+
imgUrl = baseUrl + pathUrl + parent.path + '&id=' + imgId;
|
1223
1263
|
}
|
1224
1264
|
else if (!isNullOrUndefined(fPath)) {
|
1225
|
-
imgUrl = baseUrl +
|
1265
|
+
imgUrl = baseUrl + pathUrl + encodeURIComponent(fPath.replace(/\\/g, '/')) + fileName;
|
1226
1266
|
}
|
1227
1267
|
else {
|
1228
|
-
imgUrl = baseUrl +
|
1268
|
+
imgUrl = baseUrl + pathUrl + parent.path + fileName;
|
1229
1269
|
}
|
1230
1270
|
imgUrl = imgUrl + '&time=' + (new Date().getTime()).toString();
|
1231
1271
|
var eventArgs = {
|
@@ -3985,7 +4025,10 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
3985
4025
|
};
|
3986
4026
|
this.items = [];
|
3987
4027
|
this.items = this.renderList(args);
|
3988
|
-
this.items = getSortedData(this.parent, this.items);
|
4028
|
+
this.items = this.allItems = getSortedData(this.parent, this.items);
|
4029
|
+
// if (this.parent.virtualizationSettings.enable) {
|
4030
|
+
// this.items = this.allItems.slice(0, this.parent.virtualizationSettings.largeIconsViewItemsCount);
|
4031
|
+
// }
|
3989
4032
|
// eslint-disable-next-line
|
3990
4033
|
this.listElements = ListBase.createListFromJson(createElement, this.items, this.listObj);
|
3991
4034
|
this.itemList = Array.prototype.slice.call(selectAll('.' + LIST_ITEM, this.listElements));
|
@@ -4027,6 +4070,10 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
4027
4070
|
this.getItemCount();
|
4028
4071
|
this.addEventListener();
|
4029
4072
|
this.wireEvents();
|
4073
|
+
// if (this.parent.virtualizationSettings.enable && this.allItems.length > 0) {
|
4074
|
+
// this.parent.virtualizationModule.setUlElementHeight();
|
4075
|
+
// this.parent.virtualizationModule.wireScrollEvent(false);
|
4076
|
+
// }
|
4030
4077
|
this.isRendered = true;
|
4031
4078
|
hideSpinner(this.parent.element);
|
4032
4079
|
if (this.parent.selectedItems.length) {
|
@@ -5826,7 +5873,7 @@ var BreadCrumbBar = /** @__PURE__ @class */ (function () {
|
|
5826
5873
|
}
|
5827
5874
|
};
|
5828
5875
|
BreadCrumbBar.prototype.onSearchTextChange = function (args) {
|
5829
|
-
this.searchObj.element.placeholder = (this.parent.searchSettings.placeholder != null) ? this.parent.searchSettings.placeholder : getLocaleText(this.parent, 'Search') + ' ' + args.cwd.name;
|
5876
|
+
this.searchObj.element.placeholder = (this.parent.searchSettings.placeholder != null) ? this.parent.searchSettings.placeholder : getLocaleText(this.parent, 'Search') + ' ' + getLocaleText(this.parent, args.cwd.name.toString());
|
5830
5877
|
};
|
5831
5878
|
return BreadCrumbBar;
|
5832
5879
|
}());
|
@@ -6531,7 +6578,7 @@ var defaultLocale = {
|
|
6531
6578
|
'Server-Error': 'ServerError: Invalid response from'
|
6532
6579
|
};
|
6533
6580
|
|
6534
|
-
var __extends$
|
6581
|
+
var __extends$9 = (undefined && undefined.__extends) || (function () {
|
6535
6582
|
var extendStatics = function (d, b) {
|
6536
6583
|
extendStatics = Object.setPrototypeOf ||
|
6537
6584
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
@@ -6544,7 +6591,7 @@ var __extends$8 = (undefined && undefined.__extends) || (function () {
|
|
6544
6591
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
6545
6592
|
};
|
6546
6593
|
})();
|
6547
|
-
var __decorate$
|
6594
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
6548
6595
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
6549
6596
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
6550
6597
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
@@ -6563,7 +6610,7 @@ var __decorate$8 = (undefined && undefined.__decorate) || function (decorators,
|
|
6563
6610
|
* ```
|
6564
6611
|
*/
|
6565
6612
|
var FileManager = /** @__PURE__ @class */ (function (_super) {
|
6566
|
-
__extends$
|
6613
|
+
__extends$9(FileManager, _super);
|
6567
6614
|
function FileManager(options, element) {
|
6568
6615
|
var _this = _super.call(this, options, element) || this;
|
6569
6616
|
// eslint-disable-next-line
|
@@ -6710,6 +6757,12 @@ var FileManager = /** @__PURE__ @class */ (function (_super) {
|
|
6710
6757
|
args: [this]
|
6711
6758
|
});
|
6712
6759
|
}
|
6760
|
+
if (this.virtualizationSettings.enable) {
|
6761
|
+
modules.push({
|
6762
|
+
member: 'virtualization',
|
6763
|
+
args: [this]
|
6764
|
+
});
|
6765
|
+
}
|
6713
6766
|
return modules;
|
6714
6767
|
};
|
6715
6768
|
/**
|
@@ -7637,151 +7690,154 @@ var FileManager = /** @__PURE__ @class */ (function (_super) {
|
|
7637
7690
|
}
|
7638
7691
|
};
|
7639
7692
|
var FileManager_1;
|
7640
|
-
__decorate$
|
7693
|
+
__decorate$9([
|
7641
7694
|
Complex({}, AjaxSettings)
|
7642
7695
|
], FileManager.prototype, "ajaxSettings", void 0);
|
7643
|
-
__decorate$
|
7696
|
+
__decorate$9([
|
7644
7697
|
Property(false)
|
7645
7698
|
], FileManager.prototype, "allowDragAndDrop", void 0);
|
7646
|
-
__decorate$
|
7699
|
+
__decorate$9([
|
7647
7700
|
Property(true)
|
7648
7701
|
], FileManager.prototype, "allowMultiSelection", void 0);
|
7649
|
-
__decorate$
|
7702
|
+
__decorate$9([
|
7650
7703
|
Complex({}, ContextMenuSettings)
|
7651
7704
|
], FileManager.prototype, "contextMenuSettings", void 0);
|
7652
|
-
__decorate$
|
7705
|
+
__decorate$9([
|
7653
7706
|
Property('')
|
7654
7707
|
], FileManager.prototype, "cssClass", void 0);
|
7655
|
-
__decorate$
|
7708
|
+
__decorate$9([
|
7656
7709
|
Complex({}, DetailsViewSettings)
|
7657
7710
|
], FileManager.prototype, "detailsViewSettings", void 0);
|
7658
|
-
__decorate$
|
7711
|
+
__decorate$9([
|
7712
|
+
Complex({}, VirtualizationSettings)
|
7713
|
+
], FileManager.prototype, "virtualizationSettings", void 0);
|
7714
|
+
__decorate$9([
|
7659
7715
|
Property(true)
|
7660
7716
|
], FileManager.prototype, "enableHtmlSanitizer", void 0);
|
7661
|
-
__decorate$
|
7717
|
+
__decorate$9([
|
7662
7718
|
Property(false)
|
7663
7719
|
], FileManager.prototype, "enablePersistence", void 0);
|
7664
|
-
__decorate$
|
7720
|
+
__decorate$9([
|
7665
7721
|
Property('400px')
|
7666
7722
|
], FileManager.prototype, "height", void 0);
|
7667
|
-
__decorate$
|
7723
|
+
__decorate$9([
|
7668
7724
|
Property('LargeIcons')
|
7669
7725
|
], FileManager.prototype, "view", void 0);
|
7670
|
-
__decorate$
|
7726
|
+
__decorate$9([
|
7671
7727
|
Complex({}, NavigationPaneSettings)
|
7672
7728
|
], FileManager.prototype, "navigationPaneSettings", void 0);
|
7673
|
-
__decorate$
|
7729
|
+
__decorate$9([
|
7674
7730
|
Property('/')
|
7675
7731
|
], FileManager.prototype, "path", void 0);
|
7676
|
-
__decorate$
|
7732
|
+
__decorate$9([
|
7677
7733
|
Property(null)
|
7678
7734
|
], FileManager.prototype, "popupTarget", void 0);
|
7679
|
-
__decorate$
|
7735
|
+
__decorate$9([
|
7680
7736
|
Complex({}, SearchSettings)
|
7681
7737
|
], FileManager.prototype, "searchSettings", void 0);
|
7682
|
-
__decorate$
|
7738
|
+
__decorate$9([
|
7683
7739
|
Property()
|
7684
7740
|
], FileManager.prototype, "selectedItems", void 0);
|
7685
|
-
__decorate$
|
7741
|
+
__decorate$9([
|
7686
7742
|
Property(true)
|
7687
7743
|
], FileManager.prototype, "showFileExtension", void 0);
|
7688
|
-
__decorate$
|
7744
|
+
__decorate$9([
|
7689
7745
|
Property(null)
|
7690
7746
|
], FileManager.prototype, "rootAliasName", void 0);
|
7691
|
-
__decorate$
|
7747
|
+
__decorate$9([
|
7692
7748
|
Property(false)
|
7693
7749
|
], FileManager.prototype, "showHiddenItems", void 0);
|
7694
|
-
__decorate$
|
7750
|
+
__decorate$9([
|
7695
7751
|
Property(true)
|
7696
7752
|
], FileManager.prototype, "showThumbnail", void 0);
|
7697
|
-
__decorate$
|
7753
|
+
__decorate$9([
|
7698
7754
|
Property('Ascending')
|
7699
7755
|
], FileManager.prototype, "sortOrder", void 0);
|
7700
|
-
__decorate$
|
7756
|
+
__decorate$9([
|
7701
7757
|
Property('name')
|
7702
7758
|
], FileManager.prototype, "sortBy", void 0);
|
7703
|
-
__decorate$
|
7759
|
+
__decorate$9([
|
7704
7760
|
Complex({}, ToolbarSettings)
|
7705
7761
|
], FileManager.prototype, "toolbarSettings", void 0);
|
7706
|
-
__decorate$
|
7762
|
+
__decorate$9([
|
7707
7763
|
Complex({}, UploadSettings)
|
7708
7764
|
], FileManager.prototype, "uploadSettings", void 0);
|
7709
|
-
__decorate$
|
7765
|
+
__decorate$9([
|
7710
7766
|
Property('100%')
|
7711
7767
|
], FileManager.prototype, "width", void 0);
|
7712
|
-
__decorate$
|
7768
|
+
__decorate$9([
|
7713
7769
|
Event()
|
7714
7770
|
], FileManager.prototype, "fileLoad", void 0);
|
7715
|
-
__decorate$
|
7771
|
+
__decorate$9([
|
7716
7772
|
Event()
|
7717
7773
|
], FileManager.prototype, "fileOpen", void 0);
|
7718
|
-
__decorate$
|
7774
|
+
__decorate$9([
|
7719
7775
|
Event()
|
7720
7776
|
], FileManager.prototype, "beforeDownload", void 0);
|
7721
|
-
__decorate$
|
7777
|
+
__decorate$9([
|
7722
7778
|
Event()
|
7723
7779
|
], FileManager.prototype, "beforeImageLoad", void 0);
|
7724
|
-
__decorate$
|
7780
|
+
__decorate$9([
|
7725
7781
|
Event()
|
7726
7782
|
], FileManager.prototype, "beforePopupClose", void 0);
|
7727
|
-
__decorate$
|
7783
|
+
__decorate$9([
|
7728
7784
|
Event()
|
7729
7785
|
], FileManager.prototype, "beforePopupOpen", void 0);
|
7730
|
-
__decorate$
|
7786
|
+
__decorate$9([
|
7731
7787
|
Event()
|
7732
7788
|
], FileManager.prototype, "beforeSend", void 0);
|
7733
|
-
__decorate$
|
7789
|
+
__decorate$9([
|
7734
7790
|
Event()
|
7735
7791
|
], FileManager.prototype, "created", void 0);
|
7736
|
-
__decorate$
|
7792
|
+
__decorate$9([
|
7737
7793
|
Event()
|
7738
7794
|
], FileManager.prototype, "destroyed", void 0);
|
7739
|
-
__decorate$
|
7795
|
+
__decorate$9([
|
7740
7796
|
Event()
|
7741
7797
|
], FileManager.prototype, "fileDragStart", void 0);
|
7742
|
-
__decorate$
|
7798
|
+
__decorate$9([
|
7743
7799
|
Event()
|
7744
7800
|
], FileManager.prototype, "fileDragging", void 0);
|
7745
|
-
__decorate$
|
7801
|
+
__decorate$9([
|
7746
7802
|
Event()
|
7747
7803
|
], FileManager.prototype, "fileDragStop", void 0);
|
7748
|
-
__decorate$
|
7804
|
+
__decorate$9([
|
7749
7805
|
Event()
|
7750
7806
|
], FileManager.prototype, "fileDropped", void 0);
|
7751
|
-
__decorate$
|
7807
|
+
__decorate$9([
|
7752
7808
|
Event()
|
7753
7809
|
], FileManager.prototype, "fileSelection", void 0);
|
7754
|
-
__decorate$
|
7810
|
+
__decorate$9([
|
7755
7811
|
Event()
|
7756
7812
|
], FileManager.prototype, "fileSelect", void 0);
|
7757
|
-
__decorate$
|
7813
|
+
__decorate$9([
|
7758
7814
|
Event()
|
7759
7815
|
], FileManager.prototype, "menuClick", void 0);
|
7760
|
-
__decorate$
|
7816
|
+
__decorate$9([
|
7761
7817
|
Event()
|
7762
7818
|
], FileManager.prototype, "menuOpen", void 0);
|
7763
|
-
__decorate$
|
7819
|
+
__decorate$9([
|
7764
7820
|
Event()
|
7765
7821
|
], FileManager.prototype, "failure", void 0);
|
7766
|
-
__decorate$
|
7822
|
+
__decorate$9([
|
7767
7823
|
Event()
|
7768
7824
|
], FileManager.prototype, "popupClose", void 0);
|
7769
|
-
__decorate$
|
7825
|
+
__decorate$9([
|
7770
7826
|
Event()
|
7771
7827
|
], FileManager.prototype, "popupOpen", void 0);
|
7772
|
-
__decorate$
|
7828
|
+
__decorate$9([
|
7773
7829
|
Event()
|
7774
7830
|
], FileManager.prototype, "success", void 0);
|
7775
|
-
__decorate$
|
7831
|
+
__decorate$9([
|
7776
7832
|
Event()
|
7777
7833
|
], FileManager.prototype, "toolbarClick", void 0);
|
7778
|
-
__decorate$
|
7834
|
+
__decorate$9([
|
7779
7835
|
Event()
|
7780
7836
|
], FileManager.prototype, "toolbarCreate", void 0);
|
7781
|
-
__decorate$
|
7837
|
+
__decorate$9([
|
7782
7838
|
Event()
|
7783
7839
|
], FileManager.prototype, "uploadListCreate", void 0);
|
7784
|
-
FileManager = FileManager_1 = __decorate$
|
7840
|
+
FileManager = FileManager_1 = __decorate$9([
|
7785
7841
|
NotifyPropertyChanges
|
7786
7842
|
], FileManager);
|
7787
7843
|
return FileManager;
|
@@ -8281,6 +8337,181 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
|
|
8281
8337
|
return Toolbar$$1;
|
8282
8338
|
}());
|
8283
8339
|
|
8340
|
+
var Virtualization = /** @__PURE__ @class */ (function () {
|
8341
|
+
function Virtualization(instance) {
|
8342
|
+
this.largeIconsViewItemsCount = 40;
|
8343
|
+
this.filemanagerInstance = instance;
|
8344
|
+
this.largeIconInstance = instance.largeiconsviewModule;
|
8345
|
+
}
|
8346
|
+
// Update the scroller height based on the items count.
|
8347
|
+
Virtualization.prototype.setUlElementHeight = function () {
|
8348
|
+
this.rowItemCount = this.ValidateItemCount(Object.keys(this.largeIconInstance.allItems).length);
|
8349
|
+
this.lastRowCount = (this.largeIconInstance.allItems.length - this.largeIconsViewItemsCount) % this.rowItemCount ?
|
8350
|
+
(this.largeIconInstance.allItems.length - this.largeIconsViewItemsCount) % this.rowItemCount : this.rowItemCount;
|
8351
|
+
this.topElement = this.filemanagerInstance.createElement('div');
|
8352
|
+
this.largeIconInstance.element.firstElementChild.insertBefore(this.topElement, this.largeIconInstance.element.firstElementChild.firstChild);
|
8353
|
+
this.bottomElement = this.filemanagerInstance.createElement('div');
|
8354
|
+
this.largeIconInstance.element.firstElementChild.insertBefore(this.bottomElement, null);
|
8355
|
+
var marginValue = parseInt(window.getComputedStyle(this.largeIconInstance.itemList[0]).getPropertyValue('margin-top')) +
|
8356
|
+
parseInt(window.getComputedStyle(this.largeIconInstance.itemList[0]).getPropertyValue('margin-bottom'));
|
8357
|
+
this.listItemHeight = this.largeIconInstance.itemList[0].getBoundingClientRect().height + marginValue;
|
8358
|
+
this.totalHeight = (Object.keys(this.largeIconInstance.allItems).length / this.rowItemCount) * this.listItemHeight;
|
8359
|
+
this.topElement.style.height = 0 + 'px';
|
8360
|
+
this.bottomElement.style.height = this.totalHeight + 'px';
|
8361
|
+
this.topElementHeight = 0;
|
8362
|
+
this.bottomElementHeight = this.totalHeight;
|
8363
|
+
this.listDiff = 0;
|
8364
|
+
this.renderedCount = this.largeIconsViewItemsCount;
|
8365
|
+
};
|
8366
|
+
// Calculated the maximum number of items can be rendered in each row.
|
8367
|
+
Virtualization.prototype.ValidateItemCount = function (dataSourceLength) {
|
8368
|
+
var width = parseFloat(formatUnit(this.largeIconInstance.element.firstElementChild.clientWidth));
|
8369
|
+
var marginValue = parseInt(window.getComputedStyle(this.largeIconInstance.itemList[0]).getPropertyValue('margin-right')) +
|
8370
|
+
parseInt(window.getComputedStyle(this.largeIconInstance.itemList[0]).getPropertyValue('margin-left'));
|
8371
|
+
var itemCount = Math.floor(width / (this.largeIconInstance.itemList[0].offsetWidth + marginValue));
|
8372
|
+
if (itemCount > dataSourceLength) {
|
8373
|
+
itemCount = dataSourceLength;
|
8374
|
+
}
|
8375
|
+
return itemCount;
|
8376
|
+
};
|
8377
|
+
// Bind the scroll event for large icons view ul element.
|
8378
|
+
Virtualization.prototype.wireScrollEvent = function (destroy) {
|
8379
|
+
if (!destroy) {
|
8380
|
+
EventHandler.add(this.largeIconInstance.element.firstElementChild, 'scroll', this.onVirtualUiScroll, this);
|
8381
|
+
}
|
8382
|
+
else {
|
8383
|
+
EventHandler.remove(this.largeIconInstance.element.firstElementChild, 'scroll', this.onVirtualUiScroll);
|
8384
|
+
}
|
8385
|
+
};
|
8386
|
+
// Update the top and bottom element height and update the scroll position.
|
8387
|
+
Virtualization.prototype.onVirtualUiScroll = function (e) {
|
8388
|
+
var _a;
|
8389
|
+
var startingHeight = 0;
|
8390
|
+
this.scrollPosition = isNullOrUndefined(this.scrollPosition) ? 0 : this.scrollPosition;
|
8391
|
+
var scroll = this.getscrollerHeight(startingHeight);
|
8392
|
+
this.topElementHeight = this.listItemHeight * Math.floor(scroll / this.listItemHeight);
|
8393
|
+
this.bottomElementHeight = this.totalHeight - this.topElementHeight;
|
8394
|
+
_a = scroll <= this.totalHeight ?
|
8395
|
+
[this.topElementHeight, this.bottomElementHeight] : [this.totalHeight, 0], this.topElementHeight = _a[0], this.bottomElementHeight = _a[1];
|
8396
|
+
if (this.topElementHeight !== parseFloat(this.topElement.style.height)) {
|
8397
|
+
this.topElement.style.height = this.topElementHeight + 'px';
|
8398
|
+
this.bottomElement.style.height = this.bottomElementHeight + 'px';
|
8399
|
+
// checked whether the scrolling is upward/downward
|
8400
|
+
if (scroll > this.scrollPosition) {
|
8401
|
+
var listDiff = Math.round(((this.topElementHeight / this.listItemHeight) - this.listDiff));
|
8402
|
+
this.onNormalScroll(listDiff, true);
|
8403
|
+
}
|
8404
|
+
else {
|
8405
|
+
var listDiff = Math.round((this.listDiff - (this.topElementHeight / this.listItemHeight)));
|
8406
|
+
this.onNormalScroll(listDiff, false);
|
8407
|
+
}
|
8408
|
+
}
|
8409
|
+
this.listDiff = Math.round(this.topElementHeight / this.listItemHeight);
|
8410
|
+
this.scrollPosition = scroll;
|
8411
|
+
this.largeIconInstance.itemList = Array.prototype.slice.call(selectAll('.' + LIST_ITEM, this.largeIconInstance.element));
|
8412
|
+
this.largeIconInstance.items = this.largeIconInstance.allItems.slice(this.renderedCount -
|
8413
|
+
this.largeIconsViewItemsCount, this.renderedCount);
|
8414
|
+
};
|
8415
|
+
// Calculated the scroller height.
|
8416
|
+
Virtualization.prototype.getscrollerHeight = function (startingHeight) {
|
8417
|
+
return ((this.largeIconInstance.element.firstElementChild.scrollTop - startingHeight) <= 0) ? 0 :
|
8418
|
+
(this.largeIconInstance.element.firstElementChild.scrollTop - startingHeight);
|
8419
|
+
};
|
8420
|
+
// Update the UI based on the scrolled position.
|
8421
|
+
Virtualization.prototype.onNormalScroll = function (listDiff, isScrollingDown) {
|
8422
|
+
for (var i = 0; i < listDiff; i++) {
|
8423
|
+
this.updateUI(isScrollingDown);
|
8424
|
+
}
|
8425
|
+
this.updateSelection();
|
8426
|
+
};
|
8427
|
+
// Updating the items in large icons view dynamically.
|
8428
|
+
Virtualization.prototype.updateUI = function (isScrollingDown) {
|
8429
|
+
var _this = this;
|
8430
|
+
if (isScrollingDown) {
|
8431
|
+
this.items = this.largeIconInstance.allItems.slice(this.renderedCount, this.renderedCount + this.rowItemCount);
|
8432
|
+
if (this.items.length > 0) {
|
8433
|
+
this.listElements = ListBase.createListFromJson(createElement, this.items, this.largeIconInstance.listObj);
|
8434
|
+
this.itemList = Array.prototype.slice.call(selectAll('.' + LIST_ITEM, this.listElements));
|
8435
|
+
this.itemList.forEach(function (liEle) {
|
8436
|
+
_this.largeIconInstance.element.firstElementChild.insertBefore(liEle, _this.bottomElement);
|
8437
|
+
});
|
8438
|
+
this.renderedCount = (this.largeIconInstance.allItems.length >= this.renderedCount + this.rowItemCount) ?
|
8439
|
+
this.renderedCount + this.rowItemCount : this.renderedCount + this.lastRowCount;
|
8440
|
+
for (var i_1 = 0; i_1 < this.rowItemCount; i_1++) {
|
8441
|
+
detach(this.topElement.nextElementSibling);
|
8442
|
+
}
|
8443
|
+
}
|
8444
|
+
}
|
8445
|
+
else {
|
8446
|
+
var lastItemIndex = void 0;
|
8447
|
+
var isAllRendered = void 0;
|
8448
|
+
if (this.renderedCount == this.largeIconInstance.allItems.length) {
|
8449
|
+
lastItemIndex = this.renderedCount - (this.largeIconsViewItemsCount - this.rowItemCount + this.lastRowCount);
|
8450
|
+
this.renderedCount = ((this.renderedCount - this.lastRowCount) < this.largeIconsViewItemsCount) ?
|
8451
|
+
this.largeIconsViewItemsCount : (this.renderedCount - this.lastRowCount);
|
8452
|
+
isAllRendered = true;
|
8453
|
+
}
|
8454
|
+
else {
|
8455
|
+
lastItemIndex = this.renderedCount - this.largeIconsViewItemsCount;
|
8456
|
+
this.renderedCount = ((this.renderedCount - this.rowItemCount) < this.largeIconsViewItemsCount) ?
|
8457
|
+
this.largeIconsViewItemsCount : (this.renderedCount - this.rowItemCount);
|
8458
|
+
}
|
8459
|
+
var startItemIndex = (lastItemIndex - this.rowItemCount > 0) ? lastItemIndex - this.rowItemCount : 0;
|
8460
|
+
this.items = this.largeIconInstance.allItems.slice(startItemIndex, lastItemIndex);
|
8461
|
+
if (this.items.length > 0) {
|
8462
|
+
this.listElements = ListBase.createListFromJson(createElement, this.items, this.largeIconInstance.listObj);
|
8463
|
+
this.itemList = Array.prototype.slice.call(selectAll('.' + LIST_ITEM, this.listElements));
|
8464
|
+
for (var len = this.itemList.length; len > 0; len--) {
|
8465
|
+
this.largeIconInstance.element.firstElementChild.insertBefore(this.itemList[len - 1], this.topElement.nextElementSibling);
|
8466
|
+
}
|
8467
|
+
for (var i = 0; i < ((isAllRendered) ? this.lastRowCount : this.rowItemCount); i++) {
|
8468
|
+
detach(this.bottomElement.previousElementSibling);
|
8469
|
+
}
|
8470
|
+
}
|
8471
|
+
}
|
8472
|
+
};
|
8473
|
+
// Update the selected item state.
|
8474
|
+
Virtualization.prototype.updateSelection = function () {
|
8475
|
+
for (var i = 0; i < this.filemanagerInstance.selectedItems.length; i++) {
|
8476
|
+
for (var j = 0; j < this.items.length; j++) {
|
8477
|
+
if (this.filemanagerInstance.selectedItems[i] == getValue('name', this.items[j])) {
|
8478
|
+
this.updateCheckState(this.itemList[j]);
|
8479
|
+
}
|
8480
|
+
}
|
8481
|
+
}
|
8482
|
+
};
|
8483
|
+
// Update the check state for items.
|
8484
|
+
Virtualization.prototype.updateCheckState = function (liItem) {
|
8485
|
+
if (this.filemanagerInstance.allowMultiSelection) {
|
8486
|
+
addClass([liItem], [ACTIVE]);
|
8487
|
+
liItem.setAttribute('aria-selected', 'true');
|
8488
|
+
var checkEle = select('.' + FRAME, liItem);
|
8489
|
+
if (!checkEle.classList.contains(CHECK)) {
|
8490
|
+
addClass([checkEle], CHECK);
|
8491
|
+
closest(checkEle, '.' + CB_WRAP).setAttribute('aria-checked', 'true');
|
8492
|
+
}
|
8493
|
+
}
|
8494
|
+
};
|
8495
|
+
/**
|
8496
|
+
* For internal use only - Get the module name.
|
8497
|
+
*
|
8498
|
+
* @returns {string} - returns the module name.
|
8499
|
+
* @private
|
8500
|
+
*/
|
8501
|
+
Virtualization.prototype.getModuleName = function () {
|
8502
|
+
return 'virtualization';
|
8503
|
+
};
|
8504
|
+
Virtualization.prototype.destroy = function () {
|
8505
|
+
if (this.filemanagerInstance.isDestroyed) {
|
8506
|
+
return;
|
8507
|
+
}
|
8508
|
+
if (!isNullOrUndefined(this.largeIconInstance.element.firstElementChild)) {
|
8509
|
+
this.wireScrollEvent(true);
|
8510
|
+
}
|
8511
|
+
};
|
8512
|
+
return Virtualization;
|
8513
|
+
}());
|
8514
|
+
|
8284
8515
|
/**
|
8285
8516
|
* File Manager actions modules
|
8286
8517
|
*/
|
@@ -9227,6 +9458,10 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
9227
9458
|
},
|
9228
9459
|
enableRtl: this.parent.enableRtl,
|
9229
9460
|
pageSettings: { pageSize: 20 },
|
9461
|
+
// enableVirtualization: this.parent.virtualizationSettings.enable,
|
9462
|
+
enablePersistence: this.parent.enablePersistence,
|
9463
|
+
// enableVirtualMaskRow: true,
|
9464
|
+
// pageSettings: { pageSize: this.parent.virtualizationSettings.detailsViewItemsCount },
|
9230
9465
|
sortSettings: { allowUnsort: false, columns: sortSettings },
|
9231
9466
|
columns: columns,
|
9232
9467
|
recordDoubleClick: this.DblClickEvents.bind(this),
|
@@ -9435,14 +9670,19 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
9435
9670
|
}
|
9436
9671
|
};
|
9437
9672
|
DetailsView.prototype.onBeforeDataBound = function (args) {
|
9673
|
+
// if (!this.parent.virtualizationSettings.enable) {
|
9438
9674
|
showSpinner(this.parent.element);
|
9439
9675
|
// eslint-disable-next-line
|
9440
9676
|
var items = getSortedData(this.parent, this.gridObj.dataSource);
|
9441
9677
|
args.result = items;
|
9678
|
+
// }
|
9442
9679
|
};
|
9443
9680
|
/* istanbul ignore next */
|
9444
9681
|
DetailsView.prototype.onDataBound = function () {
|
9445
9682
|
this.createDragObj();
|
9683
|
+
// if ((this.parent.selectedItems.length !== 0 && !this.parent.virtualizationSettings.enable) ||
|
9684
|
+
// ((this.parent.selectedItems.length !== 0 && this.parent.virtualizationSettings.enable &&
|
9685
|
+
// this.element.querySelector('.e-content').scrollTop == 0))) {
|
9446
9686
|
if (this.parent.selectedItems.length !== 0) {
|
9447
9687
|
this.selectRecords(this.parent.selectedItems);
|
9448
9688
|
}
|
@@ -10205,6 +10445,10 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
10205
10445
|
}
|
10206
10446
|
var len = rows.length;
|
10207
10447
|
if (len > 0) {
|
10448
|
+
// if (this.parent.virtualizationSettings.enable) {
|
10449
|
+
// this.parent.currentItemText = getValue('name', args.data);
|
10450
|
+
// }
|
10451
|
+
// else if (len > 0) {
|
10208
10452
|
// eslint-disable-next-line
|
10209
10453
|
var data = this.gridObj.getRowsObject()[rows[len - 1]].data;
|
10210
10454
|
this.parent.currentItemText = getValue('name', data);
|
@@ -10986,5 +11230,5 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
10986
11230
|
* File Manager all modules
|
10987
11231
|
*/
|
10988
11232
|
|
10989
|
-
export { AjaxSettings, toolbarItems, ToolbarSettings, SearchSettings, columnArray, DetailsViewSettings, fileItems, folderItems, layoutItems, ContextMenuSettings, NavigationPaneSettings, UploadSettings, Column, TOOLBAR_ID, LAYOUT_ID, NAVIGATION_ID, TREE_ID, GRID_ID, LARGEICON_ID, DIALOG_ID, ALT_DIALOG_ID, IMG_DIALOG_ID, EXTN_DIALOG_ID, UPLOAD_DIALOG_ID, RETRY_DIALOG_ID, CONTEXT_MENU_ID, SORTBY_ID, VIEW_ID, SPLITTER_ID, CONTENT_ID, BREADCRUMBBAR_ID, UPLOAD_ID, RETRY_ID, SEARCH_ID, ROOT, CONTROL, CHECK_SELECT, ROOT_POPUP, MOBILE, MOB_POPUP, MULTI_SELECT, FILTER, LAYOUT, NAVIGATION, LAYOUT_CONTENT, LARGE_ICONS, TB_ITEM, LIST_ITEM, LIST_TEXT, LIST_PARENT, TB_OPTION_TICK, TB_OPTION_DOT, BLUR, ACTIVE, HOVER, FOCUS, FOCUSED, CHECK, FRAME, CB_WRAP, ROW, ROWCELL, EMPTY, EMPTY_CONTENT, EMPTY_INNER_CONTENT, CLONE, DROP_FOLDER, DROP_FILE, FOLDER, ICON_IMAGE, ICON_MUSIC, ICON_VIDEO, LARGE_ICON, LARGE_EMPTY_FOLDER, LARGE_EMPTY_FOLDER_TWO, LARGE_ICON_FOLDER, SELECTED_ITEMS, TEXT_CONTENT, GRID_HEADER, TEMPLATE_CELL, TREE_VIEW, MENU_ITEM, MENU_ICON, SUBMENU_ICON, GRID_VIEW, GRID_CONTENT, ICON_VIEW, ICON_OPEN, ICON_UPLOAD, ICON_CUT, ICON_COPY, ICON_PASTE, ICON_DELETE, ICON_RENAME, ICON_NEWFOLDER, ICON_DETAILS, ICON_SHORTBY, ICON_REFRESH, ICON_SELECTALL, ICON_DOWNLOAD, ICON_OPTIONS, ICON_GRID, ICON_LARGE, ICON_BREADCRUMB, ICON_CLEAR, ICON_DROP_IN, ICON_DROP_OUT, ICON_NO_DROP, ICONS, DETAILS_LABEL, ERROR_CONTENT, STATUS, BREADCRUMBS, RTL, DISPLAY_NONE, COLLAPSED, FULLROW, ICON_COLLAPSIBLE, SPLIT_BAR, HEADER_CHECK, OVERLAY, VALUE, isFile, modelChanged, initialEnd, finalizeEnd, createEnd, filterEnd, beforeDelete, pathDrag, deleteInit, deleteEnd, refreshEnd, resizeEnd, splitterResize, pathChanged, destroy, beforeRequest, upload, skipUpload, afterRequest, download, layoutRefresh, actionFailure, search, openInit, openEnd, selectionChanged, selectAllInit, clearAllInit, clearPathInit, layoutChange, sortByChange, nodeExpand, detailsInit, menuItemData, renameInit, renameEndParent, renameEnd, showPaste, hidePaste, selectedData, cutCopyInit, pasteInit, pasteEnd, cutEnd, hideLayout, updateTreeSelection, treeSelect, sortColumn, pathColumn, searchTextChange, beforeDownload, downloadInit, dropInit, dragEnd, dropPath, dragHelper, dragging, updateSelectionData, methodCall, permissionRead, permissionEdit, permissionEditContents, permissionCopy, permissionUpload, permissionDownload, FileManager, Toolbar$1 as Toolbar, BreadCrumbBar, NavigationPane, DetailsView, LargeIconsView, createDialog, createExtDialog, createImageDialog, ContextMenu$2 as ContextMenu };
|
11233
|
+
export { AjaxSettings, toolbarItems, ToolbarSettings, SearchSettings, columnArray, DetailsViewSettings, VirtualizationSettings, fileItems, folderItems, layoutItems, ContextMenuSettings, NavigationPaneSettings, UploadSettings, Column, TOOLBAR_ID, LAYOUT_ID, NAVIGATION_ID, TREE_ID, GRID_ID, LARGEICON_ID, DIALOG_ID, ALT_DIALOG_ID, IMG_DIALOG_ID, EXTN_DIALOG_ID, UPLOAD_DIALOG_ID, RETRY_DIALOG_ID, CONTEXT_MENU_ID, SORTBY_ID, VIEW_ID, SPLITTER_ID, CONTENT_ID, BREADCRUMBBAR_ID, UPLOAD_ID, RETRY_ID, SEARCH_ID, ROOT, CONTROL, CHECK_SELECT, ROOT_POPUP, MOBILE, MOB_POPUP, MULTI_SELECT, FILTER, LAYOUT, NAVIGATION, LAYOUT_CONTENT, LARGE_ICONS, TB_ITEM, LIST_ITEM, LIST_TEXT, LIST_PARENT, TB_OPTION_TICK, TB_OPTION_DOT, BLUR, ACTIVE, HOVER, FOCUS, FOCUSED, CHECK, FRAME, CB_WRAP, ROW, ROWCELL, EMPTY, EMPTY_CONTENT, EMPTY_INNER_CONTENT, CLONE, DROP_FOLDER, DROP_FILE, FOLDER, ICON_IMAGE, ICON_MUSIC, ICON_VIDEO, LARGE_ICON, LARGE_EMPTY_FOLDER, LARGE_EMPTY_FOLDER_TWO, LARGE_ICON_FOLDER, SELECTED_ITEMS, TEXT_CONTENT, GRID_HEADER, TEMPLATE_CELL, TREE_VIEW, MENU_ITEM, MENU_ICON, SUBMENU_ICON, GRID_VIEW, GRID_CONTENT, ICON_VIEW, ICON_OPEN, ICON_UPLOAD, ICON_CUT, ICON_COPY, ICON_PASTE, ICON_DELETE, ICON_RENAME, ICON_NEWFOLDER, ICON_DETAILS, ICON_SHORTBY, ICON_REFRESH, ICON_SELECTALL, ICON_DOWNLOAD, ICON_OPTIONS, ICON_GRID, ICON_LARGE, ICON_BREADCRUMB, ICON_CLEAR, ICON_DROP_IN, ICON_DROP_OUT, ICON_NO_DROP, ICONS, DETAILS_LABEL, ERROR_CONTENT, STATUS, BREADCRUMBS, RTL, DISPLAY_NONE, COLLAPSED, FULLROW, ICON_COLLAPSIBLE, SPLIT_BAR, HEADER_CHECK, OVERLAY, VALUE, isFile, modelChanged, initialEnd, finalizeEnd, createEnd, filterEnd, beforeDelete, pathDrag, deleteInit, deleteEnd, refreshEnd, resizeEnd, splitterResize, pathChanged, destroy, beforeRequest, upload, skipUpload, afterRequest, download, layoutRefresh, actionFailure, search, openInit, openEnd, selectionChanged, selectAllInit, clearAllInit, clearPathInit, layoutChange, sortByChange, nodeExpand, detailsInit, menuItemData, renameInit, renameEndParent, renameEnd, showPaste, hidePaste, selectedData, cutCopyInit, pasteInit, pasteEnd, cutEnd, hideLayout, updateTreeSelection, treeSelect, sortColumn, pathColumn, searchTextChange, beforeDownload, downloadInit, dropInit, dragEnd, dropPath, dragHelper, dragging, updateSelectionData, methodCall, permissionRead, permissionEdit, permissionEditContents, permissionCopy, permissionUpload, permissionDownload, FileManager, Toolbar$1 as Toolbar, BreadCrumbBar, Virtualization, NavigationPane, DetailsView, LargeIconsView, createDialog, createExtDialog, createImageDialog, ContextMenu$2 as ContextMenu };
|
10990
11234
|
//# sourceMappingURL=ej2-filemanager.es5.js.map
|