@sd-angular/core 1.1.29 → 1.1.32

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.
@@ -3937,7 +3937,7 @@
3937
3937
  SdDesktopCell.decorators = [
3938
3938
  { type: core.Component, args: [{
3939
3939
  selector: 'sd-desktop-cell',
3940
- template: "<ng-container *ngIf=\"column && item\">\r\n <ng-container *ngIf=\"item.editorHandlerRow?.visible;else useView\">\r\n <!-- <ng-container *sdLet=\"item[column.field] | sdId:item:column\"> -->\r\n <ng-container *sdLet=\"item[column.field] | sdEditorHandlerColumn:item:column:gridOption\">\r\n <ng-container *ngIf=\"item.editorHandlerColumn[column.field]?.visible;else useView\">\r\n <ng-container *ngIf=\"cellDef[column.field]\">\r\n <ng-container *ngTemplateOutlet=\"\r\n cellDef[column.field].templateRef;\r\n context: { item: item, column: column, idx: idx, isEdited: true }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n <sd-desktop-cell-editor *ngIf=\"!cellDef[column.field]\" [sdId]=\"item.sdId\" [column]=\"column\" [item]=\"item\">\r\n </sd-desktop-cell-editor>\r\n </ng-container>\r\n </ng-container>\r\n <!-- </ng-container> -->\r\n </ng-container>\r\n <ng-template #useView>\r\n <ng-container *ngIf=\"cellDef[column.field]\">\r\n <ng-container *ngTemplateOutlet=\"\r\n cellDef[column.field].templateRef;\r\n context: { item: item, column: column, idx: idx }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n <sd-desktop-cell-view *ngIf=\"!cellDef[column.field]\" [sdId]=\"item.sdId\" [key]=\"key\" [column]=\"column\" [gridOption]=\"gridOption\" [item]=\"item\">\r\n </sd-desktop-cell-view>\r\n </ng-template>\r\n</ng-container>",
3940
+ template: "<ng-container *ngIf=\"column && item\">\r\n <ng-container *ngIf=\"item.editorHandlerRow?.visible;else useView\">\r\n <ng-container *sdLet=\"item[column.field] | sdEditorHandlerColumn:item:column:gridOption\">\r\n <ng-container *ngIf=\"item.editorHandlerColumn && item.editorHandlerColumn[column.field]?.visible;else useView\">\r\n <ng-container *ngIf=\"cellDef[column.field]\">\r\n <ng-container *ngTemplateOutlet=\"\r\n cellDef[column.field].templateRef;\r\n context: { item: item, column: column, idx: idx, isEdited: true }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n <sd-desktop-cell-editor *ngIf=\"!cellDef[column.field]\" [sdId]=\"item.sdId\" [column]=\"column\" [item]=\"item\">\r\n </sd-desktop-cell-editor>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #useView>\r\n <ng-container *ngIf=\"cellDef[column.field]\">\r\n <ng-container *ngTemplateOutlet=\"\r\n cellDef[column.field].templateRef;\r\n context: { item: item, column: column, idx: idx }\r\n \">\r\n </ng-container>\r\n </ng-container>\r\n <sd-desktop-cell-view *ngIf=\"!cellDef[column.field]\" [sdId]=\"item.sdId\" [key]=\"key\" [column]=\"column\" [gridOption]=\"gridOption\" [item]=\"item\">\r\n </sd-desktop-cell-view>\r\n </ng-template>\r\n</ng-container>",
3941
3941
  changeDetection: core.ChangeDetectionStrategy.OnPush
3942
3942
  },] }
3943
3943
  ];
@@ -4011,7 +4011,8 @@
4011
4011
  }
4012
4012
  item.editorHandlerRow = Object.assign(Object.assign({}, item.editorHandlerRow), { visible: false, editable: !status, removable: false, savable: false, cancelable: false });
4013
4013
  }
4014
- var sdId = item.sdId, editorHandlerColumn = item.editorHandlerColumn, remain = __rest(item, ["sdId", "editorHandlerColumn"]);
4014
+ // const { sdId, editorHandlerColumn, ...remain } = item;
4015
+ 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, editorHandlerRow = item.editorHandlerRow, groupedActions = item.groupedActions, originItem = item.originItem, editorErrorMessage = item.editorErrorMessage, remain = __rest(item, ["sdId", "editorHandlerColumn", "expandDetail", "isExpanded", "isExpanding", "isSelected", "sdGroup", "selectable", "actions", "editorHandlerRow", "groupedActions", "originItem", "editorErrorMessage"]);
4015
4016
  item.sdId = hash__default['default'](remain);
4016
4017
  return item.editorHandlerRow;
4017
4018
  };
@@ -4045,8 +4046,16 @@
4045
4046
  if (column.type === 'children' || column.type === 'children-col') {
4046
4047
  return;
4047
4048
  }
