@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
package/CHANGELOG.md
CHANGED
|
@@ -2,24 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
-
## 34.2.2 (2026-08-05)
|
|
6
|
-
|
|
7
|
-
### ListBox
|
|
8
|
-
|
|
9
|
-
#### Bug Fixes
|
|
10
|
-
|
|
11
|
-
- `#I858977` - The issue with "Script Error Occurs When Dragging a ListBox Item Outside the Component Boundary with allowDragAndDrop Enabled" has been resolved.
|
|
12
|
-
|
|
13
|
-
## 34.1.30 (2026-07-09)
|
|
14
|
-
|
|
15
|
-
### ListBase
|
|
16
|
-
|
|
17
|
-
#### Bug Fixes
|
|
18
|
-
|
|
19
|
-
- `#I851323`- Resolved an issue in `Dropdown` components where the `popup` list incorrectly rendered items as anchor tags when the `DataSource` text field contained a URL.
|
|
20
|
-
|
|
21
|
-
## 34.1.29 (2026-07-06)
|
|
22
|
-
|
|
23
5
|
### ListView
|
|
24
6
|
|
|
25
7
|
#### Bug Fixes
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { __decorate } from 'tslib';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { ContentChild, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
4
|
+
import { setValue, ComponentBase, ComponentMixins, Template } from '@syncfusion/ej2-angular-base';
|
|
5
|
+
import { ListView, Virtualization } from '@syncfusion/ej2-lists';
|
|
6
|
+
export * from '@syncfusion/ej2-lists';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
|
|
9
|
+
const inputs = ['animation', 'checkBoxPosition', 'cssClass', 'dataSource', 'disableHtmlEncode', 'enable', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableVirtualization', 'enabled', 'fields', 'groupTemplate', 'headerTemplate', 'headerTitle', 'height', 'htmlAttributes', 'locale', 'query', 'showCheckBox', 'showHeader', 'showIcon', 'sortOrder', 'template', 'width'];
|
|
10
|
+
const outputs = ['actionBegin', 'actionComplete', 'actionFailure', 'scroll', 'select'];
|
|
11
|
+
const twoWays = [''];
|
|
12
|
+
/**
|
|
13
|
+
* Represents Angular ListView Component
|
|
14
|
+
* ```
|
|
15
|
+
* <ejs-listview [dataSource]='data'></ejs-listview>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
let ListViewComponent = class ListViewComponent extends ListView {
|
|
19
|
+
ngEle;
|
|
20
|
+
srenderer;
|
|
21
|
+
viewContainerRef;
|
|
22
|
+
injector;
|
|
23
|
+
constructor(ngEle, srenderer, viewContainerRef, injector) {
|
|
24
|
+
super();
|
|
25
|
+
this.ngEle = ngEle;
|
|
26
|
+
this.srenderer = srenderer;
|
|
27
|
+
this.viewContainerRef = viewContainerRef;
|
|
28
|
+
this.injector = injector;
|
|
29
|
+
this.element = this.ngEle.nativeElement;
|
|
30
|
+
this.injectedModules = this.injectedModules || [];
|
|
31
|
+
try {
|
|
32
|
+
let mod = this.injector.get('ListsVirtualization');
|
|
33
|
+
if (this.injectedModules.indexOf(mod) === -1) {
|
|
34
|
+
this.injectedModules.push(mod);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
catch { }
|
|
38
|
+
this.registerEvents(outputs);
|
|
39
|
+
this.addTwoWay.call(this, twoWays);
|
|
40
|
+
setValue('currentInstance', this, this.viewContainerRef);
|
|
41
|
+
this.context = new ComponentBase();
|
|
42
|
+
}
|
|
43
|
+
ngOnInit() {
|
|
44
|
+
this.context.ngOnInit(this);
|
|
45
|
+
}
|
|
46
|
+
ngAfterViewInit() {
|
|
47
|
+
this.context.ngAfterViewInit(this);
|
|
48
|
+
}
|
|
49
|
+
ngOnDestroy() {
|
|
50
|
+
this.context.ngOnDestroy(this);
|
|
51
|
+
}
|
|
52
|
+
ngAfterContentChecked() {
|
|
53
|
+
this.context.ngAfterContentChecked(this);
|
|
54
|
+
}
|
|
55
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ListViewComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ViewContainerRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
56
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.0", type: ListViewComponent, isStandalone: true, selector: "ejs-listview", inputs: { animation: "animation", checkBoxPosition: "checkBoxPosition", cssClass: "cssClass", dataSource: "dataSource", disableHtmlEncode: "disableHtmlEncode", enable: "enable", enableHtmlSanitizer: "enableHtmlSanitizer", enablePersistence: "enablePersistence", enableRtl: "enableRtl", enableVirtualization: "enableVirtualization", enabled: "enabled", fields: "fields", groupTemplate: "groupTemplate", headerTemplate: "headerTemplate", headerTitle: "headerTitle", height: "height", htmlAttributes: "htmlAttributes", locale: "locale", query: "query", showCheckBox: "showCheckBox", showHeader: "showHeader", showIcon: "showIcon", sortOrder: "sortOrder", template: "template", width: "width" }, outputs: { actionBegin: "actionBegin", actionComplete: "actionComplete", actionFailure: "actionFailure", scroll: "scroll", select: "select" }, queries: [{ propertyName: "template", first: true, predicate: ["template"], descendants: true }, { propertyName: "groupTemplate", first: true, predicate: ["groupTemplate"], descendants: true }, { propertyName: "headerTemplate", first: true, predicate: ["headerTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
57
|
+
};
|
|
58
|
+
ListViewComponent = __decorate([
|
|
59
|
+
ComponentMixins([ComponentBase])
|
|
60
|
+
], ListViewComponent);
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ListViewComponent, decorators: [{
|
|
62
|
+
type: Component,
|
|
63
|
+
args: [{
|
|
64
|
+
selector: 'ejs-listview',
|
|
65
|
+
inputs: inputs,
|
|
66
|
+
outputs: outputs,
|
|
67
|
+
template: '',
|
|
68
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
69
|
+
standalone: true,
|
|
70
|
+
queries: {
|
|
71
|
+
template: new ContentChild('template'),
|
|
72
|
+
groupTemplate: new ContentChild('groupTemplate'),
|
|
73
|
+
headerTemplate: new ContentChild('headerTemplate')
|
|
74
|
+
}
|
|
75
|
+
}]
|
|
76
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ViewContainerRef }, { type: i0.Injector }] });
|
|
77
|
+
Template()(ListViewComponent.prototype, 'template');
|
|
78
|
+
Template()(ListViewComponent.prototype, 'groupTemplate');
|
|
79
|
+
Template()(ListViewComponent.prototype, 'headerTemplate');
|
|
80
|
+
|
|
81
|
+
const LISTVIEW_DIRECTIVES = [
|
|
82
|
+
ListViewComponent
|
|
83
|
+
];
|
|
84
|
+
/**
|
|
85
|
+
* NgModule definition for the ListView component.
|
|
86
|
+
* Re-exports standalone ListView component and directives so existing apps can keep using:
|
|
87
|
+
* `imports: [ListViewModule]`
|
|
88
|
+
*/
|
|
89
|
+
class ListViewModule {
|
|
90
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ListViewModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
91
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: ListViewModule, imports: [CommonModule, ListViewComponent], exports: [ListViewComponent] });
|
|
92
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ListViewModule, imports: [CommonModule] });
|
|
93
|
+
}
|
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ListViewModule, decorators: [{
|
|
95
|
+
type: NgModule,
|
|
96
|
+
args: [{
|
|
97
|
+
imports: [CommonModule, ...LISTVIEW_DIRECTIVES],
|
|
98
|
+
exports: [...LISTVIEW_DIRECTIVES]
|
|
99
|
+
}]
|
|
100
|
+
}] });
|
|
101
|
+
|
|
102
|
+
const VirtualizationService = { provide: 'ListsVirtualization', useValue: Virtualization };
|
|
103
|
+
/**
|
|
104
|
+
* NgModule definition for the ListView component with providers.
|
|
105
|
+
*/
|
|
106
|
+
class ListViewAllModule {
|
|
107
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ListViewAllModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
108
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.0", ngImport: i0, type: ListViewAllModule, imports: [CommonModule, ListViewModule], exports: [ListViewModule] });
|
|
109
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ListViewAllModule, providers: [
|
|
110
|
+
VirtualizationService
|
|
111
|
+
], imports: [CommonModule, ListViewModule, ListViewModule] });
|
|
112
|
+
}
|
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: ListViewAllModule, decorators: [{
|
|
114
|
+
type: NgModule,
|
|
115
|
+
args: [{
|
|
116
|
+
imports: [CommonModule, ListViewModule],
|
|
117
|
+
exports: [
|
|
118
|
+
ListViewModule
|
|
119
|
+
],
|
|
120
|
+
providers: [
|
|
121
|
+
VirtualizationService
|
|
122
|
+
]
|
|
123
|
+
}]
|
|
124
|
+
}] });
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Generated bundle index. Do not edit.
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
export { ListViewAllModule, ListViewComponent, ListViewModule, VirtualizationService };
|
|
131
|
+
//# sourceMappingURL=syncfusion-ej2-angular-lists.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syncfusion-ej2-angular-lists.mjs","sources":["../../src/list-view/listview.component.ts","../../src/list-view/listview.module.ts","../../src/list-view/listview-all.module.ts","../../syncfusion-ej2-angular-lists.ts"],"sourcesContent":["import { Component, ElementRef, ViewContainerRef, ChangeDetectionStrategy, QueryList, Renderer2, Injector, ValueProvider, ContentChild } from '@angular/core';\nimport { ComponentBase, IComponentBase, applyMixins, ComponentMixins, PropertyCollectionInfo, setValue } from '@syncfusion/ej2-angular-base';\nimport { ListView } from '@syncfusion/ej2-lists';\nimport { Template } from '@syncfusion/ej2-angular-base';\n\n\nexport const inputs: string[] = ['animation','checkBoxPosition','cssClass','dataSource','disableHtmlEncode','enable','enableHtmlSanitizer','enablePersistence','enableRtl','enableVirtualization','enabled','fields','groupTemplate','headerTemplate','headerTitle','height','htmlAttributes','locale','query','showCheckBox','showHeader','showIcon','sortOrder','template','width'];\nexport const outputs: string[] = ['actionBegin','actionComplete','actionFailure','scroll','select'];\nexport const twoWays: string[] = [''];\n\n/**\n * Represents Angular ListView Component\n * ```\n * <ejs-listview [dataSource]='data'></ejs-listview>\n * ```\n */\n@Component({\n selector: 'ejs-listview',\n inputs: inputs,\n outputs: outputs,\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n queries: {\n template: new ContentChild('template'),\n groupTemplate: new ContentChild('groupTemplate'),\n headerTemplate: new ContentChild('headerTemplate')\n }\n})\n@ComponentMixins([ComponentBase])\nexport class ListViewComponent extends ListView implements IComponentBase {\n public declare context : any;\n public declare tagObjects: any;\n\tdeclare actionBegin: any;\n\tdeclare actionComplete: any;\n\tdeclare actionFailure: any;\n\tdeclare scroll: any;\n\tpublic declare select: any;\n\n\n\n constructor(private ngEle: ElementRef, private srenderer: Renderer2, private viewContainerRef:ViewContainerRef, private injector: Injector) {\n super();\n this.element = this.ngEle.nativeElement;\n this.injectedModules = this.injectedModules || [];\n try {\n let mod = this.injector.get('ListsVirtualization');\n if(this.injectedModules.indexOf(mod) === -1) {\n this.injectedModules.push(mod)\n }\n } catch { }\n\r\n this.registerEvents(outputs);\n this.addTwoWay.call(this, twoWays);\n setValue('currentInstance', this, this.viewContainerRef);\n this.context = new ComponentBase();\n }\n\n public ngOnInit() {\n this.context.ngOnInit(this);\n }\n\n public ngAfterViewInit(): void {\n this.context.ngAfterViewInit(this);\n }\n\n public ngOnDestroy(): void {\n this.context.ngOnDestroy(this);\n }\n\n public ngAfterContentChecked(): void {\n \n this.context.ngAfterContentChecked(this);\n }\n\n public declare registerEvents: (eventList: string[]) => void;\n public declare addTwoWay: (propList: string[]) => void;\n}\nTemplate()(ListViewComponent.prototype, 'template');\nTemplate()(ListViewComponent.prototype, 'groupTemplate');\nTemplate()(ListViewComponent.prototype, 'headerTemplate');\n\n\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ListViewComponent } from './listview.component';\n\nconst LISTVIEW_DIRECTIVES = [\n ListViewComponent\n];\n\n/**\n * NgModule definition for the ListView component.\n * Re-exports standalone ListView component and directives so existing apps can keep using:\n * `imports: [ListViewModule]`\n */\n@NgModule({\n imports: [CommonModule, ...LISTVIEW_DIRECTIVES],\n exports: [...LISTVIEW_DIRECTIVES]\n})\nexport class ListViewModule { }","import { NgModule, ValueProvider } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ListViewComponent } from './listview.component';\nimport { ListViewModule } from './listview.module';\nimport {Virtualization} from '@syncfusion/ej2-lists'\n\n\nexport const VirtualizationService: ValueProvider = { provide: 'ListsVirtualization', useValue: Virtualization};\n\n/**\n * NgModule definition for the ListView component with providers.\n */\n@NgModule({\n imports: [CommonModule, ListViewModule],\n exports: [\n ListViewModule\n ],\n providers:[\n VirtualizationService\n ]\n})\nexport class ListViewAllModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;AAMO,MAAM,MAAM,GAAa,CAAC,WAAW,EAAC,kBAAkB,EAAC,UAAU,EAAC,YAAY,EAAC,mBAAmB,EAAC,QAAQ,EAAC,qBAAqB,EAAC,mBAAmB,EAAC,WAAW,EAAC,sBAAsB,EAAC,SAAS,EAAC,QAAQ,EAAC,eAAe,EAAC,gBAAgB,EAAC,aAAa,EAAC,QAAQ,EAAC,gBAAgB,EAAC,QAAQ,EAAC,OAAO,EAAC,cAAc,EAAC,YAAY,EAAC,UAAU,EAAC,WAAW,EAAC,UAAU,EAAC,OAAO,CAAC;AAC9W,MAAM,OAAO,GAAa,CAAC,aAAa,EAAC,gBAAgB,EAAC,eAAe,EAAC,QAAQ,EAAC,QAAQ,CAAC;AAC5F,MAAM,OAAO,GAAa,CAAC,EAAE,CAAC;AAErC;;;;;AAKG;AAeI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,QAAQ,CAAA;AAWvB,IAAA,KAAA;AAA2B,IAAA,SAAA;AAA8B,IAAA,gBAAA;AAA2C,IAAA,QAAA;AAAxH,IAAA,WAAA,CAAoB,KAAiB,EAAU,SAAoB,EAAU,gBAAiC,EAAU,QAAkB,EAAA;AACtI,QAAA,KAAK,EAAE;QADS,IAAA,CAAA,KAAK,GAAL,KAAK;QAAsB,IAAA,CAAA,SAAS,GAAT,SAAS;QAAqB,IAAA,CAAA,gBAAgB,GAAhB,gBAAgB;QAA2B,IAAA,CAAA,QAAQ,GAAR,QAAQ;QAE5H,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa;QACvC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC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AA,CAAA;;2FAMT,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAT7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,cAAc,CAAC;AACvC,oBAAA,OAAO,EAAE;wBACL;AACH,qBAAA;AACD,oBAAA,SAAS,EAAC;wBACN;AACH;AACJ,iBAAA;;;ACpBD;;AAEG;;"}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncfusion/ej2-angular-lists",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "35.1.37",
|
|
4
4
|
"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. for Angular",
|
|
5
5
|
"author": "Syncfusion Inc.",
|
|
6
6
|
"license": "SEE LICENSE IN license",
|
|
7
7
|
"schematics": "./schematics/collection.json",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@syncfusion/ej2-base": "~
|
|
10
|
-
"@syncfusion/ej2-angular-base": "~
|
|
11
|
-
"@syncfusion/ej2-lists": "
|
|
9
|
+
"@syncfusion/ej2-base": "~35.1.37",
|
|
10
|
+
"@syncfusion/ej2-angular-base": "~35.1.37",
|
|
11
|
+
"@syncfusion/ej2-lists": "35.1.37"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"angular listview",
|
|
@@ -22,24 +22,17 @@
|
|
|
22
22
|
"url": "https://github.com/syncfusion/ej2-angular-ui-components.git"
|
|
23
23
|
},
|
|
24
24
|
"sideEffects": false,
|
|
25
|
-
"module": "
|
|
26
|
-
"
|
|
27
|
-
"esm2020": "esm2020/syncfusion-ej2-angular-lists.mjs",
|
|
28
|
-
"fesm2020": "fesm2020/syncfusion-ej2-angular-lists.mjs",
|
|
29
|
-
"fesm2015": "fesm2015/syncfusion-ej2-angular-lists.mjs",
|
|
30
|
-
"typings": "syncfusion-ej2-angular-lists.d.ts",
|
|
25
|
+
"module": "fesm2022/syncfusion-ej2-angular-lists.mjs",
|
|
26
|
+
"typings": "types/syncfusion-ej2-angular-lists.d.ts",
|
|
31
27
|
"exports": {
|
|
32
28
|
"./package.json": {
|
|
33
29
|
"default": "./package.json"
|
|
34
30
|
},
|
|
35
31
|
".": {
|
|
36
|
-
"types": "./syncfusion-ej2-angular-lists.d.ts",
|
|
37
|
-
"
|
|
38
|
-
"es2020": "./fesm2020/syncfusion-ej2-angular-lists.mjs",
|
|
39
|
-
"es2015": "./fesm2015/syncfusion-ej2-angular-lists.mjs",
|
|
40
|
-
"node": "./fesm2015/syncfusion-ej2-angular-lists.mjs",
|
|
41
|
-
"default": "./fesm2020/syncfusion-ej2-angular-lists.mjs"
|
|
32
|
+
"types": "./types/syncfusion-ej2-angular-lists.d.ts",
|
|
33
|
+
"default": "./fesm2022/syncfusion-ej2-angular-lists.mjs"
|
|
42
34
|
}
|
|
43
35
|
},
|
|
36
|
+
"type": "module",
|
|
44
37
|
"homepage": "https://www.syncfusion.com/angular-components"
|
|
45
38
|
}
|
|
@@ -1,11 +1,40 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"$schema": "./node_modules/@angular-devkit/schematics/collection-schema.json",
|
|
3
|
+
"schematics": {
|
|
4
|
+
"ng-add": {
|
|
5
|
+
"description": "Adds Essential JS 2 specific Angular package to an application",
|
|
6
|
+
"factory": "./ng-add",
|
|
7
|
+
"schema": "./ng-add/schema.json"
|
|
8
|
+
},
|
|
9
|
+
"listview-checklist": {
|
|
10
|
+
"description": "Create an Angular ListView component with checkbox feature",
|
|
11
|
+
"factory": "./generators/listview-checklist",
|
|
12
|
+
"schema": "./generators/listview-checklist/schema.json"
|
|
13
|
+
},
|
|
14
|
+
"listview-default": {
|
|
15
|
+
"description": "Create an Angular ListView component as simple flat list",
|
|
16
|
+
"factory": "./generators/listview-default",
|
|
17
|
+
"schema": "./generators/listview-default/schema.json"
|
|
18
|
+
},
|
|
19
|
+
"listview-nestedlist": {
|
|
20
|
+
"description": "Create an Angular ListView component with nested navigation feature",
|
|
21
|
+
"factory": "./generators/listview-nestedlist",
|
|
22
|
+
"schema": "./generators/listview-nestedlist/schema.json"
|
|
23
|
+
},
|
|
24
|
+
"listview-remotelist": {
|
|
25
|
+
"description": "Loading remote data into Angular ListView component",
|
|
26
|
+
"factory": "./generators/listview-remotelist",
|
|
27
|
+
"schema": "./generators/listview-remotelist/schema.json"
|
|
28
|
+
},
|
|
29
|
+
"listview-template": {
|
|
30
|
+
"description": "Create an Angular component with EJ2 listview with template",
|
|
31
|
+
"factory": "./generators/listview-template",
|
|
32
|
+
"schema": "./generators/listview-template/schema.json"
|
|
33
|
+
},
|
|
34
|
+
"listview-virtualization": {
|
|
35
|
+
"description": "Enabling virtualization feature in Angular ListView component",
|
|
36
|
+
"factory": "./generators/listview-virtualization",
|
|
37
|
+
"schema": "./generators/listview-virtualization/schema.json"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -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,49 @@
|
|
|
1
|
+
#sample-list-flat,
|
|
2
|
+
#sample-list-group {
|
|
3
|
+
border: 1px solid #dddddd;
|
|
4
|
+
border-radius: 3px;
|
|
5
|
+
margin: auto;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.control-section {
|
|
9
|
+
overflow: auto;
|
|
10
|
+
padding-bottom: 10px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
#flat-list,
|
|
14
|
+
#group-list {
|
|
15
|
+
width: 40%;
|
|
16
|
+
padding: 10px;
|
|
17
|
+
margin: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
#flat-list,
|
|
21
|
+
#group-list {
|
|
22
|
+
float: left;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
#flat-list h4,
|
|
27
|
+
#group-list h4 {
|
|
28
|
+
padding-left: 15px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.e-listview .e-list-icon {
|
|
32
|
+
height: 24px;
|
|
33
|
+
width: 30px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
#listview {
|
|
37
|
+
max-width: 500px;
|
|
38
|
+
margin: auto;
|
|
39
|
+
border: 1px solid #dddddd;
|
|
40
|
+
border-radius: 3px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@media (max-width: 590px) {
|
|
44
|
+
|
|
45
|
+
#flat-list,
|
|
46
|
+
#group-list {
|
|
47
|
+
width: 100%;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -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' [showCheckBox]='true'></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' [showCheckBox]='true'></ejs-listview>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ListView Checklist 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-checklist",
|
|
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-checklist"
|
|
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
|
+
}
|