@sd-angular/core 1.1.37 → 1.1.40

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.
@@ -1676,14 +1676,14 @@
1676
1676
  case 1:
1677
1677
  values = _g.sent();
1678
1678
  __classPrivateFieldGet(this, _cache$1)[key] = {
1679
- result: ((_d = values === null || values === void 0 ? void 0 : values.find(function (e) { return (e === null || e === void 0 ? void 0 : e[valueField]) === value; })) === null || _d === void 0 ? void 0 : _d[displayField]) || valueField
1679
+ result: ((_d = values === null || values === void 0 ? void 0 : values.find(function (e) { return (e === null || e === void 0 ? void 0 : e[valueField]) === value; })) === null || _d === void 0 ? void 0 : _d[displayField]) || value
1680
1680
  };
1681
1681
  _g.label = 2;
1682
1682
  case 2: return [3 /*break*/, 4];
1683
1683
  case 3:
1684
1684
  if (!__classPrivateFieldGet(this, _cache$1)[key]) {
1685
1685
  __classPrivateFieldGet(this, _cache$1)[key] = {
1686
- result: ((_e = items === null || items === void 0 ? void 0 : items.find(function (e) { return (e === null || e === void 0 ? void 0 : e[valueField]) === value; })) === null || _e === void 0 ? void 0 : _e[displayField]) || valueField
1686
+ result: ((_e = items === null || items === void 0 ? void 0 : items.find(function (e) { return (e === null || e === void 0 ? void 0 : e[valueField]) === value; })) === null || _e === void 0 ? void 0 : _e[displayField]) || value
1687
1687
  };
1688
1688
  }
1689
1689
  _g.label = 4;
@@ -4024,7 +4024,7 @@
4024
4024
  item.editorHandlerRow = Object.assign(Object.assign({}, item.editorHandlerRow), { visible: false, editable: !status, removable: false, savable: false, cancelable: false });
4025
4025
  }
4026
4026
  // const { sdId, editorHandlerColumn, ...remain } = item;
4027
- var sdId = item.sdId, editorHandlerColumn = item.editorHandlerColumn, expandDetail = item.expandDetail, isExpanded = item.isExpanded, isExpanding = item.isExpanding, isSelected = item.isSelected, sdGroup = item.sdGroup, selectable = item.selectable, actions = item.actions, groupedActions = item.groupedActions, originItem = item.originItem, editorErrorMessage = item.editorErrorMessage, remain = __rest(item, ["sdId", "editorHandlerColumn", "expandDetail", "isExpanded", "isExpanding", "isSelected", "sdGroup", "selectable", "actions", "groupedActions", "originItem", "editorErrorMessage"]);
4027
+ var sdId = item.sdId, editorHandlerColumn = item.editorHandlerColumn, expandDetail = item.expandDetail, isExpanded = item.isExpanded, isExpanding = item.isExpanding, isSelected = item.isSelected, sdGroup = item.sdGroup, selectable = item.selectable, actions = item.actions, groupedActions = item.groupedActions, originItem = item.originItem, editorErrorMessage = item.editorErrorMessage, editorHandlerRow = item.editorHandlerRow, remain = __rest(item, ["sdId", "editorHandlerColumn", "expandDetail", "isExpanded", "isExpanding", "isSelected", "sdGroup", "selectable", "actions", "groupedActions", "originItem", "editorErrorMessage", "editorHandlerRow"]);
4028
4028
  item.sdId = hash__default['default'](remain);
4029
4029
  item.editorHandlerColumn = item.editorHandlerColumn || {};
4030
4030
  var columns = gridOption.columns;
@@ -4074,10 +4074,11 @@
4074
4074
  if (column.type === 'children' || column.type === 'children-col') {
4075
4075
  return;
4076
4076
  }
4077
- var sdId = item.sdId, editorHandlerColumn = item.editorHandlerColumn, expandDetail = item.expandDetail, isExpanded = item.isExpanded, isExpanding = item.isExpanding, isSelected = item.isSelected, sdGroup = item.sdGroup, selectable = item.selectable, actions = item.actions, groupedActions = item.groupedActions, originItem = item.originItem, editorErrorMessage = item.editorErrorMessage, remain = __rest(item, ["sdId", "editorHandlerColumn", "expandDetail", "isExpanded", "isExpanding", "isSelected", "sdGroup", "selectable", "actions", "groupedActions", "originItem", "editorErrorMessage"]);
4077
+ var sdId = item.sdId, editorHandlerColumn = item.editorHandlerColumn, expandDetail = item.expandDetail, isExpanded = item.isExpanded, isExpanding = item.isExpanding, isSelected = item.isSelected, sdGroup = item.sdGroup, selectable = item.selectable, actions = item.actions, groupedActions = item.groupedActions, originItem = item.originItem, editorErrorMessage = item.editorErrorMessage, editorHandlerRow = item.editorHandlerRow, remain = __rest(item, ["sdId", "editorHandlerColumn", "expandDetail", "isExpanded", "isExpanding", "isSelected", "sdGroup", "selectable", "actions", "groupedActions", "originItem", "editorErrorMessage", "editorHandlerRow"]);
4078
4078
  var key = hash__default['default'](remain);
4079
- if (item.sdId === key && item.editorHandlerColumn) {
4080
- return;
4079
+ console.log(value, column.field, item.sdId, key);
4080
+ if (sdId === key && editorHandlerColumn) {
4081
+ return true;
4081
4082
  }
4082
4083
  item.editorHandlerColumn = item.editorHandlerColumn || {};
4083
4084
  var columns = gridOption.columns;
@@ -4094,22 +4095,6 @@
4094
4095
  }
4095
4096
  finally { if (e_1) throw e_1.error; }
4096
4097
  }
4097
- // const { sdId, editorHandlerColumn, ...remain } = item;
4098
- // const {
4099
- // sdId,
4100
- // editorHandlerColumn,
4101
- // expandDetail,
4102
- // isExpanded,
4103
- // isExpanding,
4104
- // isSelected,
4105
- // sdGroup,
4106
- // selectable,
4107
- // actions,
4108
- // editorHandlerRow,
4109
- // groupedActions,
4110
- // originItem,
4111
- // editorErrorMessage,
4112
- // ...remain } = item;
4113
4098
  item.sdId = key;
4114
4099
  return true;
4115
4100
  };