@dyedurham/search-and-file-widget 2.0.92 → 2.0.94

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.
@@ -87932,7 +87932,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
87932
87932
  this.emitValidity();
87933
87933
  }
87934
87934
  emitValidity() {
87935
- this.visiblyValidChange.emit(this.isVisiblyValid());
87935
+ queueMicrotask(() => this.visiblyValidChange.emit(this.isVisiblyValid()));
87936
87936
  }
87937
87937
  getFormGroup(key) {
87938
87938
  return this.form().get(key) ?? null;
@@ -88189,17 +88189,23 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
88189
88189
  });
88190
88190
  onVisiblyValidChange(valid) {
88191
88191
  this.visiblyValid.set(valid);
88192
+ if (this.submitted()) {
88193
+ this.clientErrors.set(valid ? [] : [this.requiredFieldsMessage()]);
88194
+ }
88192
88195
  }
88193
88196
  onValidate() {
88194
88197
  this.submitted.set(true);
88195
88198
  this.clientErrors.set([]);
88196
88199
  markFormGroupTouched(this.form());
88197
88200
  if (!this.visiblyValid()) {
88198
- this.clientErrors.set([this.translate.instant("Some required fields aren't completed.")]);
88201
+ this.clientErrors.set([this.requiredFieldsMessage()]);
88199
88202
  return;
88200
88203
  }
88201
88204
  this.validate.emit();
88202
88205
  }
88206
+ requiredFieldsMessage() {
88207
+ return this.translate.instant("Some required fields aren't completed.");
88208
+ }
88203
88209
  static \u0275fac = function BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent_Factory(__ngFactoryType__) {
88204
88210
  return new (__ngFactoryType__ || _BritishColumbiaChangeOfOfficeAddressesDeltaFormComponent)();
88205
88211
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyedurham/search-and-file-widget",
3
- "version": "2.0.92",
3
+ "version": "2.0.94",
4
4
  "description": "",
5
5
  "main": "dnd-filing-shell.js",
6
6
  "scripts": {