@firestitch/form 9.7.4 → 12.0.0

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 (152) hide show
  1. package/app/components/form-dialog-actions/form-dialog-actions.component.d.ts +21 -18
  2. package/app/consts/error-messages.const.d.ts +19 -19
  3. package/app/directives/form/form.directive.d.ts +105 -102
  4. package/app/directives/form-dialog-close.directive.d.ts +12 -9
  5. package/app/directives/submit-button.directive.d.ts +31 -28
  6. package/app/directives/validators/compare.directive.d.ts +15 -12
  7. package/app/directives/validators/control.directive.d.ts +48 -45
  8. package/app/directives/validators/daterange.directive.d.ts +13 -10
  9. package/app/directives/validators/email.directive.d.ts +13 -10
  10. package/app/directives/validators/emails.directive.d.ts +13 -10
  11. package/app/directives/validators/function.directive.d.ts +14 -11
  12. package/app/directives/validators/greater.directive.d.ts +13 -10
  13. package/app/directives/validators/integer.directive.d.ts +13 -10
  14. package/app/directives/validators/lesser.directive.d.ts +13 -10
  15. package/app/directives/validators/max.directive.d.ts +13 -10
  16. package/app/directives/validators/maxlength.directive.d.ts +13 -10
  17. package/app/directives/validators/min.directive.d.ts +13 -10
  18. package/app/directives/validators/minlength.directive.d.ts +13 -10
  19. package/app/directives/validators/numeric.directive.d.ts +13 -10
  20. package/app/directives/validators/pattern.directive.d.ts +13 -10
  21. package/app/directives/validators/phone.directive.d.ts +13 -10
  22. package/app/directives/validators/required.directive.d.ts +16 -13
  23. package/app/directives/validators/url.directive.d.ts +14 -11
  24. package/app/directives/validators/validate.directive.d.ts +14 -11
  25. package/app/enums/confirm-result.d.ts +7 -7
  26. package/app/enums/form-status.d.ts +9 -9
  27. package/app/fs-form.module.d.ts +35 -4
  28. package/app/guards/form-deactivate.guard.d.ts +12 -9
  29. package/app/helpers/confirm-result-continue.d.ts +1 -1
  30. package/app/helpers/confirm-unsaved.d.ts +5 -5
  31. package/app/helpers/get-form-errors.d.ts +2 -2
  32. package/app/helpers/index.d.ts +2 -2
  33. package/app/helpers/is-enabled.d.ts +1 -1
  34. package/app/interfaces/async-validator.d.ts +14 -14
  35. package/app/interfaces/confirm-config.d.ts +7 -7
  36. package/app/interfaces/confirm-tab-group.d.ts +10 -10
  37. package/app/interfaces/form-deactivate.d.ts +4 -4
  38. package/app/interfaces/index.d.ts +4 -4
  39. package/app/interfaces/submit-event.d.ts +5 -5
  40. package/app/interfaces/submitted-event.d.ts +6 -6
  41. package/app/interfaces/validator.d.ts +13 -13
  42. package/app/providers/validate-messages.provider.d.ts +25 -25
  43. package/app/services/fsform.service.d.ts +10 -7
  44. package/app/validators/validators.d.ts +12 -12
  45. package/bundles/firestitch-form.umd.js +2672 -2545
  46. package/bundles/firestitch-form.umd.js.map +1 -1
  47. package/esm2015/app/components/form-dialog-actions/form-dialog-actions.component.js +86 -91
  48. package/esm2015/app/consts/error-messages.const.js +20 -20
  49. package/esm2015/app/directives/form/form.directive.js +619 -668
  50. package/esm2015/app/directives/form-dialog-close.directive.js +31 -33
  51. package/esm2015/app/directives/submit-button.directive.js +131 -138
  52. package/esm2015/app/directives/validators/compare.directive.js +49 -49
  53. package/esm2015/app/directives/validators/control.directive.js +257 -273
  54. package/esm2015/app/directives/validators/daterange.directive.js +41 -41
  55. package/esm2015/app/directives/validators/email.directive.js +41 -41
  56. package/esm2015/app/directives/validators/emails.directive.js +41 -41
  57. package/esm2015/app/directives/validators/function.directive.js +31 -31
  58. package/esm2015/app/directives/validators/greater.directive.js +40 -40
  59. package/esm2015/app/directives/validators/integer.directive.js +41 -41
  60. package/esm2015/app/directives/validators/lesser.directive.js +40 -40
  61. package/esm2015/app/directives/validators/max.directive.js +36 -36
  62. package/esm2015/app/directives/validators/maxlength.directive.js +35 -35
  63. package/esm2015/app/directives/validators/min.directive.js +36 -36
  64. package/esm2015/app/directives/validators/minlength.directive.js +35 -35
  65. package/esm2015/app/directives/validators/numeric.directive.js +41 -41
  66. package/esm2015/app/directives/validators/pattern.directive.js +35 -35
  67. package/esm2015/app/directives/validators/phone.directive.js +41 -41
  68. package/esm2015/app/directives/validators/required.directive.js +71 -73
  69. package/esm2015/app/directives/validators/url.directive.js +47 -49
  70. package/esm2015/app/directives/validators/validate.directive.js +33 -31
  71. package/esm2015/app/enums/confirm-result.js +9 -9
  72. package/esm2015/app/enums/form-status.js +11 -11
  73. package/esm2015/app/fs-form.module.js +165 -106
  74. package/esm2015/app/guards/form-deactivate.guard.js +40 -44
  75. package/esm2015/app/helpers/confirm-result-continue.js +5 -5
  76. package/esm2015/app/helpers/confirm-unsaved.js +70 -70
  77. package/esm2015/app/helpers/get-form-errors.js +25 -25
  78. package/esm2015/app/helpers/index.js +3 -3
  79. package/esm2015/app/helpers/is-enabled.js +4 -4
  80. package/esm2015/app/interfaces/async-validator.js +2 -1
  81. package/esm2015/app/interfaces/confirm-config.js +2 -1
  82. package/esm2015/app/interfaces/confirm-tab-group.js +2 -1
  83. package/esm2015/app/interfaces/form-deactivate.js +2 -1
  84. package/esm2015/app/interfaces/index.js +5 -1
  85. package/esm2015/app/interfaces/submit-event.js +2 -1
  86. package/esm2015/app/interfaces/submitted-event.js +2 -1
  87. package/esm2015/app/interfaces/validator.js +2 -1
  88. package/esm2015/app/providers/validate-messages.provider.js +11 -11
  89. package/esm2015/app/services/fsform.service.js +25 -26
  90. package/esm2015/app/validators/validators.js +97 -97
  91. package/esm2015/firestitch-form.js +5 -28
  92. package/esm2015/public_api.js +35 -14
  93. package/fesm2015/firestitch-form.js +2100 -2108
  94. package/fesm2015/firestitch-form.js.map +1 -1
  95. package/firestitch-form.d.ts +5 -27
  96. package/package.json +7 -8
  97. package/public_api.d.ts +33 -12
  98. package/styles.scss +4 -4
  99. package/app/components/form-dialog-actions/index.d.ts +0 -1
  100. package/bundles/firestitch-form.umd.min.js +0 -16
  101. package/bundles/firestitch-form.umd.min.js.map +0 -1
  102. package/esm2015/app/components/form-dialog-actions/index.js +0 -2
  103. package/esm5/app/components/form-dialog-actions/form-dialog-actions.component.js +0 -94
  104. package/esm5/app/components/form-dialog-actions/index.js +0 -2
  105. package/esm5/app/consts/error-messages.const.js +0 -20
  106. package/esm5/app/directives/form/form.directive.js +0 -709
  107. package/esm5/app/directives/form-dialog-close.directive.js +0 -34
  108. package/esm5/app/directives/submit-button.directive.js +0 -144
  109. package/esm5/app/directives/validators/compare.directive.js +0 -60
  110. package/esm5/app/directives/validators/control.directive.js +0 -279
  111. package/esm5/app/directives/validators/daterange.directive.js +0 -50
  112. package/esm5/app/directives/validators/email.directive.js +0 -50
  113. package/esm5/app/directives/validators/emails.directive.js +0 -50
  114. package/esm5/app/directives/validators/function.directive.js +0 -36
  115. package/esm5/app/directives/validators/greater.directive.js +0 -49
  116. package/esm5/app/directives/validators/integer.directive.js +0 -50
  117. package/esm5/app/directives/validators/lesser.directive.js +0 -49
  118. package/esm5/app/directives/validators/max.directive.js +0 -45
  119. package/esm5/app/directives/validators/maxlength.directive.js +0 -44
  120. package/esm5/app/directives/validators/min.directive.js +0 -45
  121. package/esm5/app/directives/validators/minlength.directive.js +0 -44
  122. package/esm5/app/directives/validators/numeric.directive.js +0 -50
  123. package/esm5/app/directives/validators/pattern.directive.js +0 -44
  124. package/esm5/app/directives/validators/phone.directive.js +0 -50
  125. package/esm5/app/directives/validators/required.directive.js +0 -88
  126. package/esm5/app/directives/validators/url.directive.js +0 -56
  127. package/esm5/app/directives/validators/validate.directive.js +0 -36
  128. package/esm5/app/enums/confirm-result.js +0 -9
  129. package/esm5/app/enums/form-status.js +0 -11
  130. package/esm5/app/fs-form.module.js +0 -110
  131. package/esm5/app/guards/form-deactivate.guard.js +0 -45
  132. package/esm5/app/helpers/confirm-result-continue.js +0 -5
  133. package/esm5/app/helpers/confirm-unsaved.js +0 -70
  134. package/esm5/app/helpers/get-form-errors.js +0 -28
  135. package/esm5/app/helpers/index.js +0 -3
  136. package/esm5/app/helpers/is-enabled.js +0 -4
  137. package/esm5/app/interfaces/async-validator.js +0 -1
  138. package/esm5/app/interfaces/confirm-config.js +0 -1
  139. package/esm5/app/interfaces/confirm-tab-group.js +0 -1
  140. package/esm5/app/interfaces/form-deactivate.js +0 -1
  141. package/esm5/app/interfaces/index.js +0 -1
  142. package/esm5/app/interfaces/submit-event.js +0 -1
  143. package/esm5/app/interfaces/submitted-event.js +0 -1
  144. package/esm5/app/interfaces/validator.js +0 -1
  145. package/esm5/app/providers/validate-messages.provider.js +0 -12
  146. package/esm5/app/services/fsform.service.js +0 -27
  147. package/esm5/app/validators/validators.js +0 -102
  148. package/esm5/firestitch-form.js +0 -28
  149. package/esm5/public_api.js +0 -14
  150. package/fesm5/firestitch-form.js +0 -2397
  151. package/fesm5/firestitch-form.js.map +0 -1
  152. 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
- 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
+ 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
+ }