@syncfusion/ej2-dropdowns 25.1.39 → 25.1.40
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/.eslintrc.json +260 -0
- 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 +50 -17
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +53 -17
- 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 +7 -7
- package/src/combo-box/combo-box.js +1 -1
- package/src/list-box/list-box.js +52 -16
- package/tslint.json +111 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 25.1.
|
|
3
|
+
* version : 25.1.40
|
|
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@25.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@25.1.39",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-je9KBRXAhBy6CRCnSDXedx6YR/DL1utntJyJ4Qv0mBMyNKrQJK9bp7Ibi+xqkD51+YHDi1hpICWyyET7lR7NMA==",
|
|
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-25.1.
|
|
38
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-25.1.39.tgz",
|
|
38
|
+
"_shasum": "7319a3b0eb2a2ece822d01db03ceae81efbdee8b",
|
|
39
39
|
"_spec": "@syncfusion/ej2-dropdowns@*",
|
|
40
40
|
"_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
|
|
41
41
|
"author": {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@syncfusion/ej2-base": "~25.1.35",
|
|
47
47
|
"@syncfusion/ej2-data": "~25.1.35",
|
|
48
|
-
"@syncfusion/ej2-inputs": "~25.1.
|
|
48
|
+
"@syncfusion/ej2-inputs": "~25.1.40",
|
|
49
49
|
"@syncfusion/ej2-lists": "~25.1.39",
|
|
50
|
-
"@syncfusion/ej2-navigations": "~25.1.
|
|
50
|
+
"@syncfusion/ej2-navigations": "~25.1.40",
|
|
51
51
|
"@syncfusion/ej2-notifications": "~25.1.35",
|
|
52
52
|
"@syncfusion/ej2-popups": "~25.1.39"
|
|
53
53
|
},
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"module": "./index.js",
|
|
75
75
|
"name": "@syncfusion/ej2-dropdowns",
|
|
76
76
|
"typings": "index.d.ts",
|
|
77
|
-
"version": "25.1.
|
|
77
|
+
"version": "25.1.40",
|
|
78
78
|
"sideEffects": false,
|
|
79
79
|
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
80
80
|
}
|
|
@@ -375,7 +375,7 @@ var ComboBox = /** @class */ (function (_super) {
|
|
|
375
375
|
}
|
|
376
376
|
};
|
|
377
377
|
ComboBox.prototype.setValue = function (e) {
|
|
378
|
-
if (e && e.type === 'keydown' && e.action === 'enter') {
|
|
378
|
+
if ((e && e.type === 'keydown' && e.action === 'enter') || (e && e.type === 'click')) {
|
|
379
379
|
this.removeFillSelection();
|
|
380
380
|
}
|
|
381
381
|
if (this.autofill && this.getModuleName() === 'combobox' && e && e.type === 'keydown' && e.action !== 'enter') {
|
package/src/list-box/list-box.js
CHANGED
|
@@ -497,12 +497,14 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
497
497
|
else {
|
|
498
498
|
scrollParent = wrapper;
|
|
499
499
|
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
500
|
+
if (scrollParent) {
|
|
501
|
+
boundRect = scrollParent.getBoundingClientRect();
|
|
502
|
+
if ((boundRect.y + scrollParent.offsetHeight) - (event.clientY + scrollMoved) < 1) {
|
|
503
|
+
this.timer = window.setInterval(function () { _this.setScrollDown(scrollParent, scrollHeight, true); }, 70);
|
|
504
|
+
}
|
|
505
|
+
else if ((event.clientY - scrollMoved) - boundRect.y < 1) {
|
|
506
|
+
this.timer = window.setInterval(function () { _this.setScrollDown(scrollParent, scrollHeight, false); }, 70);
|
|
507
|
+
}
|
|
506
508
|
}
|
|
507
509
|
}
|
|
508
510
|
if (args.target === null) {
|
|
@@ -925,6 +927,9 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
925
927
|
if (this.listData.length === 0) {
|
|
926
928
|
this.l10nUpdate();
|
|
927
929
|
}
|
|
930
|
+
if (this.listData.length !== this.sortedData.length) {
|
|
931
|
+
this.sortedData = this.listData;
|
|
932
|
+
}
|
|
928
933
|
this.value = [];
|
|
929
934
|
this.updateToolBarState();
|
|
930
935
|
};
|
|
@@ -1647,6 +1652,9 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1647
1652
|
var jsonData = [].slice.call(tListBox.jsonData);
|
|
1648
1653
|
var isRefresh = tListBox.sortOrder !== 'None' || (tListBox.selectionSettings.showCheckbox !==
|
|
1649
1654
|
fListBox.selectionSettings.showCheckbox) || tListBox.fields.groupBy || tListBox.itemTemplate || fListBox.itemTemplate;
|
|
1655
|
+
var tempLiColl = [];
|
|
1656
|
+
var tempData = [];
|
|
1657
|
+
var flistboxarray = [];
|
|
1650
1658
|
this.removeSelected(fListBox, fListBox.getSelectedItems());
|
|
1651
1659
|
var tempItems = [].slice.call(fListBox.listData);
|
|
1652
1660
|
var localDataArgs = { cancel: false, items: tempItems, eventName: this.toolbarAction };
|
|
@@ -1666,23 +1674,43 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1666
1674
|
fListBox.ulElement.removeChild(noRecElem);
|
|
1667
1675
|
}
|
|
1668
1676
|
}
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1677
|
+
if (fListBox.listData.length > 0) {
|
|
1678
|
+
// eslint-disable-next-line prefer-spread
|
|
1679
|
+
flistboxarray = Array.apply(null, { length: fListBox.ulElement.childElementCount }).map(Number.call, Number);
|
|
1680
|
+
}
|
|
1681
|
+
var _loop_3 = function (i) {
|
|
1682
|
+
if (fListBox.ulElement.childNodes[i].classList.contains('e-disabled')) {
|
|
1683
|
+
flistboxarray = flistboxarray.filter(function (item) { return item !== i; });
|
|
1684
|
+
tempLiColl.push(fListBox.ulElement.childNodes[i]);
|
|
1685
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1686
|
+
tempData.push(fListBox.listData[i]);
|
|
1687
|
+
}
|
|
1688
|
+
};
|
|
1689
|
+
for (var i = 0; i < fListBox.ulElement.childElementCount; i++) {
|
|
1690
|
+
_loop_3(i);
|
|
1691
|
+
}
|
|
1692
|
+
moveTo(fListBox.ulElement, tListBox.ulElement, flistboxarray, index);
|
|
1672
1693
|
this.trigger('actionComplete', { items: tempItems, eventName: this.toolbarAction });
|
|
1673
1694
|
if (isKey) {
|
|
1674
1695
|
this.list.focus();
|
|
1675
1696
|
}
|
|
1676
1697
|
index = (index) ? index : listData.length;
|
|
1677
|
-
for (var i = 0; i <
|
|
1678
|
-
listData.splice(index + i, 0, fListBox.listData[i]);
|
|
1698
|
+
for (var i = 0; i < flistboxarray.length; i++) {
|
|
1699
|
+
listData.splice(index + i, 0, fListBox.listData[flistboxarray[i]]);
|
|
1679
1700
|
}
|
|
1680
|
-
for (var i = 0; i <
|
|
1681
|
-
jsonData.splice(index + i, 0, fListBox.jsonData[i]);
|
|
1701
|
+
for (var i = 0; i < flistboxarray.length; i++) {
|
|
1702
|
+
jsonData.splice(index + i, 0, fListBox.jsonData[flistboxarray[i]]);
|
|
1703
|
+
}
|
|
1704
|
+
var fliCollections = [];
|
|
1705
|
+
if (tempLiColl.length > 0) {
|
|
1706
|
+
fListBox.liCollections = tempLiColl;
|
|
1707
|
+
fliCollections = [].slice.call(fListBox.liCollections);
|
|
1708
|
+
}
|
|
1709
|
+
else {
|
|
1710
|
+
fliCollections = [].slice.call(fListBox.liCollections);
|
|
1711
|
+
fListBox.liCollections = [];
|
|
1682
1712
|
}
|
|
1683
|
-
var fliCollections = [].slice.call(fListBox.liCollections);
|
|
1684
1713
|
var tliCollections = [].slice.call(tListBox.liCollections);
|
|
1685
|
-
fListBox.liCollections = [];
|
|
1686
1714
|
if (index) {
|
|
1687
1715
|
var toColl = tliCollections.splice(0, index);
|
|
1688
1716
|
tListBox.liCollections = toColl.concat(fliCollections).concat(tliCollections);
|
|
@@ -1702,7 +1730,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1702
1730
|
}
|
|
1703
1731
|
tListBox.listData = listData;
|
|
1704
1732
|
if (fListBox.listData.length === fListBox.jsonData.length) {
|
|
1705
|
-
fListBox.listData = fListBox.sortedData = fListBox.jsonData =
|
|
1733
|
+
fListBox.listData = fListBox.sortedData = fListBox.jsonData = tempData;
|
|
1706
1734
|
}
|
|
1707
1735
|
else if (fListBox.allowFiltering) {
|
|
1708
1736
|
for (var i = 0; i < fListBox.listData.length; i++) {
|
|
@@ -1723,6 +1751,11 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1723
1751
|
tListBox.sortedData = listData;
|
|
1724
1752
|
}
|
|
1725
1753
|
fListBox.updateSelectedOptions();
|
|
1754
|
+
if (tempLiColl.length > 0) {
|
|
1755
|
+
var wrap = this.list.parentElement.getElementsByClassName('e-listbox-tool')[0];
|
|
1756
|
+
var btn = wrap.querySelector('[data-value="' + this.toolbarAction + '"]');
|
|
1757
|
+
btn.disabled = true;
|
|
1758
|
+
}
|
|
1726
1759
|
if (fListBox.listData.length === 0) {
|
|
1727
1760
|
fListBox.l10nUpdate();
|
|
1728
1761
|
}
|
|
@@ -1943,6 +1976,9 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1943
1976
|
if (!args.cancel && !_this.isCustomFiltering && !args.preventDefaultAction) {
|
|
1944
1977
|
_this.inputString = _this.filterInput.value;
|
|
1945
1978
|
_this.filteringAction(_this.jsonData, new Query(), _this.fields);
|
|
1979
|
+
if (_this.toolbarSettings.items.length > 0) {
|
|
1980
|
+
_this.updateToolBarState();
|
|
1981
|
+
}
|
|
1946
1982
|
}
|
|
1947
1983
|
if (!_this.isFiltered && !_this.isCustomFiltering && !args.preventDefaultAction) {
|
|
1948
1984
|
_this.dataUpdater(_this.jsonData, new Query(), _this.fields);
|
package/tslint.json
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"rules": {
|
|
3
|
+
"chai-vague-errors": true,
|
|
4
|
+
"use-isnan": true,
|
|
5
|
+
"missing-jsdoc": true,
|
|
6
|
+
"missing-optional-annotation": true,
|
|
7
|
+
"no-backbone-get-set-outside-model": true,
|
|
8
|
+
"no-banned-terms": true,
|
|
9
|
+
"no-constant-condition": true,
|
|
10
|
+
"no-control-regex": true,
|
|
11
|
+
"no-cookies": true,
|
|
12
|
+
"no-delete-expression": true,
|
|
13
|
+
"no-document-write": true,
|
|
14
|
+
"no-document-domain": true,
|
|
15
|
+
"no-disable-auto-sanitization": true,
|
|
16
|
+
"no-duplicate-case": true,
|
|
17
|
+
"no-duplicate-parameter-names": true,
|
|
18
|
+
"no-empty-interfaces": true,
|
|
19
|
+
"no-exec-script": true,
|
|
20
|
+
"no-function-constructor-with-string-args": true,
|
|
21
|
+
"no-function-expression": true,
|
|
22
|
+
"no-invalid-regexp": true,
|
|
23
|
+
"no-for-in": true,
|
|
24
|
+
"member-access": true,
|
|
25
|
+
"no-multiline-string": true,
|
|
26
|
+
"no-multiple-var-decl": true,
|
|
27
|
+
"no-unnecessary-bind": true,
|
|
28
|
+
"no-unnecessary-semicolons": true,
|
|
29
|
+
"no-octal-literal": true,
|
|
30
|
+
"no-regex-spaces": true,
|
|
31
|
+
"no-sparse-arrays": true,
|
|
32
|
+
"no-string-based-set-immediate": true,
|
|
33
|
+
"no-string-based-set-interval": true,
|
|
34
|
+
"no-unused-imports": true,
|
|
35
|
+
"no-with-statement": true,
|
|
36
|
+
"prefer-array-literal": true,
|
|
37
|
+
"promise-must-complete": false,
|
|
38
|
+
"react-no-dangerous-html": true,
|
|
39
|
+
"use-named-parameter": true,
|
|
40
|
+
"valid-typeof": true,
|
|
41
|
+
"max-func-body-length": [true, 100, {
|
|
42
|
+
"ignore-parameters-to-function-regex": "describe"
|
|
43
|
+
}],
|
|
44
|
+
"class-name": true,
|
|
45
|
+
"curly": true,
|
|
46
|
+
"eofline": false,
|
|
47
|
+
"forin": true,
|
|
48
|
+
"indent": [
|
|
49
|
+
true,
|
|
50
|
+
"spaces"
|
|
51
|
+
],
|
|
52
|
+
"label-position": true,
|
|
53
|
+
"max-line-length": [true, 140],
|
|
54
|
+
"no-arg": true,
|
|
55
|
+
"no-console": [true,
|
|
56
|
+
"debug",
|
|
57
|
+
"info",
|
|
58
|
+
"log",
|
|
59
|
+
"time",
|
|
60
|
+
"timeEnd",
|
|
61
|
+
"trace"
|
|
62
|
+
],
|
|
63
|
+
"no-construct": true,
|
|
64
|
+
"no-parameter-properties": true,
|
|
65
|
+
"no-debugger": true,
|
|
66
|
+
"no-duplicate-variable": true,
|
|
67
|
+
"no-empty": true,
|
|
68
|
+
"no-eval": true,
|
|
69
|
+
"no-string-literal": true,
|
|
70
|
+
"no-switch-case-fall-through": true,
|
|
71
|
+
"trailing-comma": true,
|
|
72
|
+
"no-trailing-whitespace": true,
|
|
73
|
+
"no-unused-expression": true,
|
|
74
|
+
"no-use-before-declare": false,
|
|
75
|
+
"no-var-requires": true,
|
|
76
|
+
"one-line": [true,
|
|
77
|
+
"check-open-brace",
|
|
78
|
+
"check-catch",
|
|
79
|
+
"check-else",
|
|
80
|
+
"check-whitespace"
|
|
81
|
+
],
|
|
82
|
+
"no-any": true,
|
|
83
|
+
"no-conditional-assignment": true,
|
|
84
|
+
"no-angle-bracket-type-assertion": false,
|
|
85
|
+
"align": [true, "parameters", "arguments", "statements"],
|
|
86
|
+
"no-empty-line-after-opening-brace": false,
|
|
87
|
+
"typedef-whitespace": [false],
|
|
88
|
+
"ban": true,
|
|
89
|
+
"quotemark": [true, "single"],
|
|
90
|
+
"semicolon": true,
|
|
91
|
+
"triple-equals": [true, "allow-null-check"],
|
|
92
|
+
"typedef": [true,
|
|
93
|
+
"call-signature",
|
|
94
|
+
"parameter",
|
|
95
|
+
"property-declaration",
|
|
96
|
+
"variable-declaration",
|
|
97
|
+
"arrow-parameter",
|
|
98
|
+
"member-variable-declaration"],
|
|
99
|
+
"variable-name": true,
|
|
100
|
+
"whitespace": [true,
|
|
101
|
+
"check-branch",
|
|
102
|
+
"check-decl",
|
|
103
|
+
"check-operator",
|
|
104
|
+
"check-separator",
|
|
105
|
+
"check-type"
|
|
106
|
+
],
|
|
107
|
+
"jsdoc-format": true,
|
|
108
|
+
"no-var-keyword": true,
|
|
109
|
+
"radix": true
|
|
110
|
+
}
|
|
111
|
+
}
|