@syncfusion/ej2-lists 20.3.47 → 20.3.51
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 +10 -0
- package/README.md +1 -1
- package/dist/ej2-lists.min.js +1 -10
- package/dist/ej2-lists.umd.min.js +1 -10
- package/dist/ej2-lists.umd.min.js.map +1 -1
- package/dist/es6/ej2-lists.es2015.js +14 -5
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +14 -5
- package/dist/es6/ej2-lists.es5.js.map +1 -1
- package/dist/global/ej2-lists.min.js +1 -10
- package/dist/global/ej2-lists.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +89 -89
- package/src/list-view/list-view-model.d.ts +3 -3
- package/src/list-view/list-view.d.ts +4 -3
- package/src/list-view/list-view.js +10 -5
- package/src/sortable/sortable.js +4 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* filename: index.d.ts
|
|
3
|
-
* version : 20.3.47
|
|
4
|
-
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
|
-
* Use of this code is subject to the terms of our license.
|
|
6
|
-
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
-
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
-
* applicable laws.
|
|
9
|
-
*/
|
|
10
1
|
import * as _lists from '@syncfusion/ej2-lists';
|
|
11
2
|
|
|
12
3
|
export declare namespace ej {
|
package/package.json
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
2
|
+
"_from": "@syncfusion/ej2-lists@*",
|
|
3
|
+
"_id": "@syncfusion/ej2-lists@20.3.47",
|
|
4
|
+
"_inBundle": false,
|
|
5
|
+
"_integrity": "sha512-YfsxlVZSwlmJPLDKEg2X0IdRZJV+4LKeWsENgUchVKQoZDSclRcK6JHte/t81/Dt0s5Wo/ft1/7dXapc/hDyDQ==",
|
|
6
|
+
"_location": "/@syncfusion/ej2-lists",
|
|
7
|
+
"_phantomChildren": {},
|
|
8
|
+
"_requested": {
|
|
9
|
+
"type": "range",
|
|
10
|
+
"registry": true,
|
|
11
|
+
"raw": "@syncfusion/ej2-lists@*",
|
|
12
|
+
"name": "@syncfusion/ej2-lists",
|
|
13
|
+
"escapedName": "@syncfusion%2fej2-lists",
|
|
14
|
+
"scope": "@syncfusion",
|
|
15
|
+
"rawSpec": "*",
|
|
16
|
+
"saveSpec": null,
|
|
17
|
+
"fetchSpec": "*"
|
|
18
|
+
},
|
|
19
|
+
"_requiredBy": [
|
|
20
|
+
"/",
|
|
21
|
+
"/@syncfusion/ej2",
|
|
22
|
+
"/@syncfusion/ej2-angular-lists",
|
|
23
|
+
"/@syncfusion/ej2-calendars",
|
|
24
|
+
"/@syncfusion/ej2-diagrams",
|
|
25
|
+
"/@syncfusion/ej2-dropdowns",
|
|
26
|
+
"/@syncfusion/ej2-filemanager",
|
|
27
|
+
"/@syncfusion/ej2-gantt",
|
|
28
|
+
"/@syncfusion/ej2-grids",
|
|
29
|
+
"/@syncfusion/ej2-inplace-editor",
|
|
30
|
+
"/@syncfusion/ej2-navigations",
|
|
31
|
+
"/@syncfusion/ej2-pdfviewer",
|
|
32
|
+
"/@syncfusion/ej2-pivotview",
|
|
33
|
+
"/@syncfusion/ej2-react-lists",
|
|
34
|
+
"/@syncfusion/ej2-schedule",
|
|
35
|
+
"/@syncfusion/ej2-vue-lists"
|
|
36
|
+
],
|
|
37
|
+
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-lists/-/ej2-lists-20.3.47.tgz",
|
|
38
|
+
"_shasum": "3c2ab01c399234ebc5a481d88296a08b991f7591",
|
|
39
|
+
"_spec": "@syncfusion/ej2-lists@*",
|
|
40
|
+
"_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
|
|
41
|
+
"author": {
|
|
42
|
+
"name": "Syncfusion Inc."
|
|
43
|
+
},
|
|
44
|
+
"bundleDependencies": false,
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@syncfusion/ej2-base": "~20.3.50",
|
|
47
|
+
"@syncfusion/ej2-buttons": "~20.3.50",
|
|
48
|
+
"@syncfusion/ej2-data": "~20.3.50"
|
|
49
|
+
},
|
|
50
|
+
"deprecated": false,
|
|
51
|
+
"description": "The listview control allows you to select an item or multiple items from a list-like interface and represents the data in interactive hierarchical structure across different layouts or views.",
|
|
52
|
+
"devDependencies": {},
|
|
53
|
+
"es2015": "./dist/es6/ej2-lists.es5.js",
|
|
54
|
+
"keywords": [
|
|
55
|
+
"ej2",
|
|
56
|
+
"Syncfusion",
|
|
57
|
+
"web components",
|
|
58
|
+
"virtualization",
|
|
59
|
+
"group list",
|
|
60
|
+
"check list",
|
|
61
|
+
"listview with checkbox",
|
|
62
|
+
"listview template",
|
|
63
|
+
"material list",
|
|
64
|
+
"ui listview",
|
|
65
|
+
"remote listview",
|
|
66
|
+
"nested view",
|
|
67
|
+
"data list",
|
|
68
|
+
"infinite list",
|
|
69
|
+
"sort",
|
|
70
|
+
"checkbox",
|
|
71
|
+
"todo",
|
|
72
|
+
"list widget",
|
|
73
|
+
"list component",
|
|
74
|
+
"mobile list",
|
|
75
|
+
"list gestures",
|
|
76
|
+
"es6 list",
|
|
77
|
+
"dynamic list"
|
|
78
|
+
],
|
|
79
|
+
"license": "SEE LICENSE IN license",
|
|
80
|
+
"main": "./dist/ej2-lists.umd.min.js",
|
|
81
|
+
"module": "./index.js",
|
|
82
|
+
"name": "@syncfusion/ej2-lists",
|
|
83
|
+
"repository": {
|
|
84
|
+
"type": "git",
|
|
85
|
+
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls/tree/master/controls/lists"
|
|
86
|
+
},
|
|
87
|
+
"typings": "index.d.ts",
|
|
88
|
+
"version": "20.3.51",
|
|
89
|
+
"sideEffects": false
|
|
90
|
+
}
|
|
@@ -250,7 +250,7 @@ export interface ListViewModel extends ComponentModel{
|
|
|
250
250
|
* {% codeBlock src='listview/template/index.md' %}{% endcodeBlock %}
|
|
251
251
|
*
|
|
252
252
|
* @default null
|
|
253
|
-
|
|
253
|
+
* @deprecated
|
|
254
254
|
*/
|
|
255
255
|
template?: string;
|
|
256
256
|
|
|
@@ -260,7 +260,7 @@ export interface ListViewModel extends ComponentModel{
|
|
|
260
260
|
* {% codeBlock src="listview/headerTemplate/index.md" %}{% endcodeBlock %}
|
|
261
261
|
*
|
|
262
262
|
* @default null
|
|
263
|
-
|
|
263
|
+
* @deprecated
|
|
264
264
|
*/
|
|
265
265
|
headerTemplate?: string;
|
|
266
266
|
|
|
@@ -270,7 +270,7 @@ export interface ListViewModel extends ComponentModel{
|
|
|
270
270
|
* {% codeBlock src="listview/groupTemplate/index.md" %}{% endcodeBlock %}
|
|
271
271
|
*
|
|
272
272
|
* @default null
|
|
273
|
-
|
|
273
|
+
* @deprecated
|
|
274
274
|
*/
|
|
275
275
|
groupTemplate?: string;
|
|
276
276
|
|
|
@@ -316,7 +316,7 @@ export declare class ListView extends Component<HTMLElement> implements INotifyP
|
|
|
316
316
|
* {% codeBlock src='listview/template/index.md' %}{% endcodeBlock %}
|
|
317
317
|
*
|
|
318
318
|
* @default null
|
|
319
|
-
|
|
319
|
+
* @deprecated
|
|
320
320
|
*/
|
|
321
321
|
template: string;
|
|
322
322
|
/**
|
|
@@ -325,7 +325,7 @@ export declare class ListView extends Component<HTMLElement> implements INotifyP
|
|
|
325
325
|
* {% codeBlock src="listview/headerTemplate/index.md" %}{% endcodeBlock %}
|
|
326
326
|
*
|
|
327
327
|
* @default null
|
|
328
|
-
|
|
328
|
+
* @deprecated
|
|
329
329
|
*/
|
|
330
330
|
headerTemplate: string;
|
|
331
331
|
/**
|
|
@@ -334,7 +334,7 @@ export declare class ListView extends Component<HTMLElement> implements INotifyP
|
|
|
334
334
|
* {% codeBlock src="listview/groupTemplate/index.md" %}{% endcodeBlock %}
|
|
335
335
|
*
|
|
336
336
|
* @default null
|
|
337
|
-
|
|
337
|
+
* @deprecated
|
|
338
338
|
*/
|
|
339
339
|
groupTemplate: string;
|
|
340
340
|
/**
|
|
@@ -417,6 +417,7 @@ export declare class ListView extends Component<HTMLElement> implements INotifyP
|
|
|
417
417
|
* Refresh the height of the list item only on enabling the virtualization property.
|
|
418
418
|
*/
|
|
419
419
|
refreshItemHeight(): void;
|
|
420
|
+
targetElement: any;
|
|
420
421
|
private clickHandler;
|
|
421
422
|
private removeElement;
|
|
422
423
|
private hoverHandler;
|
|
@@ -624,6 +624,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
624
624
|
};
|
|
625
625
|
ListView.prototype.clickHandler = function (e) {
|
|
626
626
|
var target = e.target;
|
|
627
|
+
this.targetElement = target;
|
|
627
628
|
var classList = target.classList;
|
|
628
629
|
var closestElement;
|
|
629
630
|
if (classList.contains(classNames.backIcon) || classList.contains(classNames.headerText)) {
|
|
@@ -671,10 +672,18 @@ var ListView = /** @class */ (function (_super) {
|
|
|
671
672
|
}
|
|
672
673
|
else {
|
|
673
674
|
this.setCheckboxLI(li, e);
|
|
675
|
+
if ((target.nodeName == "INPUT") || (target.nodeName == "TEXTAREA")) {
|
|
676
|
+
target.classList.add('e-focused');
|
|
677
|
+
this.targetElement = target;
|
|
678
|
+
}
|
|
674
679
|
}
|
|
675
680
|
}
|
|
676
681
|
else {
|
|
677
682
|
this.setSelectLI(li, e);
|
|
683
|
+
if ((target.nodeName == "INPUT") || (target.nodeName == "TEXTAREA")) {
|
|
684
|
+
target.classList.add('e-focused');
|
|
685
|
+
this.targetElement = target;
|
|
686
|
+
}
|
|
678
687
|
}
|
|
679
688
|
closestElement = closest(e.target, 'li');
|
|
680
689
|
if (!isNullOrUndefined(closestElement)) {
|
|
@@ -902,11 +911,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
902
911
|
this.back();
|
|
903
912
|
break;
|
|
904
913
|
case 32:
|
|
905
|
-
|
|
906
|
-
if (!isNullOrUndefined(this.curUL)) {
|
|
907
|
-
textAreaFocus = this.curUL.querySelector('textarea') || this.curUL.querySelector('input');
|
|
908
|
-
}
|
|
909
|
-
if (isNullOrUndefined(textAreaFocus) || !(textAreaFocus.classList.contains('e-focused'))) {
|
|
914
|
+
if (isNullOrUndefined(this.targetElement) || !(this.targetElement.classList.contains('e-focused'))) {
|
|
910
915
|
this.spaceKeyHandler(e);
|
|
911
916
|
}
|
|
912
917
|
break;
|
package/src/sortable/sortable.js
CHANGED
|
@@ -119,6 +119,10 @@ var Sortable = /** @class */ (function (_super) {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
+
else if (_this.curTarget !== _this.target && _this.scope && _this.curTarget !== target && !isNullOrUndefined(newInst.placeHolder)) {
|
|
123
|
+
remove(_this.getSortableInstance(_this.curTarget).placeHolderElement);
|
|
124
|
+
_this.curTarget = _this.target;
|
|
125
|
+
}
|
|
122
126
|
newInst = _this.getSortableInstance(_this.curTarget);
|
|
123
127
|
if (isNullOrUndefined(target) && e.target !== newInst.placeHolderElement) {
|
|
124
128
|
if (_this.isPlaceHolderPresent(newInst)) {
|