@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.
- package/CHANGELOG.md +6 -0
- package/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +19 -5
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +19 -5
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +9 -9
- package/src/color-picker/color-picker.js +10 -1
- package/src/uploader/uploader.js +9 -4
|
@@ -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
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
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';
|