@firestitch/form 12.0.2 → 12.1.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 (97) hide show
  1. package/app/components/form-dialog-actions/form-dialog-actions.component.d.ts +21 -21
  2. package/app/consts/error-messages.const.d.ts +19 -19
  3. package/app/directives/form/form.directive.d.ts +108 -105
  4. package/app/directives/form-dialog-close.directive.d.ts +12 -12
  5. package/app/directives/submit-button.directive.d.ts +31 -31
  6. package/app/directives/validators/compare.directive.d.ts +15 -15
  7. package/app/directives/validators/control.directive.d.ts +48 -48
  8. package/app/directives/validators/daterange.directive.d.ts +13 -13
  9. package/app/directives/validators/email.directive.d.ts +13 -13
  10. package/app/directives/validators/emails.directive.d.ts +13 -13
  11. package/app/directives/validators/function.directive.d.ts +14 -14
  12. package/app/directives/validators/greater.directive.d.ts +13 -13
  13. package/app/directives/validators/integer.directive.d.ts +13 -13
  14. package/app/directives/validators/lesser.directive.d.ts +13 -13
  15. package/app/directives/validators/max.directive.d.ts +13 -13
  16. package/app/directives/validators/maxlength.directive.d.ts +13 -13
  17. package/app/directives/validators/min.directive.d.ts +13 -13
  18. package/app/directives/validators/minlength.directive.d.ts +13 -13
  19. package/app/directives/validators/numeric.directive.d.ts +13 -13
  20. package/app/directives/validators/pattern.directive.d.ts +13 -13
  21. package/app/directives/validators/phone.directive.d.ts +13 -13
  22. package/app/directives/validators/required.directive.d.ts +16 -16
  23. package/app/directives/validators/url.directive.d.ts +14 -14
  24. package/app/directives/validators/validate.directive.d.ts +14 -14
  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 -35
  28. package/app/guards/form-deactivate.guard.d.ts +12 -12
  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 -10
  44. package/app/validators/validators.d.ts +12 -12
  45. package/bundles/firestitch-form.umd.js +2623 -2613
  46. package/bundles/firestitch-form.umd.js.map +1 -1
  47. package/esm2015/app/components/form-dialog-actions/form-dialog-actions.component.js +85 -85
  48. package/esm2015/app/consts/error-messages.const.js +19 -19
  49. package/esm2015/app/directives/form/form.directive.js +622 -619
  50. package/esm2015/app/directives/form-dialog-close.directive.js +30 -30
  51. package/esm2015/app/directives/submit-button.directive.js +132 -131
  52. package/esm2015/app/directives/validators/compare.directive.js +48 -48
  53. package/esm2015/app/directives/validators/control.directive.js +256 -256
  54. package/esm2015/app/directives/validators/daterange.directive.js +40 -40
  55. package/esm2015/app/directives/validators/email.directive.js +40 -40
  56. package/esm2015/app/directives/validators/emails.directive.js +40 -40
  57. package/esm2015/app/directives/validators/function.directive.js +30 -30
  58. package/esm2015/app/directives/validators/greater.directive.js +39 -39
  59. package/esm2015/app/directives/validators/integer.directive.js +40 -40
  60. package/esm2015/app/directives/validators/lesser.directive.js +39 -39
  61. package/esm2015/app/directives/validators/max.directive.js +35 -35
  62. package/esm2015/app/directives/validators/maxlength.directive.js +34 -34
  63. package/esm2015/app/directives/validators/min.directive.js +35 -35
  64. package/esm2015/app/directives/validators/minlength.directive.js +34 -34
  65. package/esm2015/app/directives/validators/numeric.directive.js +40 -40
  66. package/esm2015/app/directives/validators/pattern.directive.js +34 -34
  67. package/esm2015/app/directives/validators/phone.directive.js +40 -40
  68. package/esm2015/app/directives/validators/required.directive.js +70 -70
  69. package/esm2015/app/directives/validators/url.directive.js +46 -46
  70. package/esm2015/app/directives/validators/validate.directive.js +32 -32
  71. package/esm2015/app/enums/confirm-result.js +8 -8
  72. package/esm2015/app/enums/form-status.js +10 -10
  73. package/esm2015/app/fs-form.module.js +171 -165
  74. package/esm2015/app/guards/form-deactivate.guard.js +39 -39
  75. package/esm2015/app/helpers/confirm-result-continue.js +4 -4
  76. package/esm2015/app/helpers/confirm-unsaved.js +69 -69
  77. package/esm2015/app/helpers/get-form-errors.js +24 -24
  78. package/esm2015/app/helpers/index.js +2 -2
  79. package/esm2015/app/helpers/is-enabled.js +3 -3
  80. package/esm2015/app/interfaces/async-validator.js +1 -1
  81. package/esm2015/app/interfaces/confirm-config.js +1 -1
  82. package/esm2015/app/interfaces/confirm-tab-group.js +1 -1
  83. package/esm2015/app/interfaces/form-deactivate.js +1 -1
  84. package/esm2015/app/interfaces/index.js +4 -4
  85. package/esm2015/app/interfaces/submit-event.js +1 -1
  86. package/esm2015/app/interfaces/submitted-event.js +1 -1
  87. package/esm2015/app/interfaces/validator.js +1 -1
  88. package/esm2015/app/providers/validate-messages.provider.js +10 -10
  89. package/esm2015/app/services/fsform.service.js +24 -24
  90. package/esm2015/app/validators/validators.js +96 -96
  91. package/esm2015/firestitch-form.js +4 -4
  92. package/esm2015/public_api.js +34 -34
  93. package/fesm2015/firestitch-form.js +2071 -2061
  94. package/fesm2015/firestitch-form.js.map +1 -1
  95. package/firestitch-form.d.ts +5 -5
  96. package/package.json +1 -1
  97. package/public_api.d.ts +33 -33
