@firestitch/form 9.7.6 → 12.0.1
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 +21 -18
- package/app/consts/error-messages.const.d.ts +19 -19
- package/app/directives/form/form.directive.d.ts +105 -102
- package/app/directives/form-dialog-close.directive.d.ts +12 -9
- package/app/directives/submit-button.directive.d.ts +31 -28
- package/app/directives/validators/compare.directive.d.ts +15 -12
- package/app/directives/validators/control.directive.d.ts +48 -45
- package/app/directives/validators/daterange.directive.d.ts +13 -10
- package/app/directives/validators/email.directive.d.ts +13 -10
- package/app/directives/validators/emails.directive.d.ts +13 -10
- package/app/directives/validators/function.directive.d.ts +14 -11
- package/app/directives/validators/greater.directive.d.ts +13 -10
- package/app/directives/validators/integer.directive.d.ts +13 -10
- package/app/directives/validators/lesser.directive.d.ts +13 -10
- package/app/directives/validators/max.directive.d.ts +13 -10
- package/app/directives/validators/maxlength.directive.d.ts +13 -10
- package/app/directives/validators/min.directive.d.ts +13 -10
- package/app/directives/validators/minlength.directive.d.ts +13 -10
- package/app/directives/validators/numeric.directive.d.ts +13 -10
- package/app/directives/validators/pattern.directive.d.ts +13 -10
- package/app/directives/validators/phone.directive.d.ts +13 -10
- package/app/directives/validators/required.directive.d.ts +16 -13
- package/app/directives/validators/url.directive.d.ts +14 -11
- package/app/directives/validators/validate.directive.d.ts +14 -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 +35 -4
- package/app/guards/form-deactivate.guard.d.ts +12 -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 +10 -7
- package/app/validators/validators.d.ts +12 -12
- package/bundles/firestitch-form.umd.js +2672 -2546
- package/bundles/firestitch-form.umd.js.map +1 -1
- package/esm2015/app/components/form-dialog-actions/form-dialog-actions.component.js +86 -93
- package/esm2015/app/consts/error-messages.const.js +20 -20
- package/esm2015/app/directives/form/form.directive.js +619 -668
- package/esm2015/app/directives/form-dialog-close.directive.js +31 -33
- package/esm2015/app/directives/submit-button.directive.js +131 -138
- package/esm2015/app/directives/validators/compare.directive.js +49 -49
- package/esm2015/app/directives/validators/control.directive.js +257 -273
- package/esm2015/app/directives/validators/daterange.directive.js +41 -41
- package/esm2015/app/directives/validators/email.directive.js +41 -41
- package/esm2015/app/directives/validators/emails.directive.js +41 -41
- package/esm2015/app/directives/validators/function.directive.js +31 -31
- package/esm2015/app/directives/validators/greater.directive.js +40 -40
- package/esm2015/app/directives/validators/integer.directive.js +41 -41
- package/esm2015/app/directives/validators/lesser.directive.js +40 -40
- package/esm2015/app/directives/validators/max.directive.js +36 -36
- package/esm2015/app/directives/validators/maxlength.directive.js +35 -35
- package/esm2015/app/directives/validators/min.directive.js +36 -36
- package/esm2015/app/directives/validators/minlength.directive.js +35 -35
- package/esm2015/app/directives/validators/numeric.directive.js +41 -41
- package/esm2015/app/directives/validators/pattern.directive.js +35 -35
- package/esm2015/app/directives/validators/phone.directive.js +41 -41
- package/esm2015/app/directives/validators/required.directive.js +71 -73
- package/esm2015/app/directives/validators/url.directive.js +47 -49
- package/esm2015/app/directives/validators/validate.directive.js +33 -31
- package/esm2015/app/enums/confirm-result.js +9 -9
- package/esm2015/app/enums/form-status.js +11 -11
- package/esm2015/app/fs-form.module.js +165 -106
- package/esm2015/app/guards/form-deactivate.guard.js +40 -44
- package/esm2015/app/helpers/confirm-result-continue.js +5 -5
- package/esm2015/app/helpers/confirm-unsaved.js +70 -70
- package/esm2015/app/helpers/get-form-errors.js +25 -25
- package/esm2015/app/helpers/index.js +3 -3
- package/esm2015/app/helpers/is-enabled.js +4 -4
- package/esm2015/app/interfaces/async-validator.js +2 -1
- package/esm2015/app/interfaces/confirm-config.js +2 -1
- package/esm2015/app/interfaces/confirm-tab-group.js +2 -1
- package/esm2015/app/interfaces/form-deactivate.js +2 -1
- package/esm2015/app/interfaces/index.js +5 -1
- package/esm2015/app/interfaces/submit-event.js +2 -1
- package/esm2015/app/interfaces/submitted-event.js +2 -1
- package/esm2015/app/interfaces/validator.js +2 -1
- package/esm2015/app/providers/validate-messages.provider.js +11 -11
- package/esm2015/app/services/fsform.service.js +25 -26
- package/esm2015/app/validators/validators.js +97 -97
- package/esm2015/firestitch-form.js +5 -27
- package/esm2015/public_api.js +35 -14
- package/fesm2015/firestitch-form.js +2100 -2110
- package/fesm2015/firestitch-form.js.map +1 -1
- package/firestitch-form.d.ts +5 -26
- package/package.json +7 -8
- package/public_api.d.ts +33 -12
- package/styles.scss +4 -4
- package/bundles/firestitch-form.umd.min.js +0 -16
- package/bundles/firestitch-form.umd.min.js.map +0 -1
- package/esm5/app/components/form-dialog-actions/form-dialog-actions.component.js +0 -96
- package/esm5/app/consts/error-messages.const.js +0 -20
- package/esm5/app/directives/form/form.directive.js +0 -709
- package/esm5/app/directives/form-dialog-close.directive.js +0 -34
- package/esm5/app/directives/submit-button.directive.js +0 -144
- package/esm5/app/directives/validators/compare.directive.js +0 -60
- package/esm5/app/directives/validators/control.directive.js +0 -279
- package/esm5/app/directives/validators/daterange.directive.js +0 -50
- package/esm5/app/directives/validators/email.directive.js +0 -50
- package/esm5/app/directives/validators/emails.directive.js +0 -50
- package/esm5/app/directives/validators/function.directive.js +0 -36
- package/esm5/app/directives/validators/greater.directive.js +0 -49
- package/esm5/app/directives/validators/integer.directive.js +0 -50
- package/esm5/app/directives/validators/lesser.directive.js +0 -49
- package/esm5/app/directives/validators/max.directive.js +0 -45
- package/esm5/app/directives/validators/maxlength.directive.js +0 -44
- package/esm5/app/directives/validators/min.directive.js +0 -45
- package/esm5/app/directives/validators/minlength.directive.js +0 -44
- package/esm5/app/directives/validators/numeric.directive.js +0 -50
- package/esm5/app/directives/validators/pattern.directive.js +0 -44
- package/esm5/app/directives/validators/phone.directive.js +0 -50
- package/esm5/app/directives/validators/required.directive.js +0 -88
- package/esm5/app/directives/validators/url.directive.js +0 -56
- package/esm5/app/directives/validators/validate.directive.js +0 -36
- package/esm5/app/enums/confirm-result.js +0 -9
- package/esm5/app/enums/form-status.js +0 -11
- package/esm5/app/fs-form.module.js +0 -110
- package/esm5/app/guards/form-deactivate.guard.js +0 -45
- package/esm5/app/helpers/confirm-result-continue.js +0 -5
- package/esm5/app/helpers/confirm-unsaved.js +0 -70
- package/esm5/app/helpers/get-form-errors.js +0 -28
- package/esm5/app/helpers/index.js +0 -3
- package/esm5/app/helpers/is-enabled.js +0 -4
- package/esm5/app/interfaces/async-validator.js +0 -1
- package/esm5/app/interfaces/confirm-config.js +0 -1
- package/esm5/app/interfaces/confirm-tab-group.js +0 -1
- package/esm5/app/interfaces/form-deactivate.js +0 -1
- package/esm5/app/interfaces/index.js +0 -1
- package/esm5/app/interfaces/submit-event.js +0 -1
- package/esm5/app/interfaces/submitted-event.js +0 -1
- package/esm5/app/interfaces/validator.js +0 -1
- package/esm5/app/providers/validate-messages.provider.js +0 -12
- package/esm5/app/services/fsform.service.js +0 -27
- package/esm5/app/validators/validators.js +0 -102
- package/esm5/firestitch-form.js +0 -27
- package/esm5/public_api.js +0 -14
- package/fesm5/firestitch-form.js +0 -2399
- package/fesm5/firestitch-form.js.map +0 -1
- package/firestitch-form.metadata.json +0 -1
|
@@ -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,10 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FsForm {
|
|
4
|
+
private _eventBus;
|
|
5
|
+
constructor();
|
|
6
|
+
broadcast(key: any, data?: any): void;
|
|
7
|
+
on<T>(key: any): Observable<T>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsForm, never>;
|
|
9
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FsForm>;
|
|
10
|
+
}
|
|
@@ -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
|
+
}
|