@dyedurham/search-and-file-widget 2.1.1 → 2.1.2
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/dnd-filing-shell.js +16 -11
- package/package.json +1 -1
package/dnd-filing-shell.js
CHANGED
|
@@ -84607,19 +84607,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84607
84607
|
config2[BCFormationFormGroups.CorporationDetails] = this.generateCorporationDetailsFormGroup(task, delta?.entityDetails, companyEmail);
|
|
84608
84608
|
config2[BCFormationFormGroups.RegisteredOfficeAddress] = new FormGroup({
|
|
84609
84609
|
[BCFormationFormControls.MailingAddress]: new FormControl({
|
|
84610
|
-
value: this.formatFullAddress(this.pickAddress(registeredOffice?.addresses, "Mailing")),
|
|
84610
|
+
value: this.formatFullAddress(this.pickAddress(registeredOffice?.addresses, "Mailing", true)),
|
|
84611
84611
|
disabled: true
|
|
84612
84612
|
}),
|
|
84613
84613
|
[BCFormationFormControls.DeliveryAddress]: new FormControl({
|
|
84614
|
-
value: this.formatFullAddress(this.pickAddress(registeredOffice?.addresses, "Delivery")),
|
|
84614
|
+
value: this.formatFullAddress(this.pickAddress(registeredOffice?.addresses, "Delivery", true)),
|
|
84615
84615
|
disabled: true
|
|
84616
84616
|
}),
|
|
84617
84617
|
[BCFormationFormControls.RecordsOfficeMailingAddress]: new FormControl({
|
|
84618
|
-
value: this.formatFullAddress(this.pickAddress(recordsOffice?.addresses, "Mailing")),
|
|
84618
|
+
value: this.formatFullAddress(this.pickAddress(recordsOffice?.addresses, "Mailing", true)),
|
|
84619
84619
|
disabled: true
|
|
84620
84620
|
}),
|
|
84621
84621
|
[BCFormationFormControls.RecordsOfficeDeliveryAddress]: new FormControl({
|
|
84622
|
-
value: this.formatFullAddress(this.pickAddress(recordsOffice?.addresses, "Delivery")),
|
|
84622
|
+
value: this.formatFullAddress(this.pickAddress(recordsOffice?.addresses, "Delivery", true)),
|
|
84623
84623
|
disabled: true
|
|
84624
84624
|
})
|
|
84625
84625
|
});
|
|
@@ -84763,7 +84763,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84763
84763
|
// Not shown on screen: taken from the registry ID when it satisfies the BC password rule
|
|
84764
84764
|
// (otherwise empty). No validators here, as the user cannot fix it; the payload pre-flight
|
|
84765
84765
|
// check (`findBCRequestIssues`) reports an unusable value.
|
|
84766
|
-
[BCFormationFormControls.CompanyPassword]: new FormControl(
|
|
84766
|
+
[BCFormationFormControls.CompanyPassword]: new FormControl(
|
|
84767
|
+
// `||`, not `??`: a delta saved while the registry ID was invalid holds '' and must not mask the corrected ID.
|
|
84768
|
+
deltaData?.password || this.suggestPassword(task.entity._profile.registry_id)
|
|
84769
|
+
),
|
|
84767
84770
|
[BCFormationFormControls.UsesNameTranslation]: new FormControl(usesNameTranslation),
|
|
84768
84771
|
[BCFormationFormControls.NameTranslations]: new FormArray(translationRows)
|
|
84769
84772
|
});
|
|
@@ -84843,11 +84846,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84843
84846
|
disabled: true
|
|
84844
84847
|
}),
|
|
84845
84848
|
[BCFormationFormControls.MailingAddress]: new FormControl({
|
|
84846
|
-
value: this.formatFullAddress(this.pickAddress(addresses, "Mailing")),
|
|
84849
|
+
value: this.formatFullAddress(this.pickAddress(addresses, "Mailing", true)),
|
|
84847
84850
|
disabled: true
|
|
84848
84851
|
}),
|
|
84849
84852
|
[BCFormationFormControls.DeliveryAddress]: new FormControl({
|
|
84850
|
-
value: this.formatFullAddress(this.pickAddress(addresses, "Delivery")),
|
|
84853
|
+
value: this.formatFullAddress(this.pickAddress(addresses, "Delivery", true)),
|
|
84851
84854
|
disabled: true
|
|
84852
84855
|
})
|
|
84853
84856
|
});
|
|
@@ -84880,13 +84883,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84880
84883
|
}
|
|
84881
84884
|
/**
|
|
84882
84885
|
* Athennian stores one address per `location_type` ("Mailing", "Delivery", …).
|
|
84883
|
-
* Falls back to the first address so both lines render when only one exists
|
|
84886
|
+
* Falls back to the first address so both lines render when only one exists, unless
|
|
84887
|
+
* `exact` is set: then only an address of that exact type is returned.
|
|
84884
84888
|
*/
|
|
84885
|
-
static pickAddress(addresses, locationType) {
|
|
84889
|
+
static pickAddress(addresses, locationType, exact = false) {
|
|
84886
84890
|
if (!addresses?.length) {
|
|
84887
84891
|
return void 0;
|
|
84888
84892
|
}
|
|
84889
|
-
|
|
84893
|
+
const match = addresses.find((a) => (a.computed_location_type ?? a.location_type)?.toLowerCase() === locationType.toLowerCase());
|
|
84894
|
+
return match ?? (exact ? void 0 : addresses[0]);
|
|
84890
84895
|
}
|
|
84891
84896
|
};
|
|
84892
84897
|
}
|
|
@@ -86358,7 +86363,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86358
86363
|
init_BritishColumbiaConstants();
|
|
86359
86364
|
init_british_columbia_formation_form_helper();
|
|
86360
86365
|
BC_NAME_TYPE_OPTIONS = Object.values(BCNameType).filter((v) => typeof v === "number").map((v) => ({ label: BCNameTypeLabel[v], value: v }));
|
|
86361
|
-
labelledValue2 = (label, value, t) => `<span class="body-1-semibold">${t(label)}:</span> ${value || t("
|
|
86366
|
+
labelledValue2 = (label, value, t) => `<span class="body-1-semibold">${t(label)}:</span> ${value || t("None")}`;
|
|
86362
86367
|
isNamed = (form) => form.get(BCFormationFormControls.CorporationNameType)?.value === BCNameType.Named;
|
|
86363
86368
|
BC_FORMATION_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS = [
|
|
86364
86369
|
{
|