@dyedurham/search-and-file-widget 2.0.7 → 2.0.9
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 +22 -6
- package/package.json +1 -1
package/dnd-filing-shell.js
CHANGED
|
@@ -83548,7 +83548,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
83548
83548
|
options: FEDERAL_EXCLUSION_REASON_OPTIONS,
|
|
83549
83549
|
required: true,
|
|
83550
83550
|
class: "span-12",
|
|
83551
|
-
isVisible: (form) =>
|
|
83551
|
+
isVisible: (form) => [
|
|
83552
|
+
ISCOptions.ListISC,
|
|
83553
|
+
ISCOptions.Excluded
|
|
83554
|
+
].includes(Number(form.get(FederalFormationFormControl.SignificantControlType)?.value))
|
|
83552
83555
|
}
|
|
83553
83556
|
];
|
|
83554
83557
|
FEDERAL_FORMATION_FORM_ADDITIONAL_INFORMATION = [
|
|
@@ -83665,7 +83668,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
83665
83668
|
return [
|
|
83666
83669
|
{
|
|
83667
83670
|
type: FormType.Text,
|
|
83668
|
-
dynamicLabel: (form, t) => `${t("Date Of Birth")}: ${form.get(FederalFormationFormControl.DateOfBirth)?.value}`,
|
|
83671
|
+
dynamicLabel: (form, t) => `${t("Date Of Birth")}: ${form.get(FederalFormationFormControl.DateOfBirth)?.value ?? ""}`,
|
|
83669
83672
|
formControlName: FederalFormationFormControl.DateOfBirth,
|
|
83670
83673
|
class: "span-12"
|
|
83671
83674
|
},
|
|
@@ -84330,7 +84333,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84330
84333
|
[FormationFormControls.AffiliationName]: new FormControl({ value: name, disabled: true }),
|
|
84331
84334
|
[FormationFormControls.Id]: new FormControl({ value: id, disabled: true }),
|
|
84332
84335
|
[FederalFormationFormControl.AddressForService]: new FormControl(deltaData?.addressForService ?? "", Validators.required),
|
|
84333
|
-
[FederalFormationFormControl.DateOfBirth]: new FormControl(isc.participant._profile.date_of_birth
|
|
84336
|
+
[FederalFormationFormControl.DateOfBirth]: new FormControl(isc.participant._profile.date_of_birth),
|
|
84334
84337
|
[FederalFormationFormControl.CountriesOfCitizenship]: new FormControl(countriesOfCitizenship),
|
|
84335
84338
|
[FederalFormationFormControl.CountriesOfResidence]: new FormControl(countriesOfResidence),
|
|
84336
84339
|
[FederalFormationFormControl.ISCTypeOfInterest]: new FormControl(deltaData?.typeOfInterest ?? null, Validators.required),
|
|
@@ -84799,7 +84802,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84799
84802
|
this.selectedIndividualWithSignificant.set(selectedIndividualWithSignificant);
|
|
84800
84803
|
this.isListISC.set(this.isListIndividualsWithSignificantControl(formRawValue[this.groups.SignificantControl]?.[this.controls.SignificantControlType]));
|
|
84801
84804
|
form?.valueChanges.pipe(takeUntilDestroyed(this.dr)).subscribe((val) => {
|
|
84802
|
-
this.
|
|
84805
|
+
const isListIndividualsWithSignificantControl = this.isListIndividualsWithSignificantControl(val[this.groups.SignificantControl]?.[this.controls.SignificantControlType]);
|
|
84806
|
+
this.isListISC.set(isListIndividualsWithSignificantControl);
|
|
84807
|
+
if (!isListIndividualsWithSignificantControl) {
|
|
84808
|
+
this.clearIndividualsWithSignificantControl();
|
|
84809
|
+
}
|
|
84803
84810
|
this.isNonPreapprovedNameType.set(val[this.groups.CorporateName]?.[this.controls.NameType] === NameType2.NonPreapproved);
|
|
84804
84811
|
});
|
|
84805
84812
|
}
|
|
@@ -84843,6 +84850,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84843
84850
|
this.selectedIndividualWithSignificant.update((individuals) => individuals.filter((i) => i !== affiliationName));
|
|
84844
84851
|
formArray.removeAt(index);
|
|
84845
84852
|
}
|
|
84853
|
+
clearIndividualsWithSignificantControl() {
|
|
84854
|
+
const formArray = this.getFormArray(FederalFormationFormGroups.IndividualsWithSignificantControl);
|
|
84855
|
+
if (!formArray.length) {
|
|
84856
|
+
return;
|
|
84857
|
+
}
|
|
84858
|
+
formArray.clear();
|
|
84859
|
+
this.selectedIndividualWithSignificant.set([]);
|
|
84860
|
+
this.cdr.detectChanges();
|
|
84861
|
+
}
|
|
84846
84862
|
directorsSubtitle = computed(() => {
|
|
84847
84863
|
const articles = this.task()?.entity._articles;
|
|
84848
84864
|
if (!articles?.min_directors && !articles?.max_directors) {
|
|
@@ -87678,7 +87694,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87678
87694
|
const directorsDelta = deltaData.directors;
|
|
87679
87695
|
const individualsWithSignificantControlDelta = deltaData.individualsWithSignificantControl;
|
|
87680
87696
|
const consentToProvideEmails = deltaData.consentToProvideDirectorEmailAddressesForFullAccessManager;
|
|
87681
|
-
|
|
87697
|
+
getIndividualWithSignificantControl(task.entity.affiliations);
|
|
87682
87698
|
const isListIsc = significantControl.type === ISCOptions.ListISC;
|
|
87683
87699
|
const isNonPreapproved = corporateNameDelta?.nameType === NameType2.NonPreapproved;
|
|
87684
87700
|
const payload = __spreadProps(__spreadValues({
|
|
@@ -87722,7 +87738,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87722
87738
|
d.affiliationId,
|
|
87723
87739
|
d
|
|
87724
87740
|
]));
|
|
87725
|
-
return
|
|
87741
|
+
return task.entity.affiliations.filter((aff) => deltaMap.has(aff._id)).map((aff) => transformIndividualWithSignificantControl(aff, deltaMap.get(aff._id)));
|
|
87726
87742
|
})() : void 0,
|
|
87727
87743
|
AdditionalInformation: isNonPreapproved ? [
|
|
87728
87744
|
{
|