@dyedurham/search-and-file-widget 1.6.29 → 1.6.31

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 +37 -29
  2. package/package.json +1 -1
@@ -59214,7 +59214,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
59214
59214
  const directorDeltaData = deltaData?.directors ?? {};
59215
59215
  config2[InitialReturnFillingFormGroups.Directors] = new FormArray([
59216
59216
  ...addedDirectors.map((admin) => {
59217
- const form = _OntarioUpdateMaintainFormHelper.generateAffiliationForm(admin, IRAffiliationType.Add, isFirsSubmit ? null : comparisonData, directorDeltaData[admin._id]);
59217
+ const form = _OntarioUpdateMaintainFormHelper.generateAffiliationForm(admin, IRAffiliationType.Add, comparisonData, directorDeltaData[admin._id]);
59218
59218
  form.addControl(IRFormControls.IsCanadianResident, new FormControl(directorDeltaData[admin._id]?.residentCanadian ?? false));
59219
59219
  return form;
59220
59220
  }),
@@ -87733,9 +87733,41 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87733
87733
  });
87734
87734
 
87735
87735
  // src/app/entities/InitialReturnMapping.ts
87736
- var OFFICER_TITLE_TO_ECORE_POSITION_CODE, ECORE_POSITION_CODE_TO_POSITION_NAME;
87736
+ var ECORE_POSITION_CODE_TO_POSITION_NAME;
87737
87737
  var init_InitialReturnMapping = __esm({
87738
87738
  "src/app/entities/InitialReturnMapping.ts"() {
87739
+ ECORE_POSITION_CODE_TO_POSITION_NAME = {
87740
+ ASEC: "ASSISTANT SECRETARY",
87741
+ ATRE: "ASSISTANT TREASURER",
87742
+ ASO: "AUTH'D SIGNING OFFICER",
87743
+ CHR: "CHAIR",
87744
+ CHRM: "CHAIRMAN",
87745
+ CHRP: "CHAIR PERSON",
87746
+ CHRW: "CHAIRWOMAN",
87747
+ CAO: "CHIEF ADMIN OFFICER",
87748
+ CEO: "CHIEF EXECUTIVE OFFICER",
87749
+ CFO: "CHIEF FINANCIAL OFFICER",
87750
+ CIO: "CHIEF INFO OFFICER",
87751
+ CMAN: "CHIEF MANAGER",
87752
+ COO: "CHIEF OPERATING OFFICER",
87753
+ COMP: "COMPTROLLER",
87754
+ EDIR: "EXECUTIVE DIRECTOR",
87755
+ GM: "GENERAL MANAGER",
87756
+ MDIR: "MANAGING DIRECTOR",
87757
+ OTH: "OTHER",
87758
+ PRCH: "PRESIDENT",
87759
+ SECT: "SECRETARY",
87760
+ TRES: "TREASURER",
87761
+ VCHR: "VICE-CHAIR",
87762
+ VP: "VICE-PRESIDENT"
87763
+ };
87764
+ }
87765
+ });
87766
+
87767
+ // src/app/constants/initial-return-api.contants.ts
87768
+ var OFFICER_TITLE_TO_ECORE_POSITION_CODE;
87769
+ var init_initial_return_api_contants = __esm({
87770
+ "src/app/constants/initial-return-api.contants.ts"() {
87739
87771
  OFFICER_TITLE_TO_ECORE_POSITION_CODE = {
87740
87772
  Chairman: "CHRM",
87741
87773
  President: "PRCH",
@@ -87764,31 +87796,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87764
87796
  "Vice-Chair": "VCHR",
87765
87797
  Other: "OTH"
87766
87798
  };
87767
- ECORE_POSITION_CODE_TO_POSITION_NAME = {
87768
- ASEC: "ASSISTANT SECRETARY",
87769
- ATRE: "ASSISTANT TREASURER",
87770
- ASO: "AUTH'D SIGNING OFFICER",
87771
- CHR: "CHAIR",
87772
- CHRM: "CHAIRMAN",
87773
- CHRP: "CHAIR PERSON",
87774
- CHRW: "CHAIRWOMAN",
87775
- CAO: "CHIEF ADMIN OFFICER",
87776
- CEO: "CHIEF EXECUTIVE OFFICER",
87777
- CFO: "CHIEF FINANCIAL OFFICER",
87778
- CIO: "CHIEF INFO OFFICER",
87779
- CMAN: "CHIEF MANAGER",
87780
- COO: "CHIEF OPERATING OFFICER",
87781
- COMP: "COMPTROLLER",
87782
- EDIR: "EXECUTIVE DIRECTOR",
87783
- GM: "GENERAL MANAGER",
87784
- MDIR: "MANAGING DIRECTOR",
87785
- OTH: "OTHER",
87786
- PRCH: "PRESIDENT",
87787
- SECT: "SECRETARY",
87788
- TRES: "TREASURER",
87789
- VCHR: "VICE-CHAIR",
87790
- VP: "VICE-PRESIDENT"
87791
- };
87792
87799
  }
87793
87800
  });
87794
87801
 
@@ -87920,7 +87927,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87920
87927
  const mappedRoleId = matchingAdmin?.RoleId ?? "";
87921
87928
  const personNameRoleId = matchingAdmin?.RoleId;
87922
87929
  const mappedCeaseDate = currentState === IRCurrentState.Ceased ? ceaseDate : "";
87923
- const mappedElectedDate = currentState === IRCurrentState.Added ? electedDate : "";
87930
+ const mappedElectedDate = currentState === IRCurrentState.Added || currentState === IRCurrentState.Changed ? electedDate : "";
87924
87931
  const positionName = ECORE_POSITION_CODE_TO_POSITION_NAME[position2?.toUpperCase()];
87925
87932
  if (!isOfficer) {
87926
87933
  switch (currentState) {
@@ -88147,7 +88154,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88147
88154
  if (cert.type === "Director" && admin.IsDirector) {
88148
88155
  return admin;
88149
88156
  }
88150
- if (cert.type !== "Director" && (cert.officerTitle === admin.OfficerPositionName || cert.officerTitle === admin.Position)) {
88157
+ if (cert.type !== "Director" && (cert.officerTitle?.toLowerCase() === admin.OfficerPositionName?.toLowerCase() || cert.officerTitle.toLowerCase() === admin.Position.toLowerCase())) {
88151
88158
  return admin;
88152
88159
  }
88153
88160
  }
@@ -88270,6 +88277,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88270
88277
  init_initial_return_enums();
88271
88278
  init_ontario_update_maintain_helper();
88272
88279
  init_InitialReturnMapping();
88280
+ init_initial_return_api_contants();
88273
88281
  }
88274
88282
  });
88275
88283
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "1.6.29",
3
+ "version": "1.6.31",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {