@syncfusion/ej2-dropdowns 20.4.51 → 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 +12 -6
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +12 -6
- 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 +8 -8
- package/src/drop-down-tree/drop-down-tree.js +6 -2
- package/src/mention/mention.js +6 -4
- package/GitLeaksReport.json +0 -1
- package/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
|
@@ -5234,7 +5234,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
5234
5234
|
_this.clickHandler(e);
|
|
5235
5235
|
break;
|
|
5236
5236
|
case 'moveDown':
|
|
5237
|
-
_this.treeObj.element.
|
|
5237
|
+
var focusedElement = _this.treeObj.element.querySelector('li');
|
|
5238
|
+
focusedElement.focus();
|
|
5239
|
+
addClass([focusedElement], ['e-hover', 'e-node-focus']);
|
|
5238
5240
|
}
|
|
5239
5241
|
}
|
|
5240
5242
|
});
|
|
@@ -5911,7 +5913,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
5911
5913
|
_this.popupObj.refreshPosition();
|
|
5912
5914
|
if (!(_this.showCheckBox && _this.showSelectAll) && (!_this.popupDiv.classList.contains(NODATA)
|
|
5913
5915
|
&& _this.treeItems.length > 0)) {
|
|
5914
|
-
_this.treeObj.element.
|
|
5916
|
+
var focusedElement = _this.treeObj.element.querySelector('li');
|
|
5917
|
+
focusedElement.focus();
|
|
5918
|
+
addClass([focusedElement], ['e-hover', 'e-node-focus']);
|
|
5915
5919
|
}
|
|
5916
5920
|
if (_this.checkSelectAll && _this.checkBoxElement) {
|
|
5917
5921
|
var wrap = closest(_this.checkBoxElement, '.' + CHECKBOXWRAP);
|
|
@@ -16833,6 +16837,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
16833
16837
|
}
|
|
16834
16838
|
else {
|
|
16835
16839
|
popupEle_1.style.left = formatUnit(coordinates_1.left);
|
|
16840
|
+
popupEle_1.style.top = formatUnit(coordinates_1.top - parseInt(_this.popupHeight.toString()));
|
|
16836
16841
|
_this.isCollided = false;
|
|
16837
16842
|
}
|
|
16838
16843
|
popupEle_1.style.width = _this.popupWidth !== '100%' && !isNullOrUndefined(_this.popupWidth) ? formatUnit(_this.popupWidth) : 'auto';
|
|
@@ -16861,7 +16866,8 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
16861
16866
|
};
|
|
16862
16867
|
Mention.prototype.checkCollision = function (popupEle) {
|
|
16863
16868
|
if (!Browser.isDevice || (Browser.isDevice && !(this.getModuleName() === 'mention'))) {
|
|
16864
|
-
var
|
|
16869
|
+
var coordinates = this.getCoordinates(this.inputElement, this.getTriggerCharPosition());
|
|
16870
|
+
var collision = isCollide(popupEle, null, coordinates.left, coordinates.top);
|
|
16865
16871
|
if (collision.length > 0) {
|
|
16866
16872
|
popupEle.style.marginTop = -parseInt(getComputedStyle(popupEle).marginTop, 10) + 'px';
|
|
16867
16873
|
this.isCollided = true;
|
|
@@ -16886,7 +16892,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
16886
16892
|
this.popupObj = new Popup(element, {
|
|
16887
16893
|
width: this.setWidth(), targetType: 'relative',
|
|
16888
16894
|
relateTo: this.inputElement, collision: { X: 'flip', Y: 'flip' }, offsetY: offsetValue,
|
|
16889
|
-
enableRtl: this.enableRtl, offsetX: left, position: { X: '
|
|
16895
|
+
enableRtl: this.enableRtl, offsetX: left, position: { X: 'left', Y: 'bottom' }, actionOnScroll: 'hide',
|
|
16890
16896
|
zIndex: this.zIndex,
|
|
16891
16897
|
close: function () {
|
|
16892
16898
|
_this.destroyPopup();
|
|
@@ -16968,14 +16974,14 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
|
|
|
16968
16974
|
if (!this.isContentEditable(this.inputElement)) {
|
|
16969
16975
|
coordinates = {
|
|
16970
16976
|
top: rect.top + windowTop + span.offsetTop + parseInt(computed.borderTopWidth, 10) +
|
|
16971
|
-
parseInt(computed.fontSize, 10) + 3 - element.scrollTop,
|
|
16977
|
+
parseInt(computed.fontSize, 10) + 3 - element.scrollTop - (this.isCollided ? 10 : 0),
|
|
16972
16978
|
left: rect.left + windowLeft + span.offsetLeft + parseInt(computed.borderLeftWidth, 10)
|
|
16973
16979
|
};
|
|
16974
16980
|
document.body.removeChild(div);
|
|
16975
16981
|
}
|
|
16976
16982
|
else {
|
|
16977
16983
|
coordinates = {
|
|
16978
|
-
top: rect.top + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10),
|
|
16984
|
+
top: rect.top + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10) - (this.isCollided ? 10 : 0),
|
|
16979
16985
|
left: rect.left + windowLeft
|
|
16980
16986
|
};
|
|
16981
16987
|
}
|