@sd-angular/core 0.0.964 → 0.0.965

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.
Files changed (24) hide show
  1. package/bundles/sd-angular-core-grid-material.umd.js +12 -10
  2. package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
  3. package/bundles/sd-angular-core-grid-material.umd.min.js +1 -1
  4. package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
  5. package/bundles/sd-angular-core-modal.umd.js +5 -1
  6. package/bundles/sd-angular-core-modal.umd.js.map +1 -1
  7. package/bundles/sd-angular-core-modal.umd.min.js +1 -1
  8. package/bundles/sd-angular-core-modal.umd.min.js.map +1 -1
  9. package/esm2015/grid-material/src/lib/grid-material.component.js +5 -3
  10. package/esm2015/grid-material/src/lib/models/grid-editor.model.js +1 -1
  11. package/esm2015/grid-material/src/lib/pipes/editor-handler-column.pipe.js +4 -4
  12. package/esm2015/grid-material/src/lib/pipes/editor-handler-row.pipe.js +7 -5
  13. package/esm2015/grid-material/src/lib/services/grid-configuration.service.js +3 -3
  14. package/esm2015/modal/src/lib/modal/modal.component.js +7 -3
  15. package/fesm2015/sd-angular-core-grid-material.js +12 -10
  16. package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
  17. package/fesm2015/sd-angular-core-modal.js +6 -2
  18. package/fesm2015/sd-angular-core-modal.js.map +1 -1
  19. package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
  20. package/grid-material/src/lib/models/grid-editor.model.d.ts +0 -2
  21. package/modal/sd-angular-core-modal.metadata.json +1 -1
  22. package/modal/src/lib/modal/modal.component.d.ts +3 -2
  23. package/package.json +1 -1
  24. package/{sd-angular-core-0.0.964.tgz → sd-angular-core-0.0.965.tgz} +0 -0
@@ -1481,7 +1481,7 @@
1481
1481
  multipleHeader: false
1482
1482
  };
1483
1483
  var _c = gridOption || {}, selection = _c.selection, commands = _c.commands, editor = _c.editor;
1484
- if ((editor === null || editor === void 0 ? void 0 : editor.addable) || ((editor === null || editor === void 0 ? void 0 : editor.type) === 'inline' && (editor === null || editor === void 0 ? void 0 : editor.removable)) || ((editor === null || editor === void 0 ? void 0 : editor.type) === 'focus' && (editor === null || editor === void 0 ? void 0 : editor.editable))) {
1484
+ if ((editor === null || editor === void 0 ? void 0 : editor.addable) || ((editor === null || editor === void 0 ? void 0 : editor.type) === 'inline' && (editor === null || editor === void 0 ? void 0 : editor.removable)) || ((editor === null || editor === void 0 ? void 0 : editor.type) === 'focus' && (editor === null || editor === void 0 ? void 0 : editor.disabled))) {
1485
1485
  result.firstHeaders.push(__classPrivateFieldGet(_this, _COLUMNS).EDITORVALIDATION);
1486
1486
  result.displayedColumns.push(__classPrivateFieldGet(_this, _COLUMNS).EDITORVALIDATION);
1487
1487
  }
@@ -1489,7 +1489,7 @@
1489
1489
  result.firstHeaders.push(__classPrivateFieldGet(_this, _COLUMNS).SELECTION);
1490
1490
  result.displayedColumns.push(__classPrivateFieldGet(_this, _COLUMNS).SELECTION);
1491
1491
  }
