@syncfusion/ej2-dropdowns 24.2.5 → 24.2.6
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 +16 -0
- 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 +24 -11
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +24 -11
- 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 +6 -6
- package/src/drop-down-list/drop-down-list.d.ts +1 -1
- package/src/drop-down-list/drop-down-list.js +4 -4
- package/src/list-box/list-box.js +0 -1
- package/src/mention/mention.js +20 -6
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.2.
|
|
3
|
+
* version : 24.2.6
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. 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@24.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@24.2.5",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-u794hQABLY4qA2bQ2I9lsrbZMHQdnAOkQdNME61PHEaPLLJC45RdwF0TK1C4FiSgfBPRHPQhUeL9Yk14V+U9IA==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-dropdowns",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"/@syncfusion/ej2-spreadsheet",
|
|
35
35
|
"/@syncfusion/ej2-vue-dropdowns"
|
|
36
36
|
],
|
|
37
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-24.2.
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-24.2.5.tgz",
|
|
38
|
+
"_shasum": "d5e5127024e044ee6c0937e333d47ddeb4a8b54a",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@syncfusion/ej2-base": "~24.2.5",
|
|
47
47
|
"@syncfusion/ej2-data": "~24.2.3",
|
|
48
|
-
"@syncfusion/ej2-inputs": "~24.2.
|
|
48
|
+
"@syncfusion/ej2-inputs": "~24.2.6",
|
|
49
49
|
"@syncfusion/ej2-lists": "~24.2.4",
|
|
50
50
|
"@syncfusion/ej2-navigations": "~24.2.4",
|
|
51
51
|
"@syncfusion/ej2-notifications": "~24.2.4",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"module": "./index.js",
|
|
75
75
|
"name": "@syncfusion/ej2-dropdowns",
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "24.2.
|
|
77
|
+
"version": "24.2.6",
|
|
78
78
|
"sideEffects": false,
|
|
79
79
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
80
80
|
}
|
|
@@ -420,7 +420,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
420
420
|
protected updateValues(): void;
|
|
421
421
|
protected onBlurHandler(e: MouseEvent): void;
|
|
422
422
|
protected focusOutAction(e?: MouseEvent | KeyboardEventArgs): void;
|
|
423
|
-
protected onFocusOut(): void;
|
|
423
|
+
protected onFocusOut(e?: MouseEvent | KeyboardEventArgs): void;
|
|
424
424
|
protected onFocus(e?: FocusEvent | MouseEvent | KeyboardEvent | TouchEvent): void;
|
|
425
425
|
private resetValueHandler;
|
|
426
426
|
protected wireEvent(): void;
|
|
@@ -523,15 +523,15 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
523
523
|
DropDownList.prototype.focusOutAction = function (e) {
|
|
524
524
|
this.isInteracted = false;
|
|
525
525
|
this.focusOut(e);
|
|
526
|
-
this.onFocusOut();
|
|
526
|
+
this.onFocusOut(e);
|
|
527
527
|
};
|
|
528
|
-
DropDownList.prototype.onFocusOut = function () {
|
|
528
|
+
DropDownList.prototype.onFocusOut = function (e) {
|
|
529
529
|
if (!this.enabled) {
|
|
530
530
|
return;
|
|
531
531
|
}
|
|
532
532
|
if (this.isSelected) {
|
|
533
533
|
this.isSelectCustom = false;
|
|
534
|
-
this.onChangeEvent(
|
|
534
|
+
this.onChangeEvent(e);
|
|
535
535
|
}
|
|
536
536
|
this.floatLabelChange();
|
|
537
537
|
this.dispatchEvent(this.hiddenElement, 'change');
|
|
@@ -1244,7 +1244,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1244
1244
|
this.hidePopup(e);
|
|
1245
1245
|
this.isInteracted = false;
|
|
1246
1246
|
if (!isActive) {
|
|
1247
|
-
this.onFocusOut();
|
|
1247
|
+
this.onFocusOut(e);
|
|
1248
1248
|
this.inputWrapper.container.classList.remove(dropDownListClasses.inputFocus);
|
|
1249
1249
|
}
|
|
1250
1250
|
}
|
package/src/list-box/list-box.js
CHANGED
|
@@ -1590,7 +1590,6 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1590
1590
|
if (tListBox.mainList.childElementCount !== tListBox.jsonData.length) {
|
|
1591
1591
|
tListBox.mainList = tListBox.ulElement;
|
|
1592
1592
|
}
|
|
1593
|
-
fListBox.updateMainList();
|
|
1594
1593
|
var tJsonData = [].slice.call(tListBox.jsonData);
|
|
1595
1594
|
tSortData = [].slice.call(tListBox.sortedData);
|
|
1596
1595
|
this.selectNextList(elems, dataLiIdx, dataIdx, fListBox);
|
package/src/mention/mention.js
CHANGED
|
@@ -892,6 +892,20 @@ var Mention = /** @class */ (function (_super) {
|
|
|
892
892
|
range.collapse(false);
|
|
893
893
|
rect = range.getBoundingClientRect().top === 0 ? range.startContainer.getClientRects()[0] : range.getBoundingClientRect();
|
|
894
894
|
}
|
|
895
|
+
var rectTop = rect.top;
|
|
896
|
+
var rectLeft = rect.left;
|
|
897
|
+
var iframes = document.querySelectorAll('iframe');
|
|
898
|
+
if (iframes.length > 0) {
|
|
899
|
+
for (var i = 0; i < iframes.length; i++) {
|
|
900
|
+
// eslint-disable-next-line security/detect-object-injection
|
|
901
|
+
var iframe = iframes[i];
|
|
902
|
+
if (iframe.contentDocument.contains(element)) {
|
|
903
|
+
var iframeRect = iframe.getBoundingClientRect();
|
|
904
|
+
rectTop += iframeRect.top;
|
|
905
|
+
rectLeft += iframeRect.left;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
895
909
|
var doc = document.documentElement;
|
|
896
910
|
var windowLeft = (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
|
|
897
911
|
var windowTop = (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
|
|
@@ -913,23 +927,23 @@ var Mention = /** @class */ (function (_super) {
|
|
|
913
927
|
}
|
|
914
928
|
if (!this.isContentEditable(this.inputElement)) {
|
|
915
929
|
coordinates = {
|
|
916
|
-
top:
|
|
930
|
+
top: rectTop + windowTop + span.offsetTop + parseInt(computed.borderTopWidth, 10) +
|
|
917
931
|
parseInt(computed.fontSize, 10) + 3 - element.scrollTop - (this.isCollided ? 10 : 0),
|
|
918
|
-
left:
|
|
932
|
+
left: rectLeft + windowLeft + span.offsetLeft + parseInt(computed.borderLeftWidth, 10)
|
|
919
933
|
};
|
|
920
934
|
document.body.removeChild(div);
|
|
921
935
|
}
|
|
922
936
|
else {
|
|
923
937
|
if (this.collision && this.collision.length > 0 && this.collision.indexOf('right') > -1 && this.collision.indexOf('bottom') === -1) {
|
|
924
938
|
coordinates = {
|
|
925
|
-
top:
|
|
926
|
-
left:
|
|
939
|
+
top: rectTop + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10),
|
|
940
|
+
left: rectLeft + windowLeft + width
|
|
927
941
|
};
|
|
928
942
|
}
|
|
929
943
|
else {
|
|
930
944
|
coordinates = {
|
|
931
|
-
top:
|
|
932
|
-
left:
|
|
945
|
+
top: rectTop + windowTop + parseInt(getComputedStyle(this.inputElement).fontSize, 10) - (this.isCollided ? 10 : 0),
|
|
946
|
+
left: rectLeft + windowLeft + width
|
|
933
947
|
};
|
|
934
948
|
}
|
|
935
949
|
}
|