@syncfusion/ej2-inputs 24.2.6 → 24.2.9

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.
@@ -8659,12 +8659,14 @@ let Uploader = class Uploader extends Component {
8659
8659
  if (event.type === 'paste' && this.browserName !== 'msie' && this.browserName !== 'edge' && this.browserName !== 'safari') {
8660
8660
  this.element.files = event.clipboardData.files;
8661
8661
  }
8662
- if (item.length !== 1) {
8662
+ if (item.length !== 1 && !this.multiple) {
8663
8663
  return;
8664
8664
  }
8665
- const pasteFile = [].slice.call(item)[0];
8666
- if ((pasteFile.kind === 'file') && pasteFile.type.match('^image/')) {
8667
- this.renderSelectedFiles(event, [pasteFile.getAsFile()], false, true);
8665
+ for (let file = 0; file < item.length; file++) {
8666
+ const pasteFile = [].slice.call(item)[file];
8667
+ if ((pasteFile.kind === 'file') || pasteFile.type.match('^image/')) {
8668
+ this.renderSelectedFiles(event, [pasteFile.getAsFile()], false, true);
8669
+ }
8668
8670
  }
8669
8671
  }
8670
8672
  getSelectedFiles(index) {
@@ -9881,6 +9883,9 @@ let Uploader = class Uploader extends Component {
9881
9883
  (this.getLiElement(file)).classList.remove(RESTRICT_RETRY);
9882
9884
  }
9883
9885
  }
9886
+ else if (!this.showFileList) {
9887
+ this.checkActionComplete(true);
9888
+ }
9884
9889
  });
9885
9890
  }
9886
9891
  uploadFailed(e, file) {
@@ -11409,7 +11414,7 @@ let ColorPicker = class ColorPicker extends Component {
11409
11414
  if (this.cssClass) {
11410
11415
  addClass([popupEle], this.cssClass.replace(/\s+/g, ' ').trim().split(' '));
11411
11416
  }
11412
- if (Browser.isDevice) {
11417
+ if (Browser.isDevice && !this.createPopupOnClick) {
11413
11418
  const popupInst = this.getPopupInst();
11414
11419
  popupInst.relateTo = document.body;
11415
11420
  popupInst.position = { X: 'center', Y: 'center' };
@@ -11447,6 +11452,15 @@ let ColorPicker = class ColorPicker extends Component {
11447
11452
  this.createWidget();
11448
11453
  popupEle.style.display = '';
11449
11454
  if (Browser.isDevice) {
11455
+ if (this.createPopupOnClick) {
11456
+ const popupInst = this.getPopupInst();
11457
+ popupInst.relateTo = document.body;
11458
+ popupInst.position = { X: 'center', Y: 'center' };
11459
+ popupInst.targetType = 'container';
11460
+ popupInst.collision = { X: 'fit', Y: 'fit' };
11461
+ popupInst.offsetY = 4;
11462
+ popupEle.style.zIndex = getZindexPartial(this.splitBtn.element).toString();
11463
+ }
11450
11464
  this.modal = this.createElement('div');
11451
11465
  this.modal.className = 'e-' + this.getModuleName() + ' e-modal';
11452
11466
  this.modal.style.display = 'none';