@firestitch/form 9.7.3 → 9.7.7
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 +18 -15
- package/app/consts/error-messages.const.d.ts +19 -19
- package/app/directives/form/form.directive.d.ts +102 -100
- package/app/directives/form-dialog-close.directive.d.ts +9 -9
- package/app/directives/submit-button.directive.d.ts +28 -28
- package/app/directives/validators/compare.directive.d.ts +12 -12
- package/app/directives/validators/control.directive.d.ts +45 -45
- package/app/directives/validators/daterange.directive.d.ts +10 -10
- package/app/directives/validators/email.directive.d.ts +10 -10
- package/app/directives/validators/emails.directive.d.ts +10 -10
- package/app/directives/validators/function.directive.d.ts +11 -11
- package/app/directives/validators/greater.directive.d.ts +10 -10
- package/app/directives/validators/integer.directive.d.ts +10 -10
- package/app/directives/validators/lesser.directive.d.ts +10 -10
- package/app/directives/validators/max.directive.d.ts +10 -10
- package/app/directives/validators/maxlength.directive.d.ts +10 -10
- package/app/directives/validators/min.directive.d.ts +10 -10
- package/app/directives/validators/minlength.directive.d.ts +10 -10
- package/app/directives/validators/numeric.directive.d.ts +10 -10
- package/app/directives/validators/pattern.directive.d.ts +10 -10
- package/app/directives/validators/phone.directive.d.ts +10 -10
- package/app/directives/validators/required.directive.d.ts +13 -13
- package/app/directives/validators/url.directive.d.ts +11 -11
- package/app/directives/validators/validate.directive.d.ts +11 -11
- package/app/enums/confirm-result.d.ts +7 -7
- package/app/enums/form-status.d.ts +9 -9
- package/app/fs-form.module.d.ts +4 -4
- package/app/guards/form-deactivate.guard.d.ts +9 -9
- package/app/helpers/confirm-result-continue.d.ts +1 -1
- package/app/helpers/confirm-unsaved.d.ts +5 -5
- 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/form-deactivate.d.ts +4 -4
- package/app/interfaces/index.d.ts +4 -4
- package/app/interfaces/submit-event.d.ts +5 -5
- package/app/interfaces/submitted-event.d.ts +6 -6
- 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 +7 -7
- package/app/validators/validators.d.ts +12 -12
- package/bundles/firestitch-form.umd.js +2300 -2267
- package/bundles/firestitch-form.umd.js.map +1 -1
- package/bundles/firestitch-form.umd.min.js +2 -2
- package/bundles/firestitch-form.umd.min.js.map +1 -1
- package/esm2015/app/components/form-dialog-actions/form-dialog-actions.component.js +93 -67
- package/esm2015/app/consts/error-messages.const.js +19 -19
- package/esm2015/app/directives/form/form.directive.js +665 -656
- package/esm2015/app/directives/form-dialog-close.directive.js +32 -32
- package/esm2015/app/directives/submit-button.directive.js +137 -137
- package/esm2015/app/directives/validators/compare.directive.js +48 -48
- package/esm2015/app/directives/validators/control.directive.js +272 -272
- 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 +30 -30
- 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/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 +72 -72
- package/esm2015/app/directives/validators/url.directive.js +48 -48
- package/esm2015/app/directives/validators/validate.directive.js +30 -30
- package/esm2015/app/enums/confirm-result.js +8 -8
- package/esm2015/app/enums/form-status.js +10 -10
- package/esm2015/app/fs-form.module.js +106 -106
- package/esm2015/app/guards/form-deactivate.guard.js +43 -43
- package/esm2015/app/helpers/confirm-result-continue.js +4 -4
- package/esm2015/app/helpers/confirm-unsaved.js +70 -70
- 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/providers/validate-messages.provider.js +10 -10
- package/esm2015/app/services/fsform.service.js +25 -25
- package/esm2015/app/validators/validators.js +96 -96
- package/esm2015/firestitch-form.js +27 -28
- package/esm2015/public_api.js +13 -13
- package/esm5/app/components/form-dialog-actions/form-dialog-actions.component.js +96 -69
- package/esm5/app/consts/error-messages.const.js +19 -19
- package/esm5/app/directives/form/form.directive.js +706 -697
- package/esm5/app/directives/form-dialog-close.directive.js +33 -33
- package/esm5/app/directives/submit-button.directive.js +143 -143
- package/esm5/app/directives/validators/compare.directive.js +59 -59
- package/esm5/app/directives/validators/control.directive.js +278 -278
- package/esm5/app/directives/validators/daterange.directive.js +49 -49
- package/esm5/app/directives/validators/email.directive.js +49 -49
- package/esm5/app/directives/validators/emails.directive.js +49 -49
- package/esm5/app/directives/validators/function.directive.js +35 -35
- package/esm5/app/directives/validators/greater.directive.js +48 -48
- package/esm5/app/directives/validators/integer.directive.js +49 -49
- package/esm5/app/directives/validators/lesser.directive.js +48 -48
- package/esm5/app/directives/validators/max.directive.js +44 -44
- package/esm5/app/directives/validators/maxlength.directive.js +43 -43
- package/esm5/app/directives/validators/min.directive.js +44 -44
- package/esm5/app/directives/validators/minlength.directive.js +43 -43
- package/esm5/app/directives/validators/numeric.directive.js +49 -49
- package/esm5/app/directives/validators/pattern.directive.js +43 -43
- package/esm5/app/directives/validators/phone.directive.js +49 -49
- package/esm5/app/directives/validators/required.directive.js +87 -87
- package/esm5/app/directives/validators/url.directive.js +55 -55
- package/esm5/app/directives/validators/validate.directive.js +35 -35
- package/esm5/app/enums/confirm-result.js +8 -8
- package/esm5/app/enums/form-status.js +10 -10
- package/esm5/app/fs-form.module.js +110 -110
- package/esm5/app/guards/form-deactivate.guard.js +44 -44
- package/esm5/app/helpers/confirm-result-continue.js +4 -4
- package/esm5/app/helpers/confirm-unsaved.js +70 -70
- package/esm5/app/helpers/get-form-errors.js +27 -27
- package/esm5/app/helpers/index.js +2 -2
- package/esm5/app/helpers/is-enabled.js +3 -3
- package/esm5/app/providers/validate-messages.provider.js +11 -11
- package/esm5/app/services/fsform.service.js +26 -26
- package/esm5/app/validators/validators.js +101 -101
- package/esm5/firestitch-form.js +27 -28
- package/esm5/public_api.js +13 -13
- package/fesm2015/firestitch-form.js +2075 -2042
- package/fesm2015/firestitch-form.js.map +1 -1
- package/fesm5/firestitch-form.js +2304 -2270
- package/fesm5/firestitch-form.js.map +1 -1
- package/firestitch-form.d.ts +26 -27
- package/firestitch-form.metadata.json +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +12 -12
- package/app/components/form-dialog-actions/index.d.ts +0 -1
- package/esm2015/app/components/form-dialog-actions/index.js +0 -2
- package/esm5/app/components/form-dialog-actions/index.js +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
export declare class FsFormMaxDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
-
fsFormMax: number;
|
|
7
|
-
set validationMessage(value: string);
|
|
8
|
-
ngOnChanges(): void;
|
|
9
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
-
}
|
|
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
|
+
export declare class FsFormMaxDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
+
fsFormMax: number;
|
|
7
|
+
set validationMessage(value: string);
|
|
8
|
+
ngOnChanges(): void;
|
|
9
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
export declare class FsFormMaxLengthDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
-
fsFormMaxLength: number;
|
|
7
|
-
set validationMessage(value: string);
|
|
8
|
-
ngOnChanges(): void;
|
|
9
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
-
}
|
|
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
|
+
export declare class FsFormMaxLengthDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
+
fsFormMaxLength: number;
|
|
7
|
+
set validationMessage(value: string);
|
|
8
|
+
ngOnChanges(): void;
|
|
9
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
export declare class FsFormMinDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
-
fsFormMin: any;
|
|
7
|
-
set validationMessage(value: string);
|
|
8
|
-
ngOnChanges(): void;
|
|
9
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
-
}
|
|
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
|
+
export declare class FsFormMinDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
+
fsFormMin: any;
|
|
7
|
+
set validationMessage(value: string);
|
|
8
|
+
ngOnChanges(): void;
|
|
9
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
export declare class FsFormMinLengthDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
-
fsFormMinLength: number;
|
|
7
|
-
set validationMessage(value: string);
|
|
8
|
-
ngOnChanges(): void;
|
|
9
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
-
}
|
|
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
|
+
export declare class FsFormMinLengthDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
+
fsFormMinLength: number;
|
|
7
|
+
set validationMessage(value: string);
|
|
8
|
+
ngOnChanges(): void;
|
|
9
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
export declare class FsFormNumericDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
-
fsFormNumeric: any;
|
|
7
|
-
set validationMessage(value: string);
|
|
8
|
-
ngOnChanges(): void;
|
|
9
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
-
}
|
|
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
|
+
export declare class FsFormNumericDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
+
fsFormNumeric: any;
|
|
7
|
+
set validationMessage(value: string);
|
|
8
|
+
ngOnChanges(): void;
|
|
9
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
export declare class FsFormPatternDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
-
fsFormPattern: RegExp;
|
|
7
|
-
set validationMessage(value: string);
|
|
8
|
-
ngOnChanges(): void;
|
|
9
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
-
}
|
|
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
|
+
export declare class FsFormPatternDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
+
fsFormPattern: RegExp;
|
|
7
|
+
set validationMessage(value: string);
|
|
8
|
+
ngOnChanges(): void;
|
|
9
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
export declare class FsFormPhoneDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
-
fsFormPhone: any;
|
|
7
|
-
set validationMessage(value: string);
|
|
8
|
-
ngOnChanges(): void;
|
|
9
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
-
}
|
|
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
|
+
export declare class FsFormPhoneDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
+
fsFormPhone: any;
|
|
7
|
+
set validationMessage(value: string);
|
|
8
|
+
ngOnChanges(): void;
|
|
9
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
10
|
+
}
|
|
@@ -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
|
-
export declare class FsFormRequiredDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
-
required: boolean;
|
|
7
|
-
set setFsFormRequired(value: any);
|
|
8
|
-
set setRequired(value: any);
|
|
9
|
-
set validationMessage(value: string);
|
|
10
|
-
ngOnChanges(): void;
|
|
11
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
12
|
-
protected render(): void;
|
|
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
|
+
export declare class FsFormRequiredDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
+
required: boolean;
|
|
7
|
+
set setFsFormRequired(value: any);
|
|
8
|
+
set setRequired(value: any);
|
|
9
|
+
set validationMessage(value: string);
|
|
10
|
+
ngOnChanges(): void;
|
|
11
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
12
|
+
protected render(): void;
|
|
13
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
export declare class FsFormUrlDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
-
fsFormUrl: any;
|
|
7
|
-
fsFormUrlProtocol: boolean;
|
|
8
|
-
set validationMessage(value: string);
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
}
|
|
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
|
+
export declare class FsFormUrlDirective extends FsControlDirective implements OnChanges, FsValidator {
|
|
6
|
+
fsFormUrl: any;
|
|
7
|
+
fsFormUrlProtocol: boolean;
|
|
8
|
+
set validationMessage(value: string);
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
export declare class FsFormValidateDirective extends FsControlDirective implements OnChanges, FsAsyncValidator {
|
|
7
|
-
validateFn: any;
|
|
8
|
-
validateFnData: any;
|
|
9
|
-
ngOnChanges(): void;
|
|
10
|
-
validateAsync(control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
11
|
-
}
|
|
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
|
+
export declare class FsFormValidateDirective extends FsControlDirective implements OnChanges, FsAsyncValidator {
|
|
7
|
+
validateFn: any;
|
|
8
|
+
validateFnData: any;
|
|
9
|
+
ngOnChanges(): void;
|
|
10
|
+
validateAsync(control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
11
|
+
}
|
|
@@ -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,9 +1,9 @@
|
|
|
1
|
-
export declare enum FormStatus {
|
|
2
|
-
Valid = "valid",
|
|
3
|
-
Invalid = "invalid",
|
|
4
|
-
Submitting = "submitting",
|
|
5
|
-
Submitted = "submitted",
|
|
6
|
-
Error = "error",
|
|
7
|
-
Success = "success",
|
|
8
|
-
Completing = "completing"
|
|
9
|
-
}
|
|
1
|
+
export declare enum FormStatus {
|
|
2
|
+
Valid = "valid",
|
|
3
|
+
Invalid = "invalid",
|
|
4
|
+
Submitting = "submitting",
|
|
5
|
+
Submitted = "submitted",
|
|
6
|
+
Error = "error",
|
|
7
|
+
Success = "success",
|
|
8
|
+
Completing = "completing"
|
|
9
|
+
}
|
package/app/fs-form.module.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
export declare class FsFormModule {
|
|
3
|
-
static forRoot(): ModuleWithProviders<FsFormModule>;
|
|
4
|
-
}
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
export declare class FsFormModule {
|
|
3
|
+
static forRoot(): ModuleWithProviders<FsFormModule>;
|
|
4
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CanDeactivate } from '@angular/router';
|
|
2
|
-
import { FsPrompt } from '@firestitch/prompt';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { FormDeactivate } from '../interfaces/form-deactivate';
|
|
5
|
-
export declare class FormDeactivateGuard implements CanDeactivate<any> {
|
|
6
|
-
private _prompt;
|
|
7
|
-
constructor(_prompt: FsPrompt);
|
|
8
|
-
canDeactivate(directive: FormDeactivate): Observable<boolean>;
|
|
9
|
-
}
|
|
1
|
+
import { CanDeactivate } from '@angular/router';
|
|
2
|
+
import { FsPrompt } from '@firestitch/prompt';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { FormDeactivate } from '../interfaces/form-deactivate';
|
|
5
|
+
export declare class FormDeactivateGuard implements CanDeactivate<any> {
|
|
6
|
+
private _prompt;
|
|
7
|
+
constructor(_prompt: FsPrompt);
|
|
8
|
+
canDeactivate(directive: FormDeactivate): Observable<boolean>;
|
|
9
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function confirmResultContinue(result: any): boolean;
|
|
1
|
+
export declare function confirmResultContinue(result: any): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FsPrompt } from '@firestitch/prompt';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { FsFormDirective } from '../directives/form/form.directive';
|
|
4
|
-
import { ConfirmResult } from '../enums/confirm-result';
|
|
5
|
-
export declare function confirmUnsaved(form: FsFormDirective, prompt: FsPrompt): Observable<ConfirmResult>;
|
|
1
|
+
import { FsPrompt } from '@firestitch/prompt';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { FsFormDirective } from '../directives/form/form.directive';
|
|
4
|
+
import { ConfirmResult } from '../enums/confirm-result';
|
|
5
|
+
export declare function confirmUnsaved(form: FsFormDirective, prompt: FsPrompt): Observable<ConfirmResult>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
|
-
export declare function getFormErrors(control: AbstractControl, key: string): ValidationErrors | null;
|
|
1
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
|
+
export declare function getFormErrors(control: AbstractControl, key: string): ValidationErrors | null;
|
package/app/helpers/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './confirm-result-continue';
|
|
2
|
-
export * from './confirm-unsaved';
|
|
1
|
+
export * from './confirm-result-continue';
|
|
2
|
+
export * from './confirm-unsaved';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function isEnabled(value: any): boolean;
|
|
1
|
+
export declare function isEnabled(value: any): boolean;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
export declare interface FsAsyncValidator {
|
|
4
|
-
/**
|
|
5
|
-
* @description
|
|
6
|
-
* Method that performs async validation against the provided control.
|
|
7
|
-
*
|
|
8
|
-
* @param control The control to validate against.
|
|
9
|
-
*
|
|
10
|
-
* @returns A promise or observable that resolves a map of validation errors
|
|
11
|
-
* if validation fails, otherwise null.
|
|
12
|
-
*/
|
|
13
|
-
validateAsync(control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
14
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
+
export declare interface FsAsyncValidator {
|
|
4
|
+
/**
|
|
5
|
+
* @description
|
|
6
|
+
* Method that performs async validation against the provided control.
|
|
7
|
+
*
|
|
8
|
+
* @param control The control to validate against.
|
|
9
|
+
*
|
|
10
|
+
* @returns A promise or observable that resolves a map of validation errors
|
|
11
|
+
* if validation fails, otherwise null.
|
|
12
|
+
*/
|
|
13
|
+
validateAsync(control: AbstractControl): Promise<ValidationErrors | null> | Observable<ValidationErrors | null>;
|
|
14
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface ConfirmConfig {
|
|
2
|
-
title?: string;
|
|
3
|
-
message?: string;
|
|
4
|
-
saveLabel?: string;
|
|
5
|
-
discardLabel?: string;
|
|
6
|
-
cancelLabel?: string;
|
|
7
|
-
}
|
|
1
|
+
export interface ConfirmConfig {
|
|
2
|
+
title?: string;
|
|
3
|
+
message?: string;
|
|
4
|
+
saveLabel?: string;
|
|
5
|
+
discardLabel?: string;
|
|
6
|
+
cancelLabel?: string;
|
|
7
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { MatTab, MatTabGroup, MatTabHeader } from '@angular/material/tabs';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
export interface ConfirmTabGroup extends MatTabGroup {
|
|
4
|
-
_originalHandleClick(tab: MatTab, tabHeader: MatTabHeader, index: number): void;
|
|
5
|
-
_handlClick$: Subject<{
|
|
6
|
-
tab: MatTab;
|
|
7
|
-
tabHeader: MatTabHeader;
|
|
8
|
-
idx: number;
|
|
9
|
-
}>;
|
|
10
|
-
}
|
|
1
|
+
import { MatTab, MatTabGroup, MatTabHeader } from '@angular/material/tabs';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
export interface ConfirmTabGroup extends MatTabGroup {
|
|
4
|
+
_originalHandleClick(tab: MatTab, tabHeader: MatTabHeader, index: number): void;
|
|
5
|
+
_handlClick$: Subject<{
|
|
6
|
+
tab: MatTab;
|
|
7
|
+
tabHeader: MatTabHeader;
|
|
8
|
+
idx: number;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FsFormDirective } from '../directives/form/form.directive';
|
|
2
|
-
export interface FormDeactivate {
|
|
3
|
-
getForm(): FsFormDirective;
|
|
4
|
-
}
|
|
1
|
+
import { FsFormDirective } from '../directives/form/form.directive';
|
|
2
|
+
export interface FormDeactivate {
|
|
3
|
+
getForm(): FsFormDirective;
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './submit-event';
|
|
2
|
-
export * from './submitted-event';
|
|
3
|
-
export * from './confirm-config';
|
|
4
|
-
export * from './confirm-tab-group';
|
|
1
|
+
export * from './submit-event';
|
|
2
|
+
export * from './submitted-event';
|
|
3
|
+
export * from './confirm-config';
|
|
4
|
+
export * from './confirm-tab-group';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { NgForm } from '@angular/forms';
|
|
2
|
-
export interface SubmitEvent {
|
|
3
|
-
ngForm: NgForm;
|
|
4
|
-
submitter: string;
|
|
5
|
-
}
|
|
1
|
+
import { NgForm } from '@angular/forms';
|
|
2
|
+
export interface SubmitEvent {
|
|
3
|
+
ngForm: NgForm;
|
|
4
|
+
submitter: string;
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { NgForm } from '@angular/forms';
|
|
2
|
-
export interface SubmittedEvent {
|
|
3
|
-
ngForm: NgForm;
|
|
4
|
-
submitter: string;
|
|
5
|
-
response: any;
|
|
6
|
-
}
|
|
1
|
+
import { NgForm } from '@angular/forms';
|
|
2
|
+
export interface SubmittedEvent {
|
|
3
|
+
ngForm: NgForm;
|
|
4
|
+
submitter: string;
|
|
5
|
+
response: any;
|
|
6
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
|
-
export declare interface FsValidator {
|
|
3
|
-
/**
|
|
4
|
-
* @description
|
|
5
|
-
* Method that performs synchronous validation against the provided control.
|
|
6
|
-
*
|
|
7
|
-
* @param control The control to validate against.
|
|
8
|
-
*
|
|
9
|
-
* @returns A map of validation errors if validation fails,
|
|
10
|
-
* otherwise null.
|
|
11
|
-
*/
|
|
12
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
13
|
-
}
|
|
1
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
|
+
export declare interface FsValidator {
|
|
3
|
+
/**
|
|
4
|
+
* @description
|
|
5
|
+
* Method that performs synchronous validation against the provided control.
|
|
6
|
+
*
|
|
7
|
+
* @param control The control to validate against.
|
|
8
|
+
*
|
|
9
|
+
* @returns A map of validation errors if validation fails,
|
|
10
|
+
* otherwise null.
|
|
11
|
+
*/
|
|
12
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
13
|
+
}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export declare const VALIDATE_MESSAGES: InjectionToken<Record<string, string>>;
|
|
3
|
-
export declare const VALIDATE_MESSAGE_PROVIDER: {
|
|
4
|
-
provide: InjectionToken<Record<string, string>>;
|
|
5
|
-
useFactory: typeof messageProviderFactory;
|
|
6
|
-
};
|
|
7
|
-
export declare function messageProviderFactory(): {
|
|
8
|
-
required: string;
|
|
9
|
-
email: string;
|
|
10
|
-
emails: string;
|
|
11
|
-
phone: string;
|
|
12
|
-
numeric: string;
|
|
13
|
-
integer: string;
|
|
14
|
-
min: string;
|
|
15
|
-
max: string;
|
|
16
|
-
minlength: string;
|
|
17
|
-
maxlength: string;
|
|
18
|
-
compare: string;
|
|
19
|
-
pattern: string;
|
|
20
|
-
dateRange: string;
|
|
21
|
-
url: string;
|
|
22
|
-
urlProtocol: string;
|
|
23
|
-
greater: string;
|
|
24
|
-
lesser: string;
|
|
25
|
-
};
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export declare const VALIDATE_MESSAGES: InjectionToken<Record<string, string>>;
|
|
3
|
+
export declare const VALIDATE_MESSAGE_PROVIDER: {
|
|
4
|
+
provide: InjectionToken<Record<string, string>>;
|
|
5
|
+
useFactory: typeof messageProviderFactory;
|
|
6
|
+
};
|
|
7
|
+
export declare function messageProviderFactory(): {
|
|
8
|
+
required: string;
|
|
9
|
+
email: string;
|
|
10
|
+
emails: string;
|
|
11
|
+
phone: string;
|
|
12
|
+
numeric: string;
|
|
13
|
+
integer: string;
|
|
14
|
+
min: string;
|
|
15
|
+
max: string;
|
|
16
|
+
minlength: string;
|
|
17
|
+
maxlength: string;
|
|
18
|
+
compare: string;
|
|
19
|
+
pattern: string;
|
|
20
|
+
dateRange: string;
|
|
21
|
+
url: string;
|
|
22
|
+
urlProtocol: string;
|
|
23
|
+
greater: string;
|
|
24
|
+
lesser: string;
|
|
25
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export declare class FsForm {
|
|
3
|
-
private _eventBus;
|
|
4
|
-
constructor();
|
|
5
|
-
broadcast(key: any, data?: any): void;
|
|
6
|
-
on<T>(key: any): Observable<T>;
|
|
7
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export declare class FsForm {
|
|
3
|
+
private _eventBus;
|
|
4
|
+
constructor();
|
|
5
|
+
broadcast(key: any, data?: any): void;
|
|
6
|
+
on<T>(key: any): Observable<T>;
|
|
7
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export declare class FsValidators {
|
|
4
|
-
static email(control: AbstractControl): ValidationErrors | null;
|
|
5
|
-
static emails(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
static numeric(control: AbstractControl): ValidationErrors | null;
|
|
7
|
-
static integer(control: AbstractControl): ValidationErrors | null;
|
|
8
|
-
static phone(control: AbstractControl): ValidationErrors | null;
|
|
9
|
-
static url(control: AbstractControl, protocolRequired?: boolean): ValidationErrors | null;
|
|
10
|
-
static dateRange(control: AbstractControl): ValidationErrors | null;
|
|
11
|
-
static func(control: AbstractControl, formFunction: any, data: any): Observable<any>;
|
|
12
|
-
}
|
|
1
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export declare class FsValidators {
|
|
4
|
+
static email(control: AbstractControl): ValidationErrors | null;
|
|
5
|
+
static emails(control: AbstractControl): ValidationErrors | null;
|
|
6
|
+
static numeric(control: AbstractControl): ValidationErrors | null;
|
|
7
|
+
static integer(control: AbstractControl): ValidationErrors | null;
|
|
8
|
+
static phone(control: AbstractControl): ValidationErrors | null;
|
|
9
|
+
static url(control: AbstractControl, protocolRequired?: boolean): ValidationErrors | null;
|
|
10
|
+
static dateRange(control: AbstractControl): ValidationErrors | null;
|
|
11
|
+
static func(control: AbstractControl, formFunction: any, data: any): Observable<any>;
|
|
12
|
+
}
|