@acorex/cdk 20.3.33 → 20.3.35
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
|
@@ -432,6 +432,7 @@ declare class MXValueComponent<T = any> extends MXInteractiveComponent implement
|
|
|
432
432
|
* @param ruleToRemove - The validation rule to remove.
|
|
433
433
|
*/
|
|
434
434
|
removeValidationRule(ruleToRemove: AXFormValidationRule): void;
|
|
435
|
+
removeValidationRuleByType(type: string): void;
|
|
435
436
|
/**
|
|
436
437
|
* Validates the component.
|
|
437
438
|
*
|
|
@@ -695,6 +695,11 @@ class MXValueComponent extends MXInteractiveComponent {
|
|
|
695
695
|
this.validationRulesChange.emit(this.validationRules);
|
|
696
696
|
this.setState('clear');
|
|
697
697
|
}
|
|
698
|
+
removeValidationRuleByType(type) {
|
|
699
|
+
this.validationRules = this.validationRules.filter((r) => r.rule !== type);
|
|
700
|
+
this.validationRulesChange.emit(this.validationRules);
|
|
701
|
+
this.setState('clear');
|
|
702
|
+
}
|
|
698
703
|
/**
|
|
699
704
|
* Validates the component.
|
|
700
705
|
*
|