@memberjunction/ng-user-view-grid 0.9.69 → 0.9.71

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.
@@ -738,7 +738,18 @@ export class UserViewGridComponent {
738
738
  // sorting setup
739
739
  if (this._viewEntity) {
740
740
  const temp = this._viewEntity.ViewSortInfo;
741
- const kendoSortSettings = temp.map((s) => { return { field: s.field, dir: s.direction.trim().toLowerCase() }; });
741
+ const kendoSortSettings = temp.map((s) => {
742
+ let dir;
743
+ if (typeof s.direction === 'string')
744
+ dir = s.direction.trim().toLowerCase();
745
+ else if (typeof s.direction === 'number' && s.direction === 1)
746
+ dir = 'asc';
747
+ else if (typeof s.direction === 'number' && s.direction === 2)
748
+ dir = 'desc';
749
+ else
750
+ dir = '';
751
+ return { field: s.field, dir: dir };
752
+ });
742
753
  this.sortSettings = kendoSortSettings;
743
754
  }
744
755
  this.skip = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-user-view-grid",
3
- "version": "0.9.69",
3
+ "version": "0.9.71",
4
4
  "description": "MemberJunction: Angular Grid to display dynamic and saved user views for any entity in MemberJunction.",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -26,11 +26,11 @@
26
26
  "@progress/kendo-angular-grid": "^12.1.0"
27
27
  },
28
28
  "dependencies": {
29
- "@memberjunction/core-entities": "^0.9.59",
30
- "@memberjunction/global": "^0.9.91",
31
- "@memberjunction/core": "^0.9.88",
32
- "@memberjunction/ng-compare-records": "^0.9.89",
33
- "@memberjunction/ng-container-directives": "^0.9.65",
29
+ "@memberjunction/core-entities": "^0.9.62",
30
+ "@memberjunction/global": "^0.9.93",
31
+ "@memberjunction/core": "^0.9.90",
32
+ "@memberjunction/ng-compare-records": "^0.9.91",
33
+ "@memberjunction/ng-container-directives": "^0.9.67",
34
34
  "tslib": "^2.3.0"
35
35
  },
36
36
  "sideEffects": false