@memberjunction/ng-explorer-core 0.9.30 → 0.9.32

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.
@@ -366,9 +366,22 @@ export class ViewPropertiesDialogComponent extends BaseFormComponent {
366
366
  // now translate the sortState into the UI format by swapping out the primitve field names and sort direction with the data objects that the kendo ui will bind to
367
367
  this.sortState = this.sortState.map((s) => {
368
368
  var _a;
369
+ let dir;
370
+ if (typeof s.direction === 'string') {
371
+ dir = s.direction;
372
+ }
373
+ else if (typeof s.direction === 'number' && s.direction === 1) { // some legacy views have 1 and 2 for asc and desc
374
+ dir = 'asc';
375
+ }
376
+ else if (typeof s.direction === 'number' && s.direction === 2) {
377
+ dir = 'desc';
378
+ }
379
+ else {
380
+ dir = '';
381
+ }
369
382
  return {
370
383
  field: (_a = this.ViewEntityInfo) === null || _a === void 0 ? void 0 : _a.Fields.find((f) => f.Name === s.field),
371
- direction: this.sortDirections.find((d) => d.Value.trim().toLowerCase() === s.direction.trim().toLowerCase())
384
+ direction: this.sortDirections.find((d) => d.Value.trim().toLowerCase() === dir)
372
385
  };
373
386
  });
374
387
  this.localGridState = JSON.parse(this.record.GridState);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-explorer-core",
3
- "version": "0.9.30",
3
+ "version": "0.9.32",
4
4
  "description": "MemberJunction Explorer: Core Angular Components",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -27,12 +27,12 @@
27
27
  "@progress/kendo-angular-listview": "^12.1.0"
28
28
  },
29
29
  "dependencies": {
30
- "@memberjunction/global": "^0.9.91",
31
- "@memberjunction/core": "^0.9.88",
32
- "@memberjunction/ng-compare-records": "^0.9.89",
33
- "@memberjunction/ng-record-changes": "^0.9.27",
34
- "@memberjunction/ng-container-directives": "^0.9.65",
35
- "@memberjunction/ng-user-view-grid": "^0.9.69",
30
+ "@memberjunction/global": "^0.9.93",
31
+ "@memberjunction/core": "^0.9.90",
32
+ "@memberjunction/ng-compare-records": "^0.9.91",
33
+ "@memberjunction/ng-record-changes": "^0.9.29",
34
+ "@memberjunction/ng-container-directives": "^0.9.67",
35
+ "@memberjunction/ng-user-view-grid": "^0.9.71",
36
36
  "tslib": "^2.3.0"
37
37
  },
38
38
  "sideEffects": false