@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,53 @@
|
|
|
1
|
+
#sample-list {
|
|
2
|
+
max-width: 500px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
#sample-list,
|
|
6
|
+
#sample-list-flat,
|
|
7
|
+
#sample-list-group {
|
|
8
|
+
border: 1px solid #dddddd;
|
|
9
|
+
border-radius: 3px;
|
|
10
|
+
margin: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.control-section {
|
|
14
|
+
overflow: auto;
|
|
15
|
+
padding-bottom: 10px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#flat-list,
|
|
19
|
+
#group-list {
|
|
20
|
+
width: 40%;
|
|
21
|
+
padding: 10px;
|
|
22
|
+
margin: auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
#flat-list,
|
|
26
|
+
#group-list {
|
|
27
|
+
float: left;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
#flat-list h4,
|
|
31
|
+
#group-list h4 {
|
|
32
|
+
padding-left: 15px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.e-listview .e-list-icon {
|
|
36
|
+
height: 24px;
|
|
37
|
+
width: 30px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
#listview {
|
|
41
|
+
max-width: 500px;
|
|
42
|
+
margin: auto;
|
|
43
|
+
border: 1px solid #dddddd;
|
|
44
|
+
border-radius: 3px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (max-width: 590px) {
|
|
48
|
+
|
|
49
|
+
#flat-list,
|
|
50
|
+
#group-list {
|
|
51
|
+
width: 100%;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<div class="control-section">
|
|
2
|
+
<div id='flat-list'>
|
|
3
|
+
<h4>Flat List</h4>
|
|
4
|
+
<!-- ListView element -->
|
|
5
|
+
<ejs-listview id='sample-list-flat' [dataSource]='data'></ejs-listview>
|
|
6
|
+
</div>
|
|
7
|
+
<div id='group-list'>
|
|
8
|
+
<h4>Group List</h4>
|
|
9
|
+
<!-- Group ListView element -->
|
|
10
|
+
<ejs-listview id='sample-list-group' [dataSource]='groupData' [fields]='fields'></ejs-listview>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ListView Flatlist Sample
|
|
3
|
+
*/
|
|
4
|
+
import { Component } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: '<%=dasherize(selector)%>',
|
|
8
|
+
templateUrl: '<%=dasherize(name)%>.component.html',
|
|
9
|
+
styleUrls: ['<%=dasherize(name)%>.component.css']
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
export class <%= classify(name) %>Component {
|
|
13
|
+
|
|
14
|
+
// Define an array of JSON data
|
|
15
|
+
public data: Object[] = [
|
|
16
|
+
{ text: 'Hennessey Venom', id: 'list-01' },
|
|
17
|
+
{ text: 'Bugatti Chiron', id: 'list-02' },
|
|
18
|
+
{ text: 'Bugatti Veyron Super Sport', id: 'list-03' },
|
|
19
|
+
{ text: 'SSC Ultimate Aero', id: 'list-04' },
|
|
20
|
+
{ text: 'Koenigsegg CCR', id: 'list-05' },
|
|
21
|
+
{ text: 'McLaren F1', id: 'list-06' },
|
|
22
|
+
{ text: 'Aston Martin One- 77', id: 'list-07' },
|
|
23
|
+
{ text: 'Jaguar XJ220', id: 'list-08' },
|
|
24
|
+
{ text: 'McLaren P1', id: 'list-09' },
|
|
25
|
+
{ text: 'Ferrari LaFerrari', id: 'list-10' },
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
// Define an array of JSON data
|
|
29
|
+
public groupData: { [key: string]: Object }[] = [
|
|
30
|
+
{
|
|
31
|
+
'text': 'Audi A4',
|
|
32
|
+
'id': '9bdb',
|
|
33
|
+
'category': 'Audi'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
'text': 'Audi A5',
|
|
37
|
+
'id': '4589',
|
|
38
|
+
'category': 'Audi'
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
'text': 'Audi A6',
|
|
42
|
+
'id': 'e807',
|
|
43
|
+
'category': 'Audi'
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
'text': 'Audi A7',
|
|
47
|
+
'id': 'a0cc',
|
|
48
|
+
'category': 'Audi'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
'text': 'Audi A8',
|
|
52
|
+
'id': '5e26',
|
|
53
|
+
'category': 'Audi'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
'text': 'BMW 501',
|
|
57
|
+
'id': 'f849',
|
|
58
|
+
'category': 'BMW'
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
'text': 'BMW 502',
|
|
62
|
+
'id': '7aff',
|
|
63
|
+
'category': 'BMW'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
'text': 'BMW 503',
|
|
67
|
+
'id': 'b1da',
|
|
68
|
+
'category': 'BMW'
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
'text': 'BMW 507',
|
|
72
|
+
'id': 'de2f',
|
|
73
|
+
'category': 'BMW'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
'text': 'BMW 3200',
|
|
77
|
+
'id': 'b2b1',
|
|
78
|
+
'category': 'BMW'
|
|
79
|
+
}
|
|
80
|
+
];
|
|
81
|
+
|
|
82
|
+
// Map the appropriate columns to fields property
|
|
83
|
+
public fields: Object = { groupBy: 'category' };
|
|
84
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "EJ2SchemaTemplateID",
|
|
4
|
+
"title": "listview-default",
|
|
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-default"
|
|
125
|
+
}
|
package/schematics/generators/listview-nestedlist/images/__path__/__name@dasherize__/file_icons.png
ADDED
|
Binary file
|
|
@@ -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,70 @@
|
|
|
1
|
+
#sample-list {
|
|
2
|
+
max-width: 500px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
#sample-list,
|
|
6
|
+
#sample-list-flat,
|
|
7
|
+
#sample-list-group {
|
|
8
|
+
border: 1px solid #dddddd;
|
|
9
|
+
border-radius: 3px;
|
|
10
|
+
margin: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.control-section {
|
|
14
|
+
overflow: auto;
|
|
15
|
+
padding-bottom: 10px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#flat-list,
|
|
19
|
+
#group-list {
|
|
20
|
+
width: 50%;
|
|
21
|
+
padding: 10px;
|
|
22
|
+
margin: auto;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
#flat-list {
|
|
26
|
+
float: left;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
#group-list {
|
|
30
|
+
float: right;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
#flat-list h4,
|
|
34
|
+
#group-list h4 {
|
|
35
|
+
padding-left: 15px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.e-listview .e-list-icon {
|
|
39
|
+
height: 24px;
|
|
40
|
+
width: 30px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
#listview {
|
|
44
|
+
max-width: 500px;
|
|
45
|
+
margin: auto;
|
|
46
|
+
border: 1px solid #dddddd;
|
|
47
|
+
border-radius: 3px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.folder {
|
|
51
|
+
background-repeat: no-repeat;
|
|
52
|
+
background-image: url('/assets/listview/nestedlist/file_icons.png');
|
|
53
|
+
background-position: -5px -466px;
|
|
54
|
+
background-size: 302%;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.file {
|
|
58
|
+
background-repeat: no-repeat;
|
|
59
|
+
background-image: url('/assets/listview/nestedlist/file_icons.png');
|
|
60
|
+
background-position: -5px -151px;
|
|
61
|
+
background-size: 302%;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@media (max-width: 590px) {
|
|
65
|
+
|
|
66
|
+
#flat-list,
|
|
67
|
+
#group-list {
|
|
68
|
+
width: 100%;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ListView Nested Sample
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { Component, ViewEncapsulation } from '@angular/core';
|
|
6
|
+
|
|
7
|
+
@Component({
|
|
8
|
+
selector: '<%=dasherize(selector)%>',
|
|
9
|
+
templateUrl: '<%=dasherize(name)%>.component.html',
|
|
10
|
+
styleUrls: ['<%=dasherize(name)%>.component.css'],
|
|
11
|
+
encapsulation: ViewEncapsulation.None
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
export class <%= classify(name) %>Component {
|
|
15
|
+
|
|
16
|
+
// Define an array of JSON data
|
|
17
|
+
public data: { [key: string]: Object }[] = [
|
|
18
|
+
{
|
|
19
|
+
id: '01', text: 'Music', icon: 'folder',
|
|
20
|
+
child: [
|
|
21
|
+
{ id: '01-01', text: 'Gouttes.mp3', icon: 'file' }
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: '02', text: 'Videos', icon: 'folder',
|
|
26
|
+
child: [
|
|
27
|
+
{ id: '02-01', text: 'Naturals.mp4', icon: 'file' },
|
|
28
|
+
{ id: '02-02', text: 'Wild.mpeg', icon: 'file' },
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: '03', text: 'Documents', icon: 'folder',
|
|
33
|
+
child: [
|
|
34
|
+
{ id: '03-01', text: 'Environment Pollution.docx', icon: 'file' },
|
|
35
|
+
{ id: '03-02', text: 'Global Water, Sanitation, & Hygiene.docx', icon: 'file' },
|
|
36
|
+
{ id: '03-03', text: 'Global Warming.ppt', icon: 'file' },
|
|
37
|
+
{ id: '03-04', text: 'Social Network.pdf', icon: 'file' },
|
|
38
|
+
{ id: '03-05', text: 'Youth Empowerment.pdf', icon: 'file' },
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: '04', text: 'Pictures', icon: 'folder',
|
|
43
|
+
child: [
|
|
44
|
+
{
|
|
45
|
+
id: '04-01', text: 'Camera Roll', icon: 'folder',
|
|
46
|
+
child: [
|
|
47
|
+
{ id: '04-01-01', text: 'WIN_20160726_094117.JPG', icon: 'file' },
|
|
48
|
+
{ id: '04-01-02', text: 'WIN_20160726_094118.JPG', icon: 'file' },
|
|
49
|
+
{ id: '04-01-03', text: 'WIN_20160726_094119.JPG', icon: 'file' }
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
id: '04-02', text: 'Wind.jpg', icon: 'file'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: '04-02', text: 'Stone.jpg', icon: 'file'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
id: '04-02', text: 'Home.jpg', icon: 'file'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: '04-02', text: 'Bridge.png', icon: 'file'
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: '05', text: 'Downloads', icon: 'folder',
|
|
68
|
+
child: [
|
|
69
|
+
{ id: '05-01', text: 'UI-Guide.pdf', icon: 'file' },
|
|
70
|
+
{ id: '05-02', text: 'Tutorials.zip', icon: 'file' },
|
|
71
|
+
{ id: '05-03', text: 'Game.exe', icon: 'file' },
|
|
72
|
+
{ id: '05-04', text: 'TypeScript.7z', icon: 'file' },
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
|
|
77
|
+
// Map appropriate columns to fields property
|
|
78
|
+
public fields: { [key: string]: string } = {
|
|
79
|
+
iconCss: 'icon', tooltip: 'text'
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
// Set header title
|
|
83
|
+
public headerTitle = 'Folders';
|
|
84
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "EJ2SchemaTemplateID",
|
|
4
|
+
"title": "listview-nestedlist",
|
|
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-nestedlist"
|
|
125
|
+
}
|
|
@@ -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
|
+
}
|