@syncfusion/ej2-lists 20.3.51 → 20.4.38
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 +16 -1
- package/CHANGELOG.md +0 -10
- package/README.md +1 -1
- package/dist/ej2-lists.min.js +10 -1
- package/dist/ej2-lists.umd.min.js +10 -1
- package/dist/ej2-lists.umd.min.js.map +1 -1
- package/dist/es6/ej2-lists.es2015.js +6 -2
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +6 -2
- package/dist/es6/ej2-lists.es5.js.map +1 -1
- package/dist/global/ej2-lists.min.js +10 -1
- package/dist/global/ej2-lists.min.js.map +1 -1
- package/dist/global/index.d.ts +9 -0
- package/package.json +89 -89
- package/src/common/list-base.js +3 -0
- package/src/list-view/list-view-model.d.ts +3 -3
- package/src/list-view/list-view.d.ts +3 -3
- package/src/list-view/list-view.js +3 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* filename: index.d.ts
|
|
3
|
+
* version : 20.4.38
|
|
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
|
+
*/
|
|
1
10
|
import * as _lists from '@syncfusion/ej2-lists';
|
|
2
11
|
|
|
3
12
|
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@18.16.0",
|
|
4
|
+
"_inBundle": false,
|
|
5
|
+
"_integrity": "sha512-2vVIvZdrTlvzkzPkcfSSgx0HvDrjZT+Fzju85Q78v94SxCgESQKB9pMIER10SZo9+VRFJzD6ullLS/tXkpTX6w==",
|
|
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": "https://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-lists/-/ej2-lists-18.16.0.tgz",
|
|
38
|
+
"_shasum": "a3c2f0530cf117e51ef58a081f5494cb034bba87",
|
|
39
|
+
"_spec": "@syncfusion/ej2-lists@*",
|
|
40
|
+
"_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
|
|
41
|
+
"author": {
|
|
42
|
+
"name": "Syncfusion Inc."
|
|
43
|
+
},
|
|
44
|
+
"bundleDependencies": false,
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@syncfusion/ej2-base": "~20.4.38",
|
|
47
|
+
"@syncfusion/ej2-buttons": "~20.4.38",
|
|
48
|
+
"@syncfusion/ej2-data": "~20.4.38"
|
|
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.4.38",
|
|
89
|
+
"sideEffects": false
|
|
90
|
+
}
|
package/src/common/list-base.js
CHANGED
|
@@ -280,6 +280,9 @@ export var ListBase;
|
|
|
280
280
|
li = generateLI(createElement, curItem, fieldData, fields, curOpt.itemClass, options, componentInstance);
|
|
281
281
|
li.classList.add(cssClass.level + '-' + ariaAttributes.level);
|
|
282
282
|
li.setAttribute('aria-level', ariaAttributes.level.toString());
|
|
283
|
+
if (ariaAttributes.groupItemRole == 'presentation') {
|
|
284
|
+
li.removeAttribute('aria-level');
|
|
285
|
+
}
|
|
283
286
|
anchorElement = li.querySelector('.' + cssClass.anchorWrap);
|
|
284
287
|
// eslint-disable-next-line no-prototype-builtins
|
|
285
288
|
if (fieldData.hasOwnProperty(fields.tooltip)) {
|
|
@@ -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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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
|
+
|
|
338
338
|
*/
|
|
339
339
|
groupTemplate: string;
|
|
340
340
|
/**
|
|
@@ -420,8 +420,8 @@ var ListView = /** @class */ (function (_super) {
|
|
|
420
420
|
headerTemplate: this.headerTemplate,
|
|
421
421
|
groupTemplate: this.groupTemplate, expandCollapse: true, listClass: '',
|
|
422
422
|
ariaAttributes: {
|
|
423
|
-
itemRole: '
|
|
424
|
-
groupItemRole: '
|
|
423
|
+
itemRole: 'listitem', listRole: 'group', itemText: '',
|
|
424
|
+
groupItemRole: 'presentation', wrapperRole: 'presentation'
|
|
425
425
|
},
|
|
426
426
|
// eslint-disable-next-line
|
|
427
427
|
fields: (this.fields.properties),
|
|
@@ -479,6 +479,7 @@ var ListView = /** @class */ (function (_super) {
|
|
|
479
479
|
this.checkInternally(args, checkboxElement);
|
|
480
480
|
}
|
|
481
481
|
checkboxElement.setAttribute('aria-checked', frameElement_1.classList.contains(classNames.checked) ? 'true' : 'false');
|
|
482
|
+
checkboxElement.setAttribute('aria-label', 'checkbox');
|
|
482
483
|
if (this.checkBoxPosition === 'Left') {
|
|
483
484
|
checkboxElement.classList.add(classNames.checkboxLeft);
|
|
484
485
|
args.item.firstElementChild.classList.add(classNames.checkboxLeft);
|