@syncfusion/ej2-dropdowns 20.4.50 → 20.4.52
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-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +35 -13
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +36 -13
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +9 -9
- package/src/drop-down-list/drop-down-list.js +1 -1
- package/src/drop-down-tree/drop-down-tree.js +6 -2
- package/src/mention/mention.js +7 -5
- package/src/multi-select/multi-select.d.ts +1 -0
- package/src/multi-select/multi-select.js +22 -5
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 20.4.
|
|
3
|
+
* version : 20.4.52
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-dropdowns@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-dropdowns@20.4.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@20.4.51",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-lpC0/p+OH8vwzR+Ep4o7mpvYXcN5tLQ7lj55GUD+0aSBX0pepgKodVHj2l/Ha0PjlzPvZDX0AQFARDc4wfQ83A==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"/@syncfusion/ej2-spreadsheet",
|
|
34
34
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
35
35
|
],
|
|
36
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.4.
|
|
37
|
-
"_shasum": "
|
|
36
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.4.51.tgz",
|
|
37
|
+
"_shasum": "912235798b9c7c54fc9a38ae0959f357297252aa",
|
|
38
38
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
39
39
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
40
40
|
"author": {
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
},
|
|
43
43
|
"bundleDependencies": false,
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@syncfusion/ej2-base": "~20.4.
|
|
45
|
+
"@syncfusion/ej2-base": "~20.4.51",
|
|
46
46
|
"@syncfusion/ej2-data": "~20.4.48",
|
|
47
|
-
"@syncfusion/ej2-inputs": "~20.4.
|
|
47
|
+
"@syncfusion/ej2-inputs": "~20.4.52",
|
|
48
48
|
"@syncfusion/ej2-lists": "~20.4.50",
|
|
49
|
-
"@syncfusion/ej2-navigations": "~20.4.
|
|
50
|
-
"@syncfusion/ej2-popups": "~20.4.
|
|
49
|
+
"@syncfusion/ej2-navigations": "~20.4.52",
|
|
50
|
+
"@syncfusion/ej2-popups": "~20.4.52"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"module": "./index.js",
|
|
73
73
|
"name": "@syncfusion/ej2-dropdowns",
|
|
74
74
|
"typings": "index.d.ts",
|
|
75
|
-
"version": "20.4.
|
|
75
|
+
"version": "20.4.52",
|
|
76
76
|
"sideEffects": false,
|
|
77
77
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
78
78
|
}
|
|
@@ -638,7 +638,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
638
638
|
}
|
|
639
639
|
if (!this.readonly) {
|
|
640
640
|
var isTabAction = e.action === 'tab' || e.action === 'close';
|
|
641
|
-
if (this.list
|
|
641
|
+
if (isNullOrUndefined(this.list) && !this.isRequested && !isTabAction && e.action !== 'escape') {
|
|
642
642
|
this.searchKeyEvent = e;
|
|
643
643
|
this.renderList(e);
|
|
644
644
|
}
|
|
@@ -858,7 +858,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
858
858
|
_this.clickHandler(e);
|
|
859
859
|
break;
|
|
860
860
|
case 'moveDown':
|
|
861
|
-
_this.treeObj.element.
|
|
861
|
+
var focusedElement = _this.treeObj.element.querySelector('li');
|
|
862
|
+
focusedElement.focus();
|
|
863
|
+
addClass([focusedElement], ['e-hover', 'e-node-focus']);
|
|
862
864
|
}
|
|
863
865
|
}
|
|
864
866
|
});
|
|
@@ -1535,7 +1537,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1535
1537
|
_this.popupObj.refreshPosition();
|
|
1536
1538
|
if (!(_this.showCheckBox && _this.showSelectAll) && (!_this.popupDiv.classList.contains(NODATA)
|
|
1537
1539
|
&& _this.treeItems.length > 0)) {
|
|
1538
|
-
_this.treeObj.element.
|
|
1540
|
+
var focusedElement = _this.treeObj.element.querySelector('li');
|
|
1541
|
+
focusedElement.focus();
|
|
1542
|
+
addClass([focusedElement], ['e-hover', 'e-node-focus']);
|
|
1539
1543
|
}
|
|
1540
1544
|
if (_this.checkSelectAll && _this.checkBoxElement) {
|
|
1541
1545
|
var wrap = closest(_this.checkBoxElement, '.' + CHECKBOXWRAP);
|
package/src/mention/mention.js
CHANGED
|
@@ -631,7 +631,6 @@ var Mention = /** @class */ (function (_super) {
|
|
|
631
631
|
}
|
|
632
632
|
if (!isNullOrUndefined(_this.target)) {
|
|
633
633
|
popupEle_1.id = _this.inputElement.id + '_popup';
|
|
634
|
-
addClass([popupEle_1], ['e-mention', 'e-popup', 'e-popup-close']);
|
|
635
634
|
}
|
|
636
635
|
_this.listHeight = formatUnit(_this.popupHeight);
|
|
637
636
|
if (!isNullOrUndefined(_this.list.querySelector('li')) && !_this.initRemoteRender) {
|
|
@@ -655,6 +654,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
655
654
|
_this.initializePopup(popupEle_1, offsetValue, left);
|
|
656
655
|
_this.checkCollision(popupEle_1);
|
|
657
656
|
popupEle_1.style.visibility = 'visible';
|
|
657
|
+
addClass([popupEle_1], ['e-mention', 'e-popup', 'e-popup-close']);
|
|
658
658
|
if (!isNullOrUndefined(_this.list)) {
|
|
659
659
|
_this.unWireListEvents();
|
|
660
660
|
_this.wireListEvents();
|
|
@@ -681,6 +681,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
681
681
|
}
|
|
682
682
|
else {
|
|
683
683
|
popupEle_1.style.left = formatUnit(coordinates_1.left);
|
|
684
|
+
popupEle_1.style.top = formatUnit(coordinates_1.top - parseInt(_this.popupHeight.toString()));
|
|
684
685
|
_this.isCollided = false;
|
|
685
686
|
}
|
|
686
687
|
popupEle_1.style.width = _this.popupWidth !== '100%' && !isNullOrUndefined(_this.popupWidth) ? formatUnit(_this.popupWidth) : 'auto';
|
|
@@ -709,7 +710,8 @@ var Mention = /** @class */ (function (_super) {
|
|
|
709
710
|
};
|
|
710
711
|
Mention.prototype.checkCollision = function (popupEle) {
|
|
711
712
|
if (!Browser.isDevice || (Browser.isDevice && !(this.getModuleName() === 'mention'))) {
|
|
712
|
-
var
|
|
713
|
+
var coordinates = this.getCoordinates(this.inputElement, this.getTriggerCharPosition());
|
|
714
|
+
var collision = isCollide(popupEle, null, coordinates.left, coordinates.top);
|
|
713
715
|
if (collision.length > 0) {
|
|
714
716
|
popupEle.style.marginTop = -parseInt(getComputedStyle(popupEle).marginTop, 10) + 'px';
|
|
715
717
|
this.isCollided = true;
|
|
@@ -734,7 +736,7 @@ var Mention = /** @class */ (function (_super) {
|
|
|
734
736
|
this.popupObj = new Popup(element, {
|
|
735
737
|
width: this.setWidth(), targetType: 'relative',
|
|
736
738
|
relateTo: this.inputElement, collision: { X: 'flip', Y: 'flip' }, offsetY: offsetValue,
|
|
737
|
-
enableRtl: this.enableRtl, offsetX: left, position: { X: '
|
|
739
|
+
enableRtl: this.enableRtl, offsetX: left, position: { X: 'left', Y: 'bottom' }, actionOnScroll: 'hide',
|
|
738
740
|
zIndex: this.zIndex,
|
|
739
741
|
close: function () {
|
|
740
742
|
_this.destroyPopup();
|
|
@@ -816,14 +818,14 @@ var Mention = /** @class */ (function (_super) {
|
|
|
816
818
|
if (!this.isContentEditable(this.inputElement)) {
|
|
817
819
|
coordinates = {
|
|
818
820
|
top: rect.top + windowTop + span.offsetTop + parseInt(computed.borderTopWidth, 10) +
|
|
819
|
-
parseInt(computed.fontSize, 10) + 3 - element.scrollTop,
|
|
821
|
+
parseInt(computed.fontSize, 10) + 3 - element.scrollTop - (this.isCollided ? 10 : 0),
|
|
820
822
|
left: rect.left + windowLeft + span.offsetLeft + parseInt(computed.borderLeftWidth, 10)
|
|
821
823
|
};
|
|
822
824
|
document.body.removeChild(div);
|
|
823
825
|
}
|
|
824
826
|
else {
|
|
825
827
|
coordinates = {
|
|
826
|
-
top: rect.top + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10),
|
|
828
|
+
top: rect.top + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10) - (this.isCollided ? 10 : 0),
|
|
827
829
|
left: rect.left + windowLeft
|
|
828
830
|
};
|
|
829
831
|
}
|
|
@@ -632,6 +632,7 @@ export declare class MultiSelect extends DropDownBase implements IInput {
|
|
|
632
632
|
private scrollFocusStatus;
|
|
633
633
|
private keyDownStatus;
|
|
634
634
|
private onBlurHandler;
|
|
635
|
+
private calculateWidth;
|
|
635
636
|
private checkPlaceholderSize;
|
|
636
637
|
private setPlaceholderSize;
|
|
637
638
|
private refreshInputHight;
|
|
@@ -882,11 +882,25 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
882
882
|
}
|
|
883
883
|
this.checkPlaceholderSize();
|
|
884
884
|
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
885
|
-
|
|
885
|
+
this.calculateWidth();
|
|
886
886
|
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
887
887
|
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
888
888
|
}
|
|
889
889
|
};
|
|
890
|
+
MultiSelect.prototype.calculateWidth = function () {
|
|
891
|
+
var elementWidth;
|
|
892
|
+
if (this.overAllWrapper) {
|
|
893
|
+
if (!this.showDropDownIcon || this.overAllWrapper.querySelector('.' + 'e-label-top')) {
|
|
894
|
+
elementWidth = this.overAllWrapper.clientWidth - 2 * (parseInt(getComputedStyle(this.inputElement).paddingRight));
|
|
895
|
+
}
|
|
896
|
+
else {
|
|
897
|
+
var downIconWidth = this.dropIcon.offsetWidth +
|
|
898
|
+
parseInt(getComputedStyle(this.dropIcon).marginRight);
|
|
899
|
+
elementWidth = this.overAllWrapper.clientWidth - (downIconWidth + 2 * (parseInt(getComputedStyle(this.inputElement).paddingRight)));
|
|
900
|
+
}
|
|
901
|
+
Input.calculateWidth(elementWidth, this.overAllWrapper, this.getModuleName());
|
|
902
|
+
}
|
|
903
|
+
};
|
|
890
904
|
MultiSelect.prototype.checkPlaceholderSize = function () {
|
|
891
905
|
if (this.showDropDownIcon) {
|
|
892
906
|
var downIconWidth = this.dropIcon.offsetWidth +
|
|
@@ -993,6 +1007,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
993
1007
|
+ ':not(.' + HIDE_LIST + ')') : [];
|
|
994
1008
|
};
|
|
995
1009
|
MultiSelect.prototype.focusInHandler = function (e) {
|
|
1010
|
+
var _this = this;
|
|
996
1011
|
if (this.enabled) {
|
|
997
1012
|
this.showOverAllClear();
|
|
998
1013
|
this.inputFocus = true;
|
|
@@ -1023,7 +1038,9 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
1023
1038
|
if (this.isPopupOpen()) {
|
|
1024
1039
|
this.refreshPopup();
|
|
1025
1040
|
}
|
|
1026
|
-
|
|
1041
|
+
setTimeout(function () {
|
|
1042
|
+
_this.calculateWidth();
|
|
1043
|
+
}, 150);
|
|
1027
1044
|
return true;
|
|
1028
1045
|
}
|
|
1029
1046
|
else {
|
|
@@ -3530,7 +3547,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3530
3547
|
case 'cssClass':
|
|
3531
3548
|
this.updateOldPropCssClass(oldProp.cssClass);
|
|
3532
3549
|
this.updateCssClass();
|
|
3533
|
-
|
|
3550
|
+
this.calculateWidth();
|
|
3534
3551
|
break;
|
|
3535
3552
|
case 'enableRtl':
|
|
3536
3553
|
this.enableRTL(newProp.enableRtl);
|
|
@@ -3558,7 +3575,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3558
3575
|
this.setFloatLabelType();
|
|
3559
3576
|
this.addValidInputClass();
|
|
3560
3577
|
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
3561
|
-
|
|
3578
|
+
this.calculateWidth();
|
|
3562
3579
|
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
3563
3580
|
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
3564
3581
|
}
|
|
@@ -3908,7 +3925,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3908
3925
|
this.element.setAttribute('data-val', 'false');
|
|
3909
3926
|
}
|
|
3910
3927
|
Input.createSpanElement(this.overAllWrapper, this.createElement);
|
|
3911
|
-
|
|
3928
|
+
this.calculateWidth();
|
|
3912
3929
|
if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] && this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
|
|
3913
3930
|
this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
|
|
3914
3931
|
}
|