@dyedurham/search-and-file-widget 2.0.56 → 2.0.57

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.
@@ -84548,7 +84548,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84548
84548
  const countriesOfCitizenship = citizenships?.map((c) => normalizeCountryCode(c)).join(", ") ?? "";
84549
84549
  const countriesOfResidence = normalizeCountryCode(isc.participant?._profile?.tax_residency?.country ?? "");
84550
84550
  const address = isc.addresses?.[0] || isc.parent_affiliation?.addresses?.[0];
84551
- return new FormGroup(__spreadValues({
84551
+ const form = new FormGroup(__spreadValues({
84552
84552
  [FormationFormControls.AffiliationName]: new FormControl({ value: name, disabled: true }),
84553
84553
  [FormationFormControls.Id]: new FormControl({ value: id, disabled: true }),
84554
84554
  [FederalFormationFormControl.AddressForService]: new FormControl(deltaData?.addressForService ?? "", Validators.required),
@@ -84560,6 +84560,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84560
84560
  [FederalFormationFormControl.ISCJointHoldingType]: new FormControl(this.toNullableNumber(deltaData?.jointHoldingType), requiredIfNotValue(FederalFormationFormControl.ISCTypeOfInterest, ISCTypeOfInterest.ControlWithoutShares)),
84561
84561
  [FederalFormationFormControl.ISCPercentageInterest]: new FormControl(this.toNullableNumber(deltaData?.percentageInterest), requiredIfNotValue(FederalFormationFormControl.ISCTypeOfInterest, ISCTypeOfInterest.ControlWithoutShares))
84562
84562
  }, this.generateAddressFormGroup(address)));
84563
+ [
84564
+ FederalFormationFormControl.ISCShareHoldingMethod,
84565
+ FederalFormationFormControl.ISCJointHoldingType,
84566
+ FederalFormationFormControl.ISCPercentageInterest
84567
+ ].forEach((controlName) => {
84568
+ form.get(controlName)?.updateValueAndValidity({ emitEvent: false });
84569
+ });
84570
+ return form;
84563
84571
  }
84564
84572
  static generateAddressFormGroup(address) {
84565
84573
  const config2 = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.0.56",
3
+ "version": "2.0.57",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {