@dyedurham/search-and-file-widget 1.6.15 → 1.6.16
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 +43 -39
- package/package.json +1 -1
package/dnd-filing-shell.js
CHANGED
|
@@ -59131,9 +59131,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59131
59131
|
config2[InitialReturnFillingFormGroups.RegisteredOfficeAddress] = new FormGroup(this.generateAddressFormConfig(address, addressDelta));
|
|
59132
59132
|
const directorDeltaData = deltaData?.directors ?? {};
|
|
59133
59133
|
config2[InitialReturnFillingFormGroups.Directors] = new FormArray([
|
|
59134
|
-
...addedDirectors.map((admin) =>
|
|
59135
|
-
|
|
59136
|
-
|
|
59134
|
+
...addedDirectors.map((admin) => {
|
|
59135
|
+
const form = _OntarioUpdateMaintainFormHelper.generateAffiliationForm(admin, IRAffiliationType.Add, directorDeltaData[admin._id]);
|
|
59136
|
+
form.addControl(IRFormControls.IsCanadianResident, new FormControl(directorDeltaData[admin._id]?.residentCanadian ?? false));
|
|
59137
|
+
return form;
|
|
59138
|
+
}),
|
|
59139
|
+
...ceasedDirectors.map((admin) => {
|
|
59140
|
+
const form = _OntarioUpdateMaintainFormHelper.generateAffiliationForm(admin, IRAffiliationType.Ceased, directorDeltaData[admin._id]);
|
|
59141
|
+
form.addControl(IRFormControls.IsCanadianResident, new FormControl(directorDeltaData[admin._id]?.residentCanadian ?? false));
|
|
59142
|
+
return form;
|
|
59143
|
+
}),
|
|
59144
|
+
...editedDirectors.map((admin) => {
|
|
59145
|
+
const form = _OntarioUpdateMaintainFormHelper.generateAffiliationForm(admin, IRAffiliationType.Update, directorDeltaData[admin._id]);
|
|
59146
|
+
form.addControl(IRFormControls.IsCanadianResident, new FormControl(directorDeltaData[admin._id]?.residentCanadian ?? false));
|
|
59147
|
+
return form;
|
|
59148
|
+
})
|
|
59137
59149
|
]);
|
|
59138
59150
|
const officerDeltaData = deltaData?.officers ?? {};
|
|
59139
59151
|
config2[InitialReturnFillingFormGroups.Officers] = new FormArray([
|
|
@@ -59236,7 +59248,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59236
59248
|
const form = new FormGroup(__spreadValues(__spreadValues({}, config2), this.generateAddressFormConfig(address, _OntarioUpdateMaintainFormHelper.mapAddressDelta(deltaData?.address))));
|
|
59237
59249
|
const affiliationAddressType = form.get(IRFormControls.AffiliationAddressType)?.value;
|
|
59238
59250
|
updateFormControlsEnableState(form, addressEnabledFieldsMap[affiliationAddressType]);
|
|
59239
|
-
form.addControl(IRFormControls.IsCanadianResident, new FormControl(deltaData?.residentCanadian ?? false));
|
|
59240
59251
|
return form;
|
|
59241
59252
|
}
|
|
59242
59253
|
static mapAddressDelta(addr) {
|
|
@@ -80980,7 +80991,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
80980
80991
|
});
|
|
80981
80992
|
|
|
80982
80993
|
// src/app/constants/initial-return-form.constants.ts
|
|
80983
|
-
var
|
|
80994
|
+
var personFullAddressFormField, fullAddressFormField, certifiedByAddressFormField, checkboxFormField, ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT, ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT, ONTARIO_INITIAL_RETURN_FORM_GENERAL_FIELDS, ONTARIO_INITIAL_RETURN_CARD_FORM_ADDRESS_FIELDS_MAP, generatePersonFields, ONTARIO_INITIAL_RETURN_FORM_DIRECTORS_FIELDS_MAP, ONTARIO_INITIAL_RETURN_FORM_OFFICER_FIELDS_MAP, generateCertifiedByFields, ONTARIO_INITIAL_RETURN_FORM_CERTIFIED_BY_FIELDS_MAP;
|
|
80984
80995
|
var init_initial_return_form_constants = __esm({
|
|
80985
80996
|
"src/app/constants/initial-return-form.constants.ts"() {
|
|
80986
80997
|
init_form_enums();
|
|
@@ -80988,7 +80999,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
80988
80999
|
init_app_constants();
|
|
80989
81000
|
init_initial_return_enums();
|
|
80990
81001
|
init_common_utils();
|
|
80991
|
-
|
|
81002
|
+
personFullAddressFormField = {
|
|
80992
81003
|
type: FormType.Text,
|
|
80993
81004
|
label: "",
|
|
80994
81005
|
formControlName: "",
|
|
@@ -81058,6 +81069,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81058
81069
|
},
|
|
81059
81070
|
class: "span-12"
|
|
81060
81071
|
};
|
|
81072
|
+
checkboxFormField = {
|
|
81073
|
+
type: FormType.Checkbox,
|
|
81074
|
+
label: "Resident Canadian",
|
|
81075
|
+
class: "span-12",
|
|
81076
|
+
formControlName: IRFormControls.IsCanadianResident
|
|
81077
|
+
};
|
|
81061
81078
|
ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT = [
|
|
81062
81079
|
{
|
|
81063
81080
|
type: FormType.Text,
|
|
@@ -81233,7 +81250,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81233
81250
|
[AffiliationAddressType.InternationalNoSuite]: [fullAddressFormField],
|
|
81234
81251
|
[AffiliationAddressType.InternationalSuite]: [fullAddressFormField]
|
|
81235
81252
|
};
|
|
81236
|
-
|
|
81253
|
+
generatePersonFields = (fields) => [
|
|
81237
81254
|
{
|
|
81238
81255
|
type: FormType.Text,
|
|
81239
81256
|
dynamicLabel: (form, t, prevValueMap) => {
|
|
@@ -81288,19 +81305,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81288
81305
|
}
|
|
81289
81306
|
return baseResult + `<span class="grey-mid"><br/><span class="body-1-semibold">${t("Previous Email")}:</span> ${prevEmail}</span>`;
|
|
81290
81307
|
}
|
|
81291
|
-
},
|
|
81292
|
-
{
|
|
81293
|
-
type: FormType.Checkbox,
|
|
81294
|
-
label: "Resident Canadian",
|
|
81295
|
-
class: "span-12",
|
|
81296
|
-
formControlName: IRFormControls.IsCanadianResident
|
|
81297
81308
|
}
|
|
81298
81309
|
];
|
|
81299
|
-
|
|
81300
|
-
[AffiliationAddressType.CanadianNoSuite]:
|
|
81301
|
-
[AffiliationAddressType.CanadianSuite]:
|
|
81302
|
-
[AffiliationAddressType.InternationalNoSuite]:
|
|
81303
|
-
[AffiliationAddressType.InternationalSuite]:
|
|
81310
|
+
ONTARIO_INITIAL_RETURN_FORM_DIRECTORS_FIELDS_MAP = {
|
|
81311
|
+
[AffiliationAddressType.CanadianNoSuite]: generatePersonFields([...ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT, checkboxFormField, personFullAddressFormField]),
|
|
81312
|
+
[AffiliationAddressType.CanadianSuite]: generatePersonFields([...ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT, checkboxFormField, personFullAddressFormField]),
|
|
81313
|
+
[AffiliationAddressType.InternationalNoSuite]: generatePersonFields([checkboxFormField, personFullAddressFormField]),
|
|
81314
|
+
[AffiliationAddressType.InternationalSuite]: generatePersonFields([checkboxFormField, personFullAddressFormField])
|
|
81315
|
+
};
|
|
81316
|
+
ONTARIO_INITIAL_RETURN_FORM_OFFICER_FIELDS_MAP = {
|
|
81317
|
+
[AffiliationAddressType.CanadianNoSuite]: generatePersonFields([...ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT, personFullAddressFormField]),
|
|
81318
|
+
[AffiliationAddressType.CanadianSuite]: generatePersonFields([...ONTARIO_DELTA_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_SUIT, personFullAddressFormField]),
|
|
81319
|
+
[AffiliationAddressType.InternationalNoSuite]: generatePersonFields([personFullAddressFormField]),
|
|
81320
|
+
[AffiliationAddressType.InternationalSuite]: generatePersonFields([personFullAddressFormField])
|
|
81304
81321
|
};
|
|
81305
81322
|
generateCertifiedByFields = (fields) => [
|
|
81306
81323
|
{
|
|
@@ -81435,7 +81452,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81435
81452
|
const officersArray_r10 = \u0275\u0275readContextLet(11);
|
|
81436
81453
|
const isOpen_r11 = ((tmp_6_0 = officersArray_r10 == null ? null : officersArray_r10.length) !== null && tmp_6_0 !== void 0 ? tmp_6_0 : 0) <= ctx_r0.initiallyOpenCardsCount;
|
|
81437
81454
|
\u0275\u0275advance();
|
|
81438
|
-
\u0275\u0275property("prevData", (tmp_7_0 = ctx_r0.prevData()) == null ? null : tmp_7_0.officers)("isSubmitted", ctx_r0.isSubmitted())("areItemsOpen", isOpen_r11)("isStatusIcon", !ctx_r0.readonly())("config", ctx_r0.
|
|
81455
|
+
\u0275\u0275property("prevData", (tmp_7_0 = ctx_r0.prevData()) == null ? null : tmp_7_0.officers)("isSubmitted", ctx_r0.isSubmitted())("areItemsOpen", isOpen_r11)("isStatusIcon", !ctx_r0.readonly())("config", ctx_r0.officersFieldsMap)("configKey", ctx_r0.controls.AffiliationAddressType)("formArray", officersArray_r10)("title", ctx_r0.groups.Officers)("isValid", ctx_r0.sectionValidity["officers"]);
|
|
81439
81456
|
}
|
|
81440
81457
|
}
|
|
81441
81458
|
function OntarioUpdateMaintainFormComponent_Conditional_13_Template(rf, ctx) {
|
|
@@ -81508,7 +81525,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81508
81525
|
groups = InitialReturnFillingFormGroups;
|
|
81509
81526
|
generalCardFields = ONTARIO_INITIAL_RETURN_FORM_GENERAL_FIELDS;
|
|
81510
81527
|
addressFieldsMap = ONTARIO_INITIAL_RETURN_CARD_FORM_ADDRESS_FIELDS_MAP;
|
|
81511
|
-
directorsFieldsMap =
|
|
81528
|
+
directorsFieldsMap = ONTARIO_INITIAL_RETURN_FORM_DIRECTORS_FIELDS_MAP;
|
|
81529
|
+
officersFieldsMap = ONTARIO_INITIAL_RETURN_FORM_OFFICER_FIELDS_MAP;
|
|
81512
81530
|
certifiedByFieldsMap = ONTARIO_INITIAL_RETURN_FORM_CERTIFIED_BY_FIELDS_MAP;
|
|
81513
81531
|
alertType = AlertType;
|
|
81514
81532
|
controls = InitialReturnFormControls;
|
|
@@ -81687,7 +81705,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81687
81705
|
[isSubmitted]="isSubmitted()"\r
|
|
81688
81706
|
[areItemsOpen]="isOpen"\r
|
|
81689
81707
|
[isStatusIcon]="!readonly()"\r
|
|
81690
|
-
[config]="
|
|
81708
|
+
[config]="officersFieldsMap"\r
|
|
81691
81709
|
[configKey]="controls.AffiliationAddressType"\r
|
|
81692
81710
|
[formArray]="officersArray"\r
|
|
81693
81711
|
[title]="groups.Officers"\r
|
|
@@ -81729,7 +81747,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81729
81747
|
}], null, null);
|
|
81730
81748
|
})();
|
|
81731
81749
|
(() => {
|
|
81732
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(OntarioUpdateMaintainFormComponent, { className: "OntarioUpdateMaintainFormComponent", filePath: "src/app/components/ontario/update-maintain/update-maintain-form/update-maintain-form.component.ts", lineNumber:
|
|
81750
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(OntarioUpdateMaintainFormComponent, { className: "OntarioUpdateMaintainFormComponent", filePath: "src/app/components/ontario/update-maintain/update-maintain-form/update-maintain-form.component.ts", lineNumber: 41 });
|
|
81733
81751
|
})();
|
|
81734
81752
|
}
|
|
81735
81753
|
});
|
|
@@ -86863,7 +86881,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86863
86881
|
const fetchFn = opts?.fetchImpl ?? fetch;
|
|
86864
86882
|
const url = signature.proxyApiUrl;
|
|
86865
86883
|
const resp = yield fetchFn(url, {
|
|
86866
|
-
method: "
|
|
86884
|
+
method: "GET",
|
|
86867
86885
|
headers: __spreadValues({
|
|
86868
86886
|
"Content-Type": "application/json",
|
|
86869
86887
|
// 'ApiKey': 'a759101c-aeac-4fa6-90dc-8b56f01b2939',
|
|
@@ -86904,20 +86922,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
86904
86922
|
throw new Error(`eCore returned ${resp.status} ${resp.statusText}: ${raw || "(empty body)"}`);
|
|
86905
86923
|
}
|
|
86906
86924
|
const result = parsed.value;
|
|
86907
|
-
if (result?.Draft) {
|
|
86908
|
-
const searchOrFilingType = getSearchOrFilingType(signature.task);
|
|
86909
|
-
if (searchOrFilingType) {
|
|
86910
|
-
signature.filingValidateSuccess?.({
|
|
86911
|
-
searchOrFilingType,
|
|
86912
|
-
serviceOrderId: requestBody.CurrentDataServiceOrderId,
|
|
86913
|
-
validatedOn: /* @__PURE__ */ new Date(),
|
|
86914
|
-
provider: "obr",
|
|
86915
|
-
draftPdf: result.Draft,
|
|
86916
|
-
documentName: opts?.documentName ?? "Initial Return Draft",
|
|
86917
|
-
documentType: "pdf"
|
|
86918
|
-
});
|
|
86919
|
-
}
|
|
86920
|
-
}
|
|
86921
86925
|
if (parsed.ok) {
|
|
86922
86926
|
return result;
|
|
86923
86927
|
}
|
|
@@ -88612,7 +88616,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88612
88616
|
validatedOn: /* @__PURE__ */ new Date(),
|
|
88613
88617
|
provider: "obr",
|
|
88614
88618
|
draftPdf,
|
|
88615
|
-
documentName: this.validateOptions()?.documentName ?? "
|
|
88619
|
+
documentName: this.validateOptions()?.documentName ?? "Initial Return Draft",
|
|
88616
88620
|
documentType: "pdf"
|
|
88617
88621
|
});
|
|
88618
88622
|
}
|
|
@@ -93493,7 +93497,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
93493
93497
|
"The following issues need to be resolved before proceeding:": "Les probl\xE8mes suivants doivent \xEAtre r\xE9solus avant de poursuivre :",
|
|
93494
93498
|
"All addresses must have a street type and direction specified.": "Toutes les adresses doivent inclure un type de rue et une direction.",
|
|
93495
93499
|
"Validate & Generate Draft": "Valider et g\xE9n\xE9rer le brouillon",
|
|
93496
|
-
File: "
|
|
93500
|
+
File: "D\xE9poser",
|
|
93497
93501
|
Edit: "Modifier",
|
|
93498
93502
|
"Cancel Edits": "Annuler les modifications",
|
|
93499
93503
|
Cancel: "Annuler",
|