@dyedurham/search-and-file-widget 2.0.98 → 2.1.0

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.
@@ -84839,32 +84839,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84839
84839
  const value = registryId?.trim() ?? "";
84840
84840
  return value.length >= BC_PASSWORD_MIN_LENGTH && value.length <= BC_PASSWORD_MAX_LENGTH && BC_PASSWORD_PATTERN.test(value) ? value : "";
84841
84841
  }
84842
- /**
84843
- * Athennian stores one address per `location_type` ("Mailing", "Delivery", …).
84844
- * Falls back to the first address so both lines render when only one exists.
84845
- */
84842
+ /** Athennian stores one address per `location_type` ("Mailing", "Delivery", …). */
84846
84843
  static pickAddress(addresses, locationType) {
84847
84844
  if (!addresses?.length) {
84848
84845
  return void 0;
84849
84846
  }
84850
- return addresses.find((a) => (a.computed_location_type ?? a.location_type)?.toLowerCase() === locationType.toLowerCase()) ?? addresses[0];
84847
+ return addresses.find((a) => (a.computed_location_type ?? a.location_type)?.toLowerCase() === locationType.toLowerCase());
84851
84848
  }
84852
84849
  };
84853
84850
  }
84854
84851
  });
84855
84852
 
84856
84853
  // src/app/helpers/british-columbia/change-of-directors/british-columbia-change-of-directors-form.helper.ts
84857
- function notInFuture() {
84858
- return (control) => {
84859
- if (!control.value) {
84860
- return null;
84861
- }
84862
- const value = new Date(control.value);
84863
- const today = /* @__PURE__ */ new Date();
84864
- today.setHours(23, 59, 59, 999);
84865
- return value > today ? { futureDate: true } : null;
84866
- };
84867
- }
84868
84854
  var Controls, BritishColumbiaChangeOfDirectorsFormHelper;
