@sd-angular/core 1.1.42 → 1.1.43

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.
@@ -3995,7 +3995,7 @@
3995
3995
  });
3996
3996
  }
3997
3997
  SdEditorHandlerRowPipe.prototype.transform = function (status, item, gridOption) {
3998
- var e_1, _a;
3998
+ var e_1, _a, e_2, _b;
3999
3999
  var editor = gridOption.editor;
4000
4000
  if (!editor) {
4001
4001
  return null;
@@ -4031,7 +4031,24 @@
4031
4031
  try {
4032
4032
  for (var columns_1 = __values(columns), columns_1_1 = columns_1.next(); !columns_1_1.done; columns_1_1 = columns_1.next()) {
4033
4033
  var col = columns_1_1.value;
4034
- item.editorHandlerColumn[col.field] = Object.assign(Object.assign({}, item.editorHandlerColumn[col.field]), { visible: __classPrivateFieldGet(this, _visible).call(this, col, item) });
4034
+ if (col.type === 'children-col') {
4035
+ try {
4036
+ for (var _c = (e_2 = void 0, __values(col.children)), _d = _c.next(); !_d.done; _d = _c.next()) {
4037
+ var childCol = _d.value;
4038
+ item.editorHandlerColumn[childCol.field] = Object.assign(Object.assign({}, item.editorHandlerColumn[childCol.field]), { visible: __classPrivateFieldGet(this, _visible).call(this, childCol, item) });
4039
+ }
4040
+ }
4041
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
4042
+ finally {
4043
+ try {
4044
+ if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
4045
+ }
4046
+ finally { if (e_2) throw e_2.error; }
4047
+ }
4048
+ }
4049
+ else {
4050
+ item.editorHandlerColumn[col.field] = Object.assign(Object.assign({}, item.editorHandlerColumn[col.field]), { visible: __classPrivateFieldGet(this, _visible).call(this, col, item) });
4051
+ }
4035
4052
  }
4036
4053
  }
4037
4054
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
@@ -4070,13 +4087,12 @@
4070
4087
  });
4071
4088
  }
4072
4089
  SdEditorHandlerColumnPipe.prototype.transform = function (value, item, column, gridOption) {
4073
- var e_1, _a;
4090
+ var e_1, _a, e_2, _b;
4074
4091
  if (column.type === 'children' || column.type === 'children-col') {
4075
4092
  return;
4076
4093
  }
4077
4094
  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
4095
  var key = hash__default['default'](remain);
4079
- console.log(value, column.field, item.sdId, key);
4080
4096
  if (sdId === key && editorHandlerColumn) {
4081
4097
  return true;
4082
4098
  }
@@ -4085,7 +4101,24 @@
4085
4101
  try {
4086
4102
  for (var columns_1 = __values(columns), columns_1_1 = columns_1.next(); !columns_1_1.done; columns_1_1 = columns_1.next()) {
4087
4103
  var col = columns_1_1.value;
4088
- item.editorHandlerColumn[col.field] = Object.assign(Object.assign({}, item.editorHandlerColumn[col.field]), { visible: __classPrivateFieldGet(this, _visible$1).call(this, col, item) });
4104
+ if (col.type === 'children-col') {
4105
+ try {
4106
+ for (var _c = (e_2 = void 0, __values(col.children)), _d = _c.next(); !_d.done; _d = _c.next()) {
4107
+ var childCol = _d.value;
4108
+ item.editorHandlerColumn[childCol.field] = Object.assign(Object.assign({}, item.editorHandlerColumn[childCol.field]), { visible: __classPrivateFieldGet(this, _visible$1).call(this, childCol, item) });
4109
+ }
4110
+ }
4111
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
4112
+ finally {
4113
+ try {
4114
+ if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
4115
+ }
4116
+ finally { if (e_2) throw e_2.error; }
4117
+ }
4118
+ }
4119
+ else {
4120
+ item.editorHandlerColumn[col.field] = Object.assign(Object.assign({}, item.editorHandlerColumn[col.field]), { visible: __classPrivateFieldGet(this, _visible$1).call(this, col, item) });
4121
+ }
4089
4122
  }
4090
4123
  }
4091
4124
  catch (e_1_1) { e_1 = { error: e_1_1 }; }