@syncfusion/ej2-filemanager 22.1.34 → 22.1.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/CHANGELOG.md +8 -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 +19 -4
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +19 -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 +14 -14
- package/src/file-manager/common/operations.js +1 -1
- package/src/file-manager/layout/details-view.d.ts +1 -0
- package/src/file-manager/layout/details-view.js +16 -0
- package/src/file-manager/layout/navigation-pane.js +2 -1
- package/src/file-manager/pop-up/dialog.js +0 -2
- package/styles/bootstrap-dark.css +1 -0
- package/styles/bootstrap.css +1 -0
- package/styles/bootstrap4.css +1 -0
- package/styles/bootstrap5-dark.css +1 -0
- package/styles/bootstrap5.css +1 -0
- package/styles/fabric-dark.css +1 -0
- package/styles/fabric.css +1 -0
- package/styles/file-manager/_layout.scss +2 -4
- package/styles/file-manager/_material3-definition.scss +7 -8
- package/styles/file-manager/bootstrap-dark.css +1 -0
- package/styles/file-manager/bootstrap.css +1 -0
- package/styles/file-manager/bootstrap4.css +1 -0
- package/styles/file-manager/bootstrap5-dark.css +1 -0
- package/styles/file-manager/bootstrap5.css +1 -0
- package/styles/file-manager/fabric-dark.css +1 -0
- package/styles/file-manager/fabric.css +1 -0
- package/styles/file-manager/fluent-dark.css +1 -0
- package/styles/file-manager/fluent.css +1 -0
- package/styles/file-manager/highcontrast-light.css +1 -0
- package/styles/file-manager/highcontrast.css +1 -0
- package/styles/file-manager/material-dark.css +1 -0
- package/styles/file-manager/material.css +1 -0
- package/styles/file-manager/material3-dark.css +10 -9
- package/styles/file-manager/material3.css +10 -9
- package/styles/file-manager/tailwind-dark.css +1 -0
- package/styles/file-manager/tailwind.css +1 -0
- package/styles/fluent-dark.css +1 -0
- package/styles/fluent.css +1 -0
- package/styles/highcontrast-light.css +1 -0
- package/styles/highcontrast.css +1 -0
- package/styles/material-dark.css +1 -0
- package/styles/material.css +1 -0
- package/styles/material3-dark.css +10 -9
- package/styles/material3.css +10 -9
- package/styles/tailwind-dark.css +1 -0
- package/styles/tailwind.css +1 -0
@@ -2725,7 +2725,7 @@ function renameSuccess(parent, result, path) {
|
|
2725
2725
|
}
|
2726
2726
|
var args = { action: 'rename', result: result };
|
2727
2727
|
parent.trigger('success', args);
|
2728
|
-
parent.renamedItem = result.files[0];
|
2728
|
+
parent.renamedItem = Array.isArray(result.files) ? result.files[0] : result.files;
|
2729
2729
|
if (getValue('filterPath', parent.renamedItem) === getValue('filterPath', parent.itemData[0]) && parent.pathNames.length > 1) {
|
2730
2730
|
parent.pathNames[parent.pathNames.length - 1] = parent.renameText;
|
2731
2731
|
}
|
@@ -3754,8 +3754,6 @@ function onReSubmit(parent) {
|
|
3754
3754
|
}
|
3755
3755
|
var newPath = (parent.activeModule === 'navigationpane') ? getValue('filterPath', parent.itemData[0]).replace(/\\/g, '/') : parent.path;
|
3756
3756
|
parent.renamedId = getValue('id', parent.itemData[0]);
|
3757
|
-
parent.renamedId = getValue('id', parent.itemData[0]);
|
3758
|
-
parent.renamedId = getValue('id', parent.itemData[0]);
|
3759
3757
|
if (parent.isFile) {
|
3760
3758
|
var oldExtension = (oIndex === -1) ? '' : parent.currentItemText.substr(oIndex);
|
3761
3759
|
var nIndex = text.lastIndexOf('.');
|
@@ -8821,7 +8819,8 @@ var NavigationPane = /** @__PURE__ @class */ (function () {
|
|
8821
8819
|
NavigationPane.prototype.addChild = function (files, target, prevent) {
|
8822
8820
|
// eslint-disable-next-line
|
8823
8821
|
var directories = getDirectories(files);
|
8824
|
-
if (directories.length > 0
|
8822
|
+
if (directories.length > 0 &&
|
8823
|
+
(directories[0].filterPath == null || this.getTreeData(target)[0].filterPath == null || directories[0].filterPath !== this.getTreeData(target)[0].filterPath)) {
|
8825
8824
|
var length_1 = 0;
|
8826
8825
|
// eslint-disable-next-line
|
8827
8826
|
var folders = directories;
|
@@ -9678,6 +9677,11 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
9678
9677
|
},
|
9679
9678
|
locale: this.parent.locale
|
9680
9679
|
});
|
9680
|
+
if (this.parent.isReact) {
|
9681
|
+
this.gridObj.isReact = true;
|
9682
|
+
this.gridObj.portals = [];
|
9683
|
+
this.gridObj.on('reactTemplateRender', this.reactTemplateRender, this);
|
9684
|
+
}
|
9681
9685
|
this.gridObj.isStringTemplate = true;
|
9682
9686
|
this.gridObj.appendTo('#' + this.parent.element.id + GRID_ID);
|
9683
9687
|
this.wireEvents();
|
@@ -9685,6 +9689,11 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
9685
9689
|
this.emptyArgs = args;
|
9686
9690
|
}
|
9687
9691
|
};
|
9692
|
+
DetailsView.prototype.reactTemplateRender = function (args) {
|
9693
|
+
this.parent["portals"] = args;
|
9694
|
+
this.parent.notify('renderReactTemplate', this.parent["portals"]);
|
9695
|
+
this.parent["renderReactTemplates"]();
|
9696
|
+
};
|
9688
9697
|
/**
|
9689
9698
|
* Gets the grid height.
|
9690
9699
|
* @returns The grid height.
|
@@ -10116,6 +10125,9 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
10116
10125
|
this.parent.setProperties({ selectedItems: [] }, true);
|
10117
10126
|
this.gridObj.dataSource = getSortedData(this.parent, args.files);
|
10118
10127
|
this.gridObj.freezeRefresh();
|
10128
|
+
if (this.parent.isReact) {
|
10129
|
+
this.gridObj.on('reactTemplateRender', this.reactTemplateRender, this);
|
10130
|
+
}
|
10119
10131
|
}
|
10120
10132
|
this.emptyArgs = args;
|
10121
10133
|
};
|
@@ -10632,6 +10644,9 @@ var DetailsView = /** @__PURE__ @class */ (function () {
|
|
10632
10644
|
}
|
10633
10645
|
this.removeEventListener();
|
10634
10646
|
if (this.gridObj) {
|
10647
|
+
if (this.parent.isReact) {
|
10648
|
+
this.gridObj.off('reactTemplateRender', this.reactTemplateRender);
|
10649
|
+
}
|
10635
10650
|
this.unWireEvents();
|
10636
10651
|
this.gridObj.destroy();
|
10637
10652
|
}
|