@easydata/crud 1.4.11 → 1.4.13

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.
@@ -2431,13 +2431,22 @@ var AggregationSettings = /** @class */ (function () {
2431
2431
  };
2432
2432
  //returns true if value1 == value2
2433
2433
  AggregationSettings.prototype.strictCompare = function (value1, value2) {
2434
- return value1 === value2;
2434
+ if (value1 instanceof Date) {
2435
+ return value1.getTime() === value2.getTime();
2436
+ }
2437
+ else
2438
+ return value1 === value2;
2435
2439
  };
2436
2440
  //makes a case insensative comparision of two values and return true if there are equal
2437
2441
  AggregationSettings.prototype.caseInsensitiveCompare = function (value1, value2) {
2438
- var val1 = (typeof value1 === 'string') ? value1.toLowerCase() : value1;
2439
- var val2 = (typeof value2 === 'string') ? value2.toLowerCase() : value2;
2440
- return val1 === val2;
2442
+ if (value1 instanceof Date) {
2443
+ return value1.getTime() === value2.getTime();
2444
+ }
2445
+ else {
2446
+ var val1 = (typeof value1 === 'string') ? value1.toLowerCase() : value1;
2447
+ var val2 = (typeof value2 === 'string') ? value2.toLowerCase() : value2;
2448
+ return val1 === val2;
2449
+ }
2441
2450
  };
2442
2451
  return AggregationSettings;
2443
2452
  }());
@@ -5025,8 +5034,8 @@ var easy_grid_EasyGrid = /** @class */ (function () {
5025
5034
  this.prevRowTotals = newRow;
5026
5035
  };
5027
5036
  EasyGrid.prototype.applyGroupColumnTemplate = function (template, value, count) {
5028
- var result = template.replace(/{{\s*GroupValue\s*}}/g, value ? "<span>" + value + "</span>" : '-');
5029
- result = result.replace(/{{\s*GroupCount\s*}}/g, count ? "<span>" + count + "</span>" : '-');
5037
+ var result = template.replace(/{{\s*GroupValue\s*}}/g, value ? "" + value : '-');
5038
+ result = result.replace(/{{\s*GroupCount\s*}}/g, count ? "" + count : '-');
5030
5039
  return result;
5031
5040
  };
5032
5041
  EasyGrid.prototype.renderTotalsRow = function (level, row) {