@sd-angular/core 1.3.179 → 1.3.181

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
 
@@ -3347,7 +3348,7 @@
3347
3348
  hasGroup = true;
3348
3349
  }
3349
3350
  if (typeof (hidden) === 'function') {
3350
- if (!hidden(rowData)) {
3351
+ if (!hidden(rowData.data)) {
3351
3352
  flag = true;
3352
3353
  rowData.meta.selector.actions.push(key);
3353
3354
  if (isGrouped) {
@@ -3382,7 +3383,7 @@
3382
3383
  var hidden = action.hidden, isGrouped = action.isGrouped;
3383
3384
  var key = hash__default['default'](action);
3384
3385
  if (typeof (hidden) === 'function') {
3385
- if (!hidden(rowData)) {
3386
+ if (!hidden(rowData.data)) {
3386
3387
  rowData.meta.selector.actions.push(key);
3387
3388
  if (isGrouped) {
3388
3389
  groupedActions.push(key);