@dyedurham/search-and-file-widget 1.6.22 → 1.6.24
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 +97 -101
- 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,
|
|
@@ -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;
|
|
@@ -58160,21 +58133,34 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58160
58133
|
return "";
|
|
58161
58134
|
return str.toLowerCase().replace(/(?:^|\s|[-/])\S/g, (match) => match.toUpperCase());
|
|
58162
58135
|
}
|
|
58163
|
-
function
|
|
58136
|
+
function generateTaskAffiliationKey(affiliation) {
|
|
58164
58137
|
const person = affiliation.participant;
|
|
58165
58138
|
const firstName = person._profile.firstName || "";
|
|
58166
58139
|
const lastName = person._profile.lastName || "";
|
|
58167
58140
|
const middleName = person._profile.middleName || "";
|
|
58168
58141
|
const role = affiliation.role.static_title || "";
|
|
58169
|
-
|
|
58142
|
+
const joinedName = [toTitleCase(firstName), toTitleCase(middleName), toTitleCase(lastName)].filter(Boolean).join(" ");
|
|
58143
|
+
return [joinedName, toTitleCase(role)].filter(Boolean).join(", ");
|
|
58170
58144
|
}
|
|
58171
|
-
function
|
|
58145
|
+
function generateTaskAffiliationFullName(affiliation) {
|
|
58172
58146
|
const person = affiliation.participant;
|
|
58173
58147
|
const firstName = person._profile.firstName || "";
|
|
58174
58148
|
const lastName = person._profile.lastName || "";
|
|
58175
58149
|
const middleName = person._profile.middleName || "";
|
|
58176
58150
|
return [firstName, middleName, lastName].filter(Boolean).join(" ");
|
|
58177
58151
|
}
|
|
58152
|
+
function generateCurrentDataAffiliationKey(payload) {
|
|
58153
|
+
const firstName = payload?.PersonName?.FirstName ?? "";
|
|
58154
|
+
const middleName = payload?.PersonName?.MiddleName ?? "";
|
|
58155
|
+
const lastName = payload?.PersonName?.LastName ?? "";
|
|
58156
|
+
const role = payload?.OfficerPositionName ?? payload?.PersonName?.Position ?? (payload?.IsDirector ? "Director" : "");
|
|
58157
|
+
const joinedName = [
|
|
58158
|
+
toTitleCase(firstName),
|
|
58159
|
+
toTitleCase(middleName),
|
|
58160
|
+
toTitleCase(lastName)
|
|
58161
|
+
].filter(Boolean).join(" ");
|
|
58162
|
+
return [joinedName, toTitleCase(role)].filter(Boolean).join(", ");
|
|
58163
|
+
}
|
|
58178
58164
|
var init_common_utils = __esm({
|
|
58179
58165
|
"src/app/utils/common.utils.ts"() {
|
|
58180
58166
|
init_app_constants();
|
|
@@ -58426,6 +58412,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58426
58412
|
init_OntarioConstants();
|
|
58427
58413
|
init_address_utils();
|
|
58428
58414
|
init_address_utils();
|
|
58415
|
+
init_transform_utils();
|
|
58429
58416
|
ONTARIO_NAME_TYPE_OPTIONS = Object.values(NameType).filter((v) => typeof v === "number").map((v) => ({ label: NameTypeLabel[v], value: v }));
|
|
58430
58417
|
FORMATION_CARD_FORM_AFFILIATION_FIELDS_CANADIAN_NO_SUIT = [
|
|
58431
58418
|
{
|
|
@@ -58549,12 +58536,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58549
58536
|
type: FormType.Text,
|
|
58550
58537
|
label: "",
|
|
58551
58538
|
formControlName: "",
|
|
58552
|
-
dynamicLabel: (form) => {
|
|
58539
|
+
dynamicLabel: (form, t) => {
|
|
58553
58540
|
const email = form.get(FormationFormControls.OfficialEmail)?.value;
|
|
58554
58541
|
if (!email) {
|
|
58555
58542
|
return "";
|
|
58556
58543
|
}
|
|
58557
|
-
return `<span class="body-1-semibold"
|
|
58544
|
+
return `<span class="body-1-semibold">${t("Email")}:</span> ${email}`;
|
|
58558
58545
|
},
|
|
58559
58546
|
class: "span-12"
|
|
58560
58547
|
};
|
|
@@ -58843,11 +58830,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
58843
58830
|
form.get(FormationFormControls.StreetName)?.setValue(streetName, { emitEvent: false });
|
|
58844
58831
|
form.get(FormationFormControls.StreetNumber)?.setValue(streetNumberOnly, { emitEvent: false });
|
|
58845
58832
|
form.get(FormationFormControls.UnitNumber)?.setValue(suite ?? "", { emitEvent: false });
|
|
58833
|
+
form.get(FormationFormControls.UnitType)?.setValue(suite && isCanadian ? ECoreCanadianUnitType.UNIT : "", { emitEvent: false });
|
|
58846
58834
|
form.get(FormationFormControls.City)?.setValue(address?.city ?? "", { emitEvent: false });
|
|
58847
58835
|
form.get(FormationFormControls.Province)?.setValue(address?.province_state ?? "", { emitEvent: false });
|
|
58848
58836
|
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 });
|
|
58837
|
+
form.get(FormationFormControls.Country)?.setValue(address?.country ?? normalizedCountryCode ?? "", { emitEvent: false });
|
|
58851
58838
|
let affiliationAddressType;
|
|
58852
58839
|
if (isCanadian) {
|
|
58853
58840
|
affiliationAddressType = suite ? AffiliationAddressType.CanadianSuite : AffiliationAddressType.CanadianNoSuite;
|
|
@@ -59066,7 +59053,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59066
59053
|
static generateLegalOpinionConfirmAddressFormGroup(deltaData, affiliations) {
|
|
59067
59054
|
const affiliation = affiliations?.find((a) => a._id === deltaData?.lawyerSigning);
|
|
59068
59055
|
const address = affiliation?.addresses?.at(0) || affiliation?.parent_affiliation?.addresses?.at(0);
|
|
59069
|
-
console.log("Affiliation for legal opinion address:", address);
|
|
59070
59056
|
const normalizedCountryCode = normalizeCountryCode(address?.country);
|
|
59071
59057
|
const suite = getAddressComponent(address, "Suite/Apartment");
|
|
59072
59058
|
const isCanadian = normalizedCountryCode === "CA";
|
|
@@ -59081,7 +59067,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59081
59067
|
return new FormGroup({
|
|
59082
59068
|
[FormationFormControls.LawyerSigningOpinion]: new FormControl(deltaData?.lawyerSigning ?? "", Validators.required),
|
|
59083
59069
|
[FormationFormControls.LawFirm]: new FormControl(deltaData?.lawFirm ?? "", requiredIf(FormationFormControls.LawyerSigningOpinion)),
|
|
59084
|
-
[FormationFormControls.UnitType]: new FormControl(deltaData?.address?.unitType ?? "", requiredIf(IRFormControls.UnitNumber)),
|
|
59070
|
+
[FormationFormControls.UnitType]: new FormControl(deltaData?.address?.unitType ?? (suite && isCanadian ? ECoreCanadianUnitType.UNIT : ""), requiredIf(IRFormControls.UnitNumber)),
|
|
59085
59071
|
[FormationFormControls.UnitNumber]: new FormControl(deltaData?.address?.unitNumber ?? "", requiredIf(IRFormControls.UnitType)),
|
|
59086
59072
|
[FormationFormControls.StreetNumber]: new FormControl(deltaData?.address?.streetNumber ?? "", Validators.required),
|
|
59087
59073
|
[FormationFormControls.StreetName]: new FormControl(deltaData?.address?.streetName ?? "", Validators.required),
|
|
@@ -59135,7 +59121,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59135
59121
|
form2.addControl(FormationFormControls.StreetName, new FormControl(delta?.streetName ?? streetName, Validators.required));
|
|
59136
59122
|
form2.addControl(FormationFormControls.StreetNumber, new FormControl(delta?.streetNumber ?? streetNumberOnly, Validators.required));
|
|
59137
59123
|
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)));
|
|
59124
|
+
form2.addControl(FormationFormControls.UnitType, new FormControl(delta?.unitType ?? (suite && isCanadian ? ECoreCanadianUnitType.UNIT : ""), requiredIf(FormationFormControls.UnitNumber)));
|
|
59139
59125
|
form2.addControl(FormationFormControls.City, new FormControl(address?.city));
|
|
59140
59126
|
form2.addControl(FormationFormControls.Province, new FormControl(address?.province_state));
|
|
59141
59127
|
form2.addControl(FormationFormControls.PostalCode, new FormControl(address?.postal_zip));
|
|
@@ -59317,7 +59303,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59317
59303
|
config2[IRFormControls.StreetName] = new FormControl(delta?.[IRFormControls.StreetName] ?? streetName, Validators.required);
|
|
59318
59304
|
config2[IRFormControls.StreetNumber] = new FormControl(delta?.[IRFormControls.StreetNumber] ?? streetNumberOnly, Validators.required);
|
|
59319
59305
|
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));
|
|
59306
|
+
config2[IRFormControls.UnitType] = new FormControl(delta?.[IRFormControls.UnitType] ?? (suite && isCanadian ? ECoreCanadianUnitType.UNIT : ""), requiredIf(IRFormControls.UnitNumber));
|
|
59321
59307
|
config2[IRFormControls.City] = new FormControl(delta?.[IRFormControls.City] ?? address?.city);
|
|
59322
59308
|
config2[IRFormControls.Province] = new FormControl(delta?.[IRFormControls.Province] ?? address?.province_state);
|
|
59323
59309
|
config2[IRFormControls.PostalCode] = new FormControl(delta?.[IRFormControls.PostalCode] ?? address?.postal_zip);
|
|
@@ -59349,8 +59335,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59349
59335
|
const address = affiliation.addresses.at(0) || affiliation.parent_affiliation?.addresses?.at(0);
|
|
59350
59336
|
const communications = affiliation.participant.communications;
|
|
59351
59337
|
const emailAddress = affiliation.participant.communicationEmail ?? communications?.find((item) => item.type.toLowerCase().includes("email"))?.value;
|
|
59352
|
-
const name =
|
|
59353
|
-
const key =
|
|
59338
|
+
const name = generateTaskAffiliationFullName(affiliation);
|
|
59339
|
+
const key = generateTaskAffiliationKey(affiliation);
|
|
59354
59340
|
const currentData = comparisonData?.persons.get(key);
|
|
59355
59341
|
let correctedAffiliationType = affiliationType;
|
|
59356
59342
|
let isThisChangeToAnExistingEntity = false;
|
|
@@ -59367,7 +59353,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
59367
59353
|
correctedAffiliationType = IRAffiliationType.Update;
|
|
59368
59354
|
} else {
|
|
59369
59355
|
const keys = Array.from(comparisonData?.persons.keys() ?? []);
|
|
59370
|
-
const keyLikeField = keys.find((item) => item.includes(name.toLowerCase()));
|
|
59356
|
+
const keyLikeField = keys.find((item) => item.toLowerCase().includes(name.toLowerCase()));
|
|
59371
59357
|
if (keyLikeField) {
|
|
59372
59358
|
isThisChangeToAnExistingEntity = false;
|
|
59373
59359
|
isThisChangeToAnExistingEntityVisible = true;
|
|
@@ -63035,6 +63021,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
63035
63021
|
isStatusIcon = input(false);
|
|
63036
63022
|
isOpen = input(void 0);
|
|
63037
63023
|
removable = input(false);
|
|
63024
|
+
isLoading = input(false);
|
|
63038
63025
|
toggled = output();
|
|
63039
63026
|
remove = output();
|
|
63040
63027
|
isExpanded = signal(true);
|
|
@@ -63067,7 +63054,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
63067
63054
|
static \u0275fac = function ExpandableCardComponent_Factory(__ngFactoryType__) {
|
|
63068
63055
|
return new (__ngFactoryType__ || _ExpandableCardComponent)();
|
|
63069
63056
|
};
|
|
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) {
|
|
63057
|
+
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
63058
|
if (rf & 1) {
|
|
63072
63059
|
\u0275\u0275projectionDef();
|
|
63073
63060
|
\u0275\u0275elementStart(0, "div", 0)(1, "div", 1);
|
|
@@ -63100,7 +63087,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
63100
63087
|
\u0275\u0275advance();
|
|
63101
63088
|
\u0275\u0275conditional(ctx.isStatusIcon() ? 7 : -1);
|
|
63102
63089
|
\u0275\u0275advance();
|
|
63103
|
-
\u0275\u0275conditional(ctx.chipType() ? 8 : -1);
|
|
63090
|
+
\u0275\u0275conditional(ctx.chipType() && !ctx.isLoading() ? 8 : -1);
|
|
63104
63091
|
\u0275\u0275advance();
|
|
63105
63092
|
\u0275\u0275conditional(ctx.isExpandable() ? 9 : -1);
|
|
63106
63093
|
\u0275\u0275advance();
|
|
@@ -63169,7 +63156,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
63169
63156
|
}\r
|
|
63170
63157
|
}\r
|
|
63171
63158
|
\r
|
|
63172
|
-
@if(chipType()) {\r
|
|
63159
|
+
@if(chipType() && !isLoading()) {\r
|
|
63173
63160
|
<chip [type]="chipType()" [title]="chipText()"/>\r
|
|
63174
63161
|
}\r
|
|
63175
63162
|
\r
|
|
@@ -79948,14 +79935,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
79948
79935
|
let tmp_12_0;
|
|
79949
79936
|
let tmp_13_0;
|
|
79950
79937
|
let tmp_19_0;
|
|
79951
|
-
let
|
|
79938
|
+
let tmp_23_0;
|
|
79952
79939
|
const formGroup_r5 = ctx.$implicit;
|
|
79953
79940
|
const \u0275$index_41_r4 = ctx.$index;
|
|
79954
79941
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
79955
79942
|
\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());
|
|
79943
|
+
\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
79944
|
const form_r6 = ctx_r0.getFormGroup(\u0275$index_41_r4);
|
|
79958
|
-
const configValue_r7 = (
|
|
79945
|
+
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
79946
|
\u0275\u0275advance(3);
|
|
79960
79947
|
\u0275\u0275property("prevData", ctx_r0.prevData())("isSubmitted", ctx_r0.isSubmitted())("form", form_r6)("config", configValue_r7);
|
|
79961
79948
|
}
|
|
@@ -79992,6 +79979,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
79992
79979
|
prevData = input();
|
|
79993
79980
|
removable = input(false);
|
|
79994
79981
|
isValid = input(false);
|
|
79982
|
+
isLoading = input(false);
|
|
79995
79983
|
remove = output();
|
|
79996
79984
|
visiblyValidChange = output();
|
|
79997
79985
|
dr = inject(DestroyRef);
|
|
@@ -80056,7 +80044,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
80056
80044
|
static \u0275fac = function ExpandableListCardComponent_Factory(__ngFactoryType__) {
|
|
80057
80045
|
return new (__ngFactoryType__ || _ExpandableListCardComponent)();
|
|
80058
80046
|
};
|
|
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) {
|
|
80047
|
+
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
80048
|
if (rf & 1) {
|
|
80061
80049
|
\u0275\u0275projectionDef(_c014);
|
|
80062
80050
|
\u0275\u0275elementStart(0, "div", 0)(1, "div", 1);
|
|
@@ -80079,7 +80067,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
80079
80067
|
\u0275\u0275elementEnd();
|
|
80080
80068
|
\u0275\u0275template(14, ExpandableListCardComponent_Conditional_14_Template, 9, 6, "div", 6);
|
|
80081
80069
|
\u0275\u0275elementEnd();
|
|
80082
|
-
\u0275\u0275repeaterCreate(15, ExpandableListCardComponent_For_16_Template, 6,
|
|
80070
|
+
\u0275\u0275repeaterCreate(15, ExpandableListCardComponent_For_16_Template, 6, 16, null, null, \u0275\u0275repeaterTrackByIdentity);
|
|
80083
80071
|
\u0275\u0275elementEnd()();
|
|
80084
80072
|
}
|
|
80085
80073
|
if (rf & 2) {
|
|
@@ -80205,6 +80193,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
80205
80193
|
formGroup.get(controls.AffiliationType)?.value\r
|
|
80206
80194
|
)\r
|
|
80207
80195
|
"\r
|
|
80196
|
+
[isLoading]="isLoading()"\r
|
|
80208
80197
|
[removable]="removable()"\r
|
|
80209
80198
|
(toggled)="toggleItem(i)"\r
|
|
80210
80199
|
(remove)="remove.emit(i)"\r
|
|
@@ -81451,7 +81440,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81451
81440
|
dynamicLabel: (form, t) => {
|
|
81452
81441
|
const ceaseDate = form.get(IRFormControls.CeaseDate)?.value;
|
|
81453
81442
|
if (ceaseDate) {
|
|
81454
|
-
return `<span class="body-1-semibold">${t("Cease Date")}:</span> ${ceaseDate}`;
|
|
81443
|
+
return `<span class="body-1-semibold">${t("Cease Date")}:</span> ${t(ceaseDate)}`;
|
|
81455
81444
|
}
|
|
81456
81445
|
return "";
|
|
81457
81446
|
},
|
|
@@ -81623,7 +81612,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81623
81612
|
const directorsArray_r7 = \u0275\u0275readContextLet(8);
|
|
81624
81613
|
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
81614
|
\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);
|
|
81615
|
+
\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
81616
|
}
|
|
81628
81617
|
}
|
|
81629
81618
|
function OntarioUpdateMaintainFormComponent_Conditional_10_Template(rf, ctx) {
|
|
@@ -81659,7 +81648,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81659
81648
|
const officersArray_r10 = \u0275\u0275readContextLet(11);
|
|
81660
81649
|
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
81650
|
\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"]);
|
|
81651
|
+
\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
81652
|
}
|
|
81664
81653
|
}
|
|
81665
81654
|
function OntarioUpdateMaintainFormComponent_Conditional_13_Template(rf, ctx) {
|
|
@@ -81748,6 +81737,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81748
81737
|
isSubmitted = input(false);
|
|
81749
81738
|
readonly = input(false);
|
|
81750
81739
|
prevData = input();
|
|
81740
|
+
isLoading = input(false);
|
|
81751
81741
|
visiblyValidChange = output();
|
|
81752
81742
|
groups = InitialReturnFillingFormGroups;
|
|
81753
81743
|
generalCardFields = ONTARIO_INITIAL_RETURN_FORM_GENERAL_FIELDS;
|
|
@@ -81766,7 +81756,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81766
81756
|
const personKeys = Array.from(prevData?.persons?.keys() ?? []);
|
|
81767
81757
|
const options = personKeys.map((key) => {
|
|
81768
81758
|
const person = prevData?.persons.get(key);
|
|
81769
|
-
|
|
81759
|
+
const item = person?.item;
|
|
81760
|
+
const value = item ? generateCurrentDataAffiliationKey(person?.item) : "";
|
|
81761
|
+
return { label: value, value };
|
|
81770
81762
|
});
|
|
81771
81763
|
this.directorsFieldsMap = generateOntarioInitialReturnFormDirectorsFieldsMap(options);
|
|
81772
81764
|
this.officersFieldsMap = generateOntarioInitialReturnFormOfficerFieldsMap(options);
|
|
@@ -81795,7 +81787,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81795
81787
|
static \u0275fac = function OntarioUpdateMaintainFormComponent_Factory(__ngFactoryType__) {
|
|
81796
81788
|
return new (__ngFactoryType__ || _OntarioUpdateMaintainFormComponent)();
|
|
81797
81789
|
};
|
|
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) {
|
|
81790
|
+
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
81791
|
if (rf & 1) {
|
|
81800
81792
|
\u0275\u0275elementStart(0, "div", 0);
|
|
81801
81793
|
\u0275\u0275template(1, OntarioUpdateMaintainFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, OntarioUpdateMaintainFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
|
|
@@ -81805,9 +81797,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81805
81797
|
\u0275\u0275declareLet(6);
|
|
81806
81798
|
\u0275\u0275template(7, OntarioUpdateMaintainFormComponent_Conditional_7_Template, 2, 7, "expandable-card", 5);
|
|
81807
81799
|
\u0275\u0275declareLet(8);
|
|
81808
|
-
\u0275\u0275template(9, OntarioUpdateMaintainFormComponent_Conditional_9_Template, 2,
|
|
81800
|
+
\u0275\u0275template(9, OntarioUpdateMaintainFormComponent_Conditional_9_Template, 2, 10, "expandable-list-card", 6)(10, OntarioUpdateMaintainFormComponent_Conditional_10_Template, 4, 4, "expandable-card", 7);
|
|
81809
81801
|
\u0275\u0275declareLet(11);
|
|
81810
|
-
\u0275\u0275template(12, OntarioUpdateMaintainFormComponent_Conditional_12_Template, 2,
|
|
81802
|
+
\u0275\u0275template(12, OntarioUpdateMaintainFormComponent_Conditional_12_Template, 2, 10, "expandable-list-card", 8)(13, OntarioUpdateMaintainFormComponent_Conditional_13_Template, 4, 4, "expandable-card", 7);
|
|
81811
81803
|
\u0275\u0275declareLet(14);
|
|
81812
81804
|
\u0275\u0275elementStart(15, "expandable-card", 5);
|
|
81813
81805
|
\u0275\u0275template(16, OntarioUpdateMaintainFormComponent_Conditional_16_Template, 1, 4, "filing-form-group", 9)(17, OntarioUpdateMaintainFormComponent_Conditional_17_Template, 3, 3, "h2", 10);
|
|
@@ -81935,6 +81927,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81935
81927
|
[isValid]="sectionValidity['directors']"\r
|
|
81936
81928
|
[areItemsOpen]="isOpen"\r
|
|
81937
81929
|
[isStatusIcon]="!readonly()"\r
|
|
81930
|
+
[isLoading]="isLoading()"\r
|
|
81938
81931
|
[config]="directorsFieldsMap"\r
|
|
81939
81932
|
[configKey]="controls.AffiliationAddressType"\r
|
|
81940
81933
|
[formArray]="directorsArray"\r
|
|
@@ -81959,6 +81952,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
81959
81952
|
[isSubmitted]="isSubmitted()"\r
|
|
81960
81953
|
[areItemsOpen]="isOpen"\r
|
|
81961
81954
|
[isStatusIcon]="!readonly()"\r
|
|
81955
|
+
[isLoading]="isLoading()"\r
|
|
81962
81956
|
[config]="officersFieldsMap"\r
|
|
81963
81957
|
[configKey]="controls.AffiliationAddressType"\r
|
|
81964
81958
|
[formArray]="officersArray"\r
|
|
@@ -82017,7 +82011,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
82017
82011
|
}], () => [], null);
|
|
82018
82012
|
})();
|
|
82019
82013
|
(() => {
|
|
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:
|
|
82014
|
+
(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
82015
|
})();
|
|
82022
82016
|
}
|
|
82023
82017
|
});
|
|
@@ -82066,7 +82060,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
82066
82060
|
static \u0275fac = function OntarioUpdateMaintainDeltaFormComponent_Factory(__ngFactoryType__) {
|
|
82067
82061
|
return new (__ngFactoryType__ || _OntarioUpdateMaintainDeltaFormComponent)();
|
|
82068
82062
|
};
|
|
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:
|
|
82063
|
+
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
82064
|
if (rf & 1) {
|
|
82071
82065
|
\u0275\u0275elementStart(0, "div", 0)(1, "ontario-update-maintain-form", 1);
|
|
82072
82066
|
\u0275\u0275listener("visiblyValidChange", function OntarioUpdateMaintainDeltaFormComponent_Template_ontario_update_maintain_form_visiblyValidChange_1_listener($event) {
|
|
@@ -82100,19 +82094,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
82100
82094
|
}
|
|
82101
82095
|
if (rf & 2) {
|
|
82102
82096
|
\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());
|
|
82097
|
+
\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
82098
|
\u0275\u0275advance(2);
|
|
82105
82099
|
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
82106
82100
|
\u0275\u0275advance(2);
|
|
82107
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6,
|
|
82101
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 14, "Close"));
|
|
82108
82102
|
\u0275\u0275advance(2);
|
|
82109
82103
|
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
82110
82104
|
\u0275\u0275advance(2);
|
|
82111
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10,
|
|
82105
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 16, "Save Changes"));
|
|
82112
82106
|
\u0275\u0275advance(2);
|
|
82113
82107
|
\u0275\u0275property("disabled", ctx.actionsDisabled());
|
|
82114
82108
|
\u0275\u0275advance(2);
|
|
82115
|
-
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14,
|
|
82109
|
+
\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14, 18, "Validate & Generate Draft"));
|
|
82116
82110
|
}
|
|
82117
82111
|
}, dependencies: [
|
|
82118
82112
|
MatButton,
|
|
@@ -82137,6 +82131,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
82137
82131
|
[isSubmitted]="submitted()"\r
|
|
82138
82132
|
[readonly]="false"\r
|
|
82139
82133
|
[prevData]="prevData()"\r
|
|
82134
|
+
[isLoading]="!prevData()"\r
|
|
82140
82135
|
(visiblyValidChange)="onVisiblyValidChange($event)"\r
|
|
82141
82136
|
/>\r
|
|
82142
82137
|
\r
|
|
@@ -83372,13 +83367,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
83372
83367
|
},
|
|
83373
83368
|
{
|
|
83374
83369
|
type: FormType.Text,
|
|
83375
|
-
dynamicLabel: (form) =>
|
|
83370
|
+
dynamicLabel: (form, t) => `${t("Address")}: ${getAddressPreview(form)}`,
|
|
83376
83371
|
formControlName: "",
|
|
83377
83372
|
class: "span-12"
|
|
83378
83373
|
},
|
|
83379
83374
|
{
|
|
83380
83375
|
type: FormType.Text,
|
|
83381
|
-
dynamicLabel: (form) =>
|
|
83376
|
+
dynamicLabel: (form, t) => `${t("Email")}: ${form.get(FederalFormationFormControl.Email)?.value}`,
|
|
83382
83377
|
formControlName: FederalFormationFormControl.Email,
|
|
83383
83378
|
class: "span-12"
|
|
83384
83379
|
}
|
|
@@ -83520,19 +83515,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
83520
83515
|
return [
|
|
83521
83516
|
{
|
|
83522
83517
|
type: FormType.Text,
|
|
83523
|
-
dynamicLabel: (form) =>
|
|
83518
|
+
dynamicLabel: (form, t) => `${t("Date Of Birth")}: ${form.get(FederalFormationFormControl.DateOfBirth)?.value}`,
|
|
83524
83519
|
formControlName: FederalFormationFormControl.DateOfBirth,
|
|
83525
83520
|
class: "span-12"
|
|
83526
83521
|
},
|
|
83527
83522
|
{
|
|
83528
83523
|
type: FormType.Text,
|
|
83529
|
-
dynamicLabel: (form) => `<span
|
|
83524
|
+
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>`,
|
|
83530
83525
|
formControlName: "",
|
|
83531
83526
|
class: "span-12"
|
|
83532
83527
|
},
|
|
83533
83528
|
{
|
|
83534
83529
|
type: FormType.Text,
|
|
83535
|
-
dynamicLabel: (form) =>
|
|
83530
|
+
dynamicLabel: (form, t) => `${t("Residential Address")}: ${getAddressPreview(form)}`,
|
|
83536
83531
|
formControlName: FederalFormationFormControl.DateOfBirth,
|
|
83537
83532
|
class: "span-12"
|
|
83538
83533
|
},
|
|
@@ -83608,18 +83603,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
83608
83603
|
},
|
|
83609
83604
|
{
|
|
83610
83605
|
type: FormType.Text,
|
|
83611
|
-
dynamicLabel: (form) =>
|
|
83606
|
+
dynamicLabel: (form, t) => `${t("Date business activity will begin")}: ${form.get(FederalFormationFormControl.RegistrationDate)?.value ?? ""}`,
|
|
83612
83607
|
formControlName: FederalFormationFormControl.RegistrationDate,
|
|
83613
83608
|
class: "span-12"
|
|
83614
83609
|
},
|
|
83615
83610
|
{
|
|
83616
83611
|
type: FormType.Text,
|
|
83617
|
-
dynamicLabel: (form) => {
|
|
83612
|
+
dynamicLabel: (form, t) => {
|
|
83618
83613
|
const email = form.get(FederalFormationFormControl.OfficialEmail)?.value;
|
|
83619
83614
|
if (!email) {
|
|
83620
83615
|
return "";
|
|
83621
83616
|
}
|
|
83622
|
-
return `<span class="body-1-semibold"
|
|
83617
|
+
return `<span class="body-1-semibold">${t("Official Email")}:</span> ${email}`;
|
|
83623
83618
|
},
|
|
83624
83619
|
formControlName: FederalFormationFormControl.OfficialEmail,
|
|
83625
83620
|
class: "span-12"
|
|
@@ -83649,8 +83644,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
83649
83644
|
},
|
|
83650
83645
|
{
|
|
83651
83646
|
type: FormType.Select,
|
|
83652
|
-
dynamicLabel: (form) => {
|
|
83653
|
-
return
|
|
83647
|
+
dynamicLabel: (form, t) => {
|
|
83648
|
+
return `${t("Address for Service in")} ${form.get(FormationFormControls.Province)?.value}`;
|
|
83654
83649
|
},
|
|
83655
83650
|
formControlName: FederalFormationFormControl.ServiceAddressUid,
|
|
83656
83651
|
isVisible: (form) => form.get(FederalFormationFormControl.UseDifferentAddressForService)?.value,
|
|
@@ -83683,7 +83678,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
83683
83678
|
},
|
|
83684
83679
|
{
|
|
83685
83680
|
type: FormType.Text,
|
|
83686
|
-
dynamicLabel: () => `<span class="body-1-regular grey"
|
|
83681
|
+
dynamicLabel: (_, t) => `<span class="body-1-regular grey">${t("Contact Details")}:</span>`,
|
|
83687
83682
|
formControlName: "",
|
|
83688
83683
|
class: "span-12",
|
|
83689
83684
|
required: true
|
|
@@ -87442,14 +87437,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87442
87437
|
if (!corporationInfo)
|
|
87443
87438
|
return { persons: personsMap, corporationInfo: { primaryActivity: "", email: "" } };
|
|
87444
87439
|
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
87440
|
const populatePersonsMap = (list) => {
|
|
87454
87441
|
for (const payload of list ?? []) {
|
|
87455
87442
|
if (!payload)
|
|
@@ -87459,12 +87446,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87459
87446
|
continue;
|
|
87460
87447
|
const email = ("EmailAddress" in payload ? payload.EmailAddress : "") ?? "";
|
|
87461
87448
|
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 }));
|
|
87449
|
+
personsMap.set(generateCurrentDataAffiliationKey(payload), __spreadProps(__spreadValues({}, deltaData), { email, ceasedRoles, position: payload.OfficerPositionName?.toLowerCase() ?? payload.PersonName.Position ?? "", item: payload }));
|
|
87468
87450
|
}
|
|
87469
87451
|
};
|
|
87470
87452
|
populatePersonsMap(initialAdministrators);
|
|
@@ -87938,7 +87920,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87938
87920
|
const entityAddr = aff.addresses?.at(0) || aff.parent_affiliation?.addresses?.at(0);
|
|
87939
87921
|
const PostalAddress = buildPostalAddress(entityAddr, deltaEntry?.address);
|
|
87940
87922
|
const PersonName = { FirstName: firstName, MiddleName: middleName, LastName: lastName };
|
|
87941
|
-
const
|
|
87923
|
+
const position2 = isOfficer ? OFFICER_TITLE_TO_ECORE_POSITION_CODE[toTitleCase(aff.role?.static_title ?? "")] ?? "" : "Director";
|
|
87942
87924
|
const matchingAdmin = getCurrentDataAdministrator(deltaEntry.currentName ?? "", isOfficer);
|
|
87943
87925
|
const isCeaseAction = currentState === IRCurrentState.Ceased;
|
|
87944
87926
|
const isDirectorFromRole = aff.role?.role_name === "Director";
|
|
@@ -87948,7 +87930,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
87948
87930
|
const personNameRoleId = isOfficer ? matchingAdmin?.RoleId ?? null : null;
|
|
87949
87931
|
const mappedCeaseDate = currentState === IRCurrentState.Ceased ? ceaseDate : "";
|
|
87950
87932
|
const mappedElectedDate = currentState === IRCurrentState.Added ? electedDate : "";
|
|
87951
|
-
const positionName = ECORE_POSITION_CODE_TO_POSITION_NAME[
|
|
87933
|
+
const positionName = ECORE_POSITION_CODE_TO_POSITION_NAME[position2?.toUpperCase()];
|
|
87952
87934
|
if (!isOfficer) {
|
|
87953
87935
|
switch (currentState) {
|
|
87954
87936
|
case IRCurrentState.Added:
|
|
@@ -88051,7 +88033,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88051
88033
|
{
|
|
88052
88034
|
State: "",
|
|
88053
88035
|
StateName: "",
|
|
88054
|
-
Position:
|
|
88036
|
+
Position: position2,
|
|
88055
88037
|
PositionFullName: positionName,
|
|
88056
88038
|
CeasedDate: "",
|
|
88057
88039
|
AppointedDate: electedDate
|
|
@@ -88061,8 +88043,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88061
88043
|
EmailAddress: email,
|
|
88062
88044
|
IsDirector: isDirectorFromRole,
|
|
88063
88045
|
PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId }),
|
|
88064
|
-
OfficerPosition:
|
|
88065
|
-
Position:
|
|
88046
|
+
OfficerPosition: position2,
|
|
88047
|
+
Position: position2,
|
|
88066
88048
|
PositionName: positionName,
|
|
88067
88049
|
OfficerPositionName: positionName,
|
|
88068
88050
|
OfficerPositionSpecified: true,
|
|
@@ -88083,7 +88065,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88083
88065
|
{
|
|
88084
88066
|
State: matchingAdmin && isCeaseAction ? IRCurrentState.Ceased : "",
|
|
88085
88067
|
StateName: matchingAdmin && isCeaseAction ? "Ceased" : "",
|
|
88086
|
-
Position:
|
|
88068
|
+
Position: position2,
|
|
88087
88069
|
PositionFullName: positionName,
|
|
88088
88070
|
CeasedDate: matchingAdmin && isCeaseAction ? ceaseDate : "",
|
|
88089
88071
|
AppointedDate: ""
|
|
@@ -88108,7 +88090,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88108
88090
|
{
|
|
88109
88091
|
State: matchingAdmin && isCeaseAction ? IRCurrentState.Ceased : "",
|
|
88110
88092
|
StateName: matchingAdmin && isCeaseAction ? "Ceased" : "",
|
|
88111
|
-
Position:
|
|
88093
|
+
Position: position2,
|
|
88112
88094
|
PositionFullName: positionName,
|
|
88113
88095
|
CeasedDate: matchingAdmin && isCeaseAction ? ceaseDate : "",
|
|
88114
88096
|
AppointedDate: ""
|
|
@@ -88121,7 +88103,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88121
88103
|
RoleId: mappedRoleId,
|
|
88122
88104
|
IsDirector: isDirectorFromRole,
|
|
88123
88105
|
ResidentCanadian: residentCanadian,
|
|
88124
|
-
PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position:
|
|
88106
|
+
PersonName: __spreadProps(__spreadValues({}, PersonName), { RoleId: personNameRoleId, Position: position2 }),
|
|
88125
88107
|
CeaseDate: mappedCeaseDate,
|
|
88126
88108
|
ElectedDate: mappedElectedDate,
|
|
88127
88109
|
CeasedDateSpecified: false,
|
|
@@ -88180,13 +88162,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
88180
88162
|
}
|
|
88181
88163
|
return false;
|
|
88182
88164
|
});
|
|
88165
|
+
const position = OFFICER_TITLE_TO_ECORE_POSITION_CODE[cert.officerTitle] ?? null;
|
|
88183
88166
|
const certifier = {
|
|
88184
88167
|
PersonName: {
|
|
88185
88168
|
FirstName: cert.firstName,
|
|
88186
88169
|
LastName: cert.lastName,
|
|
88187
88170
|
MiddleName: cert.middleName,
|
|
88188
88171
|
RoleId: initialAdministratorForCertifier?.RoleId,
|
|
88189
|
-
Position: cert.type === "Officer" ?
|
|
88172
|
+
Position: cert.type === "Officer" ? position : null
|
|
88190
88173
|
},
|
|
88191
88174
|
PostCode: certEntityAddr?.postal_zip ?? null,
|
|
88192
88175
|
AdditionalDetails: {
|
|
@@ -89119,7 +89102,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89119
89102
|
this.activeStep.set(Step.Validate);
|
|
89120
89103
|
return;
|
|
89121
89104
|
}
|
|
89122
|
-
const dataWasChanged = !deepEqual(currentMappedPayload,
|
|
89105
|
+
const dataWasChanged = !deepEqual(currentMappedPayload, taskFromDeltaData);
|
|
89123
89106
|
this.dataWasChanged.set(dataWasChanged);
|
|
89124
89107
|
this.activeStep.set(dataWasChanged ? Step.Validate : Step.FilingPreview);
|
|
89125
89108
|
}
|
|
@@ -89288,7 +89271,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
89288
89271
|
}], () => [], null);
|
|
89289
89272
|
})();
|
|
89290
89273
|
(() => {
|
|
89291
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber:
|
|
89274
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 72 });
|
|
89292
89275
|
})();
|
|
89293
89276
|
}
|
|
89294
89277
|
});
|
|
@@ -93761,6 +93744,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
93761
93744
|
"Annual Return Year": "Annual Return Year",
|
|
93762
93745
|
"Confirm Address Parts": "Confirm Address Parts",
|
|
93763
93746
|
"Contact Details": "Contact Details",
|
|
93747
|
+
"Date Of Birth": "Date Of Birth",
|
|
93748
|
+
"Countries Of Citizenship": "Countries Of Citizenship",
|
|
93749
|
+
"Countries Of Residence": "Countries Of Residence",
|
|
93750
|
+
"Date business activity will begin": "Date business activity will begin",
|
|
93751
|
+
"Address for Service in": "Address for Service in",
|
|
93764
93752
|
"Requested Date for Incorporation": "Requested Date for Incorporation",
|
|
93765
93753
|
I: "I",
|
|
93766
93754
|
"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.",
|
|
@@ -93827,6 +93815,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
93827
93815
|
"Corporate name": "Corporate name",
|
|
93828
93816
|
"Business Number": "Business Number",
|
|
93829
93817
|
Address: "Address",
|
|
93818
|
+
"Residential Address": "Residential Address",
|
|
93830
93819
|
"Anniversary Date": "Anniversary Date",
|
|
93831
93820
|
"Year of Filing": "Year of Filing",
|
|
93832
93821
|
"Annual Meeting": "Annual Meeting",
|
|
@@ -93885,8 +93874,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
93885
93874
|
"Canadian Resident": "R\xE9sident canadien",
|
|
93886
93875
|
Officers: "Officiers",
|
|
93887
93876
|
"Certified By": "Certifi\xE9 par",
|
|
93888
|
-
"Expand all": "Afficher
|
|
93889
|
-
"Collapse all": "
|
|
93877
|
+
"Expand all": "Afficher tout",
|
|
93878
|
+
"Collapse all": "Masquer tout",
|
|
93890
93879
|
Add: "Ajouter",
|
|
93891
93880
|
Update: "Mettre \xE0 jour",
|
|
93892
93881
|
Cease: "Cesser",
|
|
@@ -93946,6 +93935,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
93946
93935
|
"Also an Incorporator": "\xC9galement fondateur",
|
|
93947
93936
|
"Care Of": "Aux soins de",
|
|
93948
93937
|
City: "Ville",
|
|
93938
|
+
Close: "Fermer",
|
|
93949
93939
|
Province: "Province",
|
|
93950
93940
|
"Province / State": "Province / \xC9tat",
|
|
93951
93941
|
"Postal Code": "Code postal",
|
|
@@ -94030,6 +94020,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94030
94020
|
"Annual Return Year": "Ann\xE9e de la d\xE9claration annuelle",
|
|
94031
94021
|
"Confirm Address Parts": "Confirmer les \xE9l\xE9ments de l'adresse",
|
|
94032
94022
|
"Contact Details": "Coordonn\xE9es",
|
|
94023
|
+
"Date Of Birth": "Date de naissance",
|
|
94024
|
+
"Countries Of Citizenship": "Pays de citoyennet\xE9",
|
|
94025
|
+
"Countries Of Residence": "Pays de r\xE9sidence",
|
|
94026
|
+
"Date business activity will begin": "Date de d\xE9but de l'activit\xE9 commerciale",
|
|
94027
|
+
"Address for Service in": "Adresse aux fins de signification en",
|
|
94033
94028
|
"Requested Date for Incorporation": "Date demand\xE9e pour la constitution",
|
|
94034
94029
|
I: "Je",
|
|
94035
94030
|
"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.",
|
|
@@ -94095,6 +94090,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94095
94090
|
"Corporate name": "Nom de la soci\xE9t\xE9",
|
|
94096
94091
|
"Business Number": "Num\xE9ro d'entreprise",
|
|
94097
94092
|
Address: "Adresse",
|
|
94093
|
+
"Residential Address": "Adresse r\xE9sidentielle",
|
|
94098
94094
|
"Anniversary Date": "Date anniversaire",
|
|
94099
94095
|
"Year of Filing": "Ann\xE9e de d\xE9p\xF4t",
|
|
94100
94096
|
"Annual Meeting": "Assembl\xE9e annuelle",
|