@firestitch/form 12.4.7 → 12.4.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 (103) hide show
  1. package/app/components/form-dialog-actions/form-dialog-actions.component.d.ts +23 -23
  2. package/app/consts/error-messages.const.d.ts +19 -19
  3. package/app/directives/button.directive.d.ts +34 -34
  4. package/app/directives/form/form.directive.d.ts +122 -122
  5. package/app/directives/form-dialog-close.directive.d.ts +12 -12
  6. package/app/directives/index.d.ts +2 -2
  7. package/app/directives/submit-button.directive.d.ts +6 -6
  8. package/app/directives/validators/compare.directive.d.ts +15 -15
  9. package/app/directives/validators/control.directive.d.ts +48 -48
  10. package/app/directives/validators/daterange.directive.d.ts +13 -13
  11. package/app/directives/validators/email.directive.d.ts +13 -13
  12. package/app/directives/validators/emails.directive.d.ts +13 -13
  13. package/app/directives/validators/function.directive.d.ts +15 -15
  14. package/app/directives/validators/greater.directive.d.ts +13 -13
  15. package/app/directives/validators/integer.directive.d.ts +13 -13
  16. package/app/directives/validators/lesser.directive.d.ts +13 -13
  17. package/app/directives/validators/max.directive.d.ts +13 -13
  18. package/app/directives/validators/maxlength.directive.d.ts +13 -13
  19. package/app/directives/validators/min.directive.d.ts +13 -13
  20. package/app/directives/validators/minlength.directive.d.ts +13 -13
  21. package/app/directives/validators/no-fs-validators.directive.d.ts +13 -13
  22. package/app/directives/validators/numeric.directive.d.ts +13 -13
  23. package/app/directives/validators/pattern.directive.d.ts +13 -13
  24. package/app/directives/validators/phone.directive.d.ts +13 -13
  25. package/app/directives/validators/required.directive.d.ts +16 -16
  26. package/app/directives/validators/url.directive.d.ts +14 -14
  27. package/app/directives/validators/validate.directive.d.ts +15 -15
  28. package/app/enums/confirm-result.d.ts +7 -7
  29. package/app/enums/form-status.d.ts +10 -10
  30. package/app/fs-form.module.d.ts +37 -37
  31. package/app/guards/form-deactivate.guard.d.ts +14 -14
  32. package/app/helpers/confirm-result-continue.d.ts +1 -1
  33. package/app/helpers/confirm-unsaved.d.ts +5 -5
  34. package/app/helpers/get-active-route.d.ts +2 -2
  35. package/app/helpers/get-form-errors.d.ts +2 -2
  36. package/app/helpers/index.d.ts +2 -2
  37. package/app/helpers/is-enabled.d.ts +1 -1
  38. package/app/interfaces/async-validator.d.ts +14 -14
  39. package/app/interfaces/confirm-config.d.ts +7 -7
  40. package/app/interfaces/confirm-tab-group.d.ts +10 -10
  41. package/app/interfaces/index.d.ts +4 -4
  42. package/app/interfaces/submit-event.d.ts +6 -6
  43. package/app/interfaces/submitted-event.d.ts +7 -7
  44. package/app/interfaces/validator.d.ts +13 -13
  45. package/app/providers/validate-messages.provider.d.ts +25 -25
  46. package/app/services/fsform.service.d.ts +16 -16
  47. package/app/validators/validators.d.ts +12 -12
  48. package/bundles/firestitch-form.umd.js +2836 -2834
  49. package/bundles/firestitch-form.umd.js.map +1 -1
  50. package/esm2015/app/components/form-dialog-actions/form-dialog-actions.component.js +91 -91
  51. package/esm2015/app/consts/error-messages.const.js +19 -19
  52. package/esm2015/app/directives/button.directive.js +149 -149
  53. package/esm2015/app/directives/form/form.directive.js +696 -694
  54. package/esm2015/app/directives/form-dialog-close.directive.js +30 -30
  55. package/esm2015/app/directives/index.js +2 -2
  56. package/esm2015/app/directives/submit-button.directive.js +13 -13
  57. package/esm2015/app/directives/validators/compare.directive.js +48 -48
  58. package/esm2015/app/directives/validators/control.directive.js +264 -264
  59. package/esm2015/app/directives/validators/daterange.directive.js +40 -40
  60. package/esm2015/app/directives/validators/email.directive.js +40 -40
  61. package/esm2015/app/directives/validators/emails.directive.js +40 -40
  62. package/esm2015/app/directives/validators/function.directive.js +40 -40
  63. package/esm2015/app/directives/validators/greater.directive.js +39 -39
  64. package/esm2015/app/directives/validators/integer.directive.js +40 -40
  65. package/esm2015/app/directives/validators/lesser.directive.js +39 -39
  66. package/esm2015/app/directives/validators/max.directive.js +35 -35
  67. package/esm2015/app/directives/validators/maxlength.directive.js +34 -34
  68. package/esm2015/app/directives/validators/min.directive.js +35 -35
  69. package/esm2015/app/directives/validators/minlength.directive.js +34 -34
  70. package/esm2015/app/directives/validators/no-fs-validators.directive.js +46 -46
  71. package/esm2015/app/directives/validators/numeric.directive.js +40 -40
  72. package/esm2015/app/directives/validators/pattern.directive.js +34 -34
  73. package/esm2015/app/directives/validators/phone.directive.js +40 -40
  74. package/esm2015/app/directives/validators/required.directive.js +70 -70
  75. package/esm2015/app/directives/validators/url.directive.js +46 -46
  76. package/esm2015/app/directives/validators/validate.directive.js +42 -42
  77. package/esm2015/app/enums/confirm-result.js +8 -8
  78. package/esm2015/app/enums/form-status.js +11 -11
  79. package/esm2015/app/fs-form.module.js +180 -180
  80. package/esm2015/app/guards/form-deactivate.guard.js +44 -44
  81. package/esm2015/app/helpers/confirm-result-continue.js +4 -4
  82. package/esm2015/app/helpers/confirm-unsaved.js +71 -71
  83. package/esm2015/app/helpers/get-active-route.js +6 -6
  84. package/esm2015/app/helpers/get-form-errors.js +24 -24
  85. package/esm2015/app/helpers/index.js +2 -2
  86. package/esm2015/app/helpers/is-enabled.js +3 -3
  87. package/esm2015/app/interfaces/async-validator.js +1 -1
  88. package/esm2015/app/interfaces/confirm-config.js +1 -1
  89. package/esm2015/app/interfaces/confirm-tab-group.js +1 -1
  90. package/esm2015/app/interfaces/index.js +4 -4
  91. package/esm2015/app/interfaces/submit-event.js +1 -1
  92. package/esm2015/app/interfaces/submitted-event.js +1 -1
  93. package/esm2015/app/interfaces/validator.js +1 -1
  94. package/esm2015/app/providers/validate-messages.provider.js +10 -10
  95. package/esm2015/app/services/fsform.service.js +39 -39
  96. package/esm2015/app/validators/validators.js +96 -96
  97. package/esm2015/firestitch-form.js +4 -4
  98. package/esm2015/public_api.js +36 -36
  99. package/fesm2015/firestitch-form.js +2273 -2271
  100. package/fesm2015/firestitch-form.js.map +1 -1
  101. package/firestitch-form.d.ts +5 -5
  102. package/package.json +1 -1
  103. package/public_api.d.ts +34 -34
