@acorex/components 4.1.0 → 4.1.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.
- package/esm2020/lib/base/base-page.class.mjs +1 -1
- package/esm2020/lib/base/element.class.mjs +1 -1
- package/esm2020/lib/data-list/core/data-list.component.mjs +1 -1
- package/esm2020/lib/form-group/form-group.component.mjs +2 -1
- package/esm2020/lib/property-editor/property-editor.class.mjs +1 -1
- package/esm2020/lib/validation/validation-form.component.mjs +1 -1
- package/esm2020/lib/validation/validation-rule.widget.mjs +13 -5
- package/esm2020/lib/validation/validation.component.mjs +19 -11
- package/fesm2015/acorex-components.mjs +35 -13
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +30 -13
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/lib/validation/validation-rule.widget.d.ts +4 -1
- package/lib/validation/validation.component.d.ts +6 -4
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
1
2
|
import { AXValidationRuleResult, AXValidationRule, AXValidationRuleTypes } from './validation.class';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class AXValidationRules {
|
|
@@ -9,12 +10,14 @@ export declare class AXValidationRules {
|
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
12
|
export declare class AXValidationRuleComponent implements AXValidationRule {
|
|
13
|
+
private ref?;
|
|
12
14
|
type: AXValidationRuleTypes;
|
|
13
15
|
message: string;
|
|
14
16
|
value: any;
|
|
15
17
|
enabled: boolean;
|
|
18
|
+
constructor(ref?: ElementRef);
|
|
16
19
|
validate(value: any): Promise<AXValidationRuleResult>;
|
|
17
20
|
private internalValidate;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXValidationRuleComponent,
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXValidationRuleComponent, [{ optional: true; }]>;
|
|
19
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXValidationRuleComponent, "ax-validation-rule", never, { "type": "type"; "message": "message"; "value": "value"; "enabled": "enabled"; }, {}, never, never>;
|
|
20
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, ElementRef } from '@angular/core';
|
|
2
2
|
import { AXValidationRule, AXValidationRuleResult } from './validation.class';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare abstract class AXValidation {
|
|
@@ -10,7 +10,9 @@ export declare abstract class AXValidation {
|
|
|
10
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXValidation>;
|
|
11
11
|
}
|
|
12
12
|
export declare class AXValidationComponent extends AXValidation {
|
|
13
|
-
private
|
|
13
|
+
private ref?;
|
|
14
|
+
_getComponenets(): AXValidationRule[];
|
|
15
|
+
constructor(ref?: ElementRef);
|
|
14
16
|
rulesChange: EventEmitter<AXValidationRule[]>;
|
|
15
17
|
showMessage: boolean;
|
|
16
18
|
private _rules;
|
|
@@ -18,6 +20,6 @@ export declare class AXValidationComponent extends AXValidation {
|
|
|
18
20
|
set rules(v: AXValidationRule[]);
|
|
19
21
|
validateOn: 'blur' | 'change' | 'submit';
|
|
20
22
|
ngAfterContentInit(): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXValidationComponent,
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXValidationComponent, "ax-validation", never, { "rules": "rules"; "validateOn": "validateOn"; }, { "rulesChange": "rulesChange"; "showMessage": "showMessage"; },
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXValidationComponent, [{ optional: true; }]>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXValidationComponent, "ax-validation", never, { "rules": "rules"; "validateOn": "validateOn"; }, { "rulesChange": "rulesChange"; "showMessage": "showMessage"; }, never, ["*"]>;
|
|
23
25
|
}
|