84869
84855
  var init_british_columbia_change_of_directors_form_helper = __esm({
84870
84856
  "src/app/helpers/british-columbia/change-of-directors/british-columbia-change-of-directors-form.helper.ts"() {
@@ -84886,6 +84872,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84886
84872
  const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
84887
84873
  const companyEmail = registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.communications?.find((c) => c.type === "Business Email")?.value ?? "";
84888
84874
  const registeredMailing = format(pick(registeredOffice?.addresses, "Mailing"));
84875
+ const effectiveDate = task._ext._effective_date ?? "";
84889
84876
  const today = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
84890
84877
  const config2 = {};
84891
84878
  config2[BCChangeOfDirectorsFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile?.client_matter_number, delta?.referenceNumbers?.referenceNumber);
@@ -84901,10 +84888,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84901
84888
  const hasAddOrCease = ceasedIds.size > 0 || incoming.filter(isDirector).length > 0;
84902
84889
  config2[BCChangeOfDirectorsFormGroups.FilingDetails] = new FormGroup({
84903
84890
  [Controls.DirectorsAddedOrDeleted]: new FormControl(delta?.filingDetails?.directorsAddedOrDeleted ?? hasAddOrCease),
84904
- [Controls.ChangeDate]: new FormControl(delta?.filingDetails?.changeDate ?? "", [
84905
- requiredIfValue(Controls.DirectorsAddedOrDeleted, true),
84906
- notInFuture()
84907
- ]),
84891
+ [Controls.ChangeDate]: this.readOnly(effectiveDate),
84908
84892
  [Controls.FilingFee]: this.readOnly(BC_CHANGE_OF_DIRECTORS_FILING_FEE)
84909
84893
  });
84910
84894
  const currentDirectorKeys = this.getCurrentDirectorKeys(currentDataExtract);
@@ -85097,20 +85081,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85097
85081
  formControlName: Controls2.DirectorsAddedOrDeleted,
85098
85082
  class: "span-12",
85099
85083
  onChange: (form) => {
85100
- if (!directorsAddedOrDeleted(form)) {
85101
- form.get(Controls2.ChangeDate)?.setValue("", { emitEvent: false });
85102
- }
85103
85084
  form.get(Controls2.ChangeDate)?.updateValueAndValidity({ emitEvent: false });
85104
85085
  }
85105
85086
  },
85106
- {
85107
- type: FormType.Date,
85108
- label: "Date Directors were added or deleted",
85109
- formControlName: Controls2.ChangeDate,
85110
- required: true,
85111
- isVisible: directorsAddedOrDeleted,
85112
- class: "span-8"
85113
- },
85087
+ __spreadProps(__spreadValues({}, readOnlyRow("Date Directors were added or deleted", Controls2.ChangeDate, "span-8")), {
85088
+ isVisible: directorsAddedOrDeleted
85089
+ }),
85114
85090
  __spreadProps(__spreadValues({}, readOnlyRow("Filing Fee", Controls2.FilingFee, "span-4")), {
85115
85091
  isVisible: directorsAddedOrDeleted
85116
85092
  }),
@@ -85176,7 +85152,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85176
85152
  // src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts
85177
85153
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template(rf, ctx) {
85178
85154
  if (rf & 1) {
85179
- \u0275\u0275element(0, "alert", 2);
85155
+ \u0275\u0275element(0, "alert", 1);
85180
85156
  }
85181
85157
  if (rf & 2) {
85182
85158
  const ctx_r0 = \u0275\u0275nextContext();
@@ -85185,7 +85161,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85185
85161
  }
85186
85162
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template(rf, ctx) {
85187
85163
  if (rf & 1) {
85188
- \u0275\u0275element(0, "alert", 3);
85164
+ \u0275\u0275element(0, "alert", 2);
85189
85165
  }
85190
85166
  if (rf & 2) {
85191
85167
  const ctx_r0 = \u0275\u0275nextContext();
@@ -85195,7 +85171,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85195
85171
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template(rf, ctx) {
85196
85172
  if (rf & 1) {
85197
85173
  const _r2 = \u0275\u0275getCurrentView();
85198
- \u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 10);
85174
+ \u0275\u0275elementStart(0, "expandable-card", 4)(1, "filing-form-group", 9);
85199
85175
  \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_1_listener($event) {
85200
85176
  \u0275\u0275restoreView(_r2);
85201
85177
  const ctx_r0 = \u0275\u0275nextContext();
@@ -85213,7 +85189,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85213
85189
  }
85214
85190
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template(rf, ctx) {
85215
85191
  if (rf & 1) {
85216
- \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 11)(2, "p")(3, "strong");
85192
+ \u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 10)(2, "p")(3, "strong");
85217
85193
  \u0275\u0275text(4);
85218
85194
  \u0275\u0275pipe(5, "translate");
85219
85195
  \u0275\u0275elementEnd();
@@ -85225,7 +85201,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85225
85201
  \u0275\u0275elementEnd();
85226
85202
  \u0275\u0275text(11);
85227
85203
  \u0275\u0275elementEnd();
85228
- \u0275\u0275element(12, "filing-form-group", 12);
85204
+ \u0275\u0275element(12, "filing-form-group", 11);
85229
85205
  \u0275\u0275elementEnd()();
85230
85206
  }
85231
85207
  if (rf & 2) {
@@ -85248,88 +85224,59 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85248
85224
  }
85249
85225
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template(rf, ctx) {
85250
85226
  if (rf & 1) {
85251
- const _r7 = \u0275\u0275getCurrentView();
85252
- \u0275\u0275elementStart(0, "div", 16)(1, "div", 17)(2, "label");
85227
+ \u0275\u0275elementStart(0, "div", 15)(1, "div", 16)(2, "label");
85253
85228
  \u0275\u0275text(3);
85254
85229
  \u0275\u0275pipe(4, "translate");
85255
- \u0275\u0275elementStart(5, "span");
85256
- \u0275\u0275text(6, "*");
85257
- \u0275\u0275elementEnd()();
85258
- \u0275\u0275elementStart(7, "mat-form-field", 18)(8, "input", 19);
85259
- \u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_input_click_8_listener() {
85260
- \u0275\u0275restoreView(_r7);
85261
- const changeDatePicker_r8 = \u0275\u0275reference(12);
85262
- return \u0275\u0275resetView(changeDatePicker_r8.open());
85263
- })("dateChange", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_input_dateChange_8_listener() {
85264
- \u0275\u0275restoreView(_r7);
85265
- const ctx_r0 = \u0275\u0275nextContext(2);
85266
- const filingDetails_r6 = \u0275\u0275readContextLet(8);
85267
- return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r6.valid));
85268
- });
85269
- \u0275\u0275elementEnd();
85270
- \u0275\u0275elementStart(9, "button", 20);
85271
- \u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_button_click_9_listener() {
85272
- \u0275\u0275restoreView(_r7);
85273
- const changeDatePicker_r8 = \u0275\u0275reference(12);
85274
- return \u0275\u0275resetView(changeDatePicker_r8.open());
85275
- });
85276
- \u0275\u0275element(10, "span", 21);
85277
85230
  \u0275\u0275elementEnd();
85278
- \u0275\u0275element(11, "mat-datepicker", null, 0);
85279
- \u0275\u0275elementEnd();
85280
- \u0275\u0275elementStart(13, "p", 22);
85281
- \u0275\u0275text(14);
85282
- \u0275\u0275pipe(15, "translate");
85231
+ \u0275\u0275elementStart(5, "p", 17);
85232
+ \u0275\u0275text(6);
85233
+ \u0275\u0275pipe(7, "translate");
85283
85234
  \u0275\u0275elementEnd()();
85284
- \u0275\u0275elementStart(16, "p", 23)(17, "strong");
85285
- \u0275\u0275text(18);
85286
- \u0275\u0275pipe(19, "translate");
85235
+ \u0275\u0275elementStart(8, "p", 18)(9, "strong");
85236
+ \u0275\u0275text(10);
85237
+ \u0275\u0275pipe(11, "translate");
85287
85238
  \u0275\u0275elementEnd();
85288
- \u0275\u0275text(20);
85239
+ \u0275\u0275text(12);
85289
85240
  \u0275\u0275elementEnd()();
85290
85241
  }
85291
85242
  if (rf & 2) {
85292
- let tmp_13_0;
85293
- const changeDatePicker_r8 = \u0275\u0275reference(12);
85243
+ let tmp_7_0;
85244
+ let tmp_10_0;
85294
85245
  const ctx_r0 = \u0275\u0275nextContext(2);
85295
85246
  const filingDetails_r6 = \u0275\u0275readContextLet(8);
85296
85247
  \u0275\u0275advance(3);
85297
- \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 6, "Date Directors were added or deleted"), "");
85298
- \u0275\u0275advance(5);
85299
- \u0275\u0275property("matDatepicker", changeDatePicker_r8)("formControlName", ctx_r0.controls.ChangeDate);
85300
- \u0275\u0275advance(6);
85301
- \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(15, 8, "The date on which the individual(s) became or ceased to be a director. This date must be today's date or in the past."), " ");
85248
+ \u0275\u0275textInterpolate2(" ", \u0275\u0275pipeBind1(4, 5, "Date Directors were added or deleted"), ": ", ctx_r0.getEffectiveDateDisplay((tmp_7_0 = filingDetails_r6.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_7_0.value), " ");
85249
+ \u0275\u0275advance(3);
85250
+ \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(7, 7, "The date on which the individual(s) became or ceased to be a director. This date must be today's date or in the past."), " ");
85302
85251
  \u0275\u0275advance(4);
