@progress/kendo-angular-treelist 5.0.1 → 5.0.2-dev.202205261550

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.
@@ -28,11 +28,17 @@ const identity = item => item;
28
28
  function loadView(view, subject) {
29
29
  view.loadData();
30
30
  if (view.loading) {
31
+ // Wait for view to load and fetch children.
31
32
  view.dataLoaded.pipe(take(1)).subscribe(() => {
32
33
  loadView(view, subject);
33
34
  });
34
35
  }
36
+ else if (!view._data) {
37
+ // Fetch children if root items are resolved immediately.
38
+ loadView(view, subject);
39
+ }
35
40
  else {
41
+ // Data loaded.
36
42
  subject.next(view);
37
43
  }
38
44
  }
@@ -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: 1652971441,
12
+ publishDate: 1653580154,
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: 1652971441,
45
+ publishDate: 1653580154,
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
  };
@@ -1297,11 +1297,17 @@ const identity$1 = item => item;
1297
1297
  function loadView(view, subject) {
1298
1298
  view.loadData();
1299
1299
  if (view.loading) {
1300
+ // Wait for view to load and fetch children.
1300
1301
  view.dataLoaded.pipe(take(1)).subscribe(() => {
1301
1302
  loadView(view, subject);
1302
1303
  });
1303
1304
  }
1305
+ else if (!view._data) {
1306
+ // Fetch children if root items are resolved immediately.
1307
+ loadView(view, subject);
1308
+ }
1304
1309
  else {
1310
+ // Data loaded.
1305
1311
  subject.next(view);
1306
1312
  }
1307
1313
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-treelist",
3
- "version": "5.0.1",
3
+ "version": "5.0.2-dev.202205261550",
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",