@acorex/cdk 20.7.39 → 20.7.41

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.
package/common/index.d.ts CHANGED
@@ -439,7 +439,7 @@ declare class MXValueComponent<T = any> extends MXInteractiveComponent implement
439
439
  * @returns Promise<AXValidationSummary> - Validation result.
440
440
  */
441
441
  validate(): Promise<AXValidationSummary>;
442
- protected setState(state: AXComponentState, ...args: any[]): void;
442
+ setState(state: AXComponentState, ...args: any[]): void;
443
443
  protected onChangeCallback: (value: T) => void;
444
444
  /**
445
445
  * Registers a change callback function (ControlValueAccessor method).
@@ -710,8 +710,7 @@ class MXValueComponent extends MXInteractiveComponent {
710
710
  const container = container_classes.some((c) => this.getHostElement().classList.contains(c))
711
711
  ? this.getHostElement()
712
712
  : this.getHostElement().querySelector('.ax-editor-container');
713
- const formField = (container || this.getHostElement()).closest('ax-form-field') ||
714
- container?.closest('ax-checkbox');
713
+ const formField = (container || this.getHostElement()).closest('ax-form-field') || container?.closest('ax-checkbox');
715
714
  const label = formField?.querySelector('ax-label') || formField?.querySelector('label');
716
715
  //
717
716
  const rules = this.validationService.ruleFor(this.value);