@sd-angular/core 1.3.179 → 1.3.180

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.
@@ -2671,19 +2671,20 @@
2671
2671
  function SdCommandDisablePipe() {
2672
2672
  }
2673
2673
  SdCommandDisablePipe.prototype.transform = function (item, command) {
2674
- if (!(command === null || command === void 0 ? void 0 : command.disabled)) {
2675
- return false;
2676
- }
2677
- if (typeof (command.disabled) === 'boolean') {
2678
- return command.disabled;
2674
+ if ('disabled' in command) {
2675
+ var disabled = command.disabled;
2676
+ if (typeof disabled === 'boolean') {
2677
+ return disabled;
2678
+ }
2679
+ return disabled(item.data);
2679
2680
  }
2680
- return command.disabled(item);
2681
+ return false;
2681
2682
  };
2682
2683
  return SdCommandDisablePipe;
2683
2684
  }());
2684
2685
  SdCommandDisablePipe.decorators = [
2685
2686
  { type: core.Pipe, args: [{
2686
- name: 'commandDisable'
2687
+ name: 'commandDisable',
2687
2688
  },] }
2688
2689
  ];
2689
2690