@ts-core/angular 13.1.8 → 13.1.9
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/component/cdk-table/cell/CdkTableCellValuePipe.d.ts +1 -1
- package/esm2020/component/cdk-table/cell/CdkTableCellValuePipe.mjs +11 -13
- package/fesm2015/ts-core-angular.mjs +10 -12
- package/fesm2015/ts-core-angular.mjs.map +1 -1
- package/fesm2020/ts-core-angular.mjs +10 -12
- package/fesm2020/ts-core-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7737,35 +7737,33 @@ class CdkTableCellValuePipe extends DestroyableContainer {
|
|
|
7737
7737
|
// --------------------------------------------------------------------------
|
|
7738
7738
|
transform(item, column) {
|
|
7739
7739
|
if (item === this.lastItem && column === this.lastColumn) {
|
|
7740
|
-
return this.
|
|
7740
|
+
return this.lastValue;
|
|
7741
7741
|
}
|
|
7742
|
-
this.formattedValue = CdkTableCellValuePipe.PENDING_SYMBOL;
|
|
7743
7742
|
if (_.isNil(column.format)) {
|
|
7744
|
-
this.
|
|
7745
|
-
return this.
|
|
7743
|
+
this.lastValue = item[column.name];
|
|
7744
|
+
return this.lastValue;
|
|
7746
7745
|
}
|
|
7747
7746
|
this.lastItem = item;
|
|
7748
7747
|
this.lastColumn = column;
|
|
7748
|
+
this.lastValue = CdkTableCellValuePipe.PENDING_SYMBOL;
|
|
7749
7749
|
let result = column.format(item, column);
|
|
7750
7750
|
if (!(result instanceof Promise)) {
|
|
7751
|
-
this.
|
|
7752
|
-
return this.
|
|
7751
|
+
this.lastValue = result;
|
|
7752
|
+
return this.lastValue;
|
|
7753
7753
|
}
|
|
7754
7754
|
result
|
|
7755
7755
|
.then(item => {
|
|
7756
|
-
|
|
7757
|
-
this.formattedValue = item;
|
|
7758
|
-
}
|
|
7756
|
+
this.lastValue = item;
|
|
7759
7757
|
})
|
|
7760
7758
|
.catch(error => {
|
|
7761
|
-
this.
|
|
7759
|
+
this.lastValue = CdkTableCellValuePipe.ERROR_SYMBOL;
|
|
7762
7760
|
})
|
|
7763
7761
|
.finally(() => {
|
|
7764
7762
|
if (!_.isNil(this.detection)) {
|
|
7765
7763
|
this.detection.markForCheck();
|
|
7766
7764
|
}
|
|
7767
7765
|
});
|
|
7768
|
-
return this.
|
|
7766
|
+
return this.lastValue;
|
|
7769
7767
|
}
|
|
7770
7768
|
destroy() {
|
|
7771
7769
|
if (this.isDestroyed) {
|
|
@@ -7774,8 +7772,8 @@ class CdkTableCellValuePipe extends DestroyableContainer {
|
|
|
7774
7772
|
super.destroy();
|
|
7775
7773
|
this.detection = null;
|
|
7776
7774
|
this.lastItem = null;
|
|
7775
|
+
this.lastValue = null;
|
|
7777
7776
|
this.lastColumn = null;
|
|
7778
|
-
this.formattedValue = null;
|
|
7779
7777
|
}
|
|
7780
7778
|
}
|
|
7781
7779
|
// --------------------------------------------------------------------------
|