@dyedurham/search-and-file-widget 2.1.18 → 2.1.20

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 +16 -13
  2. package/package.json +1 -1
@@ -88048,6 +88048,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88048
88048
  task = input();
88049
88049
  errors = input([]);
88050
88050
  isNote = input(false);
88051
+ /** True while the registry's current data is loading: addresses are not reported missing yet. */
88052
+ loading = input(false);
88051
88053
  isSubmitted = input(false);
88052
88054
  readonly = input(false);
88053
88055
  visiblyValidChange = output();
@@ -88080,6 +88082,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88080
88082
  missingMessages() {
88081
88083
  const t = (key) => this.translate.instant(key);
88082
88084
  const records = this.getFormGroup(this.groups.RecordsOfficeAddress);
88085
+ if (this.loading() || !records || !this.getFormGroup(this.groups.RegisteredOfficeAddress)) {
88086
+ return [];
88087
+ }
88083
88088
  const recordsSameAsRegistered = this.isChecked(records, this.controls.SameAsRegisteredOffice);
88084
88089
  const [regMailing, regDelivery] = this.registeredRows();
88085
88090
  const [recMailing, recDelivery] = this.recordsRows();
@@ -88093,10 +88098,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88093
88098
  }
88094
88099
  /** The incoming Shared Address supplied no new address for a line (and none is on the register). */
88095
88100
  isRegisteredMissing() {
88096
- return this.registeredRows().some((row) => !row.value);
88101
+ return !!this.getFormGroup(this.groups.RegisteredOfficeAddress) && this.registeredRows().some((row) => !row.value);
88097
88102
  }
88098
88103
  isRecordsMissing() {
88099
- return this.recordsRows().some((row) => !row.value);
88104
+ return !!this.getFormGroup(this.groups.RecordsOfficeAddress) && this.recordsRows().some((row) => !row.value);
88100
88105
  }
88101
88106
  isChecked(office, control) {
88102
88107
  return Boolean(office?.get(control)?.value);
@@ -88170,7 +88175,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88170
88175
  static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesFormComponent_Factory(__ngFactoryType__) {
88171
88176
  return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesFormComponent)();
88172
88177
  };
88173
- 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) {
88174
88179
  if (rf & 1) {
88175
88180
  \u0275\u0275elementStart(0, "div", 0);
88176
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);
@@ -88428,7 +88433,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88428
88433
  static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Factory(__ngFactoryType__) {
88429
88434
  return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent)();
88430
88435
  };
88431
- 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) {
88432
88437
  if (rf & 1) {
88433
88438
  \u0275\u0275elementStart(0, "div", 0)(1, "british-columbia-change-of-office-addresses-form", 1);
88434
88439
  \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Template_british_columbia_change_of_office_addresses_form_visiblyValidChange_1_listener($event) {
@@ -88462,19 +88467,19 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88462
88467
  }
88463
88468
  if (rf & 2) {
88464
88469
  \u0275\u0275advance();
88465
- \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);
88466
88471
  \u0275\u0275advance(2);
88467
88472
  \u0275\u0275property("disabled", ctx.actionsDisabled());
88468
88473
  \u0275\u0275advance(2);
88469
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 12, "Close"));
88474
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 13, "Close"));
88470
88475
  \u0275\u0275advance(2);
88471
88476
  \u0275\u0275property("disabled", ctx.actionsDisabled());
88472
88477
  \u0275\u0275advance(2);
88473
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 14, "Save Changes"));
88478
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 15, "Save Changes"));
88474
88479
  \u0275\u0275advance(2);
88475
88480
  \u0275\u0275property("disabled", ctx.actionsDisabled());
88476
88481
  \u0275\u0275advance(2);
88477
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14, 16, "Validate & Generate Draft"));
88482
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14, 17, "Validate & Generate Draft"));
88478
88483
  }
88479
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 });
88480
88485
  };
@@ -88488,6 +88493,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88488
88493
  [task]="task()"\r
88489
88494
  [errors]="combinedErrors()"\r
88490
88495
  [isNote]="isNote()"\r
88496
+ [loading]="actionsDisabled()"\r
88491
88497
  [isSubmitted]="submitted()"\r
88492
88498
  [readonly]="false"\r
88493
88499
  (visiblyValidChange)="onVisiblyValidChange($event)"\r
@@ -88814,7 +88820,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88814
88820
  actionsDisabled = input(false);
88815
88821
  errors = input([]);
88816
88822
  currentDataExtract = input();
88817
- /** False while the registry's current data is being loaded, so the forms are not built too early. */
88823
+ /** False while the registry's current data is loading; the validated-draft preview waits for it. */
88818
88824
  extractReady = input(true);
88819
88825
  close = output();
88820
88826
  codValidate = output();
@@ -88850,7 +88856,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88850
88856
  this.deltaForm.set(new FormGroup(BritishColumbiaFormationFormHelper.generateConfig(task, (key) => this.translate.instant(key), untracked2(() => this.currentUser()))));
88851
88857
  this.deltaState.setBCFormationInitialDelta(this.generateFormationDeltaData());
88852
88858
  }
88853
- if (task && isChangeOfAddressTask(task) && this.extractReady()) {
88859
+ if (task && isChangeOfAddressTask(task)) {
88854
88860
  this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfOfficeAddressesFormHelper.generateConfig(task, (key) => this.translate.instant(key), this.currentDataExtract())));
88855
88861
  this.deltaState.setBCChangeOfOfficeAddressesInitialDelta(this.generateChangeOfOfficeAddressesDeltaData());
88856
88862
  }
@@ -96983,9 +96989,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
96983
96989
  } else if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
96984
96990
  this.bcDataExtractTaskId = "";
96985
96991
  void this.refreshBritishColumbiaCurrentDataExtract();
96986
- } else if (isChangeOfAddressTask(task) && isBritishColumbiaTask(task)) {
96987
- this.bcDataExtractTaskId = task._id;
96988
- void this.loadBritishColumbiaOfficeAddressExtract(task);
96989
96992
  }
96990
96993
  this.activeStep.set(Step.Validate);
96991
96994
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.1.18",
3
+ "version": "2.1.20",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {