@dyedurham/search-and-file-widget 2.1.17 → 2.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dnd-filing-shell.js +32 -38
  2. package/package.json +1 -1
@@ -85138,8 +85138,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85138
85138
  const recordsOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.RECORDS_OFFICE);
85139
85139
  const incoming = this.incomingOfficeAddresses(task);
85140
85140
  const extract = this.officeExtract(currentDataExtract);
85141
- const incomingSeed = delta?.registeredOffice ? this.fillEmptyAddresses(delta, incoming) : this.seedFromIncomingAffiliations(task);
85142
- const seed = this.withCurrentAddresses(incomingSeed, incoming, delta, registeredOffice, recordsOffice, extract);
85141
+ const incomingSeed = this.seedFromIncomingAffiliations(task);
85142
+ const seed = this.withCurrentAddresses(incomingSeed, incoming, registeredOffice, recordsOffice, extract);
85143
85143
  const config2 = {};
85144
85144
  config2[BCChangeOfOfficeAddressesFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile.client_matter_number);
85145
85145
  config2[BCChangeOfOfficeAddressesFormGroups.CorporationDetails] = new FormGroup({
@@ -85212,11 +85212,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85212
85212
  };
85213
85213
  }
85214
85214
  /**
85215
- * For an office with neither an incoming address nor a saved draft, the new address is its
85215
+ * For an office without an incoming address, the new address is its
85216
85216
  * current address on the register (so the filing leaves it unchanged). A current address outside
85217
85217
  * British Columbia is not used: the office is then reported as missing.
85218
85218
  */
