@firestitch/form 13.3.7 → 13.3.9

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.
Files changed (129) hide show
  1. package/app/components/confirm-unsaved/confirm-unsaved.component.d.ts +21 -21
  2. package/app/components/confirm-unsaved/index.d.ts +1 -1
  3. package/app/components/form-dialog-actions/form-dialog-actions.component.d.ts +22 -22
  4. package/app/components/form-dialog-actions/index.d.ts +1 -1
  5. package/app/components/form-template/form-template.component.d.ts +13 -13
  6. package/app/components/form-template/index.d.ts +1 -1
  7. package/app/components/form-template-outlet/form-template-outlet.component.d.ts +13 -13
  8. package/app/components/form-template-outlet/index.d.ts +1 -1
  9. package/app/components/index.d.ts +4 -4
  10. package/app/consts/error-messages.const.d.ts +21 -21
  11. package/app/directives/button.directive.d.ts +35 -35
  12. package/app/directives/form/form.directive.d.ts +122 -122
  13. package/app/directives/form/index.d.ts +1 -1
  14. package/app/directives/form-dialog-close.directive.d.ts +16 -16
  15. package/app/directives/form-template.directive.d.ts +10 -10
  16. package/app/directives/index.d.ts +6 -6
  17. package/app/directives/submit-button.directive.d.ts +6 -6
  18. package/app/directives/validators/compare.directive.d.ts +15 -15
  19. package/app/directives/validators/control.directive.d.ts +49 -49
  20. package/app/directives/validators/daterange.directive.d.ts +13 -13
  21. package/app/directives/validators/email.directive.d.ts +13 -13
  22. package/app/directives/validators/emails.directive.d.ts +13 -13
  23. package/app/directives/validators/function.directive.d.ts +15 -15
  24. package/app/directives/validators/greater-equal.directive.d.ts +13 -13
  25. package/app/directives/validators/greater.directive.d.ts +13 -13
  26. package/app/directives/validators/index.d.ts +22 -22
  27. package/app/directives/validators/integer.directive.d.ts +13 -13
  28. package/app/directives/validators/lesser-equal.directive.d.ts +13 -13
  29. package/app/directives/validators/lesser.directive.d.ts +13 -13
  30. package/app/directives/validators/max.directive.d.ts +13 -13
  31. package/app/directives/validators/maxlength.directive.d.ts +13 -13
  32. package/app/directives/validators/min.directive.d.ts +13 -13
  33. package/app/directives/validators/minlength.directive.d.ts +13 -13
  34. package/app/directives/validators/no-fs-validators.directive.d.ts +14 -14
  35. package/app/directives/validators/numeric.directive.d.ts +13 -13
  36. package/app/directives/validators/pattern.directive.d.ts +13 -13
  37. package/app/directives/validators/phone.directive.d.ts +13 -13
  38. package/app/directives/validators/required.directive.d.ts +16 -16
  39. package/app/directives/validators/url.directive.d.ts +14 -14
  40. package/app/directives/validators/validate.directive.d.ts +15 -15
  41. package/app/enums/confirm-result.d.ts +7 -7
  42. package/app/enums/form-status.d.ts +10 -10
  43. package/app/enums/index.d.ts +2 -2
  44. package/app/fs-form.module.d.ts +44 -44
  45. package/app/guards/form-deactivate.guard.d.ts +12 -12
  46. package/app/helpers/confirm-result-continue.d.ts +1 -1
  47. package/app/helpers/get-active-route.d.ts +2 -2
  48. package/app/helpers/get-form-errors.d.ts +2 -2
  49. package/app/helpers/index.d.ts +1 -1
  50. package/app/helpers/is-enabled.d.ts +1 -1
  51. package/app/interfaces/async-validator.d.ts +14 -14
  52. package/app/interfaces/confirm-config.d.ts +7 -7
  53. package/app/interfaces/confirm-tab-group.d.ts +10 -10
  54. package/app/interfaces/index.d.ts +4 -4
  55. package/app/interfaces/submit-event.d.ts +6 -6
  56. package/app/interfaces/submitted-event.d.ts +7 -7
  57. package/app/interfaces/validator.d.ts +13 -13
  58. package/app/providers/validate-messages.provider.d.ts +27 -27
  59. package/app/services/fsform.service.d.ts +20 -20
  60. package/app/validators/validators.d.ts +12 -12
  61. package/esm2020/app/components/confirm-unsaved/confirm-unsaved.component.mjs +43 -43
  62. package/esm2020/app/components/confirm-unsaved/index.mjs +1 -1
  63. package/esm2020/app/components/form-dialog-actions/form-dialog-actions.component.mjs +74 -74
  64. package/esm2020/app/components/form-dialog-actions/index.mjs +1 -1
  65. package/esm2020/app/components/form-template/form-template.component.mjs +31 -31
  66. package/esm2020/app/components/form-template/index.mjs +2 -2
  67. package/esm2020/app/components/form-template-outlet/form-template-outlet.component.mjs +30 -30
  68. package/esm2020/app/components/form-template-outlet/index.mjs +2 -2
  69. package/esm2020/app/components/index.mjs +4 -4
  70. package/esm2020/app/consts/error-messages.const.mjs +21 -21
  71. package/esm2020/app/directives/button.directive.mjs +151 -151
  72. package/esm2020/app/directives/form/form.directive.mjs +692 -689
  73. package/esm2020/app/directives/form/index.mjs +1 -1
  74. package/esm2020/app/directives/form-dialog-close.directive.mjs +53 -53
  75. package/esm2020/app/directives/form-template.directive.mjs +19 -19
  76. package/esm2020/app/directives/index.mjs +6 -6
  77. package/esm2020/app/directives/submit-button.directive.mjs +13 -13
  78. package/esm2020/app/directives/validators/compare.directive.mjs +46 -46
  79. package/esm2020/app/directives/validators/control.directive.mjs +257 -257
  80. package/esm2020/app/directives/validators/daterange.directive.mjs +40 -40
  81. package/esm2020/app/directives/validators/email.directive.mjs +40 -40
  82. package/esm2020/app/directives/validators/emails.directive.mjs +40 -40
  83. package/esm2020/app/directives/validators/function.directive.mjs +40 -40
  84. package/esm2020/app/directives/validators/greater-equal.directive.mjs +39 -39
  85. package/esm2020/app/directives/validators/greater.directive.mjs +39 -39
  86. package/esm2020/app/directives/validators/index.mjs +22 -22
  87. package/esm2020/app/directives/validators/integer.directive.mjs +38 -38
  88. package/esm2020/app/directives/validators/lesser-equal.directive.mjs +39 -39
  89. package/esm2020/app/directives/validators/lesser.directive.mjs +39 -39
  90. package/esm2020/app/directives/validators/max.directive.mjs +35 -35
  91. package/esm2020/app/directives/validators/maxlength.directive.mjs +34 -34
  92. package/esm2020/app/directives/validators/min.directive.mjs +35 -35
  93. package/esm2020/app/directives/validators/minlength.directive.mjs +34 -34
  94. package/esm2020/app/directives/validators/no-fs-validators.directive.mjs +52 -52
  95. package/esm2020/app/directives/validators/numeric.directive.mjs +40 -40
  96. package/esm2020/app/directives/validators/pattern.directive.mjs +34 -34
  97. package/esm2020/app/directives/validators/phone.directive.mjs +40 -40
  98. package/esm2020/app/directives/validators/required.directive.mjs +68 -68
  99. package/esm2020/app/directives/validators/url.directive.mjs +44 -44
  100. package/esm2020/app/directives/validators/validate.directive.mjs +42 -42
  101. package/esm2020/app/enums/confirm-result.mjs +8 -8
  102. package/esm2020/app/enums/form-status.mjs +11 -11
  103. package/esm2020/app/enums/index.mjs +2 -2
  104. package/esm2020/app/fs-form.module.mjs +210 -210
  105. package/esm2020/app/guards/form-deactivate.guard.mjs +41 -41
  106. package/esm2020/app/helpers/confirm-result-continue.mjs +4 -4
  107. package/esm2020/app/helpers/get-active-route.mjs +6 -6
  108. package/esm2020/app/helpers/get-form-errors.mjs +24 -24
  109. package/esm2020/app/helpers/index.mjs +1 -1
  110. package/esm2020/app/helpers/is-enabled.mjs +3 -3
  111. package/esm2020/app/interfaces/async-validator.mjs +1 -1
  112. package/esm2020/app/interfaces/confirm-config.mjs +1 -1
  113. package/esm2020/app/interfaces/confirm-tab-group.mjs +1 -1
  114. package/esm2020/app/interfaces/index.mjs +4 -4
  115. package/esm2020/app/interfaces/submit-event.mjs +1 -1
  116. package/esm2020/app/interfaces/submitted-event.mjs +1 -1
  117. package/esm2020/app/interfaces/validator.mjs +1 -1
  118. package/esm2020/app/providers/validate-messages.provider.mjs +10 -10
  119. package/esm2020/app/services/fsform.service.mjs +91 -91
  120. package/esm2020/app/validators/validators.mjs +92 -92
  121. package/esm2020/firestitch-form.mjs +4 -4
  122. package/esm2020/public_api.mjs +36 -36
  123. package/fesm2015/firestitch-form.mjs +2452 -2450
  124. package/fesm2015/firestitch-form.mjs.map +1 -1
  125. package/fesm2020/firestitch-form.mjs +2439 -2436
  126. package/fesm2020/firestitch-form.mjs.map +1 -1
  127. package/firestitch-form.d.ts +5 -5
  128. package/package.json +1 -1
  129. package/public_api.d.ts +34 -34
