@sbcore/ng-absolute-validator 14.0.0 → 14.0.2
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/README.md +245 -257
- package/esm2020/lib/directive/error-trigger/error-trigger-on.directive.mjs +5 -5
- package/esm2020/lib/ng-absolute-validator.module.mjs +6 -8
- package/esm2020/lib/rule/above/above.directive.mjs +6 -6
- package/esm2020/lib/rule/accepted/accepted.directive.mjs +6 -6
- package/esm2020/lib/rule/after/after.directive.mjs +6 -6
- package/esm2020/lib/rule/alpha/alpha.directive.mjs +6 -6
- package/esm2020/lib/rule/alpha_dash/alpha-dash.directive.mjs +6 -6
- package/esm2020/lib/rule/alpha_numeric/alpha-numeric.directive.mjs +6 -6
- package/esm2020/lib/rule/array/array.directive.mjs +6 -6
- package/esm2020/lib/rule/before/before.directive.mjs +6 -6
- package/esm2020/lib/rule/between/between.directive.mjs +6 -6
- package/esm2020/lib/rule/boolean/boolean.directive.mjs +6 -6
- package/esm2020/lib/rule/confirmed/confirmed.directive.mjs +6 -6
- package/esm2020/lib/rule/credit_card/credit-card.directive.mjs +6 -6
- package/esm2020/lib/rule/cvv/cvv.directive.mjs +6 -6
- package/esm2020/lib/rule/date/date.directive.mjs +6 -6
- package/esm2020/lib/rule/date_format/date-format.directive.mjs +6 -6
- package/esm2020/lib/rule/debit_card/debit-card.directive.mjs +6 -6
- package/esm2020/lib/rule/different/different.directive.mjs +6 -6
- package/esm2020/lib/rule/dimension/dimension.directive.mjs +6 -6
- package/esm2020/lib/rule/email/email.directive.mjs +6 -6
- package/esm2020/lib/rule/ends_with/ends-with.directive.mjs +6 -6
- package/esm2020/lib/rule/equals/equals.directive.mjs +6 -6
- package/esm2020/lib/rule/exists/exists.directive.mjs +6 -6
- package/esm2020/lib/rule/image/image.directive.mjs +7 -7
- package/esm2020/lib/rule/in/in.directive.mjs +6 -6
- package/esm2020/lib/rule/includes/includes.directive.mjs +6 -6
- package/esm2020/lib/rule/integer/integer.directive.mjs +6 -6
- package/esm2020/lib/rule/ip/ip.directive.mjs +6 -6
- package/esm2020/lib/rule/ipv4/ipv4.directive.mjs +6 -6
- package/esm2020/lib/rule/ipv6/ipv6.directive.mjs +6 -6
- package/esm2020/lib/rule/json/json.directive.mjs +6 -6
- package/esm2020/lib/rule/max/max.directive.mjs +6 -6
- package/esm2020/lib/rule/mimes/mimes.directive.mjs +6 -6
- package/esm2020/lib/rule/min/min.directive.mjs +6 -6
- package/esm2020/lib/rule/not_equals/not-equals.directive.mjs +7 -7
- package/esm2020/lib/rule/not_in/not-in.directive.mjs +6 -6
- package/esm2020/lib/rule/not_regex/not-regex.directive.mjs +6 -6
- package/esm2020/lib/rule/number/number.directive.mjs +6 -6
- package/esm2020/lib/rule/phone_no/phone-no.directive.mjs +7 -7
- package/esm2020/lib/rule/range/range.directive.mjs +6 -6
- package/esm2020/lib/rule/regex/regex.directive.mjs +6 -6
- package/esm2020/lib/rule/required/required.directive.mjs +6 -6
- package/esm2020/lib/rule/required_if/required-if.directive.mjs +6 -6
- package/esm2020/lib/rule/required_unless/required-unless.directive.mjs +6 -6
- package/esm2020/lib/rule/required_with/required-with.directive.mjs +6 -6
- package/esm2020/lib/rule/required_with_all/required-with-all.directive.mjs +6 -6
- package/esm2020/lib/rule/required_without/required-without.directive.mjs +6 -6
- package/esm2020/lib/rule/required_without_all/required-without-all.directive.mjs +6 -6
- package/esm2020/lib/rule/rule.directive.mjs +6 -6
- package/esm2020/lib/rule/rule.module.mjs +76 -111
- package/esm2020/lib/rule/same/same.directive.mjs +6 -6
- package/esm2020/lib/rule/size/size.directive.mjs +6 -6
- package/esm2020/lib/rule/starts_with/starts-with.directive.mjs +6 -6
- package/esm2020/lib/rule/strength/strength.directive.mjs +6 -6
- package/esm2020/lib/rule/string/string.directive.mjs +6 -6
- package/esm2020/lib/rule/under/under.directive.mjs +6 -6
- package/esm2020/lib/rule/unique/unique.directive.mjs +6 -6
- package/esm2020/lib/rule/url/url.directive.mjs +6 -6
- package/esm2020/lib/rule/uuid/uuid.directive.mjs +6 -6
- package/esm2020/lib/rule/video/video.directive.mjs +6 -6
- package/fesm2015/sbcore-ng-absolute-validator.mjs +349 -386
- package/fesm2015/sbcore-ng-absolute-validator.mjs.map +1 -1
- package/fesm2020/sbcore-ng-absolute-validator.mjs +347 -384
- package/fesm2020/sbcore-ng-absolute-validator.mjs.map +1 -1
- package/lib/common.utils.d.ts +8 -0
- package/lib/config-interface.d.ts +15 -0
- package/lib/constant.d.ts +61 -0
- package/lib/directive/error-trigger/error-trigger-on.directive.d.ts +3 -3
- package/lib/interface.d.ts +143 -0
- package/lib/ng-absolute-validator.component.d.ts +77 -0
- package/lib/ng-absolute-validator.module.d.ts +1 -1
- package/lib/ng-absolute-validator.service.d.ts +45 -0
- package/lib/rule/above/above.directive.d.ts +3 -3
- package/lib/rule/accepted/accepted.directive.d.ts +3 -3
- package/lib/rule/after/after.directive.d.ts +3 -3
- package/lib/rule/alpha/alpha.directive.d.ts +3 -3
- package/lib/rule/alpha_dash/alpha-dash.directive.d.ts +3 -3
- package/lib/rule/alpha_numeric/alpha-numeric.directive.d.ts +3 -3
- package/lib/rule/array/array.directive.d.ts +3 -3
- package/lib/rule/before/before.directive.d.ts +3 -3
- package/lib/rule/between/between.directive.d.ts +3 -3
- package/lib/rule/boolean/boolean.directive.d.ts +3 -3
- package/lib/rule/confirmed/confirmed.directive.d.ts +3 -3
- package/lib/rule/credit_card/credit-card.directive.d.ts +3 -3
- package/lib/rule/cvv/cvv.directive.d.ts +3 -3
- package/lib/rule/date/date.directive.d.ts +3 -3
- package/lib/rule/date_format/date-format.directive.d.ts +3 -3
- package/lib/rule/debit_card/debit-card.directive.d.ts +3 -3
- package/lib/rule/different/different.directive.d.ts +3 -3
- package/lib/rule/dimension/dimension.directive.d.ts +3 -3
- package/lib/rule/email/email.directive.d.ts +3 -3
- package/lib/rule/ends_with/ends-with.directive.d.ts +3 -3
- package/lib/rule/equals/equals.directive.d.ts +3 -3
- package/lib/rule/exists/exists.directive.d.ts +3 -3
- package/lib/rule/image/image.directive.d.ts +3 -3
- package/lib/rule/in/in.directive.d.ts +3 -3
- package/lib/rule/includes/includes.directive.d.ts +3 -3
- package/lib/rule/integer/integer.directive.d.ts +3 -3
- package/lib/rule/ip/ip.directive.d.ts +3 -3
- package/lib/rule/ipv4/ipv4.directive.d.ts +3 -3
- package/lib/rule/ipv6/ipv6.directive.d.ts +3 -3
- package/lib/rule/json/json.directive.d.ts +3 -3
- package/lib/rule/max/max.directive.d.ts +3 -3
- package/lib/rule/mimes/mimes.directive.d.ts +3 -3
- package/lib/rule/min/min.directive.d.ts +3 -3
- package/lib/rule/not_equals/not-equals.directive.d.ts +3 -3
- package/lib/rule/not_in/not-in.directive.d.ts +3 -3
- package/lib/rule/not_regex/not-regex.directive.d.ts +3 -3
- package/lib/rule/number/number.directive.d.ts +3 -3
- package/lib/rule/phone_no/phone-no.directive.d.ts +3 -3
- package/lib/rule/range/range.directive.d.ts +3 -3
- package/lib/rule/regex/regex.directive.d.ts +3 -3
- package/lib/rule/required/required.directive.d.ts +3 -3
- package/lib/rule/required_if/required-if.directive.d.ts +3 -3
- package/lib/rule/required_unless/required-unless.directive.d.ts +3 -3
- package/lib/rule/required_with/required-with.directive.d.ts +3 -3
- package/lib/rule/required_with_all/required-with-all.directive.d.ts +3 -3
- package/lib/rule/required_without/required-without.directive.d.ts +3 -3
- package/lib/rule/required_without_all/required-without-all.directive.d.ts +3 -3
- package/lib/rule/rule.directive.d.ts +17 -0
- package/lib/rule/rule.module.d.ts +1 -1
- package/lib/rule/same/same.directive.d.ts +3 -3
- package/lib/rule/size/size.directive.d.ts +3 -3
- package/lib/rule/starts_with/starts-with.directive.d.ts +3 -3
- package/lib/rule/strength/strength.directive.d.ts +3 -3
- package/lib/rule/string/string.directive.d.ts +3 -3
- package/lib/rule/under/under.directive.d.ts +3 -3
- package/lib/rule/unique/unique.directive.d.ts +3 -3
- package/lib/rule/url/url.directive.d.ts +3 -3
- package/lib/rule/uuid/uuid.directive.d.ts +3 -3
- package/lib/rule/video/video.directive.d.ts +3 -3
- package/lib/services/http.request.service.d.ts +11 -0
- package/lib/services/messages-builder.service.d.ts +9 -0
- package/lib/services/utils.service.d.ts +81 -0
- package/lib/services/validate-rule.service.d.ts +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const toArray: (value: any, seperator?: string) => any[];
|
|
2
|
+
export declare const isArray: (actualData: string) => boolean;
|
|
3
|
+
export declare const isEmptyObject: (value: any) => boolean;
|
|
4
|
+
export declare const camelCase: (string: string) => string;
|
|
5
|
+
export declare const json: (string: string) => boolean;
|
|
6
|
+
export declare const bytesToSize: (bytes: any, seperator?: string) => string | null;
|
|
7
|
+
export declare function toCharClass(chars: string): string;
|
|
8
|
+
export declare function cloneDeep(data: any): any;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ErrorTriggerState, LocalizedMessageGroup, StrengthColor, StrengthLevel } from './interface';
|
|
3
|
+
export interface ConfigInterface {
|
|
4
|
+
remoteLoader?: boolean;
|
|
5
|
+
delayLoader?: number;
|
|
6
|
+
strengthBar?: boolean;
|
|
7
|
+
strengthColor?: StrengthColor[];
|
|
8
|
+
strengthLevel?: StrengthLevel[];
|
|
9
|
+
translations?: LocalizedMessageGroup;
|
|
10
|
+
replaceTranslations?: LocalizedMessageGroup;
|
|
11
|
+
defaultLanguage?: string;
|
|
12
|
+
supportedLanguages?: string[];
|
|
13
|
+
showErrorOn?: ErrorTriggerState;
|
|
14
|
+
}
|
|
15
|
+
export declare const LIB_CONFIG: InjectionToken<ConfigInterface>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare const GlobalConstant: {
|
|
2
|
+
customObjectName: string;
|
|
3
|
+
customRulesName: string;
|
|
4
|
+
customElementName: string;
|
|
5
|
+
customFieldName: string;
|
|
6
|
+
approvedLanguage: string[];
|
|
7
|
+
fileDependentRules: string[];
|
|
8
|
+
fieldDependentRules: string[];
|
|
9
|
+
filedOnlyDependentRules: string[];
|
|
10
|
+
fieldDefaultNameRule: string[];
|
|
11
|
+
asyncRules: string[];
|
|
12
|
+
emitMethods: string[];
|
|
13
|
+
/****
|
|
14
|
+
* Credit Card Issuer with Regex Expression
|
|
15
|
+
****/
|
|
16
|
+
credit_card: {
|
|
17
|
+
name: string;
|
|
18
|
+
id: string;
|
|
19
|
+
regex: string;
|
|
20
|
+
}[];
|
|
21
|
+
/****
|
|
22
|
+
* Debit Card Issuer with Regex Expression
|
|
23
|
+
****/
|
|
24
|
+
debit_card: {
|
|
25
|
+
name: string;
|
|
26
|
+
id: string;
|
|
27
|
+
regex: string;
|
|
28
|
+
}[];
|
|
29
|
+
/****
|
|
30
|
+
* String strength validation with Regex Expression
|
|
31
|
+
****/
|
|
32
|
+
strength_default_color: string;
|
|
33
|
+
strength_level: {
|
|
34
|
+
id: string;
|
|
35
|
+
description: string;
|
|
36
|
+
regex: string;
|
|
37
|
+
}[];
|
|
38
|
+
strength_color: ({
|
|
39
|
+
max: number;
|
|
40
|
+
color: string;
|
|
41
|
+
min?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
min: number;
|
|
44
|
+
max: number;
|
|
45
|
+
color: string;
|
|
46
|
+
} | {
|
|
47
|
+
min: number;
|
|
48
|
+
color: string;
|
|
49
|
+
max?: undefined;
|
|
50
|
+
})[];
|
|
51
|
+
};
|
|
52
|
+
export declare const CUSTOM_OBJECT_NAME = "ng_abs";
|
|
53
|
+
export declare const DEFAULT_STRENGTH_COLOR = "#6c757d";
|
|
54
|
+
export declare const DEFAULT_DATE_FORMAT = "dd-MM-yyyy";
|
|
55
|
+
export declare const DEFAULT_LOCALE_LANG = "en";
|
|
56
|
+
export declare const SUPPORTED_LOCALE_LANGS: string[];
|
|
57
|
+
export declare const DEFAULT_TRIGGER_STATE: string[];
|
|
58
|
+
export declare const EMIT_METHODS: string[];
|
|
59
|
+
export declare const CROSS_FIELD_VALIDATORS: string[];
|
|
60
|
+
export declare const ASYNC_RULES: string[];
|
|
61
|
+
export declare const FILE_TYPE_RULES: string[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ErrorTriggerState, FormGroupDirective2, NgForm2 } from '../../interface';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class ErrorTriggerOn {
|
|
4
4
|
private FormGroupDirective;
|
|
5
5
|
private NgForm;
|
|
6
6
|
constructor(FormGroupDirective: FormGroupDirective2, NgForm: NgForm2);
|
|
7
7
|
set message(triggerState: ErrorTriggerState[]);
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorTriggerOn, [{ optional: true; }, { optional: true; }]>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ErrorTriggerOn, "form[ErrorTriggerOn]", never, { "message": "ErrorTriggerOn"; }, {}, never, never, false>;
|
|
10
10
|
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { AbstractControl, FormGroupDirective, NgForm } from "@angular/forms";
|
|
2
|
+
import { SUPPORTED_LOCALE_LANGS } from "./constant";
|
|
3
|
+
export interface AbstractControl2 extends AbstractControl {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
export declare type ErrorTriggerState = 'touched' | 'dirty' | 'submit' | 'always';
|
|
7
|
+
export declare type FormGroupDirective2 = FormGroupDirective & {
|
|
8
|
+
errorTriggerOn: ErrorTriggerState[];
|
|
9
|
+
};
|
|
10
|
+
export declare type NgForm2 = NgForm & {
|
|
11
|
+
errorTriggerOn: ErrorTriggerState[];
|
|
12
|
+
};
|
|
13
|
+
export interface HttpRequestArgs {
|
|
14
|
+
url: string;
|
|
15
|
+
field?: string;
|
|
16
|
+
request?: object;
|
|
17
|
+
params?: object;
|
|
18
|
+
method?: 'GET' | 'POST';
|
|
19
|
+
}
|
|
20
|
+
export declare type LocaleLang = typeof SUPPORTED_LOCALE_LANGS[number];
|
|
21
|
+
export declare const LOCALE_LANG_LABELS: Record<LocaleLang, string>;
|
|
22
|
+
export interface LocalizedMessage {
|
|
23
|
+
en?: string;
|
|
24
|
+
ar?: string;
|
|
25
|
+
es?: string;
|
|
26
|
+
fr?: string;
|
|
27
|
+
de?: string;
|
|
28
|
+
hi?: string;
|
|
29
|
+
bn?: string;
|
|
30
|
+
pt?: string;
|
|
31
|
+
ja?: string;
|
|
32
|
+
zh?: string;
|
|
33
|
+
ru?: string;
|
|
34
|
+
[langCode: string]: string | undefined;
|
|
35
|
+
}
|
|
36
|
+
export interface LocalizedMessageGroup {
|
|
37
|
+
[ruleName: string]: LocalizedMessage | NestedLocalizedMessage;
|
|
38
|
+
}
|
|
39
|
+
export interface NestedLocalizedMessage {
|
|
40
|
+
array: LocalizedMessage;
|
|
41
|
+
numeric: LocalizedMessage;
|
|
42
|
+
string: LocalizedMessage;
|
|
43
|
+
}
|
|
44
|
+
export interface ValidationMessages {
|
|
45
|
+
above: LocalizedMessage;
|
|
46
|
+
accepted: LocalizedMessage;
|
|
47
|
+
after: LocalizedMessage;
|
|
48
|
+
alpha: LocalizedMessage;
|
|
49
|
+
alpha_dash: LocalizedMessage;
|
|
50
|
+
alpha_numeric: LocalizedMessage;
|
|
51
|
+
array: LocalizedMessage;
|
|
52
|
+
before: LocalizedMessage;
|
|
53
|
+
boolean: LocalizedMessage;
|
|
54
|
+
confirmed: LocalizedMessage;
|
|
55
|
+
credit_card: LocalizedMessage;
|
|
56
|
+
cvv: LocalizedMessage;
|
|
57
|
+
date: LocalizedMessage;
|
|
58
|
+
date_format: LocalizedMessage;
|
|
59
|
+
debit_card: LocalizedMessage;
|
|
60
|
+
different: LocalizedMessage;
|
|
61
|
+
dimension: LocalizedMessage;
|
|
62
|
+
email: LocalizedMessage;
|
|
63
|
+
ends_with: LocalizedMessage;
|
|
64
|
+
equals: LocalizedMessage;
|
|
65
|
+
between: LocalizedMessage;
|
|
66
|
+
exists: LocalizedMessage;
|
|
67
|
+
image: LocalizedMessage;
|
|
68
|
+
in: LocalizedMessage;
|
|
69
|
+
includes: LocalizedMessage;
|
|
70
|
+
integer: LocalizedMessage;
|
|
71
|
+
ip: LocalizedMessage;
|
|
72
|
+
ipv4: LocalizedMessage;
|
|
73
|
+
ipv6: LocalizedMessage;
|
|
74
|
+
json: LocalizedMessage;
|
|
75
|
+
max: NestedLocalizedMessage;
|
|
76
|
+
min: NestedLocalizedMessage;
|
|
77
|
+
mimes: LocalizedMessage;
|
|
78
|
+
not_equals: LocalizedMessage;
|
|
79
|
+
not_in: LocalizedMessage;
|
|
80
|
+
not_regex: LocalizedMessage;
|
|
81
|
+
number: LocalizedMessage;
|
|
82
|
+
phone_no: LocalizedMessage;
|
|
83
|
+
range: LocalizedMessage;
|
|
84
|
+
regex: LocalizedMessage;
|
|
85
|
+
required: LocalizedMessage;
|
|
86
|
+
required_if: LocalizedMessage;
|
|
87
|
+
required_unless: LocalizedMessage;
|
|
88
|
+
required_with: LocalizedMessage;
|
|
89
|
+
required_with_all: LocalizedMessage;
|
|
90
|
+
required_without: LocalizedMessage;
|
|
91
|
+
required_without_all: LocalizedMessage;
|
|
92
|
+
same: LocalizedMessage;
|
|
93
|
+
size: LocalizedMessage;
|
|
94
|
+
starts_with: LocalizedMessage;
|
|
95
|
+
string: LocalizedMessage;
|
|
96
|
+
strength: LocalizedMessage;
|
|
97
|
+
under: LocalizedMessage;
|
|
98
|
+
url: LocalizedMessage;
|
|
99
|
+
uuid: LocalizedMessage;
|
|
100
|
+
unique: LocalizedMessage;
|
|
101
|
+
video: LocalizedMessage;
|
|
102
|
+
}
|
|
103
|
+
export interface StrengthLevel {
|
|
104
|
+
id: string;
|
|
105
|
+
description?: string;
|
|
106
|
+
regex: string;
|
|
107
|
+
}
|
|
108
|
+
export interface StrengthColor {
|
|
109
|
+
max?: number;
|
|
110
|
+
min?: number;
|
|
111
|
+
color: string;
|
|
112
|
+
}
|
|
113
|
+
export declare type FieldType = 'control' | 'group' | 'array';
|
|
114
|
+
export interface FieldConfig {
|
|
115
|
+
label: string;
|
|
116
|
+
name: string;
|
|
117
|
+
type: FieldType;
|
|
118
|
+
options?: any;
|
|
119
|
+
}
|
|
120
|
+
export interface AsyncRuleConfig {
|
|
121
|
+
name: 'exists' | 'unique' | 'dimension';
|
|
122
|
+
url?: string;
|
|
123
|
+
field?: string;
|
|
124
|
+
method?: 'GET' | 'POST';
|
|
125
|
+
request?: Record<string, any>;
|
|
126
|
+
params?: Record<string, any>;
|
|
127
|
+
args?: string;
|
|
128
|
+
}
|
|
129
|
+
export interface ControlFieldConfig extends FieldConfig {
|
|
130
|
+
type: 'control';
|
|
131
|
+
value?: any;
|
|
132
|
+
rule?: string | string[];
|
|
133
|
+
asyncRule?: AsyncRuleConfig[];
|
|
134
|
+
}
|
|
135
|
+
export interface GroupFieldConfig extends FieldConfig {
|
|
136
|
+
type: 'group';
|
|
137
|
+
children: DynamicFieldConfig[];
|
|
138
|
+
}
|
|
139
|
+
export interface ArrayFieldConfig extends FieldConfig {
|
|
140
|
+
type: 'array';
|
|
141
|
+
children: DynamicFieldConfig[];
|
|
142
|
+
}
|
|
143
|
+
export declare type DynamicFieldConfig = ControlFieldConfig | GroupFieldConfig | ArrayFieldConfig;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { OnInit, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { NgAbsoluteValidatorService } from './ng-absolute-validator.service';
|
|
4
|
+
import { ErrorTriggerState, FormGroupDirective2, NgForm2 } from './interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class NgAbsoluteValidatorComponent implements OnInit, OnDestroy {
|
|
7
|
+
private avs;
|
|
8
|
+
private translate;
|
|
9
|
+
private formGroupDirective;
|
|
10
|
+
private ngForm;
|
|
11
|
+
strength_color: any;
|
|
12
|
+
indicatorColor: string;
|
|
13
|
+
indicatorScore: number;
|
|
14
|
+
invalid: boolean;
|
|
15
|
+
dirty: boolean;
|
|
16
|
+
touched: boolean;
|
|
17
|
+
inputValue: any;
|
|
18
|
+
isLoaderOn: boolean;
|
|
19
|
+
isStrengthBarOn: boolean;
|
|
20
|
+
errorMessage: any;
|
|
21
|
+
ngAbsData: any;
|
|
22
|
+
private destroy$;
|
|
23
|
+
formInstance: any;
|
|
24
|
+
loader: boolean;
|
|
25
|
+
message: any;
|
|
26
|
+
defaultError: boolean;
|
|
27
|
+
showErrorOn: ErrorTriggerState[];
|
|
28
|
+
onValid: EventEmitter<boolean>;
|
|
29
|
+
onValidate: EventEmitter<string[]>;
|
|
30
|
+
absError?: TemplateRef<any>;
|
|
31
|
+
absProgress?: TemplateRef<any>;
|
|
32
|
+
absLoader?: TemplateRef<any>;
|
|
33
|
+
constructor(avs: NgAbsoluteValidatorService, translate: TranslateService, formGroupDirective: FormGroupDirective2, ngForm: NgForm2);
|
|
34
|
+
ngOnInit(): void;
|
|
35
|
+
get errorContext(): {
|
|
36
|
+
$implicit: any;
|
|
37
|
+
};
|
|
38
|
+
get progressContext(): {
|
|
39
|
+
$implicit: number;
|
|
40
|
+
color: string;
|
|
41
|
+
};
|
|
42
|
+
get isSubmitted(): boolean;
|
|
43
|
+
get errorTriggerOn(): string[];
|
|
44
|
+
/**
|
|
45
|
+
* @description This method check the rule has dependency with another field or not
|
|
46
|
+
* @return boolean
|
|
47
|
+
**/
|
|
48
|
+
get isDisplay(): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* @description This method check and validate the mathod
|
|
51
|
+
* @return void
|
|
52
|
+
**/
|
|
53
|
+
private doCheckAndValidate;
|
|
54
|
+
/**
|
|
55
|
+
* @description This method set the validate methods taking from Template/Reactive from
|
|
56
|
+
* @return void
|
|
57
|
+
**/
|
|
58
|
+
private setNgAbsData;
|
|
59
|
+
/**
|
|
60
|
+
* @description This method set strength color with max and min range object
|
|
61
|
+
* @return void
|
|
62
|
+
**/
|
|
63
|
+
getStrengthClass(strengthData: any): void;
|
|
64
|
+
/**
|
|
65
|
+
* @description This method trigger event and return the validation information
|
|
66
|
+
* @return void
|
|
67
|
+
**/
|
|
68
|
+
private emitedData;
|
|
69
|
+
/**
|
|
70
|
+
* @description This method generate message
|
|
71
|
+
* @return object
|
|
72
|
+
**/
|
|
73
|
+
private generateMessage;
|
|
74
|
+
ngOnDestroy(): void;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgAbsoluteValidatorComponent, [null, null, { optional: true; }, { optional: true; }]>;
|
|
76
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgAbsoluteValidatorComponent, "ng-absolute-validator", never, { "formInstance": "formInstance"; "loader": "loader"; "message": "message"; "defaultError": "defaultError"; "showErrorOn": "showErrorOn"; }, { "onValid": "onValid"; "onValidate": "onValidate"; }, ["absError", "absProgress", "absLoader"], never, false>;
|
|
77
|
+
}
|
|
@@ -15,6 +15,6 @@ export declare function appInitializerFactory(translate: TranslateService, confi
|
|
|
15
15
|
export declare class NgAbsoluteValidatorModule {
|
|
16
16
|
static forRoot(config?: ConfigInterface): ModuleWithProviders<NgAbsoluteValidatorModule>;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgAbsoluteValidatorModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgAbsoluteValidatorModule, [typeof i1.NgAbsoluteValidatorComponent, typeof i2.NativeElementDirective, typeof i3.
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgAbsoluteValidatorModule, [typeof i1.NgAbsoluteValidatorComponent, typeof i2.NativeElementDirective, typeof i3.ErrorTriggerOn], [typeof i4.CommonModule, typeof i5.RuleModule, typeof i6.HttpClientModule, typeof i7.TranslateModule], [typeof i5.RuleModule, typeof i1.NgAbsoluteValidatorComponent, typeof i3.ErrorTriggerOn, typeof i7.TranslateModule]>;
|
|
19
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgAbsoluteValidatorModule>;
|
|
20
20
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ConfigInterface } from './config-interface';
|
|
2
|
+
import { ErrorTriggerState } from './interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NgAbsoluteValidatorService {
|
|
5
|
+
private config;
|
|
6
|
+
VLIDATOR_CONFIG: ConfigInterface;
|
|
7
|
+
constructor(config: ConfigInterface);
|
|
8
|
+
init(): void;
|
|
9
|
+
/**
|
|
10
|
+
* @description This method give is remote locader is enable or not
|
|
11
|
+
* @returns Boolean
|
|
12
|
+
**/
|
|
13
|
+
get remoteLoader(): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @description This method give is remote locader is enable or not
|
|
16
|
+
* @returns Boolean
|
|
17
|
+
**/
|
|
18
|
+
get strengthBar(): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* @description This method return the color of the bar based on config
|
|
21
|
+
* @returns Object
|
|
22
|
+
**/
|
|
23
|
+
get strengthColor(): import("./interface").StrengthColor[];
|
|
24
|
+
/**
|
|
25
|
+
* @description This method return the list of regex config to vlidate
|
|
26
|
+
* @returns Object
|
|
27
|
+
**/
|
|
28
|
+
get strengthLevel(): {
|
|
29
|
+
id: string;
|
|
30
|
+
description: string;
|
|
31
|
+
regex: string;
|
|
32
|
+
}[];
|
|
33
|
+
/**
|
|
34
|
+
* @description This method check is the loader should display or not
|
|
35
|
+
* @returns boolean
|
|
36
|
+
**/
|
|
37
|
+
get delayLoader(): number;
|
|
38
|
+
/**
|
|
39
|
+
* @description This method state of triger validation
|
|
40
|
+
* @returns boolean
|
|
41
|
+
**/
|
|
42
|
+
get showErrorOn(): ErrorTriggerState[];
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgAbsoluteValidatorService, never>;
|
|
44
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NgAbsoluteValidatorService>;
|
|
45
|
+
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class Above implements Validator {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -15,6 +15,6 @@ export declare class AboveDirective implements Validator {
|
|
|
15
15
|
constructor(mb: MessageBuilderService, el: ElementRef, utl: UtilService);
|
|
16
16
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
17
17
|
private isValid;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Above, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Above, "[above]", never, { "above": "above"; "message": "message"; }, {}, never, never, false>;
|
|
20
20
|
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class Accepted implements Validator {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -15,6 +15,6 @@ export declare class AcceptedDirective implements Validator {
|
|
|
15
15
|
constructor(mb: MessageBuilderService, el: ElementRef, utl: UtilService);
|
|
16
16
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
17
17
|
private isValid;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Accepted, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Accepted, "[accepted]", never, { "accepted": "accepted"; "message": "message"; }, {}, never, never, false>;
|
|
20
20
|
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class After implements Validator {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -15,6 +15,6 @@ export declare class AfterDirective implements Validator {
|
|
|
15
15
|
constructor(mb: MessageBuilderService, el: ElementRef, utl: UtilService);
|
|
16
16
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
17
17
|
private isValid;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<After, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<After, "[after]", never, { "after": "after"; "message": "message"; }, {}, never, never, false>;
|
|
20
20
|
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class Alpha implements Validator {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -14,6 +14,6 @@ export declare class AlphaDirective implements Validator {
|
|
|
14
14
|
constructor(mb: MessageBuilderService, el: ElementRef, utl: UtilService);
|
|
15
15
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
16
16
|
private isValid;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Alpha, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Alpha, "[alpha]", never, { "message": "message"; }, {}, never, never, false>;
|
|
19
19
|
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class AlphaDash implements Validator {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -14,6 +14,6 @@ export declare class AlphaDashDirective implements Validator {
|
|
|
14
14
|
constructor(mb: MessageBuilderService, el: ElementRef, utl: UtilService);
|
|
15
15
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
16
16
|
private isValid;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlphaDash, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlphaDash, "[alphaDash]", never, { "message": "message"; }, {}, never, never, false>;
|
|
19
19
|
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class AlphaNumeric implements Validator {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -14,6 +14,6 @@ export declare class AlphaNumericDirective implements Validator {
|
|
|
14
14
|
constructor(mb: MessageBuilderService, el: ElementRef, utl: UtilService);
|
|
15
15
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
16
16
|
private isValid;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlphaNumeric, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AlphaNumeric, "[alphaNumeric]", never, { "message": "message"; }, {}, never, never, false>;
|
|
19
19
|
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class Array implements Validator {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -14,6 +14,6 @@ export declare class ArrayDirective implements Validator {
|
|
|
14
14
|
constructor(mb: MessageBuilderService, el: ElementRef, utl: UtilService);
|
|
15
15
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
16
16
|
private isValid;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Array, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Array, "[array]", never, { "message": "message"; }, {}, never, never, false>;
|
|
19
19
|
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class Before implements Validator {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -15,6 +15,6 @@ export declare class BeforeDirective implements Validator {
|
|
|
15
15
|
constructor(mb: MessageBuilderService, el: ElementRef, utl: UtilService);
|
|
16
16
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
17
17
|
private isValid;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Before, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Before, "[before]", never, { "before": "before"; "message": "message"; }, {}, never, never, false>;
|
|
20
20
|
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class Between implements Validator {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -15,6 +15,6 @@ export declare class BetweenDirective implements Validator {
|
|
|
15
15
|
constructor(mb: MessageBuilderService, el: ElementRef, utl: UtilService);
|
|
16
16
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
17
17
|
private isValid;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Between, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Between, "[between]", never, { "between": "between"; "message": "message"; }, {}, never, never, false>;
|
|
20
20
|
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class Boolean implements Validator {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -14,6 +14,6 @@ export declare class BooleanDirective implements Validator {
|
|
|
14
14
|
constructor(mb: MessageBuilderService, el: ElementRef, utl: UtilService);
|
|
15
15
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
16
16
|
private isValid;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Boolean, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Boolean, "[boolean]", never, { "message": "message"; }, {}, never, never, false>;
|
|
19
19
|
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class Confirmed implements Validator, OnDestroy {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -19,6 +19,6 @@ export declare class ConfirmedDirective implements Validator, OnDestroy {
|
|
|
19
19
|
private isValid;
|
|
20
20
|
private wireSiblingWatchers;
|
|
21
21
|
ngOnDestroy(): void;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Confirmed, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Confirmed, "[confirmed]", never, { "confirmed": "confirmed"; "message": "message"; }, {}, never, never, false>;
|
|
24
24
|
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class CreditCard implements Validator {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -14,6 +14,6 @@ export declare class CreditCardDirective implements Validator {
|
|
|
14
14
|
constructor(mb: MessageBuilderService, el: ElementRef, utl: UtilService);
|
|
15
15
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
16
16
|
private isValid;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CreditCard, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CreditCard, "[creditCard]", never, { "message": "message"; }, {}, never, never, false>;
|
|
19
19
|
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class Cvv implements Validator {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -14,6 +14,6 @@ export declare class CvvDirective implements Validator {
|
|
|
14
14
|
constructor(mb: MessageBuilderService, el: ElementRef, utl: UtilService);
|
|
15
15
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
16
16
|
private isValid;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Cvv, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Cvv, "[cvv]", never, { "message": "message"; }, {}, never, never, false>;
|
|
19
19
|
}
|
|
@@ -4,7 +4,7 @@ import { UtilService } from '../../services/utils.service';
|
|
|
4
4
|
import { MessageBuilderService } from '../../services/messages-builder.service';
|
|
5
5
|
import { LocalizedMessage } from '../../interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class Date implements Validator {
|
|
8
8
|
private mb;
|
|
9
9
|
private el;
|
|
10
10
|
private utl;
|
|
@@ -15,6 +15,6 @@ export declare class DateDirective implements Validator {
|
|
|
15
15
|
constructor(mb: MessageBuilderService, el: ElementRef, utl: UtilService);
|
|
16
16
|
validate(control: AbstractControl): ValidationErrors | null;
|
|
17
17
|
private isValid;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Date, never>;
|
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Date, "[date]", never, { "date": "date"; "message": "message"; }, {}, never, never, false>;
|
|
20
20
|
}
|