@dyedurham/search-and-file-widget 1.6.23 → 1.6.25

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.
Files changed (2) hide show
  1. package/dnd-filing-shell.js +33 -57
  2. package/package.json +1 -1
@@ -57918,33 +57918,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
57918
57918
  }
57919
57919
  return obj;
57920
57920
  }
57921
- function copyWithShape(shape, source) {
57922
- if (shape === null || shape === void 0) {
57923
- return source;
57924
- }
57925
- if (Array.isArray(shape)) {
57926
- if (!Array.isArray(source)) {
57927
- return [];
57928
- }
57929
- if (!shape.length) {
57930
- return source.map((item) => copyWithShape(item, item));
57931
- }
57932
- return source.map((item) => copyWithShape(shape[0], item));
57933
- }
57934
- if (typeof shape !== "object") {
57935
- return source;
57936
- }
57937
- if (source === null || source === void 0 || typeof source !== "object") {
57938
- return source;
57939
- }
57940
- const result = {};
57941
- for (const key of Object.keys(shape)) {
57942
- if (Object.prototype.hasOwnProperty.call(source, key)) {
57943
- result[key] = copyWithShape(shape[key], source[key]);
57944
- }
57945
- }
57946
- return result;
57947
- }
57948
57921
  function toYyyyMmDd(d) {
57949
57922
  if (!d)
57950
57923
  return void 0;
@@ -58563,12 +58536,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
58563
58536
  type: FormType.Text,
58564
58537
  label: "",
58565
58538
  formControlName: "",
58566
- dynamicLabel: (form) => {
58539
+ dynamicLabel: (form, t) => {
58567
58540
  const email = form.get(FormationFormControls.OfficialEmail)?.value;
58568
58541
  if (!email) {
58569
58542
  return "";
58570
58543
  }
58571
- return `<span class="body-1-semibold">Email:</span> ${email}`;
58544
+ return `<span class="body-1-semibold">${t("Email")}:</span> ${email}`;
58572
58545
  },
58573
58546
  class: "span-12"
58574
58547
  };
@@ -59114,11 +59087,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
59114
59087
  addressForm.addControl("id", new FormControl(affiliation.participant._id));
59115
59088
  addressForm.addControl(FormationFormControls.OfficialEmail, new FormControl(affiliation.participant.communicationEmail || ""));
59116
59089
  addressForm.addControl(FormationFormControls.IsResident, new FormControl(deltaData?.residentCanadian ?? false, Validators.required));
59117
- const person = affiliation.participant;
59118
- const firstName = person._profile.firstName || "";
59119
- const lastName = person._profile.lastName || "";
59120
- const middleName = person._profile.middleName || "";
59121
- const name = `${firstName} ${lastName} ${middleName}`;
59090
+ const name = generateTaskAffiliationFullName(affiliation);
59122
59091
  addressForm.addControl(FormationFormControls.AffiliationName, new FormControl({ value: name, disabled: true }));
59123
59092
  return addressForm;
59124
59093
  }
@@ -81467,7 +81436,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81467
81436
  dynamicLabel: (form, t) => {
81468
81437
  const ceaseDate = form.get(IRFormControls.CeaseDate)?.value;
81469
81438
  if (ceaseDate) {
81470
- return `<span class="body-1-semibold">${t("Cease Date")}:</span> ${ceaseDate}`;
81439
+ return `<span class="body-1-semibold">${t("Cease Date")}:</span> ${t(ceaseDate)}`;
81471
81440
  }
81472
81441
  return "";
81473
81442
  },
@@ -83394,13 +83363,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
83394
83363
  },
83395
83364
  {
83396
83365
  type: FormType.Text,
83397
- dynamicLabel: (form) => `Address: ${getAddressPreview(form)}`,
83366
+ dynamicLabel: (form, t) => `${t("Address")}: ${getAddressPreview(form)}`,
83398
83367
  formControlName: "",
83399
83368
  class: "span-12"
83400
83369
  },
83401
83370
  {
83402
83371
  type: FormType.Text,
83403
- dynamicLabel: (form) => `Email: ${form.get(FederalFormationFormControl.Email)?.value}`,
83372
+ dynamicLabel: (form, t) => `${t("Email")}: ${form.get(FederalFormationFormControl.Email)?.value}`,
83404
83373
  formControlName: FederalFormationFormControl.Email,
83405
83374
  class: "span-12"
83406
83375
  }
@@ -83542,19 +83511,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
83542
83511
  return [
83543
83512
  {
83544
83513
  type: FormType.Text,
83545
- dynamicLabel: (form) => `Date Of Birth: ${form.get(FederalFormationFormControl.DateOfBirth)?.value}`,
83514
+ dynamicLabel: (form, t) => `${t("Date Of Birth")}: ${form.get(FederalFormationFormControl.DateOfBirth)?.value}`,
83546
83515
  formControlName: FederalFormationFormControl.DateOfBirth,
83547
83516
  class: "span-12"
83548
83517
  },
83549
83518
  {
83550
83519
  type: FormType.Text,
83551
- dynamicLabel: (form) => `<span>Countries Of Citizenship: ${form.get(FederalFormationFormControl.CountriesOfCitizenship)?.value}</span> </br> <span>Countries Of Residence: ${form.get(FederalFormationFormControl.CountriesOfResidence)?.value}</span>`,
83520
+ dynamicLabel: (form, t) => `<span>${t("Countries Of Citizenship")}: ${form.get(FederalFormationFormControl.CountriesOfCitizenship)?.value}</span> </br> <span>${t("Countries Of Residence")}: ${form.get(FederalFormationFormControl.CountriesOfResidence)?.value}</span>`,
83552
83521
  formControlName: "",
83553
83522
  class: "span-12"
83554
83523
  },
83555
83524
  {
83556
83525
  type: FormType.Text,
83557
- dynamicLabel: (form) => `Residential Address: ${getAddressPreview(form)}`,
83526
+ dynamicLabel: (form, t) => `${t("Residential Address")}: ${getAddressPreview(form)}`,
83558
83527
  formControlName: FederalFormationFormControl.DateOfBirth,
83559
83528
  class: "span-12"
83560
83529
  },
@@ -83630,18 +83599,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
83630
83599
  },
83631
83600
  {
83632
83601
  type: FormType.Text,
83633
- dynamicLabel: (form) => `Date business activity will begin: ${form.get(FederalFormationFormControl.RegistrationDate)?.value ?? ""}`,
83602
+ dynamicLabel: (form, t) => `${t("Date business activity will begin")}: ${form.get(FederalFormationFormControl.RegistrationDate)?.value ?? ""}`,
83634
83603
  formControlName: FederalFormationFormControl.RegistrationDate,
83635
83604
  class: "span-12"
83636
83605
  },
83637
83606
  {
83638
83607
  type: FormType.Text,
83639
- dynamicLabel: (form) => {
83608
+ dynamicLabel: (form, t) => {
83640
83609
  const email = form.get(FederalFormationFormControl.OfficialEmail)?.value;
83641
83610
  if (!email) {
83642
83611
  return "";
83643
83612
  }
83644
- return `<span class="body-1-semibold">Official Email:</span> ${email}`;
83613
+ return `<span class="body-1-semibold">${t("Official Email")}:</span> ${email}`;
83645
83614
  },
83646
83615
  formControlName: FederalFormationFormControl.OfficialEmail,
83647
83616
  class: "span-12"
@@ -83671,8 +83640,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
83671
83640
  },
83672
83641
  {
83673
83642
  type: FormType.Select,
83674
- dynamicLabel: (form) => {
83675
- return `Address for Service in ${form.get(FormationFormControls.Province)?.value}`;
83643
+ dynamicLabel: (form, t) => {
83644
+ return `${t("Address for Service in")} ${form.get(FormationFormControls.Province)?.value}`;
83676
83645
  },
83677
83646
  formControlName: FederalFormationFormControl.ServiceAddressUid,
83678
83647
  isVisible: (form) => form.get(FederalFormationFormControl.UseDifferentAddressForService)?.value,
@@ -83705,7 +83674,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
83705
83674
  },
83706
83675
  {
83707
83676
  type: FormType.Text,
83708
- dynamicLabel: () => `<span class="body-1-regular grey">Contact Details:</span>`,
83677
+ dynamicLabel: (_, t) => `<span class="body-1-regular grey">${t("Contact Details")}:</span>`,
83709
83678
  formControlName: "",
83710
83679
  class: "span-12",
83711
83680
  required: true
@@ -87856,7 +87825,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87856
87825
  }
87857
87826
  function buildOntarioUpdateMaintainValidationRequest(task, deltaData, serviceOrderId, corporationInfo) {
87858
87827
  const initialAdministrators = corporationInfo?.CurrentData.InitialAdministrators;
87859
- const normalizePersonTitle = (name) => (name ?? "").trim().replace(/\s+/g, " ").toLowerCase();
87860
87828
  const getCurrentDataAdministrator = (name, isOfficer) => {
87861
87829
  if (!name || !initialAdministrators?.length) {
87862
87830
  return null;
@@ -87865,12 +87833,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87865
87833
  if (!admin || Boolean(admin.IsDirector) === isOfficer) {
87866
87834
  return false;
87867
87835
  }
87868
- const adminTitle = normalizePersonTitle([
87869
- admin.PersonName?.FirstName?.toLowerCase(),
87870
- admin.PersonName?.MiddleName?.toLowerCase(),
87871
- admin.PersonName?.LastName?.toLowerCase(),
87872
- admin.OfficerPositionName?.toLowerCase()
87873
- ].filter(Boolean).join(" "));
87836
+ const adminTitle = generateCurrentDataAffiliationKey(admin);
87874
87837
  return adminTitle === name;
87875
87838
  });
87876
87839
  return matchedOfficer ?? null;
@@ -89129,7 +89092,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
89129
89092
  this.activeStep.set(Step.Validate);
89130
89093
  return;
89131
89094
  }
89132
- const dataWasChanged = !deepEqual(currentMappedPayload, copyWithShape(currentMappedPayload, taskFromDeltaData));
89095
+ const dataWasChanged = !deepEqual(currentMappedPayload, taskFromDeltaData);
89133
89096
  this.dataWasChanged.set(dataWasChanged);
89134
89097
  this.activeStep.set(dataWasChanged ? Step.Validate : Step.FilingPreview);
89135
89098
  }
@@ -89298,7 +89261,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
89298
89261
  }], () => [], null);
