@sd-angular/core 1.0.8 → 1.0.9

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.
@@ -4279,7 +4279,7 @@
4279
4279
  SdCellViewPipe.prototype.transform = function (value, rowData, column, gridOption, key) {
4280
4280
  var _a, _b, _c, _d;
4281
4281
  return __awaiter(this, void 0, void 0, function () {
4282
- var displayOnEmpty, align, click, tooltip, htmlTemplate, transform, result, timeDifferent, seconds, data, option;
4282
+ var displayOnEmpty, align, click, tooltip, htmlTemplate, transform, result, option, seconds, data, option;
4283
4283
  return __generator(this, function (_e) {
4284
4284
  switch (_e.label) {
4285
4285
  case 0:
@@ -4303,25 +4303,25 @@
4303
4303
  return [3 /*break*/, 6];
4304
4304
  case 2:
4305
4305
  if (column.type === 'date' || column.type === 'datetime') {
4306
- timeDifferent = column.option.timeDifferent;
4306
+ option = column.option;
4307
4307
  seconds = Math.round((new Date().getTime() - new Date(value).getTime()) / 1000);
4308
- if (timeDifferent === 'month' && seconds < __classPrivateFieldGet(this, _maxMonth)) {
4308
+ if ((option === null || option === void 0 ? void 0 : option.timeDifferent) === 'month' && seconds < __classPrivateFieldGet(this, _maxMonth)) {
4309
4309
  result.display.value = this.utilityService.timeDifference(value);
4310
4310
  result.tooltip = Date.toFormat(value, column.type === 'date' ? 'dd/MM/yyyy' : 'dd/MM/yyyy HH:mm');
4311
4311
  }
4312
- else if (timeDifferent === 'day' && seconds < __classPrivateFieldGet(this, _maxDay)) {
4312
+ else if ((option === null || option === void 0 ? void 0 : option.timeDifferent) === 'day' && seconds < __classPrivateFieldGet(this, _maxDay)) {
4313
4313
  result.display.value = this.utilityService.timeDifference(value);
4314
4314
  result.tooltip = Date.toFormat(value, column.type === 'date' ? 'dd/MM/yyyy' : 'dd/MM/yyyy HH:mm');
4315
4315
  }
4316
- else if (timeDifferent === 'hour' && seconds < __classPrivateFieldGet(this, _maxHour)) {
4316
+ else if ((option === null || option === void 0 ? void 0 : option.timeDifferent) === 'hour' && seconds < __classPrivateFieldGet(this, _maxHour)) {
4317
4317
  result.display.value = this.utilityService.timeDifference(value);
4318
4318
  result.tooltip = Date.toFormat(value, column.type === 'date' ? 'dd/MM/yyyy' : 'dd/MM/yyyy HH:mm');
4319
4319
  }
4320
- else if (timeDifferent === 'minute' && seconds < __classPrivateFieldGet(this, _maxMinute)) {
4320
+ else if ((option === null || option === void 0 ? void 0 : option.timeDifferent) === 'minute' && seconds < __classPrivateFieldGet(this, _maxMinute)) {
4321
4321
  result.display.value = this.utilityService.timeDifference(value);
4322
4322
  result.tooltip = Date.toFormat(value, column.type === 'date' ? 'dd/MM/yyyy' : 'dd/MM/yyyy HH:mm');
4323
4323
  }
4324
- else if (timeDifferent === 'second' && seconds < __classPrivateFieldGet(this, _maxSecond)) {
4324
+ else if ((option === null || option === void 0 ? void 0 : option.timeDifferent) === 'second' && seconds < __classPrivateFieldGet(this, _maxSecond)) {
4325
4325
  result.display.value = this.utilityService.timeDifference(value);
4326
4326
  result.tooltip = Date.toFormat(value, column.type === 'date' ? 'dd/MM/yyyy' : 'dd/MM/yyyy HH:mm');
4327
4327
  }
@@ -4340,7 +4340,7 @@
4340
4340
  return [3 /*break*/, 5];
4341
4341
  case 4:
4342
4342
  if (column.type === 'number' && Number.isNumber(value)) {
4343
- result.display.value = Number.toVNCurrency(value); // this.decimalPipe.transform(value, '1.0-2');
4343
+ result.display.value = Number.toVNCurrency(value);
4344
4344
  }
4345
4345
  _e.label = 5;
4346
4346
  case 5: