@progress/kendo-angular-treelist 5.0.2 → 5.0.3-dev.202206220646
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/binding-directives/base-binding.directive.d.ts +1 -0
- package/binding-directives/flat-binding.directive.d.ts +1 -1
- package/binding-directives/hierarchy-binding.directive.d.ts +1 -1
- package/bundles/kendo-angular-treelist.umd.js +1 -1
- package/esm2015/binding-directives/base-binding.directive.js +8 -0
- package/esm2015/binding-directives/flat-binding.directive.js +0 -7
- package/esm2015/binding-directives/hierarchy-binding.directive.js +0 -7
- package/esm2015/package-metadata.js +1 -1
- package/fesm2015/kendo-angular-treelist.js +8 -15
- package/package.json +5 -5
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { Input, Directive } from '@angular/core';
|
|
6
6
|
import { Subscription } from 'rxjs';
|
|
7
7
|
import { process, aggregateBy } from '@progress/kendo-data-query';
|
|
8
|
+
import { isChanged } from '@progress/kendo-angular-common';
|
|
8
9
|
import { anyChanged } from '../utils';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
import * as i1 from "./data-bound-tree-component";
|
|
@@ -65,6 +66,9 @@ export class BaseBindingDirective {
|
|
|
65
66
|
if (anyChanged(['sort', 'filter', 'aggregate'], changes)) {
|
|
66
67
|
this.rebind();
|
|
67
68
|
}
|
|
69
|
+
if (isChanged('data', changes, false)) {
|
|
70
|
+
this.updateData(changes.data.currentValue);
|
|
71
|
+
}
|
|
68
72
|
}
|
|
69
73
|
/**
|
|
70
74
|
* @hidden
|
|
@@ -143,6 +147,10 @@ export class BaseBindingDirective {
|
|
|
143
147
|
// maybe move the aggregates implementation here ???
|
|
144
148
|
return aggregateBy(list, this._aggregate);
|
|
145
149
|
}
|
|
150
|
+
updateData(value) {
|
|
151
|
+
this.originalData = value || [];
|
|
152
|
+
this.dataChanged = true;
|
|
153
|
+
}
|
|
146
154
|
}
|
|
147
155
|
BaseBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BaseBindingDirective, deps: [{ token: i1.DataBoundTreeComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
148
156
|
BaseBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: BaseBindingDirective, inputs: { sort: "sort", filter: "filter", aggregate: "aggregate" }, usesOnChanges: true, ngImport: i0 });
|
|
@@ -42,13 +42,6 @@ export class FlatBindingDirective extends BaseBindingDirective {
|
|
|
42
42
|
this.idGetter = getter(value);
|
|
43
43
|
this.idSetter = setter(value);
|
|
44
44
|
}
|
|
45
|
-
/**
|
|
46
|
-
* The array of data which will be used to populate the TreeList.
|
|
47
|
-
*/
|
|
48
|
-
set data(value) {
|
|
49
|
-
this.originalData = value || [];
|
|
50
|
-
this.dataChanged = true;
|
|
51
|
-
}
|
|
52
45
|
getChildren(item) {
|
|
53
46
|
const id = this.itemKey(item);
|
|
54
47
|
const children = id === ROOT_ID ?
|
|
@@ -30,13 +30,6 @@ export class HierarchyBindingDirective extends BaseBindingDirective {
|
|
|
30
30
|
this.childrenGetter = getter(value);
|
|
31
31
|
this.childrenSetter = setter(value);
|
|
32
32
|
}
|
|
33
|
-
/**
|
|
34
|
-
* The array of data which will be used to populate the TreeList.
|
|
35
|
-
*/
|
|
36
|
-
set data(value) {
|
|
37
|
-
this.originalData = value || [];
|
|
38
|
-
this.dataChanged = true;
|
|
39
|
-
}
|
|
40
33
|
getChildren(item) {
|
|
41
34
|
return item ? this.childrenGetter(item) || [] : this.originalData;
|
|
42
35
|
}
|
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
|
9
9
|
name: '@progress/kendo-angular-treelist',
|
|
10
10
|
productName: 'Kendo UI for Angular',
|
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
12
|
-
publishDate:
|
|
12
|
+
publishDate: 1655880313,
|
|
13
13
|
version: '',
|
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
15
15
|
};
|
|
@@ -42,7 +42,7 @@ const packageMetadata = {
|
|
|
42
42
|
name: '@progress/kendo-angular-treelist',
|
|
43
43
|
productName: 'Kendo UI for Angular',
|
|
44
44
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
|
45
|
-
publishDate:
|
|
45
|
+
publishDate: 1655880313,
|
|
46
46
|
version: '',
|
|
47
47
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning'
|
|
48
48
|
};
|
|
@@ -18349,6 +18349,9 @@ class BaseBindingDirective {
|
|
|
18349
18349
|
if (anyChanged(['sort', 'filter', 'aggregate'], changes)) {
|
|
18350
18350
|
this.rebind();
|
|
18351
18351
|
}
|
|
18352
|
+
if (isChanged$1('data', changes, false)) {
|
|
18353
|
+
this.updateData(changes.data.currentValue);
|
|
18354
|
+
}
|
|
18352
18355
|
}
|
|
18353
18356
|
/**
|
|
18354
18357
|
* @hidden
|
|
@@ -18427,6 +18430,10 @@ class BaseBindingDirective {
|
|
|
18427
18430
|
// maybe move the aggregates implementation here ???
|
|
18428
18431
|
return aggregateBy(list, this._aggregate);
|
|
18429
18432
|
}
|
|
18433
|
+
updateData(value) {
|
|
18434
|
+
this.originalData = value || [];
|
|
18435
|
+
this.dataChanged = true;
|
|
18436
|
+
}
|
|
18430
18437
|
}
|
|
18431
18438
|
BaseBindingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: BaseBindingDirective, deps: [{ token: DataBoundTreeComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
18432
18439
|
BaseBindingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: BaseBindingDirective, inputs: { sort: "sort", filter: "filter", aggregate: "aggregate" }, usesOnChanges: true, ngImport: i0 });
|
|
@@ -18505,13 +18512,6 @@ class HierarchyBindingDirective extends BaseBindingDirective {
|
|
|
18505
18512
|
this.childrenGetter = getter(value);
|
|
18506
18513
|
this.childrenSetter = setter(value);
|
|
18507
18514
|
}
|
|
18508
|
-
/**
|
|
18509
|
-
* The array of data which will be used to populate the TreeList.
|
|
18510
|
-
*/
|
|
18511
|
-
set data(value) {
|
|
18512
|
-
this.originalData = value || [];
|
|
18513
|
-
this.dataChanged = true;
|
|
18514
|
-
}
|
|
18515
18515
|
getChildren(item) {
|
|
18516
18516
|
return item ? this.childrenGetter(item) || [] : this.originalData;
|
|
18517
18517
|
}
|
|
@@ -18611,13 +18611,6 @@ class FlatBindingDirective extends BaseBindingDirective {
|
|
|
18611
18611
|
this.idGetter = getter(value);
|
|
18612
18612
|
this.idSetter = setter(value);
|
|
18613
18613
|
}
|
|
18614
|
-
/**
|
|
18615
|
-
* The array of data which will be used to populate the TreeList.
|
|
18616
|
-
*/
|
|
18617
|
-
set data(value) {
|
|
18618
|
-
this.originalData = value || [];
|
|
18619
|
-
this.dataChanged = true;
|
|
18620
|
-
}
|
|
18621
18614
|
getChildren(item) {
|
|
18622
18615
|
const id = this.itemKey(item);
|
|
18623
18616
|
const children = id === ROOT_ID ?
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-angular-treelist",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3-dev.202206220646",
|
|
4
4
|
"description": "Kendo UI TreeList for Angular - Display hierarchical data in an Angular tree grid view that supports sorting, filtering, paging, and much more.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "Progress",
|
|
@@ -86,11 +86,11 @@
|
|
|
86
86
|
"fallbackTags": {
|
|
87
87
|
"dev": "latest"
|
|
88
88
|
},
|
|
89
|
-
"analyzeCommits": "@
|
|
89
|
+
"analyzeCommits": "@progress/semantic-prerelease/analyzeCommits",
|
|
90
90
|
"generateNotes": "@progress/kendo-angular-tasks/lib/generateNotes",
|
|
91
|
-
"getLastRelease": "@
|
|
92
|
-
"verifyConditions": "@
|
|
93
|
-
"verifyRelease": "@
|
|
91
|
+
"getLastRelease": "@progress/semantic-prerelease/getLastRelease",
|
|
92
|
+
"verifyConditions": "@progress/semantic-prerelease/verifyConditions",
|
|
93
|
+
"verifyRelease": "@progress/semantic-prerelease/verifyRelease"
|
|
94
94
|
},
|
|
95
95
|
"main": "bundles/kendo-angular-treelist.umd.js",
|
|
96
96
|
"module": "fesm2015/kendo-angular-treelist.js",
|