85219
- static withCurrentAddresses(seed, incoming, delta, registeredOffice, recordsOffice, extract) {
85219
+ static withCurrentAddresses(seed, incoming, registeredOffice, recordsOffice, extract) {
85220
85220
  const pickBy = BritishColumbiaFormationFormHelper.pickAddress;
85221
85221
  const current = (office, type, key) => {
85222
85222
  if (extract) {
@@ -85227,7 +85227,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85227
85227
  return address && this.isBritishColumbia(address) ? this.toOfficeAddressDelta(address) : void 0;
85228
85228
  };
85229
85229
  const result = __spreadValues({}, seed);
85230
- if (!delta?.registeredOffice && !incoming.regMailing) {
85230
+ if (!incoming.regMailing) {
85231
85231
  const mailing = current(registeredOffice, "Mailing", "regMailing");
85232
85232
  const delivery = current(registeredOffice, "Delivery", "regDelivery");
85233
85233
  if (mailing) {
@@ -85239,7 +85239,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85239
85239
  };
85240
85240
  }
85241
85241
  }
85242
- if (!delta?.recordsOffice && !incoming.recMailing) {
85242
+ if (!incoming.recMailing) {
85243
85243
  const mailing = current(recordsOffice, "Mailing", "recMailing");
85244
85244
  const delivery = current(recordsOffice, "Delivery", "recDelivery");
85245
85245
  if (mailing) {
@@ -85303,21 +85303,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85303
85303
  country: BC_DEFAULT_COUNTRY
85304
85304
  };
85305
85305
  }
85306
- /** Keeps the saved flags and addresses, but fills an address the draft left empty from `incoming`. */
85307
- static fillEmptyAddresses(saved, incoming) {
85308
- const hasValues = (address) => EDITABLE_ADDRESS_CONTROLS.some((name) => Boolean(address?.[name]));
85309
- const pick = (savedAddress, incomingAddress) => hasValues(savedAddress) ? savedAddress : incomingAddress ?? savedAddress;
85310
- return {
85311
- registeredOffice: __spreadProps(__spreadValues({}, saved.registeredOffice), {
85312
- mailingAddress: pick(saved.registeredOffice?.mailingAddress, incoming.regMailing),
85313
- deliveryAddress: pick(saved.registeredOffice?.deliveryAddress, incoming.regDelivery)
85314
- }),
85315
- recordsOffice: __spreadProps(__spreadValues({}, saved.recordsOffice), {
85316
- mailingAddress: pick(saved.recordsOffice?.mailingAddress, incoming.recMailing),
85317
- deliveryAddress: pick(saved.recordsOffice?.deliveryAddress, incoming.recDelivery)
85318
- })
85319
- };
85320
- }
85321
85306
  /** The four office addresses of the task's incoming Shared Address, as form values. */
85322
85307
  static incomingOfficeAddresses(task) {
85323
85308
  const incoming = task.incomingAffiliations ?? [];
@@ -88063,6 +88048,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88063
88048
  task = input();
88064
88049
  errors = input([]);
88065
88050
  isNote = input(false);
88051
+ /** True while the registry's current data is loading: addresses are not reported missing yet. */
88052
+ loading = input(false);
88066
88053
  isSubmitted = input(false);
88067
88054
  readonly = input(false);
88068
88055
  visiblyValidChange = output();
@@ -88095,6 +88082,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88095
88082
  missingMessages() {
88096
88083
  const t = (key) => this.translate.instant(key);
88097
88084
  const records = this.getFormGroup(this.groups.RecordsOfficeAddress);
88085
+ if (this.loading() || !records || !this.getFormGroup(this.groups.RegisteredOfficeAddress)) {
88086
+ return [];
88087
+ }
88098
88088
  const recordsSameAsRegistered = this.isChecked(records, this.controls.SameAsRegisteredOffice);
88099
88089
  const [regMailing, regDelivery] = this.registeredRows();
88100
88090
  const [recMailing, recDelivery] = this.recordsRows();
@@ -88108,10 +88098,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88108
88098
  }
88109
88099
  /** The incoming Shared Address supplied no new address for a line (and none is on the register). */
88110
88100
  isRegisteredMissing() {
88111
- return this.registeredRows().some((row) => !row.value);
88101
+ return !!this.getFormGroup(this.groups.RegisteredOfficeAddress) && this.registeredRows().some((row) => !row.value);
88112
88102
  }
88113
88103
  isRecordsMissing() {
88114
- return this.recordsRows().some((row) => !row.value);
88104
+ return !!this.getFormGroup(this.groups.RecordsOfficeAddress) && this.recordsRows().some((row) => !row.value);
88115
88105
  }
88116
88106
  isChecked(office, control) {
88117
88107
  return Boolean(office?.get(control)?.value);
@@ -88185,7 +88175,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88185
88175
  static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesFormComponent_Factory(__ngFactoryType__) {
88186
88176
  return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesFormComponent)();
88187
88177
  };
88188
- static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesFormComponent, selectors: [["british-columbia-change-of-office-addresses-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 15, vars: 11, consts: [[1, "change-of-office-addresses-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-office-addresses-form-content"], [3, "title"], [3, "isStatusIcon", "isValid", "title"], [3, "isStatusIcon", "title"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "change-of-office-addresses-form-item"], [1, "change-of-office-addresses-form-address"], [1, "body-1-regular", "grey"], [1, "body-1-semibold"], [1, "change-of-office-addresses-form-previous"], [1, "annual-reminder", 3, "formGroup"], [3, "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfOfficeAddressesFormComponent_Template(rf, ctx) {
88178
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesFormComponent, selectors: [["british-columbia-change-of-office-addresses-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], loading: [1, "loading"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 15, vars: 11, consts: [[1, "change-of-office-addresses-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-office-addresses-form-content"], [3, "title"], [3, "isStatusIcon", "isValid", "title"], [3, "isStatusIcon", "title"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "change-of-office-addresses-form-item"], [1, "change-of-office-addresses-form-address"], [1, "body-1-regular", "grey"], [1, "body-1-semibold"], [1, "change-of-office-addresses-form-previous"], [1, "annual-reminder", 3, "formGroup"], [3, "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfOfficeAddressesFormComponent_Template(rf, ctx) {
88189
88179
  if (rf & 1) {
88190
88180
  \u0275\u0275elementStart(0, "div", 0);
88191
88181
  \u0275\u0275template(1, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_2_Template, 1, 1, "alert", 2)(3, BritishColumbiaChangeOfOfficeAddressesFormComponent_Conditional_3_Template, 1, 1, "alert", 2);
@@ -88443,7 +88433,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88443
88433
  static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Factory(__ngFactoryType__) {
88444
88434
  return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent)();
88445
88435
  };
88446
- static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent, selectors: [["british-columbia-change-of-office-addresses-delta-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], isNote: [1, "isNote"], task: [1, "task"], errors: [1, "errors"] }, outputs: { close: "close", save: "save", validate: "validate" }, decls: 15, vars: 18, consts: [[1, "change-of-office-addresses-delta-form"], [1, "change-of-office-addresses-delta-form-content", 3, "visiblyValidChange", "form", "task", "errors", "isNote", "isSubmitted", "readonly"], [1, "change-of-office-addresses-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 BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template(rf, ctx) {
88436
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent, selectors: [["british-columbia-change-of-office-addresses-delta-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], isNote: [1, "isNote"], task: [1, "task"], errors: [1, "errors"] }, outputs: { close: "close", save: "save", validate: "validate" }, decls: 15, vars: 19, consts: [[1, "change-of-office-addresses-delta-form"], [1, "change-of-office-addresses-delta-form-content", 3, "visiblyValidChange", "form", "task", "errors", "isNote", "loading", "isSubmitted", "readonly"], [1, "change-of-office-addresses-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 BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template(rf, ctx) {
88447
88437
  if (rf & 1) {
88448
88438
  \u0275\u0275elementStart(0, "div", 0)(1, "british-columbia-change-of-office-addresses-form", 1);
88449
88439
  \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template_british_columbia_change_of_office_addresses_form_visiblyValidChange_1_listener($event) {
@@ -88477,19 +88467,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88477
88467
  }
88478
88468
  if (rf & 2) {
88479
88469
  \u0275\u0275advance();
88480
- \u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.combinedErrors())("isNote", ctx.isNote())("isSubmitted", ctx.submitted())("readonly", false);
88470
+ \u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.combinedErrors())("isNote", ctx.isNote())("loading", ctx.actionsDisabled())("isSubmitted", ctx.submitted())("readonly", false);
88481
88471
  \u0275\u0275advance(2);
88482
88472
  \u0275\u0275property("disabled", ctx.actionsDisabled());
88483
88473
  \u0275\u0275advance(2);
88484
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 12, "Close"));
88474
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 13, "Close"));
88485
88475
  \u0275\u0275advance(2);
88486
88476
  \u0275\u0275property("disabled", ctx.actionsDisabled());
88487
88477
  \u0275\u0275advance(2);
88488
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 14, "Save Changes"));
88478
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 15, "Save Changes"));
88489
88479
  \u0275\u0275advance(2);
88490
88480
  \u0275\u0275property("disabled", ctx.actionsDisabled());
88491
88481
  \u0275\u0275advance(2);
88492
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14, 16, "Validate & Generate Draft"));
88482
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14, 17, "Validate & Generate Draft"));
88493
88483
  }
88494
88484
  }, dependencies: [MatButton, TranslatePipe, BritishColumbiaChangeOfOfficeAddressesFormComponent], styles: ["\n\n[_nghost-%COMP%] .change-of-office-addresses-delta-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .change-of-office-addresses-delta-form-content[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-delta-form-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n[_nghost-%COMP%] .change-of-office-addresses-delta-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin: 0;\n}\n[_nghost-%COMP%] .change-of-office-addresses-delta-form-actions[_ngcontent-%COMP%] .submit[_ngcontent-%COMP%] {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=change-of-office-addresses-delta-form.component.css.map */"], changeDetection: 0 });
88495
88485
  };
