@dev-tcloud/tcloud-ui 0.0.67 → 0.0.68

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.
@@ -1218,7 +1218,7 @@ class TCloudUiDataListComponent {
1218
1218
  }
1219
1219
  get disabled() { return this._disabled; }
1220
1220
  set loading(v) {
1221
- if (v) {
1221
+ if (typeof v === 'boolean' && v !== this._loading) {
1222
1222
  this._loading = v;
1223
1223
  this.selected_description = '';
1224
1224
  this.selected_item = '';
@@ -1972,18 +1972,23 @@ class RespectivePipe {
1972
1972
  }
1973
1973
  transform(v) {
1974
1974
  if (v !== undefined && v !== null && v !== '') {
1975
- for (let i = 0; i < (this.map).length; i++) {
1976
- let custom_v = v;
1977
- custom_v = (custom_v).toLowerCase();
1978
- custom_v = (custom_v).trim();
1979
- custom_v = (custom_v).replace(/\_/g, "-");
1980
- const current_key = (this.map[i].key).replace(/\_/g, "-");
1981
- if ((custom_v).toLowerCase() === current_key) {
1982
- return this.map[i].value;
1975
+ if (typeof v === 'string') {
1976
+ for (let i = 0; i < (this.map).length; i++) {
1977
+ let custom_v = v;
1978
+ custom_v = (custom_v).toLowerCase();
1979
+ custom_v = (custom_v).trim();
1980
+ custom_v = (custom_v).replace(/\_/g, "-");
1981
+ const current_key = (this.map[i].key).replace(/\_/g, "-");
1982
+ if ((custom_v).toLowerCase() === current_key) {
1983
+ return `${this.map[i].value}`;
1984
+ }
1983
1985
  }
1984
1986
  }
1987
+ else {
1988
+ return '';
1989
+ }
1985
1990
  }
1986
- return v;
1991
+ return `${v}`;
1987
1992
  }
1988
1993
  }
1989
1994
  RespectivePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: RespectivePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });