@syncfusion/ej2-filemanager 19.4.38 → 19.4.42

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,4 +1,4 @@
1
- import { Ajax, Browser, ChildProperty, Complex, Component, Draggable, Event, EventHandler, Internationalization, KeyboardEvents, L10n, NotifyPropertyChanges, Property, Touch, addClass, closest, createElement, detach, extend, formatUnit, getValue, isNullOrUndefined, isVisible, matches, remove, removeClass, select, selectAll, setStyleAttribute, setValue } from '@syncfusion/ej2-base';
1
+ import { Ajax, Browser, ChildProperty, Complex, Component, Draggable, Event, EventHandler, Internationalization, KeyboardEvents, L10n, NotifyPropertyChanges, Property, Touch, addClass, closest, createElement, detach, extend, formatUnit, getUniqueID, getValue, isNullOrUndefined, isVisible, matches, remove, removeClass, select, selectAll, setStyleAttribute, setValue } from '@syncfusion/ej2-base';
2
2
  import { Splitter } from '@syncfusion/ej2-layouts';
3
3
  import { Dialog, createSpinner, hideSpinner, showSpinner } from '@syncfusion/ej2-popups';
4
4
  import { DataManager, Query } from '@syncfusion/ej2-data';
@@ -1200,7 +1200,7 @@ function fileType(file) {
1200
1200
  function getImageUrl(parent, item) {
1201
1201
  var baseUrl = parent.ajaxSettings.getImageUrl ? parent.ajaxSettings.getImageUrl : parent.ajaxSettings.url;
1202
1202
  var imgUrl;
1203
- var fileName = getValue('name', item);
1203
+ var fileName = encodeURIComponent(getValue('name', item));
1204
1204
  var fPath = getValue('filterPath', item);
1205
1205
  if (parent.hasId) {
1206
1206
  var imgId = getValue('id', item);
@@ -6586,6 +6586,9 @@ var FileManager = /** @__PURE__ @class */ (function (_super) {
6586
6586
  * @returns {void}
6587
6587
  */
6588
6588
  FileManager.prototype.preRender = function () {
6589
+ if (isNullOrUndefined(this.element.id) || this.element.id === '') {
6590
+ this.element.setAttribute('id', getUniqueID('filemanager'));
6591
+ }
6589
6592
  this.ensurePath();
6590
6593
  this.feParent = [];
6591
6594
  this.feFiles = [];