@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.
- package/bundles/sd-angular-core-table.umd.js +8 -7
- package/bundles/sd-angular-core-table.umd.js.map +1 -1
- package/bundles/sd-angular-core-table.umd.min.js +1 -1
- package/bundles/sd-angular-core-table.umd.min.js.map +1 -1
- package/esm2015/table/src/lib/pipes/command-disable.pipe.js +9 -8
- package/fesm2015/sd-angular-core-table.js +8 -7
- package/fesm2015/sd-angular-core-table.js.map +1 -1
- package/package.json +1 -1
- package/{sd-angular-core-1.3.179.tgz → sd-angular-core-1.3.180.tgz} +0 -0
- package/table/sd-angular-core-table.metadata.json +1 -1
- package/table/src/lib/pipes/command-disable.pipe.d.ts +2 -1
|
@@ -2671,19 +2671,20 @@
|
|
|
2671
2671
|
function SdCommandDisablePipe() {
|
|
2672
2672
|
}
|
|
2673
2673
|
SdCommandDisablePipe.prototype.transform = function (item, command) {
|
|
2674
|
-
if (
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
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
|
|
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
|
|