@dyedurham/search-and-file-widget 2.1.38 → 2.1.39

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.
@@ -84630,6 +84630,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84630
84630
  const registeredOffice = findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
84631
84631
  const registeredOfficeAddresses = collectSharedAddresses(affiliations, AddressTitle2.REGISTERED_OFFICE);
84632
84632
  const recordsOfficeAddresses = collectSharedAddresses(affiliations, AddressTitle2.RECORDS_OFFICE);
84633
+ const recordsOfficeMailing = this.pickAddress(recordsOfficeAddresses, "Mailing", true) ?? this.pickAddress(registeredOfficeAddresses, "Mailing", true);
84633
84634
  const companyEmail = task.entity.emailOptions?.[0]?.value ?? registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.communications?.find((c) => c.type === "Business Email")?.value ?? // Email only: the entity may carry its Business Email on another address (e.g. Head
84634
84635
  // Office) when no Registered Office shared address exists.
84635
84636
  task.entity.addresses?.flatMap((a) => a.communications ?? []).find((c) => c.type === "Business Email")?.value ?? "";
@@ -84645,12 +84646,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84645
84646
  value: this.formatFullAddress(this.pickAddress(registeredOfficeAddresses, "Delivery", true)),
84646
84647
  disabled: true
84647
84648
  }),
84649
+ // A Records Office address that is not provided is filed as "same as" (the Mailing one
84650
+ // follows the Registered Office, the Delivery one follows the Records Office Mailing), so
84651
+ // show the address the filing and the draft will use instead of "None".
84648
84652
  [BCFormationFormControls.RecordsOfficeMailingAddress]: new FormControl({
84649
- value: this.formatFullAddress(this.pickAddress(recordsOfficeAddresses, "Mailing", true)),
84653
+ value: this.formatFullAddress(recordsOfficeMailing),
84650
84654
  disabled: true
84651
84655
  }),
84652
84656
  [BCFormationFormControls.RecordsOfficeDeliveryAddress]: new FormControl({
84653
- value: this.formatFullAddress(this.pickAddress(recordsOfficeAddresses, "Delivery", true)),
84657
+ value: this.formatFullAddress(this.pickAddress(recordsOfficeAddresses, "Delivery", true) ?? recordsOfficeMailing),
84654
84658
  disabled: true
84655
84659
  })
84656
84660
  });
@@ -85031,7 +85035,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85031
85035
  }
85032
85036
  static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber, savedClientMatterNumber) {
85033
85037
  return new FormGroup({
85034
- [Controls.ClientMatterNumber]: new FormControl(savedClientMatterNumber !== void 0 ? savedClientMatterNumber ?? "" : clientMatterNumber ?? ""),
85038
+ [Controls.ClientMatterNumber]: new FormControl(clientMatterNumber ?? savedClientMatterNumber ?? ""),
85035
85039
  [Controls.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
85036
85040
  });
85037
85041
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.1.38",
3
+ "version": "2.1.39",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {
@@ -8,4 +8,4 @@
8
8
  },
9
9
  "author": "",
10
10
  "license": "ISC"
11
- }
11
+ }