@@ -88503,6 +88493,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88503
88493
  [task]="task()"\r
88504
88494
  [errors]="combinedErrors()"\r
88505
88495
  [isNote]="isNote()"\r
88496
+ [loading]="actionsDisabled()"\r
88506
88497
  [isSubmitted]="submitted()"\r
88507
88498
  [readonly]="false"\r
88508
88499
  (visiblyValidChange)="onVisiblyValidChange($event)"\r
@@ -88829,6 +88820,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88829
88820
  actionsDisabled = input(false);
88830
88821
  errors = input([]);
88831
88822
  currentDataExtract = input();
88823
+ /** False while the registry's current data is loading; the validated-draft preview waits for it. */
88824
+ extractReady = input(true);
88832
88825
  close = output();
88833
88826
  codValidate = output();
88834
88827
  saveCodDeltaData = output();
@@ -88890,7 +88883,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88890
88883
  this.nextStep.emit();
88891
88884
  }
88892
88885
  }
88893
- if (task && isChangeOfAddressTask(task) && deltaData) {
88886
+ if (task && isChangeOfAddressTask(task) && deltaData && this.extractReady()) {
88894
88887
  const form = new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract()));
88895
88888
  form.disable();
88896
88889
  this.previewForm.set(form);
@@ -89084,7 +89077,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
89084
89077
  static \u0275fac = function BritishColumbiaComponent_Factory(__ngFactoryType__) {
89085
89078
  return new (__ngFactoryType__ || _BritishColumbiaComponent)();
89086
89079
  };
