@acorex/core 7.17.28 → 7.18.0
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/dateTime/lib/calendar.service.d.ts +1 -0
- package/esm2022/dateTime/lib/calendar.service.mjs +8 -3
- package/esm2022/events/index.mjs +2 -1
- package/esm2022/events/lib/event.service.mjs +8 -1
- package/esm2022/events/lib/event.type.mjs +6 -0
- package/esm2022/format/index.mjs +2 -1
- package/esm2022/format/lib/format.module.mjs +26 -12
- package/esm2022/format/lib/format.pipe.mjs +16 -4
- package/esm2022/format/lib/format.service.mjs +8 -1
- package/esm2022/format/lib/formatters/string-formatter.mjs +16 -0
- package/esm2022/translation/lib/translation.service.mjs +74 -14
- package/esm2022/translation/lib/translator.directive.mjs +1 -1
- package/esm2022/translation/lib/translator.pipe.mjs +13 -31
- package/esm2022/validation/lib/rules/between-rule.mjs +2 -2
- package/esm2022/validation/lib/rules/callback-rule.mjs +2 -2
- package/esm2022/validation/lib/rules/equal-rule.mjs +2 -2
- package/esm2022/validation/lib/rules/greater-than.mjs +2 -2
- package/esm2022/validation/lib/rules/length-rule.mjs +2 -2
- package/esm2022/validation/lib/rules/less-than-rule.mjs +2 -2
- package/esm2022/validation/lib/rules/maxlength-rule.mjs +2 -2
- package/esm2022/validation/lib/rules/minlength-rule.mjs +2 -2
- package/esm2022/validation/lib/rules/regex-rule.mjs +4 -3
- package/esm2022/validation/lib/rules/required-rule.mjs +4 -3
- package/esm2022/validation/lib/validation.module.mjs +24 -11
- package/esm2022/validation/lib/validation.service.mjs +4 -4
- package/esm2022/validation/lib/validation.types.mjs +1 -1
- package/events/index.d.ts +1 -0
- package/events/lib/event.service.d.ts +8 -0
- package/events/lib/event.type.d.ts +5 -0
- package/fesm2022/acorex-core-dateTime.mjs +7 -2
- package/fesm2022/acorex-core-dateTime.mjs.map +1 -1
- package/fesm2022/acorex-core-events.mjs +14 -1
- package/fesm2022/acorex-core-events.mjs.map +1 -1
- package/fesm2022/acorex-core-format.mjs +62 -14
- package/fesm2022/acorex-core-format.mjs.map +1 -1
- package/fesm2022/acorex-core-translation.mjs +83 -43
- package/fesm2022/acorex-core-translation.mjs.map +1 -1
- package/fesm2022/acorex-core-validation.mjs +40 -24
- package/fesm2022/acorex-core-validation.mjs.map +1 -1
- package/format/index.d.ts +1 -0
- package/format/lib/format.module.d.ts +1 -3
- package/format/lib/format.pipe.d.ts +4 -1
- package/format/lib/format.service.d.ts +3 -0
- package/format/lib/formatters/string-formatter.d.ts +14 -0
- package/package.json +1 -1
- package/translation/lib/translation.service.d.ts +5 -0
- package/translation/lib/translator.pipe.d.ts +6 -9
- package/validation/lib/rules/between-rule.d.ts +1 -1
- package/validation/lib/rules/callback-rule.d.ts +1 -1
- package/validation/lib/rules/equal-rule.d.ts +1 -1
- package/validation/lib/rules/greater-than.d.ts +1 -1
- package/validation/lib/rules/length-rule.d.ts +1 -1
- package/validation/lib/rules/less-than-rule.d.ts +1 -1
- package/validation/lib/rules/maxlength-rule.d.ts +1 -1
- package/validation/lib/rules/minlength-rule.d.ts +1 -1
- package/validation/lib/rules/regex-rule.d.ts +1 -1
- package/validation/lib/rules/required-rule.d.ts +1 -1
- package/validation/lib/validation.module.d.ts +1 -3
- package/validation/lib/validation.service.d.ts +1 -1
- package/validation/lib/validation.types.d.ts +1 -1
@@ -1,18 +1,16 @@
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
2
|
-
import { AXValidationRegistryService } from './validation.service';
|
3
2
|
import { AXValidationRule } from './validation.types';
|
4
3
|
import * as i0 from "@angular/core";
|
5
4
|
export interface AXValidationModuleConfigs {
|
6
5
|
rules: (new () => AXValidationRule)[];
|
7
6
|
}
|
8
7
|
export declare class AXValidationModule {
|
9
|
-
private static registry;
|
10
8
|
static forRoot(configs?: AXValidationModuleConfigs): ModuleWithProviders<AXValidationModule>;
|
11
9
|
static forChild(configs?: AXValidationModuleConfigs): ModuleWithProviders<AXValidationModule>;
|
12
10
|
/**
|
13
11
|
* @ignore
|
14
12
|
*/
|
15
|
-
constructor(
|
13
|
+
constructor(instances: any[]);
|
16
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXValidationModule, never>;
|
17
15
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AXValidationModule, never, never, never>;
|
18
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXValidationModule>;
|
@@ -18,7 +18,7 @@ export declare class AXValidationService {
|
|
18
18
|
private pluginRegistry;
|
19
19
|
private translationService;
|
20
20
|
constructor(pluginRegistry: AXValidationRegistryService, translationService: AXTranslationService);
|
21
|
-
validate(ruleName: string, value: unknown, options?: AXValidationRuleOptions):
|
21
|
+
validate(ruleName: string, value: unknown, options?: AXValidationRuleOptions): Promise<AXValidationRuleResult>;
|
22
22
|
ruleFor(value: unknown): AXValidationRuleChain;
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXValidationService, never>;
|
24
24
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXValidationService>;
|
@@ -6,7 +6,7 @@ export interface AXValidationRuleOptionsMap {
|
|
6
6
|
}
|
7
7
|
export declare abstract class AXValidationRule {
|
8
8
|
abstract get name(): string;
|
9
|
-
abstract validate(value: unknown, options?: AXValidationRuleOptions):
|
9
|
+
abstract validate(value: unknown, options?: AXValidationRuleOptions): Promise<AXValidationRuleResult>;
|
10
10
|
}
|
11
11
|
export interface AXValidationRuleResult {
|
12
12
|
rule: string;
|