85303
- \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(19, 10, "Filing Fee"), ":");
85252
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(11, 9, "Filing Fee"), ":");
85304
85253
  \u0275\u0275advance(2);
85305
- \u0275\u0275textInterpolate1(" ", (tmp_13_0 = filingDetails_r6.get(ctx_r0.controls.FilingFee)) == null ? null : tmp_13_0.value, " ");
85254
+ \u0275\u0275textInterpolate1(" ", (tmp_10_0 = filingDetails_r6.get(ctx_r0.controls.FilingFee)) == null ? null : tmp_10_0.value, " ");
85306
85255
  }
85307
85256
  }
85308
85257
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template(rf, ctx) {
85309
85258
  if (rf & 1) {
85310
85259
  const _r5 = \u0275\u0275getCurrentView();
85311
- \u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 13)(2, "div", 14)(3, "strong");
85260
+ \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 12)(2, "div", 13)(3, "strong");
85312
85261
  \u0275\u0275text(4);
85313
85262
  \u0275\u0275pipe(5, "translate");
85314
85263
  \u0275\u0275elementEnd();
85315
85264
  \u0275\u0275text(6);
85316
85265
  \u0275\u0275pipe(7, "translate");
85317
85266
  \u0275\u0275elementEnd();
85318
- \u0275\u0275elementStart(8, "mat-checkbox", 15);
85267
+ \u0275\u0275elementStart(8, "mat-checkbox", 14);
85319
85268
  \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_8_listener() {
85320
85269
  let tmp_7_0;
85321
- let tmp_8_0;
85322
85270
  \u0275\u0275restoreView(_r5);
85323
85271
  const ctx_r0 = \u0275\u0275nextContext();
85324
85272
  const filingDetails_r6 = \u0275\u0275readContextLet(8);
85325
- (tmp_7_0 = filingDetails_r6.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_7_0.reset(((tmp_7_0 = filingDetails_r6.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_7_0.value) ? (tmp_7_0 = filingDetails_r6.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_7_0.value : null, { emitEvent: false });
85326
- (tmp_8_0 = filingDetails_r6.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_8_0.updateValueAndValidity({ emitEvent: false });
85273
+ (tmp_7_0 = filingDetails_r6.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_7_0.updateValueAndValidity({ emitEvent: false });
85327
85274
  return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r6.valid));
85328
85275
  });
85329
85276
  \u0275\u0275text(9);
85330
85277
  \u0275\u0275pipe(10, "translate");
85331
85278
  \u0275\u0275elementEnd();
85332
- \u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 21, 12, "div", 16);
85279
+ \u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 13, 11, "div", 15);
85333
85280
  \u0275\u0275elementEnd()();
85334
85281
  }
85335
85282
  if (rf & 2) {
@@ -85353,7 +85300,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85353
85300
  }
85354
85301
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
85355
85302
  if (rf & 1) {
85356
- \u0275\u0275elementStart(0, "span", 28);
85303
+ \u0275\u0275elementStart(0, "span", 23);
85357
85304
  \u0275\u0275text(1);
85358
85305
  \u0275\u0275pipe(2, "translate");
85359
85306
  \u0275\u0275elementEnd();
@@ -85365,7 +85312,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85365
85312
  }
85366
85313
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
85367
85314
  if (rf & 1) {
85368
- \u0275\u0275elementStart(0, "span", 29);
85315
+ \u0275\u0275elementStart(0, "span", 24);
85369
85316
  \u0275\u0275text(1);
85370
85317
  \u0275\u0275pipe(2, "translate");
85371
85318
  \u0275\u0275elementEnd();
@@ -85377,15 +85324,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85377
85324
  }
85378
85325
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template(rf, ctx) {
85379
85326
  if (rf & 1) {
85380
- \u0275\u0275elementStart(0, "div", 26)(1, "div", 27)(2, "strong");
85327
+ \u0275\u0275elementStart(0, "div", 21)(1, "div", 22)(2, "strong");
85381
85328
  \u0275\u0275text(3);
85382
85329
  \u0275\u0275elementEnd();
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);
85330
+ \u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span", 23)(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Conditional_5_Template, 3, 3, "span", 24);
85384
85331
  \u0275\u0275elementEnd();
85385
- \u0275\u0275elementStart(6, "div", 27);
85332
+ \u0275\u0275elementStart(6, "div", 22);
85386
85333
  \u0275\u0275text(7);
85387
85334
  \u0275\u0275elementEnd();
85388
- \u0275\u0275elementStart(8, "div", 27);
85335
+ \u0275\u0275elementStart(8, "div", 22);
85389
85336
  \u0275\u0275text(9);
85390
85337
  \u0275\u0275elementEnd()();
85391
85338
  }
@@ -85394,43 +85341,43 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85394
85341
  let tmp_22_0;
85395
85342
  let tmp_23_0;
85396
85343
  \u0275\u0275nextContext();
85397
- const directorForm_r9 = \u0275\u0275readContextLet(0);
85344
+ const directorForm_r7 = \u0275\u0275readContextLet(0);
85398
85345
  const ctx_r0 = \u0275\u0275nextContext(2);
85399
85346
  \u0275\u0275advance(3);
85400
- \u0275\u0275textInterpolate((tmp_19_0 = directorForm_r9.get(ctx_r0.controls.AffiliationName)) == null ? null : tmp_19_0.value);
85347
+ \u0275\u0275textInterpolate((tmp_19_0 = directorForm_r7.get(ctx_r0.controls.AffiliationName)) == null ? null : tmp_19_0.value);
85401
85348
  \u0275\u0275advance();
85402
- \u0275\u0275conditional(ctx_r0.isNewDirector(directorForm_r9) ? 4 : -1);
85349
+ \u0275\u0275conditional(ctx_r0.isNewDirector(directorForm_r7) ? 4 : -1);
85403
85350
  \u0275\u0275advance();
85404
- \u0275\u0275conditional(ctx_r0.isCeasedDirector(directorForm_r9) ? 5 : -1);
85351
+ \u0275\u0275conditional(ctx_r0.isCeasedDirector(directorForm_r7) ? 5 : -1);
85405
85352
  \u0275\u0275advance(2);
85406
- \u0275\u0275textInterpolate((tmp_22_0 = directorForm_r9.get(ctx_r0.controls.MailingAddress)) == null ? null : tmp_22_0.value);
85353
+ \u0275\u0275textInterpolate((tmp_22_0 = directorForm_r7.get(ctx_r0.controls.MailingAddress)) == null ? null : tmp_22_0.value);
85407
85354
  \u0275\u0275advance(2);
85408
- \u0275\u0275textInterpolate((tmp_23_0 = directorForm_r9.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_23_0.value);
85355
+ \u0275\u0275textInterpolate((tmp_23_0 = directorForm_r7.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_23_0.value);
85409
85356
  }
85410
85357
  }
85411
85358
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Template(rf, ctx) {
85412
85359
  if (rf & 1) {
85413
85360
  \u0275\u0275declareLet(0);
85414
- \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 26);
85361
+ \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_For_12_Conditional_1_Template, 10, 5, "div", 21);
85415
85362
  }
85416
85363
  if (rf & 2) {
85417
- const \u0275$index_110_r10 = ctx.$index;
85418
- const directorForm_r11 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_110_r10));
85364
+ const \u0275$index_97_r8 = ctx.$index;
85365
+ const directorForm_r9 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_97_r8));
85419
85366
  \u0275\u0275advance();
85420
- \u0275\u0275conditional(directorForm_r11 ? 1 : -1);
85367
+ \u0275\u0275conditional(directorForm_r9 ? 1 : -1);
85421
85368
  }
85422
85369
  }
85423
85370
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template(rf, ctx) {
85424
85371
  if (rf & 1) {
85425
- \u0275\u0275elementStart(0, "div", 8)(1, "div", 24)(2, "div", 25);
85372
+ \u0275\u0275elementStart(0, "div", 7)(1, "div", 19)(2, "div", 20);
85426
85373
  \u0275\u0275text(3);
85427
85374
  \u0275\u0275pipe(4, "translate");
85428
85375
  \u0275\u0275elementEnd();
85429
- \u0275\u0275elementStart(5, "div", 25);
85376
+ \u0275\u0275elementStart(5, "div", 20);
85430
85377
  \u0275\u0275text(6);
85431
85378
  \u0275\u0275pipe(7, "translate");
85432
85379
  \u0275\u0275elementEnd();
85433
- \u0275\u0275elementStart(8, "div", 25);
85380
+ \u0275\u0275elementStart(8, "div", 20);
85434
85381
  \u0275\u0275text(9);
85435
85382
  \u0275\u0275pipe(10, "translate");
85436
85383
  \u0275\u0275elementEnd()();
@@ -85439,7 +85386,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85439
85386
  }
85440
85387
  if (rf & 2) {
85441
85388
  \u0275\u0275nextContext();
85442
- const directorsArray_r12 = \u0275\u0275readContextLet(10);
85389
+ const directorsArray_r10 = \u0275\u0275readContextLet(10);
85443
85390
  \u0275\u0275advance(3);
85444
85391
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(4, 3, "Name"));
85445
85392
  \u0275\u0275advance(3);
@@ -85447,12 +85394,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85447
85394
  \u0275\u0275advance(3);
85448
85395
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 7, "Delivery Address"));
85449
85396
  \u0275\u0275advance(2);
85450
- \u0275\u0275repeater(directorsArray_r12.controls);
85397
+ \u0275\u0275repeater(directorsArray_r10.controls);
85451
85398
  }
85452
85399
  }
85453
85400
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
85454
85401
  if (rf & 1) {
85455
- \u0275\u0275elementStart(0, "h2", 9);
85402
+ \u0275\u0275elementStart(0, "h2", 8);
85456
85403
  \u0275\u0275text(1);
85457
85404
  \u0275\u0275pipe(2, "translate");
85458
85405
  \u0275\u0275elementEnd();
@@ -85464,33 +85411,33 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85464
85411
  }
85465
85412
  function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template(rf, ctx) {
85466
85413
  if (rf & 1) {
85467
- const _r13 = \u0275\u0275getCurrentView();
85468
- \u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 30)(2, "p");
85414
+ const _r11 = \u0275\u0275getCurrentView();
85415
+ \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 25)(2, "p");
85469
85416
  \u0275\u0275text(3);
85470
85417
  \u0275\u0275pipe(4, "translate");
85471
85418
  \u0275\u0275elementEnd();
85472
- \u0275\u0275elementStart(5, "mat-radio-group", 31);
85419
+ \u0275\u0275elementStart(5, "mat-radio-group", 26);
85473
85420
  \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template_mat_radio_group_change_5_listener() {
85474
- \u0275\u0275restoreView(_r13);
85421
+ \u0275\u0275restoreView(_r11);
85475
85422
  const ctx_r0 = \u0275\u0275nextContext();
85476
- const annualReportReminder_r14 = \u0275\u0275readContextLet(14);
85477
- return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r14.valid));
85423
+ const annualReportReminder_r12 = \u0275\u0275readContextLet(14);
85424
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r12.valid));
85478
85425
  });
85479
- \u0275\u0275elementStart(6, "mat-radio-button", 32);
85426
+ \u0275\u0275elementStart(6, "mat-radio-button", 27);
85480
85427
  \u0275\u0275text(7);
85481
85428
  \u0275\u0275pipe(8, "translate");
85482
85429
  \u0275\u0275elementEnd();
85483
- \u0275\u0275elementStart(9, "mat-radio-button", 32);
85430
+ \u0275\u0275elementStart(9, "mat-radio-button", 27);
85484
85431
  \u0275\u0275text(10);
85485
85432
  \u0275\u0275pipe(11, "translate");
85486
85433
  \u0275\u0275elementEnd()()()();
85487
85434
  }
85488
85435
  if (rf & 2) {
85489
85436
  const ctx_r0 = \u0275\u0275nextContext();
85490
- const annualReportReminder_r14 = \u0275\u0275readContextLet(14);
85437
+ const annualReportReminder_r12 = \u0275\u0275readContextLet(14);
85491
85438
  \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["annualReportReminder"])("title", ctx_r0.groups.AnnualReportReminder);
85492
85439
  \u0275\u0275advance();
85493
- \u0275\u0275property("formGroup", annualReportReminder_r14);
85440
+ \u0275\u0275property("formGroup", annualReportReminder_r12);
85494
85441
  \u0275\u0275advance(2);
85495
85442
  \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 10, "Does this company wish to be reminded to file its annual reports? If an email address is specified, the reminder will be sent to the company's email address. Otherwise, the reminder will be mailed to the registered or head office of the company."), " ");
85496
85443
  \u0275\u0275advance(2);
@@ -85558,6 +85505,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85558
85505
  const annualReportReminder = this.getFormGroup(this.groups.AnnualReportReminder);
85559
85506
  return Object.values(this.sectionValidity).every((v) => v) && !filingDetails?.invalid && !dateInvalid && !annualReportReminder?.invalid;
85560
85507
  }
85508
+ getEffectiveDateDisplay(value) {
85509
+ const date = String(value ?? "").split("T")[0];
85510
+ const [year, month, day] = date.split("-");
85511
+ return year && month && day ? `${day}/${month}/${year}` : "\u2014";
85512
+ }
85561
85513
  onSectionValidChange(section, valid) {
85562
85514
  this.sectionValidity = __spreadProps(__spreadValues({}, this.sectionValidity), { [section]: valid });
85563
85515
  this.visiblyValidChange.emit(this.isVisiblyValid());
@@ -85583,23 +85535,23 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85583
85535
  static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
85584
85536
  return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
85585
85537
  };
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) {
85538
+ 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: [[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"], [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) {
85587
85539
  if (rf & 1) {
85588
- \u0275\u0275elementStart(0, "div", 1);
85589
- \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 2)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 3);
85590
- \u0275\u0275elementStart(3, "div", 4);
85540
+ \u0275\u0275elementStart(0, "div", 0);
85541
+ \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
85542
+ \u0275\u0275elementStart(3, "div", 3);
85591
85543
  \u0275\u0275declareLet(4);
85592
- \u0275\u0275template(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 5);
85544
+ \u0275\u0275template(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 4);
85593
85545
  \u0275\u0275declareLet(6);
85594
- \u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 13, 13, "expandable-card", 6);
85546
+ \u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 13, 13, "expandable-card", 5);
85595
85547
  \u0275\u0275declareLet(8);
85596
- \u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 12, 15, "expandable-card", 7);
85548
+ \u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 12, 15, "expandable-card", 6);
85597
85549
  \u0275\u0275declareLet(10);
85598
- \u0275\u0275elementStart(11, "expandable-card", 6);
85599
- \u0275\u0275template(12, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template, 13, 9, "div", 8)(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 3, 3, "h2", 9);
85550
+ \u0275\u0275elementStart(11, "expandable-card", 5);
85551
+ \u0275\u0275template(12, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_12_Template, 13, 9, "div", 7)(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 3, 3, "h2", 8);
85600
85552
  \u0275\u0275elementEnd();
85601
85553
  \u0275\u0275declareLet(14);
85602
- \u0275\u0275template(15, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template, 12, 16, "expandable-card", 7);
85554
+ \u0275\u0275template(15, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_15_Template, 12, 16, "expandable-card", 6);
85603
85555
  \u0275\u0275elementEnd()();
85604
85556
  }
85605
85557
  if (rf & 2) {
@@ -85608,41 +85560,36 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85608
85560
  \u0275\u0275advance();
85609
85561
  \u0275\u0275conditional(ctx.errors().length ? 2 : -1);
85610
85562
  \u0275\u0275advance(2);
85611
- const referenceNumbers_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
85563
+ const referenceNumbers_r13 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
85612
85564
  \u0275\u0275advance();
85613
- \u0275\u0275conditional(referenceNumbers_r15 ? 5 : -1);
85565
+ \u0275\u0275conditional(referenceNumbers_r13 ? 5 : -1);
85614
85566
  \u0275\u0275advance();
85615
- const corporationDetails_r16 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
85567
+ const corporationDetails_r14 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
85616
85568
  \u0275\u0275advance();
85617
- \u0275\u0275conditional(corporationDetails_r16 ? 7 : -1);
85569
+ \u0275\u0275conditional(corporationDetails_r14 ? 7 : -1);
85618
85570
  \u0275\u0275advance();
85619
- const filingDetails_r17 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.FilingDetails));
85571
+ const filingDetails_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.FilingDetails));
85620
85572
  \u0275\u0275advance();
85621
- \u0275\u0275conditional(filingDetails_r17 ? 9 : -1);
85573
+ \u0275\u0275conditional(filingDetails_r15 ? 9 : -1);
85622
85574
  \u0275\u0275advance();
85623
- const directorsArray_r18 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
85575
+ const directorsArray_r16 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
85624
85576
  \u0275\u0275advance();
85625
85577
  \u0275\u0275property("isStatusIcon", false)("title", ctx.groups.Directors);
85626
85578
  \u0275\u0275advance();
85627
- \u0275\u0275conditional(directorsArray_r18 && directorsArray_r18.length ? 12 : 13);
85579
+ \u0275\u0275conditional(directorsArray_r16 && directorsArray_r16.length ? 12 : 13);
85628
85580
  \u0275\u0275advance(2);
