@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';
@@ -1056,7 +1056,7 @@ function fileType(file) {
1056
1056
  function getImageUrl(parent, item) {
1057
1057
  const baseUrl = parent.ajaxSettings.getImageUrl ? parent.ajaxSettings.getImageUrl : parent.ajaxSettings.url;
1058
1058
  let imgUrl;
1059
- const fileName = getValue('name', item);
1059
+ const fileName = encodeURIComponent(getValue('name', item));
1060
1060
  const fPath = getValue('filterPath', item);
1061
1061
  if (parent.hasId) {
1062
1062
  const imgId = getValue('id', item);
@@ -6413,6 +6413,9 @@ let FileManager = FileManager_1 = class FileManager extends Component {
6413
6413
  * @returns {void}
6414
6414
  */
6415
6415
  preRender() {
6416
+ if (isNullOrUndefined(this.element.id) || this.element.id === '') {
6417
+ this.element.setAttribute('id', getUniqueID('filemanager'));
6418
+ }
6416
6419
  this.ensurePath();
6417
6420
  this.feParent = [];
6418
6421
  this.feFiles = [];