@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.
- package/dist/browser/easydata.js +15 -6
- package/dist/browser/easydata.js.map +1 -1
- package/dist/browser/easydata.min.js +1 -1
- package/dist/browser/easydata.min.js.map +1 -1
- package/dist/bundles/easydata.crud.js +15 -6
- package/dist/bundles/easydata.crud.js.map +1 -1
- package/dist/bundles/easydata.crud.min.js +1 -1
- package/dist/bundles/easydata.crud.min.js.map +1 -1
- package/package.json +3 -3
package/dist/browser/easydata.js
CHANGED
|
@@ -1047,13 +1047,22 @@ var AggregationSettings = /** @class */ (function () {
|
|
|
1047
1047
|
};
|
|
1048
1048
|
//returns true if value1 == value2
|
|
1049
1049
|
AggregationSettings.prototype.strictCompare = function (value1, value2) {
|
|
1050
|
-
|
|
1050
|
+
if (value1 instanceof Date) {
|
|
1051
|
+
return value1.getTime() === value2.getTime();
|
|
1052
|
+
}
|
|
1053
|
+
else
|
|
1054
|
+
return value1 === value2;
|
|
1051
1055
|
};
|
|
1052
1056
|
//makes a case insensative comparision of two values and return true if there are equal
|
|
1053
1057
|
AggregationSettings.prototype.caseInsensitiveCompare = function (value1, value2) {
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1058
|
+
if (value1 instanceof Date) {
|
|
1059
|
+
return value1.getTime() === value2.getTime();
|
|
1060
|
+
}
|
|
1061
|
+
else {
|
|
1062
|
+
var val1 = (typeof value1 === 'string') ? value1.toLowerCase() : value1;
|
|
1063
|
+
var val2 = (typeof value2 === 'string') ? value2.toLowerCase() : value2;
|
|
1064
|
+
return val1 === val2;
|
|
1065
|
+
}
|
|
1057
1066
|
};
|
|
1058
1067
|
return AggregationSettings;
|
|
1059
1068
|
}());
|
|
@@ -8123,8 +8132,8 @@ var EasyGrid = /** @class */ (function () {
|
|
|
8123
8132
|
this.prevRowTotals = newRow;
|
|
8124
8133
|
};
|
|
8125
8134
|
EasyGrid.prototype.applyGroupColumnTemplate = function (template, value, count) {
|
|
8126
|
-
var result = template.replace(/{{\s*GroupValue\s*}}/g, value ? "
|
|
8127
|
-
result = result.replace(/{{\s*GroupCount\s*}}/g, count ? "
|
|
8135
|
+
var result = template.replace(/{{\s*GroupValue\s*}}/g, value ? "" + value : '-');
|
|
8136
|
+
result = result.replace(/{{\s*GroupCount\s*}}/g, count ? "" + count : '-');
|
|
8128
8137
|
return result;
|
|
8129
8138
|
};
|
|
8130
8139
|
EasyGrid.prototype.renderTotalsRow = function (level, row) {
|