89299
89262
  })();
89300
89263
  (() => {
89301
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 73 });
89264
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 72 });
89302
89265
  })();
89303
89266
  }
89304
89267
  });
@@ -93771,6 +93734,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
93771
93734
  "Annual Return Year": "Annual Return Year",
93772
93735
  "Confirm Address Parts": "Confirm Address Parts",
93773
93736
  "Contact Details": "Contact Details",
93737
+ "Date Of Birth": "Date Of Birth",
93738
+ "Countries Of Citizenship": "Countries Of Citizenship",
93739
+ "Countries Of Residence": "Countries Of Residence",
93740
+ "Date business activity will begin": "Date business activity will begin",
93741
+ "Address for Service in": "Address for Service in",
93774
93742
  "Requested Date for Incorporation": "Requested Date for Incorporation",
93775
93743
  I: "I",
93776
93744
  "confirm that the draft PDF document has been signed by all the required person(s) in accordance with the Act, Regulations and Director's/Registrar's Requirements.": "confirm that the draft PDF document has been signed by all the required person(s) in accordance with the Act, Regulations and Director's/Registrar's Requirements.",
@@ -93837,6 +93805,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
93837
93805
  "Corporate name": "Corporate name",
93838
93806
  "Business Number": "Business Number",
93839
93807
  Address: "Address",
93808
+ "Residential Address": "Residential Address",
93840
93809
  "Anniversary Date": "Anniversary Date",
93841
93810
  "Year of Filing": "Year of Filing",
93842
93811
  "Annual Meeting": "Annual Meeting",
@@ -93895,8 +93864,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
93895
93864
  "Canadian Resident": "R\xE9sident canadien",
93896
93865
  Officers: "Officiers",
93897
93866
  "Certified By": "Certifi\xE9 par",
93898
- "Expand all": "Afficher Tout",
93899
- "Collapse all": "Tout Masquer",
93867
+ "Expand all": "Afficher tout",
93868
+ "Collapse all": "Masquer tout",
93900
93869
  Add: "Ajouter",
93901
93870
  Update: "Mettre \xE0 jour",
93902
93871
  Cease: "Cesser",
@@ -93956,6 +93925,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
93956
93925
  "Also an Incorporator": "\xC9galement fondateur",
93957
93926
  "Care Of": "Aux soins de",
93958
93927
  City: "Ville",
93928
+ Close: "Fermer",
93959
93929
  Province: "Province",
93960
93930
  "Province / State": "Province / \xC9tat",
93961
93931
  "Postal Code": "Code postal",
@@ -94040,6 +94010,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94040
94010
  "Annual Return Year": "Ann\xE9e de la d\xE9claration annuelle",
94041
94011
  "Confirm Address Parts": "Confirmer les \xE9l\xE9ments de l'adresse",
94042
94012
  "Contact Details": "Coordonn\xE9es",
94013
+ "Date Of Birth": "Date de naissance",
94014
+ "Countries Of Citizenship": "Pays de citoyennet\xE9",
94015
+ "Countries Of Residence": "Pays de r\xE9sidence",
94016
+ "Date business activity will begin": "Date de d\xE9but de l'activit\xE9 commerciale",
94017
+ "Address for Service in": "Adresse aux fins de signification en",
94043
94018
  "Requested Date for Incorporation": "Date demand\xE9e pour la constitution",
94044
94019
  I: "Je",
94045
94020
  "confirm that the draft PDF document has been signed by all the required person(s) in accordance with the Act, Regulations and Director's/Registrar's Requirements.": "confirme que le document PDF de brouillon a \xE9t\xE9 sign\xE9 par toutes les personnes requises conform\xE9ment \xE0 la Loi, aux r\xE8glements et aux exigences du directeur/registraire.",
@@ -94105,6 +94080,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
94105
94080
  "Corporate name": "Nom de la soci\xE9t\xE9",
94106
94081
  "Business Number": "Num\xE9ro d'entreprise",
94107
94082
  Address: "Adresse",
94083
+ "Residential Address": "Adresse r\xE9sidentielle",
94108
94084
  "Anniversary Date": "Date anniversaire",
94109
94085
  "Year of Filing": "Ann\xE9e de d\xE9p\xF4t",
94110
94086
  "Annual Meeting": "Assembl\xE9e annuelle",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "1.6.23",
3
+ "version": "1.6.25",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {