@progress/kendo-angular-treeview 5.4.0 → 5.4.2-dev.202111011443

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.
@@ -95,7 +95,7 @@ var ExpandDirective = /** @class */ (function () {
95
95
  return this._expandedKeys;
96
96
  },
97
97
  set: function (keys) {
98
- this._expandedKeys = Array.from(new Set(keys));
98
+ this._expandedKeys = keys;
99
99
  },
100
100
  enumerable: true,
101
101
  configurable: true
@@ -9,7 +9,7 @@ export var packageMetadata = {
9
9
  name: '@progress/kendo-angular-treeview',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1626259226,
12
+ publishDate: 1635777660,
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
  };
@@ -47,7 +47,7 @@ var TreeViewGroupComponent = /** @class */ (function () {
47
47
  }
48
48
  Object.defineProperty(TreeViewGroupComponent.prototype, "moreNodesAvailable", {
49
49
  get: function () {
50
- if (!isPresent(this.loadMoreService)) {
50
+ if (!isPresent(this.loadMoreService) || this.data.length === 0) {
51
51
  return false;
52
52
  }
53
53
  return this.pageSize < this.totalNodesCount;
@@ -283,8 +283,8 @@ var TreeViewComponent = /** @class */ (function () {
283
283
  * ([see example]({% slug databinding_treeview %})).
284
284
  */
285
285
  set: function (value) {
286
+ this.data.next(value || []);
286
287
  this.dataChangeNotification.notify();
287
- this.data.next(value);
288
288
  },
289
289
  enumerable: true,
290
290
  configurable: true
@@ -83,7 +83,7 @@ let ExpandDirective = class ExpandDirective {
83
83
  return this._expandedKeys;
84
84
  }
85
85
  set expandedKeys(keys) {
86
- this._expandedKeys = Array.from(new Set(keys));
86
+ this._expandedKeys = keys;
87
87
  }
88
88
  ngOnDestroy() {
89
89
  this.subscriptions.unsubscribe();
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-treeview',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1626259226,
12
+ publishDate: 1635777660,
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
  };
@@ -46,7 +46,7 @@ let TreeViewGroupComponent = class TreeViewGroupComponent {
46
46
  this.hasChildren = () => false;
47
47
  }
48
48
  get moreNodesAvailable() {
49
- if (!isPresent(this.loadMoreService)) {
49
+ if (!isPresent(this.loadMoreService) || this.data.length === 0) {
50
50
  return false;
51
51
  }
52
52
  return this.pageSize < this.totalNodesCount;
@@ -262,8 +262,8 @@ let TreeViewComponent = class TreeViewComponent {
262
262
  * ([see example]({% slug databinding_treeview %})).
263
263
  */
264
264
  set nodes(value) {
265
+ this.data.next(value || []);
265
266
  this.dataChangeNotification.notify();
266
- this.data.next(value);
267
267
  }
268
268
  get nodes() {
269
269
  return this.data.value;
@@ -22,7 +22,7 @@ const packageMetadata = {
22
22
  name: '@progress/kendo-angular-treeview',
23
23
  productName: 'Kendo UI for Angular',
24
24
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
25
- publishDate: 1626259226,
25
+ publishDate: 1635777660,
26
26
  version: '',
27
27
  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'
28
28
  };
@@ -1255,8 +1255,8 @@ let TreeViewComponent = class TreeViewComponent {
1255
1255
  * ([see example]({% slug databinding_treeview %})).
1256
1256
  */
1257
1257
  set nodes(value) {
1258
+ this.data.next(value || []);
1258
1259
  this.dataChangeNotification.notify();
1259
- this.data.next(value);
1260
1260
  }
1261
1261
  get nodes() {
1262
1262
  return this.data.value;
@@ -1812,7 +1812,7 @@ let TreeViewGroupComponent = class TreeViewGroupComponent {
1812
1812
  this.hasChildren = () => false;
1813
1813
  }
1814
1814
  get moreNodesAvailable() {
1815
- if (!isPresent(this.loadMoreService)) {
1815
+ if (!isPresent(this.loadMoreService) || this.data.length === 0) {
1816
1816
  return false;
1817
1817
  }
1818
1818
  return this.pageSize < this.totalNodesCount;
@@ -2637,7 +2637,7 @@ let ExpandDirective = class ExpandDirective {
2637
2637
  return this._expandedKeys;
2638
2638
  }
2639
2639
  set expandedKeys(keys) {
2640
- this._expandedKeys = Array.from(new Set(keys));
2640
+ this._expandedKeys = keys;
2641
2641
  }
2642
2642
  ngOnDestroy() {
2643
2643
  this.subscriptions.unsubscribe();
@@ -22,7 +22,7 @@ var packageMetadata = {
22
22
  name: '@progress/kendo-angular-treeview',
23
23
  productName: 'Kendo UI for Angular',
24
24
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
25
- publishDate: 1626259226,
25
+ publishDate: 1635777660,
26
26
  version: '',
27
27
  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'
28
28
  };
@@ -1312,8 +1312,8 @@ var TreeViewComponent = /** @class */ (function () {
1312
1312
  * ([see example]({% slug databinding_treeview %})).
1313
1313
  */
1314
1314
  set: function (value) {
1315
+ this.data.next(value || []);
1315
1316
  this.dataChangeNotification.notify();
1316
- this.data.next(value);
1317
1317
  },
1318
1318
  enumerable: true,
1319
1319
  configurable: true
@@ -1866,7 +1866,7 @@ var TreeViewGroupComponent = /** @class */ (function () {
1866
1866
  }
1867
1867
  Object.defineProperty(TreeViewGroupComponent.prototype, "moreNodesAvailable", {
1868
1868
  get: function () {
1869
- if (!isPresent(this.loadMoreService)) {
1869
+ if (!isPresent(this.loadMoreService) || this.data.length === 0) {
1870
1870
  return false;
1871
1871
  }
1872
1872
  return this.pageSize < this.totalNodesCount;
@@ -2634,7 +2634,7 @@ var ExpandDirective = /** @class */ (function () {
2634
2634
  return this._expandedKeys;
2635
2635
  },
2636
2636
  set: function (keys) {
2637
- this._expandedKeys = Array.from(new Set(keys));
2637
+ this._expandedKeys = keys;
2638
2638
  },
2639
2639
  enumerable: true,
2640
2640
  configurable: true
@@ -97,7 +97,7 @@ var ExpandDirective = /** @class */ (function () {
97
97
  return this._expandedKeys;
98
98
  },
99
99
  set: function (keys) {
100
- this._expandedKeys = Array.from(new Set(keys));
100
+ this._expandedKeys = keys;
101
101
  },
102
102
  enumerable: true,
103
103
  configurable: true
@@ -11,7 +11,7 @@ exports.packageMetadata = {
11
11
  name: '@progress/kendo-angular-treeview',
12
12
  productName: 'Kendo UI for Angular',
13
13
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
14
- publishDate: 1626259226,
14
+ publishDate: 1635777660,
15
15
  version: '',
16
16
  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'
17
17
  };
@@ -49,7 +49,7 @@ var TreeViewGroupComponent = /** @class */ (function () {
49
49
  }
50
50
  Object.defineProperty(TreeViewGroupComponent.prototype, "moreNodesAvailable", {
51
51
  get: function () {
52
- if (!utils_1.isPresent(this.loadMoreService)) {
52
+ if (!utils_1.isPresent(this.loadMoreService) || this.data.length === 0) {
53
53
  return false;
54
54
  }
55
55
  return this.pageSize < this.totalNodesCount;
@@ -285,8 +285,8 @@ var TreeViewComponent = /** @class */ (function () {
285
285
  * ([see example]({% slug databinding_treeview %})).
286
286
  */
287
287
  set: function (value) {
288
+ this.data.next(value || []);
288
289
  this.dataChangeNotification.notify();
289
- this.data.next(value);
290
290
  },
291
291
  enumerable: true,
292
292
  configurable: true