@dyedurham/search-and-file-widget 2.0.43 → 2.0.44
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 +8 -36
- package/package.json +11 -11
package/dnd-filing-shell.js
CHANGED
|
@@ -84426,7 +84426,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84426
84426
|
const citizenships = isc.participant?._profile?.["citizenships"];
|
|
84427
84427
|
const countriesOfCitizenship = citizenships?.map((c) => normalizeCountryCode(c)).join(", ") ?? "";
|
|
84428
84428
|
const countriesOfResidence = normalizeCountryCode(isc.participant?._profile?.tax_residency?.country ?? "");
|
|
84429
|
-
const address =
|
|
84429
|
+
const address = isc.addresses?.[0] || isc.parent_affiliation?.addresses?.[0];
|
|
84430
84430
|
return new FormGroup(__spreadValues({
|
|
84431
84431
|
[FormationFormControls.AffiliationName]: new FormControl({ value: name, disabled: true }),
|
|
84432
84432
|
[FormationFormControls.Id]: new FormControl({ value: id, disabled: true }),
|
|
@@ -84440,18 +84440,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84440
84440
|
[FederalFormationFormControl.ISCPercentageInterest]: new FormControl(deltaData?.percentageInterest ?? null, requiredIfNotValue(FederalFormationFormControl.ISCTypeOfInterest, ISCTypeOfInterest.ControlWithoutShares))
|
|
84441
84441
|
}, this.generateAddressFormGroup(address)));
|
|
84442
84442
|
}
|
|
84443
|
-
static getAffiliationAddress(affiliation) {
|
|
84444
|
-
const addresses = affiliation?.addresses?.filter((address) => this.hasAddressValue(address)) ?? [];
|
|
84445
|
-
const parentAddresses = affiliation?.parent_affiliation?.addresses?.filter((address) => this.hasAddressValue(address)) ?? [];
|
|
84446
|
-
const addressReferences = affiliation?._addresses?.filter((address) => this.hasAddressValue(address)) ?? [];
|
|
84447
|
-
return addresses[0] || parentAddresses[0] || addressReferences[0];
|
|
84448
|
-
}
|
|
84449
84443
|
static generateAddressFormGroup(address) {
|
|
84450
84444
|
const config2 = {};
|
|
84451
84445
|
if (address) {
|
|
84452
|
-
const
|
|
84453
|
-
const
|
|
84454
|
-
const streetNumberOnly = street.number;
|
|
84446
|
+
const streetOnly = getAddressComponent(address, "Street Only");
|
|
84447
|
+
const streetNumberOnly = getAddressComponent(address, "Street Number Only");
|
|
84455
84448
|
const { StreetName, StreetType: StreetType2, StreetDirection: StreetDirection2 } = parseStreetAddress(streetOnly);
|
|
84456
84449
|
const streetType = StreetType2 ? mapStreetType(StreetType2) : "";
|
|
84457
84450
|
const streetDirection = StreetDirection2 ? mapStreetDirection(StreetDirection2) : "";
|
|
@@ -84497,22 +84490,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84497
84490
|
}
|
|
84498
84491
|
return config2;
|
|
84499
84492
|
}
|
|
84500
|
-
static resolveStreet(address) {
|
|
84501
|
-
const componentStreetName = getAddressComponent(address, "Street Only");
|
|
84502
|
-
const componentStreetNumber = getAddressComponent(address, "Street Number Only");
|
|
84503
|
-
if (componentStreetName || componentStreetNumber) {
|
|
84504
|
-
return {
|
|
84505
|
-
number: componentStreetNumber,
|
|
84506
|
-
name: componentStreetName
|
|
84507
|
-
};
|
|
84508
|
-
}
|
|
84509
|
-
const line = address.street?.trim() || address.display?.line1?.trim() || "";
|
|
84510
|
-
const match = /^(\d[\w-]*)\s+(.+)$/.exec(line);
|
|
84511
|
-
return match ? { number: match[1], name: match[2] } : { number: "", name: line };
|
|
84512
|
-
}
|
|
84513
|
-
static hasAddressValue(address) {
|
|
84514
|
-
return Boolean(address?.components?.some((component) => component.value?.trim()) || address?.street?.trim() || address?.display?.line1?.trim() || address?.display?.line2?.trim() || address?.city?.trim() || address?.province_state?.trim() || address?.country?.trim() || address?.postal_zip?.trim());
|
|
84515
|
-
}
|
|
84516
84493
|
};
|
|
84517
84494
|
}
|
|
84518
84495
|
});
|
|
@@ -85030,15 +85007,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85030
85007
|
const map2 = /* @__PURE__ */ new Map();
|
|
85031
85008
|
const individualsWithSignificantControl = this.getSelectableIndividualsWithSignificantControl(affiliations);
|
|
85032
85009
|
for (const individual of individualsWithSignificantControl) {
|
|
85033
|
-
const
|
|
85034
|
-
...individual.addresses ?? [],
|
|
85035
|
-
...individual.parent_affiliation?.addresses ?? []
|
|
85036
|
-
];
|
|
85037
|
-
const resolvedAddress = FederalFormHelper.getAffiliationAddress(individual);
|
|
85038
|
-
const addressOptions = (addresses.length ? addresses : resolvedAddress ? [resolvedAddress] : []).map((address) => ({
|
|
85010
|
+
const addressOptions = individual.addresses.map((address) => ({
|
|
85039
85011
|
label: this.formatAddressLabel(address),
|
|
85040
85012
|
value: address.uid
|
|
85041
|
-
}))
|
|
85013
|
+
}));
|
|
85042
85014
|
map2.set(individual._id, addressOptions);
|
|
85043
85015
|
}
|
|
85044
85016
|
return map2;
|
|
@@ -87964,9 +87936,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87964
87936
|
}) : void 0,
|
|
87965
87937
|
Directors: directors.map((d) => transformDirector(d, directorsDelta[d.participant._id], consentToProvideEmails)),
|
|
87966
87938
|
Incorporators: incorporators.map((i) => transformIncorporator(i)),
|
|
87967
|
-
// Cover letter is the Contact's: name, email and phone
|
|
87968
|
-
//
|
|
87969
|
-
CoverLetter: createCoverLetter2(officialBusinessEmail, contactPerson, formatPhone(pickPhone(contactPerson))
|
|
87939
|
+
// Cover letter is the selected Contact's: name, email and phone all come from that person.
|
|
87940
|
+
// Never the incorporator/signatory's phone (officerPhone) — it is empty for a body corporate.
|
|
87941
|
+
CoverLetter: createCoverLetter2(officialBusinessEmail, contactPerson, formatPhone(pickPhone(contactPerson))),
|
|
87970
87942
|
DirectorNumberType: isFixedDirectors ? ECoreDirectorNumberType.Fixed : ECoreDirectorNumberType.Range
|
|
87971
87943
|
}, isFixedDirectors ? { FixedNumberOfDirectors: minDirectors } : {
|
|
87972
87944
|
MinimumNumberOfDirectors: minDirectors || 1,
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dyedurham/search-and-file-widget",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dnd-filing-shell.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
|
-
"author": "",
|
|
10
|
-
"license": "ISC"
|
|
11
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dyedurham/search-and-file-widget",
|
|
3
|
+
"version": "2.0.44",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dnd-filing-shell.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC"
|
|
11
|
+
}
|