@syncfusion/ej2-dropdowns 20.4.38 → 20.4.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 +259 -0
- package/CHANGELOG.md +23 -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 +15 -4
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +14 -3
- 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 +13 -12
- package/src/drop-down-tree/drop-down-tree.js +3 -0
- package/src/list-box/list-box-model.d.ts +6 -6
- package/src/list-box/list-box.js +11 -3
- 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 : 20.4.
|
|
3
|
+
* version : 20.4.40
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-dropdowns@20.4.38",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-rAiQm0Rcd5vCy3J2y8nEDrU0uB+utV3odQhDB2dfiSB3n9XOjhhojtBUZ9q0dv4DM9/Y5ouMdaz7H/aK299erw==",
|
|
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-
|
|
37
|
-
"_shasum": "
|
|
36
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-dropdowns/-/ej2-dropdowns-20.4.38.tgz",
|
|
37
|
+
"_shasum": "4be33a2afcb91461e4a7ccf53d2db9364f655411",
|
|
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.
|
|
46
|
-
"@syncfusion/ej2-data": "~20.4.
|
|
47
|
-
"@syncfusion/ej2-inputs": "~20.4.
|
|
48
|
-
"@syncfusion/ej2-lists": "~20.4.
|
|
49
|
-
"@syncfusion/ej2-navigations": "~20.4.
|
|
50
|
-
"@syncfusion/ej2-popups": "~20.4.
|
|
45
|
+
"@syncfusion/ej2-base": "~20.4.40",
|
|
46
|
+
"@syncfusion/ej2-data": "~20.4.40",
|
|
47
|
+
"@syncfusion/ej2-inputs": "~20.4.40",
|
|
48
|
+
"@syncfusion/ej2-lists": "~20.4.40",
|
|
49
|
+
"@syncfusion/ej2-navigations": "~20.4.40",
|
|
50
|
+
"@syncfusion/ej2-popups": "~20.4.40"
|
|
51
51
|
},
|
|
52
52
|
"deprecated": false,
|
|
53
53
|
"description": "Essential JS 2 DropDown Components",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"module": "./index.js",
|
|
73
73
|
"name": "@syncfusion/ej2-dropdowns",
|
|
74
74
|
"typings": "index.d.ts",
|
|
75
|
-
"version": "20.4.
|
|
76
|
-
"sideEffects": false
|
|
75
|
+
"version": "20.4.40",
|
|
76
|
+
"sideEffects": false,
|
|
77
|
+
"homepage": "https://www.syncfusion.com/javascript-ui-controls"
|
|
77
78
|
}
|
|
@@ -1684,6 +1684,9 @@ var DropDownTree = /** @class */ (function (_super) {
|
|
|
1684
1684
|
}
|
|
1685
1685
|
var eventArgs = { data: args.data };
|
|
1686
1686
|
this.trigger('dataBound', eventArgs);
|
|
1687
|
+
if (this.filterObj === null) {
|
|
1688
|
+
this.isFilteredData = false;
|
|
1689
|
+
}
|
|
1687
1690
|
if (this.isFilteredData) {
|
|
1688
1691
|
this.treeObj.expandAll();
|
|
1689
1692
|
}
|
|
@@ -102,13 +102,13 @@ export interface ListBoxModel extends DropDownBaseModel{
|
|
|
102
102
|
enabled?: boolean;
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
105
|
+
* Enable or disable persisting component's state between page reloads.
|
|
106
|
+
* If enabled, following list of states will be persisted.
|
|
107
|
+
* 1. value
|
|
108
|
+
*
|
|
109
|
+
* @default false
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
*/
|
|
112
112
|
enablePersistence?: boolean;
|
|
113
113
|
|
|
114
114
|
/**
|
package/src/list-box/list-box.js
CHANGED
|
@@ -615,6 +615,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
615
615
|
dragArgs = extend(dragArgs, { destination: dragArgs1 });
|
|
616
616
|
}
|
|
617
617
|
this.trigger('drop', dragArgs);
|
|
618
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
618
619
|
var liCollElem = dragArgs.elements;
|
|
619
620
|
if (liCollElem.length) {
|
|
620
621
|
for (var i = 0; i < liCollElem.length; i++) {
|
|
@@ -1512,7 +1513,7 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1512
1513
|
var isRefresh = tListBox.sortOrder !== 'None' || (tListBox.selectionSettings.showCheckbox !==
|
|
1513
1514
|
fListBox.selectionSettings.showCheckbox) || tListBox.fields.groupBy || tListBox.itemTemplate || fListBox.itemTemplate;
|
|
1514
1515
|
this.removeSelected(fListBox, fListBox.getSelectedItems());
|
|
1515
|
-
var tempItems = [].slice.call(fListBox.
|
|
1516
|
+
var tempItems = [].slice.call(fListBox.listData);
|
|
1516
1517
|
var localDataArgs = { cancel: false, items: tempItems, eventName: this.toolbarAction };
|
|
1517
1518
|
fListBox.trigger('actionBegin', localDataArgs);
|
|
1518
1519
|
if (localDataArgs.cancel) {
|
|
@@ -1557,11 +1558,18 @@ var ListBox = /** @class */ (function (_super) {
|
|
|
1557
1558
|
fListBox.value = [];
|
|
1558
1559
|
listData = listData
|
|
1559
1560
|
.filter(function (data) { return data.isHeader !== true; });
|
|
1560
|
-
|
|
1561
|
+
var sortedData = listData.filter(function (val) {
|
|
1562
|
+
return tListBox.jsonData.indexOf(val) === -1;
|
|
1563
|
+
});
|
|
1564
|
+
for (var i = 0; i < sortedData.length; i++) {
|
|
1565
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1566
|
+
tListBox.jsonData.splice(index + i, 0, sortedData[i]);
|
|
1567
|
+
}
|
|
1568
|
+
tListBox.listData = listData;
|
|
1561
1569
|
if (fListBox.listData.length === fListBox.jsonData.length) {
|
|
1562
1570
|
fListBox.listData = fListBox.sortedData = fListBox.jsonData = [];
|
|
1563
1571
|
}
|
|
1564
|
-
else if (
|
|
1572
|
+
else if (fListBox.allowFiltering) {
|
|
1565
1573
|
for (var i = 0; i < fListBox.listData.length; i++) {
|
|
1566
1574
|
for (var j = 0; j < fListBox.jsonData.length; j++) {
|
|
1567
1575
|
if (fListBox.listData[i] === fListBox.jsonData[j]) {
|
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
|
+
}
|