@tft/crispr-forms 12.2.21 → 12.2.22
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/tft-crispr-forms.umd.js +6 -3
- package/bundles/tft-crispr-forms.umd.js.map +1 -1
- package/esm2015/lib/material/autocomplete-field/autocomplete-field.component.js +6 -3
- package/esm2015/lib/material/autocomplete-field/autocomplete-field.component.js.map +1 -1
- package/esm2015/lib/models/autocomplete-field.config.js.map +1 -1
- package/esm2015/lib/models/crispr-field.config.js.map +1 -1
- package/fesm2015/tft-crispr-forms.js +6 -3
- package/fesm2015/tft-crispr-forms.js.map +1 -1
- package/lib/material/autocomplete-field/autocomplete-field.component.d.ts +1 -1
- package/lib/models/autocomplete-field.config.d.ts +2 -1
- package/lib/models/crispr-field.config.d.ts +3 -1
- package/package.json +1 -1
- package/tft-crispr-forms-12.2.22.tgz +0 -0
- package/tft-crispr-forms-12.2.21.tgz +0 -0
|
@@ -728,11 +728,14 @@
|
|
|
728
728
|
* @param options the array of options to search for option with corresponding value
|
|
729
729
|
*/
|
|
730
730
|
AutocompleteFieldComponent.prototype.displayLabel = function (options) {
|
|
731
|
+
if (this.config.displayWith) {
|
|
732
|
+
return this.config.displayWith(options);
|
|
733
|
+
}
|
|
731
734
|
return function (value) {
|
|
732
735
|
var _a;
|
|
733
|
-
|
|
734
|
-
? (_a = options.find(function (option) { return option.value === value; })) === null || _a === void 0 ? void 0 : _a.label
|
|
735
|
-
|
|
736
|
+
var label = !!options && Array.isArray(options)
|
|
737
|
+
? (_a = options.find(function (option) { return JSON.stringify(option.value) === JSON.stringify(value); })) === null || _a === void 0 ? void 0 : _a.label : value;
|
|
738
|
+
return label;
|
|
736
739
|
};
|
|
737
740
|
};
|
|
738
741
|
AutocompleteFieldComponent.prototype.handleSelect = function (event) {
|