@firestitch/form 12.5.0 → 12.5.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/app/components/form-dialog-actions/form-dialog-actions.component.d.ts +23 -23
- package/app/consts/error-messages.const.d.ts +19 -19
- package/app/directives/button.directive.d.ts +35 -35
- package/app/directives/form/form.directive.d.ts +127 -127
- package/app/directives/form-dialog-close.directive.d.ts +12 -12
- package/app/directives/index.d.ts +2 -2
- package/app/directives/submit-button.directive.d.ts +6 -6
- package/app/directives/validators/compare.directive.d.ts +15 -15
- package/app/directives/validators/control.directive.d.ts +49 -48
- package/app/directives/validators/daterange.directive.d.ts +13 -13
- package/app/directives/validators/email.directive.d.ts +13 -13
- package/app/directives/validators/emails.directive.d.ts +13 -13
- package/app/directives/validators/function.directive.d.ts +15 -15
- package/app/directives/validators/greater.directive.d.ts +13 -13
- package/app/directives/validators/integer.directive.d.ts +13 -13
- package/app/directives/validators/lesser.directive.d.ts +13 -13
- package/app/directives/validators/max.directive.d.ts +13 -13
- package/app/directives/validators/maxlength.directive.d.ts +13 -13
- package/app/directives/validators/min.directive.d.ts +13 -13
- package/app/directives/validators/minlength.directive.d.ts +13 -13
- package/app/directives/validators/no-fs-validators.directive.d.ts +14 -13
- package/app/directives/validators/numeric.directive.d.ts +13 -13
- package/app/directives/validators/pattern.directive.d.ts +13 -13
- package/app/directives/validators/phone.directive.d.ts +13 -13
- package/app/directives/validators/required.directive.d.ts +16 -16
- package/app/directives/validators/url.directive.d.ts +14 -14
- package/app/directives/validators/validate.directive.d.ts +15 -15
- package/app/enums/confirm-result.d.ts +7 -7
- package/app/enums/form-status.d.ts +10 -10
- package/app/fs-form.module.d.ts +37 -37
- package/app/guards/form-deactivate.guard.d.ts +14 -14
- package/app/helpers/confirm-result-continue.d.ts +1 -1
- package/app/helpers/confirm-unsaved.d.ts +5 -5
- package/app/helpers/get-active-route.d.ts +2 -2
- package/app/helpers/get-form-errors.d.ts +2 -2
- package/app/helpers/index.d.ts +2 -2
- package/app/helpers/is-enabled.d.ts +1 -1
- package/app/interfaces/async-validator.d.ts +14 -14
- package/app/interfaces/confirm-config.d.ts +7 -7
- package/app/interfaces/confirm-tab-group.d.ts +10 -10
- package/app/interfaces/index.d.ts +4 -4
- package/app/interfaces/submit-event.d.ts +6 -6
- package/app/interfaces/submitted-event.d.ts +7 -7
- package/app/interfaces/validator.d.ts +13 -13
- package/app/providers/validate-messages.provider.d.ts +25 -25
- package/app/services/fsform.service.d.ts +16 -16
- package/app/validators/validators.d.ts +12 -12
- package/bundles/firestitch-form.umd.js +2862 -2854
- package/bundles/firestitch-form.umd.js.map +1 -1
- package/esm2015/app/components/form-dialog-actions/form-dialog-actions.component.js +91 -91
- package/esm2015/app/consts/error-messages.const.js +19 -19
- package/esm2015/app/directives/button.directive.js +152 -152
- package/esm2015/app/directives/form/form.directive.js +711 -711
- package/esm2015/app/directives/form-dialog-close.directive.js +30 -30
- package/esm2015/app/directives/index.js +2 -2
- package/esm2015/app/directives/submit-button.directive.js +13 -13
- package/esm2015/app/directives/validators/compare.directive.js +48 -48
- package/esm2015/app/directives/validators/control.directive.js +261 -258
- package/esm2015/app/directives/validators/daterange.directive.js +40 -40
- package/esm2015/app/directives/validators/email.directive.js +40 -40
- package/esm2015/app/directives/validators/emails.directive.js +40 -40
- package/esm2015/app/directives/validators/function.directive.js +40 -40
- package/esm2015/app/directives/validators/greater.directive.js +39 -39
- package/esm2015/app/directives/validators/integer.directive.js +40 -40
- package/esm2015/app/directives/validators/lesser.directive.js +39 -39
- package/esm2015/app/directives/validators/max.directive.js +35 -35
- package/esm2015/app/directives/validators/maxlength.directive.js +34 -34
- package/esm2015/app/directives/validators/min.directive.js +35 -35
- package/esm2015/app/directives/validators/minlength.directive.js +34 -34
- package/esm2015/app/directives/validators/no-fs-validators.directive.js +52 -47
- package/esm2015/app/directives/validators/numeric.directive.js +40 -40
- package/esm2015/app/directives/validators/pattern.directive.js +34 -34
- package/esm2015/app/directives/validators/phone.directive.js +40 -40
- package/esm2015/app/directives/validators/required.directive.js +70 -70
- package/esm2015/app/directives/validators/url.directive.js +46 -46
- package/esm2015/app/directives/validators/validate.directive.js +42 -42
- package/esm2015/app/enums/confirm-result.js +8 -8
- package/esm2015/app/enums/form-status.js +11 -11
- package/esm2015/app/fs-form.module.js +180 -180
- package/esm2015/app/guards/form-deactivate.guard.js +44 -44
- package/esm2015/app/helpers/confirm-result-continue.js +4 -4
- package/esm2015/app/helpers/confirm-unsaved.js +71 -71
- package/esm2015/app/helpers/get-active-route.js +6 -6
- package/esm2015/app/helpers/get-form-errors.js +24 -24
- package/esm2015/app/helpers/index.js +2 -2
- package/esm2015/app/helpers/is-enabled.js +3 -3
- package/esm2015/app/interfaces/async-validator.js +1 -1
- package/esm2015/app/interfaces/confirm-config.js +1 -1
- package/esm2015/app/interfaces/confirm-tab-group.js +1 -1
- package/esm2015/app/interfaces/index.js +4 -4
- package/esm2015/app/interfaces/submit-event.js +1 -1
- package/esm2015/app/interfaces/submitted-event.js +1 -1
- package/esm2015/app/interfaces/validator.js +1 -1
- package/esm2015/app/providers/validate-messages.provider.js +10 -10
- package/esm2015/app/services/fsform.service.js +39 -39
- package/esm2015/app/validators/validators.js +96 -96
- package/esm2015/firestitch-form.js +4 -4
- package/esm2015/public_api.js +36 -36
- package/fesm2015/firestitch-form.js +2293 -2285
- package/fesm2015/firestitch-form.js.map +1 -1
- package/firestitch-form.d.ts +5 -5
- package/package.json +1 -1
- package/public_api.d.ts +34 -34
- package/styles.scss +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormEmailDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormEmail: any;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormEmailDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormEmailDirective, "[fsFormEmail]", never, { "fsFormEmail": "fsFormEmail"; "validationMessage": "fsFormEmailMessage"; }, {}, never>;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormEmailDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormEmail: any;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormEmailDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormEmailDirective, "[fsFormEmail]", never, { "fsFormEmail": "fsFormEmail"; "validationMessage": "fsFormEmailMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormEmailsDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormEmails: any;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormEmailsDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormEmailsDirective, "[fsFormEmails]", never, { "fsFormEmails": "fsFormEmails"; "validationMessage": "fsFormEmailsMessage"; }, {}, never>;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormEmailsDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormEmails: any;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormEmailsDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormEmailsDirective, "[fsFormEmails]", never, { "fsFormEmails": "fsFormEmails"; "validationMessage": "fsFormEmailsMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { FsControlDirective } from './control.directive';
|
|
5
|
-
import { FsAsyncValidator } from '../../interfaces/async-validator';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class FsFormFunctionDirective extends FsControlDirective implements OnChanges, FsAsyncValidator {
|
|
8
|
-
fsFormFunction: any;
|
|
9
|
-
fsFormFunctionData: any;
|
|
10
|
-
validateOnSubmit: boolean;
|
|
11
|
-
ngOnChanges(): void;
|
|
12
|
-
validateAsync(control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormFunctionDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormFunctionDirective, "[fsFormFunction]", never, { "fsFormFunction": "fsFormFunction"; "fsFormFunctionData": "fsFormFunctionData"; "validateOnSubmit": "validateOnSubmit"; }, {}, never>;
|
|
15
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { FsControlDirective } from './control.directive';
|
|
5
|
+
import { FsAsyncValidator } from '../../interfaces/async-validator';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class FsFormFunctionDirective extends FsControlDirective implements OnChanges, FsAsyncValidator {
|
|
8
|
+
fsFormFunction: any;
|
|
9
|
+
fsFormFunctionData: any;
|
|
10
|
+
validateOnSubmit: boolean;
|
|
11
|
+
ngOnChanges(): void;
|
|
12
|
+
validateAsync(control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormFunctionDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormFunctionDirective, "[fsFormFunction]", never, { "fsFormFunction": "fsFormFunction"; "fsFormFunctionData": "fsFormFunctionData"; "validateOnSubmit": "validateOnSubmit"; }, {}, never>;
|
|
15
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormGreaterDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormGreater: any;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormGreaterDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormGreaterDirective, "[fsFormGreater]", never, { "fsFormGreater": "fsFormGreater"; "validationMessage": "fsFormGreaterMessage"; }, {}, never>;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormGreaterDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormGreater: any;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormGreaterDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormGreaterDirective, "[fsFormGreater]", never, { "fsFormGreater": "fsFormGreater"; "validationMessage": "fsFormGreaterMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormIntegerDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormInteger: any;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormIntegerDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormIntegerDirective, "[fsFormInteger]", never, { "fsFormInteger": "fsFormInteger"; "validationMessage": "fsFormIntegerMessage"; }, {}, never>;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormIntegerDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormInteger: any;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormIntegerDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormIntegerDirective, "[fsFormInteger]", never, { "fsFormInteger": "fsFormInteger"; "validationMessage": "fsFormIntegerMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormLesserDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormLesser: any;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormLesserDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormLesserDirective, "[fsFormLesser]", never, { "fsFormLesser": "fsFormLesser"; "validationMessage": "fsFormLesserMessage"; }, {}, never>;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormLesserDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormLesser: any;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormLesserDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormLesserDirective, "[fsFormLesser]", never, { "fsFormLesser": "fsFormLesser"; "validationMessage": "fsFormLesserMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormMaxDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormMax: number;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormMaxDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormMaxDirective, "[fsFormMax]", never, { "fsFormMax": "fsFormMax"; "validationMessage": "fsFormMaxMessage"; }, {}, never>;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormMaxDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormMax: number;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormMaxDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormMaxDirective, "[fsFormMax]", never, { "fsFormMax": "fsFormMax"; "validationMessage": "fsFormMaxMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormMaxLengthDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormMaxLength: number;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormMaxLengthDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormMaxLengthDirective, "[fsFormMaxLength]", never, { "fsFormMaxLength": "fsFormMaxLength"; "validationMessage": "fsFormMaxLengthMessage"; }, {}, never>;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormMaxLengthDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormMaxLength: number;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormMaxLengthDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormMaxLengthDirective, "[fsFormMaxLength]", never, { "fsFormMaxLength": "fsFormMaxLength"; "validationMessage": "fsFormMaxLengthMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormMinDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormMin: any;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormMinDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormMinDirective, "[fsFormMin]", never, { "fsFormMin": "fsFormMin"; "validationMessage": "fsFormMinMessage"; }, {}, never>;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormMinDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormMin: any;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormMinDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormMinDirective, "[fsFormMin]", never, { "fsFormMin": "fsFormMin"; "validationMessage": "fsFormMinMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormMinLengthDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormMinLength: number;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormMinLengthDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormMinLengthDirective, "[fsFormMinLength]", never, { "fsFormMinLength": "fsFormMinLength"; "validationMessage": "fsFormMinLengthMessage"; }, {}, never>;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormMinLengthDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormMinLength: number;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormMinLengthDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormMinLengthDirective, "[fsFormMinLength]", never, { "fsFormMinLength": "fsFormMinLength"; "validationMessage": "fsFormMinLengthMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { FsControlDirective } from './control.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* This directive required for cases when we have custom Control like <fs-phone-field> but without any of our validators applied
|
|
6
|
-
*
|
|
7
|
-
* This directive required for automatic validation messages
|
|
8
|
-
*/
|
|
9
|
-
export declare class FsFormNoFsValidatorsDirective extends FsControlDirective implements OnChanges {
|
|
10
|
-
ngOnChanges(): void;
|
|
11
|
-
|
|
12
|
-
static
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { FsControlDirective } from './control.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* This directive required for cases when we have custom Control like <fs-phone-field> but without any of our validators applied
|
|
6
|
+
*
|
|
7
|
+
* This directive required for automatic validation messages
|
|
8
|
+
*/
|
|
9
|
+
export declare class FsFormNoFsValidatorsDirective extends FsControlDirective implements OnChanges {
|
|
10
|
+
ngOnChanges(): void;
|
|
11
|
+
protected _subscribeToStatusChagnes(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormNoFsValidatorsDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormNoFsValidatorsDirective, "[ngModel]:not([required]):not([fsFormRequired]):not([fsFormCompare]):not([fsFormDateRange]):not([fsFormEmail]):not([fsFormEmails]):not([fsFormFunction]):not([fsFormGreater]):not([fsFormInteger]):not([fsFormLesser]):not([fsFormMax]):not([fsFormMaxLength]):not([fsFormMin]):not([fsFormMinLength]):not([fsFormNumeric]):not([fsFormPattern]):not([fsFormPhone]):not([fsFormUrl]):not([validate])", never, {}, {}, never>;
|
|
14
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormNumericDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormNumeric: any;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormNumericDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormNumericDirective, "[fsFormNumeric]", never, { "fsFormNumeric": "fsFormNumeric"; "validationMessage": "fsFormNumericMessage"; }, {}, never>;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormNumericDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormNumeric: any;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormNumericDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormNumericDirective, "[fsFormNumeric]", never, { "fsFormNumeric": "fsFormNumeric"; "validationMessage": "fsFormNumericMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormPatternDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormPattern: RegExp | string;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormPatternDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormPatternDirective, "[fsFormPattern]", never, { "fsFormPattern": "fsFormPattern"; "validationMessage": "fsFormPatternMessage"; }, {}, never>;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormPatternDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormPattern: RegExp | string;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormPatternDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormPatternDirective, "[fsFormPattern]", never, { "fsFormPattern": "fsFormPattern"; "validationMessage": "fsFormPatternMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormPhoneDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormPhone: any;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormPhoneDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormPhoneDirective, "[fsFormPhone]", never, { "fsFormPhone": "fsFormPhone"; "validationMessage": "fsFormPhoneMessage"; }, {}, never>;
|
|
13
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormPhoneDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormPhone: any;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormPhoneDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormPhoneDirective, "[fsFormPhone]", never, { "fsFormPhone": "fsFormPhone"; "validationMessage": "fsFormPhoneMessage"; }, {}, never>;
|
|
13
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormRequiredDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
required: boolean;
|
|
8
|
-
set setFsFormRequired(value: any);
|
|
9
|
-
set setRequired(value: any);
|
|
10
|
-
set validationMessage(value: string);
|
|
11
|
-
ngOnChanges(): void;
|
|
12
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
13
|
-
protected render(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormRequiredDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormRequiredDirective, "[fsFormRequired],[ngModel][required]", never, { "setFsFormRequired": "fsFormRequired"; "setRequired": "required"; "validationMessage": "fsFormRequiredMessage"; }, {}, never>;
|
|
16
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormRequiredDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
required: boolean;
|
|
8
|
+
set setFsFormRequired(value: any);
|
|
9
|
+
set setRequired(value: any);
|
|
10
|
+
set validationMessage(value: string);
|
|
11
|
+
ngOnChanges(): void;
|
|
12
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
13
|
+
protected render(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormRequiredDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormRequiredDirective, "[fsFormRequired],[ngModel][required]", never, { "setFsFormRequired": "fsFormRequired"; "setRequired": "required"; "validationMessage": "fsFormRequiredMessage"; }, {}, never>;
|
|
16
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { FsControlDirective } from './control.directive';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormUrlDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormUrl: any;
|
|
8
|
-
fsFormUrlProtocol: boolean;
|
|
9
|
-
set validationMessage(value: string);
|
|
10
|
-
ngOnChanges(): void;
|
|
11
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormUrlDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormUrlDirective, "[fsFormUrl]", never, { "fsFormUrl": "fsFormUrl"; "fsFormUrlProtocol": "fsFormUrlProtocol"; "validationMessage": "fsFormUrlMessage"; }, {}, never>;
|
|
14
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { FsControlDirective } from './control.directive';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormUrlDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormUrl: any;
|
|
8
|
+
fsFormUrlProtocol: boolean;
|
|
9
|
+
set validationMessage(value: string);
|
|
10
|
+
ngOnChanges(): void;
|
|
11
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormUrlDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormUrlDirective, "[fsFormUrl]", never, { "fsFormUrl": "fsFormUrl"; "fsFormUrlProtocol": "fsFormUrlProtocol"; "validationMessage": "fsFormUrlMessage"; }, {}, never>;
|
|
14
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { FsControlDirective } from './control.directive';
|
|
5
|
-
import { FsAsyncValidator } from '../../interfaces/async-validator';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class FsFormValidateDirective extends FsControlDirective implements OnChanges, FsAsyncValidator {
|
|
8
|
-
validateFn: any;
|
|
9
|
-
validateFnData: any;
|
|
10
|
-
validateOnSubmit: boolean;
|
|
11
|
-
ngOnChanges(): void;
|
|
12
|
-
validateAsync(control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormValidateDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormValidateDirective, "[validate]", never, { "validateFn": "validate"; "validateFnData": "validateData"; "validateOnSubmit": "validateOnSubmit"; }, {}, never>;
|
|
15
|
-
}
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { FsControlDirective } from './control.directive';
|
|
5
|
+
import { FsAsyncValidator } from '../../interfaces/async-validator';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class FsFormValidateDirective extends FsControlDirective implements OnChanges, FsAsyncValidator {
|
|
8
|
+
validateFn: any;
|
|
9
|
+
validateFnData: any;
|
|
10
|
+
validateOnSubmit: boolean;
|
|
11
|
+
ngOnChanges(): void;
|
|
12
|
+
validateAsync(control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormValidateDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormValidateDirective, "[validate]", never, { "validateFn": "validate"; "validateFnData": "validateData"; "validateOnSubmit": "validateOnSubmit"; }, {}, never>;
|
|
15
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare enum ConfirmResult {
|
|
2
|
-
Save = "save",
|
|
3
|
-
Discard = "discard",
|
|
4
|
-
Review = "review",
|
|
5
|
-
Invalid = "invalid",
|
|
6
|
-
Pristine = "pristine"
|
|
7
|
-
}
|
|
1
|
+
export declare enum ConfirmResult {
|
|
2
|
+
Save = "save",
|
|
3
|
+
Discard = "discard",
|
|
4
|
+
Review = "review",
|
|
5
|
+
Invalid = "invalid",
|
|
6
|
+
Pristine = "pristine"
|
|
7
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare enum FormStatus {
|
|
2
|
-
Valid = "valid",
|
|
3
|
-
Invalid = "invalid",
|
|
4
|
-
Validating = "validating",
|
|
5
|
-
Submitting = "submitting",
|
|
6
|
-
Submitted = "submitted",
|
|
7
|
-
Error = "error",
|
|
8
|
-
Success = "success",
|
|
9
|
-
Completing = "completing"
|
|
10
|
-
}
|
|
1
|
+
export declare enum FormStatus {
|
|
2
|
+
Valid = "valid",
|
|
3
|
+
Invalid = "invalid",
|
|
4
|
+
Validating = "validating",
|
|
5
|
+
Submitting = "submitting",
|
|
6
|
+
Submitted = "submitted",
|
|
7
|
+
Error = "error",
|
|
8
|
+
Success = "success",
|
|
9
|
+
Completing = "completing"
|
|
10
|
+
}
|