@churchillliving/se-ui-toolkit 6.53.419 → 6.53.421

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.
@@ -1982,6 +1982,12 @@
1982
1982
  !formData.data.valueProp) {
1983
1983
  formData.data.valueProp = formData.data.labelProp;
1984
1984
  }
1985
+ else if (formData &&
1986
+ formData.data &&
1987
+ formData.data.valueProp &&
1988
+ !formData.data.labelProp) {
1989
+ formData.data.labelProp = formData.data.valueProp;
1990
+ }
1985
1991
  var matchValueKey = getMatchKey(response, (_a = formData === null || formData === void 0 ? void 0 : formData.data) === null || _a === void 0 ? void 0 : _a.valueProp);
1986
1992
  var matchFieldKey = getMatchKey(response, (_b = formData === null || formData === void 0 ? void 0 : formData.data) === null || _b === void 0 ? void 0 : _b.labelProp);
1987
1993
  if ((formData === null || formData === void 0 ? void 0 : formData.data) &&
@@ -4598,14 +4604,20 @@
4598
4604
  */
4599
4605
  GridComponent.prototype.openGridDialog = function (column, row) {
4600
4606
  var _this = this;
4607
+ var _a;
4608
+ var isDisabled = column.disabled
4609
+ ? true
4610
+ : ((_a = row[column.field]) === null || _a === void 0 ? void 0 : _a.action) && row[column.field].action.disabled
4611
+ ? true
4612
+ : false;
4601
4613
  this.onClickEvent(column, row);
4602
4614
  setTimeout(function () {
4603
4615
  var _a, _b, _c;
4604
4616
  _this.rowClickData = row;
4605
- if (column.data && column.data.data && row[column.field + '_obj'] && !column.disabled) {
4617
+ if (column.data && column.data.data && row[column.field + '_obj']) {
4606
4618
  column.data.data = (_a = row[column.field + '_obj']) === null || _a === void 0 ? void 0 : _a.dialogData;
4607
4619
  }
4608
- if (column.component && column.data && _this.rowClickData && !column.disabled) {
4620
+ if (column.component && column.data && _this.rowClickData && !isDisabled) {
4609
4621
  var data = Object.assign({}, column.data);
4610
4622
  data.data = autoSetLookupData(column.data.data, _this.rowClickData);
4611
4623
  var ref = _this.dialogService.open(column.component, data);
@@ -5931,7 +5943,7 @@
5931
5943
  };
5932
5944
  // Invoke onClick Event.
5933
5945
  GridComponent.prototype.onClickEvent = function (column, row) {
5934
- var _a, _b, _c;
5946
+ var _a, _b, _c, _d, _e;
5935
5947
  if (column.type === exports.EGridColumnType.LINK && (column.editLink === false || column.editLink === undefined) && column.editable !== true && column.disabled !== true) {
5936
5948
  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
5949
  column.onClick(row);
@@ -5953,9 +5965,9 @@
5953
5965
  column.minutesInterval) {
5954
5966
  this.defaultDate = new Date(setMinutesInterval(new Date()));
5955
5967
  }
5956
- // if (column && column.onClick && column.disabled !== true && row[column.field]?.action?.disabled !== true) {
5957
- // column.onClick(row);
5958
- // }
5968
+ 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) {
5969
+ column.onClick(row);
5970
+ }
5959
5971
  };
5960
5972
  // set the select value of multi-select
5961
5973
  GridComponent.prototype.showOption = function (column, row) {