@churchillliving/se-ui-toolkit 6.53.419 → 6.53.420

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.
@@ -4598,14 +4598,20 @@
4598
4598
  */
4599
4599
  GridComponent.prototype.openGridDialog = function (column, row) {
4600
4600
  var _this = this;
4601
+ var _a;
4602
+ var isDisabled = column.disabled
4603
+ ? true
4604
+ : ((_a = row[column.field]) === null || _a === void 0 ? void 0 : _a.action) && row[column.field].action.disabled
4605
+ ? true
4606
+ : false;
4601
4607
  this.onClickEvent(column, row);
4602
4608
  setTimeout(function () {
4603
4609
  var _a, _b, _c;
4604
4610
  _this.rowClickData = row;
4605
- if (column.data && column.data.data && row[column.field + '_obj'] && !column.disabled) {
4611
+ if (column.data && column.data.data && row[column.field + '_obj']) {
4606
4612
  column.data.data = (_a = row[column.field + '_obj']) === null || _a === void 0 ? void 0 : _a.dialogData;
4607
4613
  }
4608
- if (column.component && column.data && _this.rowClickData && !column.disabled) {
4614
+ if (column.component && column.data && _this.rowClickData && !isDisabled) {
4609
4615
  var data = Object.assign({}, column.data);
4610
4616
  data.data = autoSetLookupData(column.data.data, _this.rowClickData);
4611
4617
  var ref = _this.dialogService.open(column.component, data);
@@ -5931,7 +5937,7 @@
5931
5937
  };
5932
5938
  // Invoke onClick Event.
5933
5939
  GridComponent.prototype.onClickEvent = function (column, row) {
5934
- var _a, _b, _c;
5940
+ var _a, _b, _c, _d, _e;
5935
5941
  if (column.type === exports.EGridColumnType.LINK && (column.editLink === false || column.editLink === undefined) && column.editable !== true && column.disabled !== true) {
5936
5942
  if (column && column.onClick && column.disabled !== true && ((_b = (_a = row[column.field]) === null || _a === void 0 ? void 0 : _a.action) === null || _b === void 0 ? void 0 : _b.disabled) !== true) {
5937
5943
  column.onClick(row);
@@ -5953,9 +5959,9 @@
5953
5959
  column.minutesInterval) {
5954
5960
  this.defaultDate = new Date(setMinutesInterval(new Date()));
5955
5961
  }
5956
- // if (column && column.onClick && column.disabled !== true && row[column.field]?.action?.disabled !== true) {
5957
- // column.onClick(row);
5958
- // }
5962
+ if (column && column.onClick && column.disabled !== true && ((_e = (_d = row[column.field]) === null || _d === void 0 ? void 0 : _d.action) === null || _e === void 0 ? void 0 : _e.disabled) !== true) {
5963
+ column.onClick(row);
5964
+ }
5959
5965
  };
5960
5966
  // set the select value of multi-select
5961
5967
  GridComponent.prototype.showOption = function (column, row) {