@churchillliving/se-ui-toolkit 6.53.168 → 6.53.170

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.
@@ -2435,7 +2435,20 @@
2435
2435
  GridService.prototype.getFormattedDate = function (value) {
2436
2436
  return new Date(value + " Z").toISOString().slice(0, 10);
2437
2437
  };
2438
- // get allowSave true row
2438
+ // get allowSave true row list
2439
+ GridService.prototype.getAllowSaveRowlist = function (rowsData, columns) {
2440
+ if (rowsData === void 0) { rowsData = []; }
2441
+ columns.forEach(function (column) {
2442
+ if (!column.allowSave) {
2443
+ rowsData.forEach(function (row) {
2444
+ var _a;
2445
+ delete row[(_a = column.field) === null || _a === void 0 ? void 0 : _a.toLowerCase()];
2446
+ });
2447
+ }
2448
+ });
2449
+ return rowsData;
2450
+ };
2451
+ // get allowSave true || undefine row
2439
2452
  GridService.prototype.getAllowSaveRow = function (rowInfo, columns) {
2440
2453
  if (rowInfo === void 0) { rowInfo = {}; }
2441
2454
  var row = Object.assign({}, rowInfo);
@@ -3700,7 +3713,15 @@
3700
3713
  this.hideFilter = true;
3701
3714
  }
3702
3715
  this.columns.forEach(function (column) {
3703
- var _a, _b, _c, _d;
3716
+ var _a, _b, _c, _d, _e;
3717
+ // set numeric null or undefine data default value
3718
+ if (column.type === exports.EGridColumnType.NUMERIC && column.value && ((_a = _this.rowsData) === null || _a === void 0 ? void 0 : _a.length) > 0) {
3719
+ _this.rowsData.forEach(function (row) {
3720
+ if (column.value && (row[column.field] === null || row[column.field] === undefined)) {
3721
+ row[column.field] = column.value;
3722
+ }
3723
+ });
3724
+ }
3704
3725
  // convert string time into the date
3705
3726
  if (column.type === exports.EGridColumnType.DATE && column.timeOnly === true) {
3706
3727
  _this.rowsData.forEach(function (row) {
@@ -3730,11 +3751,11 @@
3730
3751
  _this.setAggregateText(column);
3731
3752
  }
3732
3753
  var searchFilters;
3733
- if (!_this.softCaching && ((_a = _this.componentTableRef) === null || _a === void 0 ? void 0 : _a.id)) {
3734
- searchFilters = JSON.parse(localStorage.getItem('SetFilters-' + ((_b = _this.componentTableRef) === null || _b === void 0 ? void 0 : _b.id) + currentUrl()));
3754
+ if (!_this.softCaching && ((_b = _this.componentTableRef) === null || _b === void 0 ? void 0 : _b.id)) {
3755
+ searchFilters = JSON.parse(localStorage.getItem('SetFilters-' + ((_c = _this.componentTableRef) === null || _c === void 0 ? void 0 : _c.id) + currentUrl()));
3735
3756
  }
3736
- else if ((_c = _this.componentTableRef) === null || _c === void 0 ? void 0 : _c.id) {
3737
- searchFilters = _this.gridService.softCachingFilters[((_d = _this.componentTableRef) === null || _d === void 0 ? void 0 : _d.id) + currentUrl()];
3757
+ else if ((_d = _this.componentTableRef) === null || _d === void 0 ? void 0 : _d.id) {
3758
+ searchFilters = _this.gridService.softCachingFilters[((_e = _this.componentTableRef) === null || _e === void 0 ? void 0 : _e.id) + currentUrl()];
3738
3759
  }
3739
3760
  if (!_this.hideFilter &&
3740
3761
  searchFilters &&
@@ -3922,9 +3943,6 @@
3922
3943
  break;
3923
3944
  }
3924
3945
  }
3925
- if (column.value && (value === null || value === undefined)) {
3926
- value = column.value;
3927
- }
3928
3946
  return value;
3929
3947
  };
3930
3948
  //Change dropdown vlue based on option label and optionvalue