@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,21 +1,21 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { MatDialogRef } from '@angular/material/dialog';
3
- import * as i0 from "@angular/core";
4
- export declare class ConfirmUnsavedComponent implements OnInit, OnDestroy {
5
- private _data;
6
- private _dialogRef;
7
- saveLabel: any;
8
- discardLabel: any;
9
- cancelLabel: any;
10
- message: any;
11
- title: any;
12
- private _destroy$;
13
- constructor(_data: any, _dialogRef: MatDialogRef<ConfirmUnsavedComponent>);
14
- ngOnInit(): void;
15
- save(): void;
16
- discard(): void;
17
- cancel(): void;
18
- ngOnDestroy(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmUnsavedComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmUnsavedComponent, "ng-component", never, {}, {}, never, never>;
21
- }
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ConfirmUnsavedComponent implements OnInit, OnDestroy {
5
+ private _data;
6
+ private _dialogRef;
7
+ saveLabel: any;
8
+ discardLabel: any;
9
+ cancelLabel: any;
10
+ message: any;
11
+ title: any;
12
+ private _destroy$;
13
+ constructor(_data: any, _dialogRef: MatDialogRef<ConfirmUnsavedComponent>);
14
+ ngOnInit(): void;
15
+ save(): void;
16
+ discard(): void;
17
+ cancel(): void;
18
+ ngOnDestroy(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmUnsavedComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmUnsavedComponent, "ng-component", never, {}, {}, never, never>;
21
+ }
@@ -1 +1 @@
1
- export * from './confirm-unsaved.component';
1
+ export * from './confirm-unsaved.component';
@@ -1,22 +1,22 @@
1
- import { ChangeDetectorRef, OnDestroy, OnInit } 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
- ngOnDestroy(): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDialogActionsComponent, [{ optional: true; }, { optional: true; }, null]>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<FsFormDialogActionsComponent, "fs-form-dialog-actions", never, { "save": "save"; "create": "create"; "close": "close"; "done": "done"; "closeData": "closeData"; "name": "name"; }, {}, never, ["*"]>;
22
- }
1
+ import { ChangeDetectorRef, OnDestroy, OnInit } 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
+ ngOnDestroy(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDialogActionsComponent, [{ optional: true; }, { optional: true; }, null]>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsFormDialogActionsComponent, "fs-form-dialog-actions", never, { "save": "save"; "create": "create"; "close": "close"; "done": "done"; "closeData": "closeData"; "name": "name"; }, {}, never, ["*"]>;
22
+ }
@@ -1 +1 @@
1
- export * from './form-dialog-actions.component';
1
+ export * from './form-dialog-actions.component';
@@ -1,13 +1,13 @@
1
- import { QueryList, AfterContentInit, TemplateRef } from '@angular/core';
2
- import { NgModel } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export declare class FsFormTemplateComponent implements AfterContentInit {
5
- templateRef: TemplateRef<any>;
6
- formTemplate: any;
7
- models: QueryList<NgModel>;
8
- ngAfterContentInit(): void;
9
- ngOnInit(): void;
10
- constructor();
11
- static ɵfac: i0.ɵɵFactoryDeclaration<FsFormTemplateComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<FsFormTemplateComponent, "fs-form-template", never, { "formTemplate": "formTemplate"; }, {}, ["models"], ["*"]>;
13
- }
1
+ import { QueryList, AfterContentInit, TemplateRef } from '@angular/core';
2
+ import { NgModel } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FsFormTemplateComponent implements AfterContentInit {
5
+ templateRef: TemplateRef<any>;
6
+ formTemplate: any;
7
+ models: QueryList<NgModel>;
8
+ ngAfterContentInit(): void;
9
+ ngOnInit(): void;
10
+ constructor();
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsFormTemplateComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsFormTemplateComponent, "fs-form-template", never, { "formTemplate": "formTemplate"; }, {}, ["models"], ["*"]>;
13
+ }
@@ -1 +1 @@
1
- export * from './form-template.component';
1
+ export * from './form-template.component';
@@ -1,13 +1,13 @@
1
- import { QueryList, AfterContentInit, SimpleChanges, OnChanges } from '@angular/core';
2
- import { NgModel } from '@angular/forms';
3
- import { FsFormTemplateComponent } from '../../components';
4
- import * as i0 from "@angular/core";
5
- export declare class FsFormTemplateOutletComponent implements AfterContentInit, OnChanges {
6
- formTemplate: FsFormTemplateComponent;
7
- models: QueryList<NgModel>;
8
- ngOnChanges(changes: SimpleChanges): void;
9
- ngAfterContentInit(): void;
10
- constructor();
11
- static ɵfac: i0.ɵɵFactoryDeclaration<FsFormTemplateOutletComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<FsFormTemplateOutletComponent, "fs-form-template-outlet", never, { "formTemplate": "formTemplate"; }, {}, ["models"], never>;
13
- }
1
+ import { QueryList, AfterContentInit, SimpleChanges, OnChanges } from '@angular/core';
2
+ import { NgModel } from '@angular/forms';
3
+ import { FsFormTemplateComponent } from '../../components';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FsFormTemplateOutletComponent implements AfterContentInit, OnChanges {
6
+ formTemplate: FsFormTemplateComponent;
7
+ models: QueryList<NgModel>;
8
+ ngOnChanges(changes: SimpleChanges): void;
9
+ ngAfterContentInit(): void;
10
+ constructor();
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsFormTemplateOutletComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<FsFormTemplateOutletComponent, "fs-form-template-outlet", never, { "formTemplate": "formTemplate"; }, {}, ["models"], never>;
13
+ }
@@ -1 +1 @@
1
- export * from './form-template-outlet.component';
1
+ export * from './form-template-outlet.component';
@@ -1,4 +1,4 @@
1
- export * from './confirm-unsaved';
2
- export * from './form-dialog-actions';
3
- export * from './form-template';
4
- export * from './form-template-outlet';
1
+ export * from './confirm-unsaved';
2
+ export * from './form-dialog-actions';
3
+ export * from './form-template';
4
+ export * from './form-template-outlet';
@@ -1,21 +1,21 @@
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
- greaterEqual: string;
20
- lesserEqual: string;
21
- };
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
+ greaterEqual: string;
20
+ lesserEqual: string;
21
+ };
@@ -1,35 +1,35 @@
1
- import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } 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]:not([fsFormButtonStandalone]),[mat-button]:not([fsFormButtonStandalone]),[mat-flat-button]:not([fsFormButtonStandalone]),[mat-stroked-button]:not([fsFormButtonStandalone])", never, { "name": "name"; "dirtySubmit": "dirtySubmit"; "form": "form"; }, {}, never>;
35
- }
1
+ import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } 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]:not([fsFormButtonStandalone]),[mat-button]:not([fsFormButtonStandalone]),[mat-flat-button]:not([fsFormButtonStandalone]),[mat-stroked-button]:not([fsFormButtonStandalone])", never, { "name": "name"; "dirtySubmit": "dirtySubmit"; "form": "form"; }, {}, never>;
35
+ }
@@ -1,122 +1,122 @@
1
- import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, 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 { DrawerRef } from '@firestitch/drawer';
7
- import { FsMessage } from '@firestitch/message';
8
- import { Observable } from 'rxjs';
9
- import { FsForm } from '../../services/fsform.service';
10
- import { FsButtonDirective } from '../button.directive';
11
- import { ConfirmResult } from './../../enums/confirm-result';
12
- import { ConfirmConfig } from './../../interfaces';
13
- import { SubmitEvent } from './../../interfaces/submit-event';
14
- import * as i0 from "@angular/core";
15
- export declare class FsFormDirective implements OnInit, OnDestroy, AfterContentInit, OnChanges {
16
- ngForm: NgForm;
17
- private _form;
18
- private _element;
19
- private _message;
20
- private _ngZone;
21
- private _cdRef;
22
- private _dialogRef;
23
- private _drawerRef;
24
- private _route;
25
- wrapperSelector: string;
26
- messageSelector: string;
27
- hintSelector: string;
28
- labelSelector: string;
29
- autocomplete: boolean;
30
- shortcuts: boolean;
31
- confirm: ConfirmConfig | boolean;
32
- confirmDialog: boolean;
33
- confirmDrawer: boolean;
34
- confirmBrowser: boolean;
35
- confirmTabs: boolean;
36
- dirtySubmitButton: boolean;
37
- set submit(submit$: (event: SubmitEvent) => Observable<any>);
38
- get submit(): (event: SubmitEvent) => Observable<any>;
39
- successDelay: number;
40
- errorDelay: number;
41
- tabGroup: MatTabGroup;
42
- deactivationGuard: boolean;
43
- submitEvent: EventEmitter<SubmitEvent>;
44
- invalid: EventEmitter<SubmitEvent>;
45
- valid: EventEmitter<SubmitEvent>;
46
- submitted: EventEmitter<SubmitEvent>;
47
- reseted: EventEmitter<SubmitEvent>;
48
- cleared: EventEmitter<SubmitEvent>;
49
- fsFormClass: boolean;
50
- private _tabGroups;
51
- private _buttons;
52
- private _registerControl;
53
- private _activeSubmitButton;
54
- private _dialogBackdropEscape;
55
- private _snapshot;
56
- private _activatedRouteConfig;
57
- private _status$;
58
- private _destroy$;
59
- private _confirmed;
60
- private _submit$;
61
- constructor(ngForm: NgForm, _form: FsForm, _element: ElementRef, _message: FsMessage, _ngZone: NgZone, _cdRef: ChangeDetectorRef, _dialogRef: MatDialogRef<any>, _drawerRef: DrawerRef<any>, _route: ActivatedRoute);
62
- get submitting(): boolean;
63
- get validating(): boolean;
64
- get completing(): boolean;
65
- private get _submitEvent();
66
- private get _formValidState$();
67
- private get _formInvalidState$();
68
- private get _submitter();
69
- ngOnInit(): void;
70
- ngOnChanges(changes: SimpleChanges): void;
71
- clearSubmit(): void;
72
- registerSubmit(submit$: () => Observable<any>): void;
73
- ngAfterContentInit(): void;
74
- ngOnDestroy(): void;
75
- createSnapshot(): void;
76
- getSnapshot(): {
77
- [key: string]: any;
78
- };
79
- reset(): void;
80
- clear(): void;
81
- dirty(): void;
82
- triggerSubmit(options?: {
83
- confirmed: boolean;
84
- }): void;
85
- triggerConfirm(): Observable<ConfirmResult>;
86
- enable(): void;
87
- disable(): void;
88
- addButton(button: FsButtonDirective): void;
89
- removeButton(button: FsButtonDirective): void;
90
- validate(): void;
91
- private _listenSubmit;
92
- private _listenFormStatus;
93
- private _listenWindowClose;
94
- private _activeDialog;
95
- private _listenHotKeys;
96
- private _formClose;
97
- private _getActiveSubmitButton;
98
- private _elementInForm;
99
- private _completeSubmit;
100
- private _resetButtons;
101
- private _resetActiveButtons;
102
- private _registerConfirm;
103
- private _registerDrawerClose;
104
- private _registerConfirmDrawerClose;
105
- private _registerConfirmTabs;
106
- private _registerConfirmTabGroups;
107
- private _registerConfirmTabGroup;
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]", ["fsForm"], { "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"; }, ["_tabGroups"]>;
122
- }
1
+ import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, 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 { DrawerRef } from '@firestitch/drawer';
7
+ import { FsMessage } from '@firestitch/message';
8
+ import { Observable } from 'rxjs';
9
+ import { FsForm } from '../../services/fsform.service';
10
+ import { FsButtonDirective } from '../button.directive';
11
+ import { ConfirmResult } from './../../enums/confirm-result';
12
+ import { ConfirmConfig } from './../../interfaces';
13
+ import { SubmitEvent } from './../../interfaces/submit-event';
14
+ import * as i0 from "@angular/core";
15
+ export declare class FsFormDirective implements OnInit, OnDestroy, AfterContentInit, OnChanges {
16
+ ngForm: NgForm;
17
+ private _form;
18
+ private _element;
19
+ private _message;
20
+ private _ngZone;
21
+ private _cdRef;
22
+ private _dialogRef;
23
+ private _drawerRef;
24
+ private _route;
25
+ wrapperSelector: string;
26
+ messageSelector: string;
27
+ hintSelector: string;
28
+ labelSelector: string;
29
+ autocomplete: boolean;
30
+ shortcuts: boolean;
31
+ confirm: ConfirmConfig | boolean;
32
+ confirmDialog: boolean;
33
+ confirmDrawer: boolean;
34
+ confirmBrowser: boolean;
35
+ confirmTabs: boolean;
36
+ dirtySubmitButton: boolean;
37
+ set submit(submit$: (event: SubmitEvent) => Observable<any>);
38
+ get submit(): (event: SubmitEvent) => Observable<any>;
39
+ successDelay: number;
40
+ errorDelay: number;
41
+ tabGroup: MatTabGroup;
42
+ deactivationGuard: boolean;
43
+ submitEvent: EventEmitter<SubmitEvent>;
44
+ invalid: EventEmitter<SubmitEvent>;
45
+ valid: EventEmitter<SubmitEvent>;
46
+ submitted: EventEmitter<SubmitEvent>;
47
+ reseted: EventEmitter<SubmitEvent>;
48
+ cleared: EventEmitter<SubmitEvent>;
49
+ fsFormClass: boolean;
50
+ private _tabGroups;
51
+ private _buttons;
52
+ private _registerControl;
53
+ private _activeSubmitButton;
54
+ private _dialogBackdropEscape;
55
+ private _snapshot;
56
+ private _activatedRouteConfig;
57
+ private _status$;
58
+ private _destroy$;
59
+ private _confirmed;
60
+ private _submit$;
61
+ constructor(ngForm: NgForm, _form: FsForm, _element: ElementRef, _message: FsMessage, _ngZone: NgZone, _cdRef: ChangeDetectorRef, _dialogRef: MatDialogRef<any>, _drawerRef: DrawerRef<any>, _route: ActivatedRoute);
62
+ get submitting(): boolean;
63
+ get validating(): boolean;
64
+ get completing(): boolean;
65
+ private get _submitEvent();
66
+ private get _formValidState$();
67
+ private get _formInvalidState$();
68
+ private get _submitter();
69
+ ngOnInit(): void;
70
+ ngOnChanges(changes: SimpleChanges): void;
71
+ clearSubmit(): void;
72
+ registerSubmit(submit$: () => Observable<any>): void;
73
+ ngAfterContentInit(): void;
74
+ ngOnDestroy(): void;
75
+ createSnapshot(): void;
76
+ getSnapshot(): {
77
+ [key: string]: any;
78
+ };
79
+ reset(): void;
80
+ clear(): void;
81
+ dirty(): void;
82
+ triggerSubmit(options?: {
83
+ confirmed: boolean;
84
+ }): void;
85
+ triggerConfirm(): Observable<ConfirmResult>;
86
+ enable(): void;
87
+ disable(): void;
88
+ addButton(button: FsButtonDirective): void;
89
+ removeButton(button: FsButtonDirective): void;
90
+ validate(): void;
91
+ private _listenSubmit;
92
+ private _listenFormStatus;
93
+ private _listenWindowClose;
94
+ private _activeDialog;
95
+ private _listenHotKeys;
96
+ private _formClose;
97
+ private _getActiveSubmitButton;
98
+ private _elementInForm;
99
+ private _completeSubmit;
100
+ private _resetButtons;
101
+ private _resetActiveButtons;
102
+ private _registerConfirm;
103
+ private _registerDrawerClose;
104
+ private _registerConfirmDrawerClose;
105
+ private _registerConfirmTabs;
106
+ private _registerConfirmTabGroups;
107
+ private _registerConfirmTabGroup;
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]", ["fsForm"], { "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"; }, ["_tabGroups"]>;
122
+ }
@@ -1 +1 @@
1
- export * from './form.directive';
1
+ export * from './form.directive';
@@ -1,16 +1,16 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { MatDialogRef } from '@angular/material/dialog';
3
- import { FsFormDirective } from './form';
4
- import * as i0 from "@angular/core";
5
- export declare class FsFormDialogCloseDirective implements OnDestroy {
6
- private _form;
7
- private _dialogRef;
8
- closeData: any;
9
- type: string;
10
- private _destroy$;
11
- constructor(_form: FsFormDirective, _dialogRef: MatDialogRef<any>);
12
- closeClick(): void;
13
- ngOnDestroy(): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDialogCloseDirective, [{ optional: true; }, { optional: true; }]>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormDialogCloseDirective, "[fsFormDialogClose],[fs-form-dialog-close]", never, { "closeData": "closeData"; }, {}, never>;
16
- }
1
+ import { OnDestroy } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { FsFormDirective } from './form';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FsFormDialogCloseDirective implements OnDestroy {
6
+ private _form;
7
+ private _dialogRef;
8
+ closeData: any;
9
+ type: string;
10
+ private _destroy$;
11
+ constructor(_form: FsFormDirective, _dialogRef: MatDialogRef<any>);
12
+ closeClick(): void;
13
+ ngOnDestroy(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsFormDialogCloseDirective, [{ optional: true; }, { optional: true; }]>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormDialogCloseDirective, "[fsFormDialogClose],[fs-form-dialog-close]", never, { "closeData": "closeData"; }, {}, never>;
16
+ }
@@ -1,10 +1,10 @@
1
- import { AfterContentInit, QueryList } from '@angular/core';
2
- import { NgModel } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export declare class FsFormTemplateDirective implements AfterContentInit {
5
- constructor();
6
- models: QueryList<NgModel>;
7
- ngAfterContentInit(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<FsFormTemplateDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormTemplateDirective, "[fsFormTemplate]", never, {}, {}, never>;
10
- }
1
+ import { AfterContentInit, QueryList } from '@angular/core';
2
+ import { NgModel } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class FsFormTemplateDirective implements AfterContentInit {
5
+ constructor();
6
+ models: QueryList<NgModel>;
7
+ ngAfterContentInit(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsFormTemplateDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FsFormTemplateDirective, "[fsFormTemplate]", never, {}, {}, never>;
10
+ }
@@ -1,6 +1,6 @@
1
- export * from './button.directive';
2
- export * from './form';
3
- export * from './form-dialog-close.directive';
4
- export * from './form-template.directive';
5
- export * from './submit-button.directive';
6
- export * from './validators';
1
+ export * from './button.directive';
2
+ export * from './form';
3
+ export * from './form-dialog-close.directive';
4
+ export * from './form-template.directive';
5
+ export * from './submit-button.directive';
6
+ export * from './validators';
@@ -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
+ }