4049
+ 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, editorHandlerRow = item.editorHandlerRow, groupedActions = item.groupedActions, originItem = item.originItem, editorErrorMessage = item.editorErrorMessage, remain = __rest(item, ["sdId", "editorHandlerColumn", "expandDetail", "isExpanded", "isExpanding", "isSelected", "sdGroup", "selectable", "actions", "editorHandlerRow", "groupedActions", "originItem", "editorErrorMessage"]);
4050
+ var key = hash__default['default'](remain);
4051
+ if (item.sdId === sdId) {
4052
+ return;
4053
+ }
4048
4054
  item.editorHandlerColumn = item.editorHandlerColumn || {};
4049
- item.editorHandlerColumn[column.field] = Object.assign(Object.assign({}, item.editorHandlerColumn[column.field]), { visible: __classPrivateFieldGet(this, _visible).call(this, column, item) });
4055
+ // item.editorHandlerColumn[column.field] = {
4056
+ // ...item.editorHandlerColumn[column.field],
4057
+ // visible: this.#visible(column, item)
4058
+ // }
4050
4059
  var columns = gridOption.columns;
4051
4060
  try {
4052
4061
  for (var columns_1 = __values(columns), columns_1_1 = columns_1.next(); !columns_1_1.done; columns_1_1 = columns_1.next()) {
@@ -4061,8 +4070,23 @@
4061
4070
  }
4062
4071
  finally { if (e_1) throw e_1.error; }
4063
4072
  }
4064
- var sdId = item.sdId, editorHandlerColumn = item.editorHandlerColumn, remain = __rest(item, ["sdId", "editorHandlerColumn"]);
4065
- item.sdId = hash__default['default'](remain);
4073
+ // const { sdId, editorHandlerColumn, ...remain } = item;
4074
+ // const {
4075
+ // sdId,
4076
+ // editorHandlerColumn,
4077
+ // expandDetail,
4078
+ // isExpanded,
4079
+ // isExpanding,
4080
+ // isSelected,
4081
+ // sdGroup,
4082
+ // selectable,
4083
+ // actions,
4084
+ // editorHandlerRow,
4085
+ // groupedActions,
4086
+ // originItem,
4087
+ // editorErrorMessage,
4088
+ // ...remain } = item;
4089
+ item.sdId = sdId;
4066
4090
  return true;
4067
4091
  };
4068
4092
  return SdEditorHandlerColumnPipe;
@@ -4308,24 +4332,6 @@
4308
4332
  },] }
4309
4333
  ];
4310
4334
 
4311
- var SdIdPipe = /** @class */ (function () {
4312
- function SdIdPipe() {
4313
- }
4314
- SdIdPipe.prototype.transform = function (value, item, column) {
4315
- var sdId = item.sdId, editorHandlerColumn = item.editorHandlerColumn, remain = __rest(item, ["sdId", "editorHandlerColumn"]);
4316
- item.editorHandlerColumn = item.editorHandlerColumn || {};
4317
- item.sdId = hash__default['default'](remain);
4318
- item.editorHandlerColumn[column.field] = Object.assign({}, item.editorHandlerColumn[column.field]);
4319
- return item.sdId;
4320
- };
4321
- return SdIdPipe;
4322
- }());
4323
- SdIdPipe.decorators = [
4324
- { type: core.Pipe, args: [{
4325
- name: 'sdId'
4326
- },] }
4327
- ];
4328
-
4329
4335
  var SdGridQuickAction = /** @class */ (function () {
4330
4336
  function SdGridQuickAction() {
4331
4337
  var _this = this;
@@ -4720,7 +4726,6 @@
4720
4726
  SdEditorHandlerRowPipe,
4721
4727
  SdEditorHandlerColumnPipe,
4722
4728
  SdEditorValidatePipe,
4723
- SdIdPipe,
4724
4729
  SdStyleRowCss,
4725
4730
  SdCellViewPipe,
4726
4731
  SdGroupPipe
@@ -4736,7 +4741,6 @@
4736
4741
  providers: [
4737
4742
  common.DatePipe,
4738
4743
  common.DecimalPipe,
4739
- SdIdPipe,
4740
4744
  table$1.CdkColumnDef,
4741
4745
  SdGridFilterService,
4742
4746
  SdGridConfigurationService,
@@ -4776,10 +4780,9 @@
4776
4780
  exports.ɵbl = SdEditorHandlerRowPipe;
4777
4781
  exports.ɵbm = SdEditorHandlerColumnPipe;
4778
4782
  exports.ɵbn = SdEditorValidatePipe;
4779
- exports.ɵbo = SdIdPipe;
4780
- exports.ɵbp = SdStyleRowCss;
4781
- exports.ɵbq = SdCellViewPipe;
4782
- exports.ɵbr = SdGroupPipe;
4783
+ exports.ɵbo = SdStyleRowCss;
4784
+ exports.ɵbp = SdCellViewPipe;
4785
+ exports.ɵbq = SdGroupPipe;
4783
4786
  exports.ɵc = SdPopupFilter;
4784
4787
  exports.ɵd = SdGridFilterService;
4785
4788
  exports.ɵe = SdPopupExport;