@syncfusion/ej2-dropdowns 20.4.51 → 20.4.53
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 +12 -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 +18 -11
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +18 -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 +8 -8
- package/src/common/incremental-search.js +1 -1
- package/src/drop-down-list/drop-down-list.d.ts +1 -0
- package/src/drop-down-list/drop-down-list.js +3 -2
- package/src/drop-down-tree/drop-down-tree.js +7 -4
- package/src/mention/mention.js +6 -4
- package/src/multi-select/multi-select.js +1 -0
- package/GitLeaksReport.json +0 -1
- package/gitleaks-ci/gitleaks +0 -0
- package/gitleaks-ci.tar.gz +0 -0
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.53
|
|
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.52",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-nlbsJSL1lP7EZG6RxnyoN/vh4j86STF9RpT89ZOz6fUtZ+5BAHz9FVZUc9/U41YOuPGyDcm1V7McfRH/kqARIg==",
|
|
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.52.tgz",
|
|
37
|
+
"_shasum": "184776fe40cdaa546e0fb291d97dcaf067dd9f63",
|
|
38
38
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
39
39
|
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
40
40
|
"author": {
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
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.53",
|
|
50
|
+
"@syncfusion/ej2-popups": "~20.4.53"
|
|
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.53",
|
|
76
76
|
"sideEffects": false,
|
|
77
77
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
78
78
|
}
|
|
@@ -87,7 +87,7 @@ export function Search(inputVal, items, searchType, ignoreCase, dataSource, fiel
|
|
|
87
87
|
var fieldValue_1 = fields.text.split('.');
|
|
88
88
|
dataSource.filter(function (data) {
|
|
89
89
|
Array.prototype.slice.call(fieldValue_1).forEach(function (value) {
|
|
90
|
-
if (type === 'object' && checkField_1.textContent.toString().indexOf(data[value]) !== -1 && checkField_1.getAttribute('data-value') === data[fields.value] || type === 'string' && checkField_1.textContent.toString().indexOf(data) !== -1) {
|
|
90
|
+
if (type === 'object' && checkField_1.textContent.toString().indexOf(data[value]) !== -1 && checkField_1.getAttribute('data-value') === data[fields.value].toString() || type === 'string' && checkField_1.textContent.toString().indexOf(data) !== -1) {
|
|
91
91
|
filterValue = type === 'object' ? data[value] : data;
|
|
92
92
|
}
|
|
93
93
|
});
|
|
@@ -105,6 +105,7 @@ export declare class DropDownList extends DropDownBase implements IInput {
|
|
|
105
105
|
protected preventChange: boolean;
|
|
106
106
|
protected isAngular: boolean;
|
|
107
107
|
protected selectedElementID: string;
|
|
108
|
+
private isEventCancel;
|
|
108
109
|
/**
|
|
109
110
|
* Sets CSS classes to the root element of the component that allows customization of appearance.
|
|
110
111
|
*
|
|
@@ -1809,6 +1809,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
},
|
|
1811
1811
|
open: function () {
|
|
1812
|
+
EventHandler.remove(document, 'mousedown', _this.onDocumentClick);
|
|
1812
1813
|
EventHandler.add(document, 'mousedown', _this.onDocumentClick, _this);
|
|
1813
1814
|
_this.isPopupOpen = true;
|
|
1814
1815
|
var actionList = _this.actionCompleteData && _this.actionCompleteData.ulElement &&
|
|
@@ -1988,10 +1989,9 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
1988
1989
|
DropDownList.prototype.closePopup = function (delay, e) {
|
|
1989
1990
|
var _this = this;
|
|
1990
1991
|
this.isTyped = false;
|
|
1991
|
-
if (!(this.popupObj && document.body.contains(this.popupObj.element) && this.beforePopupOpen)) {
|
|
1992
|
+
if (!(this.popupObj && document.body.contains(this.popupObj.element) && (this.beforePopupOpen || this.isEventCancel))) {
|
|
1992
1993
|
return;
|
|
1993
1994
|
}
|
|
1994
|
-
EventHandler.remove(document, 'mousedown', this.onDocumentClick);
|
|
1995
1995
|
this.isActive = false;
|
|
1996
1996
|
this.filterInputObj = null;
|
|
1997
1997
|
this.isDropDownClick = false;
|
|
@@ -2041,6 +2041,7 @@ var DropDownList = /** @class */ (function (_super) {
|
|
|
2041
2041
|
var popupInstance = this.popupObj;
|
|
2042
2042
|
var eventArgs = { popup: popupInstance, cancel: false, animation: animModel, event: e || null };
|
|
2043
2043
|
this.trigger('close', eventArgs, function (eventArgs) {
|
|
2044
|
+
_this.isEventCancel = eventArgs.cancel;
|
|
2044
2045
|
if (!isNullOrUndefined(_this.popupObj) &&
|
|
2045
2046
|
!isNullOrUndefined(_this.popupObj.element.querySelector('.e-fixed-head'))) {
|
|
2046
2047
|
var fixedHeader = _this.popupObj.element.querySelector('.e-fixed-head');
|
|
@@ -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);
|
|
@@ -2459,8 +2463,7 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
2459
2463
|
setValue('selectedNodes', [], this.treeObj);
|
|
2460
2464
|
this.hiddenElement.innerHTML = '';
|
|
2461
2465
|
if (this.showCheckBox) {
|
|
2462
|
-
this.treeObj.
|
|
2463
|
-
this.treeObj.dataBind();
|
|
2466
|
+
this.treeObj.uncheckAll();
|
|
2464
2467
|
this.setMultiSelect();
|
|
2465
2468
|
this.clearCheckAll();
|
|
2466
2469
|
}
|
package/src/mention/mention.js
CHANGED
|
@@ -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
|
}
|
|
@@ -3826,6 +3826,7 @@ var MultiSelect = /** @class */ (function (_super) {
|
|
|
3826
3826
|
MultiSelect.prototype.render = function () {
|
|
3827
3827
|
this.setDynValue = this.initStatus = false;
|
|
3828
3828
|
this.isSelectAll = false;
|
|
3829
|
+
this.selectAllEventEle = [];
|
|
3829
3830
|
this.searchWrapper = this.createElement('span', { className: SEARCHBOX_WRAPPER + ' ' + ((this.mode === 'Box') ? BOX_ELEMENT : '') });
|
|
3830
3831
|
this.viewWrapper = this.createElement('span', { className: DELIMITER_VIEW + ' ' + DELIMITER_WRAPPER, styles: 'display:none;' });
|
|
3831
3832
|
this.overAllClear = this.createElement('span', {
|
package/GitLeaksReport.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[]
|
package/gitleaks-ci/gitleaks
DELETED
|
Binary file
|
package/gitleaks-ci.tar.gz
DELETED
|
Binary file
|