85629
- const annualReportReminder_r19 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
85581
+ const annualReportReminder_r17 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
85630
85582
  \u0275\u0275advance();
85631
- \u0275\u0275conditional(annualReportReminder_r19 ? 15 : -1);
85583
+ \u0275\u0275conditional(annualReportReminder_r17 ? 15 : -1);
85632
85584
  }
85633
85585
  }, dependencies: [
85634
85586
  FilingFormGroupComponent,
85635
85587
  AlertComponent,
85636
85588
  ExpandableCardComponent,
85637
85589
  MatCheckbox,
85638
- MatDatepicker,
85639
- MatDatepickerInput,
85640
- MatFormField,
85641
- MatInput,
85642
85590
  MatRadioButton,
85643
85591
  MatRadioGroup,
85644
85592
  ReactiveFormsModule,
85645
- DefaultValueAccessor,
85646
85593
  NgControlStatus,
85647
85594
  NgControlStatusGroup,
85648
85595
  FormGroupDirective,
@@ -85737,48 +85684,23 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85737
85684
  \r
85738
85685
  <mat-checkbox\r
85739
85686
  class="directors-change-checkbox"\r
85740
- [formControlName]="controls.DirectorsAddedOrDeleted"\r
85741
- (change)="\r
85742
- filingDetails.get(controls.ChangeDate)?.reset(\r
85743
- filingDetails.get(controls.DirectorsAddedOrDeleted)?.value\r
85744
- ? filingDetails.get(controls.ChangeDate)?.value\r
85745
- : null,\r
85746
- { emitEvent: false }\r
85747
- );\r
85748
- filingDetails.get(controls.ChangeDate)?.updateValueAndValidity({ emitEvent: false });\r
85749
- onSectionValidChange('filingDetails', filingDetails.valid)\r
85750
- "\r
85687
+ [formControlName]="controls.DirectorsAddedOrDeleted"
85688
+ (change)="
85689
+ filingDetails.get(controls.ChangeDate)?.updateValueAndValidity({ emitEvent: false });
85690
+ onSectionValidChange('filingDetails', filingDetails.valid)
85691
+ "
85751
85692
  >\r
85752
85693
  {{ 'Directors will be added and/or deleted as part of this filing' | translate }}\r
85753
85694
  </mat-checkbox>\r
85754
85695
  \r
85755
85696
  @if (filingDetails.get(controls.DirectorsAddedOrDeleted)?.value) {\r
85756
85697
  <div class="filing-details-grid">\r
85757
- <div class="date-field">\r
85758
- <label>\r
85759
- {{ 'Date Directors were added or deleted' | translate }}<span>*</span>\r
85760
- </label>\r
85761
- <mat-form-field appearance="outline">\r
85762
- <input\r
85763
- matInput\r
85764
- [matDatepicker]="changeDatePicker"\r
85765
- [formControlName]="controls.ChangeDate"\r
85766
- placeholder="dd/mm/yyyy"\r
85767
- readonly\r
85768
- (click)="changeDatePicker.open()"\r
85769
- (dateChange)="onSectionValidChange('filingDetails', filingDetails.valid)"\r
85770
- />\r
85771
- <button\r
85772
- type="button"\r
85773
- class="calendar-trigger"\r
85774
- aria-label="Open date picker"\r
85775
- (click)="changeDatePicker.open()"\r
85776
- >\r
85777
- <span class="calendar-icon" aria-hidden="true"></span>\r
85778
- </button>\r
85779
- <mat-datepicker #changeDatePicker></mat-datepicker>\r
85780
- </mat-form-field>\r
85781
- <p class="hint">\r
85698
+ <div class="date-field">
85699
+ <label>
85700
+ {{ 'Date Directors were added or deleted' | translate }}:
85701
+ {{ getEffectiveDateDisplay(filingDetails.get(controls.ChangeDate)?.value) }}
85702
+ </label>
85703
+ <p class="hint">
85782
85704
  {{\r
85783
85705
  "The date on which the individual(s) became or ceased to be a director. This date must be today's date or in the past."\r
85784
85706
  | translate\r
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.0.98",
3
+ "version": "2.1.0",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {