@dyedurham/search-and-file-widget 2.0.97 → 2.0.98
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
CHANGED
|
@@ -84892,7 +84892,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
84892
84892
|
config2[BCChangeOfDirectorsFormGroups.CorporationDetails] = new FormGroup({
|
|
84893
84893
|
[Controls.CorporationName]: this.readOnly(task.entity._profile.name),
|
|
84894
84894
|
[Controls.IncorporationNumber]: this.readOnly(task.entity._profile.corp_number),
|
|
84895
|
-
[Controls.CompanyEmail]:
|
|
84895
|
+
[Controls.CompanyEmail]: new FormControl(companyEmail, [Validators.required, Validators.email])
|
|
84896
84896
|
});
|
|
84897
84897
|
const isDirector = (a) => isPrincipalAffiliation2(a) && a.role?.role_name === "Director";
|
|
84898
84898
|
const incoming = task.incomingAffiliations ?? [];
|
|
@@ -85075,7 +85075,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85075
85075
|
BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS = [
|
|
85076
85076
|
readOnlyRow("Corporation Name", Controls2.CorporationName),
|
|
85077
85077
|
readOnlyRow("Incorporation Number", Controls2.IncorporationNumber),
|
|
85078
|
-
|
|
85078
|
+
{
|
|
85079
|
+
type: FormType.Select,
|
|
85080
|
+
label: "Company Email",
|
|
85081
|
+
formControlName: Controls2.CompanyEmail,
|
|
85082
|
+
required: true,
|
|
85083
|
+
options: [],
|
|
85084
|
+
class: "span-12"
|
|
85085
|
+
}
|
|
85079
85086
|
];
|
|
85080
85087
|
BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS = [
|
|
85081
85088
|
{
|
|
@@ -85218,44 +85225,37 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85218
85225
|
\u0275\u0275elementEnd();
|
|
85219
85226
|
\u0275\u0275text(11);
|
|
85220
85227
|
\u0275\u0275elementEnd();
|
|
85221
|
-
\u0275\
|
|
85222
|
-
\u0275\
|
|
85223
|
-
\u0275\u0275pipe(15, "translate");
|
|
85224
|
-
\u0275\u0275elementEnd();
|
|
85225
|
-
\u0275\u0275text(16);
|
|
85226
|
-
\u0275\u0275elementEnd()()();
|
|
85228
|
+
\u0275\u0275element(12, "filing-form-group", 12);
|
|
85229
|
+
\u0275\u0275elementEnd()();
|
|
85227
85230
|
}
|
|
85228
85231
|
if (rf & 2) {
|
|
85229
85232
|
let tmp_9_0;
|
|
85230
85233
|
let tmp_11_0;
|
|
85231
|
-
let tmp_13_0;
|
|
85232
85234
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85233
85235
|
const corporationDetails_r4 = \u0275\u0275readContextLet(6);
|
|
85234
85236
|
\u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.CorporationDetails);
|
|
85235
85237
|
\u0275\u0275advance(4);
|
|
85236
|
-
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5,
|
|
85238
|
+
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 9, "Corporation Name"), ":");
|
|
85237
85239
|
\u0275\u0275advance(2);
|
|
85238
85240
|
\u0275\u0275textInterpolate1(" ", (tmp_9_0 = corporationDetails_r4.get(ctx_r0.controls.CorporationName)) == null ? null : tmp_9_0.value, " ");
|
|
85239
85241
|
\u0275\u0275advance(3);
|
|
85240
|
-
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10,
|
|
85242
|
+
\u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 11, "Incorporation Number"), ":");
|
|
85241
85243
|
\u0275\u0275advance(2);
|
|
85242
85244
|
\u0275\u0275textInterpolate1(" ", (tmp_11_0 = corporationDetails_r4.get(ctx_r0.controls.IncorporationNumber)) == null ? null : tmp_11_0.value, " ");
|
|
85243
|
-
\u0275\u0275advance(
|
|
85244
|
-
\u0275\
|
|
85245
|
-
\u0275\u0275advance(2);
|
|
85246
|
-
\u0275\u0275textInterpolate1(" ", (tmp_13_0 = corporationDetails_r4.get(ctx_r0.controls.CompanyEmail)) == null ? null : tmp_13_0.value, " ");
|
|
85245
|
+
\u0275\u0275advance();
|
|
85246
|
+
\u0275\u0275property("form", corporationDetails_r4)("config", ctx_r0.companyEmailFields())("isSubmitted", ctx_r0.isSubmitted());
|
|
85247
85247
|
}
|
|
85248
85248
|
}
|
|
85249
85249
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template(rf, ctx) {
|
|
85250
85250
|
if (rf & 1) {
|
|
85251
85251
|
const _r7 = \u0275\u0275getCurrentView();
|
|
85252
|
-
\u0275\u0275elementStart(0, "div",
|
|
85252
|
+
\u0275\u0275elementStart(0, "div", 16)(1, "div", 17)(2, "label");
|
|
85253
85253
|
\u0275\u0275text(3);
|
|
85254
85254
|
\u0275\u0275pipe(4, "translate");
|
|
85255
85255
|
\u0275\u0275elementStart(5, "span");
|
|
85256
85256
|
\u0275\u0275text(6, "*");
|
|
85257
85257
|
\u0275\u0275elementEnd()();
|
|
85258
|
-
\u0275\u0275elementStart(7, "mat-form-field",
|
|
85258
|
+
\u0275\u0275elementStart(7, "mat-form-field", 18)(8, "input", 19);
|
|
85259
85259
|
\u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_input_click_8_listener() {
|
|
85260
85260
|
\u0275\u0275restoreView(_r7);
|
|
85261
85261
|
const changeDatePicker_r8 = \u0275\u0275reference(12);
|
|
@@ -85267,21 +85267,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85267
85267
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r6.valid));
|
|
85268
85268
|
});
|
|
85269
85269
|
\u0275\u0275elementEnd();
|
|
85270
|
-
\u0275\u0275elementStart(9, "button",
|
|
85270
|
+
\u0275\u0275elementStart(9, "button", 20);
|
|
85271
85271
|
\u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_button_click_9_listener() {
|
|
85272
85272
|
\u0275\u0275restoreView(_r7);
|
|
85273
85273
|
const changeDatePicker_r8 = \u0275\u0275reference(12);
|
|
85274
85274
|
return \u0275\u0275resetView(changeDatePicker_r8.open());
|
|
85275
85275
|
});
|
|
85276
|
-
\u0275\u0275element(10, "span",
|
|
85276
|
+
\u0275\u0275element(10, "span", 21);
|
|
85277
85277
|
\u0275\u0275elementEnd();
|
|
85278
85278
|
\u0275\u0275element(11, "mat-datepicker", null, 0);
|
|
85279
85279
|
\u0275\u0275elementEnd();
|
|
85280
|
-
\u0275\u0275elementStart(13, "p",
|
|
85280
|
+
\u0275\u0275elementStart(13, "p", 22);
|
|
85281
85281
|
\u0275\u0275text(14);
|
|
85282
85282
|
\u0275\u0275pipe(15, "translate");
|
|
85283
85283
|
\u0275\u0275elementEnd()();
|
|
85284
|
-
\u0275\u0275elementStart(16, "p",
|
|
85284
|
+
\u0275\u0275elementStart(16, "p", 23)(17, "strong");
|
|
85285
85285
|
\u0275\u0275text(18);
|
|
85286
85286
|
\u0275\u0275pipe(19, "translate");
|
|
85287
85287
|
\u0275\u0275elementEnd();
|
|
@@ -85308,14 +85308,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85308
85308
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template(rf, ctx) {
|
|
85309
85309
|
if (rf & 1) {
|
|
85310
85310
|
const _r5 = \u0275\u0275getCurrentView();
|
|
85311
|
-
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div",
|
|
85311
|
+
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 13)(2, "div", 14)(3, "strong");
|
|
85312
85312
|
\u0275\u0275text(4);
|
|
85313
85313
|
\u0275\u0275pipe(5, "translate");
|
|
85314
85314
|
\u0275\u0275elementEnd();
|
|
85315
85315
|
\u0275\u0275text(6);
|
|
85316
85316
|
\u0275\u0275pipe(7, "translate");
|
|
85317
85317
|
\u0275\u0275elementEnd();
|
|
85318
|
-
\u0275\u0275elementStart(8, "mat-checkbox",
|
|
85318
|
+
\u0275\u0275elementStart(8, "mat-checkbox", 15);
|
|
85319
85319
|
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_8_listener() {
|
|
85320
85320
|
let tmp_7_0;
|
|
85321
85321
|
let tmp_8_0;
|
|
@@ -85329,7 +85329,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85329
85329
|
\u0275\u0275text(9);
|
|
85330
85330
|
\u0275\u0275pipe(10, "translate");
|
|
85331
85331
|
\u0275\u0275elementEnd();
|
|
85332
|
-
\u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 21, 12, "div",
|
|
85332
|
+
\u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 21, 12, "div", 16);
|
|
85333
85333
|
\u0275\u0275elementEnd()();
|
|
85334
85334
|
}
|
|
85335
85335
|
if (rf & 2) {
|
|
@@ -85353,7 +85353,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85353
85353
|
}
|
|
85354
85354
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
|
|
85355
85355
|
if (rf & 1) {
|
|
85356
|
-
\u0275\u0275elementStart(0, "span",
|
|
85356
|
+
\u0275\u0275elementStart(0, "span", 28);
|
|
85357
85357
|
\u0275\u0275text(1);
|
|
85358
85358
|
\u0275\u0275pipe(2, "translate");
|
|
85359
85359
|
\u0275\u0275elementEnd();
|
|
@@ -85365,7 +85365,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85365
85365
|
}
|
|
85366
85366
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
|
|
85367
85367
|
if (rf & 1) {
|
|
85368
|
-
\u0275\u0275elementStart(0, "span",
|
|
85368
|
+
\u0275\u0275elementStart(0, "span", 29);
|
|
85369
85369
|
\u0275\u0275text(1);
|
|
85370
85370
|
\u0275\u0275pipe(2, "translate");
|
|
85371
85371
|
\u0275\u0275elementEnd();
|
|
@@ -85377,15 +85377,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85377
85377
|
}
|
|
85378
85378
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template(rf, ctx) {
|
|
85379
85379
|
if (rf & 1) {
|
|
85380
|
-
\u0275\u0275elementStart(0, "div",
|
|
85380
|
+
\u0275\u0275elementStart(0, "div", 26)(1, "div", 27)(2, "strong");
|
|
85381
85381
|
\u0275\u0275text(3);
|
|
85382
85382
|
\u0275\u0275elementEnd();
|
|
85383
|
-
\u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span",
|
|
85383
|
+
\u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span", 28)(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template, 3, 3, "span", 29);
|
|
85384
85384
|
\u0275\u0275elementEnd();
|
|
85385
|
-
\u0275\u0275elementStart(6, "div",
|
|
85385
|
+
\u0275\u0275elementStart(6, "div", 27);
|
|
85386
85386
|
\u0275\u0275text(7);
|
|
85387
85387
|
\u0275\u0275elementEnd();
|
|
85388
|
-
\u0275\u0275elementStart(8, "div",
|
|
85388
|
+
\u0275\u0275elementStart(8, "div", 27);
|
|
85389
85389
|
\u0275\u0275text(9);
|
|
85390
85390
|
\u0275\u0275elementEnd()();
|
|
85391
85391
|
}
|
|
@@ -85411,26 +85411,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85411
85411
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template(rf, ctx) {
|
|
85412
85412
|
if (rf & 1) {
|
|
85413
85413
|
\u0275\u0275declareLet(0);
|
|
85414
|
-
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div",
|
|
85414
|
+
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 26);
|
|
85415
85415
|
}
|
|
85416
85416
|
if (rf & 2) {
|
|
85417
|
-
const \u0275$
|
|
85418
|
-
const directorForm_r11 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$
|
|
85417
|
+
const \u0275$index_110_r10 = ctx.$index;
|
|
85418
|
+
const directorForm_r11 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_110_r10));
|
|
85419
85419
|
\u0275\u0275advance();
|
|
85420
85420
|
\u0275\u0275conditional(directorForm_r11 ? 1 : -1);
|
|
85421
85421
|
}
|
|
85422
85422
|
}
|
|
85423
85423
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template(rf, ctx) {
|
|
85424
85424
|
if (rf & 1) {
|
|
85425
|
-
\u0275\u0275elementStart(0, "div", 8)(1, "div",
|
|
85425
|
+
\u0275\u0275elementStart(0, "div", 8)(1, "div", 24)(2, "div", 25);
|
|
85426
85426
|
\u0275\u0275text(3);
|
|
85427
85427
|
\u0275\u0275pipe(4, "translate");
|
|
85428
85428
|
\u0275\u0275elementEnd();
|
|
85429
|
-
\u0275\u0275elementStart(5, "div",
|
|
85429
|
+
\u0275\u0275elementStart(5, "div", 25);
|
|
85430
85430
|
\u0275\u0275text(6);
|
|
85431
85431
|
\u0275\u0275pipe(7, "translate");
|
|
85432
85432
|
\u0275\u0275elementEnd();
|
|
85433
|
-
\u0275\u0275elementStart(8, "div",
|
|
85433
|
+
\u0275\u0275elementStart(8, "div", 25);
|
|
85434
85434
|
\u0275\u0275text(9);
|
|
85435
85435
|
\u0275\u0275pipe(10, "translate");
|
|
85436
85436
|
\u0275\u0275elementEnd()();
|
|
@@ -85465,22 +85465,22 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85465
85465
|
function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template(rf, ctx) {
|
|
85466
85466
|
if (rf & 1) {
|
|
85467
85467
|
const _r13 = \u0275\u0275getCurrentView();
|
|
85468
|
-
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div",
|
|
85468
|
+
\u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 30)(2, "p");
|
|
85469
85469
|
\u0275\u0275text(3);
|
|
85470
85470
|
\u0275\u0275pipe(4, "translate");
|
|
85471
85471
|
\u0275\u0275elementEnd();
|
|
85472
|
-
\u0275\u0275elementStart(5, "mat-radio-group",
|
|
85472
|
+
\u0275\u0275elementStart(5, "mat-radio-group", 31);
|
|
85473
85473
|
\u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template_mat_radio_group_change_5_listener() {
|
|
85474
85474
|
\u0275\u0275restoreView(_r13);
|
|
85475
85475
|
const ctx_r0 = \u0275\u0275nextContext();
|
|
85476
85476
|
const annualReportReminder_r14 = \u0275\u0275readContextLet(14);
|
|
85477
85477
|
return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r14.valid));
|
|
85478
85478
|
});
|
|
85479
|
-
\u0275\u0275elementStart(6, "mat-radio-button",
|
|
85479
|
+
\u0275\u0275elementStart(6, "mat-radio-button", 32);
|
|
85480
85480
|
\u0275\u0275text(7);
|
|
85481
85481
|
\u0275\u0275pipe(8, "translate");
|
|
85482
85482
|
\u0275\u0275elementEnd();
|
|
85483
|
-
\u0275\u0275elementStart(9, "mat-radio-button",
|
|
85483
|
+
\u0275\u0275elementStart(9, "mat-radio-button", 32);
|
|
85484
85484
|
\u0275\u0275text(10);
|
|
85485
85485
|
\u0275\u0275pipe(11, "translate");
|
|
85486
85486
|
\u0275\u0275elementEnd()()()();
|
|
@@ -85523,6 +85523,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85523
85523
|
init_british_columbia_form_enums();
|
|
85524
85524
|
init_british_columbia_change_of_directors_form_constants();
|
|
85525
85525
|
init_BritishColumbiaConstants();
|
|
85526
|
+
init_british_columbia_formation_form_helper();
|
|
85526
85527
|
init_core();
|
|
85527
85528
|
init_forms();
|
|
85528
85529
|
BritishColumbiaChangeOfDirectorsFormComponent = class _BritishColumbiaChangeOfDirectorsFormComponent {
|
|
@@ -85538,7 +85539,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85538
85539
|
controls = BCChangeOfDirectorsFormControls;
|
|
85539
85540
|
annualReportReminderOption = BCAnnualReportReminder;
|
|
85540
85541
|
referenceNumbersFields = BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS;
|
|
85541
|
-
corporationDetailsFields =
|
|
85542
|
+
corporationDetailsFields = computed(() => {
|
|
85543
|
+
const corporationDetails = this.form().get(this.groups.CorporationDetails);
|
|
85544
|
+
const currentEmail = corporationDetails?.get(this.controls.CompanyEmail)?.value;
|
|
85545
|
+
const emailOptions = BritishColumbiaFormationFormHelper.buildCompanyEmailOptions(this.task(), currentEmail);
|
|
85546
|
+
return BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS.map((field) => field.formControlName === this.controls.CompanyEmail ? __spreadProps(__spreadValues({}, field), { options: emailOptions }) : field);
|
|
85547
|
+
});
|
|
85548
|
+
companyEmailFields = computed(() => this.corporationDetailsFields().filter((field) => field.formControlName === this.controls.CompanyEmail));
|
|
85542
85549
|
filingDetailsFields = BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS;
|
|
85543
85550
|
directorsFields = BC_COD_CARD_FORM_DIRECTORS_FIELDS;
|
|
85544
85551
|
annualReportReminderFields = BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
|
|
@@ -85576,7 +85583,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85576
85583
|
static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
|
|
85577
85584
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
|
|
85578
85585
|
};
|
|
85579
|
-
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfDirectorsFormComponent, selectors: [["british-columbia-change-of-directors-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 16, vars: 14, consts: [["changeDatePicker", ""], [1, "change-of-directors-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, "change-of-directors-form-content"], [3, "title"], [3, "isStatusIcon", "title"], [3, "isStatusIcon", "isValid", "title"], ["role", "table", 1, "directors-table"], [1, "body-1-regular"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "readonly-summary"], [1, "filing-details", 3, "formGroup"], [1, "note-box"], [1, "directors-change-checkbox", 3, "change", "formControlName"], [1, "filing-details-grid"], [1, "date-field"], ["appearance", "outline"], ["matInput", "", "placeholder", "dd/mm/yyyy", "readonly", "", 3, "click", "dateChange", "matDatepicker", "formControlName"], ["type", "button", "aria-label", "Open date picker", 1, "calendar-trigger", 3, "click"], ["aria-hidden", "true", 1, "calendar-icon"], [1, "hint"], [1, "filing-fee"], ["role", "row", 1, "directors-table-header"], ["role", "columnheader"], ["role", "row", 1, "directors-table-row"], ["role", "cell"], [1, "status-pill", "new"], [1, "status-pill", "ceased"], [1, "annual-reminder", 3, "formGroup"], [3, "change", "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfDirectorsFormComponent_Template(rf, ctx) {
|
|
85586
|
+
static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfDirectorsFormComponent, selectors: [["british-columbia-change-of-directors-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 16, vars: 14, consts: [["changeDatePicker", ""], [1, "change-of-directors-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, "change-of-directors-form-content"], [3, "title"], [3, "isStatusIcon", "title"], [3, "isStatusIcon", "isValid", "title"], ["role", "table", 1, "directors-table"], [1, "body-1-regular"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "readonly-summary"], [3, "form", "config", "isSubmitted"], [1, "filing-details", 3, "formGroup"], [1, "note-box"], [1, "directors-change-checkbox", 3, "change", "formControlName"], [1, "filing-details-grid"], [1, "date-field"], ["appearance", "outline"], ["matInput", "", "placeholder", "dd/mm/yyyy", "readonly", "", 3, "click", "dateChange", "matDatepicker", "formControlName"], ["type", "button", "aria-label", "Open date picker", 1, "calendar-trigger", 3, "click"], ["aria-hidden", "true", 1, "calendar-icon"], [1, "hint"], [1, "filing-fee"], ["role", "row", 1, "directors-table-header"], ["role", "columnheader"], ["role", "row", 1, "directors-table-row"], ["role", "cell"], [1, "status-pill", "new"], [1, "status-pill", "ceased"], [1, "annual-reminder", 3, "formGroup"], [3, "change", "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfDirectorsFormComponent_Template(rf, ctx) {
|
|
85580
85587
|
if (rf & 1) {
|
|
85581
85588
|
\u0275\u0275elementStart(0, "div", 1);
|
|
85582
85589
|
\u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 2)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 3);
|
|
@@ -85584,7 +85591,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85584
85591
|
\u0275\u0275declareLet(4);
|
|
85585
85592
|
\u0275\u0275template(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 5);
|
|
85586
85593
|
\u0275\u0275declareLet(6);
|
|
85587
|
-
\u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template,
|
|
85594
|
+
\u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 13, 13, "expandable-card", 6);
|
|
85588
85595
|
\u0275\u0275declareLet(8);
|
|
85589
85596
|
\u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 12, 15, "expandable-card", 7);
|
|
85590
85597
|
\u0275\u0275declareLet(10);
|
|
@@ -85702,10 +85709,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85702
85709
|
<strong>{{ 'Incorporation Number' | translate }}:</strong>\r
|
|
85703
85710
|
{{ corporationDetails.get(controls.IncorporationNumber)?.value }}\r
|
|
85704
85711
|
</p>\r
|
|
85705
|
-
<
|
|
85706
|
-
|
|
85707
|
-
|
|
85708
|
-
|
|
85712
|
+
<filing-form-group
|
|
85713
|
+
[form]="corporationDetails"
|
|
85714
|
+
[config]="companyEmailFields()"
|
|
85715
|
+
[isSubmitted]="isSubmitted()"
|
|
85716
|
+
/>
|
|
85709
85717
|
</div>\r
|
|
85710
85718
|
</expandable-card>\r
|
|
85711
85719
|
}\r
|
|
@@ -85790,8 +85798,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85790
85798
|
\r
|
|
85791
85799
|
@let directorsArray = getFormArray(groups.Directors);\r
|
|
85792
85800
|
\r
|
|
85793
|
-
<expandable-card [isStatusIcon]="false" [title]="groups.Directors"
|
|
85794
|
-
@if (directorsArray && directorsArray.length) {
|
|
85801
|
+
<expandable-card [isStatusIcon]="false" [title]="groups.Directors">
|
|
85802
|
+
@if (directorsArray && directorsArray.length) {
|
|
85795
85803
|
<div class="directors-table" role="table">\r
|
|
85796
85804
|
<div class="directors-table-header" role="row">\r
|
|
85797
85805
|
<div role="columnheader">{{ 'Name' | translate }}</div>\r
|
|
@@ -85858,7 +85866,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
85858
85866
|
}], null, null);
|
|
85859
85867
|
})();
|
|
85860
85868
|
(() => {
|
|
85861
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfDirectorsFormComponent, { className: "BritishColumbiaChangeOfDirectorsFormComponent", filePath: "src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts", lineNumber:
|
|
85869
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfDirectorsFormComponent, { className: "BritishColumbiaChangeOfDirectorsFormComponent", filePath: "src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts", lineNumber: 61 });
|
|
85862
85870
|
})();
|
|
85863
85871
|
}
|
|
85864
85872
|
});
|
|
@@ -93968,9 +93976,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
93968
93976
|
ensureAuthInputs(signature);
|
|
93969
93977
|
const fetchFn = opts.fetchImpl ?? fetch;
|
|
93970
93978
|
const dataExtractUrl = `${this.getOnbisOrigin()}/filings/ca/bc/data-extract`;
|
|
93971
|
-
const orderResp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, signature.proxyApiUrl, signature.jwtToken, order, __spreadValues({
|
|
93979
|
+
const orderResp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, signature.proxyApiUrl, signature.jwtToken, order, __spreadValues(__spreadValues({
|
|
93972
93980
|
"x-target-url": `${dataExtractUrl}/order`
|
|
93973
|
-
}, opts.headers ?? {})));
|
|
93981
|
+
}, this.getEcoreIdentityHeaders()), opts.headers ?? {})));
|
|
93974
93982
|
const ordered = yield this.readJson(orderResp, "BC current data extract order");
|
|
93975
93983
|
const orderId = ordered.currentDataServiceOrderId;
|
|
93976
93984
|
if (!orderResp.ok || !orderId || ordered.status === "failed") {
|
|
@@ -93981,10 +93989,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
93981
93989
|
for (let attempt = 0; attempt < maxAttempts; attempt++) {
|
|
93982
93990
|
const extractResp = yield fetchWithJwtRetry(signature, () => fetchFn(signature.proxyApiUrl, {
|
|
93983
93991
|
method: "GET",
|
|
93984
|
-
headers: __spreadValues({
|
|
93992
|
+
headers: __spreadValues(__spreadValues({
|
|
93985
93993
|
Authorization: `Bearer ${signature.jwtToken}`,
|
|
93986
93994
|
"x-target-url": `${dataExtractUrl}/${encodeURIComponent(orderId)}`
|
|
93987
|
-
}, opts.headers ?? {})
|
|
93995
|
+
}, this.getEcoreIdentityHeaders()), opts.headers ?? {})
|
|
93988
93996
|
}));
|
|
93989
93997
|
const extract = yield this.readJson(extractResp, "BC current data extract");
|
|
93990
93998
|
if (extractResp.ok && extract.status === "success") {
|
|
@@ -94009,9 +94017,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94009
94017
|
const fetchFn = opts.fetchImpl ?? fetch;
|
|
94010
94018
|
const url = signature.proxyApiUrl;
|
|
94011
94019
|
const targetUrl = opts.endpointPath ?? `${this.getOnbisOrigin()}/filings/ca/bc/maintenance-filing`;
|
|
94012
|
-
const resp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, url, signature.jwtToken, requestBody, __spreadValues({
|
|
94020
|
+
const resp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, url, signature.jwtToken, requestBody, __spreadValues(__spreadValues({
|
|
94013
94021
|
"x-target-url": targetUrl
|
|
94014
|
-
}, opts.headers ?? {})));
|
|
94022
|
+
}, this.getEcoreIdentityHeaders()), opts.headers ?? {})));
|
|
94015
94023
|
const raw = yield resp.text();
|
|
94016
94024
|
const parsed = tryParseJson(raw);
|
|
94017
94025
|
if (!parsed.ok) {
|
|
@@ -94044,10 +94052,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94044
94052
|
const targetUrl = opts.endpointPath ?? `${this.getOnbisOrigin()}/filings/ca/bc/maintenance-filing/${encodeURIComponent(serviceOrderId)}`;
|
|
94045
94053
|
const resp = yield fetchWithJwtRetry(signature, () => fetchFn(url, {
|
|
94046
94054
|
method: "GET",
|
|
94047
|
-
headers: __spreadValues({
|
|
94055
|
+
headers: __spreadValues(__spreadValues({
|
|
94048
94056
|
Authorization: `Bearer ${signature.jwtToken}`,
|
|
94049
94057
|
"x-target-url": targetUrl
|
|
94050
|
-
}, opts.headers ?? {})
|
|
94058
|
+
}, this.getEcoreIdentityHeaders()), opts.headers ?? {})
|
|
94051
94059
|
}));
|
|
94052
94060
|
const raw = yield resp.text();
|
|
94053
94061
|
const parsed = tryParseJson(raw);
|
|
@@ -94070,9 +94078,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94070
94078
|
const fetchFn = opts.fetchImpl ?? fetch;
|
|
94071
94079
|
const url = signature.proxyApiUrl;
|
|
94072
94080
|
const targetUrl = opts.endpointPath ?? `${this.getOnbisOrigin()}/filings/ca/bc/maintenance-filing/${encodeURIComponent(serviceOrderId)}/submit`;
|
|
94073
|
-
const resp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, url, signature.jwtToken, {}, __spreadValues({
|
|
94081
|
+
const resp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, url, signature.jwtToken, {}, __spreadValues(__spreadValues({
|
|
94074
94082
|
"x-target-url": targetUrl
|
|
94075
|
-
}, opts.headers ?? {})));
|
|
94083
|
+
}, this.getEcoreIdentityHeaders()), opts.headers ?? {})));
|
|
94076
94084
|
const raw = yield resp.text();
|
|
94077
94085
|
const parsed = tryParseJson(raw);
|
|
94078
94086
|
const payload = parsed.ok ? unwrapRequestResults(parsed.value) : { raw };
|
|
@@ -94102,6 +94110,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94102
94110
|
}
|
|
94103
94111
|
return filingUrl.replace(/\/$/, "");
|
|
94104
94112
|
}
|
|
94113
|
+
getEcoreIdentityHeaders() {
|
|
94114
|
+
const headers = {};
|
|
94115
|
+
const clientId = this.config?.ecoreClientId;
|
|
94116
|
+
const userId = this.config?.ecoreUserId;
|
|
94117
|
+
if (clientId !== void 0 && clientId !== null && String(clientId).trim()) {
|
|
94118
|
+
headers["x-ecore-client-id"] = String(clientId);
|
|
94119
|
+
}
|
|
94120
|
+
if (userId !== void 0 && userId !== null && String(userId).trim()) {
|
|
94121
|
+
headers["x-ecore-user-id"] = String(userId);
|
|
94122
|
+
}
|
|
94123
|
+
return headers;
|
|
94124
|
+
}
|
|
94105
94125
|
static \u0275fac = function BritishColumbiaChangeOfDirectorsService_Factory(__ngFactoryType__) {
|
|
94106
94126
|
return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsService)();
|
|
94107
94127
|
};
|
|
@@ -94218,6 +94238,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94218
94238
|
}
|
|
94219
94239
|
function findDirectorNumber(affiliation, extract) {
|
|
94220
94240
|
const target = normaliseDirectorName(affiliation);
|
|
94241
|
+
const targetId = String(affiliation?._id ?? affiliation?.id ?? "").trim();
|
|
94221
94242
|
let result;
|
|
94222
94243
|
const visit = (value) => {
|
|
94223
94244
|
if (result !== void 0 || value === null || value === void 0)
|
|
@@ -94230,7 +94251,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
94230
94251
|
return;
|
|
94231
94252
|
const record = value;
|
|
94232
94253
|
const number = record["directorNumber"] ?? record["DirectorNumber"];
|
|
94233
|
-
|
|
94254
|
+
const recordId = String(record["_id"] ?? record["id"] ?? record["affiliationId"] ?? "").trim();
|
|
94255
|
+
if (number !== void 0 && (targetId && recordId === targetId || normaliseDirectorName(record) === target)) {
|
|
94234
94256
|
const parsed = Number(number);
|
|
94235
94257
|
if (Number.isFinite(parsed))
|
|
94236
94258
|
result = parsed;
|
|
@@ -95403,7 +95425,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95403
95425
|
[activeStep]="activeStep()"\r
|
|
95404
95426
|
[isNote]="dataWasChanged()"\r
|
|
95405
95427
|
[actionsDisabled]="isLoading()"\r
|
|
95406
|
-
[errors]="errors()"
|
|
95428
|
+
[errors]="errors()"
|
|
95407
95429
|
[prevData]="prevData()"\r
|
|
95408
95430
|
(close)="close.emit()"\r
|
|
95409
95431
|
(formationValidate)="onOntarioFormationValidate($event)"\r
|
|
@@ -95422,9 +95444,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95422
95444
|
[currentUser]="currentUser()"\r
|
|
95423
95445
|
[activeStep]="activeStep()"\r
|
|
95424
95446
|
[isNote]="dataWasChanged()"\r
|
|
95425
|
-
[actionsDisabled]="isLoading()"
|
|
95426
|
-
[errors]="errors()"
|
|
95427
|
-
[currentDataExtract]="currentDataExtract()"
|
|
95447
|
+
[actionsDisabled]="isLoading()"
|
|
95448
|
+
[errors]="errors()"
|
|
95449
|
+
[currentDataExtract]="currentDataExtract()"
|
|
95428
95450
|
(close)="close.emit()"\r
|
|
95429
95451
|
(nextStep)="onNextStepClick()"\r
|
|
95430
95452
|
(prevStep)="onOntarioPrevStep()"\r
|
|
@@ -95465,7 +95487,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
|
|
|
95465
95487
|
}], () => [], null);
|
|
95466
95488
|
})();
|
|
95467
95489
|
(() => {
|
|
95468
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber:
|
|
95490
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 91 });
|
|
95469
95491
|
})();
|
|
95470
95492
|
}
|
|
95471
95493
|
});
|
|
Binary file
|
package/package.json
CHANGED