@syncfusion/ej2-filemanager 19.4.52 → 20.1.52
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 +1 -43
- 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 +20 -7
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +19 -6
- 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 +15 -15
- package/src/file-manager/actions/toolbar.js +6 -3
- package/src/file-manager/base/file-manager-model.d.ts +7 -0
- package/src/file-manager/base/file-manager.d.ts +6 -1
- package/src/file-manager/base/file-manager.js +10 -1
- package/src/file-manager/layout/details-view.js +1 -0
- package/src/file-manager/layout/large-icons-view.js +1 -1
- package/src/file-manager/layout/navigation-pane.js +1 -1
- package/src/file-manager/models/navigation-pane-settings.d.ts +8 -8
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/file-manager/_bootstrap5-definition.scss +1 -1
- package/styles/file-manager/_fluent-dark-definition.scss +1 -0
- package/styles/file-manager/_fluent-definition.scss +8 -7
- package/styles/file-manager/_layout.scss +26 -2
- package/styles/file-manager/_theme.scss +17 -7
- package/styles/file-manager/bootstrap5-dark.css +1 -1
- package/styles/file-manager/bootstrap5.css +1 -1
- package/styles/file-manager/fluent-dark.css +1901 -0
- package/styles/file-manager/fluent-dark.scss +16 -0
- package/styles/file-manager/fluent.css +1900 -0
- package/styles/file-manager/fluent.scss +16 -0
- package/styles/file-manager/icons/_fluent-dark.scss +1 -0
- package/styles/file-manager/icons/_fluent.scss +19 -19
- package/styles/file-manager/icons/_tailwind.scss +49 -49
- package/styles/file-manager/tailwind-dark.css +49 -49
- package/styles/file-manager/tailwind.css +49 -49
- package/styles/fluent-dark.css +1901 -0
- package/styles/fluent-dark.scss +1 -0
- package/styles/fluent.css +1900 -0
- package/styles/fluent.scss +1 -0
- package/styles/tailwind-dark.css +49 -49
- package/styles/tailwind.css +49 -49
@@ -5321,7 +5321,7 @@ var LargeIconsView = /** @__PURE__ @class */ (function () {
|
|
5321
5321
|
else {
|
5322
5322
|
for (var i = 0, len = this.items.length; i < len; i++) {
|
5323
5323
|
var name_2 = getValue('filterPath', this.items[i]) + getValue('name', this.items[i]);
|
5324
|
-
if (items.indexOf(name_2) !== -1) {
|
5324
|
+
if ((items.indexOf(name_2) !== -1) || (items.indexOf(getValue(filterName, this.items[i])) !== -1)) {
|
5325
5325
|
indexes.push(i);
|
5326
5326
|
}
|
5327
5327
|
}
|
@@ -6552,7 +6552,6 @@ var FileManager = /** @__PURE__ @class */ (function (_super) {
|
|
6552
6552
|
_this.uploadItem = [];
|
6553
6553
|
_this.deleteRecords = [];
|
6554
6554
|
_this.isFile = false;
|
6555
|
-
_this.sortBy = 'name';
|
6556
6555
|
_this.isCut = false;
|
6557
6556
|
_this.isSearchCut = false;
|
6558
6557
|
_this.isSearchDrag = false;
|
@@ -7275,6 +7274,13 @@ var FileManager = /** @__PURE__ @class */ (function (_super) {
|
|
7275
7274
|
refresh(this);
|
7276
7275
|
this.notify(sortByChange, {});
|
7277
7276
|
break;
|
7277
|
+
case 'sortBy':
|
7278
|
+
refresh(this);
|
7279
|
+
this.notify(sortByChange, {});
|
7280
|
+
if (this.view === 'Details') {
|
7281
|
+
this.notify(sortColumn, {});
|
7282
|
+
}
|
7283
|
+
break;
|
7278
7284
|
case 'popupTarget':
|
7279
7285
|
if (this.uploadDialogObj) {
|
7280
7286
|
this.uploadDialogObj.target = newProp.popupTarget;
|
@@ -7658,6 +7664,9 @@ var FileManager = /** @__PURE__ @class */ (function (_super) {
|
|
7658
7664
|
__decorate$8([
|
7659
7665
|
Property('Ascending')
|
7660
7666
|
], FileManager.prototype, "sortOrder", void 0);
|
7667
|
+
__decorate$8([
|
7668
|
+
Property('name')
|
7669
|
+
], FileManager.prototype, "sortBy", void 0);
|
7661
7670
|
__decorate$8([
|
7662
7671
|
Complex({}, ToolbarSettings)
|
7663
7672
|
], FileManager.prototype, "toolbarSettings", void 0);
|
@@ -7893,9 +7902,12 @@ var Toolbar$1 = /** @__PURE__ @class */ (function () {
|
|
7893
7902
|
Toolbar$$1.prototype.toolbarCreateHandler = function () {
|
7894
7903
|
if (!isNullOrUndefined(select('#' + this.getId('SortBy'), this.parent.element))) {
|
7895
7904
|
var items = [
|
7896
|
-
{ id: this.getPupupId('name'), text: getLocaleText(this.parent, 'Name'),
|
7897
|
-
|
7898
|
-
{ id: this.getPupupId('
|
7905
|
+
{ id: this.getPupupId('name'), text: getLocaleText(this.parent, 'Name'),
|
7906
|
+
iconCss: this.parent.sortBy === 'name' ? TB_OPTION_DOT : '' },
|
7907
|
+
{ id: this.getPupupId('size'), text: getLocaleText(this.parent, 'Size'),
|
7908
|
+
iconCss: this.parent.sortBy === 'size' ? TB_OPTION_DOT : '' },
|
7909
|
+
{ id: this.getPupupId('date'), text: getLocaleText(this.parent, 'DateModified'),
|
7910
|
+
iconCss: this.parent.sortBy === '_fm_modified' ? TB_OPTION_DOT : '' },
|
7899
7911
|
{ separator: true },
|
7900
7912
|
{ id: this.getPupupId('ascending'), text: getLocaleText(this.parent, 'Ascending'),
|
7901
7913
|
iconCss: this.parent.sortOrder === 'Ascending' ? TB_OPTION_TICK : '' },
|
@@ -8427,7 +8439,7 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
|
|
8427
8439
|
this.parent.trigger('fileOpen', eventArgs);
|
8428
8440
|
args.cancel = eventArgs.cancel;
|
8429
8441
|
if (args.cancel) {
|
8430
|
-
this.restrictSelecting = this.isNodeClickCalled ? this.previousSelected[0]
|
8442
|
+
this.restrictSelecting = this.isNodeClickCalled ? this.previousSelected[0] !== args.node.getAttribute('data-uid') : false;
|
8431
8443
|
this.treeObj.selectedNodes = this.isNodeClickCalled ? this.previousSelected : this.treeObj.selectedNodes;
|
8432
8444
|
this.previousSelected = this.treeObj.selectedNodes;
|
8433
8445
|
if (!isNullOrUndefined(this.parent) && !isNullOrUndefined(this.parent.contextmenuModule)) {
|
@@ -10330,6 +10342,7 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
10330
10342
|
case 'f2':
|
10331
10343
|
case 'moveDown':
|
10332
10344
|
case 'moveUp':
|
10345
|
+
case 'ctrlD':
|
10333
10346
|
e.preventDefault();
|
10334
10347
|
break;
|
10335
10348
|
default:
|