chrv-components 1.12.240 → 1.12.242
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,9 @@ class DataListComponent {
|
|
|
1695
1695
|
}
|
|
1696
1696
|
else {
|
|
1697
1697
|
return (item) => {
|
|
1698
|
-
if (
|
|
1698
|
+
if (typeof item == 'object' &&
|
|
1699
|
+
'toString' in item &&
|
|
1700
|
+
typeof item['toString'] == 'function')
|
|
1699
1701
|
return item.toString();
|
|
1700
1702
|
else
|
|
1701
1703
|
String(item);
|
|
@@ -5050,7 +5052,11 @@ class ChrSearchSelectInputComponent extends ChrInputComponent {
|
|
|
5050
5052
|
super();
|
|
5051
5053
|
this.data = input([], /* @ts-ignore */
|
|
5052
5054
|
...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
5053
|
-
this.display = input((v) => v
|
|
5055
|
+
this.display = input((v) => typeof v == 'object' &&
|
|
5056
|
+
'toString' in v &&
|
|
5057
|
+
typeof v['toString'] == 'function'
|
|
5058
|
+
? v.toString()
|
|
5059
|
+
: String(v), /* @ts-ignore */
|
|
5054
5060
|
...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
|
|
5055
5061
|
/**
|
|
5056
5062
|
* Force the value to be null when the user types.
|
|
@@ -5100,7 +5106,11 @@ class ChrTagSelectInputComponent extends ChrInputComponent {
|
|
|
5100
5106
|
super();
|
|
5101
5107
|
this.data = input([], /* @ts-ignore */
|
|
5102
5108
|
...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
5103
|
-
this.display = input((v) => v
|
|
5109
|
+
this.display = input((v) => typeof v == 'object' &&
|
|
5110
|
+
'toString' in v &&
|
|
5111
|
+
typeof v['toString'] == 'function'
|
|
5112
|
+
? v.toString()
|
|
5113
|
+
: String(v), /* @ts-ignore */
|
|
5104
5114
|
...(ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []));
|
|
5105
5115
|
this.selectedItems = computed(() => {
|
|
5106
5116
|
const val = this.value();
|