1492
- if ((editor === null || editor === void 0 ? void 0 : editor.addable) || ((editor === null || editor === void 0 ? void 0 : editor.type) === 'inline' && (editor === null || editor === void 0 ? void 0 : editor.removable)) || ((editor === null || editor === void 0 ? void 0 : editor.type) === 'focus' && (editor === null || editor === void 0 ? void 0 : editor.editable)) || ((editor === null || editor === void 0 ? void 0 : editor.type) === 'popup' && (editor === null || editor === void 0 ? void 0 : editor.editable))) {
1492
+ if ((editor === null || editor === void 0 ? void 0 : editor.addable) || ((editor === null || editor === void 0 ? void 0 : editor.type) === 'inline' && (editor === null || editor === void 0 ? void 0 : editor.removable)) || ((editor === null || editor === void 0 ? void 0 : editor.type) === 'focus' && (editor === null || editor === void 0 ? void 0 : editor.disabled)) || ((editor === null || editor === void 0 ? void 0 : editor.type) === 'popup' && (editor === null || editor === void 0 ? void 0 : editor.disabled))) {
1493
1493
  result.firstHeaders.push(__classPrivateFieldGet(_this, _COLUMNS).EDITOR);
1494
1494
  result.displayedColumns.push(__classPrivateFieldGet(_this, _COLUMNS).EDITOR);
1495
1495
  }
@@ -1966,7 +1966,8 @@
1966
1966
  // this.isHiddenPaginator = this.filterInfo.pageNumber === 0 && this.total <= this.filterInfo.pageSize;
1967
1967
  this.items.forEach(function (item) {
1968
1968
  item.originItem = Object.assign({}, item);
1969
- item.sdId = hash__namespace(item);
1969
+ var sdId = item.sdId, remain = __rest(item, ["sdId"]);
1970
+ item.sdId = hash__namespace(remain);
1970
1971
  });
1971
1972
  return [4 /*yield*/, ((_c = (_b = (_a = this.gridOption) === null || _a === void 0 ? void 0 : _a.reload) === null || _b === void 0 ? void 0 : _b.onReload) === null || _c === void 0 ? void 0 : _c.call(_b, this.items))];
1972
1973
  case 1:
@@ -2535,7 +2536,8 @@
2535
2536
  }
2536
2537
  };
2537
2538
  this.reloadItem = function (item) {
2538
- item.sdId = hash__namespace(item);
2539
+ var sdId = item.sdId, remain = __rest(item, ["sdId"]);
2540
+ item.sdId = hash__namespace(remain);
2539
2541
  };
2540
2542
  this.detectChanges = function () { return _this.ref.detectChanges(); };
2541
2543
  }
@@ -3838,16 +3840,16 @@
3838
3840
  if (isDisabled) {
3839
3841
  return null;
3840
3842
  }
3841
- var editable = editor.editable;
3842
- item.editorHandlerRow = Object.assign(Object.assign({}, item.editorHandlerRow), { visible: !!status, editable: !status && (typeof (editable) === 'function' ? editable(item) : editable), removable: false, savable: !!status, cancelable: !!status });
3843
+ item.editorHandlerRow = Object.assign(Object.assign({}, item.editorHandlerRow), { visible: !!status, editable: true, removable: false, savable: !!status, cancelable: !!status });
3843
3844
  }
3844
3845
  else if (editor.type === 'popup') {
3845
3846
  if (isDisabled) {
3846
3847
  return null;
3847
3848
  }
3848
- var editable = editor.editable;
3849
- item.editorHandlerRow = Object.assign(Object.assign({}, item.editorHandlerRow), { visible: false, editable: !status && (typeof (editable) === 'function' ? editable(item) : editable), removable: false, savable: false, cancelable: false });
3849
+ item.editorHandlerRow = Object.assign(Object.assign({}, item.editorHandlerRow), { visible: false, editable: true, removable: false, savable: false, cancelable: false });
3850
3850
  }
3851
+ var sdId = item.sdId, remain = __rest(item, ["sdId"]);
3852
+ item.sdId = hash__default['default'](remain);
3851
3853
  return item.editorHandlerRow;
3852
3854
  };
3853
3855
  return SdEditorHandlerRowPipe;
@@ -3877,7 +3879,6 @@
3877
3879
  }
3878
3880
  SdEditorHandlerColumnPipe.prototype.transform = function (value, item, column, gridOption) {
3879
3881
  var e_1, _c;
3880
- console.log(value, column.field);
3881
3882
  if (column.type === 'children' || column.type === 'children-col') {
3882
3883
  return;
3883
3884
  }
@@ -3897,7 +3898,8 @@
3897
3898
  }
3898
3899
  finally { if (e_1) throw e_1.error; }
3899
3900
  }
3900
- item.sdId = hash__namespace(item);
3901
+ var sdId = item.sdId, remain = __rest(item, ["sdId"]);
3902
+ item.sdId = hash__namespace(remain);
3901
3903
  return true;
3902
3904
  };
3903
3905
  return SdEditorHandlerColumnPipe;