@klippa/ngx-enhancy-forms 14.16.0 → 14.16.1

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.
@@ -283,6 +283,9 @@ class FormComponent {
283
283
  control.disable();
284
284
  }
285
285
  }
286
+ getFormElementByFormControl(control) {
287
+ return this.activeControls.find((e) => e.formControl === control)?.formElement;
288
+ }
286
289
  trySubmit() {
287
290
  this.formGroup.markAllAsTouched();
288
291
  const allControls = this.getAllFormControls();
@@ -517,6 +520,9 @@ class FormElementComponent {
517
520
  getAttachedControl() {
518
521
  return this.attachedControl;
519
522
  }
523
+ getAttachedInput() {
524
+ return this.input;
525
+ }
520
526
  registerErrorHandler(error, templateRef) {
521
527
  this.customErrorHandlers.push({ error, templateRef });
522
528
  }