89087
- static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaComponent, selectors: [["british-columbia"]], inputs: { task: [1, "task"], currentUser: [1, "currentUser"], activeStep: [1, "activeStep"], isNote: [1, "isNote"], actionsDisabled: [1, "actionsDisabled"], errors: [1, "errors"], currentDataExtract: [1, "currentDataExtract"] }, outputs: { close: "close", codValidate: "codValidate", saveCodDeltaData: "saveCodDeltaData", codSubmit: "codSubmit", formationValidate: "formationValidate", formationSubmit: "formationSubmit", saveFormationDeltaData: "saveFormationDeltaData", nextStep: "nextStep", recheckStep: "recheckStep", prevStep: "prevStep", coaValidate: "coaValidate", saveCoaDeltaData: "saveCoaDeltaData", coaSubmit: "coaSubmit" }, decls: 4, vars: 4, consts: [[3, "task", "form", "actionsDisabled", "errors", "isNote"], [3, "task", "form", "actionsDisabled", "errors"], [3, "validate", "close", "save", "task", "form", "actionsDisabled", "errors", "isNote"], [3, "close", "file", "task", "form", "actionsDisabled", "errors"], [3, "task", "errors", "isNote", "actionsDisabled", "form"], [3, "task", "form", "errors", "actionsDisabled"], [3, "validate", "close", "save", "task", "errors", "isNote", "actionsDisabled", "form"], [3, "next", "close", "task", "form", "errors", "actionsDisabled"]], template: function BritishColumbiaComponent_Template(rf, ctx) {
89080
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaComponent, selectors: [["british-columbia"]], inputs: { task: [1, "task"], currentUser: [1, "currentUser"], activeStep: [1, "activeStep"], isNote: [1, "isNote"], actionsDisabled: [1, "actionsDisabled"], errors: [1, "errors"], currentDataExtract: [1, "currentDataExtract"], extractReady: [1, "extractReady"] }, outputs: { close: "close", codValidate: "codValidate", saveCodDeltaData: "saveCodDeltaData", codSubmit: "codSubmit", formationValidate: "formationValidate", formationSubmit: "formationSubmit", saveFormationDeltaData: "saveFormationDeltaData", nextStep: "nextStep", recheckStep: "recheckStep", prevStep: "prevStep", coaValidate: "coaValidate", saveCoaDeltaData: "saveCoaDeltaData", coaSubmit: "coaSubmit" }, decls: 4, vars: 4, consts: [[3, "task", "form", "actionsDisabled", "errors", "isNote"], [3, "task", "form", "actionsDisabled", "errors"], [3, "validate", "close", "save", "task", "form", "actionsDisabled", "errors", "isNote"], [3, "close", "file", "task", "form", "actionsDisabled", "errors"], [3, "task", "errors", "isNote", "actionsDisabled", "form"], [3, "task", "form", "errors", "actionsDisabled"], [3, "validate", "close", "save", "task", "errors", "isNote", "actionsDisabled", "form"], [3, "next", "close", "task", "form", "errors", "actionsDisabled"]], template: function BritishColumbiaComponent_Template(rf, ctx) {
89088
89081
  if (rf & 1) {
89089
89082
  \u0275\u0275declareLet(0);
89090
89083
  \u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 2, 2)(2, BritishColumbiaComponent_Conditional_2_Template, 2, 2)(3, BritishColumbiaComponent_Conditional_3_Template, 2, 2);
@@ -96080,7 +96073,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96080
96073
  if (rf & 2) {
96081
96074
  const ctx_r2 = \u0275\u0275nextContext(2);
96082
96075
  const currentTask_r5 = \u0275\u0275readContextLet(9);
96083
- \u0275\u0275property("task", currentTask_r5)("currentUser", ctx_r2.currentUser())("activeStep", ctx_r2.activeStep())("isNote", ctx_r2.dataWasChanged())("actionsDisabled", ctx_r2.isLoading())("errors", ctx_r2.errors())("currentDataExtract", ctx_r2.currentDataExtract());
96076
+ \u0275\u0275property("task", currentTask_r5)("currentUser", ctx_r2.currentUser())("activeStep", ctx_r2.activeStep())("isNote", ctx_r2.dataWasChanged())("actionsDisabled", ctx_r2.isLoading())("errors", ctx_r2.errors())("currentDataExtract", ctx_r2.currentDataExtract())("extractReady", ctx_r2.bcCoaExtractReady());
96084
96077
  }
96085
96078
  }
96086
96079
  function FilingComponent_Conditional_10_Conditional_2_Template(rf, ctx) {
@@ -96130,7 +96123,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96130
96123
  }
96131
96124
  function FilingComponent_Conditional_10_Template(rf, ctx) {
96132
96125
  if (rf & 1) {
96133
- \u0275\u0275template(0, FilingComponent_Conditional_10_Conditional_0_Template, 1, 7, "ontario", 8)(1, FilingComponent_Conditional_10_Conditional_1_Template, 1, 7, "british-columbia", 9)(2, FilingComponent_Conditional_10_Conditional_2_Template, 1, 5, "federal", 10);
96126
+ \u0275\u0275template(0, FilingComponent_Conditional_10_Conditional_0_Template, 1, 7, "ontario", 8)(1, FilingComponent_Conditional_10_Conditional_1_Template, 1, 8, "british-columbia", 9)(2, FilingComponent_Conditional_10_Conditional_2_Template, 1, 5, "federal", 10);
96134
96127
  }
96135
96128
  if (rf & 2) {
96136
96129
  const ctx_r2 = \u0275\u0275nextContext();
@@ -96254,6 +96247,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96254
96247
  bcCurrentDataServiceOrderId = "";
96255
96248
  /** The registry's current data ordered for the Change of Office Addresses; reused by Validate. */
96256
96249
  bcCoaExtractId = "";
96250
+ /** False while the registry's current office addresses are loading. */
96251
+ bcCoaExtractReady = signal(true);
96257
96252
  currentDataExtract = signal(void 0);
96258
96253
  bcDataExtractTaskId = "";
96259
96254
  activeStep = signal(Step.Validate);
@@ -96349,10 +96344,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96349
96344
  }
96350
96345
  }
96351
96346
  if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task) && this.bcDataExtractTaskId !== task._id) {
96352
- if (task.deltaData?.validatedData) {
96353
- this.bcDataExtractTaskId = task._id;
96354
- return;
96355
- }
96356
96347
  this.bcDataExtractTaskId = task._id;
96357
96348
  yield this.loadBritishColumbiaOfficeAddressExtract(task);
96358
96349
  }