@@ -1,10 +1,10 @@
1
- import { MatTab, MatTabGroup, MatTabHeader } from '@angular/material/tabs';
2
- import { Subject } from 'rxjs';
3
- export interface ConfirmTabGroup extends MatTabGroup {
4
- _originalHandleClick(tab: MatTab, tabHeader: MatTabHeader, index: number): void;
5
- _handlClick$: Subject<{
6
- tab: MatTab;
7
- tabHeader: MatTabHeader;
8
- idx: number;
9
- }>;
10
- }
1
+ import { MatTab, MatTabGroup, MatTabHeader } from '@angular/material/tabs';
2
+ import { Subject } from 'rxjs';
3
+ export interface ConfirmTabGroup extends MatTabGroup {
4
+ _originalHandleClick(tab: MatTab, tabHeader: MatTabHeader, index: number): void;
5
+ _handlClick$: Subject<{
6
+ tab: MatTab;
7
+ tabHeader: MatTabHeader;
8
+ idx: number;
9
+ }>;
10
+ }
@@ -1,4 +1,4 @@
1
- import { FsFormDirective } from '../directives/form/form.directive';
2
- export interface FormDeactivate {
3
- getForm(): FsFormDirective;
4
- }
1
+ import { FsFormDirective } from '../directives/form/form.directive';
2
+ export interface FormDeactivate {
3
+ getForm(): FsFormDirective;
4
+ }
@@ -1,4 +1,4 @@
1
- export * from './submit-event';
2
- export * from './submitted-event';
3
- export * from './confirm-config';
4
- export * from './confirm-tab-group';
1
+ export * from './submit-event';
2
+ export * from './submitted-event';
3
+ export * from './confirm-config';
4
+ export * from './confirm-tab-group';
@@ -1,5 +1,5 @@
1
- import { NgForm } from '@angular/forms';
2
- export interface SubmitEvent {
3
- ngForm: NgForm;
4
- submitter: string;
5
- }
1
+ import { NgForm } from '@angular/forms';
2
+ export interface SubmitEvent {
3
+ ngForm: NgForm;
4
+ submitter: string;
5
+ }
@@ -1,6 +1,6 @@
1
- import { NgForm } from '@angular/forms';
2
- export interface SubmittedEvent {
3
- ngForm: NgForm;
4
- submitter: string;
5
- response: any;
6
- }
1
+ import { NgForm } from '@angular/forms';
2
+ export interface SubmittedEvent {
3
+ ngForm: NgForm;
4
+ submitter: string;
5
+ response: any;
6
+ }
@@ -1,13 +1,13 @@
1
- import { AbstractControl, ValidationErrors } from '@angular/forms';
2
- export declare interface FsValidator {
3
- /**
4
- * @description
5
- * Method that performs synchronous validation against the provided control.
6
- *
7
- * @param control The control to validate against.
8
- *
9
- * @returns A map of validation errors if validation fails,
10
- * otherwise null.
11
- */
12
- validate(control: AbstractControl): ValidationErrors | null;
13
- }
1
+ import { AbstractControl, ValidationErrors } from '@angular/forms';
2
+ export declare interface FsValidator {
3
+ /**
4
+ * @description
5
+ * Method that performs synchronous validation against the provided control.
6
+ *
7
+ * @param control The control to validate against.
8
+ *
9
+ * @returns A map of validation errors if validation fails,
10
+ * otherwise null.
11
+ */
12
+ validate(control: AbstractControl): ValidationErrors | null;
13
+ }
@@ -1,25 +1,25 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const VALIDATE_MESSAGES: InjectionToken<Record<string, string>>;
3
- export declare const VALIDATE_MESSAGE_PROVIDER: {
4
- provide: InjectionToken<Record<string, string>>;
5
- useFactory: typeof messageProviderFactory;
6
- };
7
- export declare function messageProviderFactory(): {
8
- required: string;
9
- email: string;
10
- emails: string;
11
- phone: string;
12
- numeric: string;
13
- integer: string;
14
- min: string;
15
- max: string;
16
- minlength: string;
17
- maxlength: string;
18
- compare: string;
19
- pattern: string;
20
- dateRange: string;
21
- url: string;
22
- urlProtocol: string;
23
- greater: string;
24
- lesser: string;
25
- };
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const VALIDATE_MESSAGES: InjectionToken<Record<string, string>>;
3
+ export declare const VALIDATE_MESSAGE_PROVIDER: {
4
+ provide: InjectionToken<Record<string, string>>;
5
+ useFactory: typeof messageProviderFactory;
6
+ };
7
+ export declare function messageProviderFactory(): {
8
+ required: string;
9
+ email: string;
10
+ emails: string;
11
+ phone: string;
12
+ numeric: string;
13
+ integer: string;
14
+ min: string;
15
+ max: string;
16
+ minlength: string;
17
+ maxlength: string;
18
+ compare: string;
19
+ pattern: string;
20
+ dateRange: string;
21
+ url: string;
22
+ urlProtocol: string;
23
+ greater: string;
24
+ lesser: string;
25
+ };
@@ -1,10 +1,10 @@
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
+ 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
+ }