@syncfusion/ej2-angular-lists 34.2.8 → 35.1.37
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 +0 -18
- package/fesm2022/syncfusion-ej2-angular-lists.mjs +131 -0
- package/fesm2022/syncfusion-ej2-angular-lists.mjs.map +1 -0
- package/package.json +9 -16
- package/schematics/collection.json +39 -10
- package/schematics/generators/listview-checklist/index.d.ts +3 -0
- package/schematics/generators/listview-checklist/index.js +5 -0
- package/schematics/generators/listview-checklist/index.ts +8 -0
- package/schematics/generators/listview-checklist/sample-details.d.ts +5 -0
- package/schematics/generators/listview-checklist/sample-details.js +5 -0
- package/schematics/generators/listview-checklist/sample-details.ts +5 -0
- package/schematics/generators/listview-checklist/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +49 -0
- package/schematics/generators/listview-checklist/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +12 -0
- package/schematics/generators/listview-checklist/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +84 -0
- package/schematics/generators/listview-checklist/schema.d.ts +3 -0
- package/schematics/generators/listview-checklist/schema.js +1 -0
- package/schematics/generators/listview-checklist/schema.json +125 -0
- package/schematics/generators/listview-checklist/schema.ts +3 -0
- package/schematics/generators/listview-default/index.d.ts +3 -0
- package/schematics/generators/listview-default/index.js +5 -0
- package/schematics/generators/listview-default/index.ts +8 -0
- package/schematics/generators/listview-default/sample-details.d.ts +5 -0
- package/schematics/generators/listview-default/sample-details.js +5 -0
- package/schematics/generators/listview-default/sample-details.ts +5 -0
- package/schematics/generators/listview-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +53 -0
- package/schematics/generators/listview-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +12 -0
- package/schematics/generators/listview-default/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +84 -0
- package/schematics/generators/listview-default/schema.d.ts +3 -0
- package/schematics/generators/listview-default/schema.js +1 -0
- package/schematics/generators/listview-default/schema.json +125 -0
- package/schematics/generators/listview-default/schema.ts +3 -0
- package/schematics/generators/listview-nestedlist/images/__path__/__name@dasherize__/file_icons.png +0 -0
- package/schematics/generators/listview-nestedlist/index.d.ts +3 -0
- package/schematics/generators/listview-nestedlist/index.js +5 -0
- package/schematics/generators/listview-nestedlist/index.ts +8 -0
- package/schematics/generators/listview-nestedlist/sample-details.d.ts +5 -0
- package/schematics/generators/listview-nestedlist/sample-details.js +5 -0
- package/schematics/generators/listview-nestedlist/sample-details.ts +5 -0
- package/schematics/generators/listview-nestedlist/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +70 -0
- package/schematics/generators/listview-nestedlist/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +5 -0
- package/schematics/generators/listview-nestedlist/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +84 -0
- package/schematics/generators/listview-nestedlist/schema.d.ts +3 -0
- package/schematics/generators/listview-nestedlist/schema.js +1 -0
- package/schematics/generators/listview-nestedlist/schema.json +125 -0
- package/schematics/generators/listview-nestedlist/schema.ts +3 -0
- package/schematics/generators/listview-remotelist/index.d.ts +3 -0
- package/schematics/generators/listview-remotelist/index.js +5 -0
- package/schematics/generators/listview-remotelist/index.ts +8 -0
- package/schematics/generators/listview-remotelist/sample-details.d.ts +5 -0
- package/schematics/generators/listview-remotelist/sample-details.js +5 -0
- package/schematics/generators/listview-remotelist/sample-details.ts +5 -0
- package/schematics/generators/listview-remotelist/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +56 -0
- package/schematics/generators/listview-remotelist/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +5 -0
- package/schematics/generators/listview-remotelist/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +31 -0
- package/schematics/generators/listview-remotelist/schema.d.ts +3 -0
- package/schematics/generators/listview-remotelist/schema.js +1 -0
- package/schematics/generators/listview-remotelist/schema.json +125 -0
- package/schematics/generators/listview-remotelist/schema.ts +3 -0
- package/schematics/generators/listview-template/index.d.ts +3 -0
- package/schematics/generators/listview-template/index.js +5 -0
- package/schematics/generators/listview-template/index.ts +8 -0
- package/schematics/generators/listview-template/sample-details.d.ts +5 -0
- package/schematics/generators/listview-template/sample-details.js +5 -0
- package/schematics/generators/listview-template/sample-details.ts +5 -0
- package/schematics/generators/listview-template/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +169 -0
- package/schematics/generators/listview-template/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +18 -0
- package/schematics/generators/listview-template/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +35 -0
- package/schematics/generators/listview-template/schema.d.ts +3 -0
- package/schematics/generators/listview-template/schema.js +1 -0
- package/schematics/generators/listview-template/schema.json +125 -0
- package/schematics/generators/listview-template/schema.ts +3 -0
- package/schematics/generators/listview-virtualization/images/__path__/__name@dasherize__/albert.png +0 -0
- package/schematics/generators/listview-virtualization/images/__path__/__name@dasherize__/laura.png +0 -0
- package/schematics/generators/listview-virtualization/images/__path__/__name@dasherize__/margaret.png +0 -0
- package/schematics/generators/listview-virtualization/index.d.ts +3 -0
- package/schematics/generators/listview-virtualization/index.js +5 -0
- package/schematics/generators/listview-virtualization/index.ts +8 -0
- package/schematics/generators/listview-virtualization/sample-details.d.ts +5 -0
- package/schematics/generators/listview-virtualization/sample-details.js +5 -0
- package/schematics/generators/listview-virtualization/sample-details.ts +5 -0
- package/schematics/generators/listview-virtualization/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.css +83 -0
- package/schematics/generators/listview-virtualization/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.html +37 -0
- package/schematics/generators/listview-virtualization/samples/__path__/__name@dasherize@if-flat__/__name@dasherize__.component.ts +94 -0
- package/schematics/generators/listview-virtualization/schema.d.ts +3 -0
- package/schematics/generators/listview-virtualization/schema.js +1 -0
- package/schematics/generators/listview-virtualization/schema.json +125 -0
- package/schematics/generators/listview-virtualization/schema.ts +3 -0
- package/schematics/ng-add/index.js +5 -8
- package/schematics/ng-add/index.ts +10 -10
- package/schematics/ng-add/schema.js +1 -2
- package/schematics/ng-add/schema.json +34 -34
- package/schematics/ng-add/schema.ts +30 -30
- package/schematics/tsconfig.json +33 -25
- package/schematics/utils/lib-details.js +4 -6
- package/schematics/utils/lib-details.ts +4 -4
- package/types/syncfusion-ej2-angular-lists.d.ts +58 -0
- package/esm2020/public_api.mjs +0 -2
- package/esm2020/src/index.mjs +0 -5
- package/esm2020/src/list-view/listview-all.module.mjs +0 -29
- package/esm2020/src/list-view/listview.component.mjs +0 -85
- package/esm2020/src/list-view/listview.module.mjs +0 -25
- package/esm2020/syncfusion-ej2-angular-lists.mjs +0 -5
- package/fesm2015/syncfusion-ej2-angular-lists.mjs +0 -137
- package/fesm2015/syncfusion-ej2-angular-lists.mjs.map +0 -1
- package/fesm2020/syncfusion-ej2-angular-lists.mjs +0 -137
- package/fesm2020/syncfusion-ej2-angular-lists.mjs.map +0 -1
- package/public_api.d.ts +0 -1
- package/src/index.d.ts +0 -4
- package/src/list-view/listview-all.module.d.ts +0 -13
- package/src/list-view/listview.component.d.ts +0 -71
- package/src/list-view/listview.module.d.ts +0 -11
- package/styles/bds-lite.css +0 -1
- package/styles/bds-lite.scss +0 -1
- package/styles/bds.css +0 -1
- package/styles/bds.scss +0 -2
- package/styles/bootstrap-dark-lite.css +0 -1
- package/styles/bootstrap-dark-lite.scss +0 -1
- package/styles/bootstrap-dark.css +0 -1
- package/styles/bootstrap-dark.scss +0 -2
- package/styles/bootstrap-lite.css +0 -1
- package/styles/bootstrap-lite.scss +0 -1
- package/styles/bootstrap.css +0 -1
- package/styles/bootstrap.scss +0 -2
- package/styles/bootstrap4-lite.css +0 -1
- package/styles/bootstrap4-lite.scss +0 -1
- package/styles/bootstrap4.css +0 -1
- package/styles/bootstrap4.scss +0 -2
- package/styles/bootstrap5-dark-lite.css +0 -1
- package/styles/bootstrap5-dark-lite.scss +0 -1
- package/styles/bootstrap5-dark.css +0 -1
- package/styles/bootstrap5-dark.scss +0 -2
- package/styles/bootstrap5-lite.css +0 -1
- package/styles/bootstrap5-lite.scss +0 -1
- package/styles/bootstrap5.3-lite.css +0 -1
- package/styles/bootstrap5.3-lite.scss +0 -1
- package/styles/bootstrap5.3.css +0 -1
- package/styles/bootstrap5.3.scss +0 -2
- package/styles/bootstrap5.css +0 -1
- package/styles/bootstrap5.scss +0 -2
- package/styles/fabric-dark-lite.css +0 -1
- package/styles/fabric-dark-lite.scss +0 -1
- package/styles/fabric-dark.css +0 -1
- package/styles/fabric-dark.scss +0 -2
- package/styles/fabric-lite.css +0 -1
- package/styles/fabric-lite.scss +0 -1
- package/styles/fabric.css +0 -1
- package/styles/fabric.scss +0 -2
- package/styles/fluent-dark-lite.css +0 -1
- package/styles/fluent-dark-lite.scss +0 -1
- package/styles/fluent-dark.css +0 -1
- package/styles/fluent-dark.scss +0 -2
- package/styles/fluent-lite.css +0 -1
- package/styles/fluent-lite.scss +0 -1
- package/styles/fluent.css +0 -1
- package/styles/fluent.scss +0 -2
- package/styles/fluent2-lite.css +0 -1
- package/styles/fluent2-lite.scss +0 -1
- package/styles/fluent2.css +0 -1
- package/styles/fluent2.scss +0 -2
- package/styles/highcontrast-light-lite.css +0 -1
- package/styles/highcontrast-light-lite.scss +0 -1
- package/styles/highcontrast-light.css +0 -1
- package/styles/highcontrast-light.scss +0 -2
- package/styles/highcontrast-lite.css +0 -1
- package/styles/highcontrast-lite.scss +0 -1
- package/styles/highcontrast.css +0 -1
- package/styles/highcontrast.scss +0 -2
- package/styles/list-view/bds.css +0 -1
- package/styles/list-view/bds.scss +0 -1
- package/styles/list-view/bootstrap-dark.css +0 -1
- package/styles/list-view/bootstrap-dark.scss +0 -1
- package/styles/list-view/bootstrap.css +0 -1
- package/styles/list-view/bootstrap.scss +0 -1
- package/styles/list-view/bootstrap4.css +0 -1
- package/styles/list-view/bootstrap4.scss +0 -1
- package/styles/list-view/bootstrap5-dark.css +0 -1
- package/styles/list-view/bootstrap5-dark.scss +0 -1
- package/styles/list-view/bootstrap5.3.css +0 -1
- package/styles/list-view/bootstrap5.3.scss +0 -1
- package/styles/list-view/bootstrap5.css +0 -1
- package/styles/list-view/bootstrap5.scss +0 -1
- package/styles/list-view/fabric-dark.css +0 -1
- package/styles/list-view/fabric-dark.scss +0 -1
- package/styles/list-view/fabric.css +0 -1
- package/styles/list-view/fabric.scss +0 -1
- package/styles/list-view/fluent-dark.css +0 -1
- package/styles/list-view/fluent-dark.scss +0 -1
- package/styles/list-view/fluent.css +0 -1
- package/styles/list-view/fluent.scss +0 -1
- package/styles/list-view/fluent2.css +0 -1
- package/styles/list-view/fluent2.scss +0 -1
- package/styles/list-view/highcontrast-light.css +0 -1
- package/styles/list-view/highcontrast-light.scss +0 -1
- package/styles/list-view/highcontrast.css +0 -1
- package/styles/list-view/highcontrast.scss +0 -1
- package/styles/list-view/material-dark.css +0 -1
- package/styles/list-view/material-dark.scss +0 -1
- package/styles/list-view/material.css +0 -1
- package/styles/list-view/material.scss +0 -1
- package/styles/list-view/material3-dark.css +0 -1
- package/styles/list-view/material3-dark.scss +0 -1
- package/styles/list-view/material3.css +0 -1
- package/styles/list-view/material3.scss +0 -1
- package/styles/list-view/tailwind-dark.css +0 -1
- package/styles/list-view/tailwind-dark.scss +0 -1
- package/styles/list-view/tailwind.css +0 -1
- package/styles/list-view/tailwind.scss +0 -1
- package/styles/list-view/tailwind3.css +0 -1
- package/styles/list-view/tailwind3.scss +0 -1
- package/styles/material-dark-lite.css +0 -1
- package/styles/material-dark-lite.scss +0 -1
- package/styles/material-dark.css +0 -1
- package/styles/material-dark.scss +0 -2
- package/styles/material-lite.css +0 -1
- package/styles/material-lite.scss +0 -1
- package/styles/material.css +0 -1
- package/styles/material.scss +0 -2
- package/styles/material3-dark-lite.css +0 -1
- package/styles/material3-dark-lite.scss +0 -1
- package/styles/material3-dark.css +0 -1
- package/styles/material3-dark.scss +0 -2
- package/styles/material3-lite.css +0 -1
- package/styles/material3-lite.scss +0 -1
- package/styles/material3.css +0 -1
- package/styles/material3.scss +0 -2
- package/styles/sortable/bds.css +0 -1
- package/styles/sortable/bds.scss +0 -1
- package/styles/sortable/bootstrap-dark.css +0 -1
- package/styles/sortable/bootstrap-dark.scss +0 -1
- package/styles/sortable/bootstrap.css +0 -1
- package/styles/sortable/bootstrap.scss +0 -1
- package/styles/sortable/bootstrap4.css +0 -1
- package/styles/sortable/bootstrap4.scss +0 -1
- package/styles/sortable/bootstrap5-dark.css +0 -1
- package/styles/sortable/bootstrap5-dark.scss +0 -1
- package/styles/sortable/bootstrap5.3.css +0 -1
- package/styles/sortable/bootstrap5.3.scss +0 -1
- package/styles/sortable/bootstrap5.css +0 -1
- package/styles/sortable/bootstrap5.scss +0 -1
- package/styles/sortable/fabric-dark.css +0 -1
- package/styles/sortable/fabric-dark.scss +0 -1
- package/styles/sortable/fabric.css +0 -1
- package/styles/sortable/fabric.scss +0 -1
- package/styles/sortable/fluent-dark.css +0 -1
- package/styles/sortable/fluent-dark.scss +0 -1
- package/styles/sortable/fluent.css +0 -1
- package/styles/sortable/fluent.scss +0 -1
- package/styles/sortable/fluent2.css +0 -1
- package/styles/sortable/fluent2.scss +0 -1
- package/styles/sortable/highcontrast-light.css +0 -1
- package/styles/sortable/highcontrast-light.scss +0 -1
- package/styles/sortable/highcontrast.css +0 -1
- package/styles/sortable/highcontrast.scss +0 -1
- package/styles/sortable/material-dark.css +0 -1
- package/styles/sortable/material-dark.scss +0 -1
- package/styles/sortable/material.css +0 -1
- package/styles/sortable/material.scss +0 -1
- package/styles/sortable/material3-dark.css +0 -1
- package/styles/sortable/material3-dark.scss +0 -1
- package/styles/sortable/material3.css +0 -1
- package/styles/sortable/material3.scss +0 -1
- package/styles/sortable/tailwind-dark.css +0 -1
- package/styles/sortable/tailwind-dark.scss +0 -1
- package/styles/sortable/tailwind.css +0 -1
- package/styles/sortable/tailwind.scss +0 -1
- package/styles/sortable/tailwind3.css +0 -1
- package/styles/sortable/tailwind3.scss +0 -1
- package/styles/tailwind-dark-lite.css +0 -1
- package/styles/tailwind-dark-lite.scss +0 -1
- package/styles/tailwind-dark.css +0 -1
- package/styles/tailwind-dark.scss +0 -2
- package/styles/tailwind-lite.css +0 -1
- package/styles/tailwind-lite.scss +0 -1
- package/styles/tailwind.css +0 -1
- package/styles/tailwind.scss +0 -2
- package/styles/tailwind3-lite.css +0 -1
- package/styles/tailwind3-lite.scss +0 -1
- package/styles/tailwind3.css +0 -1
- package/styles/tailwind3.scss +0 -2
- package/syncfusion-ej2-angular-lists.d.ts +0 -5
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
import { componentBuilder } from "@syncfusion/ej2-angular-base/schematics";
|
|
3
|
+
import { Schema } from './schema';
|
|
4
|
+
import * as sampleDetails from './sample-details';
|
|
5
|
+
|
|
6
|
+
export default function (options: Schema): Rule {
|
|
7
|
+
return componentBuilder(options, sampleDetails);
|
|
8
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export const componentName: string = 'listview';
|
|
2
|
+
export const sampleName: string = 'virtualization';
|
|
3
|
+
export const diModules: string | null = 'VirtualizationService';
|
|
4
|
+
export const packageName: string = '@syncfusion/ej2-angular-lists';
|
|
5
|
+
export const libModules: string = 'ListViewModule';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
.control-section {
|
|
2
|
+
overflow: auto;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.content-wrapper {
|
|
6
|
+
width: 52%;
|
|
7
|
+
margin: 0 auto;
|
|
8
|
+
min-width: 185px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* ListView position alignment */
|
|
12
|
+
|
|
13
|
+
#ui-list.e-listview {
|
|
14
|
+
margin: auto;
|
|
15
|
+
max-width: 325px;
|
|
16
|
+
line-height: initial;
|
|
17
|
+
border: 1px solid lightgray;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* ListView header alignment */
|
|
21
|
+
|
|
22
|
+
#ui-list.e-listview .e-list-header {
|
|
23
|
+
height: 50px
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
#ui-list.e-listview .e-list-header .e-text {
|
|
27
|
+
line-height: 18px
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* ListView template customization */
|
|
31
|
+
|
|
32
|
+
#ui-list.e-listview .showUI {
|
|
33
|
+
display: flex;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
#ui-list.e-listview .hideUI {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
#ui-list.e-listview .e-list-item {
|
|
41
|
+
padding: 3px 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
#ui-list.e-listview .R {
|
|
45
|
+
background: lightgrey;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
#ui-list.e-listview .M {
|
|
49
|
+
background: pink;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
#ui-list.e-listview .A {
|
|
53
|
+
background: lightgreen;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
#ui-list.e-listview .S {
|
|
57
|
+
background: lightskyblue;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
#ui-list.e-listview .J {
|
|
61
|
+
background: orange;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
#ui-list.e-listview .N {
|
|
65
|
+
background: lightblue;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* ListView theme customization */
|
|
69
|
+
|
|
70
|
+
.highcontrast #ui-list.e-listview .e-list-item,
|
|
71
|
+
.highcontrast #ui-list.e-listview .e-list-header {
|
|
72
|
+
background: rgb(0, 0, 0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.highcontrast #ui-list.e-listview .e-list-item.e-active {
|
|
76
|
+
background: #ffd939;
|
|
77
|
+
color: #000000;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.inline {
|
|
81
|
+
display: inline-block;
|
|
82
|
+
vertical-align: top;
|
|
83
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<div class="col-lg-8 control-section inline">
|
|
2
|
+
<!-- ListView element -->
|
|
3
|
+
<ejs-listview id='ui-list' #listviewInstance [dataSource]='dataSource.data1' [cssClass]='cssClass'
|
|
4
|
+
[enableVirtualization]=true headerTitle='Contacts' [fields]='fields' height=500 width=350 [template]='template'
|
|
5
|
+
(actionComplete)='onActionComplete()' (actionBegin)='onActionBegin()' [showHeader]='true'></ejs-listview>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="col-lg-4 property-section ui-list inline">
|
|
8
|
+
<table id="property" title="Properties">
|
|
9
|
+
<tbody>
|
|
10
|
+
<tr>
|
|
11
|
+
<td style="width: 50%">
|
|
12
|
+
<div class="userselect">Load data</div>
|
|
13
|
+
</td>
|
|
14
|
+
<td style="width: 50%;padding-right: 10px">
|
|
15
|
+
<div>
|
|
16
|
+
<select (change)='onChange($event)'>
|
|
17
|
+
<option>1k</option>
|
|
18
|
+
<option>5k</option>
|
|
19
|
+
<option>10k</option>
|
|
20
|
+
<option>25k</option>
|
|
21
|
+
</select>
|
|
22
|
+
</div>
|
|
23
|
+
</td>
|
|
24
|
+
</tr>
|
|
25
|
+
<tr>
|
|
26
|
+
<td style="width: 50%;padding-top: 30px">
|
|
27
|
+
<div class="userselect">Time taken</div>
|
|
28
|
+
</td>
|
|
29
|
+
<td style="width: 50%;padding-right: 10px;padding-top: 30px;">
|
|
30
|
+
<div style="padding-left: 10px;padding-top: 0">
|
|
31
|
+
<span id="time">0 ms</span>
|
|
32
|
+
</div>
|
|
33
|
+
</td>
|
|
34
|
+
</tr>
|
|
35
|
+
</tbody>
|
|
36
|
+
</table>
|
|
37
|
+
</div>
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ListView Virtualization Sample
|
|
3
|
+
*/
|
|
4
|
+
import { Component, Inject, ViewChild, ViewEncapsulation, OnInit } from '@angular/core';
|
|
5
|
+
import { Browser } from '@syncfusion/ej2-base';
|
|
6
|
+
import { ListView } from '@syncfusion/ej2-lists';
|
|
7
|
+
|
|
8
|
+
@Component({
|
|
9
|
+
selector: '<%=dasherize(selector)%>',
|
|
10
|
+
templateUrl: '<%=dasherize(name)%>.component.html',
|
|
11
|
+
styleUrls: ['<%=dasherize(name)%>.component.css'],
|
|
12
|
+
encapsulation: ViewEncapsulation.None
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
export class <%= classify(name) %>Component implements OnInit {
|
|
16
|
+
@ViewChild('listviewInstance')
|
|
17
|
+
public listviewInstance: ListView;
|
|
18
|
+
public commonData: { [key: string]: string | object }[] = [];
|
|
19
|
+
public dataSource: { [key: string]: { [key: string]: string | object }[] } = {};
|
|
20
|
+
public startTime: Date;
|
|
21
|
+
public endTime: Date;
|
|
22
|
+
public liElement: HTMLElement;
|
|
23
|
+
public cssClass = 'e-list-template';
|
|
24
|
+
|
|
25
|
+
public template: string = '<div class="e-list-wrapper e-list-avatar">' +
|
|
26
|
+
'<span class="e-avatar e-avatar-circle ${icon} ${$imgUrl ? \'hideUI\' : \'showUI\' }">' +
|
|
27
|
+
'${icon}</span> <img class="e-avatar e-avatar-circle ${$imgUrl ? \'showUI\' : \'hideUI\' }" ' +
|
|
28
|
+
'src="${$imgUrl ? $imgUrl : \' \' }" />' +
|
|
29
|
+
'<span class="e-list-content">${name}</span></div>';
|
|
30
|
+
|
|
31
|
+
public ddlDatasource: Object[] = [
|
|
32
|
+
{ value: '1', text: '1k' },
|
|
33
|
+
{ value: '5', text: '5k' },
|
|
34
|
+
{ value: '10', text: '10k' },
|
|
35
|
+
{ value: '25', text: '25k' }
|
|
36
|
+
];
|
|
37
|
+
public ddlFields: Object = { text: 'text', value: 'value' };
|
|
38
|
+
|
|
39
|
+
public fields: Object = { text: 'name' };
|
|
40
|
+
|
|
41
|
+
public ngOnInit() {
|
|
42
|
+
this.commonData = [
|
|
43
|
+
{ name: 'Nancy', icon: 'N', id: '0', },
|
|
44
|
+
{ name: 'Andrew', icon: 'A', id: '1' },
|
|
45
|
+
{ name: 'Janet', icon: 'J', id: '2' },
|
|
46
|
+
{ name: 'Margaret', imgUrl: '/assets/listview/virtualization/margaret.png', id: '3' },
|
|
47
|
+
{ name: 'Steven', icon: 'S', id: '4' },
|
|
48
|
+
{ name: 'Laura', imgUrl: '/assets/listview/virtualization/laura.png', id: '5' },
|
|
49
|
+
{ name: 'Robert', icon: 'R', id: '6' },
|
|
50
|
+
{ name: 'Michael', icon: 'M', id: '7' },
|
|
51
|
+
{ name: 'Albert', imgUrl: '/assets/listview/virtualization/albert.png', id: '8' },
|
|
52
|
+
{ name: 'Nolan', icon: 'N', id: '9' }
|
|
53
|
+
];
|
|
54
|
+
|
|
55
|
+
this.liElement = document.getElementById('ui-list');
|
|
56
|
+
|
|
57
|
+
if (Browser.isDevice) {
|
|
58
|
+
this.liElement.classList.add('ui-mobile');
|
|
59
|
+
}
|
|
60
|
+
let dsArray: ((string | number)[])[] = [[1010, 'data1'], [5010, 'data5'], [10010, 'data10'], [25010, 'data25']];
|
|
61
|
+
for (let i: number; i < dsArray.length; i++) {
|
|
62
|
+
let ds: (string | number)[] = dsArray[i];
|
|
63
|
+
const data: { [key: string]: string | object }[] = this.commonData.slice();
|
|
64
|
+
let index: number;
|
|
65
|
+
let spyIndex: number;
|
|
66
|
+
for (let i = 10; i <= ds[0]; i++) {
|
|
67
|
+
while (index === spyIndex) {
|
|
68
|
+
index = parseInt((Math.random() * 10).toString(), 10);
|
|
69
|
+
}
|
|
70
|
+
data.push({ name: data[index].name, icon: data[index].icon, imgUrl: data[index].imgUrl, id: i.toString() });
|
|
71
|
+
spyIndex = index;
|
|
72
|
+
}
|
|
73
|
+
this.dataSource[ds[1]] = data;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
public onActionComplete() {
|
|
78
|
+
this.endTime = new Date();
|
|
79
|
+
document.getElementById('time').innerText = (this.endTime.getTime() - this.startTime.getTime()) + ' ms';
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
public onActionBegin() {
|
|
83
|
+
this.startTime = new Date();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
public onChange(e) {
|
|
87
|
+
this.startTime = new Date();
|
|
88
|
+
this.listviewInstance.dataSource = this.dataSource['data' +
|
|
89
|
+
(this.ddlDatasource[e.target.options.selectedIndex] as any).value];
|
|
90
|
+
this.listviewInstance.dataBind();
|
|
91
|
+
this.endTime = new Date();
|
|
92
|
+
document.getElementById('time').innerText = (this.endTime.getTime() - this.startTime.getTime()) + ' ms';
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "EJ2SchemaTemplateID",
|
|
4
|
+
"title": "listview-virtualization",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"path": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"format": "path",
|
|
10
|
+
"description": "The path to create the component.",
|
|
11
|
+
"visible": false
|
|
12
|
+
},
|
|
13
|
+
"project": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "The name of the project.",
|
|
16
|
+
"$default": {
|
|
17
|
+
"$source": "projectName"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"name": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "The name of the component.",
|
|
23
|
+
"$default": {
|
|
24
|
+
"$source": "argv",
|
|
25
|
+
"index": 0
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"inlineStyle": {
|
|
29
|
+
"description": "Specifies if the style will be in the ts file.",
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"default": false,
|
|
32
|
+
"alias": "s"
|
|
33
|
+
},
|
|
34
|
+
"inlineTemplate": {
|
|
35
|
+
"description": "Specifies if the template will be in the ts file.",
|
|
36
|
+
"type": "boolean",
|
|
37
|
+
"default": false,
|
|
38
|
+
"alias": "t"
|
|
39
|
+
},
|
|
40
|
+
"viewEncapsulation": {
|
|
41
|
+
"description": "Specifies the view encapsulation strategy.",
|
|
42
|
+
"enum": [
|
|
43
|
+
"Emulated",
|
|
44
|
+
"Native",
|
|
45
|
+
"None",
|
|
46
|
+
"ShadowDom"
|
|
47
|
+
],
|
|
48
|
+
"type": "string",
|
|
49
|
+
"alias": "v"
|
|
50
|
+
},
|
|
51
|
+
"changeDetection": {
|
|
52
|
+
"description": "Specifies the change detection strategy.",
|
|
53
|
+
"enum": [
|
|
54
|
+
"Default",
|
|
55
|
+
"OnPush"
|
|
56
|
+
],
|
|
57
|
+
"type": "string",
|
|
58
|
+
"default": "Default",
|
|
59
|
+
"alias": "c"
|
|
60
|
+
},
|
|
61
|
+
"prefix": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "The prefix to apply to generated selectors.",
|
|
64
|
+
"alias": "p",
|
|
65
|
+
"oneOf": [
|
|
66
|
+
{
|
|
67
|
+
"maxLength": 0
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"minLength": 1,
|
|
71
|
+
"format": "html-selector"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"styleext": {
|
|
76
|
+
"description": "The file extension to be used for style files.",
|
|
77
|
+
"type": "string",
|
|
78
|
+
"default": "css"
|
|
79
|
+
},
|
|
80
|
+
"spec": {
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"description": "Specifies if a spec file is generated.",
|
|
83
|
+
"default": true
|
|
84
|
+
},
|
|
85
|
+
"flat": {
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"description": "Flag to indicate if a dir is created.",
|
|
88
|
+
"default": false
|
|
89
|
+
},
|
|
90
|
+
"skipImport": {
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"description": "Flag to skip the module import.",
|
|
93
|
+
"default": false
|
|
94
|
+
},
|
|
95
|
+
"selector": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"format": "html-selector",
|
|
98
|
+
"description": "The selector to use for the component."
|
|
99
|
+
},
|
|
100
|
+
"module": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"description": "Allows specification of the declaring module.",
|
|
103
|
+
"alias": "m"
|
|
104
|
+
},
|
|
105
|
+
"export": {
|
|
106
|
+
"type": "boolean",
|
|
107
|
+
"default": false,
|
|
108
|
+
"description": "Specifies if declaring module exports the component."
|
|
109
|
+
},
|
|
110
|
+
"entryComponent": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"default": false,
|
|
113
|
+
"description": "Specifies if the component is an entry component of declaring module."
|
|
114
|
+
},
|
|
115
|
+
"lintFix": {
|
|
116
|
+
"type": "boolean",
|
|
117
|
+
"default": false,
|
|
118
|
+
"description": "Specifies whether to apply lint fixes after generating the component."
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"required": [
|
|
122
|
+
"name"
|
|
123
|
+
],
|
|
124
|
+
"id": "listview-virtualization"
|
|
125
|
+
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const libOptions = Object.assign({}, { 'pkgName': lib_details_1.pkgName, 'pkgVer': lib_details_1.pkgVer, 'moduleName': lib_details_1.moduleName, 'themeVer': lib_details_1.themeVer });
|
|
7
|
-
return schematics_1.install(options, libOptions);
|
|
1
|
+
import { pkgName, pkgVer, moduleName, themeVer } from './../utils/lib-details';
|
|
2
|
+
import { install } from '@syncfusion/ej2-angular-base/schematics';
|
|
3
|
+
export default function (options) {
|
|
4
|
+
const libOptions = Object.assign({}, { 'pkgName': pkgName, 'pkgVer': pkgVer, 'moduleName': moduleName, 'themeVer': themeVer });
|
|
5
|
+
return install(options, libOptions);
|
|
8
6
|
}
|
|
9
|
-
exports.default = default_1;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { pkgName, pkgVer, moduleName, themeVer } from './../utils/lib-details';
|
|
2
|
-
import { install } from '@syncfusion/ej2-angular-base/schematics';
|
|
3
|
-
import { OptionsSchema, LibOptionsSchema } from './schema';
|
|
4
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
5
|
-
|
|
6
|
-
export default function (options: OptionsSchema): Rule {
|
|
7
|
-
const libOptions: LibOptionsSchema = Object.assign({},
|
|
8
|
-
{ 'pkgName': pkgName, 'pkgVer': pkgVer, 'moduleName': moduleName, 'themeVer': themeVer });
|
|
9
|
-
return install(options, libOptions);
|
|
10
|
-
}
|
|
1
|
+
import { pkgName, pkgVer, moduleName, themeVer } from './../utils/lib-details';
|
|
2
|
+
import { install } from '@syncfusion/ej2-angular-base/schematics';
|
|
3
|
+
import { OptionsSchema, LibOptionsSchema } from './schema';
|
|
4
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
5
|
+
|
|
6
|
+
export default function (options: OptionsSchema): Rule {
|
|
7
|
+
const libOptions: LibOptionsSchema = Object.assign({},
|
|
8
|
+
{ 'pkgName': pkgName, 'pkgVer': pkgVer, 'moduleName': moduleName, 'themeVer': themeVer });
|
|
9
|
+
return install(options, libOptions);
|
|
10
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "ngAdd",
|
|
4
|
-
"title": "Add Essential JS 2 Angular packages",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"skipPackageJson": {
|
|
8
|
-
"type": "boolean",
|
|
9
|
-
"default": false,
|
|
10
|
-
"description": "Do not add add Essential JS 2 Angular packages dependencies to package.json (e.g., --skipPackageJson)"
|
|
11
|
-
},
|
|
12
|
-
"modules": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"default": "",
|
|
15
|
-
"description": "Add only specific Essential JS 2 modules to the app.module file (eg: --modules=slider, grid)"
|
|
16
|
-
},
|
|
17
|
-
"modulePath": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"default": "",
|
|
20
|
-
"description": "Used to specify the path of the module file where the EJ2 module needs to be imported"
|
|
21
|
-
},
|
|
22
|
-
"theme": {
|
|
23
|
-
"enum": [
|
|
24
|
-
"material",
|
|
25
|
-
"fabric",
|
|
26
|
-
"bootstrap",
|
|
27
|
-
"highcontrast"
|
|
28
|
-
],
|
|
29
|
-
"default": "material",
|
|
30
|
-
"description": "Used to change the theme that needs to be imported"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"required": []
|
|
34
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "ngAdd",
|
|
4
|
+
"title": "Add Essential JS 2 Angular packages",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"skipPackageJson": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": false,
|
|
10
|
+
"description": "Do not add add Essential JS 2 Angular packages dependencies to package.json (e.g., --skipPackageJson)"
|
|
11
|
+
},
|
|
12
|
+
"modules": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"default": "",
|
|
15
|
+
"description": "Add only specific Essential JS 2 modules to the app.module file (eg: --modules=slider, grid)"
|
|
16
|
+
},
|
|
17
|
+
"modulePath": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"default": "",
|
|
20
|
+
"description": "Used to specify the path of the module file where the EJ2 module needs to be imported"
|
|
21
|
+
},
|
|
22
|
+
"theme": {
|
|
23
|
+
"enum": [
|
|
24
|
+
"material",
|
|
25
|
+
"fabric",
|
|
26
|
+
"bootstrap",
|
|
27
|
+
"highcontrast"
|
|
28
|
+
],
|
|
29
|
+
"default": "material",
|
|
30
|
+
"description": "Used to change the theme that needs to be imported"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"required": []
|
|
34
|
+
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
export interface OptionsSchema {
|
|
2
|
-
// Whether to skip package.json install.
|
|
3
|
-
skipPackageJson: boolean;
|
|
4
|
-
|
|
5
|
-
// Used to specify required module names
|
|
6
|
-
modules: string;
|
|
7
|
-
|
|
8
|
-
// Used to specify custom module path
|
|
9
|
-
modulePath: string;
|
|
10
|
-
|
|
11
|
-
// Used to specify theme name
|
|
12
|
-
theme: 'material' | 'fabric' | 'bootstrap' | 'highcontrast';
|
|
13
|
-
|
|
14
|
-
// Name of the project to target.
|
|
15
|
-
project?: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface LibOptionsSchema {
|
|
19
|
-
// Package name
|
|
20
|
-
pkgName: string;
|
|
21
|
-
|
|
22
|
-
// Package version
|
|
23
|
-
pkgVer: string;
|
|
24
|
-
|
|
25
|
-
// Library base module name
|
|
26
|
-
moduleName: string;
|
|
27
|
-
|
|
28
|
-
// Theme version
|
|
29
|
-
themeVer: string;
|
|
30
|
-
}
|
|
1
|
+
export interface OptionsSchema {
|
|
2
|
+
// Whether to skip package.json install.
|
|
3
|
+
skipPackageJson: boolean;
|
|
4
|
+
|
|
5
|
+
// Used to specify required module names
|
|
6
|
+
modules: string;
|
|
7
|
+
|
|
8
|
+
// Used to specify custom module path
|
|
9
|
+
modulePath: string;
|
|
10
|
+
|
|
11
|
+
// Used to specify theme name
|
|
12
|
+
theme: 'material' | 'fabric' | 'bootstrap' | 'highcontrast';
|
|
13
|
+
|
|
14
|
+
// Name of the project to target.
|
|
15
|
+
project?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface LibOptionsSchema {
|
|
19
|
+
// Package name
|
|
20
|
+
pkgName: string;
|
|
21
|
+
|
|
22
|
+
// Package version
|
|
23
|
+
pkgVer: string;
|
|
24
|
+
|
|
25
|
+
// Library base module name
|
|
26
|
+
moduleName: string;
|
|
27
|
+
|
|
28
|
+
// Theme version
|
|
29
|
+
themeVer: string;
|
|
30
|
+
}
|
package/schematics/tsconfig.json
CHANGED
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"
|
|
4
|
-
"module": "
|
|
5
|
-
"moduleResolution": "
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022",
|
|
4
|
+
"module": "ES2022",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"lib": [
|
|
7
|
+
"ES2022",
|
|
8
|
+
"dom"
|
|
9
|
+
],
|
|
10
|
+
"noEmitOnError": false,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"declaration": true,
|
|
14
|
+
"strict": true,
|
|
15
|
+
"noImplicitAny": true,
|
|
16
|
+
"noImplicitOverride": true,
|
|
17
|
+
"esModuleInterop": true,
|
|
18
|
+
"useDefineForClassFields": false,
|
|
19
|
+
"forceConsistentCasingInFileNames": true,
|
|
20
|
+
"types": [
|
|
21
|
+
"jasmine",
|
|
22
|
+
"node"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"exclude": [
|
|
26
|
+
"node_modules",
|
|
27
|
+
"src",
|
|
28
|
+
"src/**/*.ts",
|
|
29
|
+
"spec",
|
|
30
|
+
"spec/**/*.ts",
|
|
31
|
+
"@typings"
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
exports.moduleName = 'ListViewModule';
|
|
6
|
-
exports.themeVer = '~34.2.8';
|
|
1
|
+
export const pkgName = '@syncfusion/ej2-angular-lists';
|
|
2
|
+
export const pkgVer = '^18.23.1';
|
|
3
|
+
export const moduleName = 'ListViewModule';
|
|
4
|
+
export const themeVer = '~18.23.1';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const pkgName = '@syncfusion/ej2-angular-lists';
|
|
2
|
-
export const pkgVer = '^
|
|
3
|
-
export const moduleName = 'ListViewModule';
|
|
4
|
-
export const themeVer = '~
|
|
1
|
+
export const pkgName = '@syncfusion/ej2-angular-lists';
|
|
2
|
+
export const pkgVer = '^18.23.1';
|
|
3
|
+
export const moduleName = 'ListViewModule';
|
|
4
|
+
export const themeVer = '~18.23.1';
|