ca-components 1.1.9993 → 1.1.9994
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/esm2022/lib/components/ca-input-address-dropdown/ca-input-address-dropdown.component.mjs +6 -5
- package/esm2022/lib/components/ca-input-dropdown/ca-input-dropdown.component.mjs +2 -1
- package/fesm2022/ca-components.mjs +6 -4
- package/fesm2022/ca-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -11898,6 +11898,7 @@ class CaInputDropdownComponent {
|
|
|
11898
11898
|
return this.superControl.control;
|
|
11899
11899
|
}
|
|
11900
11900
|
writeValue(value) {
|
|
11901
|
+
console.log("WRITE VALUE", value);
|
|
11901
11902
|
const findOption = this._options.find((option) => option[this.optionValue] == value);
|
|
11902
11903
|
if (findOption) {
|
|
11903
11904
|
this.setDropdownValue(findOption);
|
|
@@ -12710,11 +12711,12 @@ class CaInputAddressDropdownComponent {
|
|
|
12710
12711
|
this.observableInputSearch$ = this.observableInputSearch.asObservable();
|
|
12711
12712
|
this.superControl.valueAccessor = this;
|
|
12712
12713
|
}
|
|
12713
|
-
ngAfterContentInit() {
|
|
12714
|
-
}
|
|
12714
|
+
ngAfterContentInit() { }
|
|
12715
12715
|
writeValue(address) {
|
|
12716
|
-
|
|
12717
|
-
|
|
12716
|
+
if (address) {
|
|
12717
|
+
this.inputDropdown?.setDropdownValue(address, 'address', 'address');
|
|
12718
|
+
this.onChange(address?.address);
|
|
12719
|
+
}
|
|
12718
12720
|
}
|
|
12719
12721
|
registerOnChange(fn) {
|
|
12720
12722
|
this.onChange = fn;
|