@@ -1,14 +1,14 @@
1
- import { ActivatedRoute, CanDeactivate } from '@angular/router';
2
- import { FsPrompt } from '@firestitch/prompt';
3
- import { Observable } from 'rxjs';
4
- import { FsForm } from '../services/fsform.service';
5
- import * as i0 from "@angular/core";
6
- export declare class FormDeactivateGuard implements CanDeactivate<any> {
7
- private _prompt;
8
- private _fsForm;
9
- private _route;
10
- constructor(_prompt: FsPrompt, _fsForm: FsForm, _route: ActivatedRoute);
11
- canDeactivate(): Observable<boolean>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<FormDeactivateGuard, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<FormDeactivateGuard>;
14
- }
1
+ import { ActivatedRoute, CanDeactivate } from '@angular/router';
2
+ import { FsPrompt } from '@firestitch/prompt';
3
+ import { Observable } from 'rxjs';
4
+ import { FsForm } from '../services/fsform.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FormDeactivateGuard implements CanDeactivate<any> {
7
+ private _prompt;
8
+ private _fsForm;
9
+ private _route;
10
+ constructor(_prompt: FsPrompt, _fsForm: FsForm, _route: ActivatedRoute);
11
+ canDeactivate(): Observable<boolean>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormDeactivateGuard, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<FormDeactivateGuard>;
14
+ }
@@ -1 +1 @@
1
- export declare function confirmResultContinue(result: any): boolean;
1
+ export declare function confirmResultContinue(result: any): boolean;
@@ -1,5 +1,5 @@
1
- import { FsPrompt } from '@firestitch/prompt';
2
- import { Observable } from 'rxjs';
3
- import { FsFormDirective } from '../directives/form/form.directive';
4
- import { ConfirmResult } from '../enums/confirm-result';
5
- export declare function confirmUnsaved(directives: FsFormDirective[], prompt: FsPrompt): Observable<ConfirmResult>;
1
+ import { FsPrompt } from '@firestitch/prompt';
2
+ import { Observable } from 'rxjs';
3
+ import { FsFormDirective } from '../directives/form/form.directive';
4
+ import { ConfirmResult } from '../enums/confirm-result';
5
+ export declare function confirmUnsaved(directives: FsFormDirective[], prompt: FsPrompt): Observable<ConfirmResult>;
@@ -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,2 +1,2 @@
1
- export * from './confirm-result-continue';
2
- export * from './confirm-unsaved';
1
+ export * from './confirm-result-continue';
2
+ export * from './confirm-unsaved';
@@ -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,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,16 +1,16 @@
1
- import { Type } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { FsFormDirective } from '../directives/form/form.directive';
4
- import * as i0 from "@angular/core";
5
- export declare class FsForm {
6
- private _formDirectiveStore;
7
- private _eventBus;
8
- constructor();
9
- broadcast(key: any, data?: any): void;
10
- on<T>(key: any): Observable<T>;
11
- registerFormDirective(routeComponent: Type<any>, directive: FsFormDirective): void;
12
- getFormDirectives(routeComponent: any): FsFormDirective[];
13
- removeFormDirective(routeComponent: any): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<FsForm, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<FsForm>;
16
- }
1
+ import { Type } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { FsFormDirective } from '../directives/form/form.directive';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FsForm {
6
+ private _formDirectiveStore;
7
+ private _eventBus;
8
+ constructor();
9
+ broadcast(key: any, data?: any): void;
10
+ on<T>(key: any): Observable<T>;
11
+ registerFormDirective(routeComponent: Type<any>, directive: FsFormDirective): void;
12
+ getFormDirectives(routeComponent: any): FsFormDirective[];
13
+ removeFormDirective(routeComponent: any): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<FsForm, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<FsForm>;
16
+ }
@@ -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
+ }