@syncfusion/ej2-inputs 32.2.5 → 32.2.7
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/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 +45 -12
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +45 -12
- 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 +5 -5
- package/src/color-picker/color-picker.d.ts +1 -0
- package/src/color-picker/color-picker.js +22 -3
- package/src/common/signature-base.d.ts +1 -0
- package/src/common/signature-base.js +6 -2
- package/src/maskedtextbox/maskedtextbox/maskedtextbox.js +2 -1
- package/src/numerictextbox/numerictextbox.js +2 -1
- package/src/textarea/textarea.js +2 -1
- package/src/textbox/textbox.js +2 -1
- package/src/uploader/uploader.d.ts +1 -0
- package/src/uploader/uploader.js +9 -3
|
@@ -1207,8 +1207,9 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
this.element.classList.remove('e-control', 'e-numerictextbox');
|
|
1209
1209
|
this.element.appendChild(input);
|
|
1210
|
+
setValue('ej2_instances', ejInstance, input);
|
|
1211
|
+
setValue('ej2_instances', null, this.element);
|
|
1210
1212
|
this.element = input;
|
|
1211
|
-
setValue('ej2_instances', ejInstance, this.element);
|
|
1212
1213
|
}
|
|
1213
1214
|
attributes(this.element, { 'role': 'spinbutton', 'tabindex': '0', 'autocomplete': 'off' });
|
|
1214
1215
|
var localeText = {
|
|
@@ -3989,8 +3990,9 @@ var MaskedTextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
3989
3990
|
this.element.classList.remove('e-control', 'e-maskedtextbox');
|
|
3990
3991
|
this.element.classList.add('e-mask-container');
|
|
3991
3992
|
this.element.appendChild(input);
|
|
3993
|
+
setValue('ej2_instances', ejInstance, input);
|
|
3994
|
+
setValue('ej2_instances', null, this.element);
|
|
3992
3995
|
this.element = input;
|
|
3993
|
-
setValue('ej2_instances', ejInstance, this.element);
|
|
3994
3996
|
}
|
|
3995
3997
|
this.updateHTMLAttrToElement();
|
|
3996
3998
|
this.checkHtmlAttributes(false);
|
|
@@ -8933,8 +8935,10 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
|
|
|
8933
8935
|
inputElement.setAttribute('name', 'UploadFiles');
|
|
8934
8936
|
}
|
|
8935
8937
|
this.element.appendChild(inputElement);
|
|
8938
|
+
setValue('ej2_instances', ejInstance, inputElement);
|
|
8939
|
+
// Clear reference from this.element to avoid retaining component instance
|
|
8940
|
+
setValue('ej2_instances', null, this.element);
|
|
8936
8941
|
this.element = inputElement;
|
|
8937
|
-
setValue('ej2_instances', ejInstance, this.element);
|
|
8938
8942
|
}
|
|
8939
8943
|
/* istanbul ignore next */
|
|
8940
8944
|
if (ejInstance[0].isPureReactComponent) {
|
|
@@ -9325,7 +9329,8 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
|
|
|
9325
9329
|
Uploader.prototype.wireEvents = function () {
|
|
9326
9330
|
EventHandler.add(this.browseButton, 'click', this.browseButtonClick, this);
|
|
9327
9331
|
EventHandler.add(this.element, 'change', this.onSelectFiles, this);
|
|
9328
|
-
|
|
9332
|
+
this.documentClickHandler = this.removeFocus.bind(this);
|
|
9333
|
+
EventHandler.add(document, 'click', this.documentClickHandler);
|
|
9329
9334
|
this.keyboardModule = new KeyboardEvents(this.uploadWrapper, {
|
|
9330
9335
|
keyAction: this.keyActionHandler.bind(this),
|
|
9331
9336
|
keyConfigs: this.keyConfigs,
|
|
@@ -9338,7 +9343,10 @@ var Uploader = /** @__PURE__ @class */ (function (_super) {
|
|
|
9338
9343
|
Uploader.prototype.unWireEvents = function () {
|
|
9339
9344
|
EventHandler.remove(this.browseButton, 'click', this.browseButtonClick);
|
|
9340
9345
|
EventHandler.remove(this.element, 'change', this.onSelectFiles);
|
|
9341
|
-
|
|
9346
|
+
if (this.documentClickHandler) {
|
|
9347
|
+
EventHandler.remove(document, 'click', this.documentClickHandler);
|
|
9348
|
+
this.documentClickHandler = null;
|
|
9349
|
+
}
|
|
9342
9350
|
if (this.isForm) {
|
|
9343
9351
|
EventHandler.remove(this.formElement, 'reset', this.resetForm);
|
|
9344
9352
|
}
|
|
@@ -12379,6 +12387,9 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12379
12387
|
}
|
|
12380
12388
|
});
|
|
12381
12389
|
this.splitBtn.createElement = this.createElement;
|
|
12390
|
+
if (this.isAngular) {
|
|
12391
|
+
this.splitBtn.isAngular = this.isAngular;
|
|
12392
|
+
}
|
|
12382
12393
|
this.splitBtn.appendTo(splitButton);
|
|
12383
12394
|
this.splitBtn.element.setAttribute('aria-label', 'colorpicker');
|
|
12384
12395
|
var preview = this.createElement('span', { className: SPLITPREVIEW });
|
|
@@ -12452,8 +12463,9 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12452
12463
|
_this.modal = _this.createElement('div');
|
|
12453
12464
|
_this.modal.className = 'e-' + _this.getModuleName() + ' e-modal';
|
|
12454
12465
|
_this.modal.style.display = 'none';
|
|
12455
|
-
|
|
12456
|
-
|
|
12466
|
+
var appendToElement = _this.getAppendToElement();
|
|
12467
|
+
appendToElement.insertBefore(_this.modal, popupEle);
|
|
12468
|
+
appendToElement.className += ' e-colorpicker-overflow';
|
|
12457
12469
|
_this.modal.style.display = 'block';
|
|
12458
12470
|
_this.modal.style.zIndex = (Number(popupEle.style.zIndex) - 1).toString();
|
|
12459
12471
|
}
|
|
@@ -12487,6 +12499,16 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12487
12499
|
return callBackPromise;
|
|
12488
12500
|
};
|
|
12489
12501
|
};
|
|
12502
|
+
ColorPicker.prototype.getAppendToElement = function () {
|
|
12503
|
+
if (this.isAngular) {
|
|
12504
|
+
var cdkPane = this.element.closest('.cdk-overlay-pane');
|
|
12505
|
+
var popoverEl = this.element.closest('[popover]');
|
|
12506
|
+
if (cdkPane && popoverEl) {
|
|
12507
|
+
return cdkPane;
|
|
12508
|
+
}
|
|
12509
|
+
}
|
|
12510
|
+
return document.body;
|
|
12511
|
+
};
|
|
12490
12512
|
ColorPicker.prototype.onPopupClose = function () {
|
|
12491
12513
|
this.unWireEvents();
|
|
12492
12514
|
this.destroyOtherComp();
|
|
@@ -12496,7 +12518,8 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
12496
12518
|
this.container.innerHTML = '';
|
|
12497
12519
|
removeClass([this.container], [PICKERCONTENT, PALETTECONTENT]);
|
|
12498
12520
|
if (Browser.isDevice && this.modal) {
|
|
12499
|
-
|
|
12521
|
+
var appendToElement = this.getAppendToElement();
|
|
12522
|
+
removeClass([appendToElement], 'e-colorpicker-overflow');
|
|
12500
12523
|
this.modal.style.display = 'none';
|
|
12501
12524
|
this.modal.outerHTML = '';
|
|
12502
12525
|
this.modal = null;
|
|
@@ -13701,6 +13724,10 @@ var ColorPicker = /** @__PURE__ @class */ (function (_super) {
|
|
|
13701
13724
|
this.unWireEvents();
|
|
13702
13725
|
this.destroyOtherComp();
|
|
13703
13726
|
}
|
|
13727
|
+
this.splitBtn.beforeClose = null;
|
|
13728
|
+
this.splitBtn.beforeOpen = null;
|
|
13729
|
+
this.splitBtn.click = null;
|
|
13730
|
+
this.splitBtn.open = null;
|
|
13704
13731
|
this.splitBtn.destroy();
|
|
13705
13732
|
this.splitBtn = null;
|
|
13706
13733
|
}
|
|
@@ -14458,8 +14485,9 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
14458
14485
|
}
|
|
14459
14486
|
}
|
|
14460
14487
|
this.element.appendChild(inputElement);
|
|
14488
|
+
setValue('ej2_instances', ejInstance, inputElement);
|
|
14489
|
+
setValue('ej2_instances', null, this.element);
|
|
14461
14490
|
this.element = inputElement;
|
|
14462
|
-
setValue('ej2_instances', ejInstance, this.element);
|
|
14463
14491
|
}
|
|
14464
14492
|
this.updateHTMLAttributesToElement();
|
|
14465
14493
|
this.checkAttributes(false);
|
|
@@ -15362,8 +15390,9 @@ var TextArea = /** @__PURE__ @class */ (function (_super) {
|
|
|
15362
15390
|
}
|
|
15363
15391
|
}
|
|
15364
15392
|
this.element.appendChild(inputElement);
|
|
15393
|
+
setValue('ej2_instances', ejInstance, inputElement);
|
|
15394
|
+
setValue('ej2_instances', null, this.element);
|
|
15365
15395
|
this.element = inputElement;
|
|
15366
|
-
setValue('ej2_instances', ejInstance, this.element);
|
|
15367
15396
|
}
|
|
15368
15397
|
this.updateHTMLAttributesToElement();
|
|
15369
15398
|
this.checkAttributes(false);
|
|
@@ -16779,7 +16808,8 @@ var SignatureBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
16779
16808
|
if (isNullOrUndefined(this.pointColl) && !this.isReadOnly && !this.disabled) {
|
|
16780
16809
|
EventHandler.add(this.canvasContext.canvas, 'mousedown touchstart', this.mouseDownHandler, this);
|
|
16781
16810
|
EventHandler.add(this.canvasContext.canvas, 'keydown', this.keyboardHandler, this);
|
|
16782
|
-
|
|
16811
|
+
this.boundResizeHandler = this.resizeHandler.bind(this);
|
|
16812
|
+
window.addEventListener('resize', this.boundResizeHandler);
|
|
16783
16813
|
}
|
|
16784
16814
|
else if (this.pointColl) {
|
|
16785
16815
|
EventHandler.add(this.canvasContext.canvas, 'mousemove touchmove', this.mouseMoveHandler, this);
|
|
@@ -16800,7 +16830,10 @@ var SignatureBase = /** @__PURE__ @class */ (function (_super) {
|
|
|
16800
16830
|
EventHandler.remove(this.canvasContext.canvas, 'mousedown touchstart', this.mouseDownHandler);
|
|
16801
16831
|
EventHandler.remove(this.canvasContext.canvas, 'keydown', this.keyboardHandler);
|
|
16802
16832
|
}
|
|
16803
|
-
|
|
16833
|
+
if (this.boundResizeHandler) {
|
|
16834
|
+
window.removeEventListener('resize', this.boundResizeHandler);
|
|
16835
|
+
this.boundResizeHandler = null;
|
|
16836
|
+
}
|
|
16804
16837
|
}
|
|
16805
16838
|
};
|
|
16806
16839
|
SignatureBase.prototype.setHTMLProperties = function () {
|