@churchillliving/se-ui-toolkit 6.53.498 → 6.53.499

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.
@@ -5988,29 +5988,30 @@
5988
5988
  };
5989
5989
  // Invoke onClick Event.
5990
5990
  GridComponent.prototype.onClickEvent = function (column, row) {
5991
- // if (column.type === EGridColumnType.LINK && (column.editLink === false || column.editLink === undefined) && column.editable !== true && column.disabled !== true) {
5992
- // if (column && column.onClick && column.disabled !== true && row[column.field + '_obj']?.action?.disabled !== true) {
5993
- // column.onClick(row);
5994
- // } else {
5995
- // let a = document.createElement('a');
5996
- // a.href = row[column.field + '_obj']?.hyperlink;
5997
- // a.target = column.target ? column.target : '_blank',
5998
- // a.click();
5999
- // }
6000
- // }
6001
- // if (column.type === EGridColumnType.DATE && row[column.field]) {
6002
- // this.calenderPreviousValue = row[column.field];
6003
- // } else if (
6004
- // !row[column.field] &&
6005
- // column.type === EGridColumnType.DATE &&
6006
- // (column.showTime || column.timeOnly) &&
6007
- // column.minutesInterval
6008
- // ) {
6009
- // this.defaultDate = new Date(utilities.setMinutesInterval(new Date()));
6010
- // }
6011
- // if (column && column.onClick && column.disabled !== true && row[column.field + '_obj']?.disabled !== true) {
6012
- // column.onClick(row);
6013
- // }
5991
+ var _a, _b, _c, _d;
5992
+ if (column.type === exports.EGridColumnType.LINK && (column.editLink === false || column.editLink === undefined) && column.editable !== true && column.disabled !== true) {
5993
+ if (column && column.onClick && column.disabled !== true && ((_b = (_a = row[column.field + '_obj']) === null || _a === void 0 ? void 0 : _a.action) === null || _b === void 0 ? void 0 : _b.disabled) !== true) {
5994
+ column.onClick(row);
5995
+ }
5996
+ else {
5997
+ var a = document.createElement('a');
5998
+ a.href = (_c = row[column.field + '_obj']) === null || _c === void 0 ? void 0 : _c.hyperlink;
5999
+ a.target = column.target ? column.target : '_blank',
6000
+ a.click();
6001
+ }
6002
+ }
6003
+ if (column.type === exports.EGridColumnType.DATE && row[column.field]) {
6004
+ this.calenderPreviousValue = row[column.field];
6005
+ }
6006
+ else if (!row[column.field] &&
6007
+ column.type === exports.EGridColumnType.DATE &&
6008
+ (column.showTime || column.timeOnly) &&
6009
+ column.minutesInterval) {
6010
+ this.defaultDate = new Date(setMinutesInterval(new Date()));
6011
+ }
6012
+ if (column && column.onClick && column.disabled !== true && ((_d = row[column.field + '_obj']) === null || _d === void 0 ? void 0 : _d.disabled) !== true) {
6013
+ column.onClick(row);
6014
+ }
6014
6015
  };
6015
6016
  // set the select value of multi-select
6016
6017
  GridComponent.prototype.showOption = function (column, row) {