@@ -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 { FsValidator } from '../../interfaces/validator';
4
- import { FsControlDirective } from './control.directive';
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 { FsValidator } from '../../interfaces/validator';
4
+ import { FsControlDirective } from './control.directive';
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 { FsValidator } from '../../interfaces/validator';
4
- import { FsControlDirective } from './control.directive';
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 { FsValidator } from '../../interfaces/validator';
4
+ import { FsControlDirective } from './control.directive';
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
+ }
@@ -1,2 +1,2 @@
1
- export * from './confirm-result';
2
- export * from './form-status';
1
+ export * from './confirm-result';
2
+ export * from './form-status';
@@ -1,44 +1,44 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "./directives/form/form.directive";
4
- import * as i2 from "./directives/validators/control.directive";
5
- import * as i3 from "./directives/validators/required.directive";
6
- import * as i4 from "./directives/validators/min.directive";
7
- import * as i5 from "./directives/validators/max.directive";
8
- import * as i6 from "./directives/validators/minlength.directive";
9
- import * as i7 from "./directives/validators/maxlength.directive";
10
- import * as i8 from "./directives/validators/email.directive";
11
- import * as i9 from "./directives/validators/emails.directive";
12
- import * as i10 from "./directives/validators/phone.directive";
13
- import * as i11 from "./directives/validators/compare.directive";
14
- import * as i12 from "./directives/validators/integer.directive";
15
- import * as i13 from "./directives/validators/numeric.directive";
16
- import * as i14 from "./directives/validators/pattern.directive";
17
- import * as i15 from "./directives/validators/function.directive";
18
- import * as i16 from "./directives/validators/daterange.directive";
19
- import * as i17 from "./directives/validators/greater.directive";
20
- import * as i18 from "./directives/validators/greater-equal.directive";
21
- import * as i19 from "./directives/validators/lesser.directive";
22
- import * as i20 from "./directives/validators/lesser-equal.directive";
23
- import * as i21 from "./directives/validators/url.directive";
24
- import * as i22 from "./directives/form-dialog-close.directive";
25
- import * as i23 from "./directives/validators/validate.directive";
26
- import * as i24 from "./components/form-dialog-actions/form-dialog-actions.component";
27
- import * as i25 from "./directives/validators/no-fs-validators.directive";
28
- import * as i26 from "./directives/button.directive";
29
- import * as i27 from "./directives/submit-button.directive";
30
- import * as i28 from "./components/form-template/form-template.component";
31
- import * as i29 from "./directives/form-template.directive";
32
- import * as i30 from "./components/form-template-outlet/form-template-outlet.component";
33
- import * as i31 from "./components/confirm-unsaved/confirm-unsaved.component";
34
- import * as i32 from "@angular/common";
35
- import * as i33 from "@angular/forms";
36
- import * as i34 from "@angular/material/button";
37
- import * as i35 from "@angular/material/dialog";
38
- import * as i36 from "@firestitch/dialog";
39
- export declare class FsFormModule {
40
- static forRoot(): ModuleWithProviders<FsFormModule>;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<FsFormModule, never>;
42
- static ɵmod: i0.ɵɵNgModuleDeclaration<FsFormModule, [typeof i1.FsFormDirective, typeof i2.FsControlDirective, typeof i3.FsFormRequiredDirective, typeof i4.FsFormMinDirective, typeof i5.FsFormMaxDirective, typeof i6.FsFormMinLengthDirective, typeof i7.FsFormMaxLengthDirective, typeof i8.FsFormEmailDirective, typeof i9.FsFormEmailsDirective, typeof i10.FsFormPhoneDirective, typeof i11.FsFormCompareDirective, typeof i12.FsFormIntegerDirective, typeof i13.FsFormNumericDirective, typeof i14.FsFormPatternDirective, typeof i15.FsFormFunctionDirective, typeof i16.FsFormDateRangeDirective, typeof i17.FsFormGreaterDirective, typeof i18.FsFormGreaterEqualDirective, typeof i19.FsFormLesserDirective, typeof i20.FsFormLesserEqualDirective, typeof i21.FsFormUrlDirective, typeof i22.FsFormDialogCloseDirective, typeof i23.FsFormValidateDirective, typeof i24.FsFormDialogActionsComponent, typeof i25.FsFormNoFsValidatorsDirective, typeof i26.FsButtonDirective, typeof i27.FsSubmitButtonDirective, typeof i28.FsFormTemplateComponent, typeof i29.FsFormTemplateDirective, typeof i30.FsFormTemplateOutletComponent, typeof i31.ConfirmUnsavedComponent], [typeof i32.CommonModule, typeof i33.FormsModule, typeof i34.MatButtonModule, typeof i35.MatDialogModule, typeof i35.MatDialogModule, typeof i36.FsDialogModule], [typeof i1.FsFormDirective, typeof i2.FsControlDirective, typeof i3.FsFormRequiredDirective, typeof i4.FsFormMinDirective, typeof i5.FsFormMaxDirective, typeof i6.FsFormMinLengthDirective, typeof i7.FsFormMaxLengthDirective, typeof i8.FsFormEmailDirective, typeof i9.FsFormEmailsDirective, typeof i10.FsFormPhoneDirective, typeof i11.FsFormCompareDirective, typeof i12.FsFormIntegerDirective, typeof i13.FsFormNumericDirective, typeof i14.FsFormPatternDirective, typeof i15.FsFormFunctionDirective, typeof i16.FsFormDateRangeDirective, typeof i17.FsFormGreaterDirective, typeof i18.FsFormGreaterEqualDirective, typeof i19.FsFormLesserDirective, typeof i20.FsFormLesserEqualDirective, typeof i21.FsFormUrlDirective, typeof i22.FsFormDialogCloseDirective, typeof i23.FsFormValidateDirective, typeof i24.FsFormDialogActionsComponent, typeof i25.FsFormNoFsValidatorsDirective, typeof i26.FsButtonDirective, typeof i27.FsSubmitButtonDirective, typeof i28.FsFormTemplateComponent, typeof i29.FsFormTemplateDirective, typeof i30.FsFormTemplateOutletComponent]>;
43
- static ɵinj: i0.ɵɵInjectorDeclaration<FsFormModule>;
44
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ import * as i1 from "./directives/form/form.directive";
4
+ import * as i2 from "./directives/validators/control.directive";
5
+ import * as i3 from "./directives/validators/required.directive";
6
+ import * as i4 from "./directives/validators/min.directive";
7
+ import * as i5 from "./directives/validators/max.directive";
8
+ import * as i6 from "./directives/validators/minlength.directive";
9
+ import * as i7 from "./directives/validators/maxlength.directive";
10
+ import * as i8 from "./directives/validators/email.directive";
11
+ import * as i9 from "./directives/validators/emails.directive";
12
+ import * as i10 from "./directives/validators/phone.directive";
13
+ import * as i11 from "./directives/validators/compare.directive";
14
+ import * as i12 from "./directives/validators/integer.directive";
15
+ import * as i13 from "./directives/validators/numeric.directive";
16
+ import * as i14 from "./directives/validators/pattern.directive";
17
+ import * as i15 from "./directives/validators/function.directive";
18
+ import * as i16 from "./directives/validators/daterange.directive";
19
+ import * as i17 from "./directives/validators/greater.directive";
20
+ import * as i18 from "./directives/validators/greater-equal.directive";
21
+ import * as i19 from "./directives/validators/lesser.directive";
22
+ import * as i20 from "./directives/validators/lesser-equal.directive";
23
+ import * as i21 from "./directives/validators/url.directive";
24
+ import * as i22 from "./directives/form-dialog-close.directive";
25
+ import * as i23 from "./directives/validators/validate.directive";
26
+ import * as i24 from "./components/form-dialog-actions/form-dialog-actions.component";
27
+ import * as i25 from "./directives/validators/no-fs-validators.directive";
28
+ import * as i26 from "./directives/button.directive";
29
+ import * as i27 from "./directives/submit-button.directive";
30
+ import * as i28 from "./components/form-template/form-template.component";
31
+ import * as i29 from "./directives/form-template.directive";
32
+ import * as i30 from "./components/form-template-outlet/form-template-outlet.component";
33
+ import * as i31 from "./components/confirm-unsaved/confirm-unsaved.component";
34
+ import * as i32 from "@angular/common";
35
+ import * as i33 from "@angular/forms";
36
+ import * as i34 from "@angular/material/button";
37
+ import * as i35 from "@angular/material/dialog";
38
+ import * as i36 from "@firestitch/dialog";
39
+ export declare class FsFormModule {
40
+ static forRoot(): ModuleWithProviders<FsFormModule>;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsFormModule, never>;
42
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FsFormModule, [typeof i1.FsFormDirective, typeof i2.FsControlDirective, typeof i3.FsFormRequiredDirective, typeof i4.FsFormMinDirective, typeof i5.FsFormMaxDirective, typeof i6.FsFormMinLengthDirective, typeof i7.FsFormMaxLengthDirective, typeof i8.FsFormEmailDirective, typeof i9.FsFormEmailsDirective, typeof i10.FsFormPhoneDirective, typeof i11.FsFormCompareDirective, typeof i12.FsFormIntegerDirective, typeof i13.FsFormNumericDirective, typeof i14.FsFormPatternDirective, typeof i15.FsFormFunctionDirective, typeof i16.FsFormDateRangeDirective, typeof i17.FsFormGreaterDirective, typeof i18.FsFormGreaterEqualDirective, typeof i19.FsFormLesserDirective, typeof i20.FsFormLesserEqualDirective, typeof i21.FsFormUrlDirective, typeof i22.FsFormDialogCloseDirective, typeof i23.FsFormValidateDirective, typeof i24.FsFormDialogActionsComponent, typeof i25.FsFormNoFsValidatorsDirective, typeof i26.FsButtonDirective, typeof i27.FsSubmitButtonDirective, typeof i28.FsFormTemplateComponent, typeof i29.FsFormTemplateDirective, typeof i30.FsFormTemplateOutletComponent, typeof i31.ConfirmUnsavedComponent], [typeof i32.CommonModule, typeof i33.FormsModule, typeof i34.MatButtonModule, typeof i35.MatDialogModule, typeof i35.MatDialogModule, typeof i36.FsDialogModule], [typeof i1.FsFormDirective, typeof i2.FsControlDirective, typeof i3.FsFormRequiredDirective, typeof i4.FsFormMinDirective, typeof i5.FsFormMaxDirective, typeof i6.FsFormMinLengthDirective, typeof i7.FsFormMaxLengthDirective, typeof i8.FsFormEmailDirective, typeof i9.FsFormEmailsDirective, typeof i10.FsFormPhoneDirective, typeof i11.FsFormCompareDirective, typeof i12.FsFormIntegerDirective, typeof i13.FsFormNumericDirective, typeof i14.FsFormPatternDirective, typeof i15.FsFormFunctionDirective, typeof i16.FsFormDateRangeDirective, typeof i17.FsFormGreaterDirective, typeof i18.FsFormGreaterEqualDirective, typeof i19.FsFormLesserDirective, typeof i20.FsFormLesserEqualDirective, typeof i21.FsFormUrlDirective, typeof i22.FsFormDialogCloseDirective, typeof i23.FsFormValidateDirective, typeof i24.FsFormDialogActionsComponent, typeof i25.FsFormNoFsValidatorsDirective, typeof i26.FsButtonDirective, typeof i27.FsSubmitButtonDirective, typeof i28.FsFormTemplateComponent, typeof i29.FsFormTemplateDirective, typeof i30.FsFormTemplateOutletComponent]>;
43
+ static ɵinj: i0.ɵɵInjectorDeclaration<FsFormModule>;
44
+ }
@@ -1,12 +1,12 @@
1
- import { ActivatedRoute, CanDeactivate } from '@angular/router';
2
- import { Observable } from 'rxjs';
3
- import { FsForm } from '../services/fsform.service';
4
- import * as i0 from "@angular/core";
5
- export declare class FormDeactivateGuard implements CanDeactivate<any> {
6
- private _form;
7
- private _route;
8
- constructor(_form: FsForm, _route: ActivatedRoute);
9
- canDeactivate(): Observable<boolean>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<FormDeactivateGuard, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<FormDeactivateGuard>;
12
- }
1
+ import { ActivatedRoute, CanDeactivate } from '@angular/router';
2
+ import { Observable } from 'rxjs';
3
+ import { FsForm } from '../services/fsform.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FormDeactivateGuard implements CanDeactivate<any> {
6
+ private _form;
7
+ private _route;
8
+ constructor(_form: FsForm, _route: ActivatedRoute);
9
+ canDeactivate(): Observable<boolean>;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormDeactivateGuard, never>;
11
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormDeactivateGuard>;
12
+ }
@@ -1 +1 @@
1
- export declare function confirmResultContinue(result: any): boolean;
1
+ export declare function confirmResultContinue(result: any): boolean;
@@ -1,2 +1,2 @@
1
- import { ActivatedRoute } from '@angular/router';
2
- export declare function getActiveRoute(route: ActivatedRoute): ActivatedRoute;
1
+ import { ActivatedRoute } from '@angular/router';
2
+ export declare function getActiveRoute(route: ActivatedRoute): ActivatedRoute;
@@ -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;
@@ -1 +1 @@
1
- export * from './confirm-result-continue';
1
+ export * from './confirm-result-continue';
@@ -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
- 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,6 +1,6 @@
1
- import { NgForm } from '@angular/forms';
2
- export interface SubmitEvent {
3
- ngForm: NgForm;
4
- submitter: string;
5
- confirmed?: boolean;
6
- }
1
+ import { NgForm } from '@angular/forms';
2
+ export interface SubmitEvent {
3
+ ngForm: NgForm;
4
+ submitter: string;
5
+ confirmed?: boolean;
6
+ }
@@ -1,7 +1,7 @@
1
- import { NgForm } from '@angular/forms';
2
- export interface SubmittedEvent {
3
- ngForm: NgForm;
4
- submitter: string;
5
- response: any;
6
- confirmed?: boolean;
7
- }
1
+ import { NgForm } from '@angular/forms';
2
+ export interface SubmittedEvent {
3
+ ngForm: NgForm;
4
+ submitter: string;
5
+ response: any;
6
+ confirmed?: boolean;
7
+ }
@@ -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,27 +1,27 @@
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
- greaterEqual: string;
26
- lesserEqual: string;
27
- };
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
+ greaterEqual: string;
26
+ lesserEqual: string;
27
+ };
@@ -1,20 +1,20 @@
1
- import { Type } from '@angular/core';
2
- import { MatDialog } from '@angular/material/dialog';
3
- import { Observable } from 'rxjs';
4
- import { FsFormDirective } from '../directives/form/form.directive';
5
- import { ConfirmResult } from '../enums';
6
- import * as i0 from "@angular/core";
7
- export declare class FsForm {
8
- private _dialog;
9
- private _formDirectiveStore;
10
- private _eventBus;
11
- constructor(_dialog: MatDialog);
12
- broadcast(key: any, data?: any): void;
13
- on<T>(key: any): Observable<T>;
14
- registerFormDirective(routeComponent: Type<any>, directive: FsFormDirective): void;
15
- getFormDirectives(routeComponent: any): FsFormDirective[];
16
- removeFormDirective(routeComponent: any): void;
17
- confirmUnsaved(directives: FsFormDirective[]): Observable<ConfirmResult>;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<FsForm, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<FsForm>;
20
- }
1
+ import { Type } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { Observable } from 'rxjs';
4
+ import { FsFormDirective } from '../directives/form/form.directive';
5
+ import { ConfirmResult } from '../enums';
6
+ import * as i0 from "@angular/core";
7
+ export declare class FsForm {
8
+ private _dialog;
9
+ private _formDirectiveStore;
10
+ private _eventBus;
11
+ constructor(_dialog: MatDialog);
12
+ broadcast(key: any, data?: any): void;
13
+ on<T>(key: any): Observable<T>;
14
+ registerFormDirective(routeComponent: Type<any>, directive: FsFormDirective): void;
15
+ getFormDirectives(routeComponent: any): FsFormDirective[];
16
+ removeFormDirective(routeComponent: any): void;
17
+ confirmUnsaved(directives: FsFormDirective[]): Observable<ConfirmResult>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsForm, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<FsForm>;
20
+ }
@@ -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
+ }