@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
@@ -2581,7 +2581,7 @@ function renameSuccess(parent, result, path) {
|
|
2581
2581
|
}
|
2582
2582
|
const args = { action: 'rename', result: result };
|
2583
2583
|
parent.trigger('success', args);
|
2584
|
-
parent.renamedItem = result.files[0];
|
2584
|
+
parent.renamedItem = Array.isArray(result.files) ? result.files[0] : result.files;
|
2585
2585
|
if (getValue('filterPath', parent.renamedItem) === getValue('filterPath', parent.itemData[0]) && parent.pathNames.length > 1) {
|
2586
2586
|
parent.pathNames[parent.pathNames.length - 1] = parent.renameText;
|
2587
2587
|
}
|
@@ -3607,8 +3607,6 @@ function onReSubmit(parent) {
|
|
3607
3607
|
}
|
3608
3608
|
const newPath = (parent.activeModule === 'navigationpane') ? getValue('filterPath', parent.itemData[0]).replace(/\\/g, '/') : parent.path;
|
3609
3609
|
parent.renamedId = getValue('id', parent.itemData[0]);
|
3610
|
-
parent.renamedId = getValue('id', parent.itemData[0]);
|
3611
|
-
parent.renamedId = getValue('id', parent.itemData[0]);
|
3612
3610
|
if (parent.isFile) {
|
3613
3611
|
const oldExtension = (oIndex === -1) ? '' : parent.currentItemText.substr(oIndex);
|
3614
3612
|
const nIndex = text.lastIndexOf('.');
|
@@ -8632,7 +8630,8 @@ class NavigationPane {
|
|
8632
8630
|
addChild(files, target, prevent) {
|
8633
8631
|
// eslint-disable-next-line
|
8634
8632
|
const directories = getDirectories(files);
|
8635
|
-
if (directories.length > 0
|
8633
|
+
if (directories.length > 0 &&
|
8634
|
+
(directories[0].filterPath == null || this.getTreeData(target)[0].filterPath == null || directories[0].filterPath !== this.getTreeData(target)[0].filterPath)) {
|
8636
8635
|
let length = 0;
|
8637
8636
|
// eslint-disable-next-line
|
8638
8637
|
const folders = directories;
|
@@ -9487,6 +9486,11 @@ class DetailsView {
|
|
9487
9486
|
},
|
9488
9487
|
locale: this.parent.locale
|
9489
9488
|
});
|
9489
|
+
if (this.parent.isReact) {
|
9490
|
+
this.gridObj.isReact = true;
|
9491
|
+
this.gridObj.portals = [];
|
9492
|
+
this.gridObj.on('reactTemplateRender', this.reactTemplateRender, this);
|
9493
|
+
}
|
9490
9494
|
this.gridObj.isStringTemplate = true;
|
9491
9495
|
this.gridObj.appendTo('#' + this.parent.element.id + GRID_ID);
|
9492
9496
|
this.wireEvents();
|
@@ -9494,6 +9498,11 @@ class DetailsView {
|
|
9494
9498
|
this.emptyArgs = args;
|
9495
9499
|
}
|
9496
9500
|
}
|
9501
|
+
reactTemplateRender(args) {
|
9502
|
+
this.parent[`portals`] = args;
|
9503
|
+
this.parent.notify('renderReactTemplate', this.parent[`portals`]);
|
9504
|
+
this.parent[`renderReactTemplates`]();
|
9505
|
+
}
|
9497
9506
|
/**
|
9498
9507
|
* Gets the grid height.
|
9499
9508
|
* @returns The grid height.
|
@@ -9925,6 +9934,9 @@ class DetailsView {
|
|
9925
9934
|
this.parent.setProperties({ selectedItems: [] }, true);
|
9926
9935
|
this.gridObj.dataSource = getSortedData(this.parent, args.files);
|
9927
9936
|
this.gridObj.freezeRefresh();
|
9937
|
+
if (this.parent.isReact) {
|
9938
|
+
this.gridObj.on('reactTemplateRender', this.reactTemplateRender, this);
|
9939
|
+
}
|
9928
9940
|
}
|
9929
9941
|
this.emptyArgs = args;
|
9930
9942
|
}
|
@@ -10439,6 +10451,9 @@ class DetailsView {
|
|
10439
10451
|
}
|
10440
10452
|
this.removeEventListener();
|
10441
10453
|
if (this.gridObj) {
|
10454
|
+
if (this.parent.isReact) {
|
10455
|
+
this.gridObj.off('reactTemplateRender', this.reactTemplateRender);
|
10456
|
+
}
|
10442
10457
|
this.unWireEvents();
|
10443
10458
|
this.gridObj.destroy();
|
10444
10459
|
}
|