chrv-components 1.12.241 → 1.12.243

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.
Binary file
@@ -1695,7 +1695,11 @@ class DataListComponent {
1695
1695
  }
1696
1696
  else {
1697
1697
  return (item) => {
1698
- if ('toString' in item && typeof item['toString'] == 'function')
1698
+ if (item !== null &&
1699
+ item !== undefined &&
1700
+ typeof item == 'object' &&
1701
+ 'toString' in item &&
1702
+ typeof item['toString'] == 'function')
1699
1703
  return item.toString();
1700
1704
  else
1701
1705
  String(item);
@@ -5050,7 +5054,11 @@ class ChrSearchSelectInputComponent extends ChrInputComponent {
5050
5054
  super();
5051
5055
  this.data = input([], /* @ts-ignore */
5052
5056
  ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
5053
- this.display = input((v) => 'toString' in v && typeof v['toString'] == 'function'
5057
+ this.display = input((v) => v !== null &&
5058
+ v !== undefined &&
5059
+ typeof v == 'object' &&
5060
+ 'toString' in v &&
5061
+ typeof v['toString'] == 'function'
5054
5062
  ? v.toString()
5055
5063
  : String(v), /* @ts-ignore */
5056
5064
  ...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
@@ -5102,7 +5110,11 @@ class ChrTagSelectInputComponent extends ChrInputComponent {
5102
5110
  super();
5103
5111
  this.data = input([], /* @ts-ignore */
5104
5112
  ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
5105
- this.display = input((v) => 'toString' in v && typeof v['toString'] == 'function'
5113
+ this.display = input((v) => v !== null &&
5114
+ v !== undefined &&
5115
+ typeof v == 'object' &&
5116
+ 'toString' in v &&
5117
+ typeof v['toString'] == 'function'
5106
5118
  ? v.toString()
5107
5119
  : String(v), /* @ts-ignore */
5108
5120
  ...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));