@@ -96370,6 +96361,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96370
96361
  return;
96371
96362
  }
96372
96363
  this.isLoading.set(true);
96364
+ this.bcCoaExtractReady.set(false);
96373
96365
  try {
96374
96366
  const opts = this.validateOptions() ?? {};
96375
96367
  const context2 = this.getBritishColumbiaOfficeAddressContext(task, signature);
@@ -96380,6 +96372,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96380
96372
  this.currentDataExtract.set(void 0);
96381
96373
  console.warn("The registry's current office addresses could not be loaded.", error);
96382
96374
  } finally {
96375
+ this.bcCoaExtractReady.set(true);
96383
96376
  this.isLoading.set(false);
96384
96377
  }
96385
96378
  });
@@ -97203,7 +97196,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
97203
97196
  if (rf & 2) {
97204
97197
  \u0275\u0275styleProp("height", ctx.modalHeight());
97205
97198
  }
97206
- }, inputs: { env: [1, "env"], config: [1, "config"], language: [1, "language"], proxyApiUrl: [1, "proxyApiUrl"], jwtToken: [1, "jwtToken"], task: [1, "task"], currentUser: [1, "currentUser"], height: [1, "height"], validateOptions: [1, "validateOptions"], getDocumentBytes: [1, "getDocumentBytes"] }, outputs: { deltaDataChange: "deltaDataChange", filingValidateSuccess: "filingValidateSuccess", filingSubmitSuccess: "filingSubmitSuccess", close: "close" }, decls: 12, vars: 9, consts: [[1, "filing"], [1, "filing-title"], [1, "filing-title-text"], [1, "filing-title-action", 3, "click"], [1, "filing-header"], [1, "filing-content"], [1, "filing-content-loading"], ["mat-stroked-button", "", 3, "click", "disabled"], [3, "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors", "currentDataExtract"], [3, "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "close", "formationValidate", "saveFormationDeltaData", "formationSubmit", "nextStep", "prevStep", "irValidate", "saveIrDeltaData", "irSubmit", "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "close", "nextStep", "recheckStep", "prevStep", "codValidate", "saveCodDeltaData", "codSubmit", "coaValidate", "saveCoaDeltaData", "coaSubmit", "formationValidate", "saveFormationDeltaData", "formationSubmit", "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors", "currentDataExtract"], [3, "close", "deltaDataChange", "file", "validate", "umSave", "umValidate", "umSubmit", "nextStep", "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
97199
+ }, inputs: { env: [1, "env"], config: [1, "config"], language: [1, "language"], proxyApiUrl: [1, "proxyApiUrl"], jwtToken: [1, "jwtToken"], task: [1, "task"], currentUser: [1, "currentUser"], height: [1, "height"], validateOptions: [1, "validateOptions"], getDocumentBytes: [1, "getDocumentBytes"] }, outputs: { deltaDataChange: "deltaDataChange", filingValidateSuccess: "filingValidateSuccess", filingSubmitSuccess: "filingSubmitSuccess", close: "close" }, decls: 12, vars: 9, consts: [[1, "filing"], [1, "filing-title"], [1, "filing-title-text"], [1, "filing-title-action", 3, "click"], [1, "filing-header"], [1, "filing-content"], [1, "filing-content-loading"], ["mat-stroked-button", "", 3, "click", "disabled"], [3, "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors", "currentDataExtract", "extractReady"], [3, "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "close", "formationValidate", "saveFormationDeltaData", "formationSubmit", "nextStep", "prevStep", "irValidate", "saveIrDeltaData", "irSubmit", "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "close", "nextStep", "recheckStep", "prevStep", "codValidate", "saveCodDeltaData", "codSubmit", "coaValidate", "saveCoaDeltaData", "coaSubmit", "formationValidate", "saveFormationDeltaData", "formationSubmit", "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors", "currentDataExtract", "extractReady"], [3, "close", "deltaDataChange", "file", "validate", "umSave", "umValidate", "umSubmit", "nextStep", "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
97207
97200
  if (rf & 1) {
97208
97201
  const _r1 = \u0275\u0275getCurrentView();
97209
97202
  \u0275\u0275elementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
@@ -97307,6 +97300,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
97307
97300
  [actionsDisabled]="isLoading()"\r
97308
97301
  [errors]="errors()"\r
97309
97302
  [currentDataExtract]="currentDataExtract()"\r
97303
+ [extractReady]="bcCoaExtractReady()"\r
97310
97304
  (close)="close.emit()"\r
97311
97305
  (nextStep)="onNextStepClick()"\r
97312
97306
  (recheckStep)="defineInitialStep()"\r
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.1.17",
3
+ "version": "2.1.19",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {