@firestitch/form 12.4.10 → 12.4.11
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 +122 -122
- 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 +48 -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 +13 -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 +2836 -2839
- 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 +695 -695
- 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 +262 -265
- 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 +46 -46
- 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 +2273 -2276
- 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
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { FsFormDirective } from '../../directives/form/form.directive';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FsFormDialogActionsComponent implements OnInit, OnDestroy {
|
|
6
|
-
private _form;
|
|
7
|
-
private _dialogRef;
|
|
8
|
-
private _cdRef;
|
|
9
|
-
save: boolean;
|
|
10
|
-
create: boolean;
|
|
11
|
-
close: boolean;
|
|
12
|
-
done: boolean;
|
|
13
|
-
closeData: any;
|
|
14
|
-
name: string;
|
|
15
|
-
dirty: boolean;
|
|
16
|
-
private _destroy$;
|
|
17
|
-
constructor(_form: FsFormDirective, _dialogRef: MatDialogRef<any>, _cdRef: ChangeDetectorRef);
|
|
18
|
-
ngOnInit(): void;
|
|
19
|
-
closeClick(): void;
|
|
20
|
-
ngOnDestroy(): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDialogActionsComponent, [{ optional: true; }, { optional: true; }, null]>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsFormDialogActionsComponent, "fs-form-dialog-actions", never, { "save": "save"; "create": "create"; "close": "close"; "done": "done"; "closeData": "closeData"; "name": "name"; }, {}, never, ["*"]>;
|
|
23
|
-
}
|
|
1
|
+
import { OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { FsFormDirective } from '../../directives/form/form.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FsFormDialogActionsComponent implements OnInit, OnDestroy {
|
|
6
|
+
private _form;
|
|
7
|
+
private _dialogRef;
|
|
8
|
+
private _cdRef;
|
|
9
|
+
save: boolean;
|
|
10
|
+
create: boolean;
|
|
11
|
+
close: boolean;
|
|
12
|
+
done: boolean;
|
|
13
|
+
closeData: any;
|
|
14
|
+
name: string;
|
|
15
|
+
dirty: boolean;
|
|
16
|
+
private _destroy$;
|
|
17
|
+
constructor(_form: FsFormDirective, _dialogRef: MatDialogRef<any>, _cdRef: ChangeDetectorRef);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
closeClick(): void;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDialogActionsComponent, [{ optional: true; }, { optional: true; }, null]>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsFormDialogActionsComponent, "fs-form-dialog-actions", never, { "save": "save"; "create": "create"; "close": "close"; "done": "done"; "closeData": "closeData"; "name": "name"; }, {}, never, ["*"]>;
|
|
23
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export declare const ERROR_MESSAGES: {
|
|
2
|
-
required: string;
|
|
3
|
-
email: string;
|
|
4
|
-
emails: string;
|
|
5
|
-
phone: string;
|
|
6
|
-
numeric: string;
|
|
7
|
-
integer: string;
|
|
8
|
-
min: string;
|
|
9
|
-
max: string;
|
|
10
|
-
minlength: string;
|
|
11
|
-
maxlength: string;
|
|
12
|
-
compare: string;
|
|
13
|
-
pattern: string;
|
|
14
|
-
dateRange: string;
|
|
15
|
-
url: string;
|
|
16
|
-
urlProtocol: string;
|
|
17
|
-
greater: string;
|
|
18
|
-
lesser: string;
|
|
19
|
-
};
|
|
1
|
+
export declare const ERROR_MESSAGES: {
|
|
2
|
+
required: string;
|
|
3
|
+
email: string;
|
|
4
|
+
emails: string;
|
|
5
|
+
phone: string;
|
|
6
|
+
numeric: string;
|
|
7
|
+
integer: string;
|
|
8
|
+
min: string;
|
|
9
|
+
max: string;
|
|
10
|
+
minlength: string;
|
|
11
|
+
maxlength: string;
|
|
12
|
+
compare: string;
|
|
13
|
+
pattern: string;
|
|
14
|
+
dateRange: string;
|
|
15
|
+
url: string;
|
|
16
|
+
urlProtocol: string;
|
|
17
|
+
greater: string;
|
|
18
|
+
lesser: string;
|
|
19
|
+
};
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { OnInit, ElementRef, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { MatButton } from '@angular/material/button';
|
|
3
|
-
import { FsFormDirective } from './form/form.directive';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FsButtonDirective implements OnInit, OnDestroy {
|
|
6
|
-
private _matButton;
|
|
7
|
-
private _form;
|
|
8
|
-
private _elementRef;
|
|
9
|
-
private _cdRef;
|
|
10
|
-
name: any;
|
|
11
|
-
dirtySubmit: boolean;
|
|
12
|
-
form: FsFormDirective;
|
|
13
|
-
transitionStyle: any;
|
|
14
|
-
active: boolean;
|
|
15
|
-
submit: boolean;
|
|
16
|
-
private _previousDisabled;
|
|
17
|
-
private _destroy$;
|
|
18
|
-
constructor(_matButton: MatButton, _form: FsFormDirective, _elementRef: ElementRef, _cdRef: ChangeDetectorRef);
|
|
19
|
-
ngOnInit(): void;
|
|
20
|
-
disable(): void;
|
|
21
|
-
enable(): void;
|
|
22
|
-
process(): void;
|
|
23
|
-
success(): void;
|
|
24
|
-
error(): void;
|
|
25
|
-
setClass(cls: any): void;
|
|
26
|
-
get element(): any;
|
|
27
|
-
resetActive(): void;
|
|
28
|
-
reset(): void;
|
|
29
|
-
ngOnDestroy(): void;
|
|
30
|
-
private _disableShadowAnimation;
|
|
31
|
-
private _resetClass;
|
|
32
|
-
private _getSvg;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsButtonDirective, [{ optional: true; host: true; }, { optional: true; }, null, null]>;
|
|
34
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsButtonDirective, "[mat-raised-button],[mat-button],[mat-flat-button],[mat-stroked-button]", never, { "name": "name"; "dirtySubmit": "dirtySubmit"; "form": "form"; }, {}, never>;
|
|
35
|
-
}
|
|
1
|
+
import { OnInit, ElementRef, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { MatButton } from '@angular/material/button';
|
|
3
|
+
import { FsFormDirective } from './form/form.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FsButtonDirective implements OnInit, OnDestroy {
|
|
6
|
+
private _matButton;
|
|
7
|
+
private _form;
|
|
8
|
+
private _elementRef;
|
|
9
|
+
private _cdRef;
|
|
10
|
+
name: any;
|
|
11
|
+
dirtySubmit: boolean;
|
|
12
|
+
form: FsFormDirective;
|
|
13
|
+
transitionStyle: any;
|
|
14
|
+
active: boolean;
|
|
15
|
+
submit: boolean;
|
|
16
|
+
private _previousDisabled;
|
|
17
|
+
private _destroy$;
|
|
18
|
+
constructor(_matButton: MatButton, _form: FsFormDirective, _elementRef: ElementRef, _cdRef: ChangeDetectorRef);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
disable(): void;
|
|
21
|
+
enable(): void;
|
|
22
|
+
process(): void;
|
|
23
|
+
success(): void;
|
|
24
|
+
error(): void;
|
|
25
|
+
setClass(cls: any): void;
|
|
26
|
+
get element(): any;
|
|
27
|
+
resetActive(): void;
|
|
28
|
+
reset(): void;
|
|
29
|
+
ngOnDestroy(): void;
|
|
30
|
+
private _disableShadowAnimation;
|
|
31
|
+
private _resetClass;
|
|
32
|
+
private _getSvg;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsButtonDirective, [{ optional: true; host: true; }, { optional: true; }, null, null]>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsButtonDirective, "[mat-raised-button],[mat-button],[mat-flat-button],[mat-stroked-button]", never, { "name": "name"; "dirtySubmit": "dirtySubmit"; "form": "form"; }, {}, never>;
|
|
35
|
+
}
|
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
import { AfterContentInit, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { NgForm } from '@angular/forms';
|
|
3
|
-
import { ActivatedRoute } from '@angular/router';
|
|
4
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
5
|
-
import { MatTabGroup } from '@angular/material/tabs';
|
|
6
|
-
import { FsMessage } from '@firestitch/message';
|
|
7
|
-
import { FsPrompt } from '@firestitch/prompt';
|
|
8
|
-
import { DrawerRef } from '@firestitch/drawer';
|
|
9
|
-
import { Observable } from 'rxjs';
|
|
10
|
-
import { FsFormDialogCloseDirective } from '../form-dialog-close.directive';
|
|
11
|
-
import { FsButtonDirective } from '../button.directive';
|
|
12
|
-
import { ConfirmConfig } from './../../interfaces';
|
|
13
|
-
import { ConfirmResult } from './../../enums/confirm-result';
|
|
14
|
-
import { FsForm } from '../../services/fsform.service';
|
|
15
|
-
import { SubmitEvent } from './../../interfaces/submit-event';
|
|
16
|
-
import * as i0 from "@angular/core";
|
|
17
|
-
export declare class FsFormDirective implements OnInit, OnDestroy, AfterContentInit, OnChanges {
|
|
18
|
-
ngForm: NgForm;
|
|
19
|
-
private _form;
|
|
20
|
-
private _element;
|
|
21
|
-
private _message;
|
|
22
|
-
private _prompt;
|
|
23
|
-
private _ngZone;
|
|
24
|
-
private _dialogRef;
|
|
25
|
-
private _drawerRef;
|
|
26
|
-
private _route;
|
|
27
|
-
wrapperSelector: string;
|
|
28
|
-
messageSelector: string;
|
|
29
|
-
hintSelector: string;
|
|
30
|
-
labelSelector: string;
|
|
31
|
-
autocomplete: boolean;
|
|
32
|
-
shortcuts: boolean;
|
|
33
|
-
confirm: ConfirmConfig | boolean;
|
|
34
|
-
confirmDialog: boolean;
|
|
35
|
-
confirmDrawer: boolean;
|
|
36
|
-
confirmBrowser: boolean;
|
|
37
|
-
confirmTabs: boolean;
|
|
38
|
-
dirtySubmitButton: boolean;
|
|
39
|
-
submit: (event: SubmitEvent) => Observable<any>;
|
|
40
|
-
successDelay: number;
|
|
41
|
-
errorDelay: number;
|
|
42
|
-
tabGroup: MatTabGroup;
|
|
43
|
-
deactivationGuard: boolean;
|
|
44
|
-
submitEvent: EventEmitter<SubmitEvent>;
|
|
45
|
-
invalid: EventEmitter<SubmitEvent>;
|
|
46
|
-
valid: EventEmitter<SubmitEvent>;
|
|
47
|
-
submitted: EventEmitter<SubmitEvent>;
|
|
48
|
-
reseted: EventEmitter<SubmitEvent>;
|
|
49
|
-
cleared: EventEmitter<SubmitEvent>;
|
|
50
|
-
fsFormClass: boolean;
|
|
51
|
-
formDialogClose: QueryList<FsFormDialogCloseDirective>;
|
|
52
|
-
private _tabGroups;
|
|
53
|
-
private _buttons;
|
|
54
|
-
private _registerControl;
|
|
55
|
-
private _activeSubmitButton;
|
|
56
|
-
private _dialogBackdropEscape;
|
|
57
|
-
private _snapshot;
|
|
58
|
-
private _activatedRouteConfig;
|
|
59
|
-
private _status$;
|
|
60
|
-
private _destroy$;
|
|
61
|
-
private _confirmed;
|
|
62
|
-
constructor(ngForm: NgForm, _form: FsForm, _element: ElementRef, _message: FsMessage, _prompt: FsPrompt, _ngZone: NgZone, _dialogRef: MatDialogRef<any>, _drawerRef: DrawerRef<any>, _route: ActivatedRoute);
|
|
63
|
-
get submitting(): boolean;
|
|
64
|
-
get validating(): boolean;
|
|
65
|
-
get completing(): boolean;
|
|
66
|
-
private get _submitEvent();
|
|
67
|
-
private get _formValidState$();
|
|
68
|
-
private get _formInvalidState$();
|
|
69
|
-
private get _submitter();
|
|
70
|
-
ngOnInit(): void;
|
|
71
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
72
|
-
ngAfterContentInit(): void;
|
|
73
|
-
ngOnDestroy(): void;
|
|
74
|
-
createSnapshot(): void;
|
|
75
|
-
getSnapshot(): {
|
|
76
|
-
[key: string]: any;
|
|
77
|
-
};
|
|
78
|
-
reset(): void;
|
|
79
|
-
clear(): void;
|
|
80
|
-
dirty(): void;
|
|
81
|
-
triggerSubmit(options?: {
|
|
82
|
-
confirmed: boolean;
|
|
83
|
-
}): void;
|
|
84
|
-
triggerConfirm(): Observable<ConfirmResult>;
|
|
85
|
-
enable(): void;
|
|
86
|
-
disable(): void;
|
|
87
|
-
addButton(button: FsButtonDirective): void;
|
|
88
|
-
removeButton(button: FsButtonDirective): void;
|
|
89
|
-
private _listenSubmit;
|
|
90
|
-
validate(): void;
|
|
91
|
-
private _listenFormStatus;
|
|
92
|
-
private _listenWindowClose;
|
|
93
|
-
private _listenHotKeys;
|
|
94
|
-
private _formClose;
|
|
95
|
-
private _registerDialogClose;
|
|
96
|
-
private _getActiveSubmitButton;
|
|
97
|
-
private _elementInForm;
|
|
98
|
-
private _completeSubmit;
|
|
99
|
-
private _resetButtons;
|
|
100
|
-
private _resetActiveButtons;
|
|
101
|
-
private _registerConfirm;
|
|
102
|
-
private _registerDrawerClose;
|
|
103
|
-
private _registerConfirmDrawerClose;
|
|
104
|
-
private _registerConfirmTabs;
|
|
105
|
-
registerConfirmTabGroups(tabGroups: MatTabGroup[]): void;
|
|
106
|
-
registerConfirmTabGroup(tabGroup: MatTabGroup): void;
|
|
107
|
-
private _registerConfirmDialogClose;
|
|
108
|
-
private _registerConfirmDialogBackdropEscape;
|
|
109
|
-
private _registerAutocomplete;
|
|
110
|
-
private _registerDirtySubmitButton;
|
|
111
|
-
private _updateDirtySubmitButtons;
|
|
112
|
-
private _broadcastSubmittingEvents;
|
|
113
|
-
private _broadcasValidatingEvents;
|
|
114
|
-
private _setupActiveSubmitButton;
|
|
115
|
-
private _disableButtons;
|
|
116
|
-
private _waitUntilStatusPending;
|
|
117
|
-
private _handleError;
|
|
118
|
-
private _registerCanDeactivateGuard;
|
|
119
|
-
private _cleanupCanDeactivate;
|
|
120
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDirective, [null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
121
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormDirective, "[fsForm]", never, { "wrapperSelector": "wrapperSelector"; "messageSelector": "messageSelector"; "hintSelector": "hintSelector"; "labelSelector": "labelSelector"; "autocomplete": "autocomplete"; "shortcuts": "shortcuts"; "confirm": "confirm"; "confirmDialog": "confirmDialog"; "confirmDrawer": "confirmDrawer"; "confirmBrowser": "confirmBrowser"; "confirmTabs": "confirmTabs"; "dirtySubmitButton": "dirtySubmitButton"; "submit": "submit"; "successDelay": "successDelay"; "errorDelay": "errorDelay"; "tabGroup": "tabGroup"; "deactivationGuard": "deactivationGuard"; }, { "submitEvent": "fsForm"; "invalid": "invalid"; "valid": "valid"; "submitted": "submitted"; "reseted": "reseted"; "cleared": "cleared"; }, ["formDialogClose", "_tabGroups"]>;
|
|
122
|
-
}
|
|
1
|
+
import { AfterContentInit, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, QueryList, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { NgForm } from '@angular/forms';
|
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
|
4
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
5
|
+
import { MatTabGroup } from '@angular/material/tabs';
|
|
6
|
+
import { FsMessage } from '@firestitch/message';
|
|
7
|
+
import { FsPrompt } from '@firestitch/prompt';
|
|
8
|
+
import { DrawerRef } from '@firestitch/drawer';
|
|
9
|
+
import { Observable } from 'rxjs';
|
|
10
|
+
import { FsFormDialogCloseDirective } from '../form-dialog-close.directive';
|
|
11
|
+
import { FsButtonDirective } from '../button.directive';
|
|
12
|
+
import { ConfirmConfig } from './../../interfaces';
|
|
13
|
+
import { ConfirmResult } from './../../enums/confirm-result';
|
|
14
|
+
import { FsForm } from '../../services/fsform.service';
|
|
15
|
+
import { SubmitEvent } from './../../interfaces/submit-event';
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export declare class FsFormDirective implements OnInit, OnDestroy, AfterContentInit, OnChanges {
|
|
18
|
+
ngForm: NgForm;
|
|
19
|
+
private _form;
|
|
20
|
+
private _element;
|
|
21
|
+
private _message;
|
|
22
|
+
private _prompt;
|
|
23
|
+
private _ngZone;
|
|
24
|
+
private _dialogRef;
|
|
25
|
+
private _drawerRef;
|
|
26
|
+
private _route;
|
|
27
|
+
wrapperSelector: string;
|
|
28
|
+
messageSelector: string;
|
|
29
|
+
hintSelector: string;
|
|
30
|
+
labelSelector: string;
|
|
31
|
+
autocomplete: boolean;
|
|
32
|
+
shortcuts: boolean;
|
|
33
|
+
confirm: ConfirmConfig | boolean;
|
|
34
|
+
confirmDialog: boolean;
|
|
35
|
+
confirmDrawer: boolean;
|
|
36
|
+
confirmBrowser: boolean;
|
|
37
|
+
confirmTabs: boolean;
|
|
38
|
+
dirtySubmitButton: boolean;
|
|
39
|
+
submit: (event: SubmitEvent) => Observable<any>;
|
|
40
|
+
successDelay: number;
|
|
41
|
+
errorDelay: number;
|
|
42
|
+
tabGroup: MatTabGroup;
|
|
43
|
+
deactivationGuard: boolean;
|
|
44
|
+
submitEvent: EventEmitter<SubmitEvent>;
|
|
45
|
+
invalid: EventEmitter<SubmitEvent>;
|
|
46
|
+
valid: EventEmitter<SubmitEvent>;
|
|
47
|
+
submitted: EventEmitter<SubmitEvent>;
|
|
48
|
+
reseted: EventEmitter<SubmitEvent>;
|
|
49
|
+
cleared: EventEmitter<SubmitEvent>;
|
|
50
|
+
fsFormClass: boolean;
|
|
51
|
+
formDialogClose: QueryList<FsFormDialogCloseDirective>;
|
|
52
|
+
private _tabGroups;
|
|
53
|
+
private _buttons;
|
|
54
|
+
private _registerControl;
|
|
55
|
+
private _activeSubmitButton;
|
|
56
|
+
private _dialogBackdropEscape;
|
|
57
|
+
private _snapshot;
|
|
58
|
+
private _activatedRouteConfig;
|
|
59
|
+
private _status$;
|
|
60
|
+
private _destroy$;
|
|
61
|
+
private _confirmed;
|
|
62
|
+
constructor(ngForm: NgForm, _form: FsForm, _element: ElementRef, _message: FsMessage, _prompt: FsPrompt, _ngZone: NgZone, _dialogRef: MatDialogRef<any>, _drawerRef: DrawerRef<any>, _route: ActivatedRoute);
|
|
63
|
+
get submitting(): boolean;
|
|
64
|
+
get validating(): boolean;
|
|
65
|
+
get completing(): boolean;
|
|
66
|
+
private get _submitEvent();
|
|
67
|
+
private get _formValidState$();
|
|
68
|
+
private get _formInvalidState$();
|
|
69
|
+
private get _submitter();
|
|
70
|
+
ngOnInit(): void;
|
|
71
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
72
|
+
ngAfterContentInit(): void;
|
|
73
|
+
ngOnDestroy(): void;
|
|
74
|
+
createSnapshot(): void;
|
|
75
|
+
getSnapshot(): {
|
|
76
|
+
[key: string]: any;
|
|
77
|
+
};
|
|
78
|
+
reset(): void;
|
|
79
|
+
clear(): void;
|
|
80
|
+
dirty(): void;
|
|
81
|
+
triggerSubmit(options?: {
|
|
82
|
+
confirmed: boolean;
|
|
83
|
+
}): void;
|
|
84
|
+
triggerConfirm(): Observable<ConfirmResult>;
|
|
85
|
+
enable(): void;
|
|
86
|
+
disable(): void;
|
|
87
|
+
addButton(button: FsButtonDirective): void;
|
|
88
|
+
removeButton(button: FsButtonDirective): void;
|
|
89
|
+
private _listenSubmit;
|
|
90
|
+
validate(): void;
|
|
91
|
+
private _listenFormStatus;
|
|
92
|
+
private _listenWindowClose;
|
|
93
|
+
private _listenHotKeys;
|
|
94
|
+
private _formClose;
|
|
95
|
+
private _registerDialogClose;
|
|
96
|
+
private _getActiveSubmitButton;
|
|
97
|
+
private _elementInForm;
|
|
98
|
+
private _completeSubmit;
|
|
99
|
+
private _resetButtons;
|
|
100
|
+
private _resetActiveButtons;
|
|
101
|
+
private _registerConfirm;
|
|
102
|
+
private _registerDrawerClose;
|
|
103
|
+
private _registerConfirmDrawerClose;
|
|
104
|
+
private _registerConfirmTabs;
|
|
105
|
+
registerConfirmTabGroups(tabGroups: MatTabGroup[]): void;
|
|
106
|
+
registerConfirmTabGroup(tabGroup: MatTabGroup): void;
|
|
107
|
+
private _registerConfirmDialogClose;
|
|
108
|
+
private _registerConfirmDialogBackdropEscape;
|
|
109
|
+
private _registerAutocomplete;
|
|
110
|
+
private _registerDirtySubmitButton;
|
|
111
|
+
private _updateDirtySubmitButtons;
|
|
112
|
+
private _broadcastSubmittingEvents;
|
|
113
|
+
private _broadcasValidatingEvents;
|
|
114
|
+
private _setupActiveSubmitButton;
|
|
115
|
+
private _disableButtons;
|
|
116
|
+
private _waitUntilStatusPending;
|
|
117
|
+
private _handleError;
|
|
118
|
+
private _registerCanDeactivateGuard;
|
|
119
|
+
private _cleanupCanDeactivate;
|
|
120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDirective, [null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
121
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormDirective, "[fsForm]", never, { "wrapperSelector": "wrapperSelector"; "messageSelector": "messageSelector"; "hintSelector": "hintSelector"; "labelSelector": "labelSelector"; "autocomplete": "autocomplete"; "shortcuts": "shortcuts"; "confirm": "confirm"; "confirmDialog": "confirmDialog"; "confirmDrawer": "confirmDrawer"; "confirmBrowser": "confirmBrowser"; "confirmTabs": "confirmTabs"; "dirtySubmitButton": "dirtySubmitButton"; "submit": "submit"; "successDelay": "successDelay"; "errorDelay": "errorDelay"; "tabGroup": "tabGroup"; "deactivationGuard": "deactivationGuard"; }, { "submitEvent": "fsForm"; "invalid": "invalid"; "valid": "valid"; "submitted": "submitted"; "reseted": "reseted"; "cleared": "cleared"; }, ["formDialogClose", "_tabGroups"]>;
|
|
122
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FsFormDialogCloseDirective implements OnDestroy {
|
|
5
|
-
clicked$: Subject<unknown>;
|
|
6
|
-
registered: boolean;
|
|
7
|
-
type: string;
|
|
8
|
-
click(): void;
|
|
9
|
-
ngOnDestroy(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDialogCloseDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormDialogCloseDirective, "[fsFormDialogClose],[fs-form-dialog-close]", never, {}, {}, never>;
|
|
12
|
-
}
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FsFormDialogCloseDirective implements OnDestroy {
|
|
5
|
+
clicked$: Subject<unknown>;
|
|
6
|
+
registered: boolean;
|
|
7
|
+
type: string;
|
|
8
|
+
click(): void;
|
|
9
|
+
ngOnDestroy(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDialogCloseDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormDialogCloseDirective, "[fsFormDialogClose],[fs-form-dialog-close]", never, {}, {}, never>;
|
|
12
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './button.directive';
|
|
2
|
-
export * from './submit-button.directive';
|
|
1
|
+
export * from './button.directive';
|
|
2
|
+
export * from './submit-button.directive';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FsButtonDirective } from './button.directive';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FsSubmitButtonDirective extends FsButtonDirective {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsSubmitButtonDirective, never>;
|
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsSubmitButtonDirective, "dummy-selector", never, {}, {}, never>;
|
|
6
|
-
}
|
|
1
|
+
import { FsButtonDirective } from './button.directive';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FsSubmitButtonDirective extends FsButtonDirective {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsSubmitButtonDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsSubmitButtonDirective, "dummy-selector", never, {}, {}, never>;
|
|
6
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { OnDestroy, AfterViewInit, OnChanges } from '@angular/core';
|
|
2
|
-
import { FsControlDirective } from './control.directive';
|
|
3
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
|
-
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class FsFormCompareDirective extends FsControlDirective implements OnChanges, AfterViewInit, OnDestroy, FsValidator {
|
|
7
|
-
fsFormCompare: any;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
ngAfterViewInit(): void;
|
|
12
|
-
ngOnDestroy(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormCompareDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormCompareDirective, "[fsFormCompare]", never, { "fsFormCompare": "fsFormCompare"; "validationMessage": "fsFormCompareMessage"; }, {}, never>;
|
|
15
|
-
}
|
|
1
|
+
import { OnDestroy, AfterViewInit, OnChanges } from '@angular/core';
|
|
2
|
+
import { FsControlDirective } from './control.directive';
|
|
3
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
|
+
import { FsValidator } from '../../interfaces/validator';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FsFormCompareDirective extends FsControlDirective implements OnChanges, AfterViewInit, OnDestroy, FsValidator {
|
|
7
|
+
fsFormCompare: any;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
ngAfterViewInit(): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormCompareDirective, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormCompareDirective, "[fsFormCompare]", never, { "fsFormCompare": "fsFormCompare"; "validationMessage": "fsFormCompareMessage"; }, {}, never>;
|
|
15
|
+
}
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { ElementRef, Renderer2, Injector, OnInit, OnDestroy, AfterContentInit } from '@angular/core';
|
|
2
|
-
import { NgControl, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { Observable, Subject } from 'rxjs';
|
|
4
|
-
import { FsFormDirective } from '../form/form.directive';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export interface FsControlDirective {
|
|
7
|
-
validate?(control: AbstractControl): ValidationErrors | null;
|
|
8
|
-
validateAsync?(control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
9
|
-
}
|
|
10
|
-
export declare class FsControlDirective implements OnInit, AfterContentInit, OnDestroy {
|
|
11
|
-
protected elementRef: ElementRef;
|
|
12
|
-
protected renderer2: Renderer2;
|
|
13
|
-
protected injector: Injector;
|
|
14
|
-
protected _validateMessages: any;
|
|
15
|
-
protected ngControl: NgControl;
|
|
16
|
-
protected formDirective: FsFormDirective;
|
|
17
|
-
wrapperSelector: string | false;
|
|
18
|
-
messageSelector: string | false;
|
|
19
|
-
hintSelector: string | false;
|
|
20
|
-
labelSelector: string | false;
|
|
21
|
-
appendMessageClass: string;
|
|
22
|
-
appendLabelClass: string;
|
|
23
|
-
appendErrorClass: string;
|
|
24
|
-
appendHintClass: string;
|
|
25
|
-
set validateMessages(messages: Record<string, string>);
|
|
26
|
-
errors: any[];
|
|
27
|
-
protected _destroy$: Subject<unknown>;
|
|
28
|
-
protected _control: AbstractControl;
|
|
29
|
-
constructor(elementRef: ElementRef, renderer2: Renderer2, injector: Injector, _validateMessages: any, ngControl: NgControl, formDirective: FsFormDirective);
|
|
30
|
-
ngOnInit(): void;
|
|
31
|
-
ngOnDestroy(): void;
|
|
32
|
-
ngAfterContentInit(): void;
|
|
33
|
-
protected getMessageSelector(): string;
|
|
34
|
-
protected getHintWrapperSelector(): string;
|
|
35
|
-
protected getWrapperSelector(): string;
|
|
36
|
-
protected getlabelSelector(): string;
|
|
37
|
-
protected getWrapperElement(): any;
|
|
38
|
-
protected render(): void;
|
|
39
|
-
protected getWrapper(node: any, count?: number): any;
|
|
40
|
-
protected parseErrorMessage(message: any, args: any): string;
|
|
41
|
-
protected getError(controlRef: any): {
|
|
42
|
-
name: string;
|
|
43
|
-
message: string;
|
|
44
|
-
};
|
|
45
|
-
private _setupValidators;
|
|
46
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsControlDirective, [null, null, null, { self: true; }, { optional: true; }, { optional: true; }]>;
|
|
47
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsControlDirective, "[fsFormControl]", never, { "wrapperSelector": "wrapperSelector"; "messageSelector": "messageSelector"; "hintSelector": "hintSelector"; "labelSelector": "labelSelector"; "appendMessageClass": "appendMessageClass"; "appendLabelClass": "appendLabelClass"; "appendErrorClass": "appendErrorClass"; "appendHintClass": "appendHintClass"; "validateMessages": "validateMessages"; }, {}, never>;
|
|
48
|
-
}
|
|
1
|
+
import { ElementRef, Renderer2, Injector, OnInit, OnDestroy, AfterContentInit } from '@angular/core';
|
|
2
|
+
import { NgControl, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
import { Observable, Subject } from 'rxjs';
|
|
4
|
+
import { FsFormDirective } from '../form/form.directive';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export interface FsControlDirective {
|
|
7
|
+
validate?(control: AbstractControl): ValidationErrors | null;
|
|
8
|
+
validateAsync?(control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
9
|
+
}
|
|
10
|
+
export declare class FsControlDirective implements OnInit, AfterContentInit, OnDestroy {
|
|
11
|
+
protected elementRef: ElementRef;
|
|
12
|
+
protected renderer2: Renderer2;
|
|
13
|
+
protected injector: Injector;
|
|
14
|
+
protected _validateMessages: any;
|
|
15
|
+
protected ngControl: NgControl;
|
|
16
|
+
protected formDirective: FsFormDirective;
|
|
17
|
+
wrapperSelector: string | false;
|
|
18
|
+
messageSelector: string | false;
|
|
19
|
+
hintSelector: string | false;
|
|
20
|
+
labelSelector: string | false;
|
|
21
|
+
appendMessageClass: string;
|
|
22
|
+
appendLabelClass: string;
|
|
23
|
+
appendErrorClass: string;
|
|
24
|
+
appendHintClass: string;
|
|
25
|
+
set validateMessages(messages: Record<string, string>);
|
|
26
|
+
errors: any[];
|
|
27
|
+
protected _destroy$: Subject<unknown>;
|
|
28
|
+
protected _control: AbstractControl;
|
|
29
|
+
constructor(elementRef: ElementRef, renderer2: Renderer2, injector: Injector, _validateMessages: any, ngControl: NgControl, formDirective: FsFormDirective);
|
|
30
|
+
ngOnInit(): void;
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
ngAfterContentInit(): void;
|
|
33
|
+
protected getMessageSelector(): string;
|
|
34
|
+
protected getHintWrapperSelector(): string;
|
|
35
|
+
protected getWrapperSelector(): string;
|
|
36
|
+
protected getlabelSelector(): string;
|
|
37
|
+
protected getWrapperElement(): any;
|
|
38
|
+
protected render(): void;
|
|
39
|
+
protected getWrapper(node: any, count?: number): any;
|
|
40
|
+
protected parseErrorMessage(message: any, args: any): string;
|
|
41
|
+
protected getError(controlRef: any): {
|
|
42
|
+
name: string;
|
|
43
|
+
message: string;
|
|
44
|
+
};
|
|
45
|
+
private _setupValidators;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsControlDirective, [null, null, null, { self: true; }, { optional: true; }, { optional: true; }]>;
|
|
47
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsControlDirective, "[fsFormControl]", never, { "wrapperSelector": "wrapperSelector"; "messageSelector": "messageSelector"; "hintSelector": "hintSelector"; "labelSelector": "labelSelector"; "appendMessageClass": "appendMessageClass"; "appendLabelClass": "appendLabelClass"; "appendErrorClass": "appendErrorClass"; "appendHintClass": "appendHintClass"; "validateMessages": "validateMessages"; }, {}, never>;
|
|
48
|
+
}
|
|
@@ -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 FsFormDateRangeDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
-
fsFormDateRange: any;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDateRangeDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormDateRangeDirective, "[fsFormDateRange]", never, { "fsFormDateRange": "fsFormDateRange"; "validationMessage": "fsFormDateRangeMessage"; }, {}, 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 FsFormDateRangeDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
7
|
+
fsFormDateRange: any;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDateRangeDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormDateRangeDirective, "[fsFormDateRange]", never, { "fsFormDateRange": "fsFormDateRange"; "validationMessage": "fsFormDateRangeMessage"; }, {}, 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 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
|
+
}
|