@dyedurham/search-and-file-widget 1.6.22 → 1.6.23
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 +66 -56
- package/package.json +1 -1
package/dnd-filing-shell.js
CHANGED
|
@@ -56972,7 +56972,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
56972
56972
|
CanadianStreetType: isCanadianAddress ? deltaData?.streetType ?? (StreetType2 ? mapStreetType(StreetType2) : void 0) : null,
|
|
56973
56973
|
CanadianStreetDirectionType: isCanadianAddress ? deltaData?.streetDirection ?? (StreetDirection2 ? mapStreetDirection(StreetDirection2) : null) : null
|
|
56974
56974
|
}), suite && { UnitNumber: suite }), {
|
|
56975
|
-
CanadianUnitType: isCanadianAddress ? deltaData?.unitType ?? null : null,
|
|
56975
|
+
CanadianUnitType: isCanadianAddress ? mapUnitTypeToEcore(deltaData?.unitType) ?? null : null,
|
|
56976
56976
|
UnitNumber: deltaData?.unitNumber ?? null,
|
|
56977
56977
|
City: address.city,
|
|
56978
56978
|
ProvinceState: provinceState,
|
|
@@ -58160,21 +58160,34 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58160
58160
|
return "";
|
|
58161
58161
|
return str.toLowerCase().replace(/(?:^|\s|[-/])\S/g, (match) => match.toUpperCase());
|
|
58162
58162
|
}
|
|
58163
|
-
function
|
|
58163
|
+
function generateTaskAffiliationKey(affiliation) {
|
|
58164
58164
|
const person = affiliation.participant;
|
|
58165
58165
|
const firstName = person._profile.firstName || "";
|
|
58166
58166
|
const lastName = person._profile.lastName || "";
|
|
58167
58167
|
const middleName = person._profile.middleName || "";
|
|
58168
58168
|
const role = affiliation.role.static_title || "";
|
|
58169
|
-
|
|
58169
|
+
const joinedName = [toTitleCase(firstName), toTitleCase(middleName), toTitleCase(lastName)].filter(Boolean).join(" ");
|
|
58170
|
+
return [joinedName, toTitleCase(role)].filter(Boolean).join(", ");
|
|
58170
58171
|
}
|
|
58171
|
-
function
|
|
58172
|
+
function generateTaskAffiliationFullName(affiliation) {
|
|
58172
58173
|
const person = affiliation.participant;
|
|
58173
58174
|
const firstName = person._profile.firstName || "";
|
|
58174
58175
|
const lastName = person._profile.lastName || "";
|
|
58175
58176
|
const middleName = person._profile.middleName || "";
|
|
58176
58177
|
return [firstName, middleName, lastName].filter(Boolean).join(" ");
|
|
58177
58178
|
}
|
|
58179
|
+
function generateCurrentDataAffiliationKey(payload) {
|
|
58180
|
+
const firstName = payload?.PersonName?.FirstName ?? "";
|
|
58181
|
+
const middleName = payload?.PersonName?.MiddleName ?? "";
|
|
58182
|
+
const lastName = payload?.PersonName?.LastName ?? "";
|
|
58183
|
+
const role = payload?.OfficerPositionName ?? payload?.PersonName?.Position ?? (payload?.IsDirector ? "Director" : "");
|
|
58184
|
+
const joinedName = [
|
|
58185
|
+
toTitleCase(firstName),
|
|
58186
|
+
toTitleCase(middleName),
|
|
58187
|
+
toTitleCase(lastName)
|
|
58188
|
+
].filter(Boolean).join(" ");
|
|
58189
|
+
return [joinedName, toTitleCase(role)].filter(Boolean).join(", ");
|
|
58190
|
+
}
|
|
58178
58191
|
var init_common_utils = __esm({
|
|
58179
58192
|
"src/app/utils/common.utils.ts"() {
|
|
58180
58193
|
init_app_constants();
|
|
@@ -58426,6 +58439,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58426
58439
|
init_OntarioConstants();
|
|
58427
58440
|
init_address_utils();
|
|
58428
58441
|
init_address_utils();
|
|
58442
|
+
init_transform_utils();
|
|
58429
58443
|
ONTARIO_NAME_TYPE_OPTIONS = Object.values(NameType).filter((v) => typeof v === "number").map((v) => ({ label: NameTypeLabel[v], value: v }));
|
|
58430
58444
|
FORMATION_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT = [
|
|
58431
58445
|
{
|
|
@@ -58843,11 +58857,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58843
58857
|
form.get(FormationFormControls.StreetName)?.setValue(streetName, { emitEvent: false });
|
|
58844
58858
|
form.get(FormationFormControls.StreetNumber)?.setValue(streetNumberOnly, { emitEvent: false });
|
|
58845
58859
|
form.get(FormationFormControls.UnitNumber)?.setValue(suite ?? "", { emitEvent: false });
|
|
58860
|
+
form.get(FormationFormControls.UnitType)?.setValue(suite && isCanadian ? ECoreCanadianUnitType.UNIT : "", { emitEvent: false });
|
|
58846
58861
|
form.get(FormationFormControls.City)?.setValue(address?.city ?? "", { emitEvent: false });
|
|
58847
58862
|
form.get(FormationFormControls.Province)?.setValue(address?.province_state ?? "", { emitEvent: false });
|
|
58848
58863
|
form.get(FormationFormControls.PostalCode)?.setValue(address?.postal_zip ?? "", { emitEvent: false });
|
|
58849
|
-
form.get(FormationFormControls.
|
|
58850
|
-
form.get(FormationFormControls.UnitType)?.setValue(address?.country ?? normalizedCountryCode ?? "", { emitEvent: false });
|
|
58864
|
+
form.get(FormationFormControls.Country)?.setValue(address?.country ?? normalizedCountryCode ?? "", { emitEvent: false });
|
|
58851
58865
|
let affiliationAddressType;
|
|
58852
58866
|
if (isCanadian) {
|
|
58853
58867
|
affiliationAddressType = suite ? AffiliationAddressType.CanadianSuite : AffiliationAddressType.CanadianNoSuite;
|
|
@@ -59066,7 +59080,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59066
59080
|
static generateLegalOpinionConfirmAddressFormGroup(deltaData, affiliations) {
|
|
59067
59081
|
const affiliation = affiliations?.find((a) => a._id === deltaData?.lawyerSigning);
|
|
59068
59082
|
const address = affiliation?.addresses?.at(0) || affiliation?.parent_affiliation?.addresses?.at(0);
|
|
59069
|
-
console.log("Affiliation for legal opinion address:", address);
|
|
59070
59083
|
const normalizedCountryCode = normalizeCountryCode(address?.country);
|
|
59071
59084
|
const suite = getAddressComponent(address, "Suite/Apartment");
|
|
59072
59085
|
const isCanadian = normalizedCountryCode === "CA";
|
|
@@ -59081,7 +59094,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59081
59094
|
return new FormGroup({
|
|
59082
59095
|
[FormationFormControls.LawyerSigningOpinion]: new FormControl(deltaData?.lawyerSigning ?? "", Validators.required),
|
|
59083
59096
|
[FormationFormControls.LawFirm]: new FormControl(deltaData?.lawFirm ?? "", requiredIf(FormationFormControls.LawyerSigningOpinion)),
|
|
59084
|
-
[FormationFormControls.UnitType]: new FormControl(deltaData?.address?.unitType ?? "", requiredIf(IRFormControls.UnitNumber)),
|
|
59097
|
+
[FormationFormControls.UnitType]: new FormControl(deltaData?.address?.unitType ?? (suite && isCanadian ? ECoreCanadianUnitType.UNIT : ""), requiredIf(IRFormControls.UnitNumber)),
|
|
59085
59098
|
[FormationFormControls.UnitNumber]: new FormControl(deltaData?.address?.unitNumber ?? "", requiredIf(IRFormControls.UnitType)),
|
|
59086
59099
|
[FormationFormControls.StreetNumber]: new FormControl(deltaData?.address?.streetNumber ?? "", Validators.required),
|
|
59087
59100
|
[FormationFormControls.StreetName]: new FormControl(deltaData?.address?.streetName ?? "", Validators.required),
|
|
@@ -59135,7 +59148,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59135
59148
|
form2.addControl(FormationFormControls.StreetName, new FormControl(delta?.streetName ?? streetName, Validators.required));
|
|
59136
59149
|
form2.addControl(FormationFormControls.StreetNumber, new FormControl(delta?.streetNumber ?? streetNumberOnly, Validators.required));
|
|
59137
59150
|
form2.addControl(FormationFormControls.UnitNumber, new FormControl(delta?.unitNumber ?? suite, requiredIf(FormationFormControls.UnitType)));
|
|
59138
|
-
form2.addControl(FormationFormControls.UnitType, new FormControl(delta?.unitType ?? (suite ? ECoreCanadianUnitType.UNIT : ""), requiredIf(FormationFormControls.UnitNumber)));
|
|
59151
|
+
form2.addControl(FormationFormControls.UnitType, new FormControl(delta?.unitType ?? (suite && isCanadian ? ECoreCanadianUnitType.UNIT : ""), requiredIf(FormationFormControls.UnitNumber)));
|
|
59139
59152
|
form2.addControl(FormationFormControls.City, new FormControl(address?.city));
|
|
59140
59153
|
form2.addControl(FormationFormControls.Province, new FormControl(address?.province_state));
|
|
59141
59154
|
form2.addControl(FormationFormControls.PostalCode, new FormControl(address?.postal_zip));
|
|
@@ -59317,7 +59330,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59317
59330
|
config2[IRFormControls.StreetName] = new FormControl(delta?.[IRFormControls.StreetName] ?? streetName, Validators.required);
|
|
59318
59331
|
config2[IRFormControls.StreetNumber] = new FormControl(delta?.[IRFormControls.StreetNumber] ?? streetNumberOnly, Validators.required);
|
|
59319
59332
|
config2[IRFormControls.UnitNumber] = new FormControl(delta?.[IRFormControls.UnitNumber] ?? suite, requiredIf(IRFormControls.UnitType));
|
|
59320
|
-
config2[IRFormControls.UnitType] = new FormControl(delta?.[IRFormControls.UnitType] ?? (suite ? ECoreCanadianUnitType.UNIT : ""), requiredIf(IRFormControls.UnitNumber));
|
|
59333
|
+
config2[IRFormControls.UnitType] = new FormControl(delta?.[IRFormControls.UnitType] ?? (suite && isCanadian ? ECoreCanadianUnitType.UNIT : ""), requiredIf(IRFormControls.UnitNumber));
|
|
59321
59334
|
config2[IRFormControls.City] = new FormControl(delta?.[IRFormControls.City] ?? address?.city);
|
|
59322
59335
|
config2[IRFormControls.Province] = new FormControl(delta?.[IRFormControls.Province] ?? address?.province_state);
|
|
59323
59336
|
config2[IRFormControls.PostalCode] = new FormControl(delta?.[IRFormControls.PostalCode] ?? address?.postal_zip);
|
|
@@ -59349,8 +59362,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59349
59362
|
const address = affiliation.addresses.at(0) || affiliation.parent_affiliation?.addresses?.at(0);
|
|
59350
59363
|
const communications = affiliation.participant.communications;
|
|
59351
59364
|
const emailAddress = affiliation.participant.communicationEmail ?? communications?.find((item) => item.type.toLowerCase().includes("email"))?.value;
|
|
59352
|
-
const name =
|
|
59353
|
-
const key =
|
|
59365
|
+
const name = generateTaskAffiliationFullName(affiliation);
|
|
59366
|
+
const key = generateTaskAffiliationKey(affiliation);
|
|
59354
59367
|
const currentData = comparisonData?.persons.get(key);
|
|
59355
59368
|
let correctedAffiliationType = affiliationType;
|
|
59356
59369
|
let isThisChangeToAnExistingEntity = false;
|
|
@@ -59367,7 +59380,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59367
59380
|
correctedAffiliationType = IRAffiliationType.Update;
|
|
59368
59381
|
} else {
|
|
59369
59382
|
const keys = Array.from(comparisonData?.persons.keys() ?? []);
|
|
59370
|
-
const keyLikeField = keys.find((item) => item.includes(name.toLowerCase()));
|
|
59383
|
+
const keyLikeField = keys.find((item) => item.toLowerCase().includes(name.toLowerCase()));
|
|
59371
59384
|
if (keyLikeField) {
|
|
59372
59385
|
isThisChangeToAnExistingEntity = false;
|
|
59373
59386
|
isThisChangeToAnExistingEntityVisible = true;
|
|
@@ -63035,6 +63048,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
63035
63048
|
isStatusIcon = input(false);
|
|
63036
63049
|
isOpen = input(void 0);
|
|
63037
63050
|
removable = input(false);
|
|
63051
|
+
isLoading = input(false);
|
|
63038
63052
|
toggled = output();
|
|
63039
63053
|
remove = output();
|
|
63040
63054
|
isExpanded = signal(true);
|
|
@@ -63067,7 +63081,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
63067
63081
|
static \u0275fac = function ExpandableCardComponent_Factory(__ngFactoryType__) {
|
|
63068
63082
|
return new (__ngFactoryType__ || _ExpandableCardComponent)();
|
|
63069
63083
|
};
|
|
63070
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _ExpandableCardComponent, selectors: [["expandable-card"]], inputs: { title: [1, "title"], role: [1, "role"], isListItem: [1, "isListItem"], isExpandable: [1, "isExpandable"], border: [1, "border"], padded: [1, "padded"], isValid: [1, "isValid"], chipType: [1, "chipType"], isStatusIcon: [1, "isStatusIcon"], isOpen: [1, "isOpen"], removable: [1, "removable"] }, outputs: { toggled: "toggled", remove: "remove" }, ngContentSelectors: _c08, decls: 14, vars: 17, consts: [[1, "expandable-card"], [1, "expandable-card-header", 3, "click"], [1, "expandable-card-header-title"], [1, "expandable-card-header-container"], [3, "type", "title"], [3, "rotated"], [1, "expandable-card-content"], [1, "expandable-card-content-item"], [1, "expandable-card-content-item-actions"], [1, "expandable-card-header-status-icon"], [1, "body-1-regular", "light-blue", "pointer", 3, "click"]], template: function ExpandableCardComponent_Template(rf, ctx) {
|
|
63084
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _ExpandableCardComponent, selectors: [["expandable-card"]], inputs: { title: [1, "title"], role: [1, "role"], isListItem: [1, "isListItem"], isExpandable: [1, "isExpandable"], border: [1, "border"], padded: [1, "padded"], isValid: [1, "isValid"], chipType: [1, "chipType"], isStatusIcon: [1, "isStatusIcon"], isOpen: [1, "isOpen"], removable: [1, "removable"], isLoading: [1, "isLoading"] }, outputs: { toggled: "toggled", remove: "remove" }, ngContentSelectors: _c08, decls: 14, vars: 17, consts: [[1, "expandable-card"], [1, "expandable-card-header", 3, "click"], [1, "expandable-card-header-title"], [1, "expandable-card-header-container"], [3, "type", "title"], [3, "rotated"], [1, "expandable-card-content"], [1, "expandable-card-content-item"], [1, "expandable-card-content-item-actions"], [1, "expandable-card-header-status-icon"], [1, "body-1-regular", "light-blue", "pointer", 3, "click"]], template: function ExpandableCardComponent_Template(rf, ctx) {
|
|
63071
63085
|
if (rf & 1) {
|
|
63072
63086
|
\u0275\u0275projectionDef();
|
|
63073
63087
|
\u0275\u0275elementStart(0, "div", 0)(1, "div", 1);
|
|
@@ -63100,7 +63114,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
63100
63114
|
\u0275\u0275advance();
|
|
63101
63115
|
\u0275\u0275conditional(ctx.isStatusIcon() ? 7 : -1);
|
|
63102
63116
|
\u0275\u0275advance();
|
|
63103
|
-
\u0275\u0275conditional(ctx.chipType() ? 8 : -1);
|
|
63117
|
+
\u0275\u0275conditional(ctx.chipType() && !ctx.isLoading() ? 8 : -1);
|
|
63104
63118
|
\u0275\u0275advance();
|
|
63105
63119
|
\u0275\u0275conditional(ctx.isExpandable() ? 9 : -1);
|
|
63106
63120
|
\u0275\u0275advance();
|
|
@@ -63169,7 +63183,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
63169
63183
|
}\r
|
|
63170
63184
|
}\r
|
|
63171
63185
|
\r
|
|
63172
|
-
@if(chipType()) {\r
|
|
63186
|
+
@if(chipType() && !isLoading()) {\r
|
|
63173
63187
|
<chip [type]="chipType()" [title]="chipText()"/>\r
|
|
63174
63188
|
}\r
|
|
63175
63189
|
\r
|
|
@@ -79948,14 +79962,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
79948
79962
|
let tmp_12_0;
|
|
79949
79963
|
let tmp_13_0;
|
|
79950
79964
|
let tmp_19_0;
|
|
79951
|
-
let
|
|
79965
|
+
let tmp_23_0;
|
|
79952
79966
|
const formGroup_r5 = ctx.$implicit;
|
|
79953
79967
|
const \u0275$index_41_r4 = ctx.$index;
|
|
79954
79968
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
79955
79969
|
\u0275\u0275advance(2);
|
|
79956
|
-
\u0275\u0275property("isListItem", true)("title", (tmp_12_0 = ctx_r0.getFormGroup(\u0275$index_41_r4).get(ctx_r0.labelKey())) == null ? null : tmp_12_0.value)("role", (tmp_13_0 = ctx_r0.getFormGroup(\u0275$index_41_r4).get(ctx_r0.roleKey())) == null ? null : tmp_13_0.value)("isStatusIcon", ctx_r0.isStatusIcon())("isValid", ctx_r0.getFormGroupValid(\u0275$index_41_r4))("isOpen", ctx_r0.isItemExpanded(\u0275$index_41_r4))("border", false)("padded", false)("chipType", ctx_r0.affiliationTypeToChipType((tmp_19_0 = formGroup_r5.get(ctx_r0.controls.AffiliationType)) == null ? null : tmp_19_0.value))("removable", ctx_r0.removable());
|
|
79970
|
+
\u0275\u0275property("isListItem", true)("title", (tmp_12_0 = ctx_r0.getFormGroup(\u0275$index_41_r4).get(ctx_r0.labelKey())) == null ? null : tmp_12_0.value)("role", (tmp_13_0 = ctx_r0.getFormGroup(\u0275$index_41_r4).get(ctx_r0.roleKey())) == null ? null : tmp_13_0.value)("isStatusIcon", ctx_r0.isStatusIcon())("isValid", ctx_r0.getFormGroupValid(\u0275$index_41_r4))("isOpen", ctx_r0.isItemExpanded(\u0275$index_41_r4))("border", false)("padded", false)("chipType", ctx_r0.affiliationTypeToChipType((tmp_19_0 = formGroup_r5.get(ctx_r0.controls.AffiliationType)) == null ? null : tmp_19_0.value))("isLoading", ctx_r0.isLoading())("removable", ctx_r0.removable());
|
|
79957
79971
|
const form_r6 = ctx_r0.getFormGroup(\u0275$index_41_r4);
|
|
79958
|
-
const configValue_r7 = (
|
|
79972
|
+
const configValue_r7 = (tmp_23_0 = (tmp_23_0 = ctx_r0.fields()) !== null && tmp_23_0 !== void 0 ? tmp_23_0 : (tmp_23_0 = ctx_r0.config()) == null ? null : tmp_23_0[(tmp_23_0 = form_r6.get(ctx_r0.configKey())) == null ? null : tmp_23_0.value]) !== null && tmp_23_0 !== void 0 ? tmp_23_0 : \u0275\u0275pureFunction0(15, _c27);
|
|
79959
79973
|
\u0275\u0275advance(3);
|
|
79960
79974
|
\u0275\u0275property("prevData", ctx_r0.prevData())("isSubmitted", ctx_r0.isSubmitted())("form", form_r6)("config", configValue_r7);
|
|
79961
79975
|
}
|
|
@@ -79992,6 +80006,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
79992
80006
|
prevData = input();
|
|
79993
80007
|
removable = input(false);
|
|
79994
80008
|
isValid = input(false);
|
|
80009
|
+
isLoading = input(false);
|
|
79995
80010
|
remove = output();
|
|
79996
80011
|
visiblyValidChange = output();
|
|
79997
80012
|
dr = inject(DestroyRef);
|
|
@@ -80056,7 +80071,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
80056
80071
|
static \u0275fac = function ExpandableListCardComponent_Factory(__ngFactoryType__) {
|
|
80057
80072
|
return new (__ngFactoryType__ || _ExpandableListCardComponent)();
|
|
80058
80073
|
};
|
|
80059
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _ExpandableListCardComponent, selectors: [["expandable-list-card"]], inputs: { title: [1, "title"], isStatusIcon: [1, "isStatusIcon"], areItemsOpen: [1, "areItemsOpen"], isSubmitted: [1, "isSubmitted"], fields: [1, "fields"], config: [1, "config"], configKey: [1, "configKey"], formArray: [1, "formArray"], labelKey: [1, "labelKey"], roleKey: [1, "roleKey"], prevData: [1, "prevData"], removable: [1, "removable"], isValid: [1, "isValid"] }, outputs: { remove: "remove", visiblyValidChange: "visiblyValidChange" }, ngContentSelectors: _c110, decls: 17, vars: 10, consts: [[1, "expandable-card"], [1, "expandable-card-header", 3, "click"], [1, "expandable-card-header-title"], [1, "expandable-card-header-container"], [1, "expandable-card-content"], [1, "expandable-card-actions"], [1, "expandable-card-actions-items"], [1, "expandable-card-header-status-icon"], [1, "expandable-card-actions-item", 3, "click"], [1, "expandable-card-actions-separator"], [1, "expandable-card-separator"], [1, "expandable-card-separator-line"], [3, "toggled", "remove", "isListItem", "title", "role", "isStatusIcon", "isValid", "isOpen", "border", "padded", "chipType", "removable"], [3, "prevData", "isSubmitted", "form", "config"]], template: function ExpandableListCardComponent_Template(rf, ctx) {
|
|
80074
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _ExpandableListCardComponent, selectors: [["expandable-list-card"]], inputs: { title: [1, "title"], isStatusIcon: [1, "isStatusIcon"], areItemsOpen: [1, "areItemsOpen"], isSubmitted: [1, "isSubmitted"], fields: [1, "fields"], config: [1, "config"], configKey: [1, "configKey"], formArray: [1, "formArray"], labelKey: [1, "labelKey"], roleKey: [1, "roleKey"], prevData: [1, "prevData"], removable: [1, "removable"], isValid: [1, "isValid"], isLoading: [1, "isLoading"] }, outputs: { remove: "remove", visiblyValidChange: "visiblyValidChange" }, ngContentSelectors: _c110, decls: 17, vars: 10, consts: [[1, "expandable-card"], [1, "expandable-card-header", 3, "click"], [1, "expandable-card-header-title"], [1, "expandable-card-header-container"], [1, "expandable-card-content"], [1, "expandable-card-actions"], [1, "expandable-card-actions-items"], [1, "expandable-card-header-status-icon"], [1, "expandable-card-actions-item", 3, "click"], [1, "expandable-card-actions-separator"], [1, "expandable-card-separator"], [1, "expandable-card-separator-line"], [3, "toggled", "remove", "isListItem", "title", "role", "isStatusIcon", "isValid", "isOpen", "border", "padded", "chipType", "isLoading", "removable"], [3, "prevData", "isSubmitted", "form", "config"]], template: function ExpandableListCardComponent_Template(rf, ctx) {
|
|
80060
80075
|
if (rf & 1) {
|
|
80061
80076
|
\u0275\u0275projectionDef(_c014);
|
|
80062
80077
|
\u0275\u0275elementStart(0, "div", 0)(1, "div", 1);
|
|
@@ -80079,7 +80094,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
80079
80094
|
\u0275\u0275elementEnd();
|
|
80080
80095
|
\u0275\u0275template(14, ExpandableListCardComponent_Conditional_14_Template, 9, 6, "div", 6);
|
|
80081
80096
|
\u0275\u0275elementEnd();
|
|
80082
|
-
\u0275\u0275repeaterCreate(15, ExpandableListCardComponent_For_16_Template, 6,
|
|
80097
|
+
\u0275\u0275repeaterCreate(15, ExpandableListCardComponent_For_16_Template, 6, 16, null, null, \u0275\u0275repeaterTrackByIdentity);
|
|
80083
80098
|
\u0275\u0275elementEnd()();
|
|
80084
80099
|
}
|
|
80085
80100
|
if (rf & 2) {
|
|
@@ -80205,6 +80220,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
80205
80220
|
formGroup.get(controls.AffiliationType)?.value\r
|
|
80206
80221
|
)\r
|
|
80207
80222
|
"\r
|
|
80223
|
+
[isLoading]="isLoading()"\r
|
|
80208
80224
|
[removable]="removable()"\r
|
|
80209
80225
|
(toggled)="toggleItem(i)"\r
|
|
80210
80226
|
(remove)="remove.emit(i)"\r
|
|
@@ -81623,7 +81639,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81623
81639
|
const directorsArray_r7 = \u0275\u0275readContextLet(8);
|
|
81624
81640
|
const isOpen_r8 = ((tmp_7_0 = directorsArray_r7 == null ? null : directorsArray_r7.length) !== null && tmp_7_0 !== void 0 ? tmp_7_0 : 0) <= ctx_r0.initiallyOpenCardsCount;
|
|
81625
81641
|
\u0275\u0275advance();
|
|
81626
|
-
\u0275\u0275property("prevData", (tmp_8_0 = ctx_r0.prevData()) == null ? null : tmp_8_0.persons)("isSubmitted", ctx_r0.isSubmitted())("isValid", ctx_r0.sectionValidity["directors"])("areItemsOpen", isOpen_r8)("isStatusIcon", !ctx_r0.readonly())("config", ctx_r0.directorsFieldsMap)("configKey", ctx_r0.controls.AffiliationAddressType)("formArray", directorsArray_r7)("title", ctx_r0.groups.Directors);
|
|
81642
|
+
\u0275\u0275property("prevData", (tmp_8_0 = ctx_r0.prevData()) == null ? null : tmp_8_0.persons)("isSubmitted", ctx_r0.isSubmitted())("isValid", ctx_r0.sectionValidity["directors"])("areItemsOpen", isOpen_r8)("isStatusIcon", !ctx_r0.readonly())("isLoading", ctx_r0.isLoading())("config", ctx_r0.directorsFieldsMap)("configKey", ctx_r0.controls.AffiliationAddressType)("formArray", directorsArray_r7)("title", ctx_r0.groups.Directors);
|
|
81627
81643
|
}
|
|
81628
81644
|
}
|
|
81629
81645
|
function OntarioUpdateMaintainFormComponent_Conditional_10_Template(rf, ctx) {
|
|
@@ -81659,7 +81675,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81659
81675
|
const officersArray_r10 = \u0275\u0275readContextLet(11);
|
|
81660
81676
|
const isOpen_r11 = ((tmp_7_0 = officersArray_r10 == null ? null : officersArray_r10.length) !== null && tmp_7_0 !== void 0 ? tmp_7_0 : 0) <= ctx_r0.initiallyOpenCardsCount;
|
|
81661
81677
|
\u0275\u0275advance();
|
|
81662
|
-
\u0275\u0275property("prevData", (tmp_8_0 = ctx_r0.prevData()) == null ? null : tmp_8_0.persons)("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"]);
|
|
81678
|
+
\u0275\u0275property("prevData", (tmp_8_0 = ctx_r0.prevData()) == null ? null : tmp_8_0.persons)("isSubmitted", ctx_r0.isSubmitted())("areItemsOpen", isOpen_r11)("isStatusIcon", !ctx_r0.readonly())("isLoading", ctx_r0.isLoading())("config", ctx_r0.officersFieldsMap)("configKey", ctx_r0.controls.AffiliationAddressType)("formArray", officersArray_r10)("title", ctx_r0.groups.Officers)("isValid", ctx_r0.sectionValidity["officers"]);
|
|
81663
81679
|
}
|
|
81664
81680
|
}
|
|
81665
81681
|
function OntarioUpdateMaintainFormComponent_Conditional_13_Template(rf, ctx) {
|
|
@@ -81748,6 +81764,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81748
81764
|
isSubmitted = input(false);
|
|
81749
81765
|
readonly = input(false);
|
|
81750
81766
|
prevData = input();
|
|
81767
|
+
isLoading = input(false);
|
|
81751
81768
|
visiblyValidChange = output();
|
|
81752
81769
|
groups = InitialReturnFillingFormGroups;
|
|
81753
81770
|
generalCardFields = ONTARIO_INITIAL_RETURN_FORM_GENERAL_FIELDS;
|
|
@@ -81766,7 +81783,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81766
81783
|
const personKeys = Array.from(prevData?.persons?.keys() ?? []);
|
|
81767
81784
|
const options = personKeys.map((key) => {
|
|
81768
81785
|
const person = prevData?.persons.get(key);
|
|
81769
|
-
|
|
81786
|
+
const item = person?.item;
|
|
81787
|
+
const value = item ? generateCurrentDataAffiliationKey(person?.item) : "";
|
|
81788
|
+
return { label: value, value };
|
|
81770
81789
|
});
|
|
81771
81790
|
this.directorsFieldsMap = generateOntarioInitialReturnFormDirectorsFieldsMap(options);
|
|
81772
81791
|
this.officersFieldsMap = generateOntarioInitialReturnFormOfficerFieldsMap(options);
|
|
@@ -81795,7 +81814,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81795
81814
|
static \u0275fac = function OntarioUpdateMaintainFormComponent_Factory(__ngFactoryType__) {
|
|
81796
81815
|
return new (__ngFactoryType__ || _OntarioUpdateMaintainFormComponent)();
|
|
81797
81816
|
};
|
|
81798
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _OntarioUpdateMaintainFormComponent, selectors: [["ontario-update-maintain-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"], prevData: [1, "prevData"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 20, vars: 17, consts: [[1, "ontario-update-maintain-form"], ["title", "Entity changed", "content", "A new draft needs to be generated as the Entity was changed since the last draft was produced.", 3, "type"], ["title", "The following issues need to be resolved before proceeding:", 3, "content"], [1, "ontario-update-maintain-form-content"], [3, "title", "isStatusIcon"], [3, "isStatusIcon", "isValid", "title"], [3, "prevData", "isSubmitted", "isValid", "areItemsOpen", "isStatusIcon", "config", "configKey", "formArray", "title"], [3, "title"], [3, "prevData", "isSubmitted", "areItemsOpen", "isStatusIcon", "config", "configKey", "formArray", "title", "isValid"], [3, "prevData", "isSubmitted", "form", "config"], [1, "body-1-regular"], [3, "visiblyValidChange", "isSubmitted", "prevData", "form", "config", "label"], [3, "visiblyValidChange", "prevData", "isSubmitted", "form", "config"], [3, "visiblyValidChange", "prevData", "isSubmitted", "isValid", "areItemsOpen", "isStatusIcon", "config", "configKey", "formArray", "title"], [3, "visiblyValidChange", "prevData", "isSubmitted", "areItemsOpen", "isStatusIcon", "config", "configKey", "formArray", "title", "isValid"], [3, "visiblyValidChange", "isSubmitted", "form", "config"]], template: function OntarioUpdateMaintainFormComponent_Template(rf, ctx) {
|
|
81817
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _OntarioUpdateMaintainFormComponent, selectors: [["ontario-update-maintain-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"], prevData: [1, "prevData"], isLoading: [1, "isLoading"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 20, vars: 17, consts: [[1, "ontario-update-maintain-form"], ["title", "Entity changed", "content", "A new draft needs to be generated as the Entity was changed since the last draft was produced.", 3, "type"], ["title", "The following issues need to be resolved before proceeding:", 3, "content"], [1, "ontario-update-maintain-form-content"], [3, "title", "isStatusIcon"], [3, "isStatusIcon", "isValid", "title"], [3, "prevData", "isSubmitted", "isValid", "areItemsOpen", "isStatusIcon", "isLoading", "config", "configKey", "formArray", "title"], [3, "title"], [3, "prevData", "isSubmitted", "areItemsOpen", "isStatusIcon", "isLoading", "config", "configKey", "formArray", "title", "isValid"], [3, "prevData", "isSubmitted", "form", "config"], [1, "body-1-regular"], [3, "visiblyValidChange", "isSubmitted", "prevData", "form", "config", "label"], [3, "visiblyValidChange", "prevData", "isSubmitted", "form", "config"], [3, "visiblyValidChange", "prevData", "isSubmitted", "isValid", "areItemsOpen", "isStatusIcon", "isLoading", "config", "configKey", "formArray", "title"], [3, "visiblyValidChange", "prevData", "isSubmitted", "areItemsOpen", "isStatusIcon", "isLoading", "config", "configKey", "formArray", "title", "isValid"], [3, "visiblyValidChange", "isSubmitted", "form", "config"]], template: function OntarioUpdateMaintainFormComponent_Template(rf, ctx) {
|
|
81799
81818
|
if (rf & 1) {
|
|
81800
81819
|
\u0275\u0275elementStart(0, "div", 0);
|
|
81801
81820
|
\u0275\u0275template(1, OntarioUpdateMaintainFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, OntarioUpdateMaintainFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
@@ -81805,9 +81824,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81805
81824
|
\u0275\u0275declareLet(6);
|
|
81806
81825
|
\u0275\u0275template(7, OntarioUpdateMaintainFormComponent_Conditional_7_Template, 2, 7, "expandable-card", 5);
|
|
81807
81826
|
\u0275\u0275declareLet(8);
|
|
81808
|
-
\u0275\u0275template(9, OntarioUpdateMaintainFormComponent_Conditional_9_Template, 2,
|
|
81827
|
+
\u0275\u0275template(9, OntarioUpdateMaintainFormComponent_Conditional_9_Template, 2, 10, "expandable-list-card", 6)(10, OntarioUpdateMaintainFormComponent_Conditional_10_Template, 4, 4, "expandable-card", 7);
|
|
81809
81828
|
\u0275\u0275declareLet(11);
|
|
81810
|
-
\u0275\u0275template(12, OntarioUpdateMaintainFormComponent_Conditional_12_Template, 2,
|
|
81829
|
+
\u0275\u0275template(12, OntarioUpdateMaintainFormComponent_Conditional_12_Template, 2, 10, "expandable-list-card", 8)(13, OntarioUpdateMaintainFormComponent_Conditional_13_Template, 4, 4, "expandable-card", 7);
|
|
81811
81830
|
\u0275\u0275declareLet(14);
|
|
81812
81831
|
\u0275\u0275elementStart(15, "expandable-card", 5);
|
|
81813
81832
|
\u0275\u0275template(16, OntarioUpdateMaintainFormComponent_Conditional_16_Template, 1, 4, "filing-form-group", 9)(17, OntarioUpdateMaintainFormComponent_Conditional_17_Template, 3, 3, "h2", 10);
|
|
@@ -81935,6 +81954,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81935
81954
|
[isValid]="sectionValidity['directors']"\r
|
|
81936
81955
|
[areItemsOpen]="isOpen"\r
|
|
81937
81956
|
[isStatusIcon]="!readonly()"\r
|
|
81957
|
+
[isLoading]="isLoading()"\r
|
|
81938
81958
|
[config]="directorsFieldsMap"\r
|
|
81939
81959
|
[configKey]="controls.AffiliationAddressType"\r
|
|
81940
81960
|
[formArray]="directorsArray"\r
|
|
@@ -81959,6 +81979,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81959
81979
|
[isSubmitted]="isSubmitted()"\r
|
|
81960
81980
|
[areItemsOpen]="isOpen"\r
|
|
81961
81981
|
[isStatusIcon]="!readonly()"\r
|
|
81982
|
+
[isLoading]="isLoading()"\r
|
|
81962
81983
|
[config]="officersFieldsMap"\r
|
|
81963
81984
|
[configKey]="controls.AffiliationAddressType"\r
|
|
81964
81985
|
[formArray]="officersArray"\r
|
|
@@ -82017,7 +82038,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
82017
82038
|
}], () => [], null);
|
|
82018
82039
|
})();
|
|
82019
82040
|
(() => {
|
|
82020
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(OntarioUpdateMaintainFormComponent, { className: "OntarioUpdateMaintainFormComponent", filePath: "src/app/components/ontario/update-maintain/update-maintain-form/update-maintain-form.component.ts", lineNumber:
|
|
82041
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(OntarioUpdateMaintainFormComponent, { className: "OntarioUpdateMaintainFormComponent", filePath: "src/app/components/ontario/update-maintain/update-maintain-form/update-maintain-form.component.ts", lineNumber: 46 });
|
|
82021
82042
|
})();
|
|
82022
82043
|
}
|
|
82023
82044
|
});
|
|
@@ -82066,7 +82087,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
82066
82087
|
static \u0275fac = function OntarioUpdateMaintainDeltaFormComponent_Factory(__ngFactoryType__) {
|
|
82067
82088
|
return new (__ngFactoryType__ || _OntarioUpdateMaintainDeltaFormComponent)();
|
|
82068
82089
|
};
|
|
82069
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _OntarioUpdateMaintainDeltaFormComponent, selectors: [["ontario-update-maintain-delta-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], isNote: [1, "isNote"], task: [1, "task"], errors: [1, "errors"], prevData: [1, "prevData"] }, outputs: { close: "close", save: "save", validate: "validate" }, decls: 15, vars:
|
|
82090
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _OntarioUpdateMaintainDeltaFormComponent, selectors: [["ontario-update-maintain-delta-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], isNote: [1, "isNote"], task: [1, "task"], errors: [1, "errors"], prevData: [1, "prevData"] }, outputs: { close: "close", save: "save", validate: "validate" }, decls: 15, vars: 20, consts: [[1, "ontario-update-maintain-delta-form"], [1, "ontario-update-maintain-delta-form-content", 3, "visiblyValidChange", "form", "task", "errors", "isNote", "isSubmitted", "readonly", "prevData", "isLoading"], [1, "ontario-update-maintain-delta-form-actions"], ["mat-stroked-button", "", "mat-button", "", 3, "click", "disabled"], [1, "body-1-semibold"], ["color", "primary", "mat-flat-button", "", 1, "submit", 3, "click", "disabled"]], template: function OntarioUpdateMaintainDeltaFormComponent_Template(rf, ctx) {
|
|
82070
82091
|
if (rf & 1) {
|
|
82071
82092
|
\u0275\u0275elementStart(0, "div", 0)(1, "ontario-update-maintain-form", 1);
|
|
82072
82093
|
\u0275\u0275listener("visiblyValidChange", function OntarioUpdateMaintainDeltaFormComponent_Template_ontario_update_maintain_form_visiblyValidChange_1_listener($event) {
|
|
@@ -82100,19 +82121,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
82100
82121
|
}
|
|
82101
82122
|
if (rf & 2) {
|
|
82102
82123
|
\u0275\u0275advance();
|
|
82103
|
-
\u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.combinedErrors())("isNote", ctx.isNote())("isSubmitted", ctx.submitted())("readonly", false)("prevData", ctx.prevData());
|
|
82124
|
+
\u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.combinedErrors())("isNote", ctx.isNote())("isSubmitted", ctx.submitted())("readonly", false)("prevData", ctx.prevData())("isLoading", !ctx.prevData());
|
|
82104
82125
|
\u0275\u0275advance(2);
|
|
82105
82126
|
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
82106
82127
|
\u0275\u0275advance(2);
|
|
82107
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6,
|
|
82128
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 14, "Close"));
|
|
82108
82129
|
\u0275\u0275advance(2);
|
|
82109
82130
|
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
82110
82131
|
\u0275\u0275advance(2);
|
|
82111
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10,
|
|
82132
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 16, "Save Changes"));
|
|
82112
82133
|
\u0275\u0275advance(2);
|
|
82113
82134
|
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
82114
82135
|
\u0275\u0275advance(2);
|
|
82115
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14,
|
|
82136
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14, 18, "Validate & Generate Draft"));
|
|
82116
82137
|
}
|
|
82117
82138
|
}, dependencies: [
|
|
82118
82139
|
MatButton,
|
|
@@ -82137,6 +82158,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
82137
82158
|
[isSubmitted]="submitted()"\r
|
|
82138
82159
|
[readonly]="false"\r
|
|
82139
82160
|
[prevData]="prevData()"\r
|
|
82161
|
+
[isLoading]="!prevData()"\r
|
|
82140
82162
|
(visiblyValidChange)="onVisiblyValidChange($event)"\r
|
|
82141
82163
|
/>\r
|
|
82142
82164
|
\r
|
|
@@ -87442,14 +87464,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87442
87464
|
if (!corporationInfo)
|
|
87443
87465
|
return { persons: personsMap, corporationInfo: { primaryActivity: "", email: "" } };
|
|
87444
87466
|
const initialAdministrators = corporationInfo.CurrentData.InitialAdministrators;
|
|
87445
|
-
const fullName = (payload) => {
|
|
87446
|
-
return [
|
|
87447
|
-
payload.PersonName.FirstName?.toLowerCase() ?? "",
|
|
87448
|
-
payload.PersonName.MiddleName?.toLowerCase() ?? "",
|
|
87449
|
-
payload.PersonName.LastName?.toLowerCase() ?? "",
|
|
87450
|
-
payload.OfficerPositionName?.toLowerCase() ?? payload.PersonName.Position ?? ""
|
|
87451
|
-
].filter(Boolean).join(" ");
|
|
87452
|
-
};
|
|
87453
87467
|
const populatePersonsMap = (list) => {
|
|
87454
87468
|
for (const payload of list ?? []) {
|
|
87455
87469
|
if (!payload)
|
|
@@ -87459,12 +87473,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87459
87473
|
continue;
|
|
87460
87474
|
const email = ("EmailAddress" in payload ? payload.EmailAddress : "") ?? "";
|
|
87461
87475
|
const ceasedRoles = "CeasedAppointedRoles" in payload && Array.isArray(payload.CeasedAppointedRoles) ? payload.CeasedAppointedRoles.map((role) => `${role.PositionFullName} - ${role.CeasedDate} (Appointed ${role.AppointedDate})`) : void 0;
|
|
87462
|
-
|
|
87463
|
-
toTitleCase(payload.PersonName.FirstName ?? ""),
|
|
87464
|
-
toTitleCase(payload.PersonName.MiddleName ?? ""),
|
|
87465
|
-
toTitleCase(payload.PersonName.LastName ?? "")
|
|
87466
|
-
].filter(Boolean).join(" ");
|
|
87467
|
-
personsMap.set(fullName(payload), __spreadProps(__spreadValues({}, deltaData), { email, ceasedRoles, position: payload.OfficerPositionName?.toLowerCase() ?? payload.PersonName.Position ?? "", fullName: name }));
|
|
87476
|
+
personsMap.set(generateCurrentDataAffiliationKey(payload), __spreadProps(__spreadValues({}, deltaData), { email, ceasedRoles, position: payload.OfficerPositionName?.toLowerCase() ?? payload.PersonName.Position ?? "", item: payload }));
|
|
87468
87477
|
}
|
|
87469
87478
|
};
|
|
87470
87479
|
populatePersonsMap(initialAdministrators);
|
|
@@ -87938,7 +87947,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87938
87947
|
const entityAddr = aff.addresses?.at(0) || aff.parent_affiliation?.addresses?.at(0);
|
|
87939
87948
|
const PostalAddress = buildPostalAddress(entityAddr, deltaEntry?.address);
|
|
87940
87949
|
const PersonName = { FirstName: firstName, MiddleName: middleName, LastName: lastName };
|
|
87941
|
-
const
|
|
87950
|
+
const position2 = isOfficer ? OFFICER_TITLE_TO_ECORE_POSITION_CODE[toTitleCase(aff.role?.static_title ?? "")] ?? "" : "Director";
|
|
87942
87951
|
const matchingAdmin = getCurrentDataAdministrator(deltaEntry.currentName ?? "", isOfficer);
|
|
87943
87952
|
const isCeaseAction = currentState === IRCurrentState.Ceased;
|
|
87944
87953
|
const isDirectorFromRole = aff.role?.role_name === "Director";
|
|
@@ -87948,7 +87957,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87948
87957
|
const personNameRoleId = isOfficer ? matchingAdmin?.RoleId ?? null : null;
|
|
87949
87958
|
const mappedCeaseDate = currentState === IRCurrentState.Ceased ? ceaseDate : "";
|
|
87950
87959
|
const mappedElectedDate = currentState === IRCurrentState.Added ? electedDate : "";
|
|
87951
|
-
const positionName = ECORE_POSITION_CODE_TO_POSITION_NAME[
|
|
87960
|
+
const positionName = ECORE_POSITION_CODE_TO_POSITION_NAME[position2?.toUpperCase()];
|
|
87952
87961
|
if (!isOfficer) {
|
|
87953
87962
|
switch (currentState) {
|
|
87954
87963
|
case IRCurrentState.Added:
|
|
@@ -88051,7 +88060,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88051
88060
|
{
|
|
88052
88061
|
State: "",
|
|
88053
88062
|
StateName: "",
|
|
88054
|
-
Position:
|
|
88063
|
+
Position: position2,
|
|
88055
88064
|
PositionFullName: positionName,
|
|
88056
88065
|
CeasedDate: "",
|
|
88057
88066
|
AppointedDate: electedDate
|
|
@@ -88061,8 +88070,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88061
88070
|
EmailAddress: email,
|
|
88062
88071
|
IsDirector: isDirectorFromRole,
|
|
88063
88072
|
PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId }),
|
|
88064
|
-
OfficerPosition:
|
|
88065
|
-
Position:
|
|
88073
|
+
OfficerPosition: position2,
|
|
88074
|
+
Position: position2,
|
|
88066
88075
|
PositionName: positionName,
|
|
88067
88076
|
OfficerPositionName: positionName,
|
|
88068
88077
|
OfficerPositionSpecified: true,
|
|
@@ -88083,7 +88092,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88083
88092
|
{
|
|
88084
88093
|
State: matchingAdmin && isCeaseAction ? IRCurrentState.Ceased : "",
|
|
88085
88094
|
StateName: matchingAdmin && isCeaseAction ? "Ceased" : "",
|
|
88086
|
-
Position:
|
|
88095
|
+
Position: position2,
|
|
88087
88096
|
PositionFullName: positionName,
|
|
88088
88097
|
CeasedDate: matchingAdmin && isCeaseAction ? ceaseDate : "",
|
|
88089
88098
|
AppointedDate: ""
|
|
@@ -88108,7 +88117,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88108
88117
|
{
|
|
88109
88118
|
State: matchingAdmin && isCeaseAction ? IRCurrentState.Ceased : "",
|
|
88110
88119
|
StateName: matchingAdmin && isCeaseAction ? "Ceased" : "",
|
|
88111
|
-
Position:
|
|
88120
|
+
Position: position2,
|
|
88112
88121
|
PositionFullName: positionName,
|
|
88113
88122
|
CeasedDate: matchingAdmin && isCeaseAction ? ceaseDate : "",
|
|
88114
88123
|
AppointedDate: ""
|
|
@@ -88121,7 +88130,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88121
88130
|
RoleId: mappedRoleId,
|
|
88122
88131
|
IsDirector: isDirectorFromRole,
|
|
88123
88132
|
ResidentCanadian: residentCanadian,
|
|
88124
|
-
PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position:
|
|
88133
|
+
PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position: position2 }),
|
|
88125
88134
|
CeaseDate: mappedCeaseDate,
|
|
88126
88135
|
ElectedDate: mappedElectedDate,
|
|
88127
88136
|
CeasedDateSpecified: false,
|
|
@@ -88180,13 +88189,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88180
88189
|
}
|
|
88181
88190
|
return false;
|
|
88182
88191
|
});
|
|
88192
|
+
const position = OFFICER_TITLE_TO_ECORE_POSITION_CODE[cert.officerTitle] ?? null;
|
|
88183
88193
|
const certifier = {
|
|
88184
88194
|
PersonName: {
|
|
88185
88195
|
FirstName: cert.firstName,
|
|
88186
88196
|
LastName: cert.lastName,
|
|
88187
88197
|
MiddleName: cert.middleName,
|
|
88188
88198
|
RoleId: initialAdministratorForCertifier?.RoleId,
|
|
88189
|
-
Position: cert.type === "Officer" ?
|
|
88199
|
+
Position: cert.type === "Officer" ? position : null
|
|
88190
88200
|
},
|
|
88191
88201
|
PostCode: certEntityAddr?.postal_zip ?? null,
|
|
88192
88202
|
AdditionalDetails: {
|