@churchillliving/se-ui-toolkit 6.53.366 → 6.53.367

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.
@@ -3191,7 +3191,6 @@
3191
3191
  (x.linkId && x.type == exports.EGridColumnType.LOOKUP_INPUT); }));
3192
3192
  };
3193
3193
  GridService.prototype.setHyperlinks = function (fetchResponse, columns) {
3194
- var _this = this;
3195
3194
  var records = [];
3196
3195
  var data = fetchResponse && fetchResponse.records.length > 0
3197
3196
  ? this.setDataFields(fetchResponse.records)
@@ -3210,9 +3209,6 @@
3210
3209
  newRow[field].displayText = col.displayText
3211
3210
  ? row[col.displayText.toLowerCase()]
3212
3211
  : row[col.field.toLowerCase()];
3213
- if (col.format && newRow[field].displayText) {
3214
- newRow[field].displayText = _this.datepipe.transform(newRow[field].displayText, col.format);
3215
- }
3216
3212
  if (col.data && col.data.data) {
3217
3213
  newRow[field].dialogData = findKeysAndValue(col.data.data, row);
3218
3214
  }
@@ -4646,35 +4642,7 @@
4646
4642
  value = this.setTimeFormat(newValue);
4647
4643
  }
4648
4644
  else {
4649
- var format = '';
4650
- if (column.format) {
4651
- switch (column.format) {
4652
- case exports.EGridFormatType.SMALLDATE: {
4653
- format = 'MM/dd/yy';
4654
- break;
4655
- }
4656
- case exports.EGridFormatType.SHORTDATE: {
4657
- format = 'MM/dd/yyyy';
4658
- break;
4659
- }
4660
- case exports.EGridFormatType.MEDIUMDATE: {
4661
- format = 'M d, yy';
4662
- break;
4663
- }
4664
- case exports.EGridFormatType.LONGDATE: {
4665
- format = 'MM/dd/YY, h:mm a';
4666
- break;
4667
- }
4668
- case exports.EGridFormatType.PERIOD: {
4669
- format = 'MM/yy';
4670
- break;
4671
- }
4672
- default: {
4673
- format = column.format;
4674
- break;
4675
- }
4676
- }
4677
- }
4645
+ var format = this.setFormat(column);
4678
4646
  value = this.datePipe.transform((newValue === null || newValue === void 0 ? void 0 : newValue.toString()) === "Invalid Date" ? null : newValue, format ? format : 'MM/dd/yy');
4679
4647
  }
4680
4648
  }
@@ -4693,7 +4661,7 @@
4693
4661
  ? ((_2 = column === null || column === void 0 ? void 0 : column.filter) === null || _2 === void 0 ? void 0 : _2.type) === 'calendar' && column.timeOnly && column.type === exports.EGridColumnType.DIALOG ?
4694
4662
  (row[column.field + '_obj'].displayText.toString().includes('AM') || row[column.field + '_obj'].displayText.toString().includes('PM')) ?
4695
4663
  row[column.field + '_obj'].displayText : this.datePipe.transform(row[column.field + '_obj'].displayText, 'hh:mm a')
4696
- : row[column.field + '_obj'].displayText
4664
+ : column.format ? this.datePipe.transform(row[column.field + '_obj'].displayText, this.setFormat(column)) : row[column.field + '_obj'].displayText
4697
4665
  : column.displayText
4698
4666
  ? column.displayText
4699
4667
  : column.icon ? column.header
@@ -4701,6 +4669,38 @@
4701
4669
  }
4702
4670
  return value;
4703
4671
  };
4672
+ GridComponent.prototype.setFormat = function (column) {
4673
+ var format = '';
4674
+ if (column === null || column === void 0 ? void 0 : column.format) {
4675
+ switch (column.format) {
4676
+ case exports.EGridFormatType.SMALLDATE: {
4677
+ format = 'MM/dd/yy';
4678
+ break;
4679
+ }
4680
+ case exports.EGridFormatType.SHORTDATE: {
4681
+ format = 'MM/dd/yyyy';
4682
+ break;
4683
+ }
4684
+ case exports.EGridFormatType.MEDIUMDATE: {
4685
+ format = 'M d, yy';
4686
+ break;
4687
+ }
4688
+ case exports.EGridFormatType.LONGDATE: {
4689
+ format = 'MM/dd/YY, h:mm a';
4690
+ break;
4691
+ }
4692
+ case exports.EGridFormatType.PERIOD: {
4693
+ format = 'MM/yy';
4694
+ break;
4695
+ }
4696
+ default: {
4697
+ format = column.format;
4698
+ break;
4699
+ }
4700
+ }
4701
+ }
4702
+ return format;
4703
+ };
4704
4704
  GridComponent.prototype.setDropdwonReadOnlyValue = function (row, column) {
4705
4705
  var _a, _b, _c;
4706
4706
  delete row['undefined'];
@@ -4814,16 +4814,6 @@
4814
4814
  link.click();
4815
4815
  }
4816
4816
  };
4817
- GridComponent.prototype.setFormat = function (column, row) {
4818
- var value = '';
4819
- if (column.format) {
4820
- value = this.datePipe.transform(column.displayText ? column.displayText : row[column.field], column.format);
4821
- }
4822
- else {
4823
- value = column.displayText ? column.displayText : row[column.field];
4824
- }
4825
- return value;
4826
- };
4827
4817
  /**
4828
4818
  *
4829
4819
  * @param row
@@ -9781,7 +9771,7 @@
9781
9771
  var SeFilterComponent = /** @class */ (function () {
9782
9772
  function SeFilterComponent(dialogService) {
9783
9773
  this.dialogService = dialogService;
9784
- this.showDialogFilter = true;
9774
+ this.showDialogFilter = false;
9785
9775
  this.clearGlobalFilterBtn = true;
9786
9776
  this.searchGlobalFilterBtn = true;
9787
9777
  this.filtersApplied = new i0.EventEmitter();